:root {
    --sidebar: #0f172a;
    --accent: #0ea5a4;
    --bg: #f4f6fb;
}
body { background: var(--bg); font-family: "Segoe UI", system-ui, sans-serif; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
    width: 240px;
    background: var(--sidebar);
    color: #fff;
    padding: 1.25rem 0.85rem;
    flex-shrink: 0;
}
.brand { font-weight: 700; font-size: 1.05rem; margin-bottom: 1.5rem; display: flex; gap: .6rem; align-items: center; }
.brand i { color: var(--accent); }
.sidebar .nav-link { color: #cbd5e1; border-radius: .6rem; padding: .65rem .8rem; margin-bottom: .2rem; }
.sidebar .nav-link i { width: 1.3rem; }
.sidebar .nav-link.active, .sidebar .nav-link:hover { background: #1e293b; color: #fff; }
.content { flex: 1; padding: 1.25rem 1.5rem 2rem; min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; gap: 1rem; }
.company-filter { display: flex; align-items: center; background: #fff; padding: .45rem .75rem; border-radius: .75rem; box-shadow: 0 1px 3px rgba(15,23,42,.08); }
.stat-card { border: 0; border-radius: 1rem; box-shadow: 0 8px 24px rgba(15,23,42,.06); }
.stat-card .icon { width: 42px; height: 42px; border-radius: .8rem; display: grid; place-items: center; color: #fff; }
.company-badge {
    background: #ccfbf1; color: #115e59;
    white-space: normal; text-align: left; line-height: 1.25;
    max-width: 100%; overflow-wrap: break-word; word-break: normal; font-weight: 600;
}
.company-code { font-size: .72rem; color: #64748b; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.company-meta { font-size: .78rem; color: #64748b; line-height: 1.3; }
.readonly-note { background: #e0f2fe; color: #075985; border-radius: .6rem; padding: .45rem .8rem; }

/* ---- License expiry alert banner (dashboard) ---- */
.expiry-alert {
    --ea-bg: #fffbeb; --ea-border: #f59e0b; --ea-ink: #78350f; --ea-icon: #d97706;
    background: var(--ea-bg); border: 1px solid var(--ea-border); border-left-width: 6px;
    color: var(--ea-ink); border-radius: 1rem; padding: 1rem 1.25rem; margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(120, 53, 15, .08);
}
.expiry-alert--danger { --ea-bg: #fef2f2; --ea-border: #dc2626; --ea-ink: #7f1d1d; --ea-icon: #dc2626; }
.expiry-alert--ok { --ea-bg: #f0fdf4; --ea-border: #16a34a; --ea-ink: #14532d; --ea-icon: #16a34a; }
.expiry-alert__icon {
    width: 46px; height: 46px; border-radius: .9rem; display: grid; place-items: center;
    background: var(--ea-icon); color: #fff; font-size: 1.2rem; flex-shrink: 0;
}
.expiry-alert__title { font-weight: 700; font-size: 1.05rem; margin: 0; }
.expiry-alert__counts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.expiry-count {
    display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .7rem; border-radius: 999px;
    font-size: .85rem; font-weight: 600; text-decoration: none; border: 1px solid transparent;
}
.expiry-count strong { font-size: 1rem; }
.expiry-count--expired { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.expiry-count--critical { background: #ffedd5; color: #9a3412; border-color: #fed7aa; }
.expiry-count--warning { background: #fef9c3; color: #854d0e; border-color: #fde68a; }
.expiry-count--muted { background: rgba(255,255,255,.7); color: inherit; border-color: rgba(0,0,0,.08); }
.expiry-count:hover { filter: brightness(.97); }
.expiry-alert table { --bs-table-bg: transparent; margin-bottom: 0; color: inherit; }
.expiry-alert table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: inherit; opacity: .75; }
.expiry-row--expired td:first-child { box-shadow: inset 3px 0 0 #dc2626; }
.expiry-row--critical td:first-child { box-shadow: inset 3px 0 0 #ea580c; }
.expiry-row--warning td:first-child { box-shadow: inset 3px 0 0 #eab308; }
.days-chip { display: inline-block; min-width: 4.8rem; text-align: center; font-size: .75rem; font-weight: 700; padding: .2rem .5rem; border-radius: .5rem; }
.days-chip--expired { background: #dc2626; color: #fff; }
.days-chip--critical { background: #f97316; color: #fff; }
.days-chip--warning { background: #facc15; color: #422006; }
.card-soft { border: 0; border-radius: 1rem; box-shadow: 0 8px 24px rgba(15,23,42,.06); }
/* Phone / tablet layout lives in the "Mobile app" section at the end of this file. */

/* ---- Detail pages (employee / device / license / e-mail) ---- */
.detail-link { text-decoration: none; font-weight: 600; color: #0f4c81; white-space: nowrap; }
.detail-link:hover { text-decoration: underline; color: #0b3a63; }
.avatar-circle {
    width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
    background: #0ea5a4; color: #fff; font-size: 1.4rem; font-weight: 700;
}
.avatar-circle--device { background: #2563eb; }
.avatar-circle--license { background: #7c3aed; }
.avatar-circle--email { background: #0891b2; }
.avatar-circle--sm { width: 34px; height: 34px; font-size: .95rem; }
.mini-stat { background: #f1f5f9; border-radius: .8rem; padding: .45rem .9rem; text-align: center; min-width: 78px; }
.mini-stat strong { display: block; font-size: 1.25rem; line-height: 1.1; }
.mini-stat span { font-size: .72rem; color: #64748b; text-transform: uppercase; letter-spacing: .04em; }
.mini-stat--warn { background: #ffedd5; color: #9a3412; }
.mini-stat--danger { background: #fee2e2; color: #991b1b; }
.device-tile { border: 1px solid #e2e8f0; border-radius: .9rem; padding: .85rem 1rem; margin-bottom: .75rem; background: #fbfdff; }
.remote-buttons { display: inline-flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.remote-item { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.remote-id { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .85rem; color: #334155; }
.btn-tv { background: #0e8ee9; border-color: #0e8ee9; color: #fff; }
.btn-tv:hover { background: #0b74bf; border-color: #0b74bf; color: #fff; }
.btn-ad { background: #ef443b; border-color: #ef443b; color: #fff; }
.btn-ad:hover { background: #cf3028; border-color: #cf3028; color: #fff; }
.btn-sm.btn-tv, .btn-sm.btn-ad { padding: .1rem .45rem; font-size: .75rem; font-weight: 600; }
.person-chip { display: inline-flex; gap: .6rem; align-items: center; padding: .5rem .8rem; border: 1px solid #e2e8f0; border-radius: .9rem; text-decoration: none; color: inherit; background: #fff; }
.person-chip:hover { border-color: #0ea5a4; }
.account-block { border: 1px solid #e2e8f0; border-radius: .9rem; padding: .85rem 1rem; margin-bottom: .75rem; }
.copy-btn.copied { color: #16a34a !important; }
.user-line { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; padding: .15rem 0; }
.user-line + .user-line { border-top: 1px dashed #e2e8f0; }
/* ---- Servers / Portals ---- */
.secret-mask { letter-spacing: .12em; color: #64748b; }
.secret-value { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.infra-dl dt { color: #64748b; font-weight: 500; }
.infra-dl dd { margin-bottom: .25rem; }
.vpn-box { background: #f0f9ff; border: 1px solid #bae6fd; border-radius: .7rem; padding: .55rem .75rem; }
/* ---- Branding: logo, footer, login ---- */
.brand { color: #fff; }
.brand:hover { color: #fff; }
.brand-logo { max-height: 40px; max-width: 150px; object-fit: contain; border-radius: .4rem; background: #fff; padding: 3px; }
.brand-logo--icon { background: none; padding: 0; color: var(--accent); font-size: 1.3rem; }
.content { display: flex; flex-direction: column; }
.app-footer { margin-top: auto; padding: 1rem .25rem .25rem; border-top: 1px solid #e2e8f0; display: flex; flex-wrap: wrap;
    justify-content: space-between; gap: .5rem; font-size: .82rem; color: #64748b; }
.footer-spacer { min-height: 2rem; flex-shrink: 0; }
.app-footer__credit { font-weight: 600; color: #0f766e; }
.logo-preview { min-height: 70px; display: flex; align-items: center; }
.logo-preview-img { max-height: 90px; max-width: 280px; object-fit: contain; }
.logo-preview .brand-logo--icon { font-size: 2.5rem; }
.sidebar-preview { background: var(--sidebar); color: #fff; border-radius: .8rem; padding: 1rem; }
.sidebar-preview .brand { margin-bottom: 0; }
.login-body { background: #f1f5f9; min-height: 100vh; margin: 0; }
.login-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.login-brand { background: linear-gradient(145deg, #0f172a 0%, #134e4a 100%); color: #e2e8f0; padding: 3rem 3.5rem;
    display: flex; flex-direction: column; justify-content: center; }
.login-brand__logo { margin-bottom: 1.75rem; }
.login-logo { max-width: 260px; max-height: 120px; object-fit: contain; background: #fff; border-radius: .9rem; padding: .6rem .9rem; }
.login-brand__logo .brand-logo--icon { font-size: 3.2rem; color: #5eead4; }
.login-brand__name { font-size: 2rem; font-weight: 700; color: #fff; margin-bottom: .4rem; }
.login-brand__tagline { color: #99f6e4; font-size: 1.05rem; margin-bottom: 2rem; }
.login-brand__points { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.login-brand__points i { width: 1.6rem; color: #5eead4; }
.login-form { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1rem; }
.login-card { width: 100%; max-width: 400px; background: #fff; border-radius: 1.1rem; padding: 2rem; box-shadow: 0 18px 50px rgba(15,23,42,.10); }
.login-card__logo-sm { display: none; margin-bottom: 1rem; }
.login-logo-sm { max-height: 56px; max-width: 200px; object-fit: contain; }
.login-footer { margin-top: 1.5rem; font-size: .8rem; color: #94a3b8; }
@media (max-width: 900px) {
    .login-shell { grid-template-columns: 1fr; }
    .login-brand { display: none; }
    .login-card__logo-sm { display: block; }
    .login-card__logo-sm .brand-logo--icon { font-size: 2.2rem; }
}
/* ---- Sidebar logo ---- */
.brand--with-logo { flex-direction: column; align-items: stretch; gap: .5rem; }
.brand-logo-card { display: flex; align-items: center; justify-content: center; background: #fff; border-radius: .8rem;
    padding: .55rem .7rem; min-height: 64px; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.brand-logo-img { max-width: 100%; max-height: 72px; object-fit: contain; }
.brand-name { font-size: .92rem; text-align: center; color: #cbd5e1; font-weight: 600; }

/* ---- Licenses page ---- */
.status-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem; border-radius: 999px; font-size: .85rem;
    font-weight: 600; text-decoration: none; border: 1px solid #e2e8f0; color: #334155; background: #fff; }
.status-pill span { background: #f1f5f9; border-radius: 999px; padding: 0 .45rem; font-size: .78rem; }
.status-pill:hover { border-color: #94a3b8; color: #0f172a; }
.status-pill.active { color: #fff; border-color: transparent; }
.status-pill.active span { background: rgba(255,255,255,.25); }
.status-pill--secondary.active { background: #334155; }
.status-pill--danger.active { background: #dc2626; }
.status-pill--warning.active { background: #d97706; }
.status-pill--success.active { background: #16a34a; }
.manage-card { border-left: 5px solid #2563eb !important; }
.manage-card__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1rem 1rem .75rem; }
.manage-card .nav-tabs .nav-link, .card .nav-tabs .nav-link { font-weight: 600; color: #475569; }
.card .nav-tabs .nav-link.active { color: #0f172a; }
.seats-bar { height: 5px; margin-top: 3px; background: #e2e8f0; }
.license-table tbody tr.row-status--expired td:first-child { box-shadow: inset 4px 0 0 #dc2626; }
.license-table tbody tr.row-status--critical td:first-child { box-shadow: inset 4px 0 0 #ea580c; }
.license-table tbody tr.row-status--warning td:first-child { box-shadow: inset 4px 0 0 #eab308; }
.license-table tbody tr.row-status--ok td:first-child { box-shadow: inset 4px 0 0 #16a34a; }
/* ---- Software page: vendor groups ---- */
.vendor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 1rem; align-items: start; }
@media (max-width: 520px) { .vendor-grid { grid-template-columns: 1fr; } }
.vendor-card { overflow: hidden; }
.vendor-card__head { display: flex; align-items: center; gap: .8rem; padding: 1rem 1rem .75rem; border-bottom: 1px solid #eef2f7; }
.vendor-avatar { width: 44px; height: 44px; border-radius: .8rem; display: grid; place-items: center; color: #fff; font-weight: 700;
    font-size: 1.2rem; flex-shrink: 0; }
.product-list { list-style: none; margin: 0; padding: .25rem 0; }
.product-row { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .55rem 1rem; }
.product-row + .product-row { border-top: 1px dashed #e2e8f0; }
.product-row:hover { background: #f8fafc; }
.product-row__stats { display: flex; align-items: center; gap: .7rem; font-size: .82rem; color: #475569; white-space: nowrap; }
.min-w-0 { min-width: 0; }

/* ---- Setup checklists ---- */
.progress-ring {
    --p: 0; --ring: #f59e0b; --size: 64px;
    width: var(--size); height: var(--size); border-radius: 50%; flex-shrink: 0;
    background: conic-gradient(var(--ring) calc(var(--p) * 1%), #e2e8f0 0);
    display: grid; place-items: center; position: relative; transition: background .3s;
}
.progress-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.progress-ring span { position: relative; font-weight: 700; font-size: .85rem; color: #0f172a; }
.progress-ring--lg { --size: 92px; }
.progress-ring--lg::before { inset: 9px; }
.progress-ring--lg span { font-size: 1.15rem; }
.progress-ring--sm { --size: 40px; }
.progress-ring--sm::before { inset: 5px; }
.progress-ring--sm span { font-size: .68rem; }
.progress-ring--low { --ring: #f59e0b; }
.progress-ring--mid { --ring: #0ea5a4; }
.progress-ring--done { --ring: #16a34a; }
.setup-card { padding: 1rem; transition: transform .15s, box-shadow .15s; }
.setup-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15,23,42,.12); }
.setup-card__meta { border-top: 1px dashed #e2e8f0; margin-top: .85rem; padding-top: .6rem; display: grid; gap: .15rem; }
.checklist-tabs .nav-link { border-radius: .7rem; color: #334155; }
.checklist-tabs .nav-link.active { background: #0f172a; color: #fff; }
.start-setup-card { border-left: 5px solid var(--accent); }
.template-card { display: flex; flex-direction: column; }
.section-chip { font-size: .72rem; background: #f1f5f9; color: #334155; border-radius: 999px; padding: .15rem .55rem; white-space: nowrap; }
.section-chip i { color: #64748b; margin-right: .15rem; }
.checklist-progress { height: .55rem; border-radius: 999px; background: #e2e8f0; max-width: 520px; }
.checklist-progress .progress-bar { background: linear-gradient(90deg, #0ea5a4, #16a34a); transition: width .3s; }
.checklist-sections { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); align-items: start; }
.checklist-section__head h2 { color: #0f172a; }
.checklist-section { overflow: hidden; }
.checklist-section__head { display: flex; align-items: center; gap: .65rem; padding: .8rem 1rem; background: #f8fafc; border-bottom: 1px solid #eef2f7; }
.checklist-section__icon { width: 34px; height: 34px; border-radius: .6rem; display: grid; place-items: center; background: #0f172a; color: #fff; }
.checklist-section.is-complete .checklist-section__icon { background: #16a34a; }
.checklist-section__count { font-size: .8rem; color: #64748b; background: #fff; border: 1px solid #e2e8f0; border-radius: 999px; padding: .1rem .55rem; }
.checklist-section.is-complete .checklist-section__count { color: #166534; border-color: #bbf7d0; background: #f0fdf4; }
.checklist-items { list-style: none; margin: 0; padding: .35rem 0; }
.checklist-item { display: grid; grid-template-columns: 1fr auto; gap: .1rem .5rem; padding: .5rem 1rem; border-bottom: 1px solid #f1f5f9; transition: background .2s; }
.checklist-item:last-child { border-bottom: 0; }
.checklist-item:hover { background: #f8fafc; }
.checklist-item__main { display: flex; gap: .65rem; align-items: flex-start; cursor: pointer; margin: 0; }
.checklist-item__main .form-check-input { width: 1.25rem; height: 1.25rem; margin-top: .05rem; flex-shrink: 0; cursor: pointer; }
.checklist-item__main .form-check-input:checked { background-color: #16a34a; border-color: #16a34a; }
.checklist-item__title { line-height: 1.35; }
.checklist-item.is-done .checklist-item__title { color: #64748b; text-decoration: line-through; text-decoration-color: #94a3b8; }
.checklist-item.is-saving { opacity: .55; }
.checklist-item__side { align-self: center; }
.checklist-link { padding: .1rem .5rem; font-size: .75rem; }
.checklist-item__meta, .checklist-item__note, .checklist-item__notebox { grid-column: 1 / -1; padding-left: 1.9rem; font-size: .74rem; }
.checklist-item__meta { color: #16a34a; }
.checklist-item__meta:empty { display: none; }
.checklist-item__note { color: #92400e; }
.checklist-item__notebox summary { color: #94a3b8; cursor: pointer; width: max-content; }
.checklist-item__notebox[open] summary { color: #475569; }
.template-editor { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .85rem; line-height: 1.5; }
.template-example { background: #0f172a; color: #e2e8f0; border-radius: .6rem; padding: .75rem; font-size: .78rem; }
.template-preview ul li { margin-bottom: .1rem; }
.dash-setup-row { display: flex; align-items: center; gap: .75rem; padding: .55rem 0; border-bottom: 1px solid #f1f5f9; }
.dash-setup-row:last-child { border-bottom: 0; }
.dash-setup-row .progress { height: .4rem; }
.pulse-once { animation: pulse-once 1s ease-out 2; }
@keyframes pulse-once { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.6); } 100% { box-shadow: 0 0 0 12px rgba(22,163,74,0); } }
@media print {
    .sidebar, .topbar, .app-footer, .footer-spacer, .readonly-note, .alert { display: none !important; }
    .content { padding: 0; }
    .card-soft { box-shadow: none; border: 1px solid #cbd5e1; }
    .checklist-sections { grid-template-columns: 1fr 1fr; }
    .checklist-section { break-inside: avoid; }
    .progress-ring { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---- Mobile app (phones / installed PWA) ---- */
.sidebar-toggle, .sidebar-close, .sidebar-backdrop, .mobile-tabbar { display: none; }
.pwa-ios-hint {
    position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 1060;
    background: #0f172a; color: #e2e8f0; border-radius: 14px; padding: .85rem 2.6rem .85rem 1rem;
    box-shadow: 0 12px 32px rgba(15,23,42,.35); display: grid; gap: .2rem; font-size: .9rem;
}
.pwa-ios-hint.d-none { display: none; }
.pwa-ios-hint .btn-close { position: absolute; top: .7rem; right: .7rem; }
@media (max-width: 991.98px) {
    body { -webkit-tap-highlight-color: transparent; }
    .app-shell { display: block; }
    .sidebar {
        position: fixed; inset: 0 auto 0 0; width: min(290px, 84vw); z-index: 1050; overflow-y: auto;
        transform: translateX(-105%); transition: transform .25s ease; box-shadow: 0 0 40px rgba(0,0,0,.35);
        padding-top: calc(1rem + env(safe-area-inset-top)); padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    }
    .sidebar-open .sidebar { transform: none; }
    .sidebar-close { display: grid; place-items: center; position: absolute; top: calc(.6rem + env(safe-area-inset-top)); right: .6rem;
        width: 34px; height: 34px; border: 0; border-radius: 50%; background: #1e293b; color: #fff; z-index: 2; }
    .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 1040;
        opacity: 0; pointer-events: none; transition: opacity .25s; }
    .sidebar-open .sidebar-backdrop { opacity: 1; pointer-events: auto; }
    .sidebar-open { overflow: hidden; }
    .sidebar .nav-link { padding: .75rem .85rem; }

    .content { padding: calc(.75rem + env(safe-area-inset-top)) 1rem calc(88px + env(safe-area-inset-bottom)); }
    .topbar { position: sticky; top: 0; z-index: 1030; margin: calc(-.75rem - env(safe-area-inset-top)) -1rem 1rem;
        padding: calc(.6rem + env(safe-area-inset-top)) 1rem .6rem; background: rgba(244,246,251,.94);
        backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
        border-bottom: 1px solid #e2e8f0; gap: .5rem; flex-wrap: nowrap; }
    .sidebar-toggle { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: .75rem; }
    .company-filter { flex: 1; min-width: 0; padding: .3rem .5rem; }
    .company-filter select { min-width: 0; }
    .topbar-label { display: none; }
    .topbar-actions { gap: .35rem !important; flex-shrink: 0; }
    .topbar-actions .btn { padding: .4rem .6rem; }

    .mobile-tabbar {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035;
        background: rgba(255,255,255,.97); border-top: 1px solid #e2e8f0;
        backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
        padding: .3rem .25rem calc(.3rem + env(safe-area-inset-bottom));
    }
    .mobile-tabbar__item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .15rem; position: relative;
        padding: .35rem 0; color: #64748b; text-decoration: none; font-size: .68rem; font-weight: 600; background: none; border: 0; }
    .mobile-tabbar__item i { font-size: 1.15rem; }
    .mobile-tabbar__item.active { color: var(--accent); }
    .mobile-tabbar__item.active i { transform: translateY(-1px); }
    .mobile-tabbar__badge { position: absolute; top: .05rem; left: calc(50% + .35rem); background: #dc2626; color: #fff; border-radius: 999px;
        font-size: .6rem; min-width: 1.1rem; padding: 0 .3rem; line-height: 1.1rem; }

    .footer-spacer, .app-footer { display: none; }
    .readonly-note { font-size: .78rem; }
    h1.h3 { font-size: 1.3rem; }
    .card-soft, .stat-card { border-radius: .9rem; }
    .stat-card .fs-3 { font-size: 1.4rem !important; }
    .table { font-size: .85rem; }
    .dataTables_wrapper .row { row-gap: .5rem; }
    .dataTables_wrapper .dataTables_filter input { width: 100% !important; margin-left: 0 !important; }
    .dataTables_wrapper .dataTables_filter label { width: 100%; }
    .expiry-alert { padding: .85rem; }
    .detail-hero .btn { padding: .35rem .65rem; }
    .checklist-sections { grid-template-columns: 1fr; }
    .progress-ring--lg { --size: 72px; }
    .progress-ring--lg span { font-size: .95rem; }
    .checklist-item { padding: .65rem .85rem; }
    .checklist-item__main .form-check-input { width: 1.45rem; height: 1.45rem; }
    .modal-dialog { margin: .75rem; }
    input, select, textarea { font-size: 16px !important; } /* stops iOS zooming into form fields */
}
@media (max-width: 575.98px) {
    .content { padding-left: .75rem; padding-right: .75rem; }
    .topbar { margin-left: -.75rem; margin-right: -.75rem; padding-left: .75rem; padding-right: .75rem; }
}
.is-standalone .login-body { padding-top: env(safe-area-inset-top); }
@media print { .mobile-tabbar, .pwa-ios-hint, .sidebar-toggle { display: none !important; } }
