@font-face {
    font-family: "IBM Plex Sans";
    src: url("../fonts/ibm-plex-sans-latin-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "IBM Plex Sans";
    src: url("../fonts/ibm-plex-sans-latin-500.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "IBM Plex Sans";
    src: url("../fonts/ibm-plex-sans-latin-600.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "IBM Plex Serif";
    src: url("../fonts/ibm-plex-serif-latin-600.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink: #161a17;
    --ink-soft: #3d453e;
    --paper: #f3efe6;
    --paper-2: #e7e1d4;
    --rule: #cfc6b4;
    --lime: #c6f000;
    --magenta: #e11d74;
    --cyan: #1ec8e0;
    --night: #0e1210;
    --night-2: #171d19;
    --ok: #1f6b3a;
    --wait: #8a6a12;
    --hot: #9b1848;
    --focus: #1ec8e0;
}

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

html { font-size: 16px; }

body {
    margin: 0;
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.45;
}

::selection {
    background: var(--lime);
    color: var(--night);
}

.skip {
    position: absolute;
    left: 8px;
    top: -40px;
    background: var(--lime);
    color: var(--night);
    padding: 8px 12px;
    z-index: 20;
}
.skip:focus { top: 8px; }

a { color: inherit; }

.wordmark {
    font-family: "IBM Plex Serif", Georgia, serif;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin: 0;
}
.wordmark span {
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 500;
    letter-spacing: 0;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--ink-soft);
}

.lede { color: var(--ink-soft); margin-top: 0; }

.inline { display: inline; margin: 0; }

.text-btn {
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.text-btn.invert { color: #e7e1d4; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.btn-lime { background: var(--lime); color: var(--night); }
.btn-ghost {
    background: transparent;
    border: 1px solid var(--rule);
    color: var(--ink);
}
.btn-ghost.invert { border-color: #4a534c; color: #f3efe6; }
.btn-huge { width: 100%; min-height: 64px; font-size: 1.15rem; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.banner {
    padding: 12px 14px;
    margin: 0 0 16px;
}
.banner-bad { background: #3a101f; color: #ffd0e0; }

label { display: block; }
label span { display: block; font-weight: 500; margin-bottom: 6px; }
label em { font-style: normal; font-weight: 400; color: var(--ink-soft); }
input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    min-height: 48px;
    padding: 0 12px;
    border: 1px solid #4a534c;
    background: #101511;
    color: #f3efe6;
    font: inherit;
}
.skin-desk input {
    background: #fff;
    color: var(--ink);
    border-color: var(--rule);
}

.stack { display: grid; gap: 14px; }

/* Night / sign-in */
.skin-night { background: var(--night); color: #f3efe6; }
.skin-night .eyebrow { color: var(--lime); }
.auth-shell {
    min-height: 100vh;
    display: grid;
}
.auth-aside { display: none; }
.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}
.auth-card { width: min(420px, 100%); }
.auth-card h1 { font-size: 1.85rem; margin: 10px 0 8px; letter-spacing: -0.02em; }
.auth-card .wordmark { font-size: 1.35rem; padding-bottom: 14px; border-bottom: 3px solid var(--lime); }
.auth-steps {
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    max-width: 20em;
    color: #cfc6b4;
}
.auth-steps li {
    padding: 10px 0;
    border-top: 1px solid #2a312c;
}

@media (min-width: 880px) {
    .auth-shell { grid-template-columns: 1fr 1fr; }
    .auth-aside {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 56px;
        background: var(--night-2);
        border-right: 3px solid var(--lime);
    }
    .auth-aside-lead { font-size: 1.55rem; max-width: 14em; margin: 0; letter-spacing: -0.02em; line-height: 1.25; }
}

/* Office desk */
.chrome {
    position: sticky;
    top: 0;
    z-index: 5;
}
.mast {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-end;
    padding: 16px 28px 14px;
    background: var(--night);
    color: #f3efe6;
    border-bottom: 3px solid var(--lime);
}
.mast-brand .wordmark { font-size: 1.25rem; color: inherit; text-decoration: none; }
.mast-when { margin: 6px 0 0; color: #cfc6b4; font-size: 0.9rem; }
.mast-user { text-align: right; font-size: 0.9rem; }
.mast-name, .mast-role { margin: 0; }
.mast-name { font-weight: 600; }
.mast-role { color: #cfc6b4; }

.rail {
    display: flex;
    gap: 4px;
    padding: 0 28px;
    background: var(--paper-2);
    border-bottom: 1px solid var(--rule);
    overflow-x: auto;
}
.rail a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    text-decoration: none;
    color: var(--ink-soft);
    font-weight: 500;
}
.rail a[aria-current="page"] {
    color: var(--ink);
    box-shadow: inset 0 -3px 0 var(--lime);
}

.desk { padding: 28px; max-width: 1180px; }
.page-head .eyebrow { margin-bottom: 4px; }
.page-head h1 { margin: 0 0 6px; font-size: 1.75rem; letter-spacing: -0.02em; }
.page-head p { margin: 0 0 22px; color: var(--ink-soft); }

.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}
.tile {
    display: block;
    background: #fff;
    border: 1px solid var(--rule);
    padding: 16px 16px 14px;
    text-decoration: none;
}
.tile:hover { border-color: var(--ink); }
.tile-kicker { margin: 0; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.tile-num { margin: 8px 0 4px; font-size: 2rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.tile-split { color: var(--ink-soft); font-size: 1.2rem; }
.tile-meta { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }
.tile-money { border-top: 3px solid var(--cyan); }

.sheet-block { margin-bottom: 28px; }
.sheet-head,
.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}
.sheet-head h2,
.panel-head h2 { margin: 0 0 12px; font-size: 1rem; }
.sheet-head p,
.panel-head p {
    margin: 0;
    color: var(--ink-soft);
    font-variant-numeric: tabular-nums;
}

.board {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 900px) {
    .board { grid-template-columns: 1fr 1fr; }
}
.panel {
    background: #fff;
    border: 1px solid var(--rule);
    padding: 16px 18px 8px;
}
.panel h2 { margin: 0 0 12px; font-size: 1rem; }
.empty { color: var(--ink-soft); }
.empty-pad { background: #fff; border: 1px solid var(--rule); padding: 20px 18px; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { padding: 10px 0; border-top: 1px solid var(--paper-2); }
.row-title { margin: 0; font-weight: 500; }
.row-meta { margin: 2px 0 0; color: var(--ink-soft); font-size: 0.9rem; }

.mark {
    display: inline-block;
    padding: 1px 7px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.mark-ok { background: #d7eedd; color: var(--ok); }
.mark-wait { background: #f3e6b8; color: var(--wait); }
.mark-hot { background: #f8d5e3; color: var(--hot); }

.chip {
    display: inline-block;
    margin: 0 4px 4px 0;
    padding: 1px 7px;
    border: 1px solid var(--rule);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.sheet {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--rule);
}
.sheet th, .sheet td {
    text-align: left;
    padding: 11px 12px;
    border-bottom: 1px solid var(--paper-2);
    vertical-align: top;
}
.sheet th {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-soft);
    font-weight: 600;
}
.sheet td.num,
.num { font-variant-numeric: tabular-nums; }
.cell-strong { display: block; font-weight: 600; }
.quiet { display: block; color: var(--ink-soft); font-size: 0.9rem; }
.sheet tbody tr:hover td { background: #faf7f1; }

.defs {
    display: grid;
    gap: 12px;
    margin: 0;
    grid-template-columns: 1fr;
}
@media (min-width: 720px) {
    .defs { grid-template-columns: 1fr 1fr; }
}
.defs div { background: #fff; border: 1px solid var(--rule); padding: 14px 16px; }
.defs dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.defs dd { margin: 4px 0 0; font-weight: 500; }

.desk-foot { margin-top: 28px; color: var(--ink-soft); }

/* Operative, one-handed, night on site */
.skin-hand { min-height: 100vh; }
.hand-mast {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 20px;
    border-bottom: 3px solid var(--lime);
}
.hand-nav { display: flex; gap: 16px; font-weight: 600; }
.hand-nav a[aria-current="page"] { color: var(--lime); }
.install-banner,
.push-banner {
    background: #171d19;
    border-left: 3px solid var(--cyan);
    padding: 12px 14px;
    margin: 0 0 16px;
    color: #f3efe6;
}
.hand-form label { display: block; margin-bottom: 12px; }
.hand-form input,
.hand-form select {
    width: 100%;
    min-height: 48px;
    padding: 0 12px;
    border: 1px solid #3d453e;
    background: var(--night-2);
    color: #f3efe6;
    font: inherit;
}
.offer-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 12px; }
.find-sheet input[type="checkbox"] { width: 1.2rem; height: 1.2rem; }
.hand { padding: 20px; max-width: 480px; margin: 0 auto; }
.hand-hello { margin: 0; color: #cfc6b4; }
.hand-date { margin: 0 0 20px; font-weight: 600; }
.job {
    background: var(--night-2);
    padding: 22px 20px 20px;
    margin-bottom: 24px;
    border-left: 3px solid var(--lime);
}
.job h1 { margin: 4px 0 6px; font-size: 1.85rem; letter-spacing: -0.02em; }
.job-client { margin: 0 0 16px; color: #cfc6b4; }
.job-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 10px; margin: 0 0 16px; }
.job-facts dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: #cfc6b4; }
.job-facts dd { margin: 2px 0 0; font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.job-contact { color: #cfc6b4; margin: 0 0 8px; }
.job-help { color: #cfc6b4; font-size: 0.9rem; margin: 10px 0 0; }
.map-link { color: var(--cyan); font-weight: 600; }
.job-empty { border-left-color: #4a534c; }
.job-empty h1 { font-size: 1.5rem; }
.hand-block h2 { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: #cfc6b4; }
.offer { background: var(--night-2); padding: 16px; margin-bottom: 12px; border-left: 3px solid var(--magenta); }
.offer-title { margin: 0 0 4px; font-weight: 600; font-size: 1.15rem; }
.offer-meta { margin: 0 0 4px; color: #cfc6b4; }
.offer-rate { font-size: 1.2rem; font-weight: 600; color: var(--lime); margin: 8px 0 0; }
.hand-list { padding-left: 0; list-style: none; }
.hand-list li { padding: 10px 0; border-top: 1px solid #2a312c; color: #cfc6b4; }
.hand-list .cell-strong { color: #f3efe6; margin-bottom: 2px; }

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

.banner-ok { background: #d7eedd; color: var(--ok); }
.banner-desk-bad { background: #f8d5e3; color: var(--hot); }

.split-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.split-head .btn { flex: 0 0 auto; }

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    margin: 0 0 20px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--rule);
}
.filter-bar label { min-width: 140px; flex: 1 1 140px; }
.filter-bar .btn { min-height: 48px; }

.form-card {
    background: #fff;
    border: 1px solid var(--rule);
    padding: 20px 18px;
    margin-bottom: 28px;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
@media (min-width: 720px) {
    .form-grid { grid-template-columns: 1fr 1fr; }
    .form-grid .wide { grid-column: 1 / -1; }
}
select, textarea,
.skin-desk input[type="search"],
.skin-desk input[type="number"],
.skin-desk input[type="date"],
.skin-desk input[type="time"],
.skin-desk input[type="datetime-local"],
.skin-desk input[type="file"] {
    width: 100%;
    min-height: 48px;
    padding: 0 12px;
    border: 1px solid var(--rule);
    background: #fff;
    color: var(--ink);
    font: inherit;
}
textarea { min-height: 88px; padding: 10px 12px; }
.check {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
}
.check input { width: auto; min-height: 0; }
.role-box {
    border: 1px solid var(--rule);
    padding: 12px 14px 6px;
    margin: 0;
}
.role-box legend { font-weight: 600; padding: 0 6px; }
.role-row {
    display: grid;
    grid-template-columns: 1fr 8rem;
    gap: 8px;
    margin-bottom: 8px;
}
.chip-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.late-actions {
    margin-top: 28px;
    align-items: flex-start;
}
.late-actions form { flex: 1 1 220px; }
.compact-tiles { margin-bottom: 20px; }
.map-link-desk { color: #0b6b78; font-weight: 600; }
.form-card h3 { margin: 0 0 8px; font-size: 1rem; }
.blockers { list-style: none; margin: 0 0 16px; padding: 0; }
.blockers li { padding: 8px 0; border-top: 1px solid var(--rule); }
.queue-banner { margin: 0 0 16px; padding: 10px 12px; background: #2a312c; color: #f3efe6; }

@media (max-width: 640px) {
    .mast, .rail, .desk { padding-left: 16px; padding-right: 16px; }
    .tile-num { font-size: 1.6rem; }
    .sheet { display: block; overflow-x: auto; }
    .role-row { grid-template-columns: 1fr; }
}
