@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 { --bg:#f4f5f1; --card:#fff; --text:#0d0f10; --muted:#5d6259; --line:#e3e5df; --acc:#c6ff00; --dark:#0d0f10; --warn:#fff1e5; --warn-t:#7a3a00; --good:#eef7d6; --good-t:#2f4a00; --bad:#fdecec; --bad-t:#8a1c1c }
* { box-sizing: border-box } body { margin: 0; font: 15px/1.45 "Neue Haas Grotesk", Inter, system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); display: grid; grid-template-columns: 240px 1fr; min-height: 100vh }
.side { background: var(--dark); color: #cfd3cb; padding: 18px 12px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto }
.brand { color: #fff; font-weight: 800; letter-spacing: .08em; font-size: 14px; padding: 0 8px } .brand b { color: var(--acc) } .brand i { font-style: normal; background: var(--acc); color: var(--dark); border-radius: 5px; padding: 1px 6px; font-size: 10px; margin-left: 4px }
nav { display: flex; flex-direction: column; gap: 2px; flex: 1 } nav button { text-align: left; background: none; border: 0; color: inherit; font: inherit; padding: 9px 12px; border-radius: 10px; cursor: pointer }
nav button[aria-current="page"] { background: var(--acc); color: var(--acc-ink, var(--dark)); font-weight: 600 } nav button:hover:not([aria-current="page"]) { background: #1c2021 }
.who { font-size: 12px; padding: 0 8px; opacity: .8 }
main { padding: 26px 30px 60px; max-width: 1240px; outline: none; min-width: 0 }
h1 { font-size: 26px; margin: 0 0 4px } h2 { font-size: 16px; margin: 0 0 10px } .muted { color: var(--muted); font-size: 13px; margin: 0 0 14px }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 18px }
.kpi, .card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px } .kpi span { font-size: 12px; color: var(--muted) } .kpi b { display: block; font-size: 22px; margin-top: 4px }
.card { margin-bottom: 16px; overflow-x: auto }
table { width: 100%; border-collapse: collapse; font-size: 14px } th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap } td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: middle } tr:last-child td { border-bottom: 0 } td.r, th.r { text-align: right; white-space: nowrap }
.btn { background: var(--acc); color: var(--dark); border: 0; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; min-height: 36px; white-space: nowrap } .btn.ghost { background: #fff; border: 1px solid var(--line) } .btn:disabled { opacity: .45; cursor: not-allowed }
.btn:focus-visible, input:focus-visible, select:focus-visible, nav button:focus-visible { outline: 3px solid #2b6cff; outline-offset: 2px }
.bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px } input, select { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; min-height: 36px; background: #fff }
.form { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; align-items: end } label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted) }
.tag { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 9px; background: #eceee9; white-space: nowrap } .tag.good { background: var(--good); color: var(--good-t) } .tag.warn { background: var(--warn); color: var(--warn-t) } .tag.bad { background: var(--bad); color: var(--bad-t) }
.code { font: 13px ui-monospace, monospace; background: #f0f2ec; border-radius: 8px; padding: 8px 10px; word-break: break-all; margin-top: 8px }
.toast { position: fixed; right: 24px; bottom: 24px; background: var(--dark); color: #fff; border-radius: 12px; padding: 10px 14px; font-size: 14px; opacity: 0; transition: opacity .2s; pointer-events: none; max-width: 420px } .toast.on { opacity: 1 }
a { color: inherit }
[hidden] { display: none !important }
/* Portal additions */
.side .gym { margin: 0 8px; } .side .gym select { width: 100%; background: #1c2021; color: #fff; border-color: #333 }
.kpi small { display: block; font-size: 12px; margin-top: 2px; color: var(--muted) } .kpi small.up { color: var(--good-t) } .kpi small.down { color: var(--bad-t) }
.pills { display: flex; gap: 6px; flex-wrap: wrap } .pills button { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; min-height: 34px }
.pills button[aria-pressed="true"] { background: var(--dark); color: #fff; border-color: var(--dark) }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px } @media (max-width: 1100px) { .two { grid-template-columns: 1fr } }
.chart { position: relative } .chart svg { display: block; width: 100%; height: auto } .chart .tip { position: absolute; pointer-events: none; background: var(--dark); color: #fff; font-size: 12px; border-radius: 8px; padding: 6px 9px; white-space: nowrap; transform: translate(-50%, -110%); opacity: 0; transition: opacity .1s } .chart .tip.on { opacity: 1 }
.chart .bar { fill: var(--dark) } .chart .bar.hot { fill: #3b4140 } .chart .grid { stroke: var(--line) } .chart text { fill: var(--muted); font-size: 11px }
.signin { max-width: 460px; margin: 12vh auto; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px }
.check { display: flex; gap: 8px; align-items: center; color: var(--text); font-size: 14px; flex-direction: row } .check input { min-height: auto }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 14px; margin-bottom: 12px }
details summary { cursor: pointer; font-size: 13px; color: var(--muted) }
@media (max-width: 760px) { body { grid-template-columns: 1fr } .side { position: static; height: auto } nav { flex-direction: row; flex-wrap: wrap } main { padding: 18px 14px 40px } }
a.btn { text-decoration: none; display: inline-flex; align-items: center }

.sslogo { height: 15px; width: auto; display: inline-block; vertical-align: middle }

.who.ver { font-size: 11px; opacity: .5; margin-top: -8px }

/* Wide tables scroll sideways inside their card instead of squashing. A shadow shows there's more to the side. */
.card { scrollbar-width: thin; scrollbar-color: #c3c7bd transparent;
  background: linear-gradient(90deg, var(--card) 30%, rgba(255,255,255,0)) left center / 40px 100% no-repeat local,
    linear-gradient(270deg, var(--card) 30%, rgba(255,255,255,0)) right center / 40px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(0,0,0,.14), rgba(0,0,0,0)) left center / 14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.14), rgba(0,0,0,0)) right center / 14px 100% no-repeat scroll,
    var(--card) }
.card::-webkit-scrollbar { height: 10px } .card::-webkit-scrollbar-thumb { background: #c3c7bd; border-radius: 8px } .card::-webkit-scrollbar-track { background: transparent }
/* tables size to their content; they only scroll when the screen is too narrow */
th.wide, td.wide { min-width: 240px; max-width: 420px }
td { white-space: normal } td.mono, td.r, td .btn { white-space: nowrap }
.tw { overflow-x: auto; scrollbar-width: thin }
.card .tw { overflow-x: visible }   /* inside a card, the card scrolls (with the edge shadows) */
/* Long values wrap instead of pushing the table wider than its card */
td { overflow-wrap: break-word } td.mono { white-space: normal; word-break: break-all } td .btn, td .tag, td .st { overflow-wrap: normal; word-break: normal }
th { white-space: normal } th.r { white-space: nowrap }
a.btn { text-decoration: none }
