:root {
  --bg: #07080f;
  --bg2: #0b0d1a;
  --glass: rgba(22, 26, 44, 0.55);
  --glass-brd: rgba(130, 150, 220, 0.14);
  --text: #e7ebff;
  --muted: #9aa3c8;
  --dim: #757fa8;
  --neon: #7c5cff;
  --neon2: #18e0d8;
  --neon3: #ff5cc8;
  --good: #35e08b;
  --warn: #ffc24b;
  --bad: #ff5d6c;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  overflow: hidden;
}

body { display: flex; }

/* animated aurora background */
#aurora {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(50% 45% at 15% 12%, rgba(124, 92, 255, 0.20), transparent 70%),
    radial-gradient(48% 45% at 88% 18%, rgba(24, 224, 216, 0.16), transparent 70%),
    radial-gradient(60% 55% at 70% 95%, rgba(255, 92, 200, 0.13), transparent 70%);
  filter: blur(8px);
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
  0% { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(-2%, 2%, 0) scale(1.08); }
}

/* ---- sidebar ---- */
.sidebar {
  position: relative; z-index: 2;
  width: 264px; flex-shrink: 0; height: 100vh;
  padding: 22px 16px;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(14,16,30,0.92), rgba(8,9,17,0.92));
  border-right: 1px solid var(--glass-brd);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 20px; }
.brand-bolt {
  font-size: 26px;
  filter: drop-shadow(0 0 10px var(--neon));
  animation: pulseGlow 3s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%,100% { filter: drop-shadow(0 0 8px var(--neon)); }
  50% { filter: drop-shadow(0 0 18px var(--neon2)); }
}
.brand-title { font-weight: 700; letter-spacing: .3px; }
.brand-sub { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: 1.5px; }

.nav { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.nav-item, .project-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border: none; border-radius: 12px;
  background: transparent; color: var(--muted);
  font-size: 13.5px; font-weight: 500; cursor: pointer; text-align: left;
  width: 100%; transition: all .18s ease;
}
.nav-item .ni { width: 18px; text-align: center; opacity: .8; }
.nav-item:hover, .project-item:hover { background: rgba(124,92,255,0.10); color: var(--text); }
.nav-item.active, .project-item.active {
  background: linear-gradient(90deg, rgba(124,92,255,0.22), rgba(124,92,255,0.04));
  color: #fff;
  box-shadow: inset 2px 0 0 var(--neon), 0 0 18px rgba(124,92,255,0.18);
}

.nav-label {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--dim); padding: 8px 12px 6px;
}
.project-nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.project-item { justify-content: space-between; }
.project-item .pi-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-item .pi-badge {
  font-size: 10px; padding: 2px 7px; border-radius: 20px;
  background: rgba(53,224,139,0.15); color: var(--good); font-weight: 600;
  display: flex; align-items: center; gap: 4px;
}
.project-item .pi-cost { font-size: 11px; color: var(--dim); }

.sidebar-footer {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 10px 2px; font-size: 12px; color: var(--muted);
  border-top: 1px solid var(--glass-brd); margin-top: 8px;
}
.live-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--dim);
}
.live-dot.on { background: var(--good); box-shadow: 0 0 0 0 rgba(53,224,139,.6); animation: ping 1.8s infinite; }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(53,224,139,.55); }
  70% { box-shadow: 0 0 0 8px rgba(53,224,139,0); }
  100% { box-shadow: 0 0 0 0 rgba(53,224,139,0); }
}

/* ---- main ---- */
.main { position: relative; z-index: 1; flex: 1; height: 100vh; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px; border-bottom: 1px solid var(--glass-brd);
}
.crumb { font-size: 18px; font-weight: 700; letter-spacing: .2px; }
.topbar-right { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 12px; }
.refresh-tick { display: inline-block; transition: transform .6s ease; }
.refresh-tick.spin { transform: rotate(360deg); }

.view { flex: 1; overflow-y: auto; padding: 26px 28px 60px; }

/* ---- cards & grid ---- */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 22px; }
.card {
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  padding: 18px 20px;
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
  opacity: .5;
}
.kpi { display: flex; flex-direction: column; gap: 8px; }
.kpi-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--muted); display:flex; align-items:center; gap:7px; }
.kpi-icon { font-size: 14px; }
.kpi-value { font-size: 30px; font-weight: 800; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.kpi-value.neon { background: linear-gradient(90deg, var(--neon2), var(--neon)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpi-value.pink { background: linear-gradient(90deg, var(--neon3), var(--neon)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpi-sub { font-size: 12px; color: var(--dim); }

.row { display: grid; gap: 16px; margin-bottom: 22px; }
.row.two { grid-template-columns: 1.6fr 1fr; }
.row.split { grid-template-columns: 1fr 1fr; }
@media (max-width: 1100px) { .row.two, .row.split { grid-template-columns: 1fr; } }

.card-title { font-size: 13px; font-weight: 700; letter-spacing: .3px; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; }
.card-title .muted { font-weight: 500; color: var(--dim); font-size: 11px; }

/* ---- charts ---- */
.chart-wrap { width: 100%; }
svg { display: block; width: 100%; overflow: visible; }
.chart-ymax { position: absolute; top: 2px; left: 4px; font-size: 9.5px; color: var(--dim); pointer-events: none; }
.chart-avg { position: absolute; right: 4px; transform: translateY(-50%); font-size: 9.5px; color: #ffc24b; opacity: .8; pointer-events: none; }
.chart-cross { position: absolute; top: 0; bottom: 18px; width: 1px; background: rgba(231,235,255,.35); pointer-events: none; transform: translateX(-0.5px); }
.chart-dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #18e0d8; box-shadow: 0 0 8px rgba(24,224,216,.9); pointer-events: none; transform: translate(-50%, -50%); }
.chart-tip { position: absolute; pointer-events: none; background: rgba(10,11,22,.95); border: 1px solid var(--glass-brd); border-radius: 8px; padding: 5px 9px; font-size: 11px; white-space: nowrap; box-shadow: 0 6px 20px rgba(0,0,0,.5); z-index: 5; }
.chart-tip .ct-d { margin-left: 7px; font-size: 10px; }
.chart-tip .ct-d.up { color: var(--good); }
.chart-tip .ct-d.dn { color: var(--bad); }
.chart-tip .ct-row { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 10.5px; color: var(--muted); }
.chart-tip .ct-row b { color: var(--text); margin-left: auto; }
.chart-tip .ct-sw { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.axis-label { fill: var(--dim); font-size: 10px; }

/* donut legend */
.legend { display: flex; flex-direction: column; gap: 9px; margin-top: 4px; }
.legend-item { display: flex; align-items: center; gap: 9px; font-size: 12.5px; }
.legend-swatch { width: 11px; height: 11px; border-radius: 3px; flex-shrink: 0; }
.legend-name { flex: 1; color: var(--text); }
.legend-val { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---- project table ---- */
.app-list { display: flex; flex-direction: column; gap: 10px; }
.app-row {
  display: grid; grid-template-columns: 1.8fr 1.3fr 1.1fr .9fr .9fr .9fr; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 14px; cursor: pointer;
  background: rgba(255,255,255,0.02); border: 1px solid transparent;
  transition: all .16s ease;
}
.app-row:hover { background: rgba(124,92,255,0.10); border-color: var(--glass-brd); transform: translateX(3px); }
.app-name { font-weight: 600; display: flex; align-items: center; gap: 9px; }
.app-name small { color: var(--dim); font-weight: 400; display:block; font-size: 11px; }
.app-meta { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.app-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,0.06); overflow: hidden; }
.app-bar > span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--neon), var(--neon2)); }
.spark { width: 100%; height: 30px; display: flex; align-items: center; }
.spark.muted { font-size: 12px; color: var(--dim); justify-content: center; }
.hist { display: flex; gap: 8px; align-items: flex-end; height: 150px; }
.hist-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; cursor: default; }
.hist-count { font-size: 11px; color: var(--text); font-variant-numeric: tabular-nums; height: 16px; }
.hist-bar-wrap { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.hist-bar { width: 100%; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--neon2), var(--neon)); transition: opacity .15s; }
.hist-col:hover .hist-bar { opacity: .8; }
.hist-lab { font-size: 9.5px; color: var(--dim); margin-top: 6px; text-align: center; line-height: 1.2; }

.chip { font-size: 10.5px; padding: 2px 8px; border-radius: 20px; font-weight: 600; letter-spacing: .3px; }
.chip.live { background: rgba(53,224,139,0.16); color: var(--good); display:inline-flex; align-items:center; gap:5px; }
.chip.gh { background: rgba(124,92,255,0.16); color: #b9a8ff; }
.chip.local { background: rgba(255,194,75,0.14); color: var(--warn); }
.chip.dim { background: rgba(255,255,255,0.05); color: var(--dim); }
.chip-dot { width:6px; height:6px; border-radius:50%; background: var(--good); animation: ping 1.6s infinite; display:inline-block; }
.chip-dot.off { background: var(--muted); animation: none; }

/* ---- approvals / sessions feed ---- */
.feed { display: flex; flex-direction: column; gap: 8px; }
.feed-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  border-radius: 12px; background: rgba(255,255,255,0.02); border: 1px solid var(--glass-brd);
}
.feed-kind { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 8px; flex-shrink: 0; min-width: 78px; text-align: center; }
.feed-kind.Notification { background: rgba(255,194,75,0.16); color: var(--warn); }
.feed-kind.PreToolUse { background: rgba(124,92,255,0.14); color: #b9a8ff; }
.feed-body { flex: 1; min-width: 0; }
.feed-body .fb-top { font-size: 12.5px; font-weight: 600; }
.feed-body .fb-sum { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: 'Cascadia Code', 'Consolas', monospace; }
.feed-time { font-size: 11px; color: var(--dim); flex-shrink: 0; }

.allow-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.allow-tool { }
.allow-tool h4 { font-size: 13px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.allow-tool h4 .count { font-size: 11px; color: var(--dim); font-weight: 500; }
.rule { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 9px; background: rgba(255,255,255,0.03); margin-bottom: 5px; font-size: 12px; font-family: 'Cascadia Code','Consolas',monospace; }
.rule code { color: var(--neon2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rule .rm { cursor: pointer; color: var(--dim); border: none; background: none; font-size: 14px; opacity: 0; transition: opacity .15s; }
.rule:hover .rm { opacity: 1; }
.rule .rm:hover { color: var(--bad); }

/* ---- forms ---- */
.field { display: flex; flex-direction: column; gap: 8px; max-width: 560px; }
.field label { font-size: 12px; color: var(--muted); }
input[type=text], input[type=password] {
  background: rgba(0,0,0,0.3); border: 1px solid var(--glass-brd); border-radius: 11px;
  padding: 12px 14px; color: var(--text); font-size: 13px; font-family: inherit; outline: none;
  transition: border .15s, box-shadow .15s;
}
input[type=email], input[type=number], input:not([type]) {
  background: rgba(0,0,0,0.3); border: 1px solid var(--glass-brd); border-radius: 11px;
  padding: 12px 14px; color: var(--text); font-size: 13px; font-family: inherit; outline: none;
}
input:focus { border-color: var(--neon); box-shadow: 0 0 0 3px rgba(124,92,255,0.15); }
/* Buttons & selects don't inherit text color by default → they were rendering
   black on the dark theme. Make them readable. */
button { color: inherit; font-family: inherit; }
select {
  background: rgba(0,0,0,0.3); border: 1px solid var(--glass-brd); border-radius: 11px;
  color: var(--text); padding: 9px 12px; font-size: 13px; font-family: inherit; outline: none; cursor: pointer;
}
select:focus { border-color: var(--neon); box-shadow: 0 0 0 3px rgba(124,92,255,0.15); }
select option { background: #14162a; color: var(--text); }
::placeholder { color: var(--dim); opacity: 1; }

/* ---- guide ---- */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; align-items: start; }
.guide-intro { color: var(--muted); font-size: 13px; line-height: 1.6; margin-bottom: 10px; }
.guide-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 9px; font-size: 13px; line-height: 1.55; }
.guide-steps li { padding-left: 4px; }
.guide-steps li::marker { color: var(--neon); font-weight: 700; }
.guide-code { font-family: 'Cascadia Code','Consolas',monospace; font-size: 12px; background: rgba(0,0,0,.32); color: var(--neon2); padding: 2px 7px; border-radius: 6px; word-break: break-all; }
.guide-card a { color: var(--neon2); }
.guide-installed { margin-top: 12px; font-size: 13px; color: var(--good); font-weight: 600; }
.broker-url { font-family: 'Cascadia Code','Consolas',monospace; font-size: 13.5px; color: var(--neon2); word-break: break-all; text-decoration: none; }
.broker-url:hover { text-decoration: underline; }

/* ---- mobile / PWA ---- */
.topbar-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.menu-btn { display: none; background: rgba(255,255,255,.06); border: 1px solid var(--glass-brd); color: var(--text); width: 38px; height: 38px; border-radius: 10px; font-size: 18px; cursor: pointer; flex-shrink: 0; }
.nav-backdrop { display: none; position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.5); }
.nav-backdrop.show { display: block; }

@media (max-width: 820px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  /* sidebar becomes an off-canvas drawer */
  .sidebar { position: fixed; top: 0; left: 0; height: 100vh; z-index: 60; transform: translateX(-100%); transition: transform .22s ease; box-shadow: 0 0 50px rgba(0,0,0,.6); }
  .sidebar.open { transform: none; }
  .main { width: 100%; }
  .topbar { padding: max(12px, env(safe-area-inset-top)) 14px 12px; }
  .crumb { font-size: 16px; }
  .updated-at { display: none; }
  .view { padding: 16px 13px 84px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
  .kpi-value { font-size: 24px; }
  .row, .row.two, .row.split { grid-template-columns: 1fr !important; }
  .card { padding: 14px 14px; }
  /* applications list: name + cost only on phones */
  .app-row { grid-template-columns: 1fr auto; gap: 10px; padding: 13px 14px; }
  .app-row > :nth-child(2), .app-row > :nth-child(3), .app-row > :nth-child(5), .app-row > :nth-child(6) { display: none; }
  /* workbench: rail above, focused pane below */
  .bench-shell { flex-direction: column; height: auto; }
  .bench-rail { width: 100%; max-height: 32vh; }
  .bench-rail-list { max-height: 22vh; }
  .bench-main { min-height: 60vh; }
  .bench-pane { height: 60vh; }
  .mode-opts { flex-direction: column; }
  .mode-opt { min-width: 0; }
  /* overlays */
  .modal-overlay { padding: 8px; }
  .modal { width: 100%; height: 94vh; }
  .auth-overlay { padding: 14px; }
  .approval-dock { right: 10px; left: 10px; width: auto; bottom: 10px; }
  .update-bar { left: 10px; right: 10px; transform: none; top: 10px; }
  .detail-head { gap: 12px; }
}
@media (max-width: 470px) {
  .kpi-grid { grid-template-columns: 1fr; }
}
.btn {
  background: linear-gradient(90deg, var(--neon), #6a4cff); color: #fff; border: none;
  padding: 11px 20px; border-radius: 11px; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: transform .12s, box-shadow .15s; align-self: flex-start;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(124,92,255,0.4); }
.btn.ghost { background: rgba(255,255,255,0.05); }
.btn.stop { background: linear-gradient(90deg, #ff5c7a, #e0354f); }
.btn.stop:hover { box-shadow: 0 8px 22px rgba(224,53,79,0.4); }
.add-rule { display: flex; gap: 8px; margin-top: 12px; max-width: 520px; }
.add-rule input { flex: 1; }

/* ---- detail header ---- */
.detail-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.detail-head h1 { font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.detail-head .path { font-size: 12px; color: var(--dim); font-family: 'Cascadia Code','Consolas',monospace; margin-top: 4px; }
.gh-stats { display: flex; gap: 22px; flex-wrap: wrap; }
.gh-stat { text-align: center; }
.gh-stat .v { font-size: 20px; font-weight: 700; }
.gh-stat .l { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--dim); }

.session-row { display: grid; grid-template-columns: 2.4fr 1fr 1fr 1fr 0.8fr; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 11px; font-size: 12.5px; }
.session-row:hover { background: rgba(255,255,255,0.03); }
.session-row .st { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.commit { display: flex; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 12.5px; }
.commit code { color: var(--neon2); font-size: 11px; }
.commit .cmsg { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.commit .cdate { color: var(--dim); font-size: 11px; }

.ci-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 20px; font-size: 11.5px; font-weight: 600; }
.ci-pill.good { background: rgba(53,224,139,0.15); color: var(--good); }
.ci-pill.bad { background: rgba(255,93,108,0.15); color: var(--bad); }
.ci-pill.run { background: rgba(255,194,75,0.15); color: var(--warn); }

/* ---- account charts ---- */
.vbars { display: flex; align-items: flex-end; gap: 4px; height: 140px; padding-top: 10px; }
.vbar-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; gap: 6px; }
.vbar { width: 100%; max-width: 24px; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, var(--neon2), var(--neon)); min-height: 2px; transition: height .45s cubic-bezier(.2,.8,.2,1); }
.vbar-col:hover .vbar { filter: brightness(1.25); box-shadow: 0 0 12px rgba(124,92,255,.5); }
.vbar-lab { font-size: 9px; color: var(--dim); }
.hbars { display: flex; flex-direction: column; gap: 9px; }
.hbar-row { display: grid; grid-template-columns: 96px 1fr 52px; gap: 10px; align-items: center; font-size: 12px; }
.hbar-name { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { height: 8px; border-radius: 8px; background: rgba(255,255,255,.06); overflow: hidden; }
.hbar-fill { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--neon), var(--neon3)); transition: width .45s ease; }
.hbar-val { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.gauge { height: 14px; border-radius: 10px; background: rgba(255,255,255,.07); overflow: hidden; }
.gauge-fill { display: block; height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--good), var(--warn), var(--bad)); transition: width .6s ease; }
.stat-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-chip { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--glass-brd); }
.sc-ico { font-size: 22px; }
.sc-val { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sc-lab { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

/* ---- heatmap + stacked bar ---- */
.heatmap { display: flex; flex-direction: column; gap: 3px; overflow-x: auto; }
.hm-row { display: flex; gap: 3px; align-items: center; }
.hm-axis { margin-bottom: 2px; }
.hm-day { width: 34px; flex-shrink: 0; font-size: 10px; color: var(--dim); text-align: right; padding-right: 6px; }
.hm-h { flex: 1; min-width: 14px; font-size: 9px; color: var(--dim); text-align: center; }
.hm-cell { flex: 1; min-width: 14px; aspect-ratio: 1; border-radius: 3px; transition: transform .1s; }
.hm-cell:hover { transform: scale(1.25); outline: 1px solid var(--neon2); }
.stack-bar { display: flex; height: 26px; border-radius: 8px; overflow: hidden; background: rgba(255,255,255,.05); }
.stack-seg { height: 100%; transition: width .5s ease; min-width: 2px; }

/* ---- session chat modal ---- */
.modal-overlay { position: fixed; inset: 0; z-index: 50; background: rgba(4,5,12,.72); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 30px; animation: fadeIn .2s ease; }
.modal { width: min(860px, 100%); height: min(86vh, 900px); display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(18,20,38,.96), rgba(10,11,22,.98)); border: 1px solid var(--glass-brd); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--glass-brd); }
.modal-title { font-weight: 700; font-size: 15px; }
.modal-x { background: rgba(255,255,255,.06); border: none; color: var(--muted); width: 30px; height: 30px; border-radius: 9px; cursor: pointer; font-size: 14px; }
.modal-x:hover { background: rgba(255,93,108,.2); color: var(--bad); }
/* Clean, document-style transcript (à la the VS Code Claude chat): full-width
   turns with a small role label, no heavy bubbles. */
.chat-body { flex: 1; overflow-y: auto; padding: 18px 22px; display: flex; flex-direction: column; gap: 20px; }
.chat-msg { max-width: 100%; font-size: 13.5px; line-height: 1.72; border: none; background: none; padding: 0; }
.chat-msg::before { display: block; font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 700; margin-bottom: 7px; }
.cb-user::before { content: 'You'; color: var(--neon); }
.cb-assistant::before { content: 'Claude'; color: var(--neon2); }
.cb-user { background: rgba(124,92,255,.07); border: 1px solid rgba(124,92,255,.16); border-radius: 12px; padding: 12px 15px; }
.cb-assistant { padding-left: 1px; }
.cb-text { white-space: pre-wrap; word-break: break-word; }
.cb-text.muted { color: var(--dim); }
.cb-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cb-tool { font-size: 10.5px; padding: 2px 8px; border-radius: 7px; background: rgba(24,224,216,.12); color: var(--neon2); }
.cb-status { font-size: 11px; color: var(--dim); margin-top: 10px; font-variant-numeric: tabular-nums; }
.cb-stream { display: flex; flex-direction: column; gap: 10px; }
/* ---- add-application popup ---- */
.addapp-seg { display: flex; gap: 8px; padding: 14px 20px 0; }
.addapp-tab { flex: 1; padding: 10px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--glass-brd); color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 600; }
.addapp-tab.active { background: rgba(124,92,255,.16); border-color: var(--neon); color: #fff; }
.addapp-body { padding: 18px 20px 22px; overflow-y: auto; }
.addapp-form { display: flex; flex-direction: column; gap: 7px; }
.addapp-form label { font-size: 12px; color: var(--muted); margin-top: 6px; }
.addapp-form input[type=text], .addapp-form select { width: 100%; }
.addapp-check { display: flex; align-items: center; gap: 8px; font-size: 13px !important; color: var(--text) !important; cursor: pointer; }
.addapp-check input { width: auto; }
.addapp-hint { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin-bottom: 6px; }
.addapp-hint code { color: var(--neon2); font-size: 11.5px; }
.addapp-msg { font-size: 12.5px; margin-top: 10px; color: var(--good); min-height: 16px; }
.addapp-msg.err { color: var(--bad); }
.addapp-gh { font-size: 12px; margin-top: 10px; }
.addapp-gh.good { color: var(--good); }
.addapp-gh.warn { color: var(--warn); }

/* ---- update / restart banner ---- */
.update-bar { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 95; display: flex; align-items: center; gap: 14px; padding: 9px 12px 9px 18px; background: linear-gradient(180deg, rgba(26,28,50,.98), rgba(14,15,28,.99)); border: 1px solid var(--neon); border-radius: 12px; box-shadow: 0 14px 44px rgba(0,0,0,.55); font-size: 13px; font-weight: 500; animation: toastIn .25s ease; }
.update-x { background: rgba(255,255,255,.06); border: none; color: var(--muted); width: 26px; height: 26px; border-radius: 8px; cursor: pointer; font-size: 12px; }
.update-x:hover { background: rgba(255,93,108,.2); color: var(--bad); }

/* ---- in-app approval prompts ---- */
.approval-dock { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; gap: 12px; width: min(380px, calc(100vw - 40px)); }
.approval-toast { background: linear-gradient(180deg, rgba(24,26,46,.98), rgba(14,15,28,.99)); border: 1px solid rgba(255,194,75,.45); border-radius: 14px; box-shadow: 0 16px 44px rgba(0,0,0,.55); padding: 14px 15px; animation: toastIn .22s ease; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.at-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.at-badge { font-weight: 700; font-size: 12.5px; color: var(--warn); }
.at-proj { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.at-tool { font-size: 12.5px; margin-bottom: 11px; line-height: 1.5; }
.at-tool code { display: block; margin-top: 5px; font-family: 'Cascadia Code','Consolas',monospace; font-size: 11.5px; color: var(--neon2); background: rgba(0,0,0,.3); padding: 6px 9px; border-radius: 7px; max-height: 90px; overflow: auto; word-break: break-all; }
.at-actions { display: flex; gap: 7px; flex-wrap: wrap; }
/* Claude-Code-style tool call: ⏺ Tool(args) + collapsible output */
.tool-call { border-left: 2px solid rgba(124,92,255,.5); padding-left: 10px; }
.tool-call.err { border-left-color: var(--bad); }
.tc-head { display: flex; align-items: baseline; gap: 7px; cursor: pointer; font-size: 12.5px; }
.tc-mark { color: var(--neon); font-size: 11px; }
.tc-name { font-weight: 700; color: var(--text); }
.tc-arg { color: var(--muted); font-family: 'Cascadia Code', 'Consolas', monospace; font-size: 11.5px; word-break: break-all; flex: 1; }
.tc-toggle { color: var(--dim); font-size: 10px; }
.tc-out { margin-top: 6px; padding: 9px 11px; background: rgba(0,0,0,.32); border-radius: 8px; font-family: 'Cascadia Code', 'Consolas', monospace; font-size: 11.5px; line-height: 1.5; color: var(--muted); white-space: pre-wrap; word-break: break-word; max-height: 320px; overflow: auto; }
.tool-call.err .tc-out { color: #ffb4bb; }
.chat-input { padding: 14px 18px; border-top: 1px solid var(--glass-brd); }
.session-row.clickable { cursor: pointer; }
.session-row.clickable:hover { background: rgba(124,92,255,.10); }
.approve-actions { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.mode-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--glass-brd); }
.mode-opts { display: flex; gap: 12px; flex-wrap: wrap; }
.mode-opt { flex: 1; min-width: 200px; text-align: left; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--glass-brd); cursor: pointer; transition: all .15s ease; }
.mode-opt:hover { border-color: var(--neon); background: rgba(124,92,255,.08); }
.mode-opt.on { border-color: var(--good); background: rgba(53,224,139,.12); }
.mode-opt:disabled { opacity: .45; cursor: not-allowed; }
.mode-opt .mo-t { font-weight: 700; font-size: 13.5px; }
.mode-opt .mo-d { font-size: 12px; color: var(--muted); margin-top: 3px; }
.mode-toggle { background: rgba(255,255,255,.06); border: 1px solid var(--glass-brd); color: var(--muted); padding: 5px 11px; border-radius: 9px; cursor: pointer; font-size: 12px; font-weight: 600; }
.mode-toggle.write { background: rgba(53,224,139,.16); border-color: rgba(53,224,139,.4); color: var(--good); }
.btn.ghost { background: rgba(255,255,255,.05); border: 1px solid var(--glass-brd); }
.btn.ghost:hover { background: rgba(124,92,255,.14); border-color: var(--neon); }

/* ---- auth gate ---- */
.auth-overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; background: radial-gradient(1200px 600px at 50% -10%, rgba(124,92,255,.18), transparent), rgba(4,5,12,.96); backdrop-filter: blur(8px); }
.auth-card { width: min(400px, 100%); background: linear-gradient(180deg, rgba(18,20,38,.96), rgba(10,11,22,.98)); border: 1px solid var(--glass-brd); border-radius: 18px; box-shadow: var(--shadow); padding: 30px 28px; }
.auth-brand { font-size: 34px; text-align: center; }
.auth-title { font-size: 20px; font-weight: 800; text-align: center; margin-top: 8px; }
.auth-sub { font-size: 13px; color: var(--muted); text-align: center; margin: 6px 0 20px; line-height: 1.5; }
.auth-msg { font-size: 12.5px; color: var(--bad); margin-top: 12px; min-height: 16px; text-align: center; }
.auth-toggle { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 16px; }
.auth-link { color: var(--neon2); cursor: pointer; font-weight: 600; }
.auth-link:hover { text-decoration: underline; }
.owner-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 14px; border-top: 1px solid var(--glass-brd); }
.owner-email { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.owner-logout { background: rgba(255,255,255,.06); border: 1px solid var(--glass-brd); color: var(--muted); font-size: 11px; padding: 4px 10px; border-radius: 8px; cursor: pointer; flex-shrink: 0; }
.owner-logout:hover { background: rgba(255,93,108,.18); color: var(--bad); }
.machine-row { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-top: 1px solid var(--glass-brd); }
.machine-label { font-size: 11px; color: var(--muted); flex-shrink: 0; text-transform: uppercase; letter-spacing: .04em; }
.machine-select { flex: 1; min-width: 0; background: rgba(255,255,255,.06); border: 1px solid var(--glass-brd); color: var(--text); font-size: 12px; padding: 5px 8px; border-radius: 8px; cursor: pointer; }
.machine-select:focus { outline: none; border-color: var(--neon2); }

/* ---- workbench (multi-session: rail + focused conversation) ---- */
.bench-shell { display: flex; gap: 16px; height: calc(100vh - 132px); min-height: 520px; }
.bench-rail { width: 268px; flex-shrink: 0; display: flex; flex-direction: column; background: rgba(255,255,255,.025); border: 1px solid var(--glass-brd); border-radius: 14px; overflow: hidden; }
.bench-rail-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 14px; border-bottom: 1px solid var(--glass-brd); font-weight: 700; font-size: 14px; }
.bench-newform { padding: 0 12px; }
.bench-newform .newform { padding: 12px 0; }
.bench-rail-list { flex: 1; overflow-y: auto; padding: 6px; }
.rail-item { display: flex; align-items: center; gap: 10px; padding: 10px 11px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; }
.rail-item:hover { background: rgba(255,255,255,.04); }
.rail-item.active { background: rgba(124,92,255,.14); border-color: rgba(124,92,255,.35); }
.rail-item.unread .rail-name::after { content: '●'; color: var(--neon2); font-size: 9px; margin-left: 6px; vertical-align: middle; }
.rail-body { flex: 1; min-width: 0; }
.rail-name { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-status { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-x { background: none; border: none; color: var(--dim); cursor: pointer; font-size: 12px; padding: 2px 5px; border-radius: 6px; opacity: 0; flex-shrink: 0; }
.rail-item:hover .rail-x { opacity: 1; }
.rail-x:hover { background: rgba(255,93,108,.2); color: var(--bad); }
.rail-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.rail-dot.idle { background: var(--dim); }
.rail-dot.run { background: #5b9bff; box-shadow: 0 0 7px #5b9bff; animation: pulse 1.3s ease-in-out infinite; }
.rail-dot.await { background: var(--warn); box-shadow: 0 0 7px var(--warn); animation: pulse 1s ease-in-out infinite; }
.rail-dot.done { background: var(--good); }
.rail-dot.err { background: var(--bad); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.bench-main { flex: 1; min-width: 0; }
.bench-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: rgba(255,255,255,.02); border: 1px dashed var(--glass-brd); border-radius: 14px; }
.bench-pane { display: flex; flex-direction: column; height: 100%; background: linear-gradient(180deg, rgba(18,20,38,.7), rgba(10,11,22,.85)); border: 1px solid var(--glass-brd); border-radius: 14px; overflow: hidden; }
.bench-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--glass-brd); }
.bench-title { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bench-body { flex: 1; padding: 16px; overflow-y: auto; }
.bench-input { padding: 12px 14px; border-top: 1px solid var(--glass-brd); }

/* ---- workbench layouts: focus / split / grid ---- */
.bench-rail-sub { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--glass-brd); }
.layout-seg { display: inline-flex; gap: 2px; background: rgba(255,255,255,.05); border: 1px solid var(--glass-brd); border-radius: 9px; padding: 2px; }
.layout-btn { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 14px; line-height: 1; padding: 4px 9px; border-radius: 7px; }
.layout-btn:hover { background: rgba(255,255,255,.06); color: var(--text); }
.layout-btn.active { background: rgba(124,92,255,.2); color: #cbb8ff; }
/* Split = two columns, Grid = tile every session; both scroll vertically and
   give each pane a bounded height so many sessions stay readable side by side. */
.bench-main.layout-split, .bench-main.layout-grid { display: grid; gap: 14px; overflow-y: auto; align-content: start; padding-right: 2px; }
.bench-main.layout-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bench-main.layout-grid { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
.bench-main.layout-split .bench-pane, .bench-main.layout-grid .bench-pane { height: clamp(340px, 46vh, 560px); }
.bench-pane.is-active { border-color: rgba(124,92,255,.55); box-shadow: 0 0 0 1px rgba(124,92,255,.3); }
.pane-max { width: 28px; height: 28px; background: rgba(255,255,255,.06); border: 1px solid var(--glass-brd); color: var(--muted); border-radius: 8px; cursor: pointer; font-size: 13px; line-height: 1; }
.pane-max:hover { background: rgba(124,92,255,.14); border-color: var(--neon); color: var(--text); }
.pane-max.on { background: rgba(124,92,255,.2); color: #cbb8ff; }
/* Maximize is only meaningful when panes are tiled — hide it in single-pane focus. */
.bench-main.layout-focus .pane-max { display: none; }

/* ---- billing links ---- */
.billing-links { display: flex; flex-direction: column; gap: 8px; }
.billing-link { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--glass-brd); text-decoration: none; color: var(--text); transition: all .15s ease; }
.billing-link:hover { background: rgba(124,92,255,.10); border-color: var(--neon); transform: translateX(3px); text-decoration: none; }
.bl-ico { font-size: 20px; }
.bl-body { flex: 1; min-width: 0; }
.bl-title { font-size: 13.5px; font-weight: 600; }
.bl-sub { font-size: 11.5px; color: var(--muted); }
.bl-arrow { color: var(--dim); font-size: 15px; }

/* ---- query console ---- */
.q-card { border-color: rgba(124,92,255,0.28); }
.q-bar { display: flex; gap: 10px; align-items: flex-end; }
textarea.q-input {
  flex: 1; resize: vertical; min-height: 46px; background: rgba(0,0,0,0.32);
  border: 1px solid var(--glass-brd); border-radius: 12px; color: var(--text);
  font-family: inherit; font-size: 13.5px; padding: 12px 14px; outline: none;
  transition: border .15s, box-shadow .15s;
}
textarea.q-input:focus { border-color: var(--neon); box-shadow: 0 0 0 3px rgba(124,92,255,0.15); }
.q-hint { font-size: 11px; color: var(--dim); margin-top: 7px; }
.q-out:not(:empty) { margin-top: 14px; }
.q-status { font-size: 12px; color: var(--neon2); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.q-answer {
  white-space: pre-wrap; line-height: 1.65; font-size: 13.5px; color: var(--text);
  background: rgba(0,0,0,0.22); border-radius: 12px; padding: 0;
}
.q-answer:not(:empty) { padding: 14px 16px; border: 1px solid var(--glass-brd); }

/* ---- fleet (computers + their apps, grouped by repo) ---- */
.fleet-machines { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.fleet-machine { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--glass-brd); min-width: 180px; }
.fleet-machine.off { opacity: .55; }
.fleet-machine .fm-os { font-size: 17px; }
.fm-name { font-size: 13px; font-weight: 600; }
.fm-sub { font-size: 11px; color: var(--muted); }
.fleet-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.fleet-app.shared { border-color: rgba(24,224,216,.32); }
.fa-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.fa-name { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.fa-badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.chip.platform { background: rgba(124,92,255,.14); border-color: rgba(124,92,255,.32); }
.fa-machines { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.fa-mchip { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text); background: rgba(255,255,255,.04); border: 1px solid var(--glass-brd); border-radius: 999px; padding: 4px 10px; }
.fa-mchip.off { opacity: .5; }
.fa-live { color: var(--good); font-weight: 600; }
.fa-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.fa-actions .btn { padding: 8px 14px; font-size: 12.5px; }
.build-card { max-width: 720px; width: 92vw; text-align: left; }
.build-log { max-height: 52vh; overflow-y: auto; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }

.empty { text-align: center; color: var(--dim); padding: 50px 20px; font-size: 13px; }
.empty .big { font-size: 40px; margin-bottom: 12px; opacity: .6; }
a { color: var(--neon2); text-decoration: none; }
a:hover { text-decoration: underline; }
.fade-in { animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: rgba(124,92,255,0.25); border-radius: 10px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---- Save / cost optimizer ------------------------------------------------ */
.btn-soft { background: rgba(124,92,255,.16); color: #cdd6ff; }
.btn-soft:hover { background: rgba(124,92,255,.28); }
.btn-ghost { background: rgba(255,255,255,.05); color: var(--muted); border: 1px solid var(--glass-brd); }
.btn-ghost:hover { background: rgba(255,255,255,.09); color: #fff; }
.btn.is-on, .btn-soft.is-on, .btn-ghost.is-on { opacity: .65; cursor: default; box-shadow: none; transform: none; }
.btn.is-on:hover { transform: none; box-shadow: none; }

.opt-banner .opt-note { color: var(--muted); font-size: 13px; line-height: 1.65; margin: 6px 0 0; }
.opt-card { position: relative; border-left: 3px solid var(--glass-brd); }
.opt-card.sev-high { border-left-color: var(--bad); }
.opt-card.sev-med { border-left-color: var(--warn); }
.opt-card.sev-low { border-left-color: var(--neon2); }
.opt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.opt-title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; color: #fff; }
.opt-icon { font-size: 19px; }
.opt-tags { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.opt-sev { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; letter-spacing: .02em; }
.opt-sev.sev-high { background: rgba(255,93,108,.16); color: #ff8a96; }
.opt-sev.sev-med { background: rgba(255,194,75,.16); color: var(--warn); }
.opt-sev.sev-low { background: rgba(24,224,216,.13); color: var(--neon2); }
.opt-save { font-size: 13px; font-weight: 800; color: var(--good); background: rgba(53,224,139,.12); padding: 4px 11px; border-radius: 20px; }
.opt-body { margin-top: 12px; }
.opt-metric { font-size: 12.5px; font-weight: 600; color: var(--neon2); margin-bottom: 6px; }
.opt-detail { color: #c6cdef; font-size: 13.5px; line-height: 1.65; margin: 0; }
.opt-estnote, .opt-foot { color: var(--muted); font-size: 11.5px; margin-top: 8px; line-height: 1.5; }
.opt-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.opt-actions .btn { align-self: auto; padding: 9px 16px; font-size: 12.5px; }
.opt-list { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.opt-row { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(0,0,0,.22); border: 1px solid var(--glass-brd); border-radius: 10px; padding: 9px 12px; }
.opt-row-label { font-size: 13px; color: #e6e9ff; }
.opt-row-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.opt-row .btn { align-self: auto; padding: 6px 14px; font-size: 12px; }
.opt-dismiss { position: absolute; top: 12px; right: 14px; background: none; border: none; color: var(--muted);
  font-size: 15px; cursor: pointer; line-height: 1; opacity: .5; transition: opacity .15s; }
.opt-dismiss:hover { opacity: 1; color: var(--bad); }
.opt-chip { background: rgba(255,255,255,.05); border: 1px solid var(--glass-brd); color: var(--muted);
  font-size: 12px; padding: 7px 12px; border-radius: 9px; cursor: pointer; text-align: left; }
.opt-chip:hover { background: rgba(124,92,255,.14); color: #fff; }

/* ---- network access / reachable URL / QR ---------------------------------- */
.lan-warn { background: rgba(255,194,75,.1); border: 1px solid rgba(255,194,75,.3);
  color: #ffd98a; font-size: 12.5px; line-height: 1.6; padding: 11px 13px; border-radius: 10px; margin: 10px 0; }
.net-pill { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px;
  background: rgba(255,255,255,.06); color: var(--muted); margin-left: 8px; }
.net-pill.on { background: rgba(53,224,139,.14); color: var(--good); }
.qr-box { background: #fff; padding: 8px; border-radius: 12px; line-height: 0; flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.qr-box svg { display: block; width: 150px; height: 150px; }
