/* =========================================================================
   KSSystem — designsystem v3: dyb skovgrøn + varm sand.
   Mørk, selvsikker admin-sidebar, lun offentlig forside, bløde
   store runde former, tydelig kontrast mellem mørkt og lyst.
   Fraunces til overskrifter (karakter), Inter til brødtekst.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --ink: #1c2620;
    --ink-soft: #4d5c52;
    --bg: #faf7f0;           /* varm sand */
    --surface: #ffffff;
    --line: #e7e0d0;

    --forest: #1f4d3c;       /* dyb skovgrøn — primær accent */
    --forest-dark: #14342a;
    --forest-soft: #e2ede7;
    --amberish: #d97a3f;     /* varm terracotta — sekundær accent */
    --sky: #f1efe4;
    --muted: #7c7563;

    --bs-primary: #1f4d3c;
    --bs-primary-rgb: 31, 77, 60;
    --bs-link-color: #1f4d3c;
    --bs-link-hover-color: #14342a;
    --bs-body-bg: #faf7f0;
    --bs-body-font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

    --accent: #1f4d3c;
    --accent-dark: #14342a;
    --surface-tint: #f4f1e7;

    /* Bagudkompatibel alias — index.php refererer stadig direkte til denne */
    --coral: #d97a3f;

    /* ---- Admin panel: mørk skovgrøn sidebar, sand indhold ---- */
    --adm-ink: #1c2620;
    --adm-ink-2: #14342a;
    --adm-ink-soft: #4d5c52;
    --adm-bg: #faf7f0;
    --adm-surface: #ffffff;
    --adm-surface-tint: #f4f1e7;
    --adm-line: #e7e0d0;
    --adm-indigo: #1f4d3c;
    --adm-indigo-dark: #14342a;
    --adm-indigo-soft: #e2ede7;
    --adm-amber: #d97a3f;
    --adm-amber-dark: #b8622e;
    --adm-red: #c0453b;
    --adm-red-soft: #fbe9e6;
    --adm-green: #1f4d3c;
    --adm-green-soft: #e2ede7;
    --adm-blue: #2f6feb;
    --adm-blue-soft: #eaf1fd;
    --adm-muted: #7c7563;
}

.admin-shell, .login-body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; }
.admin-shell h1, .admin-shell h2, .admin-shell .adm-display {
    font-family: 'Fraunces', 'Inter', serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-transform: none;
}
.adm-mono { font-family: 'Inter', sans-serif; font-variant-numeric: tabular-nums; font-weight: 600; }

html { background: var(--bg); }
body {
    background: var(--bs-body-bg);
    color: var(--ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

h1, h2, h3, .display-heading {
    font-family: 'Fraunces', 'Inter', serif;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.mono, .font-mono { font-family: 'Inter', sans-serif; font-variant-numeric: tabular-nums; }

/* ---- Signature: rolig kurve bag den offentlige hero ---- */
.roadline-wrap { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.roadline-wrap svg { position: absolute; width: 140%; max-width: none; opacity: 0.5; }

/* =========================================================================
   ADMIN PANEL — mørk skovgrøn "kabinet"-sidebar, varm terracotta
   accent, sandfarvet indhold, generøse runde kort.
   ========================================================================= */
body.admin-body {
    background: var(--adm-bg);
    color: var(--adm-ink);
    min-height: 100vh;
}
.admin-shell {
    display: flex;
    min-height: 100vh;
}
.admin-main { flex: 1; min-width: 0; }
.admin-content { max-width: 1280px; margin: 0 auto; padding: 36px 32px 64px; }

/* ---- Sidebar: mørk skovgrøn ---- */
.admin-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--adm-ink-2);
    background-image: linear-gradient(180deg, #1a3a2f 0%, var(--adm-ink-2) 75%);
    color: #fff;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 100;
}
.adm-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 24px 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.adm-sidebar-brand img { max-height: 34px; max-width: 168px; width: auto; object-fit: contain; }
.adm-brand-fallback {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--adm-amber); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
}
.adm-brand-text { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1rem; letter-spacing: -0.005em; color: #fff; line-height: 1.15; }

.adm-nav { flex: 1; padding: 20px 14px 10px; overflow-y: auto; }
.adm-nav-track { position: relative; }
.adm-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 14px;
    margin: 2px 0;
    border-radius: 999px;
    text-decoration: none;
    color: rgba(255,255,255,0.65);
    font-weight: 500;
    font-size: 0.87rem;
    transition: background .15s ease, color .15s ease;
}
.adm-nav-link i { font-size: 1rem; width: 18px; text-align: center; }
.adm-nav-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.adm-nav-link.active {
    color: #fff;
    background: var(--adm-amber);
    font-weight: 600;
    box-shadow: 0 6px 16px -6px rgba(217,122,63,0.55);
}

.adm-sidebar-foot { padding: 16px 20px 22px; border-top: 1px solid rgba(255,255,255,0.1); }
.adm-user-chip { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.adm-user-avatar {
    width: 30px; height: 30px; border-radius: 50%;
    background: rgba(255,255,255,0.12); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 700; flex-shrink: 0;
}
.adm-user-name { font-size: 0.8rem; font-weight: 600; color: #fff; line-height: 1.1; }
.adm-user-role { font-size: 0.7rem; color: rgba(255,255,255,0.55); }
.adm-logout-link {
    display: flex; align-items: center; gap: 8px;
    color: rgba(255,255,255,0.65); text-decoration: none;
    font-size: 0.82rem; font-weight: 600;
    padding: 8px 10px; border-radius: 8px;
    transition: background .15s ease, color .15s ease;
}
.adm-logout-link:hover { background: rgba(192,69,59,0.25); color: #ffb3ab; }

/* ---- Page heading row ---- */
.dash-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.dash-header h1 { font-size: 1.55rem; color: var(--adm-ink); }
.admin-content > h1 { color: var(--adm-ink); font-size: 1.35rem; margin-bottom: 4px; }
.admin-content > p.text-muted { color: var(--adm-muted) !important; }
.dash-date-chip {
    font-family: 'Inter', sans-serif;
    font-size: 0.76rem;
    font-weight: 600;
    background: var(--adm-surface);
    border: 1px solid var(--adm-line);
    color: var(--adm-ink);
    border-radius: 999px;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ---- Cards: krem, generøs runding, blød skygge ---- */
.admin-shell .card,
.admin-shell .card-modern {
    border: 1px solid var(--adm-line);
    border-radius: 20px;
    background: var(--adm-surface);
    box-shadow: 0 2px 10px rgba(28,38,32,0.05);
    overflow: hidden;
}
.admin-shell .card-modern .table-responsive { border-radius: inherit; }

/* ---- Stat cards ---- */
.gauge-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 34px; }
@media (max-width: 992px) { .gauge-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 576px) { .gauge-row { grid-template-columns: repeat(2, 1fr); } }
.gauge-card {
    border: 1px solid var(--adm-line);
    border-radius: 18px;
    background: var(--adm-surface);
    padding: 16px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.gauge-card:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -18px rgba(28,38,32,0.35); }
.gauge-card.is-highlight { border-color: var(--adm-amber); background: linear-gradient(160deg, #fff 55%, #fdf1e7 160%); }
.gauge-dial {
    --pct: 0;
    position: relative;
    width: 46px; height: 46px; flex-shrink: 0;
    border-radius: 50%;
    background: conic-gradient(var(--dial-color, var(--adm-amber)) calc(var(--pct) * 1%), var(--adm-surface-tint) 0);
    display: flex; align-items: center; justify-content: center;
}
.gauge-dial::after {
    content: '';
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: var(--adm-surface);
}
.gauge-dial i { position: relative; z-index: 1; font-size: 0.95rem; color: var(--dial-color, var(--adm-amber-dark)); }
.gauge-card .num { font-family: 'Fraunces', serif; font-size: 1.4rem; font-weight: 600; color: var(--adm-ink); line-height: 1.1; }
.gauge-card .lbl { color: var(--adm-muted); font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }

/* ---- Icon badges ---- */
.admin-shell .icon-badge {
    background: var(--adm-surface-tint);
    color: var(--adm-ink);
    border: none;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
}
.admin-shell .icon-badge-burgundy { background: var(--adm-red-soft); color: var(--adm-red); }
.admin-shell .icon-badge-amber    { background: #fdf1e7; color: var(--adm-amber-dark); }
.admin-shell .icon-badge-blue     { background: var(--adm-blue-soft); color: var(--adm-blue); }
.admin-shell .icon-badge-green    { background: var(--adm-green-soft); color: var(--adm-green); }
.admin-shell .icon-badge-slate    { background: var(--adm-surface-tint); color: var(--adm-ink-soft); }

/* ---- Status badges ---- */
.admin-shell .badge-status {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 5px 12px;
    border-radius: 999px;
    border: none;
    white-space: nowrap;
    display: inline-block;
}
.admin-shell .badge-ny         { background: #fdf1e7; color: var(--adm-amber-dark); }
.admin-shell .badge-i_gang     { background: var(--adm-surface-tint); color: var(--adm-ink-soft); }
.admin-shell .badge-sendt_post { background: var(--adm-blue-soft); color: var(--adm-blue); }
.admin-shell .badge-booket     { background: var(--adm-green-soft); color: var(--adm-green); }
.admin-shell .badge-afsluttet  { background: var(--adm-bg); color: var(--adm-muted); }

/* ---- Tables ---- */
.admin-shell .table > :not(caption) > * > * { padding: 0.85rem 1rem; font-size: 0.86rem; }
.admin-shell .table-modern { table-layout: fixed; }
.admin-shell .table-modern thead th { white-space: nowrap; }
.admin-shell .table-modern td.text-truncate, .admin-shell .table-modern th.text-truncate { max-width: 1px; }
.admin-shell .table-email-link { color: var(--adm-ink); text-decoration: none; }
.admin-shell .table-email-link:hover { color: var(--adm-amber-dark); text-decoration: underline; }
.admin-shell .table-modern thead th {
    background: var(--adm-surface-tint);
    border-bottom: 1px solid var(--adm-line);
    font-size: 0.68rem;
    letter-spacing: .06em;
    color: var(--adm-muted);
    font-weight: 700;
    text-transform: uppercase;
    padding-top: 0.85rem;
}
.admin-shell .table-modern td { border-bottom: 1px solid var(--adm-line); font-family: 'Inter', sans-serif; font-size: 0.85rem; color: var(--adm-ink-soft); }
.admin-shell .table-modern td.fw-semibold { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.87rem; color: var(--adm-ink); }
.admin-shell .table-modern tr:last-child td { border-bottom: none; }
.admin-shell .table-modern tr:hover td { background: var(--adm-surface-tint); }
.card-modern .table-modern thead th:first-child { padding-left: 1.25rem; }
.card-modern .table-modern thead th:last-child { padding-right: 1.25rem; }
.card-modern .table-modern tbody td:first-child { padding-left: 1.25rem; }
.card-modern .table-modern tbody td:last-child { padding-right: 1.25rem; }

/* ---- Buttons ---- */
.admin-shell .btn, .login-body .btn { border-radius: 999px; font-weight: 600; font-size: 0.85rem; padding: 0.55rem 1.2rem; }
.admin-shell .btn-primary, .login-body .btn-primary {
    background-color: var(--adm-amber);
    border-color: var(--adm-amber);
    color: #fff;
    box-shadow: 0 8px 18px -8px rgba(217,122,63,0.5);
}
.admin-shell .btn-primary:hover, .admin-shell .btn-primary:focus, .admin-shell .btn-primary:active,
.login-body .btn-primary:hover {
    background-color: var(--adm-amber-dark) !important;
    border-color: var(--adm-amber-dark) !important;
    color: #fff !important;
}
.admin-shell .btn-outline-primary { color: var(--adm-ink); border-color: var(--adm-line); }
.admin-shell .btn-outline-primary:hover { background-color: var(--adm-ink); border-color: var(--adm-ink); color: #fff; }
.admin-shell .btn-outline-secondary { border-color: var(--adm-line); color: var(--adm-muted); }
.admin-shell .btn-outline-secondary:hover { background: var(--adm-ink); border-color: var(--adm-ink); color: #fff; }
.admin-shell .btn-outline-danger { border-color: #f3c9c5; color: var(--adm-red); }
.admin-shell .btn-outline-danger:hover { background: var(--adm-red); border-color: var(--adm-red); color: #fff; }
.admin-shell .text-primary { color: var(--adm-blue) !important; }

/* ---- Forms ---- */
.admin-shell .form-label { font-weight: 600; font-size: 0.82rem; color: var(--adm-ink); }
.admin-shell .form-control, .admin-shell .form-select {
    border-color: var(--adm-line);
    border-radius: 12px;
    background: var(--adm-surface);
}
.admin-shell .form-control:focus, .admin-shell .form-select:focus {
    border-color: var(--adm-amber);
    box-shadow: 0 0 0 0.15rem rgba(217,122,63,0.16);
}
.admin-shell .alert-success { background: var(--adm-green-soft); color: #1f4d3c; border: 1px solid #c9ecd8; }
.admin-shell .alert-danger { background: var(--adm-red-soft); color: #9c332b; border: 1px solid #f3c9c5; }

/* ---- Section heading row ---- */
.admin-shell .section-heading-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.admin-shell .section-heading {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.05rem;
    text-transform: none;
    letter-spacing: -0.005em;
    color: var(--adm-ink);
    margin-bottom: 16px;
    display: flex; align-items: center; gap: 8px;
}
.admin-shell .section-heading i { color: var(--adm-amber); }

/* ---- Empty state ---- */
.admin-shell .table-empty-state { text-align: center; padding: 44px 20px; color: var(--adm-muted); }
.admin-shell .table-empty-state i { font-size: 1.8rem; color: var(--adm-line); display: block; margin-bottom: 10px; }
.admin-shell .table-empty-state .empty-title { font-weight: 600; color: var(--adm-ink); margin-bottom: 2px; }
.admin-shell .table-empty-state .empty-sub { font-size: 0.84rem; }

/* ---- Pills / filters ---- */
.admin-shell .nav-pills .nav-link.active { background-color: var(--adm-ink); color: #fff; }
.admin-shell .nav-pills .nav-link {
    color: var(--adm-ink);
    font-weight: 600;
    font-size: 0.8rem;
    border: 1px solid var(--adm-line) !important;
    border-radius: 999px !important;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.admin-shell .nav-pills .nav-link:not(.active):hover { background: var(--adm-surface-tint); border-color: #d8cdb0 !important; }

.admin-shell .reply-history-item { border-left: 3px solid var(--adm-amber); border-radius: 12px; }
.admin-shell .reply-answered-by {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 0.72rem; font-weight: 700; letter-spacing: normal; text-transform: none;
    padding: 2px 10px; border-radius: 999px;
    background: var(--adm-blue-soft, #eaf1fc); color: var(--adm-blue, #2f6feb);
}

/* ---- Category distribution bars ---- */
.category-bars { display: flex; flex-direction: column; gap: 15px; }
.category-bar-row { display: grid; grid-template-columns: 150px 1fr 40px; align-items: center; gap: 12px; }
.cb-label { font-size: 0.83rem; font-weight: 600; color: var(--adm-ink); }
.cb-track {
    position: relative;
    height: 10px;
    background: var(--adm-surface-tint);
    border-radius: 999px;
    overflow: hidden;
}
.cb-fill { height: 100%; background: linear-gradient(90deg, var(--adm-amber-dark), var(--adm-amber)); border-radius: 999px; }
.cb-num { font-family: 'Fraunces', serif; font-size: 0.85rem; font-weight: 600; color: var(--adm-ink-soft); text-align: right; }

.login-card { max-width: 380px; margin: 10vh auto; }

/* ---- Offentlig forside / bookingsider ---- */
.public-body { background: var(--bg); }
.public-hero {
    background: linear-gradient(180deg, #fff 0%, var(--sky) 140%);
    border-bottom: 1px solid var(--line);
    padding: 60px 24px 44px;
    margin-bottom: 40px;
}
.public-hero h1 { font-family: 'Fraunces', serif; font-size: 2rem; color: var(--ink); font-weight: 600; }
.service-card { border-radius: 22px; transition: transform .18s ease, box-shadow .18s ease; }
.service-card:hover { border-color: #d8cdb0; transform: translateY(-3px); box-shadow: 0 16px 34px -20px rgba(28,38,32,0.25); }
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--forest);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.87rem;
}
.back-link:hover { color: var(--forest-dark); }

/* ---- Vilkår-boks (accept-checkbox på booking-formularer) ---- */
.itw-terms-box {
    background: var(--sky);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px 24px;
}
.itw-terms-box .form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-left: 0;
}
.itw-terms-box .form-check-input {
    width: 1.15em;
    height: 1.15em;
    margin-top: 0.2em;
    margin-left: 0;
    flex-shrink: 0;
    border: 1.5px solid var(--forest);
    border-radius: 5px;
}
.itw-terms-box .form-check-input:checked {
    background-color: var(--forest);
    border-color: var(--forest);
}
.itw-terms-box .form-check-input:focus {
    box-shadow: 0 0 0 0.15rem rgba(31,77,60,0.18);
    border-color: var(--forest);
}
.itw-terms-box .form-check-label {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--ink);
}
.itw-terms-text {
    margin-top: 12px;
    padding-left: calc(1.15em + 10px);
}
.itw-terms-text p {
    font-size: 0.87rem;
    line-height: 1.55;
    color: var(--ink-soft);
    margin-bottom: 10px;
}
.itw-terms-text p:last-child { margin-bottom: 0; }
.itw-terms-text a {
    color: var(--forest);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(31,77,60,0.35);
}
.itw-terms-text a:hover { color: var(--forest-dark); border-color: var(--forest-dark); }
@media (max-width: 480px) {
    .itw-terms-box { padding: 16px 16px; border-radius: 14px; }
    .itw-terms-text { padding-left: 0; margin-top: 10px; }
}

/* =========================================================================
   MOBIL / RESPONSIVT
   ========================================================================= */
.adm-topbar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: var(--adm-ink-2);
    background-image: linear-gradient(180deg, #1a3a2f 0%, var(--adm-ink-2) 60%);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 150;
}
.adm-topbar-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.adm-topbar-brand img { max-height: 26px; max-width: 120px; width: auto; object-fit: contain; }
.adm-topbar-brand-fallback {
    width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
    background: var(--adm-amber); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 0.85rem;
}
.adm-topbar-brand-text {
    font-family: 'Fraunces', serif; font-weight: 600; font-size: 0.85rem; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.adm-menu-btn {
    width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
    color: #fff; font-size: 1.15rem;
    display: flex; align-items: center; justify-content: center;
}
.adm-menu-btn:active { background: rgba(255,255,255,0.16); }
.adm-topbar .adm-user-avatar { flex-shrink: 0; }

.adm-sidebar-close { display: none; }

.adm-sidebar-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(15,20,15,0.5);
    z-index: 199;
}

@media (max-width: 991.98px) {
    .admin-shell { flex-direction: column; }
    .adm-topbar { display: flex; }

    .admin-sidebar {
        position: fixed;
        top: 0; left: 0; bottom: 0;
        height: 100vh;
        width: 268px;
        max-width: 84vw;
        transform: translateX(-100%);
        transition: transform .25s ease;
        z-index: 200;
    }
    .adm-sidebar-brand { justify-content: space-between; }
    .adm-sidebar-close {
        display: flex; align-items: center; justify-content: center;
        width: 30px; height: 30px; border-radius: 50%;
        background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
        color: #fff; font-size: 0.95rem; flex-shrink: 0;
    }
    .admin-shell.adm-sidebar-open .admin-sidebar { transform: translateX(0); }
    .admin-shell.adm-sidebar-open .adm-sidebar-backdrop { display: block; }

    .admin-main { width: 100%; min-width: 0; }
    .admin-content { padding: 24px 16px 48px; }
}

@media (max-width: 575.98px) {
    .admin-content { padding: 18px 12px 40px; }
    .dash-header { margin-bottom: 18px; }
    .dash-header h1 { font-size: 1.25rem; }
    .dash-date-chip { font-size: 0.7rem; padding: 6px 12px; }
    .gauge-card { padding: 12px 10px; gap: 9px; }
    .gauge-card .num { font-size: 1.05rem; }
    .gauge-dial { width: 38px; height: 38px; }
    .category-bar-row { grid-template-columns: 92px 1fr 30px; gap: 8px; }
    .cb-label { font-size: 0.76rem; }
    .login-wrap { max-width: 100%; }
}

@media (max-width: 767.98px) {
    .admin-shell .table-modern { min-width: 640px; }
}

@media (max-width: 400px) {
    .home-hero-panel { padding: 40px 16px 34px; }
    .home-hero-inner h1 { font-size: 1.75rem; }
    .home-cards, .home-disclaimer { padding-left: 16px; padding-right: 16px; }
}
