:root{
  --bg: #0b1220;
  --card: #0f1a33;
  --card2:#0c1630;
  --text: #e6e9f2;
  --muted:#b9c0d4;
  --faint:#7f8aa8;
  --border: rgba(255,255,255,.10);
  --accent:#7dd3fc;
  --accent2:#a78bfa;
  --good:#34d399;
  --warn:#fbbf24;
  --bad:#fb7185;
  --shadow: 0 12px 30px rgba(0,0,0,.35);
  --radius: 16px;
  --radius2: 12px;
  --max: 1100px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:var(--sans);
  color:var(--text);
  background:
    radial-gradient(1100px 700px at 10% 5%, rgba(125,211,252,.12), transparent 60%),
    radial-gradient(900px 600px at 90% 10%, rgba(167,139,250,.12), transparent 60%),
    radial-gradient(900px 650px at 50% 100%, rgba(52,211,153,.08), transparent 70%),
    var(--bg);
  line-height:1.5;
}
a{color:var(--accent); text-decoration:none}
a:hover{text-decoration:underline}
header{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(11,18,32,.75);
  border-bottom:1px solid var(--border);
}
.wrap{max-width:var(--max); margin:0 auto; padding:18px 16px;}
.topbar{
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}
.brand{
  display:flex;
  gap:12px;
  align-items:center;
  min-width:260px;
}
.logo{
  width:40px;height:40px;border-radius:12px;
  background: linear-gradient(135deg, rgba(125,211,252,.25), rgba(167,139,250,.25));
  border:1px solid var(--border);
  box-shadow: var(--shadow);
  display:grid;
  place-items:center;
  overflow:hidden;
}
.logo img{width:28px;height:28px;opacity:.95}
.titleblock{display:flex; flex-direction:column}
.titleblock .t1{font-weight:800; letter-spacing:.2px}
.titleblock .t2{font-size:.92rem; color:var(--muted)}
nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}
.chip{
  padding:8px 10px;
  border:1px solid var(--border);
  border-radius:999px;
  background: rgba(255,255,255,.04);
  color:var(--text);
  font-size:.92rem;
  cursor:pointer;
  user-select:none;
}
.chip:hover{background: rgba(255,255,255,.07)}
.chip.primary{
  border-color: rgba(125,211,252,.35);
  background: rgba(125,211,252,.10);
}
.chip.danger{
  border-color: rgba(251,113,133,.35);
  background: rgba(251,113,133,.10);
}

main .wrap{padding-top:22px; padding-bottom:44px;}
h1,h2,h3{line-height:1.15; margin:0 0 10px}
h1{font-size:1.9rem}
h2{font-size:1.4rem; margin-top:26px}
h3{font-size:1.08rem; margin-top:16px}
p{margin:10px 0; color:var(--text)}
.muted{color:var(--muted)}
.faint{color:var(--faint)}
.grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:16px;
}
@media (max-width: 980px){
  .grid{grid-template-columns: 1fr}
  nav{justify-content:flex-start}
  .brand{min-width:unset}
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:16px;
}
.card.flat{box-shadow:none; background: rgba(255,255,255,.03)}
.card .row{
  display:flex;
  gap:12px;
  align-items:flex-start;
  flex-wrap:wrap;
}
.pill{
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.15);
  font-size:.85rem;
  color:var(--muted);
}
.pill.good{border-color: rgba(52,211,153,.35); background: rgba(52,211,153,.10); color:#d6ffe9}
.pill.warn{border-color: rgba(251,191,36,.35); background: rgba(251,191,36,.10); color:#fff5d1}
.pill.bad{border-color: rgba(251,113,133,.35); background: rgba(251,113,133,.10); color:#ffe0e6}
.divider{height:1px; background: var(--border); margin:14px 0}
.kicker{
  font-family:var(--mono);
  font-size:.88rem;
  color:rgba(125,211,252,.95);
  letter-spacing:.2px;
}
ul{margin:10px 0 10px 18px; color:var(--text)}
li{margin:6px 0}
.two{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
@media (max-width: 720px){
  .two{grid-template-columns: 1fr}
}

details{
  border:1px solid var(--border);
  border-radius: var(--radius2);
  background: rgba(255,255,255,.03);
  padding:10px 12px;
  margin:10px 0;
}
details summary{
  cursor:pointer;
  font-weight:700;
}
details summary::-webkit-details-marker{display:none}
.note{
  border-left:4px solid rgba(125,211,252,.65);
  background: rgba(125,211,252,.08);
  padding:10px 12px;
  border-radius: 10px;
  margin:10px 0;
  color: var(--text);
}
.warnbox{
  border-left:4px solid rgba(251,191,36,.75);
  background: rgba(251,191,36,.10);
  padding:10px 12px;
  border-radius:10px;
  margin:10px 0;
}
.dangerbox{
  border-left:4px solid rgba(251,113,133,.75);
  background: rgba(251,113,133,.10);
  padding:10px 12px;
  border-radius:10px;
  margin:10px 0;
}

.progressWrap{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:8px;
}
.bar{
  flex: 1 1 240px;
  height:12px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.05);
  overflow:hidden;
}
.bar > div{
  height:100%;
  width:0%;
  background: linear-gradient(90deg, rgba(125,211,252,.95), rgba(167,139,250,.95));
  border-radius:999px;
  transition: width .25s ease;
}
.small{font-size:.9rem}
.btnrow{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px}
button{
  border:1px solid var(--border);
  background: rgba(255,255,255,.05);
  color:var(--text);
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
  font-weight:700;
}
button:hover{background: rgba(255,255,255,.08)}
button.primary{
  border-color: rgba(125,211,252,.35);
  background: rgba(125,211,252,.12);
}
button.danger{
  border-color: rgba(251,113,133,.35);
  background: rgba(251,113,133,.12);
}
.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
}
.table th, .table td{
  padding:10px 10px;
  border-bottom:1px solid var(--border);
  vertical-align:top;
}
.table th{
  text-align:left;
  font-size:.92rem;
  color:var(--muted);
  background: rgba(0,0,0,.20);
}
.table tr:last-child td{border-bottom:none}
.tag{
  display:inline-block;
  padding:3px 8px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.18);
  font-size:.82rem;
  color:var(--muted);
  margin-right:6px;
  margin-top:4px;
}
.tag.good{border-color: rgba(52,211,153,.35); background: rgba(52,211,153,.10); color:#d6ffe9}
.tag.warn{border-color: rgba(251,191,36,.35); background: rgba(251,191,36,.10); color:#fff5d1}

.stickyTools{
  position:fixed;
  right:14px;
  bottom:14px;
  display:flex;
  flex-direction:column;
  gap:10px;
  z-index:60;
}
.fab{
  width:46px;height:46px;
  border-radius:16px;
  border:1px solid var(--border);
  background: rgba(15,26,51,.85);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  cursor:pointer;
  display:grid;
  place-items:center;
  color:var(--text);
  font-weight:900;
}
.fab:hover{background: rgba(15,26,51,.95)}
.sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  border:0;
}

footer{
  border-top:1px solid var(--border);
  background: rgba(0,0,0,.20);
}
.foot{
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  color:var(--muted);
  font-size:.92rem;
}
.foot a{color:var(--accent)}
.printOnly{display:none}
@media print{
  header, .stickyTools, .noPrint{display:none !important}
  body{background:white;color:black}
  .card{box-shadow:none}
  .printOnly{display:block}
  a{color:black;text-decoration:underline}
}
