/* =============================================================================
   shell.css: the 2026-11 redesign foundation. Loaded after style.css and before
   css/pages/*.css. Rules from the trevul-ui-design skill:
   - tokens only (no raw hex below the token blocks), text 4.5:1, borders 3:1
   - targets: 24px floor, 44px on coarse pointers, 48px for primary actions
   - breakpoints 600 / 840 / 1200; compact chrome = html.compact-chrome
   - sentence case, no uppercase micro-labels, no glow, no card shadows
   ============================================================================= */

:root {
    /* Text/fill pairs for accents. Raw brand amber is a fill only. */
    --on-accent:     #ffffff;
    --amber-text:    #87520f;
    --amber-fill:    #E8A45C;
    --on-amber:      #1f2421;
    --fig:           #B23A57;
    --fig-text:      #9c2f4a;
    --on-fig:        #ffffff;
    --fig-soft:      rgba(178, 58, 87, 0.10);
    --danger:        #b91c1c;
    --on-danger:     #ffffff;
    --field-border:  #8a918b;   /* 3:1 against surface and bg */
    --focus:         #1b5e20;
    --photo-dim:     1;
    --scrim:         rgba(15, 20, 17, 0.45);

    /* Type scale (rem so user text scaling works). */
    --fs-caption: 0.75rem;   /* 12 */
    --fs-small:   0.875rem;  /* 14 */
    --fs-body:    1rem;      /* 16 */
    --fs-large:   1.25rem;   /* 20 */
    --fs-h3:      1.5rem;    /* 24 */
    --fs-h2:      1.875rem;  /* 30 */
    --fs-h1:      2.375rem;  /* 38 */
    --fs-display: 3rem;      /* 48 */

    --tap: 44px;
    --tap-primary: 48px;
    --measure: 68ch;
    --header-h: 72px;
    --bottom-nav-h: 64px;
}
[data-theme="dark"] {
    --on-accent:     #0e1411;
    --amber-text:    #ffb86e;
    --on-amber:      #1f2421;
    --fig:           #E0708A;
    --fig-text:      #f095aa;
    --on-fig:        #1f1014;
    --fig-soft:      rgba(224, 112, 138, 0.14);
    --danger:        #f08080;
    --on-danger:     #1f1014;
    --field-border:  #6b766f;
    --focus:         #7cc485;
    --photo-dim:     0.92;
    --scrim:         rgba(0, 0, 0, 0.6);
}
/* Frost blue for FigSwap dormant holds ("waiting for winter", not a problem). */
:root {
    --hold-text:   #1d3b5e;
    --hold-soft:   #eaf2fb;
    --hold-border: #9fb9da;
    --hold-fill:   #1d3b5e;
    --on-hold:     #ffffff;
    --lightbox-bg: #111412;
}
[data-theme="dark"] {
    --hold-text:   #cfe0f5;
    --hold-soft:   rgba(120, 160, 210, 0.14);
    --hold-border: #4f6f96;
    --hold-fill:   #cfe0f5;
    --on-hold:     #0e1411;
}
[data-brand="rumblebid"] {
    --font-display: var(--font-sans);
    --on-accent:    #140b02;
    --focus:        #FF8C2E;
}

/* ---------- Base type ---------- */
body { font-size: var(--fs-body); }
@media (pointer: coarse) { body { font-size: 1.0625rem; } }
html { scroll-padding-top: calc(var(--header-h) + 16px); scroll-padding-bottom: 16px; }
html.compact-chrome { scroll-padding-bottom: calc(var(--bottom-nav-h) + 16px); }

h1 {
    font-family: var(--font-display);
    font-size: var(--fs-h1);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    font-variation-settings: "opsz" 72;
}
h2, h3, h4 { font-family: var(--font-sans); letter-spacing: -0.01em; line-height: 1.25; }
h2 { font-size: var(--fs-large); font-weight: 600; }
h3 { font-size: var(--fs-body); font-weight: 600; }
@media (max-width: 599.98px) { h1 { font-size: 1.875rem; } }
p, li { max-width: var(--measure); }
.prose p, .prose li { line-height: 1.6; }
small, .text-small { font-size: var(--fs-small); }
.mono { letter-spacing: normal; }
::selection { background: var(--accent); color: var(--on-accent); }

.display { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; font-variation-settings: "opsz" 48; }
.page-head { margin: 0 0 1.75rem; }
.page-head h1 { margin: 0; }
.page-lede { margin: 0.375rem 0 0; color: var(--text-2); font-size: var(--fs-body); }
.section-title { font-size: var(--fs-large); font-weight: 600; margin: 0 0 0.75rem; }
.empty-state { color: var(--text-2); padding: 1.5rem 0; }
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 16px; top: -100px; z-index: 100;
    background: var(--surface); color: var(--text); padding: 0.75rem 1rem;
    border: 2px solid var(--focus); border-radius: var(--radius-md);
}
.skip-link:focus { top: 12px; }
main:focus { outline: none; }

/* Focus: one visible ring everywhere, including inputs. */
:where(a, button, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])):focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}
a:hover { color: var(--accent-deep); }
[data-theme="dark"] a:hover { color: var(--accent-2); }

/* Kill decorative motion inherited from style.css. */
.listings .card { opacity: 1; transform: none; animation: none; }
.card, .listing-card { box-shadow: none; }

/* ---------- Buttons ---------- */
.btn {
    min-height: var(--tap);
    padding: 0 1.125rem;
    justify-content: center;
    font-size: var(--fs-body);
    font-weight: 600;
    line-height: 1.2;
    color: var(--on-accent);
    border-radius: var(--radius-md);
    box-shadow: none;
    text-align: center;
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--on-accent); box-shadow: none; }
[data-theme="dark"] .btn:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn:active { transform: none; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn-lg, .btn-primary-action { min-height: var(--tap-primary); padding: 0 1.5rem; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn-ghost, .btn-secondary {
    background: var(--surface); color: var(--text); border: 1px solid var(--field-border);
}
.btn-ghost:hover, .btn-secondary:hover { background: var(--surface-hi); color: var(--text); border-color: var(--text-3); }
.btn-cyan { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-cyan:hover { background: var(--accent-deep); border-color: var(--accent-deep); box-shadow: none; }
.btn-danger { background: var(--surface); color: var(--danger); border: 1px solid var(--danger); }
.btn-danger:hover { background: var(--red-soft); color: var(--danger); border-color: var(--danger); }
.btn-fig { background: var(--fig); border-color: var(--fig); color: var(--on-fig); }
.btn-fig:hover { background: var(--fig-text); border-color: var(--fig-text); color: var(--on-fig); }
.btn-link { min-height: 24px; color: var(--accent-deep); font-weight: 600; }
[data-theme="dark"] .btn-link { color: var(--accent); }
.btn-link:hover { color: var(--accent-deep); }
.btn .spinner, .btn[data-busy="true"]::before {
    width: 1em; height: 1em; border-radius: 50%;
    border: 2px solid currentColor; border-right-color: transparent;
    animation: spin 0.8s linear infinite;
}
.btn[data-busy="true"]::before { content: ""; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (pointer: coarse) {
    .btn-link, .hdr-link, .footer-links a { min-height: var(--tap); display: inline-flex; align-items: center; }
}

/* ---------- Status tags (always text + colour) and filter chips ---------- */
.tag, .tag-reserve-met, .badge-reserve-met, .tag-reserve-unmet, .badge-reserve-unmet {
    display: inline-flex; align-items: center; gap: 0.3em;
    padding: 0.125rem 0.5rem;
    font-family: var(--font-sans);
    font-size: var(--fs-caption);
    font-weight: 600;
    line-height: 1.5;
    text-transform: none;
    letter-spacing: normal;
    border-radius: 999px;
    border: 1px solid transparent;
    background: var(--accent-soft);
    color: var(--accent-deep);
}
[data-theme="dark"] .tag { color: var(--accent-2); }
.tag-muted, .tag-gtc { background: var(--surface-hi); color: var(--text-2); font-style: normal; }
.tag-error, .tag-rose { background: var(--red-soft); color: var(--danger); }
.tag-amber, .tag-ochre, .tag-reserve-unmet, .badge-reserve-unmet,
.tag-live-hot { background: var(--amber-soft); color: var(--amber-text); }
.tag-reserve-met, .badge-reserve-met { background: var(--accent-soft); color: var(--accent-deep); }
[data-theme="dark"] .tag-reserve-met, [data-theme="dark"] .badge-reserve-met { color: var(--accent-2); }
.tag-cyan, .tag-clay, .tag-live, .tag-plum { background: var(--surface-hi); color: var(--text); }
.tag-free-ship { background: var(--accent-soft); color: var(--accent-deep); }
[data-theme="dark"] .tag-free-ship { color: var(--accent-2); }
.tag-sold { background: var(--text); color: var(--bg); }
.tag-fig { background: var(--fig-soft); color: var(--fig-text); }

.chip {
    display: inline-flex; align-items: center; gap: 0.375rem;
    min-height: 36px; padding: 0 0.875rem;
    border: 1px solid var(--field-border); border-radius: 18px;
    background: var(--surface); color: var(--text);
    font: inherit; font-size: var(--fs-small); font-weight: 500;
    text-decoration: none; cursor: pointer;
}
.chip:hover { background: var(--surface-hi); color: var(--text); text-decoration: none; }
.chip[aria-pressed="true"], .chip[aria-current="page"], .chip.is-active {
    background: var(--text); color: var(--bg); border-color: var(--text);
}
.chip-remove { padding-right: 0.25rem; }
.chip-remove button, .chip-x {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border: 0; border-radius: 14px;
    background: transparent; color: inherit; cursor: pointer;
}
@media (pointer: coarse) { .chip { min-height: var(--tap); border-radius: 22px; } }

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], input[type="password"], input[type="search"],
input[type="number"], input[type="tel"], input[type="url"], input[type="date"],
input[type="datetime-local"], select, textarea, .search-input {
    font: inherit;
    font-size: max(16px, 1rem);
    color: var(--text);
    background-color: var(--surface);
    border: 1px solid var(--field-border);
    border-radius: var(--radius-md);
    min-height: var(--tap);
}
textarea { min-height: 7rem; }
input::placeholder, textarea::placeholder { color: var(--text-3); opacity: 1; }
.search-input::placeholder { font-size: inherit; }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; accent-color: var(--accent); }
label { color: var(--text); }
.field-hint, .helptext { display: block; color: var(--text-2); font-size: var(--fs-small); margin-top: 0.25rem; }
.field-error, .errorlist { color: var(--danger); font-size: var(--fs-small); }
.errorlist { list-style: none; padding: 0; margin: 0.25rem 0 0; }
.error-summary {
    border: 2px solid var(--danger); border-radius: var(--radius-md);
    padding: 1rem 1.25rem; margin: 0 0 1.5rem; background: var(--surface);
}
.error-summary h2 { margin: 0 0 0.5rem; font-size: var(--fs-large); }
.error-summary a { color: var(--danger); font-weight: 600; }

/* ---------- Messages (Django) ---------- */
.messages { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.5rem; }
.messages li {
    max-width: none; padding: 0.75rem 1rem; border-radius: var(--radius-md);
    background: var(--accent-soft); color: var(--text); border: 1px solid var(--border);
}
.messages .message-error { background: var(--red-soft); }
.messages .message-warning { background: var(--amber-soft); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 30;
    background: var(--header-bg);
    backdrop-filter: none; -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--border);
}
.hdr { display: flex; align-items: center; gap: 1.25rem; min-height: var(--header-h); }
.hdr .brand { flex: 0 0 auto; }
.hdr .brand-logo { height: 52px; width: auto; display: block; color: var(--text); }
[data-brand="rumblebid"] .hdr .brand-logo { height: 64px; }
.hdr-search {
    flex: 1 1 320px; min-width: 0; max-width: 560px; margin: 0;
    display: flex; align-items: center; gap: 0.5rem;
    min-height: var(--tap); padding: 0 0.875rem;
    border: 1px solid var(--field-border); border-radius: var(--radius-md);
    background: var(--surface); color: var(--text-3);
}
.hdr-search:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.hdr-search .search-input {
    flex: 1; min-width: 0; min-height: 40px; border: 0; padding: 0;
    background: transparent; background-image: none; outline: none; box-shadow: none;
}
.hdr-search .search-input:focus { box-shadow: none; border: 0; }
.hdr-nav { display: flex; align-items: center; gap: 0.25rem; }
.hdr-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    min-height: 40px; padding: 0 0.75rem; border-radius: var(--radius-md);
    color: var(--text-2); font-weight: 500; text-decoration: none; white-space: nowrap;
}
.hdr-link:hover { background: var(--surface-hi); color: var(--text); text-decoration: none; }
.hdr-link[aria-current="page"] { color: var(--text); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav-fig::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: var(--fig); }
.nav-fig[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--fig); }
.hdr-actions { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; flex: 0 0 auto; }
.hdr-icon, .site-header .notif-bell-button {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    width: var(--tap); height: var(--tap); padding: 0;
    border: 0; border-radius: var(--radius-md);
    background: transparent; color: var(--text-2); cursor: pointer;
}
.hdr-icon:hover, .site-header .notif-bell-button:hover { background: var(--surface-hi); color: var(--text); text-decoration: none; }
.site-header .notif-bell-count, .bottom-nav-badge {
    position: absolute; top: 4px; right: 2px;
    min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 9px; background: var(--danger); color: var(--on-danger);
    font-size: var(--fs-caption); font-weight: 700; line-height: 18px; text-align: center;
    animation: none; box-shadow: none;
}
.hdr-search-toggle { display: none; }
.hdr-signup { margin-left: 0.25rem; }

/* Account menu */
.acct-menu { position: relative; }
.acct-trigger {
    display: inline-flex; align-items: center; gap: 0.5rem;
    min-height: var(--tap); padding: 0 0.5rem 0 0.25rem;
    border: 0; border-radius: 22px; background: transparent; color: var(--text);
    font: inherit; font-weight: 500; cursor: pointer;
}
.acct-trigger:hover, .acct-trigger[aria-expanded="true"] { background: var(--surface-hi); }
.acct-avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 18px;
    background: var(--accent-soft); color: var(--accent-deep); font-weight: 700;
}
[data-theme="dark"] .acct-avatar { color: var(--accent-2); }
.acct-avatar--lg { width: 64px; height: 64px; border-radius: 32px; font-size: 1.5rem; }
.acct-name { max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-dropdown {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 50;
    width: min(360px, calc(100vw - 32px)); max-height: calc(100vh - var(--header-h) - 24px); overflow-y: auto;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
    padding: 0.5rem 0;
}
.acct-head { padding: 0.75rem 1rem 0.75rem; border-bottom: 1px solid var(--border); }
.acct-head-name { margin: 0; font-weight: 600; }
.acct-head-meta { margin: 0.125rem 0 0; color: var(--text-2); font-size: var(--fs-small); }

/* Grouped account nav (menu, page, sidebar) */
.acct-nav { display: grid; gap: 0.25rem; }
.acct-group { padding: 0.5rem 0; }
.acct-group + .acct-group { border-top: 1px solid var(--border); }
.acct-group-title {
    margin: 0 0 0.25rem; padding: 0 1rem;
    font-family: var(--font-sans); font-size: var(--fs-small); font-weight: 600; color: var(--text-2);
    letter-spacing: normal; text-transform: none;
}
.acct-group ul, .acct-nav-list { list-style: none; margin: 0; padding: 0; }
.acct-group li, .acct-nav-list li { max-width: none; }
.acct-group a, .acct-group .user-menu-signout, .acct-nav-list a, .me-row-button {
    display: flex; align-items: center; width: 100%;
    min-height: 40px; padding: 0 1rem;
    color: var(--text); text-decoration: none; font: inherit;
    background: none; border: 0; text-align: left; cursor: pointer;
}
.acct-group a:hover, .acct-group .user-menu-signout:hover, .acct-nav-list a:hover, .me-row-button:hover {
    background: var(--surface-hi); text-decoration: none; color: var(--text);
}
.acct-group a[aria-current="page"] { font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.acct-signout { margin: 0; }
.acct-group .user-menu-signout { color: var(--text-2); }
@media (pointer: coarse) {
    .acct-group a, .acct-group .user-menu-signout, .acct-nav-list a, .me-row-button { min-height: var(--tap); }
}

/* Page variant (Me) and sidebar variant (dashboard) */
.acct-nav--page, .me-more {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 0.25rem 0; margin-bottom: 1.25rem;
}
.acct-nav--page .acct-group-title, .me-more .acct-group-title { padding-top: 0.5rem; }
.acct-nav--page a, .acct-nav--page .user-menu-signout, .me-more a, .me-more .me-row-button { min-height: var(--tap-primary); font-size: var(--fs-body); }
.acct-nav--sidebar .acct-group-title { padding: 0 0.75rem; }
.acct-nav--sidebar .acct-group a, .acct-nav--sidebar .user-menu-signout { padding: 0 0.75rem; border-radius: var(--radius-md); }
.acct-nav--sidebar .acct-group + .acct-group { border-top: 0; }
.me-head { display: flex; align-items: center; gap: 1rem; }
.me-theme { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.5rem 1rem 0.75rem; border-top: 1px solid var(--border); }

/* ---------- Banner slot ---------- */
.site-banner { background: var(--accent-soft); border-bottom: 1px solid var(--border); color: var(--text); }
.site-banner[hidden] { display: none; }
.site-banner-inner { display: flex; align-items: center; gap: 0.75rem; min-height: 48px; padding-top: 0.375rem; padding-bottom: 0.375rem; }
.site-banner-inner p { margin: 0; flex: 1; max-width: none; font-size: var(--fs-small); }
.site-banner-inner > svg { flex: 0 0 auto; }
.site-banner a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.site-banner--warn { background: var(--amber-soft); }
.site-banner--warn > .container > svg { color: var(--amber-text); }
.site-banner--alert { background: var(--danger); color: var(--on-danger); border-color: transparent; }
.site-banner-close { color: inherit; flex: 0 0 auto; }
/* Neutralise legacy .motd-banner styling from style.css. */
.motd-banner { padding: 0; font-family: var(--font-sans); text-transform: none; letter-spacing: normal; text-align: left; }

/* ---------- Main + footer ---------- */
main { padding: 2rem 0 4rem; }
.container { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
@media (min-width: 840px) { .container { padding-left: 32px; padding-right: 32px; } }
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 1.75rem 0 2.25rem; font-size: var(--fs-small); color: var(--text-2); text-align: left; }
.site-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.footer-links a { color: var(--text-2); min-height: 32px; display: inline-flex; align-items: center; }
.footer-links a:hover { color: var(--text); }
.footer-theme, .me-theme { display: flex; align-items: center; gap: 0.625rem; }
.theme-select { min-height: 40px; padding: 0 2rem 0 0.75rem; font-size: var(--fs-small); }
.footer-legal { flex-basis: 100%; margin: 0; color: var(--text-3); font-size: var(--fs-caption); max-width: none; }
html.capshell .footer-theme, html.capshell .me-theme { display: none; }

/* ---------- Bottom bar (compact chrome) ---------- */
.bottom-nav {
    display: none;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--surface);
    border-top: 1px solid var(--border);
    backdrop-filter: none; -webkit-backdrop-filter: none;
    padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a {
    position: relative;
    flex: 1 1 0; min-width: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-height: var(--bottom-nav-h); padding: 6px 2px;
    color: var(--text-2); text-decoration: none;
    font-size: var(--fs-caption); font-weight: 500; line-height: 1.2;
}
.bottom-nav a svg { width: 24px; height: 24px; }
.bottom-nav a[aria-current="page"] { color: var(--accent-deep); font-weight: 700; }
[data-theme="dark"] .bottom-nav a[aria-current="page"] { color: var(--accent); }
.bottom-nav a.bottom-nav-fig[aria-current="page"] { color: var(--fig-text); }
.bottom-nav a[aria-current="page"]::before {
    content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 3px; border-radius: 0 0 3px 3px; background: currentColor;
}
.bottom-nav-badge { top: 4px; right: calc(50% - 22px); }

/* ---------- Compact chrome: phones (<840px) and the app shells ---------- */
html.compact-chrome .hdr { gap: 0.5rem; min-height: 60px; flex-wrap: wrap; }
html.compact-chrome .hdr .brand-logo { height: 40px; }
html.compact-chrome [data-brand="rumblebid"] .hdr .brand-logo,
html.compact-chrome[data-brand="rumblebid"] .hdr .brand-logo { height: 44px; }
html.compact-chrome .hdr-nav,
html.compact-chrome .acct-menu,
html.compact-chrome .hdr-login,
html.compact-chrome .staff-menu { display: none; }
html.compact-chrome .hdr-search { display: none; order: 9; flex: 0 0 100%; max-width: none; margin-bottom: 0.5rem; }
html.compact-chrome .site-header.search-open .hdr-search { display: flex; }
html.compact-chrome .hdr-search-toggle { display: inline-flex; }
html.compact-chrome .site-header.search-open .hdr-search-toggle { color: var(--accent); }
html.compact-chrome .bottom-nav { display: flex; }
html.compact-chrome body { padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); }
html.compact-chrome main { padding-top: 1.25rem; }
html.compact-chrome .hdr-signup { min-height: 40px; padding: 0 0.875rem; font-size: var(--fs-small); }
/* Legacy header pieces no longer rendered; keep old rules inert. */
.header-hamburger, .header-search-toggle, .mobile-menu-dialog, .fig-trading-strip { display: none !important; }

/* ---------- Activity ---------- */
.activity-section { margin-bottom: 2rem; }
.activity-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.activity-list li { max-width: none; border-bottom: 1px solid var(--border); }
.activity-row {
    display: flex; align-items: center; gap: 0.875rem;
    min-height: 64px; padding: 0.75rem 0.25rem;
    color: var(--text); text-decoration: none;
}
.activity-row:hover { background: var(--surface-hi); text-decoration: none; color: var(--text); }
.activity-icon {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 20px; background: var(--surface-hi); color: var(--text-2);
}
.activity-row--urgent .activity-icon { background: var(--accent-soft); color: var(--accent-deep); }
[data-theme="dark"] .activity-row--urgent .activity-icon { color: var(--accent-2); }
.activity-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.activity-title { font-weight: 600; }
.activity-detail { color: var(--text-2); font-size: var(--fs-small); }
.activity-when { flex: 0 0 auto; color: var(--text-2); font-size: var(--fs-small); }
.activity-more { color: var(--text-2); font-size: var(--fs-small); }

/* ---------- Shared listing tile (photo with text beneath, no card) ---------- */
.tile-grid, .listings {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(165px, 100%), 1fr));
    gap: 1.75rem 1.25rem;
}
@media (max-width: 599.98px) {
    .tile-grid, .listings { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 0.75rem; }
}

/* ---------- Generic surfaces ---------- */
.panel {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 1.25rem;
}
.panel + .panel { margin-top: 1rem; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.muted { color: var(--text-2); }
.price, .tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
table { font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}
@media (prefers-contrast: more) {
    :root { --border: var(--field-border); }
}

/* ---------- Notifications dropdown ---------- */
.notif-bell { position: relative; }
.notif-dropdown {
    width: min(380px, calc(100vw - 32px)); border-radius: var(--radius-lg);
    border: 1px solid var(--border); background: var(--surface);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}
.notif-dropdown-header {
    display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
    padding: 0.25rem 0.25rem 0.25rem 1rem; border-bottom: 1px solid var(--border);
    font-weight: 600; text-transform: none; letter-spacing: normal; font-family: var(--font-sans);
}
.notif-dropdown-actions { display: flex; align-items: center; gap: 0.25rem; }
.notif-inline-form { margin: 0; }
.notif-clear { font-size: var(--fs-small); color: var(--text-2); }
.notif-item { display: flex; align-items: flex-start; gap: 0.25rem; max-width: none; border-bottom: 1px solid var(--border); }
.notif-link { flex: 1; display: flex; gap: 0.625rem; padding: 0.75rem 0 0.75rem 1rem; color: var(--text); text-decoration: none; }
.notif-link:hover { text-decoration: none; color: var(--text); background: var(--surface-hi); }
.notif-dot { flex: 0 0 8px; width: 8px; height: 8px; margin-top: 0.45rem; border-radius: 4px; background: transparent; }
.notif-item-unread .notif-dot { background: var(--accent); }
.notif-item-unread .notif-title { font-weight: 700; }
.notif-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.notif-title { font-size: var(--fs-small); font-weight: 500; }
.notif-detail { font-size: var(--fs-small); color: var(--text-2); }
.notif-time { font-size: var(--fs-caption); color: var(--text-3); }
.notif-delete { width: 36px; height: 36px; margin: 0.5rem 0.25rem 0 0; color: var(--text-3); }
.notif-all { margin: 0; padding: 0.75rem 1rem; text-align: center; font-size: var(--fs-small); max-width: none; }
.notif-empty { padding: 1rem; color: var(--text-2); font-size: var(--fs-small); }
.notif-kind { display: none; }

/* ---------- Dialogs (zone picker and similar) ---------- */
dialog.zone-modal {
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    background: var(--surface); color: var(--text);
    width: min(440px, calc(100vw - 32px)); padding: 1.5rem;
}
dialog::backdrop { background: var(--scrim); }
.dialog-title { margin: 0 0 0.5rem; font-size: var(--fs-large); }
.dialog-lede { color: var(--text-2); font-size: var(--fs-small); }
.dialog-label { display: block; margin-top: 1rem; font-weight: 600; font-size: var(--fs-small); }
.dialog-select { width: 100%; margin-top: 0.375rem; padding: 0 0.75rem; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-end; margin-top: 1.5rem; }
