:root{
  --bg:#0f172a;
  --card:#111827;
  --card2:#0b1220;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --border:#24324a;
  --accent:#6366f1;
  --danger:#ef4444;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
  background:var(--bg);
  color:var(--text);
}

.container{
  width:min(980px, calc(100% - 32px));
  margin:24px auto 40px;
  display:grid;
  gap:16px;
}

.header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
}

h1{margin:0 0 6px; font-size:24px}
h2{margin:0 0 10px; font-size:16px}
p{margin:0}

.badge{
  padding:6px 10px;
  border:1px solid var(--border);
  background:var(--card2);
  border-radius:999px;
  font-size:12px;
  color:var(--muted);
}

.card{
  border:1px solid var(--border);
  background:var(--card);
  border-radius:14px;
  padding:16px;
}

.field{display:grid; gap:6px}
.field > span{font-size:13px; color:var(--muted)}
.field > small{font-size:12px; color:var(--muted)}

.row{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

.space-between{justify-content:space-between}

input, button, textarea{
  border-radius:12px;
  border:1px solid var(--border);
  background:var(--card2);
  color:var(--text);
  padding:10px 12px;
  outline:none;
}

input:focus, textarea:focus, button:focus{
  border-color:rgba(99,102,241,.7);
  box-shadow:0 0 0 3px rgba(99,102,241,.18);
}

textarea{
  width:100%;
  min-height:240px;
  resize:vertical;
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  line-height:1.35;
}

button{
  cursor:pointer;
  user-select:none;
}
button:hover{border-color:rgba(99,102,241,.55)}
button:disabled{opacity:.55; cursor:not-allowed}

button.primary{
  background:var(--accent);
  border-color:rgba(99,102,241,.9);
}
button.primary:hover{filter:brightness(1.05)}
button.ghost{background:transparent}

.divider{
  height:1px;
  background:var(--border);
  margin:14px 0;
}

.muted{color:var(--muted)}
.footer{font-size:12px; color:var(--muted)}
progress{width:220px; height:10px}

.actions{gap:18px; margin-bottom:18px}
.transcript{margin-top:6px}

/* ======= Simple checkbox dropdown ======= */
.dd { position:relative; }
.dd-btn{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  min-height:46px;
}
.dd-panel{
  display:none;
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  right:0;
  z-index:9999;
  border:1px solid var(--border);
  background:var(--card2);
  border-radius:12px;
  padding:10px;
}
.dd.open .dd-panel{display:block;}

.dd-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 8px;
  border-radius:10px;
}
.dd-item:hover{background:rgba(255,255,255,.04)}
.dd-item input{width:16px; height:16px}

.chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}
.chip{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:6px 10px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  border-radius:999px;
  font-size:12px;
}
.chip button{
  padding:0 2px;
  border:none;
  background:transparent;
  color:var(--muted);
  font-size:16px;
  line-height:1;
}
.chip button:hover{color:var(--text)}