/* =========================================================
   MakatSearch — clinical, high-contrast, touch-first.
   Brand crimson #8B0000 on warm paper; deep warm charcoal in dark mode.
   ========================================================= */

:root {
    --brand: #8B0000;
    --brand-strong: #6a0000;
    --brand-deep: #4d0000;
    --brand-soft: rgba(139, 0, 0, 0.08);
    --brand-line: rgba(139, 0, 0, 0.22);
    --on-brand: #fff;

    --bg: #f7f5f2;
    --surface: #ffffff;
    --surface-2: #f1eee9;
    --ink: #18120e;
    --ink-2: #4a4038;
    --ink-3: #6f645a;
    --line: #e4ddd4;
    --line-strong: #cfc6bb;
    --mark: #fde68a;
    --warn-bg: #fff7e6;
    --warn-ink: #7a4b00;
    --err-ink: #a61b1b;
    --ok: #166534;

    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 1px 2px rgba(24, 18, 14, .06), 0 4px 14px rgba(24, 18, 14, .06);
    --shadow-lg: 0 18px 50px rgba(24, 18, 14, .22);
    --topbar-h: 60px;
    --tap: 48px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --brand: #ff6b6b;
        --brand-strong: #ff8787;
        --brand-deep: #2a0c0c;
        --brand-soft: rgba(255, 107, 107, 0.12);
        --brand-line: rgba(255, 107, 107, 0.32);
        --on-brand: #1a0505;
        --bg: #12100e;
        --surface: #1c1916;
        --surface-2: #26221e;
        --ink: #f5efe8;
        --ink-2: #d4cbc1;
        --ink-3: #a59a8f;
        --line: #332e29;
        --line-strong: #463f38;
        --mark: rgba(250, 204, 21, .32);
        --warn-bg: #2d2210;
        --warn-ink: #fcd34d;
        --err-ink: #ff8a8a;
        --ok: #4ade80;
        --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 18px rgba(0, 0, 0, .25);
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --brand: #ff6b6b;
    --brand-strong: #ff8787;
    --brand-deep: #2a0c0c;
    --brand-soft: rgba(255, 107, 107, 0.12);
    --brand-line: rgba(255, 107, 107, 0.32);
    --on-brand: #1a0505;
    --bg: #12100e;
    --surface: #1c1916;
    --surface-2: #26221e;
    --ink: #f5efe8;
    --ink-2: #d4cbc1;
    --ink-3: #a59a8f;
    --line: #332e29;
    --line-strong: #463f38;
    --mark: rgba(250, 204, 21, .32);
    --warn-bg: #2d2210;
    --warn-ink: #fcd34d;
    --err-ink: #ff8a8a;
    --ok: #4ade80;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 18px rgba(0, 0, 0, .25);
    color-scheme: dark;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: 'Heebo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    min-height: 100dvh;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brand); }
svg { width: 22px; height: 22px; flex: none; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

.skip-link {
    position: absolute; inset-inline-start: 12px; top: -60px; z-index: 2000;
    background: var(--brand); color: var(--on-brand); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 10px; }

/* ── Top bar ── */
.topbar {
    position: sticky; top: 0; z-index: 900;
    height: calc(var(--topbar-h) + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 12px 0;
    display: flex; align-items: center; gap: 8px;
    background: linear-gradient(120deg, #4d0000 0%, #8B0000 60%, #a31515 100%);
    color: #fff;
    box-shadow: 0 2px 14px rgba(77, 0, 0, .3);
}
:root[data-theme="dark"] .topbar { background: linear-gradient(120deg, #1c0707, #3a0d0d); }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .topbar { background: linear-gradient(120deg, #1c0707, #3a0d0d); }
}
.brand { flex: 1; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.brand-title { font-weight: 800; font-size: 1.15rem; letter-spacing: .01em; }
.topbar-actions { display: flex; gap: 4px; }

.icon-btn {
    width: var(--tap); height: var(--tap);
    display: inline-grid; place-items: center;
    border-radius: 12px; border: 0; background: transparent; color: inherit;
    text-decoration: none;
    transition: background .15s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .14); }
.topbar .icon-btn:focus-visible { outline-color: #fff; }
#lock-btn.is-on { background: rgba(255, 255, 255, .18); }

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

/* ── Drawer ── */
.scrim { position: fixed; inset: 0; z-index: 990; background: rgba(10, 5, 0, .45); backdrop-filter: blur(3px); }
.drawer {
    position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 1000;
    width: min(290px, 84vw);
    background: var(--surface); border-inline-end: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateX(105%);
    transition: transform .28s var(--ease);
    display: flex; flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom);
    visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }
.drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: calc(8px + env(safe-area-inset-top)) 18px 8px;
    min-height: var(--topbar-h);
    font-weight: 700; color: var(--ink-3); font-size: .85rem; letter-spacing: .08em;
    border-bottom: 1px solid var(--line);
}
.drawer-head .icon-btn:hover { background: var(--surface-2); }
.drawer a {
    display: flex; align-items: center; min-height: 52px; padding: 0 22px;
    color: var(--ink-2); text-decoration: none; font-weight: 500;
    border-inline-start: 3px solid transparent;
}
.drawer a:hover { background: var(--brand-soft); color: var(--brand); border-inline-start-color: var(--brand); }

/* ── Layout ── */
main { max-width: 820px; margin: 0 auto; padding: 0 16px 120px; }
.add-card { margin-bottom: 24px; }

.hero { padding: 28px 0 8px; position: sticky; top: calc(var(--topbar-h) + env(safe-area-inset-top)); z-index: 50; background: linear-gradient(var(--bg) 82%, transparent); }
.hero h1 {
    margin: 0 0 14px; text-align: center;
    font-size: clamp(1.05rem, 2.6vw, 1.35rem); font-weight: 600; color: var(--ink-2);
}
.hero h1 em { font-style: normal; color: var(--brand); font-weight: 800; }

/* ── Search bar ── */
.searchbar { position: relative; display: flex; align-items: center; }
.searchbar input {
    width: 100%; height: 60px;
    padding: 0 52px 0 56px;
    font-size: 1.12rem; font-weight: 500;
    background: var(--surface); color: var(--ink);
    border: 2px solid var(--line-strong); border-radius: 16px;
    box-shadow: var(--shadow);
    outline: none; -webkit-appearance: none; appearance: none;
    transition: border-color .15s, box-shadow .15s;
}
.searchbar input::-webkit-search-cancel-button { display: none; }
.searchbar input::placeholder { color: var(--ink-3); font-weight: 400; }
.searchbar input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft), var(--shadow); }
.searchbar-icon { position: absolute; inset-inline-start: 18px; color: var(--ink-3); pointer-events: none; }
.clear-btn {
    position: absolute; inset-inline-end: 6px;
    width: var(--tap); height: var(--tap); border: 0; border-radius: 12px;
    display: grid; place-items: center; background: transparent; color: var(--ink-3);
}
.clear-btn:hover { background: var(--surface-2); color: var(--ink); }
.kbd-hint {
    position: absolute; inset-inline-end: 16px;
    font: 600 .8rem/1 ui-monospace, monospace; color: var(--ink-3);
    border: 1px solid var(--line-strong); border-radius: 6px; padding: 4px 8px;
    pointer-events: none;
}
.clear-btn:not([hidden]) ~ .kbd-hint, .searchbar input:focus ~ .kbd-hint { display: none; }
@media (hover: none) { .kbd-hint { display: none; } }

/* ── Status line ── */
.status { min-height: 30px; padding: 10px 4px 2px; font-size: .92rem; color: var(--ink-2); }
.status.muted { color: var(--ink-3); }
.status.error { color: var(--err-ink); font-weight: 500; }
.status.warn {
    background: var(--warn-bg); color: var(--warn-ink);
    border-radius: 10px; padding: 10px 14px; margin-top: 10px;
}
.status .quota { color: var(--warn-ink); font-weight: 600; }
.linkish {
    border: 0; background: none; padding: 0; color: var(--brand); font-weight: 700;
    text-decoration: underline; text-underline-offset: 3px;
}
.spinner {
    display: inline-block; width: 18px; height: 18px; vertical-align: middle;
    border: 2.5px solid var(--line-strong); border-top-color: var(--brand); border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Category chips ── */
.facets {
    display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(to left, #000 92%, transparent);
}
.facets::-webkit-scrollbar { display: none; }
.chip {
    flex: none; display: inline-flex; align-items: center; gap: 6px;
    min-height: 40px; padding: 0 14px;
    border: 1.5px solid var(--line-strong); border-radius: 999px;
    background: var(--surface); color: var(--ink-2);
    font-size: .88rem; font-weight: 600; white-space: nowrap;
    transition: background .15s, border-color .15s;
}
.chip:hover { border-color: var(--brand-line); color: var(--brand); }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.chip-count {
    min-width: 22px; padding: 1px 6px; border-radius: 999px;
    background: var(--surface-2); color: var(--ink-3); font-size: .75rem; text-align: center;
}
.chip.is-active .chip-count { background: rgba(255, 255, 255, .22); color: inherit; }

/* ── Results (compact) ── */
.results { display: grid; gap: 6px; margin-top: 6px; transition: opacity .15s; }
.results.is-stale { opacity: .55; }

.card {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0 4px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 4px 4px 4px 6px;
    box-shadow: 0 1px 2px rgba(24, 18, 14, .05);
    animation: card-in .18s var(--ease) both;
    animation-delay: calc(var(--i, 0) * 14ms);
    transition: border-color .15s, background .15s;
}
.card.is-selected { border-color: var(--brand); background: linear-gradient(var(--brand-soft), var(--brand-soft)), var(--surface); }
@keyframes card-in { from { opacity: 0; transform: translateY(4px); } }

.card-check {
    width: 42px; height: 42px; display: grid; place-items: center; cursor: pointer;
    border-radius: 10px;
}
.card-check-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box {
    width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
    border: 2px solid var(--line-strong); background: var(--surface); color: transparent;
    transition: all .12s;
}
.check-box svg { width: 16px; height: 16px; }
.card-check-input:checked + .check-box { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.card-check-input:focus-visible + .check-box { outline: 3px solid var(--brand); outline-offset: 2px; }

.card-body { min-width: 0; padding: 3px 2px; }
.card-name { font-weight: 600; font-size: .95rem; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.card-name mark { background: var(--mark); color: inherit; border-radius: 3px; padding: 0 1px; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 3px; }

/* Catalogue number: same size as the item text, tap to copy */
.makat {
    display: inline-flex; align-items: center; gap: 5px;
    min-height: 28px; padding: 0 8px; margin-inline-start: -2px;
    border: 1px solid var(--brand-line); border-radius: 7px;
    background: var(--brand-soft); color: var(--brand);
    direction: ltr;
}
.makat-num { font-size: .95rem; font-weight: 700; line-height: 1; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.makat svg { width: 13px; height: 13px; opacity: .6; }
.makat:hover { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.makat:hover svg { opacity: 1; }

.label {
    font-size: .72rem; font-weight: 600; line-height: 1.5; color: var(--ink-3);
    background: var(--surface-2); border-radius: 5px; padding: 1px 7px;
}
.label-cat { color: var(--brand); }
.tag {
    font: inherit; font-size: .7rem; font-weight: 600; line-height: 1.6; color: var(--ink-3);
    background: transparent; border: 1px dashed var(--line-strong); border-radius: 999px; padding: 0 8px;
}
.has-tip { position: relative; cursor: help; }
.has-tip .tip {
    position: absolute; z-index: 60; bottom: calc(100% + 8px); inset-inline-start: 50%;
    transform: translateX(50%);
    width: max-content; max-width: min(260px, 70vw);
    padding: 8px 10px; border-radius: 8px;
    background: var(--ink); color: var(--bg);
    font-size: .78rem; font-weight: 500; line-height: 1.45; text-align: start; white-space: normal;
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .12s;
}
.has-tip:hover .tip, .has-tip:focus-visible .tip, .has-tip.tip-open .tip { opacity: 1; visibility: visible; }

/* Generic camera icon — opens the picture */
.img-btn {
    position: relative; width: 42px; height: 42px;
    display: grid; place-items: center;
    border: 0; border-radius: 10px; background: transparent; color: var(--ink-2);
}
.img-btn svg { width: 22px; height: 22px; }
.img-btn:hover { background: var(--brand-soft); color: var(--brand); }
.img-btn.is-locked { color: var(--ink-3); opacity: .75; }
.img-btn.is-locked::after {
    content: ''; position: absolute; inset-inline-end: 7px; bottom: 8px;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--ink-3); box-shadow: 0 0 0 2px var(--surface);
}

.more-wrap { display: flex; justify-content: center; margin-top: 14px; }


/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: var(--tap); padding: 0 18px;
    border-radius: 12px; border: 1.5px solid transparent;
    font-weight: 700; font-size: .95rem; text-decoration: none; white-space: nowrap;
    transition: background .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.btn-ghost { background: var(--surface); color: var(--ink-2); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-block { width: 100%; }

/* ── Add-item card & footer ── */
.add-card {
    margin-top: 28px; padding: 18px 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.add-card p { margin: 2px 0 0; color: var(--ink-3); font-size: .9rem; }

/* ── Selection bar ── */
.selbar {
    position: fixed; z-index: 800;
    inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    max-width: 796px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
    padding: 10px 10px 10px 14px;
    background: var(--ink); color: var(--bg);
    border-radius: 16px; box-shadow: var(--shadow-lg);
    animation: bar-in .2s var(--ease);
}
.selbar-count { font-weight: 700; padding-inline-start: 6px; }
.selbar-actions { display: flex; gap: 8px; }
.selbar .btn-ghost { background: transparent; color: var(--bg); border-color: rgba(255, 255, 255, .3); }
:root[data-theme="dark"] .selbar .btn-ghost { border-color: rgba(0, 0, 0, .25); }
@keyframes bar-in { from { opacity: 0; transform: translateY(12px); } }

/* ── Dialogs ── */
.sheet {
    width: min(720px, calc(100vw - 24px)); max-height: calc(100dvh - 32px);
    padding: 0; border: 0; border-radius: 20px;
    background: var(--surface); color: var(--ink);
    box-shadow: var(--shadow-lg);
}
.sheet::backdrop { background: rgba(10, 5, 0, .6); backdrop-filter: blur(4px); }
.sheet[open] { animation: sheet-in .22s var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.sheet-narrow { width: min(420px, calc(100vw - 24px)); }
.sheet-narrow form { padding: 0 20px 20px; }
.sheet-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
    padding: 16px 16px 12px 20px;
}
.sheet-narrow .sheet-head { padding: 16px 0 12px; }
.sheet-head .icon-btn { color: var(--ink-3); margin: -6px; }
.sheet-head .icon-btn:hover { background: var(--surface-2); }
.sheet-title { font-weight: 700; font-size: 1.05rem; }
.sheet-sub { color: var(--ink-3); font-size: .9rem; margin-top: 2px; }

.img-frame {
    margin: 0 16px 16px; min-height: 260px;
    display: grid; place-items: center;
    background: var(--surface-2); border-radius: 14px; overflow: hidden;
}
.img-frame img { max-width: 100%; max-height: calc(100dvh - 180px); object-fit: contain; display: block; }
.img-error { color: var(--ink-3); padding: 40px 20px; text-align: center; }
.img-open-wrap {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
    margin: -4px 16px 16px; padding: 10px 12px;
    background: var(--surface-2); border-radius: 12px; color: var(--ink-2); font-size: .9rem;
}
.img-open-wrap .btn { min-height: 40px; }
.img-loading { display: flex; gap: 6px; }
.img-loading span {
    width: 9px; height: 9px; border-radius: 50%; background: var(--brand);
    animation: pulse 1.2s infinite ease-in-out both;
}
.img-loading span:nth-child(2) { animation-delay: .15s; }
.img-loading span:nth-child(3) { animation-delay: .3s; }
@keyframes pulse { 0%, 80%, 100% { transform: scale(.4); opacity: .3; } 40% { transform: scale(1); opacity: 1; } }

.pin-input {
    width: 100%; height: 58px; padding: 0 16px;
    font-size: 1.4rem; letter-spacing: .3em; text-align: center;
    background: var(--surface-2); color: var(--ink);
    border: 2px solid var(--line-strong); border-radius: 14px; outline: none;
}
.pin-input:focus { border-color: var(--brand); }
.form-error { min-height: 1.4em; margin: 8px 0 10px; color: var(--err-ink); font-size: .9rem; font-weight: 500; }

/* ── Toast ── */
.toast {
    position: fixed; z-index: 1500; left: 50%; top: calc(var(--topbar-h) + 12px + env(safe-area-inset-top));
    transform: translate(-50%, -10px); opacity: 0; pointer-events: none;
    background: var(--ink); color: var(--bg);
    padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: .92rem;
    box-shadow: var(--shadow-lg);
    transition: opacity .18s, transform .18s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── Small screens ── */
@media (max-width: 560px) {
    main { padding-inline: 10px; }
    .hero { padding-top: 16px; }
    .searchbar input { height: 56px; font-size: 1.05rem; }
    .selbar { inset-inline: 8px; }
    .selbar-actions { flex: 1; }
    .selbar-actions .btn { flex: 1; padding: 0 10px; }
    .add-card .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (forced-colors: active) {
    .check-box, .makat, .card { border: 1px solid CanvasText; }
}

/* ── Loading: moving bar under the search box + placeholder cards ── */
.search-progress {
    position: absolute; inset-inline: 14px; bottom: 2px; height: 3px;
    border-radius: 3px; overflow: hidden; pointer-events: none;
    opacity: 0; transition: opacity .2s;
}
.search-progress::before {
    content: ''; position: absolute; top: 0; bottom: 0; width: 35%;
    border-radius: inherit; background: var(--brand);
    animation: search-slide 1.1s cubic-bezier(.4, 0, .2, 1) infinite;
}
.searchbar.is-loading .search-progress { opacity: 1; transition-delay: .12s; }
@keyframes search-slide { from { inset-inline-start: -35%; } to { inset-inline-start: 100%; } }

.results { transition: opacity .2s; }
.results.is-stale { opacity: .6; }

.skeleton { pointer-events: none; min-height: 58px; }
.sk { display: block; border-radius: 6px; background: var(--surface-2); position: relative; overflow: hidden; }
.sk::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
    animation: sk-shimmer 1.3s infinite;
}
:root[data-theme="dark"] .sk::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06), transparent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sk::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06), transparent); } }
.sk-check { width: 22px; height: 22px; margin: 10px; }
.sk-line { height: 12px; width: 70%; margin: 5px 0; }
.sk-line.short { width: 38%; height: 18px; }
@keyframes sk-shimmer { from { transform: translateX(100%); } to { transform: translateX(-100%); } }

.loading-text::after { content: ''; display: inline-block; width: 1.2em; text-align: start; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }


/* ── Idle illustration (pills + magnifier) ── */
.empty-state {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 48px 0 24px; text-align: center;
    transition: opacity .25s, transform .25s, max-height .3s;
    max-height: 320px; overflow: hidden;
}
.empty-state.is-hidden { opacity: 0; transform: translateY(-6px) scale(.97); max-height: 0; padding: 0; pointer-events: none; }
.empty-art { width: 150px; height: 112px; }
.empty-art .pill-outline { fill: var(--surface); stroke: var(--brand); stroke-width: 3.5; }
.empty-art .pill-fill { fill: var(--brand); opacity: .9; }
.empty-art .pill-line { stroke: var(--brand); stroke-width: 3.5; }
.empty-art .tablet { fill: var(--brand-soft); stroke: var(--brand); stroke-width: 2.5; opacity: .8; }
.empty-art .tablet-line { stroke: var(--ink-3); stroke-width: 3; stroke-linecap: round; }
.empty-art .lens { fill: var(--brand-soft); stroke: var(--ink-2); stroke-width: 5; }
.empty-art .lens-handle { stroke: var(--ink-2); stroke-width: 8; stroke-linecap: round; }
.empty-text { margin: 0; color: var(--ink-3); font-size: .92rem; }

.add-card[hidden] { display: none !important; }

/* ── "גרסת האתר בהרצה" — small toast at the bottom, fades out by itself ── */
.beta-note {
    position: fixed; z-index: 700; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom));
    transform: translate(-50%, 12px); opacity: 0;
    display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
    padding: 7px 14px; border-radius: 999px;
    background: var(--warn-bg); color: var(--warn-ink);
    border: 1px solid rgba(122, 75, 0, .18);
    font-size: .8rem; font-weight: 600;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: opacity .4s, transform .4s var(--ease);
}
.beta-note.show { opacity: 1; transform: translate(-50%, 0); }
.beta-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: beta-pulse 1.6s ease-in-out infinite; }
@keyframes beta-pulse { 50% { opacity: .35; } }
