/* Biloca — design system driven by the brand kit (logo, 5-color palette, Inter Tight / Circular-style display face). */

:root {
    /* Brand palette (from Biloca's own design-system reference) */
    --primary: #7B68EE;        /* interactive purple — buttons, active states */
    --primary-light: #B59AF8;  /* brand swatch — rings, chips, soft accents */
    --primary-dark: #6350D9;
    --primary-soft: #DEE7FF;   /* brand swatch — pale fills */
    --accent-lime: #C7F464;    /* brand lime — highlight chips */
    --ink: #17152A;
    --ink-soft: #4A4660;
    --muted: #A6A6A6;          /* brand swatch */
    --border: #ECEAF6;
    --bg: #F8F7FC;
    --card: #FFFFFF;
    --success: #0FA466;        /* brand swatch — paid */
    --success-soft: #E1F6ED;
    --coral: #FE7150;          /* brand swatch — open / danger */
    --coral-soft: #FFE9E3;
    --amber: #FFC94D;          /* overdue */
    --amber-soft: #FFF4DC;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --shadow: 0 12px 32px rgba(23, 21, 42, 0.08);
    --shadow-sm: 0 3px 10px rgba(23, 21, 42, 0.05);
    /* Hard, unblurred "sticker" shadows — the signature trait of the brand's 2D illustration style. */
    --stroke: 2px solid var(--ink);
    --shadow-hard-sm: 3px 3px 0 var(--ink);
    --shadow-hard: 4px 4px 0 var(--ink);
    --shadow-hard-lg: 6px 6px 0 var(--ink);
    --shadow-hard-press: 1px 1px 0 var(--ink);
    --font-display: 'Poppins', 'Inter Tight', -apple-system, sans-serif;
    --font-body: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --bottom-nav-h: 68px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .25rem; line-height: 1.15; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 .5rem; }
.muted { color: var(--muted); }
img { max-width: 100%; }

/* ---------- App shell ---------- */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--card);
    border-right: 1px solid var(--border);
    color: var(--ink);
    padding: 1.5rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.brand { display: flex; align-items: center; padding: 0 .3rem; }
.brand img.brand-logo { height: 28px; width: auto; display: block; }
.brand-mark {
    width: 32px; height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; color: #fff; font-family: var(--font-display);
}
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.nav-list a {
    display: flex; align-items: center; gap: .75rem;
    padding: .7rem .9rem;
    border-radius: 999px;
    color: var(--ink-soft);
    font-weight: 600;
    font-size: .93rem;
}
.nav-list a:hover { background: var(--bg); color: var(--ink); }
.nav-list a.active { background: var(--primary); color: #fff; border: var(--stroke); box-shadow: var(--shadow-hard-sm); }
.nav-list a { border: 2px solid transparent; }
.nav-icon { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-icon img { width: 20px; height: 20px; object-fit: contain; }
.nav-icon svg { width: 19px; height: 19px; }
.nav-list a.active .nav-icon svg { stroke: #fff; }
.nav-list a .nav-icon svg { stroke: var(--ink-soft); }

.sidebar-footer { margin-top: auto; }
.user-chip {
    display: flex; align-items: center; gap: .6rem;
    padding: .65rem;
    border-radius: var(--radius-md);
    background: var(--bg);
}
.user-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--primary-soft); color: var(--primary-dark);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .85rem; overflow: hidden; flex-shrink: 0;
    font-family: var(--font-display);
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-meta { min-width: 0; }
.user-meta .name { font-size: .85rem; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-meta .email { font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logout-btn { background: none; border: none; color: var(--muted); cursor: pointer; font-size: .78rem; padding: 0; margin-top: .3rem; font-family: inherit; }
.logout-btn:hover { color: var(--coral); }

.main {
    flex: 1;
    min-width: 0;
    padding: 1.75rem 2.25rem 3rem;
}
.topbar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.5rem; gap: 1rem; flex-wrap: wrap;
}
.topbar h1 { font-size: 1.7rem; }
.topbar-actions { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }

/* ---------- Mobile top header + bottom tab bar ---------- */
.mobile-header, .bottom-nav { display: none; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    padding: .7rem 1.2rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .9rem;
    font-family: var(--font-body);
    border: var(--stroke);
    box-shadow: var(--shadow-hard-sm);
    cursor: pointer;
    line-height: 1.1;
    transition: transform .08s ease, box-shadow .08s ease, background .15s ease;
    white-space: nowrap;
}
.btn:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: var(--shadow-hard); }
.btn:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: var(--shadow-hard-press); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-lime { background: var(--accent-lime); color: var(--ink); }
.btn-lime:hover { filter: brightness(0.95); }
.btn-secondary { background: #fff; color: var(--ink); }
.btn-secondary:hover { color: var(--primary); }
.btn-ghost { background: transparent; color: var(--ink-soft); border-color: transparent; box-shadow: none; }
.btn-ghost:hover { background: var(--primary-soft); color: var(--primary-dark); transform: none; box-shadow: none; }
.btn-danger { background: var(--coral-soft); color: var(--coral); }
.btn-danger:hover { background: var(--coral); color: #fff; }
.btn-sm { padding: .45rem .85rem; font-size: .78rem; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.icon-btn {
    width: 40px; height: 40px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; border: var(--stroke); color: var(--ink-soft);
    box-shadow: var(--shadow-hard-sm);
    flex-shrink: 0;
    transition: transform .08s ease, box-shadow .08s ease, color .15s ease;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { color: var(--primary); transform: translate(-1px, -1px); box-shadow: var(--shadow-hard); }
.icon-btn:active { transform: translate(2px, 2px); box-shadow: var(--shadow-hard-press); }

/* ---------- Cards & layout helpers ---------- */
.card {
    background: var(--card);
    border-radius: var(--radius-lg);
    border: var(--stroke);
    box-shadow: var(--shadow-hard);
    padding: 1.35rem 1.5rem;
}
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.stat-card .label { font-size: .8rem; color: var(--muted); font-weight: 600; margin-bottom: .3rem; }
.stat-card .value { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; letter-spacing: -0.01em; }
.stat-card .sub { font-size: .78rem; color: var(--muted); margin-top: .15rem; }
.stat-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: .4rem; }
.dot-success { background: var(--success); }
.dot-warning { background: var(--coral); }
.dot-danger { background: var(--amber); }

/* ---------- Badges ---------- */
.badge {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .3rem .75rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: capitalize;
}
.badge-paid { background: var(--success-soft); color: var(--success); }
.badge-open { background: var(--coral-soft); color: var(--coral); }
.badge-overdue { background: var(--amber-soft); color: #B8790A; }

/* ---------- Forms ---------- */
label { display: block; font-size: .8rem; font-weight: 700; color: var(--ink-soft); margin-bottom: .35rem; }
.field { margin-bottom: 1rem; }
.field-hint { font-size: .74rem; color: var(--muted); margin-top: .3rem; }
.field-error { font-size: .78rem; color: var(--coral); margin-top: .3rem; font-weight: 600; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="date"], input[type="tel"], input[type="search"], select, textarea {
    width: 100%;
    padding: .72rem .9rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--ink);
    background: #fff;
    font-size: .92rem;
    font-family: var(--font-body);
    color: var(--ink);
}
textarea { resize: vertical; min-height: 80px; }
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft);
}
.input-invalid { border-color: var(--coral) !important; }
.checkbox-row { display: flex; align-items: center; gap: .6rem; }
.checkbox-row input { width: auto; }

.switch { position: relative; display: inline-block; width: 44px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-track { position: absolute; inset: 0; background: #fff; border: var(--stroke); border-radius: 999px; transition: .15s; cursor: pointer; }
.switch-track::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: var(--ink); border-radius: 50%; transition: .15s; }
.switch input:checked + .switch-track { background: var(--primary); }
.switch input:checked + .switch-track::before { background: #fff; }
.switch input:checked + .switch-track::before { transform: translateX(18px); }
.switch-row { display: flex; align-items: center; justify-content: space-between; padding: .7rem 0; border-bottom: 1px solid var(--border); }
.switch-row:last-child { border-bottom: none; }
.switch-row .switch-label { font-weight: 700; font-size: .88rem; }

.section-title { font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; margin: 1.5rem 0 .75rem; }
.section-title:first-child { margin-top: 0; }

/* ---------- List rows (invoices / clients) ---------- */
.filter-bar { display: flex; gap: .5rem; align-items: center; margin-bottom: 1.25rem; flex-wrap: wrap; }
.pill-group { display: inline-flex; background: #fff; border: var(--stroke); border-radius: 999px; padding: 3px; box-shadow: var(--shadow-hard-sm); }
.pill-group a { padding: .42rem .95rem; border-radius: 999px; font-size: .82rem; font-weight: 700; color: var(--ink-soft); }
.pill-group a.active { background: var(--primary); color: #fff; }
.search-input { max-width: 260px; }

.row-list { display: flex; flex-direction: column; gap: .75rem; }
.row-item {
    display: flex; align-items: center; gap: 1rem;
    background: #fff; border: var(--stroke); border-radius: var(--radius-md);
    padding: .9rem 1.1rem;
    box-shadow: var(--shadow-hard-sm);
    transition: transform .08s ease, box-shadow .08s ease;
}
a.row-item:hover { transform: translate(-1px, -1px); box-shadow: var(--shadow-hard); }
.avatar {
    width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
    background: var(--primary-soft); color: var(--primary-dark);
    display: flex; align-items: center; justify-content: center; font-weight: 700; overflow: hidden;
    font-family: var(--font-display);
    border: var(--stroke);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 700; font-size: .95rem; }
.row-sub { font-size: .8rem; color: var(--muted); }
.row-meta { display: flex; gap: 1.5rem; font-size: .8rem; color: var(--muted); }
.row-meta strong { display: block; color: var(--ink); font-size: .85rem; font-weight: 700; font-family: var(--font-display); }
.row-actions { display: flex; gap: .4rem; }

.empty-state { text-align: center; padding: 2.5rem 1rem 3rem; color: var(--muted); }
.empty-state img.empty-illustration { width: 200px; max-width: 60%; margin: 0 auto 1rem; display: block; }
.empty-state h3 { font-family: var(--font-display); color: var(--ink); margin-bottom: .4rem; font-size: 1.25rem; }

/* ---------- Invoice items table ---------- */
.item-table { width: 100%; border-collapse: collapse; }
.item-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: .5rem .6rem; border-bottom: 1px solid var(--border); }
.item-table td { padding: .6rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.item-table tr:last-child td { border-bottom: none; }
.item-row-name { font-weight: 700; }
.item-row-desc { font-size: .78rem; color: var(--muted); }
.totals-box { margin-left: auto; max-width: 320px; }
.totals-box .line { display: flex; justify-content: space-between; padding: .4rem 0; font-size: .88rem; }
.totals-box .line.total { border-top: 1px solid var(--border); margin-top: .4rem; padding-top: .7rem; font-weight: 700; font-size: 1.1rem; font-family: var(--font-display); }

.item-editor-row { background: var(--bg); border: var(--stroke); border-radius: var(--radius-md); padding: .9rem; margin-bottom: .75rem; }
.item-editor-row label { font-size: .68rem; }
.item-editor-row .field { margin-bottom: .6rem; }
.item-fields-grid { display: grid; grid-template-columns: 90px 110px 110px 100px 36px; gap: .6rem; align-items: end; }
.item-fields-grid .field { margin-bottom: 0; }
.item-line-total { display: inline-block; padding: .7rem 0; font-weight: 700; font-size: .88rem; font-family: var(--font-display); }
@media (max-width: 640px) {
    .item-fields-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Template style / color pickers ---------- */
.style-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; margin-bottom: 1.25rem; }
.style-option { cursor: pointer; }
.style-option input { display: none; }
.style-option .swatch {
    border: var(--stroke); border-radius: var(--radius-sm);
    height: 64px; background: #fafaff; display: flex; flex-direction: column; gap: 4px; padding: 8px;
    box-shadow: var(--shadow-hard-sm);
    transition: transform .08s ease, box-shadow .08s ease;
}
.style-option input:checked + .swatch { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft), var(--shadow-hard-sm); }
.style-option:hover .swatch { transform: translate(-1px, -1px); box-shadow: var(--shadow-hard); }
.style-option .name { display: block; text-align: center; font-size: .74rem; font-weight: 700; margin-top: .35rem; color: var(--ink-soft); }
.swatch-bar { height: 8px; border-radius: 3px; background: var(--primary); }
.swatch-line { height: 4px; border-radius: 2px; background: var(--border); }
.style-classic .swatch-bar { width: 30%; }
.style-vertical { flex-direction: row; }
.style-vertical .swatch-bar { width: 8px; height: 100%; }
.style-horizontal .swatch-bar { width: 100%; height: 18px; }
.style-extended .swatch-bar { width: 100%; height: 26px; }

.color-picker { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.color-option { width: 34px; height: 34px; border-radius: 50%; cursor: pointer; position: relative; border: 2px solid transparent; }
.color-option input { display: none; }
.color-option .swatch-color { position: absolute; inset: 3px; border-radius: 50%; border: 2px solid var(--ink); }
.color-option input:checked ~ .ring { position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ink); }

/* ---------- Signature pad ---------- */
.signature-pad-wrap { border: 2px dashed var(--ink); border-radius: var(--radius-md); background: var(--bg); position: relative; }
.signature-pad-wrap canvas { width: 100%; height: 220px; display: block; cursor: crosshair; touch-action: none; }
.signature-pad-actions { display: flex; gap: .5rem; margin-top: .75rem; }
.signature-preview { max-height: 70px; }

/* ---------- Auth / onboarding pages ---------- */
.auth-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--primary-soft), var(--bg) 60%); padding: 2rem 1rem; }
.auth-card { width: 100%; max-width: 440px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 2.25rem; }
.auth-brand { display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; }
.auth-brand img { height: 30px; }
.auth-card h2 { text-align: center; font-size: 1.4rem; margin-bottom: .3rem; }
.auth-card .sub { text-align: center; margin-bottom: 1.5rem; }
.auth-footer { text-align: center; margin-top: 1.25rem; font-size: .85rem; color: var(--muted); }

/* ---------- Step wizard (onboarding, invoice creation) ---------- */
.wizard-progress { display: flex; gap: .4rem; margin-bottom: 1.75rem; }
.wizard-progress span { flex: 1; height: 5px; border-radius: 3px; background: var(--border); transition: background .2s; }
.wizard-progress span.done { background: var(--primary); }
.wizard-step { display: none; }
.wizard-step.active { display: block; animation: wizard-fade .25s ease; }
@keyframes wizard-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.wizard-illustration { display: block; margin: 0 auto 1.25rem; max-width: 220px; width: 60%; }
.wizard-headline { text-align: center; font-size: 1.5rem; margin-bottom: 1.75rem; }
.wizard-big-input { text-align: center; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; border: none; border-bottom: 2px solid var(--border); border-radius: 0; padding: .5rem; }
.wizard-big-input:focus { border-color: var(--primary); box-shadow: none; }
.wizard-actions { display: flex; gap: .6rem; margin-top: 1.75rem; }
.wizard-actions .btn { flex: 1; }
.wizard-skip { text-align: center; margin-top: 1rem; }
.wizard-skip a, .wizard-skip button { color: var(--muted); font-size: .85rem; background: none; border: none; cursor: pointer; font-family: inherit; }
.wizard-tabs { display: inline-flex; background: #fff; border: var(--stroke); box-shadow: var(--shadow-hard-sm); border-radius: 999px; padding: 3px; margin-bottom: 1.5rem; }
.wizard-tabs button { border: none; background: none; padding: .5rem 1.2rem; border-radius: 999px; font-weight: 700; font-size: .85rem; color: var(--ink-soft); cursor: pointer; font-family: inherit; }
.wizard-tabs button.active { background: var(--primary); color: #fff; }
.wizard-shell { max-width: 480px; margin: 0 auto; }

/* ---------- Analytics bars ---------- */
.bar-chart { display: flex; align-items: flex-end; gap: .5rem; height: 130px; margin: 1rem 0 .5rem; }
.bar-chart .bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bar-chart .bar { width: 100%; max-width: 26px; border-radius: 6px 6px 3px 3px; background: var(--primary-soft); }
.bar-chart .bar.filled { background: var(--primary); }
.bar-chart .bar-label { font-size: .68rem; color: var(--muted); margin-top: .4rem; }

/* ---------- Invoice preview document ---------- */
.invoice-doc { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; }
.invoice-doc-header { padding: 2rem; color: #fff; }
.invoice-doc-body { padding: 2rem; }
.invoice-doc-title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.invoice-doc .doc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.invoice-doc .doc-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }

@media print {
    .sidebar, .mobile-header, .bottom-nav, .topbar-actions, .no-print { display: none !important; }
    .app-shell { display: block; }
    .main { padding: 0; }
    body { background: #fff; }
}

/* ---------- Utility ---------- */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 1.5rem; }
.text-right { text-align: right; }
.w-full { width: 100%; }

/* ---------- Alerts / flash ---------- */
.flash { padding: .8rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .88rem; font-weight: 600; }
.flash-success { background: var(--success-soft); color: var(--success); }
.flash-error { background: var(--coral-soft); color: var(--coral); }
.flash-info { background: var(--primary-soft); color: var(--primary-dark); }

/* ---------- Responsive shell: mobile bottom nav ---------- */
@media (max-width: 860px) {
    .app-shell { display: block; }
    .sidebar { display: none; }

    .mobile-header {
        display: flex; align-items: center; justify-content: space-between;
        padding: .9rem 1.1rem;
        background: var(--card);
        border-bottom: 1px solid var(--border);
        position: sticky; top: 0; z-index: 20;
    }
    .mobile-header img.brand-logo { height: 22px; }
    .mobile-header .mobile-header-actions { display: flex; gap: .5rem; }

    .main { padding: 1.25rem 1rem calc(var(--bottom-nav-h) + 3.5rem); }

    .bottom-nav {
        display: flex; align-items: center; justify-content: space-around;
        position: fixed; left: 14px; right: 14px; bottom: 14px; height: var(--bottom-nav-h);
        background: var(--card); border: var(--stroke); border-radius: 999px;
        z-index: 30; padding: 0 1rem;
        box-shadow: var(--shadow-hard);
    }
    .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: .2rem; color: var(--muted); font-size: .68rem; font-weight: 700;}
    .bottom-nav a.active { color: var(--primary); }
    .bottom-nav a .nav-icon svg { stroke: currentColor; }
    .bottom-nav a .nav-icon img { opacity: .55; }
    .bottom-nav a.active .nav-icon img { opacity: 1; }
    .bottom-nav .fab {
        width: 60px; height: 60px; border-radius: 50%;
        background: var(--primary); color: #fff;
        display: flex; align-items: center; justify-content: center;
        font-size: 1.6rem; margin-top: -20px;
        border: var(--stroke); box-shadow: var(--shadow-hard);
        transition: transform .08s ease, box-shadow .08s ease;
    }
    .bottom-nav .fab:active { transform: translate(2px, 2px); box-shadow: var(--shadow-hard-press); }

    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .row-item { flex-wrap: wrap; }
    .row-meta { gap: 1rem; }
    .topbar h1 { font-size: 1.4rem; }
}
