/* ===== Design tokens ===== */
:root {
    --color-navy: #101d31;
    --color-navy-light: #1c2e4a;
    --color-navy-lighter: #28405f;
    --color-amber: #e0a63f;
    --color-amber-dark: #c98a1f;
    --color-bg: #f2f4f7;
    --color-surface: #ffffff;
    --color-text: #16202e;
    --color-muted: #6b7686;
    --color-border: #e6e9ef;
    --color-danger: #d64545;
    --color-danger-bg: #fdecec;
    --color-success: #1f9d55;
    --color-success-bg: #e9f9ef;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --shadow-sm: 0 1px 2px rgba(16, 29, 49, 0.06);
    --shadow-md: 0 4px 16px rgba(16, 29, 49, 0.08);
    --nav-height: 60px;
    --bottom-nav-height: 64px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { letter-spacing: -0.01em; }
h2 { font-size: 20px; font-weight: 700; margin: 0 0 1rem; }
h3 { font-size: 17px; font-weight: 700; margin: 1.8rem 0 0.6rem; color: var(--color-navy); scroll-margin-top: 80px; }
.app-main p, .app-main ul { line-height: 1.6; margin: 0 0 0.9rem; }
.app-main ul { padding-left: 1.3rem; }
.app-main li { margin-bottom: 4px; }
h3 { font-size: 15px; font-weight: 600; }

/* ===== Top header (desktop) ===== */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-navy);
    color: #fff;
    padding: 0 1.5rem;
    height: var(--nav-height);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-md);
}
.app-header-brand {
    font-weight: 700;
    color: var(--color-amber);
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.app-nav { display: flex; align-items: center; gap: 2px; }
.app-nav a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.app-nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.app-nav a.active { color: #fff; background: var(--color-navy-lighter); }
.app-header-user { font-size: 13px; display: flex; align-items: center; gap: 12px; }
.app-header-user span { color: rgba(255,255,255,0.85); font-weight: 500; }
.app-header-user a { color: var(--color-amber); text-decoration: none; font-weight: 500; }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    padding: 4px 8px;
}

/* ===== Bottom tab bar (mobile) ===== */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--bottom-nav-height);
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -2px 12px rgba(16,29,49,0.06);
    z-index: 50;
    padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav-inner { display: flex; height: 64px; }
.bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
    color: var(--color-muted);
    font-size: 11px;
    font-weight: 500;
}
.bottom-nav a .icon { font-size: 20px; line-height: 1; }
.bottom-nav a.active { color: var(--color-amber-dark); }

.admin-sheet {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--color-surface);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: 0 -8px 30px rgba(16,29,49,0.18);
    z-index: 60;
    padding: 1.25rem 1rem calc(1.25rem + env(safe-area-inset-bottom));
}
.admin-sheet.open { display: block; }
.admin-sheet a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 8px;
    color: var(--color-text);
    text-decoration: none;
    font-size: 15px;
    border-bottom: 1px solid var(--color-border);
}
.admin-sheet a:last-child { border-bottom: none; }
.sheet-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(16,29,49,0.4);
    z-index: 55;
}
.sheet-backdrop.open { display: block; }

.app-main { max-width: 960px; margin: 1.5rem auto; padding: 0 1.25rem; }

/* ===== Auth page ===== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(160deg, var(--color-navy) 0%, #0a1420 100%);
    padding: 1.5rem;
}
.auth-box {
    background: var(--color-surface);
    padding: 2.25rem 2rem;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 340px;
    box-shadow: var(--shadow-md);
}
.auth-box h1 { font-size: 21px; margin-bottom: 1.4rem; color: var(--color-navy); text-align: center; }

/* ===== Forms ===== */
label { display: block; margin-bottom: 1rem; font-size: 13px; font-weight: 500; color: var(--color-muted); }
input, select, textarea {
    display: block;
    width: 100%;
    margin-top: 5px;
    padding: 11px 12px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    background: var(--color-surface);
    color: var(--color-text);
    transition: border-color 0.15s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-amber);
}
.checkbox-label { display: flex; align-items: center; gap: 8px; }
.checkbox-label input { width: auto; margin: 0; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    min-height: 42px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--color-amber); border-color: var(--color-amber-dark); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-amber-dark); }
.form-actions { display: flex; gap: 10px; margin-top: 1.2rem; }
.form-card { background: var(--color-surface); padding: 1.5rem; border-radius: var(--radius-lg); max-width: 480px; box-shadow: var(--shadow-sm); }

/* ===== Tables -> responsive cards on mobile ===== */
.data-table { width: 100%; border-collapse: collapse; background: var(--color-surface); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.data-table th, .data-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--color-border); font-size: 14px; }
.data-table tr:last-child td { border-bottom: none; }
.data-table th { background: var(--color-navy-light); color: #fff; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; }

.data-table tr.debt-row-paid td { background: #d7f5e3; }
.data-table tr.debt-row-open td { background: #d9ebfc; }
.data-table tr.debt-row-overdue td { background: #fad2d2; }
.data-table tr.debt-row-paid td:first-child { border-left: 5px solid #178a45; }
.data-table tr.debt-row-open td:first-child { border-left: 5px solid #1f5f9e; }
.data-table tr.debt-row-overdue td:first-child { border-left: 5px solid #b93030; }
.data-table tr.debt-row-overdue td { font-weight: 600; }

.data-table tr.task-row-done td { background: #d7f5e3; }
.data-table tr.task-row-open td { background: #d9ebfc; }
.data-table tr.task-row-overdue td { background: #fad2d2; }
.data-table tr.task-row-done td:first-child { border-left: 5px solid #178a45; }
.data-table tr.task-row-open td:first-child { border-left: 5px solid #1f5f9e; }
.data-table tr.task-row-overdue td:first-child { border-left: 5px solid #b93030; }
.data-table tr.task-row-overdue td { font-weight: 600; }

.color-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--color-muted); margin: 10px 0; }
.color-legend .legend-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }

.category-heading {
    border-left: 4px solid #9aa2ad;
    padding-left: 8px;
    font-size: 13px;
    font-weight: 700;
    margin: 16px 0 6px;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.empty-note { color: var(--color-muted); }

.print-category-block { margin-bottom: 10px; }
.print-category-title {
    border-left: 4px solid #9aa2ad;
    padding-left: 6px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 4px;
}
.print-item-grid { column-count: 2; column-gap: 24px; font-size: 11px; line-height: 1.6; }
.print-item { break-inside: avoid; }

@media print {
    .print-category-block { break-inside: avoid; }
    .print-item-grid { column-count: 3; }
}

.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 1rem; font-weight: 500; }
.alert-error { background: var(--color-danger-bg); color: var(--color-danger); }
.alert-success { background: var(--color-success-bg); color: var(--color-success); }

.summary-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 1.2rem 0; }
.summary-card { background: var(--color-surface); border-radius: var(--radius-md); padding: 1rem 1.1rem; box-shadow: var(--shadow-sm); }
.summary-label { font-size: 12px; color: var(--color-muted); margin-bottom: 4px; font-weight: 500; }
.summary-value { font-size: 21px; font-weight: 700; }
.summary-value.positive { color: var(--color-success); }
.summary-value.negative { color: var(--color-danger); }

.chart-card { background: var(--color-surface); border-radius: var(--radius-md); padding: 1.2rem; margin-top: 1rem; box-shadow: var(--shadow-sm); }
.chart-card h3 { margin-top: 0; color: var(--color-muted); font-weight: 500; }

.filter-bar { display: flex; align-items: center; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.filter-bar a {
    padding: 7px 15px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
}
.filter-bar a.active { background: var(--color-navy); color: #fff; border-color: var(--color-navy); }
.assignee-checkboxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; margin-bottom: 1rem; }
.assignee-checkboxes .checkbox-label { font-size: 14px; font-weight: 400; color: var(--color-text); }

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 1.2rem;
}
.dashboard-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.2rem;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: var(--color-text);
    display: block;
    transition: transform 0.15s, box-shadow 0.15s;
}
.dashboard-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.dashboard-card-icon { font-size: 26px; margin-bottom: 6px; }
.dashboard-card-title { font-weight: 700; font-size: 14px; margin-bottom: 8px; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.02em; }
.dashboard-card-stat { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.dashboard-card-stat.positive { color: var(--color-success); }
.dashboard-card-stat.negative { color: var(--color-danger); }
.dashboard-card-stat-muted { font-size: 12px; color: var(--color-muted); }

.stats-side-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 16px;
    align-items: stretch;
    margin-top: 1.5rem;
}
@media (max-width: 780px) {
    .stats-side-grid { grid-template-columns: 1fr; }
}

.card-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
}
.card-tile {
    position: relative;
    background: var(--color-surface);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 6px;
    text-align: center;
    transition: transform 0.15s;
}
.card-tile:hover { transform: translateY(-2px); }
.card-tile-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 6px;
    overflow: hidden;
}
.card-tile-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.card-tile-name {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.card-tile-badge {
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 12px;
}
@media (max-width: 480px) {
    .card-tile-grid { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
    .card-tile-logo { width: 40px; height: 40px; font-size: 18px; }
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-top: 1rem;
}
.calendar-weekday {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-muted);
    padding: 6px 0;
    text-transform: uppercase;
}
.calendar-day {
    background: var(--color-surface);
    border-radius: 8px;
    min-height: 90px;
    padding: 6px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.calendar-day-empty { background: transparent; box-shadow: none; }
.calendar-day-today { border: 2px solid var(--color-amber); }
.calendar-day-num { font-size: 12px; font-weight: 700; color: var(--color-muted); margin-bottom: 4px; }
.calendar-item {
    display: block;
    font-size: 10px;
    padding: 2px 4px;
    border-radius: 4px;
    margin-bottom: 2px;
    text-decoration: none;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.calendar-item-task { background: #1f5f9e; }
.calendar-item-debt { background: #8e44ad; }
.calendar-item-bday { background: #e0a63f; color: #101d31; font-weight: 700; }
.calendar-item-event { background: #178a45; }
.calendar-item-overdue { background: #b93030; }
.calendar-item-more {
    display: block;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 4px;
    color: var(--color-navy);
    text-decoration: none;
}
.calendar-day-week { min-height: 200px; }
.calendar-grid-week .calendar-day-num { font-size: 13px; }
.calendar-day-weekend { background: #e8ecf2; }
.calendar-day-holiday { background: #fbe4e4; }
.calendar-day-holiday.calendar-day-weekend { background: linear-gradient(135deg, #e8ecf2 50%, #fbe4e4 50%); }
.calendar-holiday-label { font-size: 9px; color: #b93030; font-weight: 600; margin-bottom: 3px; line-height: 1.2; }

@media (max-width: 780px) {
    .calendar-grid { gap: 2px; }
    .calendar-day { min-height: 60px; padding: 3px; font-size: 10px; }
    .calendar-weekday { font-size: 10px; padding: 3px 0; }
    .calendar-item { font-size: 9px; }
}
.checkbox-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    color: var(--color-navy);
    line-height: 1;
}

.shopping-add-form { display: flex; gap: 8px; margin-bottom: 1rem; }
.shopping-add-form input { margin-top: 0; }
.shopping-toolbar { display: flex; gap: 8px; margin-bottom: 1.5rem; flex-wrap: wrap; align-items: stretch; }
label.btn { box-sizing: border-box; }
.shopping-list { list-style: none; padding: 0; margin: 0; background: var(--color-surface); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.shopping-list li { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-bottom: 1px solid var(--color-border); }
.shopping-list li:last-child { border-bottom: none; }
.shopping-list li.bought .item-name { text-decoration: line-through; color: var(--color-muted); }
.shopping-list li.empty { color: var(--color-muted); font-style: italic; }
.item-name { flex: 1; font-size: 15px; }
.item-category { font-size: 11px; color: var(--color-muted); background: var(--color-bg); padding: 3px 9px; border-radius: 999px; font-weight: 500; }
.inline-form { display: inline; }

/* ===== Responsive breakpoints ===== */
@media (max-width: 780px) {
    .app-nav { display: none; }
    .menu-toggle { display: inline-flex; }
    .app-header-user span { display: none; }
    body { padding-bottom: var(--bottom-nav-height); }
    .bottom-nav { display: block; }
    .app-main { margin: 1rem auto; padding: 0 1rem; }
    .summary-cards { grid-template-columns: 1fr 1fr; }
    .summary-cards .summary-card:nth-child(3) { grid-column: 1 / -1; }

    /* Responsive table -> stacked cards */
    .data-table thead { display: none; }
    .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
    .data-table tr { margin-bottom: 10px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden; }
    .data-table td {
        border-bottom: 1px solid var(--color-border);
        padding: 10px 14px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        text-align: right;
    }
    .data-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--color-muted);
        font-size: 12px;
        text-align: left;
    }
    .data-table td:empty { display: none; }
    .data-table td[data-label=""] { justify-content: flex-end; }
    .checkbox-btn { padding: 8px; font-size: 22px; }
    .btn { min-height: 46px; }
}

@media (min-width: 781px) {
    .bottom-nav, .admin-sheet, .sheet-backdrop { display: none !important; }
}

@media print {
    .app-header, .bottom-nav, .no-print { display: none !important; }
    body { background: #fff; padding-bottom: 0; }
    .shopping-list { border: 1px solid #000; box-shadow: none; }
    .print-only-table { display: block !important; }
}
.print-only-table { display: none; }

.print-debt-list { display: flex; flex-direction: column; }
.print-debt-row { padding: 5px 8px; border-bottom: 0.5px solid #ccc; border-left: 4px solid #ccc; }
.print-debt-row.is-paid { border-left-color: #178a45; background: #d7f5e3; }
.print-debt-row.is-open { border-left-color: #1f5f9e; background: #d9ebfc; }
.print-debt-row.is-overdue { border-left-color: #b93030; background: #fad2d2; }
.print-debt-row.is-overdue .print-debt-amount { color: #b93030; font-weight: 800; }
.print-debt-line1 { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 600; }
.print-debt-line2 { font-size: 10px; color: #555; margin-top: 1px; }
.print-debt-amount { white-space: nowrap; }
.print-debt-totals { margin-top: 10px; padding-top: 8px; border-top: 1.5px solid #000; font-size: 12px; font-weight: 700; }
.print-legend { display: flex; gap: 16px; font-size: 10px; color: #333; margin-bottom: 10px; }
.print-legend .legend-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }

@media print {
    .print-debt-row { break-inside: avoid; }
}

/* ===== Recipes ===== */
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 1rem; }
.recipe-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: var(--color-text);
    display: block;
    transition: transform 0.15s;
}
.recipe-card:hover { transform: translateY(-2px); }
.recipe-card-image {
    height: 130px;
    background: linear-gradient(135deg, var(--color-navy-light), var(--color-navy));
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}
.recipe-card-image.card-thumb-contain {
    background-size: contain !important;
    background-repeat: no-repeat;
    background-color: #f4f4f4;
}
.recipe-card-body { padding: 12px 14px; }
.recipe-card-title { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.recipe-card-meta { font-size: 13px; color: var(--color-muted); margin-top: 4px; }
.recipe-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.zoomable-image { cursor: zoom-in; }
.image-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: #0a0f19;
    z-index: 200;
    flex-direction: column;
}
.image-lightbox.open { display: flex; }
.image-lightbox-toolbar {
    display: flex;
    justify-content: flex-end;
    padding: calc(env(safe-area-inset-top) + 10px) 14px 10px;
    flex-shrink: 0;
}
.image-lightbox-close {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    min-height: 44px;
}
.image-lightbox-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px calc(env(safe-area-inset-bottom) + 12px);
    min-height: 0;
}
.image-lightbox-body img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
}

@media (max-width: 780px) {
    .recipe-detail-grid { grid-template-columns: 1fr; }
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--color-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}
.back-link:hover { color: var(--color-navy); }

.archive-banner {
    background: #fff7e8;
    border: 1px solid var(--color-amber);
    color: #7a5716;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
}
.archive-frame-wrap {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-top: 1rem;
}
.archive-frame {
    width: 100%;
    height: 75vh;
    border: none;
    display: block;
    background: #fff;
}

.store-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1rem; }
.store-chip {
    padding: 7px 13px 7px 10px;
    border-radius: 10px;
    border: 1.5px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.store-chip-icon { width: 18px; height: 18px; border-radius: 4px; flex-shrink: 0; }
.store-chip:hover { border-color: var(--color-amber); }
.store-chip.active { background: var(--color-navy); border-color: var(--color-navy); color: #fff; }

details summary { list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::marker { display: none; content: ""; }
