/* ============================================================
   Disparador WhatsApp — Main Panel Stylesheet
   Design tokens identical to Zeus Chat owner panel
   ============================================================ */

:root {
    --color-bg: #0b1529;
    --color-surface: #101f3d;
    --color-surface-alt: #15294d;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-text: #f5f8ff;
    --color-muted: rgba(245, 248, 255, 0.65);
    --color-accent: #3d7fff;
    --color-accent-soft: rgba(61, 127, 255, 0.18);
    --color-success: #4ad295;
    --color-warning: #f7c948;
    --color-danger: #ff6b6b;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
    margin: 0;
    background: linear-gradient(160deg, #050b16 0%, #0b1529 55%, #101f3d 100%);
    color: var(--color-text);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(300px, 420px) minmax(260px, 320px);
    gap: 28px;
    width: 100%;
    max-width: 920px;
}

.login-card,
.login-side {
    background: rgba(16, 31, 61, 0.92);
    border-radius: 18px;
    border: 1px solid var(--color-border);
    box-shadow: 0 24px 48px rgba(5, 12, 24, 0.35);
    backdrop-filter: blur(12px);
}

.login-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.login-side {
    padding: 32px;
    display: flex;
    align-items: center;
}

.login-header h1 {
    margin: 10px 0 6px;
    font-size: 26px;
}

.login-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(61, 127, 255, 0.22);
    color: var(--color-accent);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-form button.full {
    width: 100%;
}

.login-footnote {
    font-size: 13px;
    color: var(--color-muted);
    margin: 0;
}

.login-side-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-side h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.login-side p {
    margin: 0;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.5;
}

.login-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: grid;
    gap: 12px;
}

.login-list li {
    position: relative;
    padding-left: 20px;
    color: var(--color-text);
    font-size: 14px;
}

.login-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--color-accent);
}

a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Brand strip ───────────────────────────────────────────── */
.brand-strip {
    background: #ffffff;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(11, 21, 41, 0.08);
    position: sticky;
    top: 0;
    z-index: 11;
}

.brand-strip-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-strip-logo {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a3a8f, #3d7fff);
    border-radius: 12px;
    color: #fff;
    font-size: 20px;
}

.brand-strip-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-strip-text strong {
    font-size: 17px;
    color: #151b3f;
    font-weight: 700;
}

.brand-strip-text span {
    font-size: 13px;
    color: #2b32c3;
    font-weight: 500;
}

.brand-strip-link {
    font-size: 13px;
    color: #4b5563;
}

.brand-strip-link:hover {
    color: #2b32c3;
}

/* ── Topbar ────────────────────────────────────────────────── */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 28px;
    border-bottom: 1px solid var(--color-border);
    background: rgba(11, 21, 41, 0.94);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 71px;
    z-index: 10;
    gap: 16px;
    flex-wrap: wrap;
}

.brand h1 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* WhatsApp status chip in topbar */
.wa-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.05);
    font-size: 13px;
    font-weight: 500;
}

.wa-status-chip .wa-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--color-muted);
    flex-shrink: 0;
}

.wa-status-chip.connected .wa-dot    { background: var(--color-success); }
.wa-status-chip.disconnected .wa-dot { background: var(--color-danger); }
.wa-status-chip.waiting .wa-dot      { background: var(--color-warning); }

.wa-status-chip .wa-mode-tag {
    font-size: 11px;
    color: var(--color-muted);
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    margin-left: 2px;
}

/* User identity */
.user-identity {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    font-size: 14px;
    color: var(--color-muted);
}

.user-tag {
    font-size: 13px;
    color: var(--color-muted);
}

/* ── Buttons ───────────────────────────────────────────────── */
button {
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
    color: var(--color-text);
    font-family: inherit;
}

button.primary {
    background: var(--color-accent);
    box-shadow: 0 8px 18px rgba(61, 127, 255, 0.35);
}

button.ghost {
    background: transparent;
    border: 1px solid var(--color-border);
}

button.danger {
    border-color: rgba(255, 107, 107, 0.35);
    color: var(--color-danger);
}

button.success {
    background: var(--color-success);
    color: #062016;
    box-shadow: 0 8px 18px rgba(74, 210, 149, 0.3);
}

button.btn-sm {
    padding: 7px 13px;
    font-size: 13px;
}

button.btn-lg {
    padding: 14px 24px;
    font-size: 15px;
}

button.w-full { width: 100%; }

button:hover:not(:disabled) { transform: translateY(-1px); }

button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

button.is-refreshing i { animation: fa-spin 0.8s linear infinite; }
@keyframes fa-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ── Content layout ────────────────────────────────────────── */
.content {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* ── Section navigation ────────────────────────────────────── */
.section-nav {
    display: flex;
    gap: 10px;
    background: rgba(16, 31, 61, 0.75);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 8px;
    position: sticky;
    top: 133px;
    z-index: 9;
    backdrop-filter: blur(12px);
}

.section-tab {
    flex: 1;
    border-radius: 8px;
    background: transparent;
    border: 1px solid transparent;
    padding: 10px 14px;
    color: var(--color-muted);
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.section-tab i { font-size: 13px; }

.section-tab:hover {
    border-color: rgba(61, 127, 255, 0.35);
    color: var(--color-text);
}

.section-tab.active {
    background: rgba(61, 127, 255, 0.22);
    border-color: rgba(61, 127, 255, 0.45);
    color: var(--color-text);
    box-shadow: 0 10px 18px rgba(61, 127, 255, 0.18);
}

.section-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ── Panels ────────────────────────────────────────────────── */
.panel {
    background: var(--color-surface);
    border-radius: 16px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    box-shadow: 0 18px 32px rgba(5, 12, 24, 0.25);
}

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

.panel-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-header h3 i {
    color: var(--color-accent);
    font-size: 14px;
}

.panel-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.panel-body {
    padding: 20px 22px;
}

.panel-body.p-0 { padding: 0; }

/* ── Alerts (notices & errors) ─────────────────────────────── */
#alerts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notice,
.error {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
}

.notice {
    background: rgba(61, 127, 255, 0.18);
    border: 1px solid rgba(61, 127, 255, 0.35);
    color: #a3bfff;
}

.error {
    background: rgba(255, 107, 107, 0.18);
    border: 1px solid rgba(255, 107, 107, 0.35);
    color: #ffb3b3;
}

/* Toast alerts (floating) */
.alert-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 280px;
    max-width: 380px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 16px 28px rgba(4, 10, 22, 0.4);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: slideInRight 0.25s ease;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

.alert-toast.info, .alert-toast.primary {
    background: rgba(16, 31, 61, 0.98);
    border: 1px solid rgba(61, 127, 255, 0.4);
}

.alert-toast.success {
    background: rgba(6, 32, 22, 0.98);
    border: 1px solid rgba(74, 210, 149, 0.45);
    color: var(--color-success);
}

.alert-toast.warning {
    background: rgba(40, 32, 6, 0.98);
    border: 1px solid rgba(247, 201, 72, 0.4);
    color: var(--color-warning);
}

.alert-toast.danger, .alert-toast.error {
    background: rgba(40, 8, 8, 0.98);
    border: 1px solid rgba(255, 107, 107, 0.4);
    color: var(--color-danger);
}

.alert-toast-close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--color-muted);
    cursor: pointer;
    padding: 0;
    font-size: 18px;
    line-height: 1;
    transform: none;
    box-shadow: none;
}

.alert-toast-close:hover { opacity: 0.7; transform: none; }

/* ── Forms ─────────────────────────────────────────────────── */
input,
select,
textarea {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--color-surface-alt);
    color: var(--color-text);
    font-size: 14px;
    font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(61, 127, 255, 0.25);
}

input.input-sm,
select.select-sm {
    padding: 7px 11px;
    font-size: 13px;
    border-radius: 8px;
}

label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 14px;
    color: var(--color-muted);
}

label.checkbox {
    flex-direction: row;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    cursor: pointer;
}

label.checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
    padding: 0;
}

.field-label {
    font-size: 13px;
    color: var(--color-muted);
    margin-bottom: 6px;
    display: block;
}

.form-grid {
    display: grid;
    gap: 18px 20px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.form-grid .full { grid-column: 1 / -1; }

.form-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.mt-1 { margin-top: 6px; }
.mt-2 { margin-top: 12px; }

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

strong { font-weight: 600; }

/* ── Dispatch section ──────────────────────────────────────── */
.dispatch-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: start;
}

.dispatch-message {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dispatch-action {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 220px;
    align-items: stretch;
}

/* ── QR Code panel ─────────────────────────────────────────── */
.qr-panel .panel-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 28px;
}

.qr-panel img {
    max-width: 250px;
    border-radius: 12px;
    background: #fff;
    padding: 12px;
}

/* ── Appointment rows ──────────────────────────────────────── */
.apt-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.apt-row {
    display: grid;
    grid-template-columns: 36px 1fr minmax(110px, 130px) 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 14px 22px;
    border-bottom: 1px solid var(--color-border);
    transition: background 0.15s ease;
}

.apt-row:last-child { border-bottom: none; }

.apt-row:hover { background: rgba(61, 127, 255, 0.07); }

.apt-checkbox {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
    padding: 0;
    accent-color: var(--color-accent);
}

.apt-checkbox:disabled { opacity: 0.4; cursor: not-allowed; }

.apt-name strong {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.apt-phone {
    display: block;
    font-size: 12px;
    color: var(--color-muted);
    margin-top: 3px;
}

.apt-datetime {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 13px;
    color: var(--color-muted);
    white-space: nowrap;
}

.apt-datetime i {
    font-size: 11px;
    width: 14px;
    text-align: center;
}

.apt-procedure {
    font-size: 12px;
    color: var(--color-muted);
    line-height: 1.35;
}

.apt-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    flex-shrink: 0;
}

.apt-actions button {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 13px;
}

/* ── Status badges ─────────────────────────────────────────── */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.status-badge.neutral {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-muted);
}

.status-badge.info {
    background: rgba(61, 127, 255, 0.2);
    color: #7da9ff;
}

.status-badge.delivered, .status-badge.read {
    background: rgba(61, 127, 255, 0.25);
    color: #7da9ff;
}

.status-badge.read {
    background: rgba(74, 210, 149, 0.2);
    color: var(--color-success);
}

.status-badge.confirmed {
    background: rgba(74, 210, 149, 0.2);
    color: var(--color-success);
}

.status-badge.cancelled, .status-badge.warning {
    background: rgba(247, 201, 72, 0.2);
    color: var(--color-warning);
}

.status-badge.failed, .status-badge.danger {
    background: rgba(255, 107, 107, 0.2);
    color: var(--color-danger);
}

/* Status tag inline (confirmed/cancelled pill) */
.status-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    vertical-align: middle;
}

.status-tag i { font-size: 10px; }

.status-tag-confirmed {
    background: rgba(74, 210, 149, 0.2);
    color: var(--color-success);
    border: 1px solid rgba(74, 210, 149, 0.3);
}

.status-tag-cancelled {
    background: rgba(255, 107, 107, 0.2);
    color: var(--color-danger);
    border: 1px solid rgba(255, 107, 107, 0.3);
}

/* WhatsApp status colors used in configurações */
.status-connected   { color: var(--color-success); }
.status-disconnected{ color: var(--color-danger); }
.status-waiting     { color: var(--color-warning); }

/* ── Configuration grid ────────────────────────────────────── */
.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.config-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.stats-block {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stats-block .stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats-block .stat-label { color: var(--color-muted); }
.stats-block .stat-value { font-weight: 600; }
.stats-block .stat-value.success { color: var(--color-success); }
.stats-block .stat-value.warning { color: var(--color-warning); }

/* ── On-premises registration ──────────────────────────────── */
.onprem-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.inline-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.inline-group input { flex: 1; min-width: 100px; }

.inline-label {
    font-size: 13px;
    color: var(--color-muted);
    white-space: nowrap;
}

/* ── Confirmation recent list ──────────────────────────────── */
.recent-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

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

.recent-item:last-child { border-bottom: none; }

.recent-body { flex: 1; min-width: 0; }
.recent-name { font-weight: 600; font-size: 14px; }
.recent-procedure { color: var(--color-accent); font-size: 13px; margin-top: 2px; }
.recent-phone { color: var(--color-muted); font-size: 12px; margin-top: 2px; }
.recent-meta {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: var(--color-muted);
    margin-top: 4px;
}

.recent-quote {
    font-size: 12px;
    color: var(--color-muted);
    font-style: italic;
    margin-top: 3px;
}

.recent-tag { flex-shrink: 0; }

/* ── Logs ──────────────────────────────────────────────────── */
.log-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.log-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 22px;
    border-bottom: 1px solid var(--color-border);
    font-size: 13px;
}

.log-item:last-child { border-bottom: none; }

.log-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(61, 127, 255, 0.2);
    color: #7da9ff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.log-phone { font-weight: 600; margin-right: 8px; }
.log-message { color: var(--color-muted); }
.log-time { color: var(--color-muted); font-size: 11px; margin-top: 3px; }

/* ── Spinner / Loading ─────────────────────────────────────── */
.loading {
    display: none;
}

.loading.visible {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--color-muted);
}

/* ── Custom modal ──────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 12, 24, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 20px;
}

.modal-dialog {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(4, 10, 22, 0.5);
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--color-border);
}

.modal-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    padding: 0;
    line-height: 1;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.modal-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-footer {
    padding: 16px 22px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
    text-align: center;
    padding: 18px;
    color: var(--color-muted);
    font-size: 12px;
    border-top: 1px solid var(--color-border);
    margin-top: auto;
}

.footer a { color: var(--color-muted); }
.footer a:hover { color: var(--color-accent); }

/* ── Empty / placeholder states ────────────────────────────── */
.empty-state {
    padding: 32px 22px;
    text-align: center;
    color: var(--color-muted);
    font-size: 14px;
    border-radius: 10px;
    border: 1px dashed var(--color-border);
    background: rgba(255, 255, 255, 0.02);
    margin: 8px 0;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
    .apt-row {
        grid-template-columns: 28px 1fr auto;
        grid-template-rows: auto auto;
        gap: 8px 12px;
        padding: 12px 16px;
    }

    .apt-datetime { display: none; }
    .apt-procedure { grid-column: 2; }
    .apt-actions { grid-column: 3; grid-row: 1 / 3; }
}

@media (max-width: 700px) {
    .content { padding: 16px; }
    .topbar { top: 62px; padding: 12px 16px; }
    .brand-strip { padding: 12px 16px; }

    .section-nav {
        flex-direction: column;
        position: static;
    }

    .dispatch-grid {
        grid-template-columns: 1fr;
    }

    .config-grid {
        grid-template-columns: 1fr;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .top-actions {
        width: 100%;
        justify-content: flex-end;
    }
}
