/* Softurf Factory UI — base styles.
 * Designed for phones, tablets, and desktop stations.
 * Large tap targets, high contrast, minimal text where possible. */

:root {
    --bg: #f3f4f6;
    --surface: #ffffff;
    --surface-alt: #e5e7eb;
    --ink: #111827;
    --ink-muted: #4b5563;
    --primary: #1d4ed8;
    --primary-ink: #ffffff;
    --success: #047857;
    --warning: #b45309;
    --danger: #b91c1c;
    --border: #d1d5db;
    --radius: 10px;
    --tap-min: 56px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

.app-body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    font-size: 18px;
    line-height: 1.4;
    min-height: 100vh;
    -webkit-text-size-adjust: 100%;
}

.app-header {
    background: var(--ink);
    color: #fff;
    padding: 0.5rem 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}
.app-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.app-brand { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.25rem; }
.app-nav { display: flex; align-items: center; gap: 1rem; }
.app-user { font-size: 0.95rem; color: #d1d5db; }
.nav-link { color: #93c5fd; text-decoration: none; font-size: 0.95rem; padding: 0.25rem 0.5rem; border-radius: 6px; }
.nav-link:hover { background: #1e40af; color: #fff; }

.app-main { padding: 1rem; max-width: 1200px; margin: 0 auto; }

.inline-form { display: inline; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.75rem 1.25rem;
    min-height: var(--tap-min);
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.1s ease;
}
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: #1e40af; }
.btn-lg { min-height: 64px; font-size: 1.125rem; }
.btn-link { background: none; border: 0; color: #fff; cursor: pointer; font-size: 0.95rem; }

.stacked-form { display: flex; flex-direction: column; gap: 0.75rem; max-width: 420px; }
.stacked-form label { font-weight: 600; }

.form-input {
    padding: 0.75rem 1rem;
    font-size: 1.125rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    min-height: var(--tap-min);
}
.form-input:focus { outline: 3px solid #93c5fd; outline-offset: 1px; }

.form-errors { color: var(--danger); background: #fee2e2; padding: 0.75rem; border-radius: var(--radius); }

.login-panel {
    max-width: 480px;
    margin: 3rem auto;
    padding: 2rem;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.messages { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.message { padding: 0.75rem 1rem; border-radius: var(--radius); background: var(--surface-alt); }
.message--error { background: #fee2e2; color: var(--danger); }
.message--success { background: #d1fae5; color: var(--success); }
.message--warning { background: #fef3c7; color: var(--warning); }

.muted { color: var(--ink-muted); }
.tag {
    display: inline-block; padding: 0.125rem 0.5rem; margin: 0 0.25rem 0.25rem 0;
    background: var(--surface-alt); border-radius: 999px; font-size: 0.875rem;
}

/* Home */
.home-panel {
    max-width: 720px; margin: 2rem auto; padding: 1.5rem;
    background: var(--surface); border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Shift banner */
.shift-banner {
    display: flex; align-items: center; gap: 1rem; padding: 0.5rem 1rem;
    background: #0f172a; color: #e2e8f0; font-size: 0.95rem;
}
.shift-banner__date { font-weight: 600; }
.shift-banner__type { opacity: 0.85; }
.shift-banner__status {
    margin-left: auto; padding: 0.125rem 0.625rem; border-radius: 999px;
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em;
    background: var(--success); color: #fff;
}
.shift-banner__status--signed_off { background: var(--ink-muted); }
.shift-banner__status--reopened { background: var(--warning); }
.shift-banner__status--legacy { background: #6b7280; }

/* Roll-entry form */
.form-section {
    max-width: 1100px; margin: 1rem auto; padding: 1.5rem;
    background: var(--surface); border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.stacked-form--wide { max-width: none; }
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.form-field { display: flex; flex-direction: column; gap: 0.375rem; }
.form-field--wide { grid-column: 1 / -1; }
.form-field select, .form-field input[type="text"], .form-field input[type="number"],
.form-field input[type="email"], .form-field textarea {
    padding: 0.75rem 0.875rem;
    font-size: 1.125rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    min-height: var(--tap-min);
    width: 100%;
}
.form-field select { appearance: auto; }
.form-field textarea { min-height: 80px; resize: vertical; }
.form-field .errorlist {
    margin: 0.25rem 0 0; padding-left: 1.25rem;
    color: var(--danger); font-size: 0.875rem;
}

/* Maintenance cadence alert banners */
.maint-alert {
    border-radius: var(--radius); padding: 0.875rem 1rem;
    margin: 0.75rem 0; font-weight: 600; font-size: 0.95rem;
}
.maint-alert--warn { background: #fef3c7; color: #92400e; border-left: 4px solid #f59e0b; }

/* PM tasks */
.pm-task {
    background: var(--surface); border-radius: var(--radius); padding: 1rem 1.25rem;
    margin-bottom: 0.75rem; box-shadow: 0 1px 3px rgba(0,0,0,0.07);
    display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start;
}
.pm-task--overdue { border-left: 4px solid var(--danger); }
.pm-task-info { flex: 1; min-width: 200px; }
.pm-task-info p { margin: 0.25rem 0 0; color: var(--ink-muted); font-size: 0.9rem; }
.pm-task-action { flex: 0 0 240px; }

/* Dashboard */
.dashboard-header { display: flex; align-items: baseline; gap: 1rem; margin: 0.5rem 0 1rem; flex-wrap: wrap; }
.oee-strip { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.25rem; }
.oee-card {
    flex: 1; min-width: 130px; background: var(--surface); border-radius: var(--radius);
    padding: 1rem; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.oee-label { display: block; font-size: 0.8rem; color: var(--ink-muted); margin-bottom: 0.25rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.oee-value { display: block; font-size: 2.25rem; font-weight: 700; line-height: 1; }
.oee-value--good { color: var(--success); }
.oee-value--ok   { color: var(--warning); }
.oee-value--warn { color: var(--danger); }
.oee-value--na   { color: var(--ink-muted); font-size: 1.75rem; }
.oee-hint { display: block; font-size: 0.7rem; color: var(--ink-muted); margin-top: 0.25rem; }
.dash-section-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.dash-card { background: var(--surface); border-radius: var(--radius); padding: 1.25rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.dash-card h2 { margin: 0 0 0.75rem; font-size: 1rem; color: var(--ink-muted); }
.big-numbers { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.big-num { text-align: center; }
.big-num-val { display: block; font-size: 2rem; font-weight: 700; line-height: 1; }
.big-num-label { display: block; font-size: 0.75rem; color: var(--ink-muted); margin-top: 0.125rem; }
.big-num--good .big-num-val { color: var(--success); }
.big-num--warn .big-num-val { color: var(--danger); }

/* Downtime buttons */
.downtime-panel { padding: 1rem 0; }
.downtime-label { font-weight: 600; margin: 0 0 0.75rem; color: var(--ink-muted); }
.downtime-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn-downtime-reason {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 110px; min-height: 100px; border-radius: var(--radius);
    border: 2px solid var(--border); background: var(--surface); cursor: pointer;
    padding: 0.75rem 0.5rem; gap: 0.375rem; transition: border-color 0.1s, background 0.1s;
}
.btn-downtime-reason:hover { border-color: var(--danger); background: #fee2e2; }
.btn-downtime-reason:active { background: #fecaca; }
.downtime-icon { font-size: 2rem; line-height: 1; }
.downtime-reason-label { font-size: 0.8rem; font-weight: 600; text-align: center; }
.downtime-active-strip {
    display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem;
    background: #fee2e2; border-radius: var(--radius); padding: 0.875rem 1rem;
}
.downtime-active-badge { font-weight: 700; color: var(--danger); font-size: 1rem; }
.downtime-cause { font-weight: 600; }
.downtime-since { color: var(--ink-muted); font-size: 0.9rem; }

/* Tags */
.tag { display: inline-block; padding: 0.125rem 0.5rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; background: var(--surface-alt); }
.tag--warn { background: #fef3c7; color: var(--warning); }
.tag--smat { background: #dbeafe; color: #1d4ed8; }

/* Zone tables (extruder reading) */
.zone-tables { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.zone-section { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.zone-section summary {
    padding: 0.875rem 1rem; font-weight: 600; cursor: pointer;
    background: var(--surface-alt); user-select: none; list-style: none;
}
.zone-section summary::-webkit-details-marker { display: none; }

/* Vertical zone rows (mobile-friendly) */
.zone-rows-wrap { background: var(--surface); padding: 0.75rem 1rem; max-width: 360px; }
.zone-rows-header {
    display: flex; align-items: center; gap: 0.75rem;
    margin-bottom: 0.375rem; padding-bottom: 0.375rem;
    border-bottom: 1px solid var(--border);
}
.zone-sv-label, .zone-av-label {
    flex: 1; font-size: 0.8rem; font-weight: 700; text-align: center;
    color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.04em;
}
.zone-row {
    display: flex; align-items: center; gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.zone-row-label {
    min-width: 40px; font-size: 0.9rem; font-weight: 600;
    color: var(--ink-muted);
}
.zone-row .zone-input { width: 64px; flex: none; }

.zone-input {
    width: 64px; padding: 0.4rem 0.25rem; text-align: center;
    border: 1px solid var(--border); border-radius: 6px;
    font-size: 1rem; background: var(--surface);
    min-height: 44px;
}
.zone-input--actual { background: #f0fdf4; border-color: #86efac; }
.row--warn td { background: #fef3c7; }

/* START button */
.btn-start {
    display: flex; align-items: center; justify-content: center;
    width: 100%; max-width: 480px; margin: 2rem auto 0;
    padding: 1.25rem 2rem; border-radius: var(--radius); border: none;
    background: var(--success); color: #fff;
    font-size: 1.5rem; font-weight: 700; cursor: pointer;
    min-height: 80px;
    box-shadow: 0 4px 12px rgba(4,120,87,0.3);
}
.btn-start:hover:not(:disabled) { background: #065f46; }
.btn-start:disabled { background: #6b7280; box-shadow: none; cursor: not-allowed; opacity: 0.6; }

/* STOP button */
.btn-stop {
    display: flex; align-items: center; justify-content: center;
    width: 100%; max-width: 480px; margin: 2rem auto 0;
    padding: 1.25rem 2rem; border-radius: var(--radius); border: none;
    background: var(--danger); color: #fff;
    font-size: 1.5rem; font-weight: 700; cursor: pointer;
    min-height: 80px;
    box-shadow: 0 4px 12px rgba(185,28,28,0.3);
}
.btn-stop:hover { background: #991b1b; }

/* Active batch screen */
.active-batch-section { max-width: 640px; margin: 1rem auto; text-align: center; }
.active-badge {
    display: inline-block; padding: 0.375rem 1.25rem;
    background: #d1fae5; color: var(--success);
    border-radius: 999px; font-weight: 700; font-size: 0.95rem;
    margin-bottom: 1.5rem;
}
.batch-info-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1rem; text-align: center; margin-bottom: 1.5rem;
}
.batch-info-item { background: var(--surface-alt); border-radius: var(--radius); padding: 0.75rem; }
.batch-info-label { display: block; font-size: 0.8rem; color: var(--ink-muted); margin-bottom: 0.25rem; }
.batch-info-value { display: block; font-size: 1.25rem; font-weight: 700; }
.stop-hint { margin: 0 auto 0.5rem; max-width: 380px; }

/* Batch summary strip on materials screen */
.batch-summary-strip {
    display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
    background: var(--surface-alt); padding: 0.75rem 1rem;
    border-radius: var(--radius); margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Material grid (mix batch) */
.material-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.875rem;
    margin-top: 0.5rem;
}
.material-field--smat { background: #eff6ff; padding: 0.5rem; border-radius: var(--radius); }

/* Stats strip (supervisor) */
.stats-strip { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1rem 0; }
.stat-card { flex: 1; min-width: 120px; background: var(--surface); border-radius: var(--radius); padding: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08); text-align: center; }
.stat-label { display: block; font-size: 0.8rem; color: var(--ink-muted); margin-bottom: 0.25rem; }
.stat-value { display: block; font-size: 1.75rem; font-weight: 700; }
.stat-value--good { color: var(--success); }
.stat-value--warn { color: var(--warning); }

/* Quick-link grid (supervisor) */
.quick-links { display: flex; flex-wrap: wrap; gap: 0.625rem; margin: 0.75rem 0; }
.quick-link {
    padding: 0.625rem 1rem; background: var(--surface); border-radius: var(--radius);
    border: 1px solid var(--border); text-decoration: none; color: var(--primary);
    font-weight: 600; font-size: 0.95rem; min-height: var(--tap-min);
    display: inline-flex; align-items: center;
}
.quick-link:hover { background: #eff6ff; }

/* Plan preview */
.plan-preview { background: var(--surface-alt); border-radius: var(--radius); padding: 0.75rem 1rem; white-space: pre-wrap; font-size: 0.95rem; }

/* Date filter row on reports */
.date-filter { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; flex-wrap: wrap; }

/* Combobox */
.combobox { position: relative; }
.cb-input {
    width: 100%;
    padding: 0.75rem 0.875rem;
    font-size: 1.125rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    min-height: var(--tap-min);
    box-sizing: border-box;
}
.cb-input:focus { outline: 3px solid #93c5fd; outline-offset: 1px; }
.cb-list {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-height: 260px;
    overflow-y: auto;
    z-index: 100;
    list-style: none;
    margin: 0; padding: 0.25rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.cb-list--open { display: block; }
.cb-option {
    padding: 0.75rem 1rem;
    min-height: var(--tap-min);
    display: flex; align-items: center;
    cursor: pointer;
    font-size: 1.05rem;
}
.cb-option:hover, .cb-option--active {
    background: #eff6ff;
}

/* Size inputs side-by-side */
.size-inputs { display: flex; gap: 0.75rem; align-items: center; }
.size-inputs input { flex: 1; }
.size-inputs .size-sep {
    font-size: 1.25rem; font-weight: 700; color: var(--ink-muted);
    padding: 0 0.25rem; line-height: var(--tap-min);
}

/* Operator info strip */
.operator-strip {
    background: var(--surface-alt);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: var(--ink-muted);
    display: flex; align-items: center; gap: 0.5rem;
}
.operator-strip strong { color: var(--ink); }

/* Recent rolls table */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.recent-section {
    max-width: 1100px; margin: 1.5rem auto; padding: 0 0.5rem;
}
.data-table {
    width: 100%; border-collapse: collapse;
    background: var(--surface); border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.data-table th, .data-table td { padding: 0.625rem 0.875rem; text-align: left; font-size: 0.95rem; }
.data-table thead th { background: var(--surface-alt); font-weight: 600; }
.data-table tbody tr:nth-child(odd) { background: #f9fafb; }

/* Morning meeting priority rows */
.priority-row {
    background: var(--surface); border-radius: var(--radius);
    padding: 0.875rem 1rem; margin-bottom: 0.625rem;
    border: 2px solid var(--border);
    transition: border-color 0.1s, background 0.1s;
}
.priority-row--selected { border-color: var(--primary); background: #eff6ff; }
.priority-row-label { display: flex; gap: 0.875rem; align-items: flex-start; cursor: pointer; }
.priority-row-info { flex: 1; }
.priority-row-order { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.25rem; }
.priority-row-sku { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.25rem; }
.priority-row-qty { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.875rem; color: var(--ink-muted); }

/* Sheet cards (sheet entry — recent sheets) */
.sheet-card {
    background: var(--surface); border-radius: var(--radius);
    padding: 1rem; margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border-left: 4px solid var(--border);
}
.sheet-card--warn { border-left-color: var(--warning); }
.sheet-card--damaged { border-left-color: var(--danger); background: #fff8f8; }
.sheet-card-header { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.sheet-card-number { font-weight: 700; font-size: 1.05rem; color: var(--primary); }
.sheet-card-meta { color: var(--ink-muted); font-size: 0.9rem; }
.sheet-card-stats { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.9rem; color: var(--ink-muted); margin-bottom: 0.4rem; }
.sheet-card-damage-reason { margin: 0.25rem 0 0; font-size: 0.9rem; color: var(--danger); }
.sheet-damage-details { margin-top: 0.5rem; }
.sheet-damage-toggle {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.875rem; font-weight: 600; color: var(--danger);
    cursor: pointer; list-style: none; padding: 0.25rem 0;
}
.sheet-damage-toggle::-webkit-details-marker { display: none; }

/* ============================================================
   HAMBURGER NAV (mobile)
   ============================================================ */
.nav-toggle {
    display: none;
    background: none; border: none; cursor: pointer;
    padding: 0.5rem; color: #fff;
    flex-direction: column; gap: 5px;
}
.nav-toggle span {
    display: block; width: 24px; height: 2px; background: #fff;
    border-radius: 2px; transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   MOBILE BREAKPOINT — phones (< 768px)
   ============================================================ */
@media (max-width: 768px) {
    .app-body { font-size: 16px; }

    /* Header: brand left, hamburger right */
    .nav-toggle { display: flex; }

    .app-nav {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--ink);
        flex-direction: column; align-items: stretch;
        padding: 0.5rem 0 1rem;
        gap: 0;
        z-index: 50;
        border-top: 1px solid #374151;
    }
    .app-nav.nav-open { display: flex; }

    .nav-link {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
        border-radius: 0;
        border-bottom: 1px solid #1f2937;
    }
    .nav-link:hover { background: #1e3a8a; }

    .app-user {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
        border-bottom: 1px solid #1f2937;
    }
    .inline-form { display: block; }
    .btn-link {
        display: block; width: 100%;
        padding: 0.875rem 1.25rem;
        text-align: left; font-size: 1rem;
    }

    /* Layout */
    .app-main { padding: 0.75rem; }
    .form-section { padding: 1rem; margin: 0.5rem auto; }
    .home-panel { padding: 1rem; margin: 0.75rem auto; }
    .login-panel { padding: 1.25rem; margin: 1.5rem auto; }

    /* Forms: always single column on phone */
    .form-grid { grid-template-columns: 1fr; }
    .material-grid { grid-template-columns: 1fr 1fr; }
    .stacked-form { max-width: 100%; }

    /* Dashboard */
    .dash-section-grid { grid-template-columns: 1fr; }
    .oee-strip { gap: 0.5rem; }
    .oee-card { min-width: 80px; padding: 0.75rem 0.5rem; }
    .oee-value { font-size: 1.75rem; }

    /* Batch info grid: 2 cols instead of 3 */
    .batch-info-grid { grid-template-columns: 1fr 1fr; }

    /* START / STOP buttons: full width on phone */
    .btn-start, .btn-stop { max-width: 100%; margin-top: 1.25rem; }

    /* Tables: reduce padding and font on small screens */
    .data-table th, .data-table td { padding: 0.5rem 0.625rem; font-size: 0.875rem; }
    .zone-table th, .zone-table td { font-size: 0.8rem; padding: 0.375rem 0.25rem; }
    .zone-input { width: 56px; font-size: 0.875rem; }

    /* Downtime buttons: 3 per row on phone */
    .btn-downtime-reason { width: calc(33.333% - 0.5rem); min-height: 88px; }
    .downtime-icon { font-size: 1.5rem; }

    /* PM tasks: stack vertically */
    .pm-task-action { flex: 1 1 100%; }

    /* Stats strip */
    .stat-card { min-width: 90px; }
    .stat-value { font-size: 1.4rem; }
}

/* ============================================================
   SMALL PHONE BREAKPOINT (< 420px)
   ============================================================ */
@media (max-width: 420px) {
    .oee-card { min-width: 68px; }
    .oee-value { font-size: 1.5rem; }
    .big-num-val { font-size: 1.6rem; }
    .material-grid { grid-template-columns: 1fr; }
    .batch-info-grid { grid-template-columns: 1fr; }
    .downtime-buttons { gap: 0.5rem; }
    .btn-downtime-reason { width: calc(50% - 0.25rem); }
}
