/* ─── Variables ─────────────────────────────────────────────────────────────── */

:root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #222222;
    --bg-card: #2a2a2a;
    --bg-input: #333333;
    --accent: #d4a84b;
    --accent-hover: #e0b85c;
    --accent-dark: #b8912e;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #777777;
    --border: #3a3a3a;
    --border-light: #444444;
    --radius: 6px;
    --radius-lg: 10px;
    --shadow: 0 2px 12px rgba(0,0,0,0.3);

    --status-new: #3b82f6;
    --status-in-progress: #d4a84b;
    --status-resolved: #22c55e;
    --status-closed: #6b7280;
}

/* ─── Reset / Base ─────────────────────────────────────────────────────────── */

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

body {
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

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

img { max-width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ─── Header ───────────────────────────────────────────────────────────────── */

.site-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 66px;
    width: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links-desktop {
    display: flex;
    gap: 4px;
    margin-right: 16px;
}

.nav-link {
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 400;
    transition: all 0.15s;
}

.nav-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.nav-link.active { color: var(--accent); background: rgba(212,168,75,0.1); }

.nav-user {
    color: var(--text-secondary);
    font-size: 13px;
    margin-right: 8px;
}

.nav-btn {
    padding: 8px 20px;
    border-radius: var(--radius);
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.nav-btn--accent {
    background: var(--accent);
    color: #1a1a1a;
}

.nav-btn--accent:hover { background: var(--accent-hover); }

.nav-btn--ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.nav-btn--ghost:hover { color: var(--text-primary); border-color: var(--text-secondary); }

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-secondary);
    transition: 0.2s;
}

.nav-accordion {
    display: none;
    flex-direction: column;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.nav-accordion.open { display: flex; }

.nav-accordion-link {
    padding: 14px 20px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.nav-accordion-link.active { color: var(--accent); }

@media (max-width: 768px) {
    .nav-links-desktop, .nav-user { display: none; }
    .nav-hamburger { display: flex; }
}

/* ─── Auth Modal ───────────────────────────────────────────────────────────── */

.auth-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 400px;
    max-width: 95vw;
    padding: 32px;
    position: relative;
}

.auth-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
}

.auth-close:hover { color: var(--text-primary); }

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.auth-tab {
    flex: 1;
    padding: 10px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 15px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: 0.15s;
}

.auth-tab:hover { color: var(--text-secondary); }
.auth-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.auth-field { margin-bottom: 16px; }

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

.auth-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.15s;
}

.auth-input:focus { outline: none; border-color: var(--accent); }

.auth-error {
    color: #ef4444;
    font-size: 13px;
    min-height: 20px;
    margin-bottom: 8px;
}

.auth-submit {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: #1a1a1a;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.auth-submit:hover { background: var(--accent-hover); }
.auth-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.auth-submit--loading { opacity: 0.6; }

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px;
    background: #fff;
    color: #3c4043;
    border: 1px solid #dadce0;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, box-shadow 0.15s;
    margin-bottom: 16px;
    font-family: inherit;
}

.btn-google:hover { background: #f8f9fa; box-shadow: 0 1px 3px rgba(0,0,0,0.2); color: #3c4043; }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ─── Hero Section ─────────────────────────────────────────────────────────── */

.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: url('https://images.unsplash.com/photo-1556910103-1c02745aae4d?w=1600&q=80') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
}

.hero-line {
    width: 80px;
    height: 4px;
    background: var(--accent);
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .hero-title { font-size: 34px; }
    .hero-subtitle { font-size: 16px; }
}

/* ─── Buttons ──────────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    border: none;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.btn-accent { background: var(--accent); color: #1a1a1a; }
.btn-accent:hover { background: var(--accent-hover); color: #1a1a1a; }

.btn-secondary { background: var(--bg-input); color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--text-secondary); }

.btn-sm { padding: 6px 16px; font-size: 13px; }

/* ─── Dashboard ────────────────────────────────────────────────────────────── */

.dashboard-section {
    padding: 32px 0;
}

.section-title {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.section-title i { color: var(--accent); margin-right: 8px; }

/* Report Form */
.report-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 40px;
}

.report-form-card h2 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--accent);
}

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

@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
}

.form-group { margin-bottom: 16px; }

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 400;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.15s;
}

.form-control:focus { outline: none; border-color: var(--accent); }

textarea.form-control { resize: vertical; min-height: 100px; }

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23b0b0b0' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* File capture buttons */
.file-capture-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.btn-capture {
    flex: 1;
    min-width: 0;
    justify-content: center;
    padding: 14px 12px;
}

.file-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.file-preview {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    overflow: visible;
    border: 1px solid var(--border);
}

.file-preview-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    border: 2px solid var(--bg-card);
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
    z-index: 1;
    padding: 0;
}

.file-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}

.file-preview-video {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-input);
    color: var(--text-muted);
    font-size: 11px;
    text-align: center;
    padding: 4px;
    width: 100%;
    height: 100%;
}

/* ─── Reports List ─────────────────────────────────────────────────────────── */

.reports-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.report-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.15s;
}

.report-card:hover { border-color: var(--border-light); }

.report-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    gap: 12px;
}

.report-card-header:hover { background: rgba(255,255,255,0.02); }

.report-card-info {
    flex: 1;
    min-width: 0;
}

.report-card-type {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
}

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

.report-card-meta span { margin-right: 16px; }

.report-card-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.report-card-toggle {
    color: var(--text-muted);
    transition: transform 0.2s;
    font-size: 13px;
}

.report-card.open .report-card-toggle { transform: rotate(180deg); }

.report-card-body {
    display: none;
    padding: 0 20px 20px;
    border-top: 1px solid var(--border);
}

.report-card.open .report-card-body { display: block; padding-top: 16px; }

.report-detail-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    margin-top: 14px;
}

.report-detail-label:first-child { margin-top: 0; }

.report-detail-value {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.report-files {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.report-file-thumb {
    width: 100px;
    height: 80px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: border-color 0.15s;
}

.report-file-thumb:hover { border-color: var(--accent); }

.report-file-thumb img,
.report-file-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.report-resolution {
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.2);
    border-radius: var(--radius);
    padding: 14px;
    margin-top: 12px;
}

.report-resolution h4 {
    font-size: 13px;
    color: var(--status-resolved);
    margin-bottom: 6px;
    font-weight: 500;
}

.report-resolution p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ─── Status Badges ────────────────────────────────────────────────────────── */

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.badge-new { background: rgba(59,130,246,0.15); color: var(--status-new); }
.badge-in_progress { background: rgba(212,168,75,0.15); color: var(--status-in-progress); }
.badge-resolved { background: rgba(34,197,94,0.15); color: var(--status-resolved); }
.badge-closed { background: rgba(107,114,128,0.15); color: var(--status-closed); }

/* ─── Admin Table Section ──────────────────────────────────────────────────── */

.tbl-section {
    padding: 32px 0;
}

.admin-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.admin-filters select {
    padding: 8px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 13px;
    font-family: inherit;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23b0b0b0' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

/* Sky component overrides for dark theme */
.sky-tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.sky-tbl th {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.sky-tbl td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    vertical-align: middle;
}

.sky-tbl tr:hover td { background: rgba(255,255,255,0.02); }

.sky-tbl input,
.sky-tbl select,
.sky-tbl textarea {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-primary);
    padding: 4px 8px;
    font-size: 13px;
    font-family: inherit;
    width: 100%;
}

.sky-tbl input:focus,
.sky-tbl select:focus,
.sky-tbl textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.sky-tbl textarea {
    resize: vertical;
    min-height: 60px;
}

/* Row menu */
.sky-rowmenu {
    position: relative;
}

.sky-rowmenu-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    font-size: 14px;
}

.sky-rowmenu-btn:hover { color: var(--text-primary); }

.sky-rowmenu-dd {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 50;
    min-width: 120px;
}

.sky-rowmenu-dd a,
.sky-rowmenu-dd button {
    display: block;
    width: 100%;
    padding: 8px 14px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.sky-rowmenu-dd a:hover,
.sky-rowmenu-dd button:hover { background: rgba(255,255,255,0.05); }

/* Tabs */
.sky-tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.sky-tabs-nav button {
    padding: 10px 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    font-family: inherit;
    transition: 0.15s;
}

.sky-tabs-nav button:hover { color: var(--text-secondary); }
.sky-tabs-nav button.active { color: var(--accent); border-bottom-color: var(--accent); }

/* Subtable */
.sky-subtable {
    background: var(--bg-secondary);
    padding: 12px;
    border-radius: var(--radius);
}

/* Form component */
.sky-form {
    max-width: 500px;
}

.sky-form-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 4px;
}

.sky-form-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.sky-form-field {
    margin-bottom: 16px;
}

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

.sky-form-field input,
.sky-form-field select,
.sky-form-field textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
}

.sky-form-field input:focus,
.sky-form-field select:focus,
.sky-form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* Dropdown component */
.sky-dd {
    position: relative;
}

.sky-dd select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23b0b0b0' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 28px;
}

/* Checkbox component */
.sky-cb {
    cursor: pointer;
}

.sky-cb input[type="checkbox"] {
    accent-color: var(--accent);
}

/* ─── Admin Report Detail Modal ────────────────────────────────────────────── */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 700px;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
}

.modal-close:hover { color: var(--text-primary); }

.modal h2 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--accent);
}

/* ─── Footer ───────────────────────────────────────────────────────────────── */

.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 20px 0;
    margin-top: 40px;
}

.site-footer p {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* ─── Empty State ──────────────────────────────────────────────────────────── */

.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.4;
}

.empty-state p { font-size: 15px; }

/* ─── Lightbox ─────────────────────────────────────────────────────────────── */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox img,
.lightbox video {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: var(--radius);
}

/* ─── Settings Add Button ──────────────────────────────────────────────────── */

.settings-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

/* ─── Utilities ────────────────────────────────────────────────────────────── */

.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 13px; }

/* ─── Loading spinner ──────────────────────────────────────────────────────── */

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto 12px;
}

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

.loading-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

/* ─── Success Banner ──────────────────────────────────────────────────────── */

.success-banner {
    background: rgba(34,197,94,0.12);
    border: 1px solid rgba(34,197,94,0.3);
    color: var(--status-resolved);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 15px;
}

.success-banner i { margin-right: 8px; }

.success-new-report {
    display: inline-block;
    margin-top: 8px;
    color: var(--accent);
    font-size: 14px;
}

/* ─── Mobile ──────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    /* Prevent iOS auto-zoom on input focus */
    input, select, textarea { font-size: 16px !important; }

    /* Tighter spacing */
    .container { padding: 0 12px; }
    .dashboard-section { padding: 20px 0; }
    .report-form-card { padding: 16px; }
    .section-title { font-size: 18px; }
    .tbl-section { padding: 20px 0; }

    /* Report card meta stacking */
    .report-card-header { flex-wrap: wrap; }
    .report-card-meta span { display: block; margin-right: 0; }
    .report-card-right { width: 100%; justify-content: space-between; margin-top: 8px; }

    /* Admin table horizontal scroll */
    .tbl-section .sky-tbl { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

    /* Modals */
    .modal { padding: 20px; max-height: 95vh; }
    .auth-modal { padding: 24px 20px; }

    /* Bigger touch targets */
    .btn { padding: 12px 20px; }
    .nav-accordion-link { padding: 16px 20px; }

    /* Admin filters stack */
    .admin-filters { flex-direction: column; }
    .admin-filters select { width: 100%; }
}
