/* ==========================================================================
   Shell H2 — forecourt instrumentation
   --------------------------------------------------------------------------
   The product answers one question: may this plate fill, and if not, when?
   So the visual language is taken from the two artifacts that actually matter
   at a hydrogen forecourt — the number plate and the dispenser readout.

   Colour notes
     sun    Shell yellow is the product signature, used for action and focus.
     red    Shell energy red is reserved for destructive and blocked states.
     go / hold / stop  forecourt signal colours, saturated on purpose: the
            operator reads the verdict at arm's length, outdoors, in daylight.

   Type notes
     Archivo      engineered grotesk, set tight. Carries all interface text.
     Martian Mono reserved strictly for the data layer — plates, kilograms,
                  references, countdowns. Never used for prose.
   ========================================================================== */

:root {
    --ink:      #10161A;
    --ink-2:    #3A474E;
    --ink-3:    #6E7E87;
    --rule:     #D2DAD9;
    --rule-2:   #B9C4C3;
    --steel:    #E7EBEA;
    --panel:    #FFFFFF;
    --panel-2:  #F2F5F4;

    --brand-sun:     #FECB00;
    --brand-sun-ink: #806100;
    --brand-sun-2:   #624A00;
    --brand-sun-in:  #FFF6C7;
    --brand-red:     #D52B1E;
    --hydrogen:      #3C8790;
    --hydrogen-in:   #E5F5F6;

    /* Legacy names keep component selectors readable while the palette is
       shared by links, focus states, tags and selected controls. */
    --flame:    var(--brand-sun-ink);
    --flame-2:  var(--brand-sun-2);
    --flame-in: var(--brand-sun-in);

    --go:       #0B7A4B;
    --go-in:    #E2F1EA;
    --hold:     #A85B00;
    --hold-in:  #F7EEE1;
    --stop:     var(--brand-red);
    --stop-in:  #FCE6E3;

    --r:        6px;
    --r-sm:     3px;
    --tab-h:    58px;

    --font-ui: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-data: "Martian Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
    :root {
        --ink:      #E8EDEB;
        --ink-2:    #A2B1B7;
        --ink-3:    #71838B;
        --rule:     #25302F;
        --rule-2:   #35433F;
        --steel:    #0A0F12;
        --panel:    #121A1D;
        --panel-2:  #0E1518;

        --brand-sun:     #FECB00;
        --brand-sun-ink: #FECB00;
        --brand-sun-2:   #FFE477;
        --brand-sun-in:  #3B3207;
        --brand-red:     #F06A5E;
        --hydrogen:      #7FD5DD;
        --hydrogen-in:   #15363A;

        --flame:    var(--brand-sun-ink);
        --flame-2:  var(--brand-sun-2);
        --flame-in: var(--brand-sun-in);

        --go:       #43C088;
        --go-in:    #0E2A20;
        --hold:     #D79A45;
        --hold-in:  #2C2113;
        --stop:     var(--brand-red);
        --stop-in:  #3B1816;
    }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--steel);
    color: var(--ink);
    font-family: var(--font-ui);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0 0 .35em; line-height: 1.15; font-weight: 700; letter-spacing: -.022em; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.1rem; }
h3 { font-size: .95rem; }
p { margin: 0 0 .9em; }

a { color: var(--flame); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--flame-2); }

:focus-visible {
    outline: 2px solid var(--flame);
    outline-offset: 2px;
    border-radius: 2px;
}

/* --------------------------------------------------------------- masthead */

.masthead {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--ink);
    padding-top: env(safe-area-inset-top);
    box-shadow: 0 8px 24px rgba(8, 14, 18, .14);
}

.masthead__bar {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .7rem 1rem;
    max-width: 1160px;
    margin: 0 auto;
}

/* Typographic lockup: no gradient tile, no logo mark. */
.wordmark {
    display: inline-flex;
    align-items: baseline;
    gap: .5rem;
    text-decoration: none;
    color: #fff;
}

.wordmark__formula {
    font-family: var(--font-data);
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: -.04em;
    color: var(--brand-sun);
}

.wordmark__formula sub {
    font-size: .68em;
    vertical-align: baseline;
    position: relative;
    bottom: -.18em;
}

.workspace-id {
    color: rgba(255, 255, 255, .48);
    white-space: nowrap;
    font-family: var(--font-data);
    font-size: .64rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.masthead__spacer { flex: 1; }

.masthead__nav {
    display: none;
    gap: .1rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.masthead__nav::-webkit-scrollbar { display: none; }

.masthead__nav a {
    color: rgba(255, 255, 255, .62);
    text-decoration: none;
    padding: .4rem .6rem;
    font-size: .82rem;
    font-weight: 500;
    border-radius: var(--r-sm);
}

.masthead__nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.masthead__nav a.is-active {
    color: var(--brand-sun);
    background: rgba(255, 255, 255, .12);
}

.masthead__user {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.who {
    font-size: .72rem;
    color: rgba(255, 255, 255, .5);
    font-weight: 500;
    letter-spacing: .01em;
    display: none;
}

.signout {
    background: none;
    border: 1px solid rgba(255, 255, 255, .22);
    color: rgba(255, 255, 255, .8);
    font-family: inherit;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .35rem .6rem;
    border-radius: var(--r-sm);
    cursor: pointer;
}

.signout:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.shell {
    max-width: 620px;
    margin: 0 auto;
    padding: 1.1rem 1rem calc(var(--tab-h) + 1.6rem);
}

.shell--wide { max-width: 1160px; }
.shell--operator { max-width: 880px; }

/* ------------------------------------------------------------- tab bar */

.tabs {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 30;
    display: flex;
    background: var(--panel);
    box-shadow: 0 -8px 24px rgba(8, 14, 18, .1);
    padding-bottom: env(safe-area-inset-bottom);
}

.tabs a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .2rem;
    min-height: var(--tab-h);
    text-decoration: none;
    color: var(--ink-3);
    font-size: .64rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.tabs a .ico { width: 21px; height: 21px; }
.tabs a.is-active { color: var(--flame); }

@media (min-width: 880px) {
    .masthead__nav { display: flex; }
    .who { display: inline; }
    .tabs { display: none; }
    .shell { padding-bottom: 3rem; }
}

/* ---------------------------------------------------------------- type */

.title { margin-bottom: .2rem; }
.lede { color: var(--ink-2); font-size: .9rem; margin-bottom: 1.2rem; max-width: 52ch; }

.workspace-label {
    margin-bottom: .28rem;
    color: var(--ink-3);
    font-family: var(--font-data);
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.eyebrow {
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin: 1.6rem 0 .55rem;
    display: flex;
    align-items: center;
    gap: .6rem;
}

.eyebrow::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--rule);
}

.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: .8rem; }
.data { font-family: var(--font-data); font-size: .9em; letter-spacing: -.02em; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* -------------------------------------------------------------- panels */

.panel {
    background: var(--panel);
    border: 1px solid var(--rule);
    border-radius: var(--r);
    padding: .95rem 1rem;
    margin-bottom: .7rem;
}

.panel--flush { padding: 0; overflow: hidden; }
.panel--inset { background: var(--panel-2); }

.panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .55rem;
}

.panel__title { font-weight: 650; font-size: .95rem; margin: 0; }

.panel__foot {
    border-top: 1px solid var(--rule);
    margin: .9rem -1rem -.95rem;
    padding: .65rem 1rem;
    background: var(--panel-2);
}

.row { display: flex; align-items: center; gap: .55rem; }
.row--between { justify-content: space-between; }
.row--wrap { flex-wrap: wrap; }
.row--top { align-items: flex-start; }
.duo { display: grid; grid-template-columns: 1fr; gap: 0 .8rem; }
@media (min-width: 600px) { .duo { grid-template-columns: 1fr 1fr; } }

.fieldset-reset { border: 0; padding: 0; min-width: 0; }

.access-create {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .8rem;
    align-items: start;
}

.access-brief {
    background: #10161A;
    color: #FFFFFF;
    border-radius: var(--r);
    padding: 1.15rem;
}

.access-brief h2 { font-size: 1.3rem; max-width: 16ch; }
.access-brief p { color: rgba(255, 255, 255, .68); font-size: .84rem; max-width: 38ch; }
.access-brief a { color: #FFFFFF; font-size: .8rem; }
.access-brief__step { color: rgba(255, 255, 255, .48); font-size: .68rem; margin: .2rem 0 .45rem; }
.access-brief__step:not(:first-child) { border-top: 1px solid rgba(255, 255, 255, .15); padding-top: .9rem; margin-top: 1rem; }

@media (min-width: 760px) {
    .access-create { grid-template-columns: minmax(0, 1.5fr) minmax(240px, .75fr); }
    .choices--roles { grid-template-columns: 1fr 1fr; }
}

/* =========================================================================
   SIGNATURE — the entitlement strip
   A plate drawn as a plate, over a window track that drains and refills.
   ========================================================================= */

.strip {
    background: var(--panel);
    border: 1px solid var(--rule);
    border-radius: var(--r);
    margin-bottom: .7rem;
    overflow: hidden;
}

.strip__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .7rem;
    padding: .8rem .9rem .55rem;
}

.strip__state { flex: 0 1 auto; }

/* --- the plate artifact ------------------------------------------------ */

/* A plate is a physical white object, so it keeps its own colours in both
   themes rather than inverting with the interface. */
.plate {
    display: inline-flex;
    align-items: stretch;
    border: 1.5px solid #10161A;
    border-radius: var(--r-sm);
    overflow: hidden;
    background: #fff;
    font-family: var(--font-data);
    line-height: 1;
    flex: 0 0 auto;
}

.plate__digits {
    padding: .34rem .55rem;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -.02em;
    color: #10161A;
}

.plate__code {
    padding: .34rem .45rem;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: -.02em;
    color: #10161A;
    background: #E4E8E6;
    border-left: 1.5px solid #10161A;
}

.plate--lg .plate__digits { font-size: 1.6rem; padding: .42rem .7rem; }
.plate--lg .plate__code { font-size: 1.6rem; padding: .42rem .55rem; }
.plate--sm .plate__digits,
.plate--sm .plate__code { font-size: .82rem; padding: .2rem .38rem; }

.strip__meta {
    padding: 0 .9rem;
    font-size: .74rem;
    color: var(--ink-3);
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .5rem;
    align-items: center;
}

.strip__meta .sep { color: var(--rule-2); }

/* --- the window track --------------------------------------------------- */

.track {
    padding: .7rem .9rem .85rem;
}

.track__segments {
    display: flex;
    gap: 3px;
    height: 9px;
}

.track__seg {
    flex: 1;
    border-radius: 1px;
    background: var(--panel-2);
    border: 1px solid var(--rule);
}

.track__seg--used { background: var(--ink); border-color: var(--ink); }

/* A held segment is a booking, not a fill — hatched, not solid. */
.track__seg--held {
    border-color: var(--hold);
    background: repeating-linear-gradient(
        -45deg,
        var(--hold) 0 2px,
        transparent 2px 5px
    );
}

.track__legend {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .6rem;
    margin-top: .45rem;
    font-size: .72rem;
    color: var(--ink-3);
}

.track__count {
    font-family: var(--font-data);
    letter-spacing: -.02em;
    color: var(--ink-2);
}

/* --- the cooldown bar --------------------------------------------------- */

.cooldown { margin-top: .6rem; }

.cooldown__rail {
    position: relative;
    height: 3px;
    background: var(--panel-2);
    border-radius: 2px;
    overflow: hidden;
}

.cooldown__fill {
    position: absolute;
    inset: 0 auto 0 0;
    background: var(--hold);
    border-radius: 2px;
}

.strip--blocked .cooldown__fill { background: var(--stop); }

.cooldown__ends {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .5rem;
    margin-top: .32rem;
    font-size: .7rem;
    color: var(--ink-3);
}

.cooldown__ready { font-family: var(--font-data); letter-spacing: -.03em; color: var(--ink-2); }

.strip__actions {
    display: flex;
    gap: .45rem;
    padding: 0 .9rem .85rem;
}

.strip__note {
    margin: 0 .9rem .85rem;
    padding: .5rem .6rem;
    border-radius: var(--r-sm);
    font-size: .78rem;
    background: var(--stop-in);
    color: var(--stop);
}

/* ------------------------------------------------ operator verdict board */

.board {
    background: var(--ink);
    border-radius: var(--r);
    padding: 1.1rem 1rem 1.2rem;
    margin-bottom: .7rem;
    text-align: center;
}

.board__plate { margin-bottom: .8rem; }

.board__call {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1;
    margin-bottom: .35rem;
}

.board--go .board__call { color: #4FD79B; }
.board--stop .board__call { color: #FF8A80; }

.board__reason {
    color: rgba(255, 255, 255, .68);
    font-size: .82rem;
    max-width: 34ch;
    margin: 0 auto;
}

.board__who {
    margin-top: .7rem;
    padding-top: .7rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .5);
    font-size: .74rem;
}

/* --------------------------------------------------------------- tags */

.tag {
    display: inline-flex;
    align-items: center;
    padding: .16rem .4rem;
    border-radius: 2px;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    border: 1px solid var(--rule-2);
    color: var(--ink-2);
    background: transparent;
    white-space: nowrap;
}

.tag--go { border-color: var(--go); color: var(--go); background: var(--go-in); }
.tag--hold { border-color: var(--hold); color: var(--hold); background: var(--hold-in); }
.tag--stop { border-color: var(--stop); color: var(--stop); background: var(--stop-in); }
.tag--flame { border-color: var(--flame); color: var(--flame); background: var(--flame-in); }

/* ------------------------------------------------------------- buttons */

/* Primary actions are Shell sun; black remains the surrounding instrument panel. */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 44px;
    padding: .55rem 1rem;
    border-radius: var(--r-sm);
    border: 1px solid var(--brand-sun);
    background: var(--brand-sun);
    color: var(--ink);
    font-family: inherit;
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: -.005em;
    text-decoration: none;
    cursor: pointer;
    transition: opacity .12s ease, background .12s ease, border-color .12s ease;
}

.btn:hover { opacity: .86; color: var(--ink); }
.btn:disabled { opacity: .42; cursor: not-allowed; }
.btn--block { width: 100%; }

.btn--quiet {
    background: transparent;
    border-color: var(--rule-2);
    color: var(--ink);
}
.btn--quiet:hover { background: var(--panel-2); border-color: var(--ink-3); color: var(--ink); }

.btn--stop { background: var(--stop); border-color: var(--stop); color: #fff; }
.btn--stop:hover { background: var(--stop); border-color: var(--stop); color: #fff; filter: brightness(.92); }

.btn--sm { min-height: 34px; padding: .3rem .6rem; font-size: .78rem; }

.link {
    background: none;
    border: none;
    padding: 0;
    min-height: 0;
    font-family: inherit;
    font-size: inherit;
    font-weight: 600;
    color: var(--flame);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.link--stop { color: var(--stop); }

/* --------------------------------------------------------------- forms */

.field { margin-bottom: .85rem; }

.label {
    display: block;
    font-size: .78rem;
    font-weight: 650;
    margin-bottom: .28rem;
    letter-spacing: -.005em;
}

.hint { font-size: .74rem; color: var(--ink-3); margin-top: .25rem; line-height: 1.45; }
.err { font-size: .76rem; color: var(--stop); margin-top: .25rem; font-weight: 600; }

.input, .select, .textarea {
    width: 100%;
    min-height: 44px;
    padding: .55rem .7rem;
    border: 1px solid var(--rule-2);
    border-radius: var(--r-sm);
    background: var(--panel);
    color: var(--ink);
    font-size: 16px; /* stops iOS zooming on focus */
    font-family: inherit;
}

.textarea { min-height: 84px; resize: vertical; line-height: 1.5; }

.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--flame);
    box-shadow: 0 0 0 2px var(--flame-in);
}

.input--bad { border-color: var(--stop); }

.input--data {
    font-family: var(--font-data);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -.02em;
}

.plate-entry { display: grid; grid-template-columns: 1fr 82px; gap: .4rem; }
.plate-entry .input { text-align: center; }

.code-entry {
    font-family: var(--font-data);
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: .38em;
    text-indent: .38em;
    min-height: 54px;
}

/* Choice rows — ownership type, vehicle pickers. */
.choices { display: grid; gap: .4rem; }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }

.choice__face {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    border: 1px solid var(--rule-2);
    border-radius: var(--r-sm);
    padding: .6rem .7rem;
    cursor: pointer;
    background: var(--panel);
}

.choice input:checked + .choice__face {
    border-color: var(--flame);
    background: var(--flame-in);
}

.choice input:focus-visible + .choice__face { outline: 2px solid var(--flame); outline-offset: 2px; }
.choice__name { font-weight: 650; font-size: .88rem; }
.choice__note { font-size: .74rem; color: var(--ink-3); }

.toggle { display: flex; align-items: center; gap: .5rem; font-size: .86rem; cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: var(--flame); flex: 0 0 auto; }

/* -------------------------------------------------------------- notices */

.notice {
    border: 1px solid var(--rule-2);
    border-radius: var(--r-sm);
    padding: .6rem .75rem;
    font-size: .84rem;
    margin-bottom: .7rem;
    background: var(--panel);
    color: var(--ink-2);
}

.notice--go { border-color: var(--go); background: var(--go-in); color: var(--go); }
.notice--stop { border-color: var(--stop); background: var(--stop-in); color: var(--stop); }
.notice--hold { border-color: var(--hold); background: var(--hold-in); color: var(--hold); }
.notice--info { border-color: var(--hydrogen); background: var(--hydrogen-in); color: var(--ink); }

/* ----------------------------------------------------------------- rows */

.rows { list-style: none; margin: 0; padding: 0; }

.rows__item {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .7rem .9rem;
    border-bottom: 1px solid var(--rule);
    text-decoration: none;
    color: inherit;
}

.rows__item:last-child { border-bottom: none; }
a.rows__item:hover { background: var(--panel-2); color: inherit; }
.rows__body { flex: 1; min-width: 0; }
.rows__lead { font-weight: 600; font-size: .88rem; letter-spacing: -.005em; }
.rows__sub { font-size: .76rem; color: var(--ink-3); margin-top: .05rem; }
.rows__go { color: var(--rule-2); flex: 0 0 auto; }

.blank {
    padding: 1.7rem 1rem;
    text-align: center;
    color: var(--ink-3);
    font-size: .85rem;
}

.blank strong { display: block; color: var(--ink-2); font-weight: 600; margin-bottom: .15rem; }

/* ---------------------------------------------------------------- slots */

.slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: .35rem;
}

.slot { position: relative; display: block; }
.slot input { position: absolute; opacity: 0; pointer-events: none; }

.slot__face {
    display: block;
    text-align: center;
    padding: .5rem .2rem;
    border: 1px solid var(--rule-2);
    border-radius: var(--r-sm);
    background: var(--panel);
    cursor: pointer;
    font-family: var(--font-data);
    font-weight: 600;
    font-size: .85rem;
    letter-spacing: -.03em;
}

.slot input:checked + .slot__face {
    border-color: var(--brand-sun);
    background: var(--brand-sun);
    color: var(--ink);
}

.slot input:focus-visible + .slot__face { outline: 2px solid var(--flame); outline-offset: 2px; }

.slot__why {
    display: block;
    font-family: var(--font-ui);
    font-size: .62rem;
    font-weight: 600;
    color: var(--ink-3);
    margin-top: .1rem;
    letter-spacing: 0;
}

.slot--off .slot__face {
    background: var(--panel-2);
    color: var(--ink-3);
    cursor: not-allowed;
    border-style: dashed;
}

/* ------------------------------------------------------------ day strip */

.days {
    display: flex;
    gap: .3rem;
    overflow-x: auto;
    padding-bottom: .3rem;
    margin-bottom: .8rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.days a {
    flex: 0 0 auto;
    padding: .38rem .65rem;
    border-radius: var(--r-sm);
    border: 1px solid var(--rule-2);
    text-decoration: none;
    color: var(--ink-2);
    font-size: .78rem;
    font-weight: 600;
    background: var(--panel);
    white-space: nowrap;
}

.days a:hover { border-color: var(--ink-3); color: var(--ink); }
.days a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* --------------------------------------------------------------- readout
   Instrument readout instead of big-number stat tiles: a label column and a
   monospaced value column, aligned so figures compare down the page.        */

.readout {
    display: flex;
    border: 1px solid var(--rule);
    border-radius: var(--r);
    background: var(--panel);
    overflow: hidden;
    margin-bottom: .7rem;
}

.readout__cell {
    flex: 1;
    padding: .6rem .75rem;
    border-right: 1px solid var(--rule);
    min-width: 0;
}

.readout__cell:last-child { border-right: none; }

.readout__k {
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.readout__v {
    font-family: var(--font-data);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -.04em;
    margin-top: .1rem;
}

.readout__v .unit { font-size: .68em; color: var(--ink-3); font-weight: 400; }

/* --------------------------------------------------------------- tables */

.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.table { width: 100%; border-collapse: collapse; font-size: .82rem; }

.table th {
    text-align: left;
    font-size: .64rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--ink-3);
    font-weight: 700;
    padding: .45rem .55rem;
    border-bottom: 1px solid var(--rule);
    white-space: nowrap;
}

.table td { padding: .5rem .55rem; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }

/* Key/value detail tables: the label column stays narrow and the value wraps,
   including unbroken strings like a VIN or an address, so a phone never has
   to scroll sideways to read a vehicle. */
.table--kv { table-layout: fixed; width: 100%; }
.table--kv th { width: 38%; vertical-align: top; }
.table--kv td { overflow-wrap: anywhere; }
.table tbody th { border-bottom: 1px solid var(--rule); font-size: .72rem; letter-spacing: 0; text-transform: none; color: var(--ink-3); font-weight: 500; }

/* -------------------------------------------------------------- ticket */

.ticket {
    background: var(--ink);
    border-radius: var(--r);
    padding: 1.1rem 1rem;
    text-align: center;
    margin-bottom: .7rem;
}

.ticket__k {
    font-size: .64rem;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: rgba(255, 255, 255, .45);
    font-weight: 700;
}

.ticket__ref {
    font-family: var(--font-data);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: #fff;
    margin: .35rem 0 .2rem;
}

.ticket__when { color: rgba(255, 255, 255, .7); font-size: .84rem; }

/* ---------------------------------------------------------- entry pages */

.entry {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 1rem calc(2rem + env(safe-area-inset-bottom));
    max-width: 400px;
    margin: 0 auto;
}

.entry__brand { margin-bottom: 1.4rem; }

.entry__formula {
    font-family: var(--font-data);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -.05em;
}

.entry__formula sub { font-size: .68em; vertical-align: baseline; position: relative; bottom: -.16em; }

.entry__tag {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-top: .2rem;
}

.entry__foot { margin-top: 1.1rem; font-size: .84rem; color: var(--ink-3); }

/* ------------------------------------------------------------ utilities */

.rule { height: 1px; background: var(--rule); margin: .85rem 0; border: 0; }
.hidden { display: none !important; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.ico { width: 18px; height: 18px; flex: 0 0 auto; display: inline-block; vertical-align: -.18em; }

.commit {
    position: sticky;
    bottom: calc(var(--tab-h) + .5rem);
    background: linear-gradient(to top, var(--steel) 68%, transparent);
    padding: .7rem 0 .3rem;
}

@media (min-width: 880px) {
    .commit { position: static; background: none; padding: .3rem 0 0; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
