:root{
  --bg: #0a0c10;
  --panel: #0f131a;
  --panel-2: #0d1016;
  --text: #dfe7ff;
  --muted: #9fb0d0;
  --line: #1e2633;
  --accent: #7ae0ff;
  --accent-2: #b1ff6b;
  --danger: #ff6b6b;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.35), 0 2px 8px rgba(0,0,0,.25);
}

*{ box-sizing:border-box }
html,body{ height:100% }
body{
  margin:0;
  color:var(--text);
  background: radial-gradient(1200px 800px at 80% -20%, rgba(122,224,255,.07), transparent 40%),
              radial-gradient(1000px 600px at -10% 120%, rgba(177,255,107,.05), transparent 40%),
              var(--bg);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height:1.45;
}

.appbar{
  position:sticky; top:0; z-index:10;
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 20px; background:rgba(10,12,16,.7); backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.brand{ display:flex; gap:10px; align-items:center; font-family: Rajdhani, Inter, sans-serif; letter-spacing:.4px; font-weight:700 }
.logo{ width:26px; height:26px; fill:var(--accent) }
.status .chip{ margin-left:8px }

.tabs{
  display:grid; grid-template-columns: repeat(5, minmax(0,1fr));
  gap:6px; padding:14px 14px 0; position:sticky; top:61px; background: linear-gradient(180deg, rgba(10,12,16,.9), rgba(10,12,16,.6));
  border-bottom:1px solid var(--line);
}
.tab{
  text-align:center; padding:10px 12px; cursor:pointer; user-select:none;
  color:var(--muted); font-weight:600; letter-spacing:.2px; border-radius:12px 12px 0 0;
  transition:.2s color ease;
}
.tab:hover{ color:#fff }
.tab-underline{
  grid-column: 1 / -1; height:3px; background:linear-gradient(90deg, var(--accent), var(--accent-2));
  margin-top:8px; border-radius:3px; transform: translateX(calc(var(--i,0) * 100%)); transition: transform .25s ease;
}

.panels{ max-width:1150px; margin:22px auto; padding:0 16px }
.panel{ display:none; animation: fade .25s ease }
@keyframes fade{ from{opacity:.4; transform:translateY(4px)} to{opacity:1; transform:none} }

.grid{ display:grid; gap:16px }
.grid.two{ grid-template-columns: repeat(2, minmax(0,1fr)) }
.grid.two.tight .row{ margin:8px 0 }
@media (max-width:980px){ .grid.two{ grid-template-columns:1fr } }

.card{
  background:linear-gradient(180deg, var(--panel), var(--panel-2));
  border:1px solid var(--line); border-radius: var(--radius); padding:14px 14px 10px; box-shadow: var(--shadow);
}
.card > p.hint{ color:var(--muted); margin:0 0 8px }

legend{
  padding:0 6px; font-weight:700; letter-spacing:.25px; color:#fff; margin-left:4px;
  font-family: Rajdhani, Inter, sans-serif;
}

.row{
  display:grid; grid-template-columns: 260px 1fr auto; gap:10px; align-items:center;
  margin:12px 0;
}
.row > span{ color:#c8d6f0 }
.row output{ font-variant-numeric: tabular-nums; color:#fff; opacity:.8 }

input[type="range"]{
  width:100%;
  background:transparent;
  appearance:none; height:24px;
}
input[type="range"]::-webkit-slider-runnable-track{
  height:6px; border-radius:999px; background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
input[type="range"]::-moz-range-track{
  height:6px; border-radius:999px; background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
input[type="range"]::-webkit-slider-thumb{
  appearance:none; width:18px; height:18px; border-radius:50%;
  background:#0b0f15; border:2px solid #a6ffd0; margin-top:-6px; box-shadow:0 0 0 4px rgba(177,255,107,.2);
}
input[type="range"]::-moz-range-thumb{
  width:18px; height:18px; border-radius:50%;
  background:#0b0f15; border:2px solid #a6ffd0; box-shadow:0 0 0 4px rgba(177,255,107,.2);
}

.chips{ display:flex; flex-wrap:wrap; gap:10px }
.chips.wrap{ gap:8px }
.divider{ flex-basis:100%; height:1px; background:var(--line); margin:4px 0 2px }

.chip-toggle,
.chip-radio{
  --bg: #121722; --bd: #24304a;
  display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border-radius:999px;
  background: var(--bg); border:1px solid var(--bd); cursor:pointer; color:#cfe0ff; font-weight:600;
  transition:.2s background, .2s border-color, .2s transform;
}
.chip-toggle:hover, .chip-radio:hover{ transform: translateY(-1px); border-color:#33507a }
.chip-toggle input, .chip-radio input{ position:absolute; opacity:0; pointer-events:none }
.chip-toggle input:checked ~ span,
.chip-radio input:checked ~ span{ color:#0d1520; }
.chip-toggle input:checked ~ span::before,
.chip-radio input:checked ~ span::before{ content:""; }
.chip-toggle:has(input:checked),
.chip-radio:has(input:checked){
  background: linear-gradient(180deg, #8ff7ff, #b6ff83);
  border-color: transparent;
}
.chip-toggle span, .chip-radio span{ position:relative; z-index:1 }

.segmented{
  display:inline-grid; grid-auto-flow:column; gap:0; background:#0c1018; border:1px solid var(--line); border-radius:999px;
}
.segmented.full{ width:100% }
.segmented input{ position:absolute; opacity:0; pointer-events:none }
.segmented label{
  padding:8px 12px; color:#bcd0f0; cursor:pointer; font-weight:700; letter-spacing:.2px; user-select:none;
}
.segmented label:first-of-type{ border-radius:999px 0 0 999px }
.segmented label:last-of-type{ border-radius:0 999px 999px 0 }
.segmented label:hover{ color:#fff }
.segmented:has(#cSimple:checked) label[for="cSimple"],
.segmented:has(#cNormal:checked) label[for="cNormal"],
.segmented:has(#cComplex:checked) label[for="cComplex"],
.segmented:has(#visPrivate:checked) label[for="visPrivate"],
.segmented:has(#visClose:checked) label[for="visClose"],
.segmented:has(#visPublic:checked) label[for="visPublic"]{
  background: linear-gradient(180deg, rgba(122,224,255,.25), rgba(177,255,107,.18));
  color:#fff;
}

details.card > summary{
  list-style:none; cursor:pointer; padding:10px 14px; margin:-10px -10px 10px;
  border-radius: var(--radius); position:relative; font-weight:700; letter-spacing:.25px; color:#e8f4ff;
}
details.card[open] > summary{ background: linear-gradient(180deg, rgba(122,224,255,.12), rgba(177,255,107,.06)); }
details.card > summary::marker{ display:none }
details.card > summary::after{
  content:""; position:absolute; right:12px; top:50%; width:10px; height:10px; border-right:2px solid var(--muted); border-bottom:2px solid var(--muted);
  transform: translateY(-60%) rotate(-45deg); transition:.2s;
}
details.card[open] > summary::after{ transform: translateY(-40%) rotate(45deg); border-color:var(--accent) }

.footer{
  max-width:1150px; margin:16px auto 60px; padding:0 16px; display:flex; gap:10px; justify-content:flex-end;
}
.btn{
  appearance:none; border:none; padding:12px 16px; border-radius:12px; font-weight:700; letter-spacing:.2px; cursor:pointer;
  color:#0d1520; background: linear-gradient(180deg, #8ff7ff, #b6ff83);
  box-shadow: var(--shadow); transition:.2s transform ease;
}
.btn:hover{ transform: translateY(-1px) }
.btn.ghost{
  background:transparent; color:#c7d5f5; border:1px solid var(--line);
}

