/* OccaStore portals: Brand Portal and Ops Hub. OccaStore Design System tokens, Command rail layout. */
@font-face { font-family: "Neue Haas Grotesk"; src: url(/fonts/NHG-55Rg.woff2) format("woff2"); font-weight: 100 450; font-display: swap }
@font-face { font-family: "Neue Haas Grotesk"; src: url(/fonts/NHG-65Md.woff2) format("woff2"); font-weight: 451 900; font-display: swap }
:root {
  --night: #202821; --lime: #e1fcac; --white: #f8f8f5; --dashing: #ebebe8; --line: #e0e0da; --line-strong: #c9cac2;
  --muted: #5c635b; --subtle: #8a8f86; --night-hover: #2c3730; --lime-press: #d0f394;
  --ok: #3d7a4c; --ok-soft: #e8f3e6; --warn: #8a5c12; --warn-soft: #f7efdf; --bad: #a53a2b; --bad-soft: #f6e6e2;
  /* names shared with mobile.css */
  --bg: var(--white); --card: #fff; --text: var(--night); --dark: var(--night); --acc: var(--lime); --acc-ink: var(--night); --side-ink: #f8f8f5;
  --good: var(--ok-soft); --good-t: var(--ok); --warn-t: var(--warn); --bad-t: var(--bad);
  --radius-card: 24px; --shadow: 0 4px 16px rgba(32,40,33,.08);
}
* { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body { margin: 0; font: 15px/1.5 "Neue Haas Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; min-height: 100vh }
a { color: inherit }
[hidden] { display: none !important }
button, input, select, textarea { font: inherit; color: inherit }
:focus-visible { outline: 3px solid #2b6cff; outline-offset: 2px }
h1 { font-size: 34px; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 6px }
h2 { font-size: 17px; font-weight: 600; margin: 0 0 12px }
h3 { font-size: 15px; font-weight: 600; margin: 18px 0 8px }
p { margin: 0 0 12px }
.muted { color: var(--muted) } .small { font-size: 13px } .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0) }

/* ---------- shell: rail, top bar, main ---------- */
body.shell { display: grid; grid-template-columns: 80px minmax(0, 1fr); grid-template-rows: auto 1fr; transition: grid-template-columns .18s ease }
.side { grid-column: 1; grid-row: 1 / -1; position: sticky; top: 0; height: 100vh; width: 80px; background: var(--night); color: #c9cac2; display: flex; flex-direction: column; gap: 10px; padding: 16px; overflow: hidden; z-index: 30; transition: width .18s ease }
.side .brand { display: none; color: #fff; padding: 4px 6px 8px } .side .brand img { height: 22px; display: block }
.rmark { width: 48px; height: 48px; flex: none; display: grid; place-items: center; margin-bottom: 6px } .rmark img { width: 30px; height: 30px }
#nav { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; margin: 0 -4px; padding: 0 4px } #nav::-webkit-scrollbar { display: none }
#nav button { flex: none; display: flex; align-items: center; gap: 12px; width: 48px; height: 44px; padding: 0 13px; border: 0; border-radius: 14px; background: none; color: inherit; cursor: pointer; white-space: nowrap; position: relative; overflow: hidden; text-align: left }
#nav button:hover:not([aria-current="page"]) { background: var(--night-hover); color: #fff }
#nav button[aria-current="page"] { background: var(--lime); color: var(--night); font-weight: 500 }
#nav .ni { flex: none } #nav .nl { opacity: 0; transition: opacity .12s ease }
#nav .count { position: absolute; top: 4px; left: 30px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--lime); color: var(--night); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--night) }
#nav button[aria-current="page"] .count { background: var(--night); color: var(--lime); box-shadow: none }
.navgroup { display: none; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); padding: 12px 12px 2px; white-space: nowrap }
.side .who { display: none; font-size: 12px; color: var(--subtle); padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.acct { flex: none; position: relative }
.acct-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; background: rgba(255,255,255,.06); border: 0; border-radius: 14px; padding: 8px; color: #fff; cursor: pointer; text-align: left }
.acct-btn:hover { background: rgba(255,255,255,.12) }
.acct .av { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--lime); color: var(--night); display: grid; place-items: center; font-weight: 700; font-size: 12px }
.acct-txt { display: none; min-width: 0; flex: 1; flex-direction: column; line-height: 1.25 } .acct-txt b { font-weight: 500; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap } .acct-txt span { font-size: 11px; opacity: .7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.acct-menu { position: absolute; left: 0; bottom: calc(100% + 6px); width: 232px; background: #fff; color: var(--night); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); padding: 6px; z-index: 40 }
.acct-menu [role=menuitem] { display: block; width: 100%; text-align: left; background: none; border: 0; font-size: 14px; padding: 9px 10px; border-radius: 8px; cursor: pointer; text-decoration: none }
.acct-menu [role=menuitem]:hover, .acct-menu [role=menuitem]:focus-visible { background: var(--white); outline: none }
@media (min-width: 861px) {
  .side:hover, .side:focus-within { width: 264px }
  body.shell:has(.side:hover), body.shell:has(.side:focus-within) { grid-template-columns: 264px minmax(0, 1fr) }
  :is(.side:hover, .side:focus-within) #nav button { width: 100% }
  :is(.side:hover, .side:focus-within) #nav .nl { opacity: 1 }
  :is(.side:hover, .side:focus-within) #nav .count { position: static; margin-left: auto; box-shadow: none }
  :is(.side:hover, .side:focus-within) .navgroup, :is(.side:hover, .side:focus-within) .who { display: block }
  :is(.side:hover, .side:focus-within) .acct-btn { justify-content: flex-start } :is(.side:hover, .side:focus-within) .acct-txt { display: flex }
  @media (max-height: 760px) { .side { padding: 12px 16px; gap: 8px } #nav { gap: 2px } #nav button { height: 40px } }
}
.ctop { grid-column: 2; grid-row: 1; position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; height: 76px; padding: 0 32px; background: #fff; border-bottom: 1px solid var(--line) }
.ctop-logo { height: 22px; width: auto; display: block; flex: none }
.ctop-label { font-size: 15px; color: var(--muted); padding-left: 14px; border-left: 1px solid var(--line); white-space: nowrap }
.ctop-fill { flex: 1 }
.pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 500; white-space: nowrap; background: var(--white); border: 1px solid var(--line) }
.pill.dark { background: var(--night); color: var(--lime); border-color: var(--night) }
.pill .av { width: 24px; height: 24px; border-radius: 50%; background: var(--lime); color: var(--night); display: grid; place-items: center; font-size: 10px; font-weight: 700 }
select.pill { appearance: none; padding-right: 30px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23202821' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; cursor: pointer }
main { grid-column: 2; grid-row: 2; padding: 28px 32px 64px; min-width: 0; outline: none; display: flex; flex-direction: column; gap: 20px }
.crumbs { font-size: 13px; color: var(--muted) } .crumbs a { text-decoration: none } .crumbs a:hover { text-decoration: underline }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap } .head p { margin: 0; color: var(--muted) }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center }

/* ---------- building blocks ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 20px 22px; min-width: 0 }
.card.flush { padding: 0; overflow: hidden } .card.flush > .card-h { padding: 18px 22px 4px }
.card.soft { background: var(--dashing); border-color: var(--dashing) }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px } .card-h h2 { margin: 0 }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px }
.s3 { grid-column: span 3 } .s4 { grid-column: span 4 } .s5 { grid-column: span 5 } .s6 { grid-column: span 6 } .s7 { grid-column: span 7 } .s8 { grid-column: span 8 } .s12 { grid-column: 1 / -1 }
@media (max-width: 1100px) { .s3, .s4, .s5, .s6, .s7, .s8 { grid-column: 1 / -1 } }
.stack { display: flex; flex-direction: column; gap: 20px; min-width: 0 }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; text-align: left; cursor: default }
button.kpi { cursor: pointer } button.kpi:hover { border-color: var(--night) }
.kpi span { display: block; font-size: 13px; color: var(--muted) } .kpi b { display: block; font-size: 26px; font-weight: 600; letter-spacing: -.01em; margin-top: 2px } .kpi small { display: block; font-size: 12px; color: var(--muted) }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--night); background: var(--night); color: var(--white); font-weight: 500; font-size: 15px; cursor: pointer; text-decoration: none; white-space: nowrap }
.btn:hover { background: var(--night-hover) } .btn:disabled { opacity: .45; cursor: not-allowed }
.btn.ghost { background: #fff; color: var(--night); border-color: var(--line-strong) } .btn.ghost:hover { background: var(--white) }
.btn.lime { background: var(--lime); color: var(--night); border-color: var(--lime) }
.btn.danger { background: #fff; color: var(--bad); border-color: #e7c2bb }
.btn.sm { min-height: 34px; padding: 0 14px; font-size: 14px }
.btn svg { flex: none }
.linkbtn { background: none; border: 0; padding: 0; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; cursor: pointer }
.tag { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 500; background: var(--dashing); color: var(--night); white-space: nowrap; line-height: 1.4 }
.tag.ok { background: var(--ok-soft); color: var(--ok) } .tag.warn { background: var(--warn-soft); color: var(--warn) } .tag.bad { background: var(--bad-soft); color: var(--bad) }
.tag.dark { background: var(--night); color: var(--white) } .tag.lime { background: var(--lime); color: var(--night) }
.chips { display: flex; gap: 8px; flex-wrap: wrap }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; cursor: pointer; white-space: nowrap }
.chip[aria-pressed="true"] { background: var(--night); color: var(--white); border-color: var(--night) } .chip .n { font-size: 12px; opacity: .7 }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--dashing) }
.seg button { border: 0; border-radius: 999px; padding: 6px 12px; font-size: 13px; background: none; cursor: pointer } .seg button[aria-pressed="true"] { background: #fff }
.bar { height: 8px; border-radius: 8px; background: var(--dashing); overflow: hidden } .bar i { display: block; height: 100%; border-radius: 8px; background: var(--night) }
.bar.warn i { background: #a8721c } .bar.bad i { background: var(--bad) }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--subtle) } .dot.bad { background: var(--bad) } .dot.warn { background: #a8721c } .dot.ok { background: var(--ok) }
.thumb { width: 44px; height: 44px; border-radius: 12px; background: var(--dashing); flex: none; display: grid; place-items: center; color: var(--line-strong); overflow: hidden } .thumb img { width: 100%; height: 100%; object-fit: contain; background: #fff }
.empty { padding: 36px 20px; text-align: center; color: var(--muted) }
.banner { border-radius: 18px; padding: 14px 18px; display: flex; gap: 12px; align-items: flex-start; font-size: 15px; background: var(--warn-soft); color: var(--warn) }
.banner.bad { background: var(--bad-soft); color: var(--bad) } .banner.ok { background: var(--ok-soft); color: var(--ok) } .banner.info { background: var(--dashing); color: var(--night) } .banner.lime { background: var(--lime); color: var(--night) }
.banner svg { flex: none; margin-top: 2px } .banner > div { flex: 1 }
.list { list-style: none; margin: 0; padding: 0 }
.list > li { display: flex; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line) } .list > li:last-child { border-bottom: 0 }
.list .grow { flex: 1; min-width: 0 } .list b { font-weight: 500 } .list .sub { font-size: 13px; color: var(--muted) }
button.rowlink { display: flex; gap: 12px; align-items: center; width: 100%; background: none; border: 0; padding: 0; text-align: left; cursor: pointer }
.row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line) } .row:last-child { border-bottom: 0 }
.row .t b { display: block; font-weight: 500 } .row .t span { font-size: 13px; color: var(--muted) }

/* tables */
.tw { overflow-x: auto }
table { width: 100%; border-collapse: collapse; font-size: 14px }
th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 500; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle }
tr:last-child td { border-bottom: 0 }
td.r, th.r { text-align: right } td.nw { white-space: nowrap }
tr.click { cursor: pointer } tr.click:hover td { background: #fbfbf8 } tr.on td { background: #f7fde9 }
.pcell { display: flex; gap: 12px; align-items: center; min-width: 220px } .pcell b { display: block; font-weight: 500 } .pcell span { font-size: 12px; color: var(--muted) }
.score { display: flex; align-items: center; gap: 10px; min-width: 130px } .score .bar { flex: 1 } .score span { font-size: 13px; font-variant-numeric: tabular-nums; width: 38px; text-align: right }

/* forms */
label.f { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 13px; color: var(--muted) }
label.f .lab { display: flex; justify-content: space-between; gap: 8px; align-items: center }
label.f .req::after { content: " *"; color: var(--bad) }
.in, label.f input, label.f select, label.f textarea { width: 100%; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 10px 12px; min-height: 44px; font-size: 15px; color: var(--night) }
label.f textarea { min-height: 96px; resize: vertical; line-height: 1.5 }
label.f select { appearance: none; padding-right: 36px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23202821' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center }
label.f .hint { font-size: 12px; color: var(--muted) } label.f .err { font-size: 12px; color: var(--bad) } label.f .wrn { font-size: 12px; color: var(--warn) }
.f.changed :is(input, select, textarea), .f.changed .multi, .f.changed .tbl { border-color: var(--night); background: #f7fde9 }
.f.error :is(input, select, textarea), .f.error .multi, .f.error .tbl { border-color: var(--bad) }
.f :is(input, select, textarea):disabled { background: var(--white); color: var(--muted) }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px } .fgrid .wide { grid-column: 1 / -1 }
.multi { display: flex; flex-wrap: wrap; gap: 8px; border: 1px solid var(--line); border-radius: 14px; padding: 10px; background: #fff }
.multi label { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14px; color: var(--night); cursor: pointer }
.multi input { width: 16px; height: 16px; min-height: 0; margin: 0; accent-color: var(--night) } .multi label:has(input:checked) { background: var(--night); color: #fff; border-color: var(--night) }
.yn { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--dashing); width: max-content }
.yn button { border: 0; border-radius: 999px; padding: 8px 16px; background: none; cursor: pointer; font-size: 14px } .yn button[aria-pressed="true"] { background: var(--night); color: #fff }
.tbl { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow-x: auto }
.tbl table td { padding: 6px 8px } .tbl table th { padding: 8px } .tbl input, .tbl select { width: 100%; min-width: 90px; border: 1px solid var(--line); border-radius: 10px; padding: 7px 9px; min-height: 36px; font-size: 14px; background: #fff }
.tbl .add { padding: 8px }
.switch { display: inline-flex; width: 42px; height: 24px; border-radius: 999px; background: var(--line-strong); padding: 2px; border: 0; cursor: pointer; flex: none; transition: background .15s }
.switch::after { content: ""; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s }
.switch[aria-checked="true"] { background: var(--night) } .switch[aria-checked="true"]::after { transform: translateX(18px); background: var(--lime) }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none }
.tabs button { border: 0; background: none; padding: 12px 0; font-size: 15px; color: var(--muted); cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent; display: inline-flex; gap: 6px; align-items: center }
.tabs button[aria-selected="true"] { color: var(--night); font-weight: 500; border-bottom-color: var(--night) }
.tabs .tdot { width: 7px; height: 7px; border-radius: 50%; background: var(--night) } .tabs .tdot.bad { background: var(--bad) }
.checklist { list-style: none; margin: 0; padding: 0 } .checklist li { display: flex; gap: 10px; align-items: center; padding: 7px 0; font-size: 14px }
.tick { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--dashing) } .tick.on { background: var(--lime) }
.checklist li.off { color: var(--muted) }
.ring { display: block }
.diff { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px } .diff s { color: var(--muted) } .diff b { font-weight: 500; background: #f7fde9; border-radius: 6px; padding: 1px 6px; white-space: pre-wrap }
.timeline { list-style: none; margin: 0; padding: 0 } .timeline li { display: flex; gap: 12px; padding-bottom: 16px; position: relative }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 16px; bottom: 0; width: 2px; background: var(--line) } .timeline li:last-child::before { display: none }
.timeline .dot { margin-top: 5px; width: 12px; height: 12px; background: var(--night) } .timeline .dot.bad { background: var(--bad) } .timeline .dot.ok { background: var(--ok) }
.timeline b { font-weight: 500; font-size: 14px } .timeline .meta { font-size: 12px; color: var(--muted) }
.timeline .msg { margin-top: 6px; background: var(--white); border-radius: 12px; padding: 10px 12px; font-size: 14px; white-space: pre-wrap }
.typecards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px }
.typecard { border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; background: #fff; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 2px }
.typecard b { font-weight: 500 } .typecard span { font-size: 13px; color: var(--muted) } .typecard[aria-pressed="true"] { background: var(--night); color: #fff; border-color: var(--night) } .typecard[aria-pressed="true"] span { color: #c9cac2 }
.search { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; height: 44px; background: #fff; color: var(--muted); min-width: 220px; flex: 1 1 260px; max-width: 420px }
.search input { border: 0; outline: none; flex: 1; min-width: 0; background: transparent; font-size: 15px; color: var(--night) }
.sticky-act { position: sticky; bottom: 0; z-index: 10; display: flex; gap: 10px; justify-content: flex-end; padding: 14px 0 0; background: linear-gradient(transparent, var(--bg) 30%) }

/* dialogs and toasts */
dialog.modal { border: 0; border-radius: 22px; padding: 22px 24px; width: min(620px, calc(100% - 32px)); max-height: calc(100vh - 48px); overflow: auto; box-shadow: 0 32px 80px rgba(32,40,33,.24) }
dialog.modal::backdrop { background: rgba(32,40,33,.55) } dialog.modal h2 { font-size: 20px; margin: 0 0 14px }
dialog.modal .acts { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px } dialog.modal .fgrid { grid-template-columns: 1fr 1fr } dialog.modal .err { color: var(--bad); font-size: 14px; min-height: 1em; margin-top: 8px }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 100; background: var(--night); color: #fff; border-radius: 14px; padding: 12px 16px; font-size: 14px; max-width: 420px; opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; pointer-events: none }
.toast.on { opacity: 1; transform: none } .toast.bad { background: var(--bad) }
.loading { padding: 40px; text-align: center; color: var(--muted) }

/* sign-in */
.signin { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) }
.signin .pane { background: var(--night); color: var(--white); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px }
.signin .pane img { height: 28px; width: auto; align-self: flex-start }
.signin .pane h1 { font-size: 52px; line-height: 1; letter-spacing: -.035em; margin: 0 0 18px; max-width: 520px } .signin .pane h1 em { font-style: normal; color: var(--lime) }
.signin .pane ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; color: #c9cac2; max-width: 460px }
.signin .pane li { display: flex; gap: 12px } .signin .pane li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); margin-top: 8px; flex: none }
.signin .formside { display: flex; align-items: center; justify-content: center; padding: 48px 24px }
.signin form { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 16px } .signin form h2 { font-size: 28px; font-weight: 500; letter-spacing: -.02em; margin: 0 }
.signin .codein { letter-spacing: .4em; font-size: 26px !important; text-align: center }
.signin .err { color: var(--bad); font-size: 14px; min-height: 1.2em }
@media (max-width: 860px) {
  .signin { grid-template-columns: 1fr } .signin .pane { padding: 28px 24px; gap: 20px } .signin .pane h1 { font-size: 34px } .signin .pane ul { display: none }
  .ctop { display: none } main { padding: 18px 14px 80px !important } h1 { font-size: 26px }
  .head { align-items: flex-start } .grid12 { gap: 14px }
  .side .brand { display: block !important } .side .rmark { display: none } .side .navgroup, .side .who { display: block } .acct-txt { display: flex } .acct-btn { justify-content: flex-start }
  #nav button { width: 100% } #nav .nl { opacity: 1 } #nav .count { position: static; margin-left: auto; box-shadow: none }
  .sticky-act { margin: 0 -14px; padding: 12px 14px; background: var(--bg); border-top: 1px solid var(--line) } .sticky-act .btn { flex: 1 }
  dialog.modal .fgrid { grid-template-columns: 1fr }
}
@media print { .side, .ctop, .toast, .sticky-act { display: none !important } body.shell { display: block } }
/* fixes */
main:focus, main:focus-visible { outline: none }
label.f .multi input { width: 16px; height: 16px; min-height: 0; padding: 0; border-radius: 4px; flex: none }
label.f .tbl select[data-basis] { min-height: 36px; padding: 6px 30px 6px 10px; font-size: 13px; width: auto }

/* ---------- legal pages, terms gate, environment bar ---------- */
body.legal { background: var(--white); }
.legal-doc { max-width: 760px; margin: 0 auto; padding: 48px 24px 80px; line-height: 1.6; }
.legal-doc h1 { font-size: 34px; font-weight: 500; margin: 6px 0 18px; }
.legal-doc h2 { font-size: 19px; font-weight: 500; margin: 30px 0 8px; }
.legal-doc li { margin: 4px 0; }
.legal-doc a { color: inherit; }
.legal-logo { height: 32px; margin-bottom: 34px; }
.legal-doc .eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--muted); margin: 0; }
.envbar { position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 1000; background: #f6c84c; color: #202821; font-size: 13px; font-weight: 500; padding: 5px 16px; border-radius: 0 0 10px 10px; box-shadow: var(--shadow); white-space: nowrap; pointer-events: none; }
.terms-gate { width: min(620px, 100%); box-sizing: border-box; margin: 8vh auto; padding: 0 20px; }
.terms-gate .card { padding: 28px; }
.terms-gate h1 { font-size: 28px; font-weight: 500; margin: 0 0 8px; }
.terms-gate ul { padding-left: 20px; line-height: 1.6; }
.terms-gate .check { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; }
.terms-gate .check input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.signin-legal { margin-top: 22px; font-size: 12px; color: var(--muted); }
.signin-legal a { color: inherit; }

/* ---------- permission editor ---------- */
label.check { display: flex; gap: 10px; align-items: center; cursor: pointer; }
label.check input, label.check.inline input { width: 18px; height: 18px; flex: none; margin: 0; accent-color: var(--night); }
label.check.inline { display: inline-flex; gap: 6px; margin: 4px 16px 4px 0; font-size: 14px; }
#tabs section.off .tw { opacity: .45; }
#tabs .card-h select.pill { font-size: 13px; padding: 6px 10px; }
