:root {
  color-scheme: dark;
  --bg: #0b0b12;
  --panel: #14141f;
  --panel-2: #1b1b29;
  --line: rgba(255,255,255,.09);
  --text: #f4f2ff;
  --muted: #a4a1b6;
  --purple: #a78bfa;
  --purple-2: #7c5ce0;
  --green: #61d6a5;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% -20%, rgba(124,92,224,.22), transparent 55%), var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, textarea, select { font: inherit; }
.shell { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }
.topbar { height: 76px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); }
.brand { display:flex; align-items:center; gap:11px; color:inherit; text-decoration:none; }
.brand-mark { width:38px; height:38px; display:grid; place-items:center; border-radius:13px; color:white; font-weight:800; font-size:21px; background:linear-gradient(145deg,#b69cff,#6846c8); box-shadow:0 7px 24px #7c5ce044; }
.brand strong, .brand small { display:block; }
.brand strong { letter-spacing:.01em; }
.brand small { margin-top:2px; color:var(--muted); font-size:11px; }
.local-pill, .step-tag { display:inline-flex; align-items:center; gap:7px; border:1px solid var(--line); padding:7px 10px; border-radius:999px; color:#c9c4d9; font-size:11px; white-space:nowrap; }
.dot { width:7px; height:7px; border-radius:50%; background:var(--green); box-shadow:0 0 10px #61d6a588; }
.hero { padding:58px 0 28px; max-width:720px; }
.eyebrow { margin:0 0 10px; color:var(--purple); font-size:10px; font-weight:800; letter-spacing:.17em; }
h1 { margin:0; font-size:clamp(38px,6vw,66px); line-height:1.02; letter-spacing:-.055em; }
h1 span { color:#b9a5ff; }
.hero-copy { max-width:590px; margin:18px 0 0; color:var(--muted); line-height:1.65; font-size:15px; }
.notice { display:flex; gap:10px; align-items:flex-start; padding:14px 16px; border:1px solid rgba(245,190,100,.2); background:rgba(245,190,100,.055); border-radius:14px; color:#d8c7a9; font-size:12px; line-height:1.5; }
.notice strong { color:#f3d49b; white-space:nowrap; }
.workspace { display:grid; grid-template-columns:1.05fr .95fr; gap:16px; margin-top:18px; }
.panel { min-width:0; padding:22px; border:1px solid var(--line); border-radius:20px; background:linear-gradient(160deg,rgba(255,255,255,.035),transparent 35%),var(--panel); box-shadow:0 18px 55px rgba(0,0,0,.18); }
.panel-heading { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:22px; }
.panel-heading .eyebrow { margin-bottom:5px; }
h2 { margin:0; font-size:21px; letter-spacing:-.03em; }
.step-tag { color:#b8a5ff; border-color:#a78bfa33; background:#a78bfa0c; }
.step-tag.muted { color:var(--muted); background:transparent; border-color:var(--line); }
label, .field-label { display:block; margin:0 0 8px; color:#d4d0e1; font-size:12px; font-weight:650; }
textarea, input[type="text"], select { width:100%; color:var(--text); background:#0d0d16; border:1px solid var(--line); border-radius:11px; outline:none; }
textarea { min-height:218px; padding:13px; resize:vertical; line-height:1.55; font-size:12px; }
input[type="text"], select { min-height:43px; padding:0 12px; }
textarea:focus, input:focus, select:focus { border-color:#a78bfa99; box-shadow:0 0 0 3px #a78bfa18; }
.controls { display:grid; grid-template-columns:1fr 1.15fr; gap:10px; align-items:end; margin-top:14px; }
.controls .field-label { grid-column:1 / -1; margin-bottom:-4px; }
.button { border:0; border-radius:11px; min-height:44px; padding:0 15px; font-weight:750; font-size:12px; cursor:pointer; transition:transform .15s,opacity .15s,filter .15s; }
.button:hover:not(:disabled) { transform:translateY(-1px); filter:brightness(1.08); }
.button:disabled { opacity:.4; cursor:not-allowed; }
.button.primary { color:#171020; background:linear-gradient(120deg,#c4b5fd,#9b7bf0); }
.button.secondary { width:100%; margin-top:16px; color:#eee8ff; background:#7657cf; }
.progress-track { height:5px; overflow:hidden; border-radius:99px; margin-top:17px; background:#292638; }
.progress-track div { width:0; height:100%; background:linear-gradient(90deg,#8b6be4,#c4b5fd); transition:width .15s; }
.status { min-height:34px; margin:10px 0 0; color:var(--muted); font-size:11px; line-height:1.5; }
.chat-panel > label:not(:first-child) { margin-top:17px; }
input[type="range"] { width:100%; accent-color:#a78bfa; }
.range-caption { display:flex; justify-content:space-between; color:#817d92; font-size:10px; margin-top:5px; }
.range-caption strong { color:#d5caff; font-weight:650; }
.output-wrap { margin-top:19px; padding:14px; border:1px solid var(--line); border-radius:13px; background:#0d0d16; }
.output-label { color:var(--purple); font-size:9px; font-weight:800; letter-spacing:.16em; }
pre { min-height:125px; max-height:230px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; margin:12px 0 0; color:#e4def5; font:12px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace; }
.microcopy { margin:11px 0 0; color:#88849a; font-size:10px; line-height:1.5; }
footer { display:flex; justify-content:space-between; gap:12px; padding:25px 2px 32px; color:#777387; font-size:9px; letter-spacing:.08em; }
@media (max-width:760px) {
  .workspace { grid-template-columns:1fr; }
  .hero { padding-top:42px; }
  .panel { padding:18px; }
}
@media (max-width:420px) {
  .shell { width:min(100% - 24px,1120px); }
  .notice { display:block; }
  .notice strong { display:block; margin-bottom:4px; white-space:normal; }
  .controls { grid-template-columns:1fr; }
  .controls .field-label { grid-column:auto; }
  footer { flex-direction:column; }
}
