
/* ui.css — shared styles (pure CSS, no JS) */
:root{
  --bg:#0f1115;
  --panel:#171a21;
  --panel-2:#1d212b;
  --ink:#e6e8ef;
  --muted:#a7adbe;
  --accent:#7cf0ff;
  --accent-2:#ffb86b;
  --ok:#37d67a;
  --warn:#ff8c69;
  --danger:#ff6b6b;
  --stroke:rgba(255,255,255,.12);
  --ring:0 0 0 3px rgba(124,240,255,.2);
  --shadow:0 10px 25px rgba(0,0,0,.35);
  --radius:18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background: radial-gradient(1200px 800px at 20% -10%,#1f2532 0%,transparent 60%) ,radial-gradient(1000px 1000px at 120% 120%,#0c1018 0%,#0f1115 50%);
  color:var(--ink);
  font:16px/1.45 "Inter", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, "Helvetica Neue", Arial, "Apple Color Emoji","Segoe UI Emoji";
}

.app{
  max-width:980px;
  margin:48px auto;
  padding:24px;
  display:grid;
  gap:24px;
}

.card{
  background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02));
  border:1px solid var(--stroke);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}

.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 20px;
  border-bottom:1px solid var(--stroke);
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.02));
}
.brand{
  display:flex;align-items:center;gap:12px;
  letter-spacing:.2em;
  font-weight:800;
}
.brand .logo{
  width:36px;height:36px;border-radius:50%;
  background: conic-gradient(from 200deg at 60% 40%, var(--accent), #68b3ff, #b06bff);
  border:1px solid var(--stroke);
  box-shadow:inset 0 2px 12px rgba(0,0,0,.45), 0 0 0 3px rgba(255,255,255,.04);
}

.badges{display:flex;gap:8px;align-items:center}
.badge{
  position:relative;display:inline-grid;place-items:center;
  width:36px;height:36px;border-radius:12px;
  background:var(--panel-2); border:1px solid var(--stroke);
}
.badge::after{
  content:attr(data-count);
  position:absolute;top:-6px;right:-6px;
  background:linear-gradient(180deg,#ff5e7a,#ff8c69);
  border:2px solid #0f1115;
  color:#fff;padding:2px 6px;border-radius:999px;
  font-size:12px;font-weight:700;
}

/* Sections */
.section{padding:18px 20px;border-bottom:1px dashed var(--stroke)}
.section:last-child{border-bottom:none}

/* Collapsibles */
details{
  background:rgba(255,255,255,.02);
  border:1px solid var(--stroke);
  border-radius:14px;
  padding:14px 14px 0;
}
summary{
  list-style:none;
  cursor:pointer;
  font-weight:700;
  letter-spacing:.04em;
  color:var(--ink);
}
summary::-webkit-details-marker{display:none}
details[open]{box-shadow:var(--ring)}
details .content{padding:12px 2px 16px}

/* Inputs */
input[type="text"], input[type="number"], textarea, select{
  width:100%;
  background:var(--panel-2);
  border:1px solid var(--stroke);
  color:var(--ink);
  border-radius:12px;
  padding:12px 14px;
  outline:none;
  transition:.2s border, .2s box-shadow;
}
input::placeholder, textarea::placeholder{color:var(--muted)}
input:focus, textarea:focus, select:focus{border-color:var(--accent); box-shadow:var(--ring)}

.controls{display:flex;gap:10px;flex-wrap:wrap}
.btn{
  appearance:none; border:none; cursor:pointer;
  background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.02));
  border:1px solid var(--stroke);
  color:var(--ink); font-weight:700; letter-spacing:.04em;
  padding:10px 14px;border-radius:12px; transition:.2s transform,.2s background;
}
.btn:hover{transform:translateY(-1px); background:rgba(255,255,255,.08)}
.btn.accent{background:linear-gradient(180deg,rgba(124,240,255,.25),rgba(124,240,255,.1)); border-color:rgba(124,240,255,.6)}
.btn.good{background:linear-gradient(180deg,rgba(55,214,122,.25),rgba(55,214,122,.1)); border-color:rgba(55,214,122,.6)}
.btn.warn{background:linear-gradient(180deg,rgba(255,140,105,.25),rgba(255,140,105,.1)); border-color:rgba(255,140,105,.6)}

.grid{display:grid; gap:12px}
.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}

/* Pills (radio as buttons) */
.pills{display:flex;gap:8px;flex-wrap:wrap}
.pill input{display:none}
.pill label{
  display:inline-block; padding:8px 12px; border-radius:999px;
  border:1px solid var(--stroke); background:rgba(255,255,255,.03);
  cursor:pointer; font-weight:600; color:var(--muted)
}
.pill input:checked + label{color:var(--ink); border-color:var(--accent); background:rgba(124,240,255,.12)}

/* Lists */
.list{display:grid; gap:8px}
.list .item{
  display:flex; align-items:center; justify-content:space-between;
  background:var(--panel-2); border:1px solid var(--stroke); border-radius:12px;
  padding:10px 12px;
}

.kv{display:flex; align-items:center; gap:8px}
.kv .key{opacity:.7; min-width:110px}
.kv .bar{flex:1;height:8px;border-radius:6px;background:rgba(255,255,255,.08);overflow:hidden}
.kv .bar > i{display:block;height:100%;background:linear-gradient(90deg,var(--accent),#68b3ff);width:var(--v,50%)}

/* Sliders */
.range{display:grid; gap:8px}
.range input[type="range"]{width:100%}

/* Footer buttons row */
.footer-actions{display:flex; gap:12px; justify-content:flex-end; padding:16px 20px; border-top:1px solid var(--stroke); background:rgba(255,255,255,.02)}
.footer-actions .btn{min-width:140px}
.small{font-size:.9rem;color:var(--muted)}
.hr{height:1px;background:var(--stroke); margin:8px 0 14px}
.center{display:grid; place-items:center}
.note{font-size:.875rem;color:var(--muted)}
/* End ui.css */
