/* ─────────────────────────────────────────────────────────────
   IST Seminar · PORTAL
   Owner dashboard (/dashboard), participant confirmation (/confirm)
   and the deadline banners on / and /submit.
   Builds on style.css tokens (ink + paper + ember). Load after it.
   ───────────────────────────────────────────────────────────── */
.portal-shell {
    position: relative; z-index: 2;
    max-width: var(--container);
    margin: 0 auto;
    padding: 7.5rem var(--gutter) 5rem;
}

/* live dot */
.live-dot {
    display: inline-block; width: 7px; height: 7px; border-radius: 50%;
    background: var(--ember); box-shadow: 0 0 10px var(--ember);
    animation: livePing 1.6s ease-out infinite;
    flex-shrink: 0;
}
.live-dot.off { background: var(--paper-mute); box-shadow: none; animation: none; }
@keyframes livePing {
    0%   { box-shadow: 0 0 0 0 rgba(29,150,78,0.7); }
    70%  { box-shadow: 0 0 0 9px rgba(29,150,78,0); }
    100% { box-shadow: 0 0 0 0 rgba(29,150,78,0); }
}

/* deadline band */
.deadline-band {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
    padding: 1.75rem 2rem;
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}
.deadline-band::before {
    content: ''; position: absolute; top: 0; left: 0; width: 45%; height: 100%;
    background: radial-gradient(ellipse at left, rgba(29,150,78,0.12), transparent 70%);
    pointer-events: none;
}
.deadline-band.is-closed::before { background: radial-gradient(ellipse at left, rgba(220,80,80,0.10), transparent 70%); }
.deadline-band > * { position: relative; }
.db-label {
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 0.55rem; letter-spacing: 0.36em; text-transform: uppercase;
    color: var(--ember); font-weight: 700; margin-bottom: 0.85rem;
}
.deadline-band.is-closed .db-label { color: #E36B6B; }
.deadline-band.is-closed .live-dot { background: #DC5050; box-shadow: none; animation: none; }
.db-note { font-size: 0.8rem; color: var(--paper-dim); margin-top: 0.75rem; max-width: 60ch; }
.db-clock { text-align: right; }
.db-clock .clk {
    font-family: var(--font-display); font-size: 1.6rem; letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.db-clock .clk-day, .db-clock .clk-tz {
    font-size: 0.5rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--paper-mute);
}
.db-clock .clk-day { margin-top: 0.3rem; }

.countdown { display: flex; align-items: flex-end; gap: 0.5rem; flex-wrap: wrap; direction: ltr; }
.countdown .cd-unit { display: flex; flex-direction: column; gap: 0.35rem; min-width: 3.4rem; }
.countdown .cd-num {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    line-height: 0.9; letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    color: var(--paper);
}
.countdown .cd-sep {
    font-family: var(--font-display); font-size: clamp(1.6rem, 3.6vw, 2.6rem);
    color: var(--ember); line-height: 1; padding-bottom: 1.1rem;
}
.countdown .cd-cap {
    font-size: 0.48rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--paper-mute);
}
.countdown.urgent .cd-num { color: var(--ember); }
.countdown.sm .cd-num { font-size: 1.5rem; }
.countdown.sm .cd-sep { font-size: 1.2rem; padding-bottom: 0.75rem; }
.countdown.sm .cd-unit { min-width: 2.4rem; }
.closed-title { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 0.95; }
.closed-title .accent { color: #E36B6B; font-style: italic; }

/* KPI tiles */
.kpi-grid {
    display: grid; grid-template-columns: repeat(6, 1fr);
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    background: var(--ink-2); overflow: hidden;
    margin: 1.25rem 0 2rem;
}
.kpi { padding: 1.25rem 1.4rem; border-right: 1px solid var(--line); }
.kpi:last-child { border-right: none; }
html[dir="rtl"] .kpi { border-right: none; border-left: 1px solid var(--line); }
html[dir="rtl"] .kpi:last-child { border-left: none; }
.kpi .kpi-num {
    font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.3rem);
    letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin-bottom: 0.4rem;
}
.kpi .kpi-label { font-size: 0.5rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--paper-mute); }
.kpi .kpi-sub { font-size: 0.7rem; color: var(--paper-dim); margin-top: 0.35rem; }
.kpi.k-green .kpi-num { color: var(--brand-2); }
.kpi.k-red .kpi-num { color: #E36B6B; }
.kpi.k-amber .kpi-num { color: #E3B45B; }

/* toolbar */
.dash-toolbar {
    display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap;
    margin-bottom: 1rem;
}
.dash-search {
    flex: 1 1 260px; min-width: 0;
    padding: 0.8rem 1.1rem 0.8rem 2.5rem;
    background: var(--ink-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23EDE7DA' stroke-opacity='0.4' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 0.95rem center;
    border: 1px solid var(--line-bright); border-radius: 999px;
    color: var(--paper); font: inherit; font-size: 0.85rem;
}
.dash-search::placeholder { color: var(--paper-mute); }
html[dir="rtl"] .dash-search { padding: 0.8rem 2.5rem 0.8rem 1.1rem; background-position: calc(100% - 0.95rem) center; }
.dash-search:focus, .dash-select:focus { outline: none; border-color: var(--ember); }
.dash-select {
    padding: 0.8rem 1.1rem; background: var(--ink-2);
    border: 1px solid var(--line-bright); border-radius: 999px;
    color: var(--paper); font: inherit; font-size: 0.75rem; cursor: pointer; max-width: 100%;
}
.chip-row { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.chip {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.5rem 0.95rem; border-radius: 999px;
    border: 1px solid var(--line-bright); background: transparent;
    color: var(--paper-dim); font-size: 0.55rem; font-weight: 700;
    letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer;
    transition: all 0.2s;
}
.chip:hover { color: var(--paper); border-color: var(--paper-mute); }
.chip.active { background: var(--ember); border-color: var(--ember); color: var(--paper); }
.chip .n { opacity: 0.7; font-variant-numeric: tabular-nums; }

.btn-sm {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    padding: 0.55rem 1rem; border-radius: 999px;
    border: 1px solid var(--line-bright); background: transparent;
    color: var(--paper-dim); font-size: 0.55rem; font-weight: 700;
    letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer;
    transition: all 0.2s; white-space: nowrap;
}
.btn-sm:hover:not(:disabled) { color: var(--paper); border-color: var(--paper); background: var(--paper-soft); }
.btn-sm:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-sm.accept { border-color: rgba(29,150,78,0.5); color: var(--brand-2); }
.btn-sm.accept:hover:not(:disabled), .btn-sm.accept.on { background: var(--ember); border-color: var(--ember); color: var(--paper); }
.btn-sm.reject { border-color: rgba(220,80,80,0.45); color: #E36B6B; }
.btn-sm.reject:hover:not(:disabled), .btn-sm.reject.on { background: #C94848; border-color: #C94848; color: var(--paper); }
.btn-sm.solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-sm.solid:hover:not(:disabled) { background: var(--ember); border-color: var(--ember); color: var(--paper); }
.btn-sm.danger:hover:not(:disabled) { background: #C94848; border-color: #C94848; color: var(--paper); }

/* status badges */
.badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.3rem 0.65rem; border-radius: 999px;
    font-size: 0.5rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
    border: 1px solid; white-space: nowrap;
}
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.pending  { color: #E3B45B; border-color: rgba(227,180,91,0.35); background: rgba(227,180,91,0.08); }
.badge.accepted { color: var(--brand-2); border-color: rgba(37,178,94,0.4); background: var(--brand-soft); }
.badge.rejected { color: #E36B6B; border-color: rgba(220,80,80,0.4); background: rgba(220,80,80,0.08); }
.badge.confirmed { color: var(--paper); border-color: var(--line-bright); background: var(--paper-soft); }
.badge.confirmed::before { content: '✓'; width: auto; height: auto; background: none; font-size: 0.6rem; }
.tag-mini {
    display: inline-block; padding: 0.2rem 0.5rem; border-radius: 4px;
    background: var(--paper-soft); color: var(--paper-dim);
    font-size: 0.5rem; letter-spacing: 0.2em; text-transform: uppercase;
}

/* submissions table */
.sub-table-wrap { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--ink-2); overflow: hidden; }
.sub-table { width: 100%; border-collapse: collapse; }
.sub-table th {
    text-align: left; padding: 0.95rem 1rem;
    font-size: 0.5rem; letter-spacing: 0.3em; text-transform: uppercase;
    color: var(--paper-mute); font-weight: 700;
    border-bottom: 1px solid var(--line); background: var(--ink-3);
}
html[dir="rtl"] .sub-table th { text-align: right; }
.sub-table td { padding: 1rem; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 0.85rem; }
.sub-table tbody tr { transition: background 0.2s; cursor: pointer; }
.sub-table tbody tr:hover { background: var(--ink-3); }
.sub-table tbody tr:last-child td { border-bottom: none; }
.sub-table tbody tr.is-new { animation: rowFlash 2.4s ease-out; }
@keyframes rowFlash { 0% { background: rgba(29,150,78,0.25); } 100% { background: transparent; } }
.sub-table .c-num { font-family: var(--font-display); font-size: 0.7rem; color: var(--paper-mute); width: 3rem; }
.sub-table .who strong { display: block; font-weight: 600; color: var(--paper); }
.sub-table .who span, .sub-table .muted { color: var(--paper-mute); font-size: 0.75rem; display: block; word-break: break-word; }
.sub-table .ttl { color: var(--paper); font-weight: 500; line-height: 1.4; margin-bottom: 0.35rem; }
.sub-table .when { white-space: nowrap; color: var(--paper-dim); font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.sub-table .acts { display: flex; gap: 0.35rem; justify-content: flex-end; }
.sub-table .stack { display: flex; flex-direction: column; gap: 0.35rem; align-items: flex-start; }
.empty-state { padding: 4rem 1.5rem; text-align: center; color: var(--paper-mute); font-size: 0.85rem; }
.empty-state strong { display: block; font-family: var(--font-display); color: var(--paper); font-size: 1.3rem; margin-bottom: 0.5rem; }

/* drawer */
.drawer-back {
    position: fixed; inset: 0; z-index: 120; background: rgba(4,5,6,0.6);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.drawer-back.open { opacity: 1; pointer-events: auto; }
.drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 121;
    width: min(560px, 100%);
    background: var(--ink-2); border-left: 1px solid var(--line-bright);
    transform: translateX(100%); transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
    display: flex; flex-direction: column; visibility: hidden;
}
html[dir="rtl"] .drawer { right: auto; left: 0; border-left: none; border-right: 1px solid var(--line-bright); transform: translateX(-100%); }
.drawer.open { transform: translateX(0) !important; visibility: visible; }
.drawer-head {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line);
}
.drawer-body { padding: 1.5rem; overflow-y: auto; flex: 1; }
.drawer-foot { padding: 1rem 1.5rem; border-top: 1px solid var(--line); display: flex; gap: 0.5rem; flex-wrap: wrap; }
.drawer h2 { font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.02em; margin: 0.85rem 0 1.25rem; }
.kv { padding: 0.85rem 0; border-top: 1px solid var(--line); }
.kv .k { font-size: 0.5rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--paper-mute); font-weight: 700; margin-bottom: 0.35rem; }
.kv .v { color: var(--paper); font-size: 0.9rem; line-height: 1.5; word-break: break-word; }
.kv .v a { color: var(--brand-2); }
.kv .v a:hover { text-decoration: underline; }
.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.drawer-section {
    margin-top: 1.5rem; padding: 1.1rem 1.2rem; border: 1px solid var(--line);
    border-radius: var(--radius); background: var(--ink);
}
.drawer-section .sec-title {
    font-size: 0.55rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--ember); font-weight: 700;
    margin-bottom: 0.4rem;
}
.drawer-section .kv-grid > .kv:nth-child(-n+2) { border-top: none; }
.note-input {
    width: 100%; min-height: 90px; resize: vertical; margin-top: 0.5rem;
    padding: 0.85rem 1rem; background: var(--ink-2); border: 1px solid var(--line-bright);
    border-radius: 10px; color: var(--paper); font: inherit; font-size: 0.85rem;
}
.note-input:focus { outline: none; border-color: var(--ember); }
.x-btn {
    width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1px solid var(--line-bright);
    background: none; color: var(--paper-dim); cursor: pointer; font-size: 1rem; line-height: 1; flex-shrink: 0;
}
.x-btn:hover { color: var(--paper); border-color: var(--paper); }

/* toasts */
.toast-stack {
    position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 150;
    display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-end;
    pointer-events: none; max-width: calc(100% - 2.5rem);
}
html[dir="rtl"] .toast-stack { right: auto; left: 1.25rem; align-items: flex-start; }
.toast {
    pointer-events: auto;
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.85rem 1.1rem; border-radius: 12px;
    background: var(--ink-3); border: 1px solid var(--line-bright);
    box-shadow: 0 18px 50px rgba(0,0,0,0.45);
    font-size: 0.8rem; color: var(--paper);
    animation: toastIn 0.35s cubic-bezier(.2,.8,.2,1);
}
.toast.err { border-color: rgba(220,80,80,0.5); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* gate / message card */
.gate-card {
    max-width: 580px; margin: 2rem auto 0; text-align: center;
    padding: 3rem 2rem; background: var(--ink-2); border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}
.gate-card h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 1rem; line-height: 1.05; }
.gate-card h2 .accent { color: var(--ember); font-style: italic; }
.gate-card p { color: var(--paper-dim); line-height: 1.7; margin-bottom: 1.75rem; }
.gate-card .btn-row { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }
.gate-card .countdown { justify-content: center; margin-bottom: 1.75rem; }

/* shared form bits (same look as /submit) */
.p-form { display: flex; flex-direction: column; gap: 1.6rem; position: relative; z-index: 1; }
.p-form .form-field { display: flex; flex-direction: column; gap: 0.55rem; border: none; }
.p-form .form-label {
    font-size: 0.55rem; letter-spacing: 0.3em; text-transform: uppercase;
    color: var(--paper-mute); font-weight: 700; margin-left: 0.1rem;
    display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; line-height: 1.6;
}
.p-form .form-label .req { color: var(--ember); }
.p-form .form-input {
    width: 100%; padding: 1rem 1.15rem; background: var(--ink);
    border: 1px solid var(--line-bright); border-radius: 10px;
    color: var(--paper); font-family: var(--font-body); font-size: 0.95rem;
    transition: border-color 0.2s, background 0.2s;
}
.p-form .form-input::placeholder { color: var(--paper-mute); }
.p-form .form-input:focus { outline: none; border-color: var(--ember); background: var(--ink-3); }
.p-form .field-hint { font-size: 0.72rem; color: var(--paper-mute); }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.choice {
    position: relative; display: flex; gap: 0.85rem; align-items: flex-start;
    padding: 1.1rem 1.15rem; border: 1px solid var(--line-bright); border-radius: 12px;
    background: var(--ink); cursor: pointer; transition: all 0.2s;
}
.choice:hover { border-color: var(--paper-mute); background: var(--ink-3); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .ring {
    width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-bright);
    flex-shrink: 0; margin-top: 2px; display: grid; place-items: center; transition: all 0.2s;
}
.choice .ring::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ember); transform: scale(0); transition: transform 0.2s; }
.choice .c-title, .choice .c-desc { display: block; }
.choice .c-title { font-weight: 600; color: var(--paper); font-size: 0.92rem; margin-bottom: 0.2rem; }
.choice .c-desc { font-size: 0.75rem; color: var(--paper-mute); line-height: 1.5; }
.choice .c-desc strong { color: var(--paper-dim); font-weight: 600; }
.choice:has(input:checked) { border-color: var(--ember); background: var(--brand-soft); }
.choice:has(input:checked) .ring { border-color: var(--ember); }
.choice:has(input:checked) .ring::after { transform: scale(1); }
.choice:has(input:focus-visible) { outline: 2px solid var(--ember); outline-offset: 2px; }
.kind-word { color: var(--ember); font-style: italic; }

.check-line {
    display: flex; gap: 0.85rem; align-items: flex-start; cursor: pointer;
    padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--ink);
    font-size: 0.88rem; color: var(--paper-dim); line-height: 1.55; transition: border-color 0.2s;
}
.check-line:hover { border-color: var(--line-bright); }
.check-line input {
    appearance: none; -webkit-appearance: none; flex-shrink: 0;
    width: 18px; height: 18px; margin-top: 2px; border-radius: 5px;
    border: 1.5px solid var(--line-bright); background: var(--ink-2); cursor: pointer;
    display: grid; place-items: center; transition: all 0.2s;
}
.check-line input:checked { background: var(--ember); border-color: var(--ember); }
.check-line input:checked::after { content: '✓'; color: var(--paper); font-size: 0.7rem; font-weight: 700; }
.check-line input:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.check-line:has(input:checked) { border-color: rgba(29,150,78,0.45); }
.check-line strong { color: var(--paper); }
.check-line a { color: var(--brand-2); text-decoration: underline; text-underline-offset: 2px; }

.status-msg { padding: 1rem 1.25rem; border-radius: 10px; font-size: 0.85rem; font-weight: 500; display: none; }
.status-msg.show { display: block; }
.status-msg.success { background: var(--brand-soft); border: 1px solid var(--brand); color: var(--brand-2); }
.status-msg.error { background: rgba(220,80,80,0.10); border: 1px solid #DC5050; color: #E36B6B; }
.status-msg.info { background: var(--paper-soft); border: 1px solid var(--line-bright); color: var(--paper-dim); }

.tarmacq-widget { margin: 0.5rem 0; min-height: 64px; display: flex; justify-content: center; }

.submit-cta {
    width: 100%; padding: 1.15rem 2rem; border-radius: 999px;
    background: var(--ember); color: var(--paper);
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.26em;
    text-transform: uppercase; border: none; cursor: pointer;
    transition: all 0.25s; animation: pulseEmber 2.4s infinite;
}
.submit-cta:hover:not(:disabled) { background: var(--paper); color: var(--ink); transform: translateY(-2px); }
.submit-cta:disabled { opacity: 0.55; cursor: not-allowed; animation: none; }

/* inline deadline strip (home CTA + /submit) */
.deadline-strip {
    position: relative; z-index: 2;
    display: inline-flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; justify-content: center;
    padding: 0.6rem 1.1rem; margin-bottom: 1.75rem;
    border: 1px solid rgba(29,150,78,0.4); border-radius: 999px; background: var(--brand-soft);
    font-size: 0.55rem; letter-spacing: 0.26em; text-transform: uppercase; font-weight: 700; color: var(--brand-2);
}
.deadline-strip .ds-time { font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.04em; color: var(--paper); font-variant-numeric: tabular-nums; direction: ltr; }
.deadline-strip.is-closed { border-color: rgba(220,80,80,0.45); background: rgba(220,80,80,0.08); color: #E36B6B; }
.deadline-strip.is-closed .live-dot { background: #DC5050; box-shadow: none; animation: none; }

.sub-table .who { min-width: 150px; }
@media (max-width: 1100px) {
    .sub-table .acts { flex-direction: column; align-items: stretch; }
    .sub-table td { padding: 1rem 0.75rem; }
    .kpi-grid { grid-template-columns: repeat(3, 1fr); }
    .kpi:nth-child(3n) { border-right: none; }
    .kpi:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 860px) {
    .deadline-band { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.5rem 1.25rem; }
    .db-clock { text-align: left; }
    html[dir="rtl"] .db-clock { text-align: right; }
    .sub-table thead { display: none; }
    .sub-table, .sub-table tbody, .sub-table tr, .sub-table td { display: block; width: 100%; }
    .sub-table tr { padding: 1rem; border-bottom: 1px solid var(--line); }
    .sub-table tbody tr:last-child { border-bottom: none; }
    .sub-table td { border: none !important; padding: 0.3rem 0; }
    .sub-table .c-num { display: none; }
    .sub-table .acts { justify-content: flex-start; padding-top: 0.6rem; }
    .sub-table .stack { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 640px) {
    .portal-shell { padding-top: 6rem; }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .kpi { border-bottom: 1px solid var(--line); padding: 1rem; }
    .kpi:nth-child(3n) { border-right: 1px solid var(--line); }
    .kpi:nth-child(2n) { border-right: none; }
    .kpi:nth-last-child(-n+2) { border-bottom: none; }
    .choice-grid, .kv-grid { grid-template-columns: 1fr; }
    .drawer-section .kv-grid > .kv:nth-child(2) { border-top: 1px solid var(--line); }
    .countdown .cd-unit { min-width: 2.6rem; }
    .chip-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.25rem; }
    .chip { flex-shrink: 0; }
    .gate-card { padding: 2.25rem 1.25rem; }
}
