/* Supreme Hosting fonts and logo; palette is neutral true black with a bright gold (no warm browns). Dark only. */
@font-face { font-family: "Big Shoulders Display"; src: url("fonts/bigshoulders.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jbmono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
:root {
    --sh-ink: #060606;
    --sh-ink-2: #101010;
    --sh-ink-3: #181818;
    --sh-rule: #1e1e1e;
    --sh-rule-2: #2b2b2b;
    --sh-ivory: #fafafa;
    --sh-text: #d4d4d4;
    --sh-muted: #8e8e8e;
    --sh-gold: #f4c430;
    --sh-gold-hi: #ffd84d;
    --sh-gold-ink: #0a0700;
    --sh-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
    --sh-read: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
    --sh-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
    --ease: cubic-bezier(.2, .7, .2, 1);
    color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--sh-ink); color: var(--sh-text); }
body { font: 400 1rem/1.55 var(--sh-read); -webkit-font-smoothing: antialiased; }
::selection { background: var(--sh-gold); color: var(--sh-gold-ink); }
:focus-visible { outline: 2px solid var(--sh-gold-hi); outline-offset: 3px; border-radius: 6px; }
h1 { font: 800 2.1rem/1 var(--sh-display); text-transform: uppercase; color: var(--sh-gold); margin: 0; letter-spacing: .01em; }
p { margin: 0; }
.muted { color: var(--sh-muted); }
.small { font-size: .875rem; line-height: 1.4; }
.mono { font-family: var(--sh-mono); font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.shell { max-width: 1320px; margin: 0 auto; padding: 0 20px; }

/* Buttons: every action is a pill */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px;
    border: 1.5px solid var(--sh-rule-2); border-radius: 999px; background: transparent; color: var(--sh-ivory);
    font: 600 .95rem var(--sh-read); text-decoration: none; cursor: pointer; transition: border-color .15s var(--ease); }
.btn:hover { border-color: var(--sh-gold); }
.btn.primary { background: var(--sh-gold); border-color: var(--sh-gold); color: var(--sh-gold-ink); min-height: 48px; width: 100%; }
.btn.primary:hover { background: var(--sh-gold-hi); border-color: var(--sh-gold-hi); }
.btn.primary:focus-visible { outline-color: var(--sh-gold-ink); }

.note { background: var(--sh-ink-2); border: 1px solid var(--sh-rule-2); border-top: 2px solid var(--sh-gold);
    border-radius: 12px; padding: 14px 16px; margin: 24px 0 0; color: var(--sh-ivory); }

/* Masthead */
.masthead { border-bottom: 1px solid var(--sh-gold); background: #000; }
.masthead-in { display: flex; align-items: center; gap: 20px; padding-top: 16px; padding-bottom: 16px; }
.masthead .logo { height: 52px; width: auto; }
.masthead .who { flex: 1; min-width: 0; }
.masthead .who p { font-size: .9rem; margin-top: 4px; }
.actions { display: flex; gap: 10px; }
.actions form { margin: 0; }

/* Summary figures: a ruled fare board, not cards */
.figures { display: grid; grid-template-columns: repeat(6, 1fr); margin: 32px 0 0; border-top: 2px solid var(--sh-gold);
    border-bottom: 1px solid var(--sh-rule-2); }
.figure { all: unset; display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; cursor: pointer;
    border-left: 1px solid var(--sh-rule); }
.figure:first-child { border-left: 0; padding-left: 0; }
.figure:focus-visible { outline: 2px solid var(--sh-gold-hi); outline-offset: -2px; }
.figure .num { font: 800 3rem/1 var(--sh-display); color: var(--sh-gold); font-variant-numeric: tabular-nums; }
.figure .lbl { color: var(--sh-muted); font-size: .9rem; }
.figure:hover .num { color: var(--sh-gold-hi); }
.figure:hover .lbl { color: var(--sh-ivory); }

/* Toolbar */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin: 28px 0 8px; }
.search { flex: 1 1 260px; }
input, select { font: inherit; color: var(--sh-ivory); background: var(--sh-ink-2); border: 1px solid var(--sh-rule-2);
    border-radius: 10px; min-height: 44px; padding: 0 14px; }
input { width: 100%; }
input::placeholder { color: var(--sh-muted); }
input:focus, select:focus { border-color: var(--sh-gold); outline: none; box-shadow: 0 0 0 1px var(--sh-gold); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { min-height: 40px; padding: 0 16px; border: 1px solid var(--sh-rule-2); border-radius: 999px; background: transparent;
    color: var(--sh-text); font: 500 .9rem var(--sh-read); cursor: pointer; }
.pill:hover { border-color: var(--sh-gold); }
.pill[aria-pressed="true"] { border-color: var(--sh-gold); color: var(--sh-gold-hi); background: var(--sh-ink-2); }
.sort { display: flex; align-items: center; gap: 10px; color: var(--sh-muted); font-size: .9rem; }

/* Customer list: ruled rows */
.list-head, .row { display: grid; grid-template-columns: 1.5fr 1.25fr 1fr .7fr 1.25fr 1.35fr; gap: 20px; align-items: start; }
.list-head { padding: 14px 12px 10px; color: var(--sh-muted); font-size: .8rem; border-bottom: 1px solid var(--sh-rule-2); }
.list { list-style: none; margin: 0; padding: 0; }
.row { padding: 16px 12px; border-bottom: 1px solid var(--sh-rule-2); border-radius: 8px; }
.row:hover { background: var(--sh-ink-2); }
.cell { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cell .k { display: none; }
.user-line { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.user { color: var(--sh-ivory); font-size: 1rem; font-weight: 600; overflow-wrap: anywhere; }
.pw { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.secret { color: var(--sh-ivory); overflow-wrap: anywhere; min-width: 7ch; }
.secret.shown { color: var(--sh-gold-hi); }
.pw-actions { display: inline-flex; gap: 6px; }
.mini { min-height: 32px; padding: 0 12px; border: 1.5px solid var(--sh-rule-2); border-radius: 999px; background: transparent;
    color: var(--sh-text); font: 600 .8rem var(--sh-read); cursor: pointer; position: relative; }
.mini::after { content: ""; position: absolute; inset: -6px -2px; }  /* 44px tap target */
.mini:hover { border-color: var(--sh-gold); color: var(--sh-ivory); }

/* Status marks: a shape plus words, never colour alone */
.mark { display: inline-flex; align-items: center; gap: 8px; color: var(--sh-ivory); font-weight: 500; }
.mark i { flex: none; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--sh-gold); }
.st-active i { background: var(--sh-gold); }
.st-expiring i { background: linear-gradient(90deg, var(--sh-gold) 50%, transparent 50%); }
.st-expiring { color: var(--sh-gold-hi); }
.st-expired i { border-color: var(--sh-muted); }
.st-expired { color: var(--sh-muted); }
.st-disabled i { border: 0; border-radius: 1px; height: 2px; background: var(--sh-muted); }
.st-disabled { color: var(--sh-muted); }
.ln-ok i { border: 0; border-radius: 0; width: 14px; height: 14px;
    background: no-repeat center/14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23f4c430' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.ln-check { color: var(--sh-gold-hi); font-weight: 700; padding: 2px 10px 2px 6px; border: 1px solid var(--sh-gold); border-radius: 999px; }
.ln-check i { border: 0; border-radius: 0; width: 14px; height: 14px;
    background: no-repeat center/14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.8L15 14H1z' fill='none' stroke='%23ffd84d' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M8 6v3.6M8 11.6v.2' stroke='%23ffd84d' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.ln-missing { color: var(--sh-ivory); }
.ln-missing i { border: 1.5px dashed var(--sh-gold); }
.row[data-link="check"] { box-shadow: inset 2px 0 0 var(--sh-gold); }

/* Watching now: a pulsing gold dot */
.live-dot { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--sh-gold);
    margin-right: 8px; vertical-align: middle; position: relative; top: -1px; animation: live 1.6s var(--ease) infinite; }
.user-line .live-dot { margin-right: 0; }
.row[data-watching="0"] .user-line .live-dot { display: none; }
.row[data-watching="1"] .act-rel { color: var(--sh-gold-hi); font-weight: 600; }
.figure .lbl .live-dot { width: 7px; height: 7px; }
@keyframes live {
    0% { box-shadow: 0 0 0 0 rgba(244, 196, 48, .6); }
    70% { box-shadow: 0 0 0 7px rgba(244, 196, 48, 0); }
    100% { box-shadow: 0 0 0 0 rgba(244, 196, 48, 0); }
}
.act-rel { color: var(--sh-ivory); }

.empty { padding: 40px 0; text-align: center; }
.foot { margin: 28px 0 48px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--sh-ink-3); color: var(--sh-ivory);
    border: 1px solid var(--sh-rule-2); border-radius: 999px; padding: 10px 20px; font-weight: 600;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .5); z-index: 10; }

/* Login */
.login-page { min-height: 100vh; display: grid; place-items: center; }
.login { width: 100%; max-width: 380px; padding: 32px 20px; text-align: center; }
.login .logo { height: 120px; width: auto; margin-bottom: 20px; }
.login p.muted { margin: 8px 0 8px; }
.login form { text-align: left; margin-top: 16px; }
.login label { display: block; font-weight: 600; color: var(--sh-ivory); margin: 16px 0 6px; font-size: .95rem; }
.login .btn.primary { margin-top: 24px; }

/* Under 1000px: figures wrap, rows stack into labelled blocks */
@media (max-width: 1000px) {
    .figures { grid-template-columns: repeat(3, 1fr); }
    .figure:nth-child(4) { border-left: 0; padding-left: 0; }
    .figure:nth-child(n+4) { border-top: 1px solid var(--sh-rule); }
    .list-head { display: none; }
    .row { grid-template-columns: 1fr 1fr; gap: 14px 20px; padding: 18px 4px; }
    .row:hover { background: transparent; }
    .cell.who, .cell.rem { grid-column: 1 / -1; }
    .cell .k { display: block; color: var(--sh-muted); font-size: .78rem; width: 100%; }
    .row[data-link="check"] { box-shadow: none; }
}
@media (max-width: 760px) {
    h1 { font-size: 1.7rem; }
    .masthead-in { flex-wrap: wrap; gap: 12px 14px; }
    .masthead .logo { height: 46px; }
    .actions { width: 100%; }
    .actions .btn { flex: 1; }
    .actions form { flex: 1; display: flex; }
    .figures { grid-template-columns: repeat(2, 1fr); }
    .figure { padding: 14px 0 14px 16px; }
    .figure:nth-child(odd) { border-left: 0; padding-left: 0; }
    .figure:nth-child(even) { border-left: 1px solid var(--sh-rule); padding-left: 16px; }
    .figure:nth-child(n+3) { border-top: 1px solid var(--sh-rule); }
    .figure .num { font-size: 2.4rem; }
    .pills { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; }
    .pill { flex: none; }
    .sort { width: 100%; }
    .sort select { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
