:root{
  --bg:#f3f4f6;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --border:#e5e7eb;
  --shadow:0 24px 70px rgba(2,6,23,.18);
}
*{box-sizing:border-box}
body{
  margin:0;
  min-height:100vh;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
  color:var(--text);
  background: var(--bg) url("./bg.jpg") center/cover no-repeat fixed;
}
a{color:inherit}

.wt-brandbar{
  position:fixed;
  top:18px;
  left:18px;
  display:flex;
  align-items:center;
  gap:10px;
  z-index:5;
}
.wt-mark{
  width:36px;height:36px;border-radius:12px;
  background:#111;
  display:grid;place-items:center;
  box-shadow:0 10px 30px rgba(0,0,0,.20);
  color:#fff;font-weight:900;
}
.wt-brandtext{font-weight:900;letter-spacing:.2px}
.wt-tag{color:var(--muted);font-size:13px;margin-top:2px}

.wt-wrap{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:34px 18px;
}
.wt-card{
  width:100%;
  max-width:560px;
  background:rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border:1px solid rgba(229,231,235,.9);
  border-radius:22px;
  box-shadow:var(--shadow);
  overflow:hidden;
}
.wt-head{padding:22px 22px 14px 22px}
.wt-title{font-size:28px;font-weight:950;letter-spacing:-.3px;margin:0}
.wt-sub{color:var(--muted);margin-top:8px;font-size:14px;line-height:1.45}
.wt-body{padding:0 22px 22px 22px}

label{display:block;margin:14px 0 7px;color:var(--muted);font-size:13px}
input,textarea{
  width:100%;
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px 12px;
  font-size:14px;
  outline:none;
  background:rgba(255,255,255,.95);
}
input:focus,textarea:focus{border-color:#111; box-shadow:0 0 0 4px rgba(15,23,42,.06)}
.wt-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}

.wt-drop{
  margin-top:14px;
  border:2px dashed #cbd5e1;
  border-radius:18px;
  padding:16px;
  background:rgba(248,250,252,.9);
  transition:transform .08s ease, border-color .12s ease, background .12s ease;
}
.wt-drop.is-dragover{
  border-color:#111;
  background:rgba(255,255,255,.95);
  transform: scale(1.01);
}
.wt-drop-title{font-weight:900;font-size:16px}
.wt-drop-sub{color:var(--muted);font-size:13px;margin-top:6px;margin-bottom:12px}
.wt-fileline{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.wt-filebtn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 12px;border-radius:12px;border:1px solid var(--border);
  background:#fff;font-weight:800;cursor:pointer;
}
.wt-files{color:var(--muted);font-size:13px}

.wt-btn{
  margin-top:16px;
  width:100%;
  border:0;
  border-radius:14px;
  padding:13px 14px;
  font-weight:950;
  background:#111;
  color:#fff;
  cursor:pointer;
}
.wt-foot{margin-top:10px;color:#94a3b8;font-size:12px;text-align:center}

.wt-alert{
  background:rgba(255,241,242,.95);
  border:1px solid #fecdd3;
  color:#9f1239;
  padding:10px 12px;
  border-radius:14px;
  margin:12px 0;
}
.wt-success{
  background:rgba(236,253,245,.95);
  border:1px solid #bbf7d0;
  color:#166534;
  padding:10px 12px;
  border-radius:14px;
  margin:12px 0;
}

@media(max-width:560px){
  .wt-grid{grid-template-columns:1fr}
  .wt-title{font-size:24px}
}


.wt-btn.wt-btn-secondary{
  display:block;
  text-align:center;
  text-decoration:none;
  background:#111;
  color:#fff;
}
.wt-downloadline{
  display:flex;
  gap:12px;
  align-items:center;
  padding:14px;
  border:1px solid rgba(229,231,235,.9);
  border-radius:16px;
  background:rgba(255,255,255,.8);
}
.wt-spinner{
  width:18px;height:18px;border-radius:999px;
  border:3px solid rgba(15,23,42,.15);
  border-top-color:#111;
  animation: wtspin 0.9s linear infinite;
}
@keyframes wtspin{to{transform:rotate(360deg)}}
.wt-dl-title{font-weight:950}
.wt-dl-sub{color:var(--muted);font-size:13px;margin-top:2px}

.wt-modal{
  position:fixed;
  inset:0;
  background:rgba(2,6,23,.35);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:20;
}
.wt-modal-card{
  width:100%;
  max-width:420px;
  background:rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border:1px solid rgba(229,231,235,.9);
  border-radius:20px;
  box-shadow:0 24px 70px rgba(2,6,23,.25);
  padding:18px;
}
.wt-modal-title{font-weight:950;font-size:18px}
.wt-modal-sub{color:var(--muted);margin-top:6px;font-size:14px}
.wt-progress{margin-top:12px;height:12px;border-radius:999px;background:rgba(15,23,42,.08);overflow:hidden}
.wt-progress-bar{height:100%;background:#111;width:0%}
.wt-modal-foot{margin-top:10px;color:#94a3b8;font-size:12px}


/* ensure hidden attribute wins over .wt-modal display */
.wt-modal[hidden]{display:none !important;}

.wt-inline-progress{
  margin-top:12px;
  padding:12px;
  border:1px solid rgba(229,231,235,.9);
  border-radius:16px;
  background:rgba(255,255,255,.75);
}
.wt-inline-row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.wt-inline-label{font-weight:900}
.wt-inline-pct{color:var(--muted);font-size:13px}

/* File chips */
.wt-chips{
  margin-top:10px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.wt-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(229,231,235,.95);
  background:rgba(255,255,255,.9);
  cursor:pointer;
  user-select:none;
}
.wt-chip:hover{border-color:#111}
.wt-chip-name{font-size:13px}
.wt-chip-x{
  width:18px;height:18px;border-radius:999px;
  display:grid;place-items:center;
  background:rgba(15,23,42,.08);
  font-weight:900;font-size:12px;
}
.wt-chip-hint{color:var(--muted);font-size:12px;margin-top:8px}

/* Always-visible slim progress line (no layout shift) */
.wt-progressline{
  margin-top:14px;
  height:8px;
  border-radius:999px;
  background:rgba(15,23,42,.08);
  overflow:hidden;
}
.wt-progressline > .wt-progressbar{
  height:100%;
  width:0%;
  background:#111;
  transition:width .08s linear;
}
.wt-progressmeta{
  margin-top:8px;
  display:flex;
  justify-content:space-between;
  color:var(--muted);
  font-size:12px;
}

.wt-actions{display:flex;gap:10px;align-items:center;margin-top:12px}
.wt-btn[disabled]{opacity:.5;cursor:not-allowed}

.wt-linkbox{
  margin-top:12px;
  padding:12px;
  border:1px solid rgba(229,231,235,.95);
  border-radius:16px;
  background:rgba(255,255,255,.85);
  display:flex;
  gap:10px;
  align-items:center;
}
.wt-linkbox input{
  flex:1;
  padding:10px 12px;
  border:1px solid rgba(229,231,235,.95);
  border-radius:12px;
  font-size:13px;
}
.wt-linkbox button{
  border:0;
  background:#111;
  color:#fff;
  padding:10px 12px;
  border-radius:12px;
  font-weight:900;
  cursor:pointer;
}
