:root{
  --bg:#0b0c10;
  --panel:#12131a;
  --ink:#f2f4f8;
  --muted:#a0a6b7;
  --stroke:#1d1f2a;
  --fx:#181a24;
  --accent:#51ffa5;
  --accent2:#8be9fd;
  --warn:#ffb86c;
  --danger:#ff6b6b;
  --ok:#3ee98a;
  --pill:#1e2130;
  --shadow: 0 6px 28px rgba(0,0,0,.35);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background: radial-gradient(1200px 800px at 10% -10%, #0e1220 0%, var(--bg) 60%);
  color:var(--ink);
  font:16px/1.55 Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
}

.site-header{
  display:flex;justify-content:space-between;align-items:flex-end;
  gap:1rem; padding:1.25rem 1rem 0.5rem; max-width:1100px; margin:auto;
}
.brand{display:flex;align-items:center;gap:.75rem}
.brand .logo{font-size:1.6rem}
.brand h1{margin:0;font-size:1.6rem;letter-spacing:.3px}
.brand .tag{margin:.15rem 0 0;color:var(--muted);font-size:.95rem}

.header-links{display:flex;flex-wrap:wrap;gap:.5rem}
.pill{
  text-decoration:none;color:var(--ink);
  background:linear-gradient(180deg, #161a2a, var(--pill));
  border:1px solid #24283b;border-radius:999px;
  padding:.4rem .75rem;font-weight:600;
  transition:transform .15s ease, box-shadow .15s ease, border-color .2s ease;
}
.pill:hover{transform:translateY(-1px); box-shadow:0 8px 20px rgba(0,0,0,.35); border-color:#2e3350}

.container{max-width:1100px;margin:auto;padding:1rem;display:grid;gap:1rem}
.card{
  background:linear-gradient(180deg, #12131a, #0f1118);
  border:1px solid var(--stroke); border-radius:14px; padding:1rem 1.1rem;
  box-shadow: var(--shadow);
}
.card h2{margin:.1rem 0 .8rem;font-size:1.1rem;letter-spacing:.2px}
.emphasis{border-color:#26304b; background:linear-gradient(180deg,#131a28,#0f121c)}

.grid{display:grid; gap:.8rem}
.grid-2{grid-template-columns:repeat(2,minmax(220px,1fr))}
.grid-3{grid-template-columns:repeat(3,minmax(160px,1fr))}
@media (max-width:900px){ .grid-3{grid-template-columns:1fr 1fr} }
@media (max-width:680px){ .grid-2,.grid-3{grid-template-columns:1fr} }

.field{display:flex;flex-direction:column;gap:.35rem}
.field span{color:var(--muted);font-size:.9rem}
.field input[type="text"],
.field input[type="date"],
.field select{
  appearance:none; color:var(--ink);
  background:#141726; border:1px solid #262a40;
  border-radius:10px; padding:.65rem .75rem; outline: none;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field select:focus{border-color:#3b4270; box-shadow:0 0 0 2px rgba(139,233,253,.12)}

.field input[type="range"]{accent-color:var(--accent)}
.field strong{margin-top:.25rem;color:var(--accent2)}

.muted{color:var(--muted)}

/* Chips with note fields (no JS needed to reveal) */
.chips{display:flex;flex-wrap:wrap;gap:.5rem}
.chip{
  --bd:#262a40;
  display:inline-grid; grid-template-columns:auto; align-items:center;
  background:#15192a; border:1px solid var(--bd);
  border-radius:999px; padding:.35rem .6rem; gap:.4rem;
  transition:border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.chip > input[type="checkbox"]{display:none}
.chip > span{font-weight:600}
.chip .chip-note{
  display:none; width:18rem; max-width:70vw; margin-left:.4rem;
  background:#12162a;border:1px dashed #2a2f4a;color:var(--ink);
  border-radius:8px; padding:.35rem .5rem;
}
.chip:has(> input:checked){
  background:linear-gradient(180deg, #172138, #131a2a);
  border-color:#2e3458; box-shadow:0 8px 24px rgba(0,0,0,.35);
}
.chip:has(> input:checked) .chip-note{display:inline-block}

/* Signals */
.signals{display:grid;grid-template-columns:repeat(3,minmax(160px,1fr));gap:.5rem}
.signals label{
  background:#14182a;border:1px solid #252b47;border-radius:10px;
  padding:.6rem .65rem; display:flex; gap:.5rem; align-items:center;
}
@media (max-width:800px){ .signals{grid-template-columns:1fr 1fr} }
@media (max-width:560px){ .signals{grid-template-columns:1fr} }

/* Help blocks */
details.help{
  margin-top:.6rem; background:#0f1220; border:1px solid #242946;
  border-radius:12px; padding:.5rem .7rem;
}
details.help > summary{cursor:pointer; font-weight:700}
details.help[open]{border-color:#2f355e}

/* Live sentence */
.sentence{
  font-size:1.02rem; line-height:1.6; letter-spacing:.2px;
  background:#111422;border:1px solid #222845; padding:.8rem .9rem;border-radius:10px;
}

/* Actions */
.actions{
  display:flex; gap:.6rem; justify-content:flex-end; align-items:center;
  max-width:1100px; margin: .2rem auto 1.2rem; padding: 0 1rem;
}
.btn{
  --bg:#1b2034; --bd:#2a2f4d;
  background:linear-gradient(180deg,var(--bg),#151a2a); border:1px solid var(--bd);
  color:var(--ink); border-radius:12px; padding:.65rem .9rem; font-weight:700;
  box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn:hover{transform:translateY(-1px); box-shadow:0 10px 24px rgba(0,0,0,.45)}
.btn.solid{--bg:#2a314f; --bd:#3a4270}
.btn.ghost{background:transparent; border:1px dashed #2a2f4d}
.btn:active{transform:scale(.985)}

.site-footer{
  max-width:1100px;margin:0 auto 2rem; padding:0 1rem; color:var(--muted);
}

/* Accessibility focus */
a:focus, button:focus, input:focus, select:focus{
  outline:2px solid rgba(139,233,253,.4); outline-offset:2px;
}

