/* =========================================================
   AmiriLabs — site styles
   Palette: ivory / near-black, with Claude orange as the only accent.
   ========================================================= */

:root {
    --bg: #FAF9F5;
    --surface: #FFFFFF;
    --surface-2: #F0EEE6;
    --text: #141413;
    --muted: #6B6A64;
    --line: rgba(20, 20, 19, 0.09);
    --line-strong: rgba(20, 20, 19, 0.16);
    --accent: #D97757;
    --accent-text: #B85C3C;
    --accent-soft: rgba(217, 119, 87, 0.12);
    --nav-bg: rgba(250, 249, 245, 0.72);
    --shadow: 0 1px 2px rgba(20, 20, 19, 0.04), 0 8px 24px rgba(20, 20, 19, 0.06);
    --shadow-lg: 0 2px 6px rgba(20, 20, 19, 0.06), 0 24px 60px rgba(20, 20, 19, 0.12);

    --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

    --radius: 18px;
    --radius-sm: 12px;
    --wrap: 1120px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #1A1918;
        --surface: #242322;
        --surface-2: #2E2D2B;
        --text: #F4F3EE;
        --muted: #A19F97;
        --line: rgba(244, 243, 238, 0.08);
        --line-strong: rgba(244, 243, 238, 0.16);
        --accent: #D97757;
        --accent-text: #E6957A;
        --accent-soft: rgba(217, 119, 87, 0.16);
        --nav-bg: rgba(26, 25, 24, 0.72);
        --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
        --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.3), 0 24px 60px rgba(0, 0, 0, 0.5);
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --bg: #1A1918;
    --surface: #242322;
    --surface-2: #2E2D2B;
    --text: #F4F3EE;
    --muted: #A19F97;
    --line: rgba(244, 243, 238, 0.08);
    --line-strong: rgba(244, 243, 238, 0.16);
    --accent: #D97757;
    --accent-text: #E6957A;
    --accent-soft: rgba(217, 119, 87, 0.16);
    --nav-bg: rgba(26, 25, 24, 0.72);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.3), 0 24px 60px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
}

/* ---------- Base ---------- */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -0.015em;
    line-height: 1.1;
}

h2 { font-size: clamp(2rem, 4vw, 2.75rem); }

::selection { background: var(--accent-soft); }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}

svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Nav ---------- */

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.nav.scrolled { border-bottom-color: var(--line); }

.nav-inner {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    font-family: var(--serif);
    font-size: 1.3rem;
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
}

.nav-links {
    margin-left: auto;
    display: flex;
    gap: 4px;
}

.nav-links a {
    font-size: 0.875rem;
    color: var(--muted);
    padding: 6px 12px;
    border-radius: 999px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover { color: var(--text); background: var(--surface-2); }

.nav-actions { display: flex; gap: 4px; }

.icon-btn {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.icon-btn:hover { color: var(--text); background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; }

.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .i-sun { display: block; }
    :root:not([data-theme="light"]) .i-moon { display: none; }
}

.menu-btn { display: none; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 22px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s var(--ease), background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.btn svg { width: 16px; height: 16px; }
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { opacity: 0.86; }

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { opacity: 0.9; }

.btn-ghost { border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); }

/* ---------- Hero ---------- */

.hero { padding: clamp(80px, 14vw, 160px) 0 clamp(64px, 10vw, 120px); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 28px;
    font-size: 0.875rem;
    color: var(--muted);
}

.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.hero h1 {
    font-size: clamp(2.75rem, 7.5vw, 5.5rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    max-width: 14ch;
}

.lead {
    margin: 28px 0 0;
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
    line-height: 1.55;
    color: var(--muted);
    max-width: 38em;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
}

/* ---------- Sections ---------- */

.section {
    padding: clamp(72px, 10vw, 120px) 0;
    border-top: 1px solid var(--line);
}

.kicker {
    margin: 0 0 12px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-text);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.section-sub { margin: 12px 0 0; color: var(--muted); }

/* ---------- About ---------- */

.about {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: clamp(40px, 7vw, 96px);
    align-items: start;
}

.about-text p {
    margin: 0 0 1.1em;
    font-family: var(--serif);
    font-size: clamp(1.2rem, 1.8vw, 1.45rem);
    line-height: 1.5;
}

.about-text p:first-child { font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.4; }
.about-text p:not(:first-child) { color: var(--muted); }

.facts {
    margin: 0;
    padding: 8px 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.facts div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: 0.8rem; color: var(--muted); margin-bottom: 2px; }
.facts dd { margin: 0; font-weight: 500; }

/* ---------- Filter chips ---------- */

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    background: var(--surface-2);
    border-radius: 999px;
}

.chip {
    border: 0;
    background: transparent;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--muted);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.chip:hover { color: var(--text); }

.chip[aria-selected="true"] {
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ---------- Project cards ---------- */

.card {
    display: flex;
    flex-direction: column;
    text-align: left;
    width: 100%;
    padding: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.card-media {
    aspect-ratio: 4 / 3;
    background: var(--surface-2);
    overflow: hidden;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.card:hover .card-media img { transform: scale(1.04); }

.card-body {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.card-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.8rem;
    color: var(--muted);
}

.card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.6; }

.card h3 { font-size: 1.5rem; line-height: 1.2; }

.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.card-more {
    margin-top: auto;
    padding-top: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent-text);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.card-more svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.card:hover .card-more svg { transform: translateX(3px); }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* Featured card */

.card.featured {
    flex-direction: row;
    margin-bottom: 24px;
}

.card.featured .card-media {
    flex: 1.3;
    aspect-ratio: auto;
    min-height: 380px;
}

.card.featured .card-body {
    flex: 1;
    padding: clamp(28px, 4vw, 48px);
    justify-content: center;
    gap: 14px;
}

.card.featured h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.card.featured p { font-size: 1.05rem; }

.badge {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-text);
}

.tags { display: flex; flex-wrap: wrap; gap: 6px; }

.tag {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    color: var(--muted);
}

.empty { color: var(--muted); padding: 40px 0; }

/* ---------- Side projects ---------- */

.side-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.side-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.side-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.side-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--muted);
}

.status { display: inline-flex; align-items: center; gap: 6px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.status.live::before { background: #3FA56B; }
.status.in-progress::before { background: var(--accent); }

.side-item h3 { font-size: 1.35rem; }
.side-item p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.side-item .card-more { margin-top: 6px; }

/* ---------- Timeline ---------- */

.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
}

.timeline li {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}

.timeline li:first-child { padding-top: 0; }

.t-period { font-size: 0.875rem; color: var(--muted); padding-top: 4px; }
.t-role { font-family: var(--serif); font-size: 1.4rem; line-height: 1.25; }
.t-org { color: var(--muted); font-size: 0.95rem; margin-top: 2px; }

.timeline ul {
    margin: 12px 0 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 0.95rem;
}

.timeline ul li {
    display: list-item;
    padding: 2px 0;
    border: 0;
}

.timeline ul li::marker { color: var(--accent); }

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 6vw, 80px);
    margin-top: 72px;
}

.sub-title {
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.plain-list { list-style: none; margin: 0; padding: 0; }

.plain-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.plain-list strong { display: block; font-weight: 500; }
.plain-list span { color: var(--muted); font-size: 0.9rem; }
.plain-list .year { white-space: nowrap; }

/* ---------- Skills ---------- */

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.skills > * { flex: 1 1 190px; }

.skill-group {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.skill-group h3 {
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
}

.skill-group ul { list-style: none; margin: 0; padding: 0; }
.skill-group li { padding: 4px 0; }

/* ---------- Contact ---------- */

.contact { text-align: center; }
.contact .lead { margin-left: auto; margin-right: auto; }
.contact .hero-actions { justify-content: center; }
.contact-title { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -0.03em; }

/* ---------- Footer ---------- */

.footer {
    border-top: 1px solid var(--line);
    padding: 28px 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Project sheet (modal) ---------- */

.sheet {
    width: min(1000px, calc(100% - 32px));
    max-height: calc(100dvh - 48px);
    padding: 0;
    border: 0;
    border-radius: 24px;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.sheet[open] { animation: sheet-in 0.45s var(--ease); }
.sheet::backdrop { background: rgba(10, 10, 10, 0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

@keyframes sheet-in {
    from { opacity: 0; transform: translateY(24px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}

.sheet-inner { max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; }

.sheet-bar {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    gap: 4px;
    padding: 12px;
    justify-content: flex-end;
    pointer-events: none;
}

.sheet-bar .icon-btn {
    pointer-events: auto;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--text);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.sheet article { margin-top: -60px; }

.gallery-main {
    aspect-ratio: 16 / 10;
    background: var(--surface-2);
}

.gallery-main img { width: 100%; height: 100%; object-fit: contain; }

@media (min-width: 721px) { .gallery-main { max-height: 60vh; width: 100%; } }

.thumbs {
    display: flex;
    gap: 8px;
    padding: 12px clamp(20px, 4vw, 40px) 0;
    overflow-x: auto;
}

.thumbs button {
    flex: 0 0 72px;
    height: 54px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: var(--surface-2);
    opacity: 0.6;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.thumbs button:hover { opacity: 1; }
.thumbs button[aria-current="true"] { opacity: 1; border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.sheet-content { padding: clamp(24px, 4vw, 40px); }
.sheet-content.no-media { padding-top: 72px; }

.sheet-content h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 8px 0 20px; }

.sheet-content p { margin: 0 0 1em; color: var(--muted); }
.sheet-content .cs > p { color: var(--text); }

.outcome {
    font-family: var(--serif);
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    line-height: 1.45;
    color: var(--text) !important;
    margin-bottom: 28px !important;
}

/* Quick-scan spec strip */
.spec-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1px;
    margin: 0 0 24px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.spec-strip div { background: var(--surface); padding: 14px 16px; }
.spec-strip dt, .spec-list dt { font-size: 0.75rem; color: var(--muted); margin-bottom: 2px; }
.spec-strip dd, .spec-list dd { margin: 0; font-size: 0.92rem; font-weight: 500; line-height: 1.45; }

/* Metrics */
.metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 8px;
}
.metric { padding: 18px; background: var(--surface-2); border-radius: var(--radius-sm); }
.metric strong {
    display: block;
    font-family: var(--serif);
    font-weight: 400;
    font-size: 2rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--accent-text);
}
.metric span { display: block; margin-top: 4px; font-size: 0.8rem; color: var(--muted); line-height: 1.35; }

/* Case-study sections */
.cs { padding-top: 32px; margin-top: 32px; border-top: 1px solid var(--line); }
.cs h3 { font-size: 1.6rem; margin-bottom: 16px; }
.cs h5 { margin: 0 0 8px; font-size: 1rem; font-weight: 600; }

.spec-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.spec-list div { padding: 12px 0; border-bottom: 1px solid var(--line); }

.decisions { display: grid; gap: 16px; }
.decision { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.decision p { margin: 12px 0 0; font-size: 0.95rem; }
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 0.92rem; }
.versus > div { padding: 12px 14px; background: var(--surface-2); border-radius: 10px; }
.label { display: block; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.label.chosen { color: var(--accent-text); }

.val + .val { margin-top: 28px; }
.val p { font-size: 0.95rem; }
.val .highlights { font-size: 0.95rem; color: var(--muted); }

.table-wrap { overflow-x: auto; margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.table-wrap th { text-align: left; font-weight: 500; font-size: 0.75rem; color: var(--muted); background: var(--surface-2); padding: 10px 14px; white-space: nowrap; }
.table-wrap td { padding: 10px 14px; border-top: 1px solid var(--line); }
.table-wrap td:first-child { font-weight: 500; }
.table-wrap td:last-child { color: var(--accent-text); font-weight: 500; }
.table-wrap table.last-strong td:last-child { color: var(--text); }

.card-tools { font-size: 0.8rem; color: var(--muted); }

.sheet-content h4 {
    margin: 28px 0 12px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.highlights { margin: 0; padding-left: 18px; }
.highlights li { padding: 4px 0; }
.highlights li::marker { color: var(--accent); }

.sheet-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
    .about, .two-col { grid-template-columns: 1fr; }
    .card.featured { flex-direction: column; }
    .card.featured .card-media { min-height: 0; aspect-ratio: 4 / 3; }
    .timeline li { grid-template-columns: 1fr; gap: 6px; }
    .spec-list, .versus { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .wrap, .nav-inner { padding: 0 16px; }
    .menu-btn { display: grid; }
    .nav-links {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 8px 16px 16px;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        display: none;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px; font-size: 1rem; border-radius: 10px; }
    .nav-actions { margin-left: auto; }
    .grid, .side-list { grid-template-columns: 1fr; }
    .chips { border-radius: 16px; }
    .sheet { width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
    .sheet-inner { max-height: 92dvh; }
}
