/* ---------- cards ---------- */
.card { background: var(--panel); border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; }
.card + .card, .grid-2 + .card { margin-top: 16px; }
.card-head { padding: 18px 20px 12px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.card-head .hint { margin: 4px 0 0; max-width: 80ch; }
.card-body { padding: 8px 20px 20px; }
.card-body.p0 { padding: 0 0 6px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.grid-2 > .card { min-width: 0; margin-top: 0; }
.dash-chart-wide { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }

/* ---------- KPI: one pulse panel, then grouped strips ---------- */
.kpi-row { display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px; }
.pulse { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--panel); border: 1px solid var(--border-soft); border-radius: 20px; overflow: hidden; }
.pulse-cell { padding: 22px 24px 20px; min-width: 0; }
.pulse-cell + .pulse-cell { border-left: 1px solid var(--border-soft); }
.pulse-cell .p-lbl { font-size: 12.5px; color: var(--text-dim); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.pulse-cell .p-lbl svg.i { width: 15px; height: 15px; color: var(--muted); }
.pulse-cell .p-val { font-size: clamp(28px, 3.1vw, 42px); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; margin-top: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pulse-cell.lead { background: linear-gradient(160deg, rgba(0, 92, 74, .5), rgba(0, 44, 36, .15) 70%); }
.pulse-cell.lead .p-val { color: #fff; }
.pulse-cell.lead .p-lbl svg.i { color: var(--accent); }
.strips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.strip { background: var(--panel); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 18px 20px; min-width: 0; }
.strip h4 { margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--text); display: flex; align-items: center; justify-content: space-between; }
.strip h4 span { font-weight: 500; color: var(--muted); font-size: 12px; }
.strip-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--border-soft); font-size: 13px; }
.strip-row:first-of-type { border-top: none; }
.strip-row span { color: var(--text-dim); min-width: 0; }
.strip-row b { font-size: 16px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.strip-row b.warn { color: var(--red); }
.splitbar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; gap: 3px; margin: 4px 0 10px; background: var(--bg-2); }
.splitbar i { display: block; height: 100%; border-radius: 4px; min-width: 3px; }
.splitbar .s-byok { background: var(--blue); }
.splitbar .s-managed { background: var(--accent); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--text-dim); flex-wrap: wrap; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 6px; }

/* Legacy single KPI tile, kept for any panel still rendering .kpi */
.kpi { background: var(--panel); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 16px 18px; }
.kpi .k-val { font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.kpi .k-lbl { font-size: 12px; color: var(--text-dim); margin-top: 3px; }
.kpi .k-top { display: flex; align-items: center; justify-content: space-between; }
.kpi .k-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; font-weight: 700; }

/* ---------- lists ---------- */
.list { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 11px 20px; font-size: 13px; transition: background .15s; }
.list-row + .list-row { border-top: 1px solid var(--border-soft); }
.list-row:hover { background: rgba(214, 255, 240, .025); }
.list-row .lr-main { flex: 1; min-width: 0; }
.list-row .lr-main b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .lr-sub { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .lr-time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.empty { padding: 30px 18px; text-align: center; color: var(--muted); font-size: 13px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  font-weight: 700; font-size: 12px; color: var(--accent-2); background: var(--forest); box-shadow: inset 0 0 0 1px rgba(41, 240, 180, .25); }

/* ---------- alerts ---------- */
.alert-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; margin-bottom: 6px; border-radius: 12px; background: var(--bg-2); font-size: 13px; }
.alert-item:last-child { margin-bottom: 0; }
.alert-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.a-amber { background: var(--amber); } .a-red { background: var(--red); } .a-blue { background: var(--blue); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl thead th { text-align: left; padding: 14px 16px 10px; font-size: 12px; color: var(--muted); font-weight: 600;
  border-bottom: 1px solid var(--border-soft); white-space: nowrap; background: var(--panel); }
.tbl tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; white-space: nowrap; }
.tbl tbody td:last-child { text-align: right; }
.tbl tbody td .btn + .btn { margin-left: 4px; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover { background: rgba(214, 255, 240, .03); }
.tbl tbody tr.clickable { cursor: pointer; }
.u-cell { display: flex; align-items: center; gap: 11px; }
.u-cell .u-meta { min-width: 0; }
.u-cell .u-meta b { display: block; font-weight: 600; }
.u-cell .u-meta span { color: var(--muted); font-size: 12px; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: -.01em; }
.key-chip { display: inline-flex; align-items: center; gap: 6px; }
.copy-btn { cursor: pointer; color: var(--muted); font-size: 12px; border: none; background: none; border-radius: 6px; padding: 2px 4px; font-family: inherit; }
.copy-btn:hover { color: var(--accent); }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--pill); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.badge-green { background: rgba(61, 220, 151, .13); color: #6ee7b3; }
.badge-red { background: rgba(255, 107, 107, .13); color: #ff9a9a; }
.badge-gray { background: rgba(174, 187, 183, .1); color: var(--text-dim); }
.badge-blue { background: rgba(122, 167, 255, .14); color: #a9c4ff; }
.badge-amber { background: rgba(242, 184, 75, .14); color: #f6cd7d; }
.pill-yes { color: #6ee7b3; } .pill-no { color: var(--muted); }

/* ---------- provider cards ---------- */
.prov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 16px; }
.prov { background: var(--panel); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 20px; transition: border-color .2s; min-width: 0; }
.prov.on { border-color: rgba(41, 240, 180, .28); }
.prov-top { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.prov-logo { width: 40px; height: 40px; border-radius: 12px; background: var(--forest); color: var(--accent-2); display: grid; place-items: center; font-weight: 700; font-size: 16px; }
.prov-name { font-weight: 700; font-size: 15px; }
.prov-auth { font-size: 12px; color: var(--muted); }
.prov-meta { display: flex; gap: 16px; margin: 12px 0; font-size: 12.5px; color: var(--text-dim); flex-wrap: wrap; }
.prov-meta b { color: var(--text); }
.prov-url { font-family: var(--mono); font-size: 11.5px; color: var(--muted); word-break: break-all; }
.prov-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; align-items: center; }
.prov-config { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-soft); }
.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: var(--raise); border-radius: 20px; transition: .25s var(--ease); cursor: pointer; }
.switch .track:before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #dfe7e4; border-radius: 50%; transition: .25s var(--ease); }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track:before { transform: translateX(18px); background: var(--accent-ink); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }

.provider-model-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 12px; }
.provider-model-table th, .provider-model-table td { padding: 8px; text-align: left; border-bottom: 1px solid var(--border-soft); }
.provider-model-table th { color: var(--muted); font-size: 11px; font-weight: 600; }
.provider-model-table input { padding: 6px 8px; font-size: 12px; border-radius: 8px; }

/* ---------- Plans ---------- */
.plan-name { font-size: 22px; font-weight: 700; letter-spacing: -.025em; }
.plan-cloud { font-size: 12.5px; color: var(--text-dim); margin-bottom: 16px; }
.plan-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.plan-fields label { font-size: 11.5px; color: var(--muted); margin: 0 0 5px; }
.plan-fields input, .plan-fields select { width: 100%; }
.plan-models-head { font-size: 12.5px; font-weight: 600; color: var(--text-dim); margin-bottom: 8px; }
.plan-weight-help { margin: -2px 0 8px; }
.plan-models { max-height: 240px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px;
  background: var(--bg-2); border: 1px solid var(--border-soft); border-radius: 12px; padding: 6px; }
.plan-model { display: flex; align-items: center; gap: 9px; font-size: 12.5px; cursor: pointer; margin: 0; padding: 7px 8px; border-radius: 8px; color: var(--text); font-weight: 500; }
.plan-model:hover { background: var(--panel-2); }
.plan-multiplier { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 11px; margin-left: auto; }
.plan-multiplier-input { width: 62px !important; padding: 4px 6px !important; font-size: 11.5px !important; border-radius: 7px !important; }
.plan-model em { color: var(--muted); font-style: normal; font-size: 11px; margin-left: 4px; }
.plan-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

/* ---------- subtabs: pill rail, white pill marks the selection ---------- */
.subtabs { display: flex; gap: 4px; background: var(--panel); border: 1px solid var(--border-soft); border-radius: var(--pill); padding: 4px; width: fit-content; max-width: 100%; margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.subtabs::-webkit-scrollbar { display: none; }
.subtab { border: none; background: none; color: var(--text-dim); padding: 8px 16px; border-radius: var(--pill); font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; white-space: nowrap; transition: background .2s var(--ease), color .2s; }
.subtab:hover { color: var(--text); }
.subtab.active { background: var(--text); color: #07100d; }
.subtab .tab-count { margin-left: 6px; display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--pill); background: var(--raise); color: var(--text-dim); font-size: 11px; font-weight: 600; }
.subtab.active .tab-count { background: rgba(7, 16, 13, .12); color: #07100d; }
.cards-col { display: flex; flex-direction: column; gap: 12px; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 12px; }
.hz-metric { position: relative; }
.hz-delta { position: absolute; top: 10px; right: 10px; font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: var(--pill); }
.hz-delta.up { background: rgba(61, 220, 151, .13); color: var(--green); }
.hz-delta.down { background: rgba(255, 107, 107, .13); color: var(--red); }
.hz-delta.flat { background: var(--bg-2); color: var(--text-dim); }
.hz-metric b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.03em; margin: 6px 0 2px; }
.hz-filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.hz-filters select { width: auto; background: var(--bg-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--pill); padding: 7px 12px; font-size: 12.5px; font-family: inherit; }
.hz-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.hz-seg { display: inline-flex; background: var(--bg-2); border: 1px solid var(--border-soft); border-radius: var(--pill); padding: 3px; }
.hz-seg button { border: none; background: none; color: var(--text-dim); padding: 6px 12px; border-radius: var(--pill); font-size: 12.5px; font-weight: 600; font-family: inherit; cursor: pointer; }
.hz-seg button.active { background: var(--text); color: #07100d; }
.hz-kpis { grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); }
.hz-split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 12px; }
.hz-problems { display: flex; flex-direction: column; gap: 2px; }
.hz-problem { display: grid; grid-template-columns: 116px minmax(0, 1fr) 80px 120px; align-items: center; gap: 12px; width: 100%;
  padding: 10px; border: none; background: none; color: var(--text);
  text-align: left; font-family: inherit; font-size: 13px; cursor: pointer; border-radius: 12px; transition: background .15s; }
.hz-problem:hover, .hz-problem.active { background: var(--panel-2); }
.hz-problem.active { box-shadow: inset 0 0 0 1px rgba(41, 240, 180, .3); }
.hz-problem-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.hz-problem-num { display: flex; flex-direction: column; text-align: right; white-space: nowrap; }
.hz-compare .tbl thead th, .hz-compare .tbl tbody td { padding: 10px; }
.hz-compare .mono { white-space: nowrap; margin-top: 4px; }
.hz-bar { height: 6px; background: var(--bg-2); border-radius: 3px; overflow: hidden; }
.hz-bar span { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.hz-more summary { cursor: pointer; list-style-position: inside; }
.hz-more[open] summary { margin-bottom: 12px; }
.hz-detail { border-color: rgba(41, 240, 180, .3); }
.dcard { background: var(--panel); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 18px 20px; min-width: 0; }
.dcard-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.dcard-head b { font-size: 14px; }
.dcard-body { font-size: 13.5px; color: var(--text-dim); white-space: pre-wrap; word-break: break-word; max-width: 90ch; }
.dcard-terminal { border-color: rgba(41, 240, 180, .22); }
.data-card-content.hidden { display: none; }
.dcard pre { font-family: var(--mono); background: var(--bg-2); border: 1px solid var(--border-soft); border-radius: 12px; padding: 12px; overflow-x: auto; font-size: 11.5px; color: var(--text-dim); margin: 8px 0 0; max-height: 240px; }
.dcard-actions { margin-top: 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dcard-toggle { color: var(--accent); font-size: 12.5px; font-weight: 600; cursor: pointer; margin-top: 10px; width: fit-content; }
.dcard-toggle:hover { color: var(--accent-2); }
.dcard-collapsible { margin-top: 10px; }
.dcard-collapsible.hidden { display: none; }

/* ---------- drawer ---------- */
.drawer-backdrop, .modal-backdrop { position: fixed; inset: 0; background: rgba(2, 5, 4, .66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 40; animation: fade .25s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.drawer { position: fixed; top: 10px; right: 10px; bottom: 10px; width: 500px; max-width: calc(100vw - 20px); background: var(--panel); border: 1px solid var(--border); border-radius: 20px; z-index: 50; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; animation: drawer-in .4s var(--ease); }
@keyframes drawer-in { from { transform: translateX(30px); opacity: 0; } }
.drawer-head, .modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border-soft); }
.drawer-head h3, .modal-head h3 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.015em; }
.drawer-body { padding: 18px 20px 28px; overflow-y: auto; flex: 1; }
.field-block { background: var(--bg-2); border: 1px solid var(--border-soft); border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; }
.field-block h4 { margin: 0 0 10px; font-size: 12.5px; font-weight: 700; color: var(--accent); }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 13px; }
.kv span { color: var(--muted); }
.kv b, .kv > :last-child { text-align: right; overflow-wrap: anywhere; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border-soft); }
.toggle-row:last-child { border-bottom: none; }
.toggle-row .tr-t { font-size: 13px; font-weight: 600; }
.toggle-row .tr-d { font-size: 12px; color: var(--muted); }

/* ---------- modal ---------- */
.modal-backdrop { display: grid; place-items: center; padding: 16px; }
.modal { width: 480px; max-width: 100%; max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow); animation: modal-in .35s var(--ease); }
@keyframes modal-in { from { transform: translateY(12px) scale(.98); opacity: 0; } }
.modal-body { padding: 6px 22px 20px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--border-soft); }
.hint { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }

/* ---------- toast ---------- */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(16px); opacity: 0;
  background: var(--text); color: #07100d; padding: 11px 20px; max-width: calc(100vw - 32px);
  border-radius: var(--pill); font-size: 13px; font-weight: 600; box-shadow: var(--shadow); z-index: 100; transition: .35s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: #ffdede; color: #5c0b0b; }

.spinner { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); padding: 34px; font-size: 13px; }
.spinner::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--raise); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Routing editor ---------- */
.routes { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.route-row { display: flex; align-items: center; gap: 8px; }
.route-pri { font-size: 11px; color: var(--muted); min-width: 64px; font-weight: 600; }
.route-row select { flex: 1; }

/* ---------- Charts ---------- */
canvas { max-width: 100%; }
.chart-box { position: relative; height: 240px; }
.chart-head-metrics { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; min-width: 0; text-align: right; }
.chart-model-leader { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-height: 20px; max-width: 100%; color: var(--text-dim); font-size: 11px; }
.chart-model-kicker { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.chart-model-logo { width: 18px; height: 18px; object-fit: contain; flex: 0 0 auto; }
.chart-model-logo-fallback { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; background: var(--raise); color: var(--text); font-size: 9px; font-weight: 700; flex: 0 0 auto; }
.chart-model-name { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 600; }

/* ---------- small helpers ---------- */
.text-muted { color: var(--muted); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-amber { color: var(--amber); }
.mb-0 { margin-bottom: 0; }

/* ---------- Announcements ---------- */
.ann-compose { background: var(--panel); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; display: flex; flex-direction: column; gap: 10px; }
.ann-compose-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ann-compose-row select { width: 160px; }
.ann-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-dim); cursor: pointer; margin: 0; }
.ann-check input { width: 16px; }
.ann-compose-row .btn-primary { margin-left: auto; }
.ann-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 18px; }
.ann-card-main { min-width: 0; flex: 1; }
.ann-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.ann-card-title { font-size: 14.5px; font-weight: 700; }
.ann-card-body { font-size: 13.5px; color: var(--text-dim); margin-top: 4px; white-space: pre-wrap; max-width: 80ch; }
.ann-time { font-size: 12px; color: var(--muted); }
.ann-card-actions { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; }
.ann-badge { font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: var(--pill); }
.ann-info { background: rgba(122, 167, 255, .14); color: #a9c4ff; }
.ann-release, .ann-success { background: var(--accent-soft); color: var(--accent-2); }
.ann-warning, .ann-pin { background: rgba(242, 184, 75, .14); color: #f6cd7d; }
.ann-draft { background: rgba(174, 187, 183, .1); color: var(--text-dim); }

/* ---------- More sheet (mobile) ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(2, 5, 4, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .2s var(--ease); }
.sheet { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 61; background: var(--panel); border: 1px solid var(--border); border-radius: 24px; padding: 10px; box-shadow: var(--shadow); animation: sheet-in .35s var(--ease); }
@keyframes sheet-in { from { transform: translateY(24px); opacity: 0; } }
.sheet-grip { width: 36px; height: 4px; border-radius: 4px; background: var(--raise); margin: 4px auto 10px; }
.sheet .nav-item { width: 100%; padding: 14px; font-size: 15px; }
.sheet-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--border-soft); margin-top: 6px; padding: 12px 8px 4px; }
