:root {
    padding-top: env(safe-area-inset-top,0px);
    padding-bottom: env(safe-area-inset-bottom,0px);
    color-scheme: light
}

body {
    margin: 0
}

img {
    max-width: 100%
}

[hidden] {
    display: none!important
}

/* Layout: one working column per screen under a sticky tool bar; the number pad docks to the bottom edge like a site tablet's keypad, so the field being filled always sits above it. */
:root {
    --bg: #e9edf0;
    --surface: #f8fafb;
    --raised: #ffffff;
    --ink: #15222c;
    --muted: #56646f;
    --line: #cbd3d9;
    --line-strong: #97a4ae;
    --accent: #c4480b;
    --accent-ink: #ffffff;
    --accent-soft: #fbdcc8;
    --ok: #16643a;
    --ok-bg: #d5ebdd;
    --na: #4c5862;
    --na-bg: #dfe5e9;
    --tbc: #7f4700;
    --tbc-bg: #fae2b6;
    --sz: #a01f17;
    --sz-bg: #f7d6d2;
    --ch: #19529b;
    --ch-bg: #d6e3f5;
    --paper: #ffffff;
    --paper-ink: #0f1d28;
    --shadow: rgba(16,30,40,.16);
    --font: -apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue","Segoe UI",Roboto,Arial,sans-serif;
    --mono: ui-monospace,"SF Mono",Menlo,"Roboto Mono",Consolas,monospace;
    --r: 10px;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg:#0f161b;
        --surface: #162027;
        --raised: #1d2a33;
        --ink: #e5ecf0;
        --muted: #98a7b2;
        --line: #2b3a45;
        --line-strong: #4a5c69;
        --accent: #f07a32;
        --accent-ink: #1b0c03;
        --accent-soft: #3d2414;
        --ok: #86d6a5;
        --ok-bg: #15372a;
        --na: #b6c1c9;
        --na-bg: #26323b;
        --tbc: #f4c46e;
        --tbc-bg: #3b2b10;
        --sz: #ffa098;
        --sz-bg: #46191a;
        --ch: #97c0f2;
        --ch-bg: #173152;
        --shadow: rgba(0,0,0,.5);
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --bg: #0f161b;
    --surface: #162027;
    --raised: #1d2a33;
    --ink: #e5ecf0;
    --muted: #98a7b2;
    --line: #2b3a45;
    --line-strong: #4a5c69;
    --accent: #f07a32;
    --accent-ink: #1b0c03;
    --accent-soft: #3d2414;
    --ok: #86d6a5;
    --ok-bg: #15372a;
    --na: #b6c1c9;
    --na-bg: #26323b;
    --tbc: #f4c46e;
    --tbc-bg: #3b2b10;
    --sz: #ffa098;
    --sz-bg: #46191a;
    --ch: #97c0f2;
    --ch-bg: #173152;
    --shadow: rgba(0,0,0,.5);
    color-scheme: dark;
}

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

body {
    background: var(--bg);
    color: var(--ink);
    font: 17px/1.4 var(--font);
    -webkit-font-smoothing: antialiased
}

body::before {
    content: "";
    position: fixed;
    inset: 0 0 auto;
    height: env(safe-area-inset-top,0px);
    z-index: 30;
    background: var(--surface)
}

button {
    font: inherit;
    color: inherit;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer
}

button:disabled {
    opacity: .4;
    cursor: default
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px
}

h1,h2,h3 {
    margin: 0;
    text-wrap: balance;
    line-height: 1.2
}

p {
    margin: 0
}

.wrap {
    max-width: 1040px;
    margin: 0 auto;
    padding-left: max(16px,env(safe-area-inset-left,0px));
    padding-right: max(16px,env(safe-area-inset-right,0px))
}

/* Top bar */
.top {
    position: sticky;
    top: env(safe-area-inset-top,0px);
    z-index: 20;
    background: var(--surface);
    border-bottom: 1px solid var(--line)
}

.top-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-block:10px;flex-wrap: wrap
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: .01em
}

.mark {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--accent);
    color: var(--accent-ink);
    font: 800 14px/1 var(--mono)
}

.title {
    font-weight: 700;
    font-size: 19px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.title small {
    font-weight: 500;
    color: var(--muted);
    font-size: 15px
}

.spacer {
    flex: 1
}

.stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--muted)
}

.net.on .dot {
    background: var(--ok)
}

.net.off .dot {
    background: var(--tbc)
}

.saved.bad {
    color: var(--sz)
}

.saved.bad .dot {
    background: var(--sz)
}

.back {
    min-height: 44px;
    padding: 0 12px 0 6px;
    border: 0;
    background: transparent;
    font-weight: 600;
    color: var(--accent)
}

.tabs {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: -1px
}

.tabs::-webkit-scrollbar {
    display: none
}

.tab {
    min-height: 50px;
    padding: 0 18px;
    border: 0;
    background: transparent;
    border-bottom: 3px solid transparent;
    font-weight: 650;
    color: var(--muted);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px
}

.tab.on {
    color: var(--ink);
    border-bottom-color: var(--accent)
}

.badge {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: var(--na-bg);
    color: var(--na);
    font-size: 13px;
    display: inline-grid;
    place-items: center;
    font-variant-numeric: tabular-nums
}

.badge.warn {
    background: var(--tbc-bg);
    color: var(--tbc)
}

.badge.good {
    background: var(--ok-bg);
    color: var(--ok)
}

main.wrap {
    padding-block:18px 128px;display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 16px
}

main.wrap > * {
    min-width: 0
}

body.padopen main.wrap {
    padding-bottom: 480px
}

/* Building blocks */
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 18px;
    display: grid;
    gap: 16px;
    min-width: 0
}

.panel h2 {
    font-size: 20px
}

.sub {
    color: var(--muted);
    font-size: 15px
}

.grid {
    display: grid;
    gap: 16px
}

.g2 {
    grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr))
}

.g3 {
    grid-template-columns: repeat(auto-fit,minmax(min(100%,210px),1fr))
}

.row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center
}

.fld {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 7px;
    min-width: 0;
    align-content: start
}

.lbl {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted)
}

.txt,.area,.date {
    min-height: 54px;
    padding: 12px 14px;
    border: 1.5px solid var(--line-strong);
    border-radius: 8px;
    background: var(--raised);
    color: var(--ink);
    font: inherit;
    width: 100%;
    box-sizing: border-box
}

/* iPhone and iPad draw date boxes with their own built-in size. These rules make them match the text boxes. */
.date {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    min-width: 0;
    max-width: 100%;
    height: 54px;
    margin: 0;
    text-align: left
}

.date::-webkit-date-and-time-value {
    text-align: left;
    margin: 0
}

.area {
    min-height: 96px;
    resize: vertical
}

.txt:focus,.area:focus,.date:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-soft)
}

.txt::placeholder,.area::placeholder {
    color: var(--muted)
}

.padf {
    min-height: 58px;
    width: 100%;
    padding: 0 14px;
    text-align: left;
    border: 1.5px solid var(--line-strong);
    border-radius: 8px;
    background: var(--raised);
    font: 600 23px/1 var(--mono);
    font-variant-numeric: tabular-nums;
    display: flex;
    align-items: center;
    gap: 8px
}

.padf.big {
    min-height: 66px;
    font-size: 30px
}

.padf .ph {
    font: 500 16px var(--font);
    color: var(--muted)
}

.padf .na {
    color: var(--na)
}

.padf .na small {
    font: 500 14px var(--font);
    color: var(--muted)
}

.padf .unit {
    margin-left: auto;
    font: 500 15px var(--font);
    color: var(--muted)
}

.padf.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft)
}

.padf.warn {
    border-color: var(--tbc);
    background: var(--tbc-bg)
}

.warnmsg {
    font-size: 14px;
    font-weight: 600;
    color: var(--tbc)
}

.chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.chip {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 20px;
    border: 1px solid var(--line-strong);
    background: var(--raised);
    font-size: 15px;
    font-weight: 600
}

.chip.big {
    min-height: 48px;
    padding: 0 18px;
    font: 700 19px var(--mono);
    border-radius: 8px
}

.chip.on {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink)
}

.btn {
    min-height: 50px;
    padding: 0 18px;
    border-radius: 8px;
    border: 1.5px solid var(--line-strong);
    background: var(--raised);
    font-weight: 650;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center
}

.btn.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink)
}

.btn.bigb {
    min-height: 58px;
    font-size: 18px;
    padding: 0 24px
}

.btn.ghost {
    border-color: transparent;
    background: transparent
}

.btn.danger {
    color: var(--sz)
}

.btn.armed {
    background: var(--sz);
    border-color: var(--sz);
    color: var(--paper)
}

.stepper {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: max-content;
    border: 1.5px solid var(--line-strong);
    border-radius: 8px;
    overflow: hidden;
    background: var(--raised)
}

.stepper button {
    width: 64px;
    min-height: 56px;
    border: 0;
    background: var(--bg);
    font-size: 26px;
    font-weight: 600
}

.stepper output {
    min-width: 72px;
    display: grid;
    place-items: center;
    font: 700 26px var(--mono)
}

.banner {
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between
}

.banner.amber {
    background: var(--tbc-bg);
    color: var(--tbc)
}

.banner.red {
    background: var(--sz-bg);
    color: var(--sz)
}

.banner.green {
    background: var(--ok-bg);
    color: var(--ok)
}

.banner.plain {
    background: transparent;
    border: 1.5px dashed var(--line-strong);
    color: var(--muted)
}

details.refs summary {
    gap: 8px;
    font-size: 15px
}

details.refs summary::before {
    content: '›';
    display: inline-block;
    font-size: 20px;
    line-height: 1;
    transition: transform .15s
}

details.refs[open] summary::before {
    transform: rotate(90deg)
}

details.refs summary::-webkit-details-marker {
    display: none
}

details.refs summary {
    list-style: none
}

.banner.info {
    background: var(--na-bg);
    color: var(--na)
}

.banner .btn {
    min-height: 44px;
    color: var(--ink)
}

/* Home */
.hero {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap
}

.hero h1 {
    font-size: 28px;
    letter-spacing: -.01em
}

.runs {
    display: grid;
    gap: 10px
}

.run {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 8px 12px 8px 8px
}

.run-open {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: center;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 8px;
    border-radius: 8px;
    min-width: 0
}

.run-id {
    font: 800 24px var(--mono);
    min-width: 84px
}

.run-meta {
    display: grid;
    gap: 4px;
    min-width: 0
}

.run-meta b {
    font-size: 17px
}

.run-meta span {
    color: var(--muted);
    font-size: 14.5px;
    font-variant-numeric: tabular-nums
}

.run-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap
}

.pill.draft {
    background: var(--na-bg);
    color: var(--na)
}

.pill.done {
    background: var(--tbc-bg);
    color: var(--tbc)
}

.pill.sent {
    background: var(--ok-bg);
    color: var(--ok)
}

.pill.eg {
    background: var(--ch-bg);
    color: var(--ch)
}

.empty {
    border: 2px dashed var(--line-strong);
    border-radius: var(--r);
    padding: 28px 20px;
    display: grid;
    gap: 14px;
    justify-items: start
}

.foot {
    font-size: 13px;
    color: var(--muted);
    display: grid;
    gap: 4px;
    padding-top: 8px
}

@media (max-width: 560px) {
    .run {
        grid-template-columns:1fr
    }

    .run-side {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        padding-left: 8px
    }
}

/* Structures */
.strip-wrap {
    display: flex;
    gap: 10px;
    align-items: center
}

.strip {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 2px;
    flex: 1;
    min-width: 0;
    scrollbar-width: thin
}

.schip {
    flex: none;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1.5px solid var(--line);
    background: var(--raised);
    font: 700 15px var(--mono);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap
}

.schip::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid var(--line-strong)
}

.schip.ok::before {
    background: var(--ok);
    border-color: var(--ok)
}

.schip.att::before {
    background: var(--tbc);
    border-color: var(--tbc)
}

.schip.on {
    border-color: var(--accent);
    background: var(--accent-soft)
}

.schip.add {
    font-family: var(--font);
    color: var(--accent);
    border-style: dashed
}

.schip.add::before {
    display: none
}

.seg {
    display: inline-flex;
    border: 1.5px solid var(--line-strong);
    border-radius: 8px;
    overflow: hidden;
    flex: none
}

.seg button {
    min-height: 44px;
    padding: 0 14px;
    border: 0;
    background: var(--raised);
    font-weight: 650;
    font-size: 15px
}

.seg button.on {
    background: var(--ink);
    color: var(--surface)
}

.scard {
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 18px;
    display: grid;
    gap: 18px
}

.scard-head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: end
}

.count {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted)
}

.note {
    font-size: 14.5px;
    color: var(--ch);
    background: var(--ch-bg);
    border-radius: 8px;
    padding: 10px 12px
}

.checks-head {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap
}

.checks-head h3 {
    font-size: 17px
}

.legend {
    display: flex;
    gap: 6px 14px;
    flex-wrap: wrap;
    font-size: 13.5px;
    color: var(--muted)
}

.legend b {
    font-family: var(--mono)
}

.tiles {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 8px
}

@media (max-width: 640px) {
    .tiles {
        grid-template-columns:repeat(2,minmax(0,1fr))
    }
}

.tile {
    min-height: 80px;
    border-radius: 8px;
    border: 1.5px solid var(--line);
    background: var(--raised);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 6px;
    padding: 9px 11px;
    text-align: left
}

.tile .tl {
    font-size: 13.5px;
    font-weight: 650;
    line-height: 1.15;
    color: var(--muted)
}

.tile .tv {
    font: 800 25px/1 var(--mono)
}

.tile.c-none {
    border-style: dashed
}

.tile.c-none .tv {
    color: var(--line-strong)
}

.tile.c-Y {
    background: var(--ok-bg);
    border-color: var(--ok)
}

.tile.c-Y .tv,.tile.c-Y .tl {
    color: var(--ok)
}

.tile.c-X {
    background: var(--na-bg);
    border-color: var(--na-bg)
}

.tile.c-X .tv {
    color: var(--na)
}

.tile.c-TBC {
    background: var(--tbc-bg);
    border-color: var(--tbc)
}

.tile.c-TBC .tv,.tile.c-TBC .tl {
    color: var(--tbc)
}

.tile.c-S {
    background: var(--sz-bg);
    border-color: var(--sz)
}

.tile.c-S .tv,.tile.c-S .tl {
    color: var(--sz)
}

.tile.c-C {
    background: var(--ch-bg);
    border-color: var(--ch)
}

.tile.c-C .tv,.tile.c-C .tl {
    color: var(--ch)
}

.navbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 15;
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding-top: 10px;
    padding-bottom: max(10px,env(safe-area-inset-bottom,0px))
}

.navbar .wrap {
    display: flex;
    gap: 12px
}

.navbar .btn {
    flex: 1;
    min-height: 58px;
    font-size: 18px
}

body.padopen .navbar {
    display: none
}

.tablewrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--raised)
}

table.gt {
    border-collapse: collapse;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    width: max-content;
    min-width: 100%
}

.gt th {
    position: sticky;
    top: 0;
    background: var(--surface);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 8px 6px;
    border-bottom: 1px solid var(--line);
    text-align: center;
    white-space: nowrap
}

.gt td {
    padding: 0;
    border-bottom: 1px solid var(--line);
    text-align: center;
    font-family: var(--mono);
    font-weight: 700
}

.gt td button {
    all: unset;
    display: block;
    padding: 10px 6px;
    min-width: 34px;
    cursor: pointer
}

.gt td.l,.gt th.l {
    text-align: left
}

.gt tr.on td {
    background: var(--accent-soft)
}

.gt .cY {
    color: var(--ok)
}

.gt .cX {
    color: var(--na);
    font-weight: 500
}

.gt .cTBC {
    color: var(--tbc)
}

.gt .cS {
    color: var(--sz)
}

.gt .cC {
    color: var(--ch)
}

.gt .cnone {
    color: var(--sz)
}

/* Defects */
.dcard {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 18px;
    display: grid;
    gap: 16px
}

.dhead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px
}

.dhead h3 {
    font-size: 18px
}

.pcs {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 6px
}

@media (max-width: 640px) {
    .pcs {
        grid-template-columns:repeat(2,minmax(0,1fr))
    }
}

.pc {
    min-height: 64px;
    border-radius: 8px;
    border: 1.5px solid var(--line);
    background: var(--raised);
    display: grid;
    align-content: center;
    justify-items: start;
    padding: 6px 10px;
    text-align: left;
    gap: 2px
}

.pc b {
    font: 800 20px/1 var(--mono)
}

.pc small {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.15
}

.pc.on {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink)
}

.pc.on small {
    color: var(--accent-ink)
}

.risks {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 8px
}

.risk {
    min-height: 64px;
    border-radius: 8px;
    border: 1.5px solid var(--line);
    background: var(--raised);
    display: grid;
    align-content: center;
    gap: 2px
}

.risk b {
    font: 800 20px/1 var(--mono)
}

.risk small {
    font-size: 13px
}

.risk.hi.on {
    background: var(--sz-bg);
    border-color: var(--sz);
    color: var(--sz)
}

.risk.med.on {
    background: var(--tbc-bg);
    border-color: var(--tbc);
    color: var(--tbc)
}

.risk.lo.on {
    background: var(--ok-bg);
    border-color: var(--ok);
    color: var(--ok)
}

.yn {
    display: inline-flex;
    gap: 8px
}

.yn button {
    min-width: 84px;
    min-height: 52px;
    border-radius: 8px;
    border: 1.5px solid var(--line-strong);
    background: var(--raised);
    font-weight: 700
}

.yn button.on {
    background: var(--ink);
    color: var(--surface);
    border-color: var(--ink)
}

details.office {
    border-top: 1px solid var(--line);
    padding-top: 12px
}

details.office summary {
    cursor: pointer;
    font-weight: 650;
    color: var(--muted);
    min-height: 36px;
    display: flex;
    align-items: center
}

details.office .grid {
    margin-top: 12px
}

/* Finish */
.issues {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none
}

.issues li {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    background: var(--raised);
    border: 1px solid var(--line);
    border-left: 4px solid var(--tbc);
    border-radius: 8px;
    padding: 8px 8px 8px 12px;
    font-size: 15.5px
}

.issues li.soft {
    border-left-color: var(--ch)
}

.issues .btn {
    min-height: 42px;
    flex: none
}

.sig {
    display: grid;
    gap: 8px
}

.sig-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px
}

.sigpad {
    width: 100%;
    height: 170px;
    background: var(--paper);
    border: 1.5px solid var(--line-strong);
    border-radius: 8px;
    touch-action: none;
    display: block
}

.sig-hint {
    font-size: 13px;
    color: var(--muted)
}

.xstep {
    display: grid;
    gap: 12px;
    border-top: 1px solid var(--line);
    padding-top: 16px
}

.xstep h3 {
    font-size: 17px;
    display: flex;
    align-items: center;
    gap: 10px
}

.num {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--surface);
    font: 700 14px var(--mono)
}

.files {
    font: 13px/1.6 var(--mono);
    color: var(--muted);
    overflow-wrap: anywhere
}

.sendto {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    background: var(--raised);
    border: 2px solid var(--accent);
    border-radius: 10px;
    padding: 12px 14px
}

.sendto .addr {
    font: 700 20px var(--mono);
    overflow-wrap: anywhere;
    flex: 1;
    min-width: 0;
    user-select: all;
    -webkit-user-select: all
}

.must {
    font-weight: 700;
    color: var(--sz)
}

.btn.wide {
    width: 100%
}

.steps {
    margin: 0;
    padding-left: 22px;
    display: grid;
    gap: 6px;
    font-size: 15.5px
}

.steps i {
    font-style: normal;
    font-weight: 650
}

a.btn {
    text-decoration: none;
    color: var(--ink)
}

a.btn.primary {
    color: var(--accent-ink)
}

.complete-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap
}

/* Number pad */
.pad {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px var(--shadow);
    padding-bottom: env(safe-area-inset-bottom,0px)
}

.pad-in {
    max-width: 640px;
    margin: 0 auto;
    padding-block:12px 14px;display: grid;
    gap: 10px
}

.pad-head {
    display: flex;
    align-items: flex-start;
    gap: 12px
}

.pad-meta {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 2px
}

.pad-lbl {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted)
}

.pad-val {
    font: 700 34px/1.15 var(--mono);
    font-variant-numeric: tabular-nums;
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 2px;
    overflow: hidden
}

.pad-val .v {
    padding: 0 2px;
    border-radius: 4px
}

.pad-val.sel .v {
    background: var(--accent-soft)
}

.pad-val .ph {
    color: var(--line-strong)
}

.pad-val small {
    font: 500 15px var(--font);
    color: var(--muted);
    margin-left: 8px
}

.caret {
    width: 3px;
    height: 32px;
    background: var(--accent);
    animation: blink 1s steps(1) infinite
}

@keyframes blink {
    50% {
        opacity: 0
    }
}

@media (prefers-reduced-motion:reduce) {
    .caret {
        animation: none
    }
}

.pad-warn {
    font-size: 14px;
    font-weight: 700;
    color: var(--tbc)
}

.pad-sugg {
    display: flex;
    gap: 8px;
    overflow-x: auto
}

.keys {
    display: grid;
    gap: 8px
}

.keys.c4 {
    grid-template-columns: repeat(4,minmax(0,1fr))
}

.keys.c5 {
    grid-template-columns: repeat(5,minmax(0,1fr))
}

.k {
    min-height: 60px;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: var(--raised);
    font: 650 26px var(--mono);
    box-shadow: 0 1px 0 var(--line)
}

.k.fn {
    font: 650 17px var(--font);
    background: var(--bg)
}

.k.na {
    font: 700 16px var(--font);
    background: var(--na-bg);
    color: var(--na)
}

.k.go {
    grid-column: span 2;
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
    font: 700 19px var(--font)
}

.k:active {
    transform: translateY(1px);
    filter: brightness(.94)
}

.kgap {
    min-height: 60px
}

/* Sheet (export preview) */
.sheet {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: var(--shadow);
    display: grid;
    align-items: end;
    justify-items: center
}

.sheet-in {
    background: var(--surface);
    width: min(1000px,100%);
    max-height: 88vh;
    border-radius: 14px 14px 0 0;
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding-bottom: env(safe-area-inset-bottom,0px)
}

.sheet-head,.sheet-foot {
    padding: 14px 18px;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap
}

.sheet-head {
    border-bottom: 1px solid var(--line)
}

.sheet-foot {
    border-top: 1px solid var(--line)
}

.sheet-body {
    overflow: auto;
    padding: 12px 18px;
    min-height: 0
}

.finds {
    display: grid;
    gap: 10px;
    border-top: 1px solid var(--line);
    padding-top: 16px
}

.fhead {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap
}

.fhead h3 {
    font-size: 17px
}

.frow {
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    gap: 10px;
    align-items: center
}

@media (max-width: 600px) {
    .frow {
        grid-template-columns:minmax(0,1fr) auto
    }

    .frow .kind {
        grid-column: 1 / -1;
        justify-self: start
    }
}

.kind {
    display: inline-flex;
    border: 1.5px solid var(--line-strong);
    border-radius: 8px;
    overflow: hidden
}

.kind button {
    min-height: 50px;
    padding: 0 14px;
    border: 0;
    background: var(--raised);
    font-weight: 700;
    font-size: 15px;
    color: var(--muted)
}

.kind button.on.def {
    background: var(--tbc-bg);
    color: var(--tbc)
}

.kind button.on.com {
    background: var(--na-bg);
    color: var(--ink)
}

.kind button.armq {
    background: var(--sz-bg);
    color: var(--sz)
}

.frow .txt {
    min-height: 52px
}

.x {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: 0;
    background: transparent;
    font-size: 26px;
    color: var(--muted)
}

.addrow {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.addrow .btn {
    flex: 1;
    min-width: 200px;
    min-height: 56px;
    font-size: 17px;
    border-style: dashed;
    border-width: 2px
}

.addrow .btn.d {
    color: var(--tbc);
    border-color: var(--tbc)
}

.hint {
    font-size: 14.5px;
    color: var(--muted)
}

.hint b {
    color: var(--tbc)
}

.linkbtn {
    border: 0;
    background: transparent;
    padding: 0 4px;
    color: var(--accent);
    font-weight: 700;
    text-decoration: underline;
    font-size: inherit
}

.grp {
    display: grid;
    gap: 10px
}

.grp-h {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 4px 0
}

.grp-h b {
    font: 800 22px var(--mono)
}

.dmini {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 5px solid var(--tbc);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    min-height: 62px
}

.dmini.ok {
    border-left-color: var(--ok)
}

.dmini .t {
    flex: 1;
    min-width: 0;
    font-size: 17px;
    font-weight: 600;
    overflow-wrap: anywhere
}

.chev {
    font-size: 24px;
    color: var(--muted);
    transition: transform .15s
}

.chev.open {
    transform: rotate(90deg)
}

.dcard.dopen {
    border-left: 5px solid var(--accent)
}

.dhead.dtoggle {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px
}

.dhead.dtoggle h3 {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere
}

.picks {
    display: grid;
    gap: 8px
}

.pick {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1.5px solid var(--line-strong);
    background: var(--raised);
    text-align: left;
    font-size: 17px
}

.pick .box {
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 2px solid var(--line-strong);
    display: grid;
    place-items: center;
    font-weight: 800;
    color: var(--accent-ink)
}

.pick.on {
    border-color: var(--accent)
}

.pick.on .box {
    background: var(--accent);
    border-color: var(--accent)
}

.pick .pt {
    flex: 1;
    min-width: 0
}

.csvt {
    border-collapse: collapse;
    font-size: 13px;
    font-family: var(--mono);
    width: max-content
}

.csvt th,.csvt td {
    border: 1px solid var(--line);
    padding: 5px 8px;
    text-align: left;
    white-space: nowrap
}

.csvt th {
    background: var(--bg);
    font-family: var(--font);
    font-size: 12px
}

.csvraw {
    width: 100%;
    min-height: 160px;
    margin-top: 12px;
    font: 13px var(--mono);
    background: var(--raised);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-sizing: border-box
}

.toast {
    position: fixed;
    left: 50%;
    bottom: calc(92px + env(safe-area-inset-bottom,0px));
    transform: translateX(-50%);
    z-index: 60;
    background: var(--ink);
    color: var(--surface);
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    max-width: calc(100% - 32px);
    text-align: center
}

/* Added for the shared folder */
a.back {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding-left: 0;
    text-decoration: none
}

.qrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-block: 10px;
    border-top: 1px solid var(--line)
}

.qrow:first-of-type {
    border-top: 0
}

.qrow .q {
    flex: 1;
    min-width: min(100%,260px);
    font-weight: 600
}

.qflag {
    flex-basis: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap
}

.hub-link {
    text-decoration: none;
    color: var(--ink)
}

.yn.wide button {
    padding: 0 18px
}

.declare {
    font-size: 15.5px
}
