/* =========================================================================
   Hilsons MVP — Pick & Pack
   A packing workstation first, an admin dashboard second: big type, high
   contrast, generous hit targets, and nothing on screen that isn't used.
   ========================================================================= */

:root {
    --ink: #0f172a;
    --ink-soft: #475569;
    --ink-faint: #94a3b8;

    --surface: #ffffff;
    --canvas: #f1f3f7;
    --line: #dfe3ea;
    --line-strong: #cbd2dd;

    --brand: #0f766e;
    --brand-dark: #115e56;
    --brand-tint: #ecfdf9;

    --amber: #b45309;
    --amber-tint: #fffbeb;
    --green: #15803d;
    --green-tint: #f0fdf4;
    --red: #b91c1c;
    --red-tint: #fef2f2;
    --violet: #6d28d9;
    --violet-tint: #f5f3ff;

    --radius: 10px;
    --radius-lg: 14px;
    --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
    --shadow-lg: 0 4px 6px -1px rgba(15, 23, 42, .07), 0 10px 24px -6px rgba(15, 23, 42, .12);

    --header-h: 60px;
}

* { box-sizing: border-box; }

html { font-size: 16px; }

body {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--canvas);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }

a { color: var(--brand); }

/* ---------------------------------------------------------------- layout */

.app-header {
    position: sticky;
    top: 0;
    z-index: 40;
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 0 24px;
    background: var(--ink);
    color: #fff;
}

/* Scoped to the header: an unscoped .brand also matched the .stat.brand tile modifier. */
.app-header .brand {
    display: flex;
    align-items: baseline;
    gap: 9px;
    text-decoration: none;
    color: #fff;
    white-space: nowrap;
}

.app-header .brand-mark { font-size: 1.02rem; font-weight: 800; letter-spacing: .09em; }
.app-header .brand-sub { font-size: .72rem; letter-spacing: .16em; color: #94a3b8; text-transform: uppercase; }

.app-nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; }

.app-nav a {
    display: block;
    padding: 8px 15px;
    border-radius: 8px;
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    font-size: .92rem;
    white-space: nowrap;
    transition: background .12s, color .12s;
}

.app-nav a:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.app-nav a.active { background: #fff; color: var(--ink); }

.app-main { max-width: 1240px; margin: 0 auto; padding: 28px 24px 72px; }

/* ------------------------------------------------------------ page head */

.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.page-head h1 { font-size: 1.85rem; }
.page-head p { margin: 5px 0 0; color: var(--ink-soft); font-size: .95rem; }
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ----------------------------------------------------------------- cards */

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.card-pad { padding: 22px; }

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 16px 22px;
    border-bottom: 1px solid var(--line);
}

.card-head h2 { font-size: 1.05rem; }

/* ------------------------------------------------------------- stat tiles */

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.stat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 5px solid var(--line-strong);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: var(--shadow);
}

.stat .label {
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.stat .value { font-size: 2.5rem; font-weight: 800; line-height: 1.05; margin-top: 6px; letter-spacing: -.03em; }
.stat .hint { font-size: .82rem; color: var(--ink-faint); margin-top: 2px; }

.stat.amber { border-left-color: var(--amber); }
.stat.amber .value { color: var(--amber); }
.stat.green { border-left-color: var(--green); }
.stat.green .value { color: var(--green); }
.stat.brand { border-left-color: var(--brand); }
.stat.brand .value { color: var(--brand); }
.stat.violet { border-left-color: var(--violet); }
.stat.violet .value { color: var(--violet); }

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    min-height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: var(--surface);
    color: var(--ink);
    font-family: inherit;
    font-size: .92rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background .12s, border-color .12s, transform .06s;
}

.btn:hover { background: #f8fafc; border-color: var(--ink-faint); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid rgba(15, 118, 110, .35); outline-offset: 2px; }

.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }

.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: #1e293b; border-color: #1e293b; }

.btn-success { background: var(--green); border-color: var(--green); color: #fff; }
.btn-success:hover { background: #166534; border-color: #166534; }

.btn-danger-quiet { color: var(--red); }
.btn-danger-quiet:hover { background: var(--red-tint); border-color: #fca5a5; }

.btn-lg { min-height: 52px; padding: 12px 26px; font-size: 1.02rem; }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: .84rem; }
.btn-block { width: 100%; }

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

.table-wrap { overflow-x: auto; }

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

table.data th {
    text-align: left;
    padding: 11px 18px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--ink-soft);
    background: #f8fafc;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

table.data td { padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #fafbfc; }

table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data td.tight { width: 1%; white-space: nowrap; }

.order-no { font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
.mono { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace; font-size: .87em; }

/* ----------------------------------------------------------------- pills */

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    border: 1px solid transparent;
    white-space: nowrap;
}

.pill.pending { background: var(--amber-tint); color: var(--amber); border-color: #fcd34d; }
.pill.packed { background: var(--green-tint); color: var(--green); border-color: #86efac; }
.pill.cancelled { background: #f1f5f9; color: var(--ink-soft); border-color: var(--line-strong); }
.pill.inactive { background: #f1f5f9; color: var(--ink-soft); border-color: var(--line-strong); }
.pill.active { background: var(--green-tint); color: var(--green); border-color: #86efac; }
.pill.source { background: var(--violet-tint); color: var(--violet); border-color: #ddd6fe; }

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

.field { margin-bottom: 16px; }

.field label {
    display: block;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 6px;
}

.input, .select, .textarea {
    width: 100%;
    padding: 11px 13px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    transition: border-color .12s, box-shadow .12s;
}

.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, .16);
}

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

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.check { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.check input { width: 19px; height: 19px; accent-color: var(--brand); cursor: pointer; }

.hint { font-size: .82rem; color: var(--ink-faint); margin-top: 5px; }

/* -------------------------------------------------------------- messages */

.alert {
    display: flex;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius);
    border: 1px solid;
    font-size: .94rem;
    margin-bottom: 18px;
}

.alert strong { display: block; margin-bottom: 2px; }
.alert.error { background: var(--red-tint); border-color: #fecaca; color: #7f1d1d; }
.alert.warn { background: var(--amber-tint); border-color: #fde68a; color: #78350f; }
.alert.ok { background: var(--green-tint); border-color: #bbf7d0; color: #14532d; }
.alert.info { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }

.empty { text-align: center; padding: 64px 24px; color: var(--ink-soft); }
.empty .icon { font-size: 2.6rem; margin-bottom: 10px; opacity: .5; }
.empty h3 { font-size: 1.15rem; margin-bottom: 6px; color: var(--ink); }
.empty p { margin: 0 0 18px; }

.loading { display: flex; align-items: center; gap: 12px; padding: 48px 24px; color: var(--ink-soft); justify-content: center; }

.spinner {
    width: 20px;
    height: 20px;
    border: 2.5px solid var(--line-strong);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ================================================= Shopify Simulator page */

.sim {
    max-width: 780px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.sim-chrome {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 20px;
    background: #1a1a1a;
    color: #e5e7eb;
}

.sim-chrome .dot { width: 11px; height: 11px; border-radius: 50%; background: #95bf47; }
.sim-chrome .title { font-weight: 700; font-size: .93rem; letter-spacing: .02em; }
.sim-chrome .tag {
    margin-left: auto;
    font-size: .68rem;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: #9ca3af;
    border: 1px solid #3f3f46;
    border-radius: 999px;
    padding: 3px 10px;
}

.sim-body { padding: 24px; }

.sim-section {
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: var(--ink-soft);
    padding-top: 8px;
    margin-bottom: 14px;
    border-top: 1px solid var(--line);
}

.sim-section:first-child { border-top: 0; padding-top: 0; }

.line-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.line-item:last-of-type { border-bottom: 0; }
.line-item .name { flex: 1; min-width: 0; font-weight: 600; }
.line-item .name small { display: block; font-weight: 500; color: var(--ink-faint); font-size: .78rem; }

.stepper { display: flex; align-items: center; gap: 4px; }

.stepper button {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--ink);
    cursor: pointer;
}

.stepper button:hover:not(:disabled) { background: #f1f5f9; }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }

.stepper .qty {
    width: 54px;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    height: 38px;
    font-family: inherit;
    color: var(--ink);
}

.line-remove {
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: var(--ink-faint);
    font-size: 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    line-height: 1;
}

.line-remove:hover { background: var(--red-tint); color: var(--red); }

.sim-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 16px 0 20px;
    margin-top: 8px;
    border-top: 2px solid var(--ink);
}

.sim-total .label { font-size: .78rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--ink-soft); }
.sim-total .value { font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; }
.sim-total .value small { font-size: .95rem; font-weight: 600; color: var(--ink-soft); margin-left: 6px; }

/* Order-received confirmation */

.receipt { max-width: 560px; margin: 40px auto; text-align: center; }

.receipt .tick {
    width: 74px;
    height: 74px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--green-tint);
    border: 2px solid #86efac;
    color: var(--green);
    font-size: 2.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.receipt h2 { font-size: 1.5rem; margin-bottom: 6px; }
.receipt .order-ref { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; margin: 14px 0 20px; }

.receipt-figures {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 26px;
}

.receipt-figures div { background: var(--surface); padding: 18px 12px; }
.receipt-figures .n { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; }
.receipt-figures .t { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }

.receipt .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ================================================== Packing (order) screen */

.pack-head {
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 22px 26px;
    margin-bottom: 20px;
    display: flex;
    gap: 26px;
    align-items: center;
    flex-wrap: wrap;
}

.pack-head .who { flex: 1; min-width: 210px; }
.pack-head .order-id { font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.pack-head .customer { font-size: 1.1rem; color: #cbd5e1; margin-top: 2px; }
.pack-head .addr { font-size: .87rem; color: #94a3b8; margin-top: 8px; white-space: pre-line; line-height: 1.45; }

.pack-figures { display: flex; gap: 30px; }
.pack-figures .n { font-size: 2.6rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.pack-figures .t { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #94a3b8; margin-top: 5px; }

.pack-toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 22px;
    box-shadow: var(--shadow);
}

.pack-toolbar .spacer { flex: 1; }

.boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }

.box {
    background: var(--surface);
    border: 2px solid var(--ink);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.box-head { background: var(--ink); color: #fff; padding: 14px 18px; }
.box-head .n { font-size: 1.3rem; font-weight: 800; letter-spacing: .02em; }
.box-head .type { font-size: .8rem; color: #cbd5e1; letter-spacing: .05em; text-transform: uppercase; margin-top: 2px; }

.box-items { flex: 1; padding: 6px 18px; }

.box-items .row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.box-items .row:last-child { border-bottom: 0; }
.box-items .row .meal { font-size: 1.05rem; font-weight: 600; }
.box-items .row .meal small { display: block; font-size: .74rem; color: var(--ink-faint); font-weight: 500; }
.box-items .row .qty { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.box-items .row .qty.split { color: var(--amber); }

.box-capacity { padding: 12px 18px; border-top: 1px solid var(--line); background: #f8fafc; }

.capacity-bar { height: 9px; border-radius: 999px; background: var(--line); overflow: hidden; margin-bottom: 8px; }
.capacity-bar span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.capacity-bar span.full { background: var(--green); }

.capacity-text { display: flex; justify-content: space-between; font-size: .82rem; color: var(--ink-soft); font-weight: 600; }
.capacity-text b { color: var(--ink); font-size: .95rem; }

.box-actions { display: flex; gap: 8px; padding: 12px 18px 16px; }
.box-actions .btn { flex: 1; }

.split-note {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--amber);
    background: var(--amber-tint);
    border: 1px solid #fde68a;
    border-radius: 5px;
    padding: 1px 6px;
    margin-left: 7px;
    vertical-align: middle;
}

/* --------------------------------------------------------------- modal */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 60;
}

.modal-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-card .card-head { border-bottom: 1px solid var(--line); }
.modal-body { padding: 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); background: #f8fafc; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 720px) {
    .app-main { padding: 20px 14px 60px; }
    .field-row { grid-template-columns: 1fr; }
    .pack-figures { gap: 22px; }
    .pack-head .order-id { font-size: 1.7rem; }
    .boxes { grid-template-columns: 1fr; }
    .brand-sub { display: none; }
}

/* Blazor's built-in error strip */
#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 14px 20px;
    background: #fef3c7;
    border-top: 1px solid #fcd34d;
    color: #78350f;
    font-weight: 600;
}

#blazor-error-ui .dismiss { cursor: pointer; float: right; }

/* ==================================================== "How it works" page
   Explains the system to a non-technical reader. Diagrams are plain CSS —
   no images, no JavaScript, and they print correctly.
   ======================================================================= */

.explain { max-width: 900px; margin: 0 auto; }

.explain-hero {
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 34px 32px;
    margin-bottom: 30px;
}

.explain-hero h1 { font-size: 2.1rem; margin-bottom: 10px; }
.explain-hero p { margin: 0; font-size: 1.08rem; color: #cbd5e1; line-height: 1.6; max-width: 62ch; }

.explain section { margin-bottom: 40px; }

.explain h2 {
    font-size: 1.4rem;
    margin-bottom: 6px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ink);
}

.explain .lede { color: var(--ink-soft); font-size: 1.02rem; margin: 12px 0 22px; line-height: 1.6; max-width: 68ch; }
.explain p { line-height: 1.65; }

/* --- vertical numbered flow with arrows between steps --- */

.flow { display: flex; flex-direction: column; align-items: stretch; }

.flow-step {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: var(--shadow);
}

.flow-step .n {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flow-step h3 { font-size: 1.1rem; margin-bottom: 4px; }
.flow-step p { margin: 0; color: var(--ink-soft); }
.flow-step .who {
    display: inline-block;
    margin-top: 8px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand);
    background: var(--brand-tint);
    border: 1px solid #99f6e4;
    border-radius: 999px;
    padding: 2px 10px;
}

.flow-arrow {
    align-self: center;
    color: var(--ink-faint);
    font-size: 1.5rem;
    line-height: 1;
    padding: 7px 0;
}

/* --- side-by-side "today vs later" --- */

.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.panel.now { border-top: 5px solid var(--brand); }
.panel.later { border-top: 5px solid var(--ink-faint); }

.panel h3 { font-size: 1.05rem; margin-bottom: 4px; }
.panel .tagline { font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px; }

.chain { display: flex; flex-direction: column; gap: 6px; }

.chain span {
    background: #f1f5f9;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 9px 12px;
    font-size: .92rem;
    font-weight: 600;
    text-align: center;
}

.chain span.swap { background: var(--brand-tint); border-color: #99f6e4; color: var(--brand-dark); }
.chain span.same { background: var(--surface); color: var(--ink-soft); font-weight: 500; }
.chain .down { border: 0; background: none; color: var(--ink-faint); padding: 0; font-size: 1.1rem; }

/* --- box option comparison --- */

.options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0 8px; }

.option {
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
}

.option.chosen { border-color: var(--green); background: var(--green-tint); }
.option.rejected { opacity: .78; }

.option .verdict {
    display: inline-block;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 3px 11px;
    margin-bottom: 12px;
}

.option.chosen .verdict { background: var(--green); color: #fff; }
.option.rejected .verdict { background: #e2e8f0; color: var(--ink-soft); }

.option h4 { font-size: 1.15rem; margin-bottom: 12px; font-weight: 700; }
.option .why { font-size: .93rem; color: var(--ink-soft); margin: 12px 0 0; line-height: 1.55; }

/* a single box drawn as a capacity bar with filled/empty slots */
.slots { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 5px; }

.slots i {
    width: 17px;
    height: 22px;
    border-radius: 3px;
    background: var(--brand);
    border: 1px solid var(--brand-dark);
}

.slots i.free { background: #fff; border: 1px dashed var(--ink-faint); }

.slot-label { font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 12px; }
.slot-label b { color: var(--ink); }

.key { display: flex; gap: 20px; flex-wrap: wrap; font-size: .86rem; color: var(--ink-soft); margin-top: 16px; }
.key span { display: flex; align-items: center; gap: 7px; }
.key i { width: 15px; height: 19px; border-radius: 3px; background: var(--brand); border: 1px solid var(--brand-dark); }
.key i.free { background: #fff; border: 1px dashed var(--ink-faint); }

/* --- split-across-boxes illustration --- */

.split-demo { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; }

.split-demo .arrow { font-size: 1.7rem; color: var(--ink-faint); }

.mini-box { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.mini-box .head { background: var(--ink); color: #fff; padding: 9px 14px; font-weight: 800; font-size: .9rem; letter-spacing: .04em; }
.mini-box ul { list-style: none; margin: 0; padding: 10px 14px; }
.mini-box li { display: flex; justify-content: space-between; padding: 5px 0; font-size: .95rem; }
.mini-box li b { font-variant-numeric: tabular-nums; }

.callout {
    background: var(--brand-tint);
    border: 1px solid #99f6e4;
    border-left: 5px solid var(--brand);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-top: 18px;
}

.callout p { margin: 0; color: var(--brand-dark); }

@media (max-width: 720px) {
    .two-up, .options { grid-template-columns: 1fr; }
    .split-demo { grid-template-columns: 1fr; }
    .split-demo .arrow { transform: rotate(90deg); text-align: center; }
}

/* Blazor's FocusOnNavigate moves focus to the page h1 on every navigation. That is
   good for screen readers but should not draw a visible box for mouse users. */
h1:focus, h1:focus-visible { outline: none; }
