/* ============================================
   Co si dám — design system
   Clean, contemporary food-app look: Onest, near-white surfaces, ink text,
   one fresh accent (lime) used for "do this" and "this is yours".
   ============================================ */

:root {
    --bg: #f5f4ef;
    --surface: #ffffff;
    --surface-2: #efeee8;
    --surface-3: #e6e5de;
    --ink: #141414;
    --ink-2: #3b3b38;
    --ink-3: #72716b;
    --line: rgba(20, 20, 20, 0.08);
    --line-strong: rgba(20, 20, 20, 0.16);

    --lime: #d4f366;
    --lime-hover: #c6e94c;
    --lime-ink: #141414;          /* text on lime */
    --lime-soft: #f1fad3;
    --lime-deep: #5f7d12;          /* lime-family text on light surfaces */

    --green: #198f4c;
    --green-soft: #e3f5ea;
    --red: #d93d42;
    --red-soft: #fdecec;
    --amber-soft: #fff4d6;

    --nav-bg: rgba(245, 244, 239, 0.86);
    --shadow-sm: 0 1px 2px rgba(20, 20, 20, 0.04);
    --shadow: 0 1px 2px rgba(20, 20, 20, 0.04), 0 8px 24px rgba(20, 20, 20, 0.05);
    --shadow-lg: 0 2px 6px rgba(20, 20, 20, 0.05), 0 24px 48px rgba(20, 20, 20, 0.1);
    --focus: 0 0 0 3px rgba(150, 190, 40, 0.45);

    --r-sm: 10px;
    --r: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --font: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --t: 0.16s ease;
    color-scheme: light;
}

[data-theme="dark"] {
    --bg: #0f0f0f;
    --surface: #191919;
    --surface-2: #232323;
    --surface-3: #2d2d2d;
    --ink: #f3f3ef;
    --ink-2: #cfcfca;
    --ink-3: #8f8e88;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --lime-soft: rgba(212, 243, 102, 0.12);
    --lime-deep: #d4f366;
    --green: #4fd38a;
    --green-soft: rgba(79, 211, 138, 0.14);
    --red: #ff7a7e;
    --red-soft: rgba(255, 122, 126, 0.14);
    --amber-soft: rgba(255, 200, 80, 0.12);
    --nav-bg: rgba(15, 15, 15, 0.86);
    --shadow-sm: none;
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.03);
    --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
}

/* ---- Base ---- */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.container.mt-4 { flex: 1; }

h1, h2, h3, h4, h5 { color: var(--ink); font-weight: 700; letter-spacing: -0.02em; }

a { color: var(--ink); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { color: var(--ink); text-decoration-color: var(--ink); }

hr { border-color: var(--line); opacity: 1; }
code { color: var(--lime-deep); background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 6px; }
::selection { background: var(--lime); color: var(--lime-ink); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }

.text-muted { color: var(--ink-3) !important; }
.text-danger { color: var(--red) !important; }

/* ---- Navbar ---- */
.navbar {
    background: var(--nav-bg) !important;
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.6rem 0;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    color: var(--ink) !important;
}

.navbar-brand i {
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--lime);
    color: var(--lime-ink);
    font-size: 1.05rem;
}

.navbar .nav-link {
    color: var(--ink-2) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.42rem 0.85rem !important;
    border-radius: 999px;
    transition: background var(--t), color var(--t);
}

.navbar .nav-link:hover { color: var(--ink) !important; background: var(--surface-2); }
.navbar .nav-link.active { color: var(--ink) !important; background: var(--surface); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }

.navbar-toggler { border: 1px solid var(--line-strong); border-radius: 12px; padding: 0.35rem 0.6rem; }
.navbar-toggler:focus { box-shadow: var(--focus); }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23777' stroke-width='2' stroke-linecap='round' d='M6 9h18M6 15h18M6 21h18'/%3E%3C/svg%3E");
}

.theme-toggle {
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink-2);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    margin-left: 0.4rem;
    transition: background var(--t);
}

.theme-toggle:hover { background: var(--surface-2); color: var(--ink); }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: inline; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---- Mobile tab bar ---- */
.tabbar { display: none; }

@media (max-width: 991px) {
    body.has-tabbar { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
    .tabbar {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1001;
        background: var(--nav-bg);
        backdrop-filter: saturate(160%) blur(14px);
        -webkit-backdrop-filter: saturate(160%) blur(14px);
        border-top: 1px solid var(--line);
        padding: 0.35rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom));
    }
    .tabbar a {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.1rem;
        padding: 0.3rem 0;
        font-size: 0.7rem;
        font-weight: 600;
        color: var(--ink-3);
        text-decoration: none;
        border-radius: 12px;
    }
    .tabbar a i { font-size: 1.25rem; line-height: 1.2; }
    .tabbar a[aria-current="page"] { color: var(--ink); }
    .tabbar a[aria-current="page"] i {
        background: var(--lime);
        color: var(--lime-ink);
        border-radius: 999px;
        padding: 0 0.9rem;
    }
    .tabbar .count-badge { position: absolute; top: 0.1rem; left: 55%; }
}

/* ---- Footer ---- */
footer { border-top: 1px solid var(--line); background: transparent !important; }
footer p { color: var(--ink-3); font-size: 0.88rem; }
footer .footer-brand { font-weight: 700; color: var(--ink-2); }

/* ---- Buttons ---- */
.btn {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.58rem 1.2rem;
    border: 1px solid transparent;
    transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible { box-shadow: var(--focus); }

.btn-warning, .btn-primary { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.btn-warning:hover, .btn-primary:hover,
.btn-warning:active, .btn-primary:active,
.btn-warning:focus, .btn-primary:focus {
    background: var(--lime-hover) !important;
    border-color: var(--lime-hover) !important;
    color: var(--lime-ink) !important;
}

.btn-outline-primary { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-outline-primary:hover { background: var(--ink-2); border-color: var(--ink-2); color: var(--bg); }

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

.btn-outline-success { background: var(--surface); border-color: var(--line-strong); color: var(--green); }
.btn-outline-success:hover { background: var(--green-soft); border-color: var(--green); color: var(--green); }
.btn-outline-danger { background: var(--surface); border-color: var(--line-strong); color: var(--red); }
.btn-outline-danger:hover { background: var(--red-soft); border-color: var(--red); color: var(--red); }
.btn-outline-info { background: var(--surface); border-color: var(--line-strong); color: var(--ink-2); }
.btn-outline-info:hover { background: var(--surface-2); color: var(--ink); }

.btn-sm { padding: 0.32rem 0.75rem; font-size: 0.85rem; }
.btn-lg { padding: 0.8rem 1.6rem; font-size: 1.05rem; }
.btn:disabled, .btn.disabled { opacity: 0.55; }

.link-btn {
    font: inherit;
    background: none;
    border: 0;
    padding: 0;
    color: var(--ink-2);
    text-decoration: underline;
    text-decoration-color: var(--line-strong);
    text-underline-offset: 3px;
    cursor: pointer;
}
.link-btn:hover { color: var(--ink); text-decoration-color: var(--ink); }

.count-badge {
    display: inline-block;
    min-width: 1.3rem;
    padding: 0 0.38rem;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.3rem;
    text-align: center;
}

/* ---- Page header ---- */
.page-header { margin: 0.75rem 0 1.75rem; }
.page-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.25rem;
}
.page-header h2 i { display: none; }
.page-header .page-meta { color: var(--ink-3); font-size: 1rem; margin: 0; }

/* ---- Surfaces ---- */
.card, .profile-card, .auth-card, .side-card, .empty-state, .menu-restaurant-card, .admin-help,
.req-form-card, .admin-req, .lunch-ask, .rec-hero, .rec-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
}

/* ---- Forms ---- */
.form-label { font-weight: 600; font-size: 0.9rem; color: var(--ink); margin-bottom: 0.4rem; }

.form-control, .form-select {
    background-color: var(--surface);
    border: 1px solid var(--line-strong);
    color: var(--ink);
    border-radius: var(--r);
    padding: 0.62rem 0.9rem;
    font-size: 1rem;
}
.form-control::placeholder { color: var(--ink-3); opacity: 0.85; }
.form-control:focus, .form-select:focus {
    border-color: var(--lime-deep);
    box-shadow: var(--focus);
    background-color: var(--surface);
    color: var(--ink);
}
.form-control-sm, .form-select-sm { border-radius: var(--r-sm); padding: 0.4rem 0.7rem; font-size: 0.9rem; }

.form-check-input { background-color: var(--surface); border-color: var(--line-strong); }
.form-check-input:checked { background-color: var(--ink); border-color: var(--ink); }
.form-check-input:focus { box-shadow: var(--focus); border-color: var(--ink); }
.form-text { color: var(--ink-3); font-size: 0.85rem; }
.input-group-text { background: var(--surface-2); border-color: var(--line-strong); color: var(--ink-2); border-radius: var(--r); }

/* ---- Alerts ---- */
.alert {
    border-radius: var(--r);
    border: 0;
    padding: 0.85rem 1.1rem;
    background: var(--surface-2);
    color: var(--ink);
}
.alert-success { background: var(--lime-soft); }
.alert-info { background: var(--surface-2); }
.alert-warning { background: var(--amber-soft); }
.alert-danger { background: var(--red-soft); }
.alert a { color: var(--ink); font-weight: 600; }
.alert .btn-close { opacity: 0.45; }
[data-theme="dark"] .alert .btn-close { filter: invert(1); }

/* ---- Tables (admin) ---- */
.table { --bs-table-bg: transparent; --bs-table-color: var(--ink); --bs-table-hover-bg: var(--surface-2); --bs-table-hover-color: var(--ink); color: var(--ink); margin: 0; }
.table thead th { font-size: 0.82rem; font-weight: 600; color: var(--ink-3); border-bottom: 1px solid var(--line-strong); padding: 0.8rem 1rem; background: transparent; }
.table tbody td { padding: 0.8rem 1rem; border-color: var(--line); vertical-align: middle; }
.table-responsive { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.meal-price { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }

.category-badge, .rec-category {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--ink-2);
    background: var(--surface-2);
    border-radius: 999px;
    padding: 0.08rem 0.55rem;
}

/* ---- Empty states ---- */
.empty-state { text-align: center; padding: 3rem 1.5rem; }
.empty-state .empty-icon {
    width: 3.5rem; height: 3.5rem; margin: 0 auto 1rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--lime-soft); color: var(--lime-deep); font-size: 1.5rem;
}
.empty-state h4 { font-weight: 700; margin-bottom: 0.5rem; }
.empty-state p { color: var(--ink-3); margin: 0 auto 1.25rem; max-width: 32rem; }

/* ============================================
   AUTH & PROFILE
   ============================================ */
.auth-card { padding: 2.25rem; max-width: 440px; margin: 2rem auto; box-shadow: var(--shadow); border-radius: var(--r-xl); }
.auth-card h2 { font-weight: 800; font-size: 1.8rem; letter-spacing: -0.03em; margin-bottom: 0.35rem; }
.auth-card h2 i { display: none; }
.auth-card .auth-subtitle { color: var(--ink-3); margin-bottom: 1.75rem; }
.auth-card .auth-footer { text-align: center; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 0.92rem; }
.auth-card .auth-footer a { font-weight: 600; }

.profile-card { padding: 2.25rem; margin: 0.5rem auto 1rem; border-radius: var(--r-xl); }
.profile-card h2 { font-weight: 800; letter-spacing: -0.03em; }
.profile-card h2 i { display: none; }
.profile-step { display: inline-block; font-size: 0.82rem; font-weight: 600; color: var(--lime-ink); background: var(--lime); border-radius: 999px; padding: 0.1rem 0.6rem; margin-bottom: 0.6rem; }

.preference-group { margin-bottom: 1.75rem; }
.preference-group label { font-size: 1rem; }
.preference-group label.likes i { color: var(--green); }
.preference-group label.dislikes i { color: var(--red); }

.suggest { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.6rem; }
.suggest-chip {
    font: inherit; font-size: 0.85rem; cursor: pointer;
    padding: 0.22rem 0.7rem; border-radius: 999px;
    border: 1px dashed var(--line-strong); background: transparent; color: var(--ink-2);
    transition: all var(--t);
}
.suggest-chip:hover { border-style: solid; border-color: var(--ink); color: var(--ink); background: var(--surface-2); }

.check-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; padding: 0; margin: 0; }
.check-chips ul { display: contents; }
.check-chip { position: relative; margin: 0; cursor: pointer; }
.check-chip input { position: absolute; opacity: 0; pointer-events: none; }
.check-chip span {
    display: inline-block; padding: 0.42rem 0.9rem; border-radius: 999px;
    font-size: 0.92rem; font-weight: 500;
    border: 1px solid var(--line-strong); color: var(--ink-2); background: var(--surface);
    transition: all var(--t);
}
.check-chips.is-small .check-chip span { font-size: 0.82rem; padding: 0.26rem 0.7rem; }
.check-chip:hover span { border-color: var(--ink-3); }
.check-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.check-chip input:focus-visible + span { box-shadow: var(--focus); }

/* ============================================
   DASHBOARD
   ============================================ */
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin: 0.75rem 0 1.5rem; }
.dash-kicker { color: var(--ink-3); font-size: 0.95rem; margin-bottom: 0.1rem; }
.dash-kicker::first-letter { text-transform: uppercase; }
.dash-title { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; letter-spacing: -0.035em; margin: 0; line-height: 1.05; }

.my-pick {
    display: flex; align-items: center; gap: 0.9rem;
    padding: 0.85rem 1.1rem; margin-bottom: 1.5rem;
    border-radius: var(--r-lg); background: var(--lime-soft);
}
.my-pick > i {
    flex-shrink: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--lime); color: var(--lime-ink); font-size: 1.2rem;
}
.my-pick-label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--lime-deep); }
.my-pick strong { font-size: 1.05rem; font-weight: 700; }
.my-pick-place { color: var(--ink-2); }

.dash-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.75rem; align-items: start; }
.dash-subhead { font-size: 1.15rem; font-weight: 700; margin: 2rem 0 0.75rem; }

.rec-hero { display: flex; gap: 1.4rem; padding: 1.6rem; box-shadow: var(--shadow); border-radius: var(--r-xl); }
.rec-hero-score {
    flex-shrink: 0; width: 4.2rem; height: 4.2rem; border-radius: 50%;
    display: flex; align-items: baseline; justify-content: center; padding-top: 1.05rem;
    background: var(--lime); color: var(--lime-ink); font-weight: 600; font-size: 0.75rem;
}
.rec-hero-score span { font-size: 1.7rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.rec-hero-badge { display: inline-block; font-size: 0.8rem; font-weight: 600; color: var(--lime-deep); margin-bottom: 0.25rem; }
.rec-hero h3 { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 0.55rem; }
.rec-hero-body { min-width: 0; flex: 1; }

.rec-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.9rem; color: var(--ink-2); font-size: 0.92rem; margin-bottom: 0.6rem; }
.rec-line i { color: var(--ink-3); }
.rec-price { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.rec-desc { color: var(--ink-3); font-size: 0.92rem; margin-bottom: 0.55rem; }
.rec-why { color: var(--ink-2); font-size: 0.98rem; line-height: 1.55; margin-bottom: 1rem; padding-left: 0.8rem; border-left: 3px solid var(--lime); }
.rec-why i { display: none; }
.stale-badge { font-size: 0.75rem; font-weight: 600; padding: 0.1rem 0.55rem; border-radius: 999px; background: var(--red-soft); color: var(--red); }

.rec-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.rec-item { display: flex; gap: 1rem; padding: 1.1rem 1.2rem; }
.rec-item-score {
    flex-shrink: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface-2); color: var(--ink); font-weight: 800;
}
.rec-item-body { min-width: 0; flex: 1; }
.rec-item-title { font-weight: 700; font-size: 1.08rem; line-height: 1.3; margin-bottom: 0.35rem; letter-spacing: -0.01em; }
.rec-item .rec-why { font-size: 0.93rem; margin-bottom: 0.75rem; }

.side-card { padding: 1.25rem 1.3rem; margin-bottom: 1rem; }
.side-card h4 { font-size: 1.02rem; font-weight: 700; margin-bottom: 0.85rem; letter-spacing: -0.01em; }
.side-card h4 i { color: var(--ink-3); margin-right: 0.35rem; }
.side-note { color: var(--ink-3); font-size: 0.85rem; line-height: 1.5; margin: 0.75rem 0; }

.taste { margin: 0; font-size: 0.9rem; }
.taste dt { font-size: 0.8rem; font-weight: 500; color: var(--ink-3); margin-top: 0.6rem; }
.taste dd { margin: 0.1rem 0 0; color: var(--ink-2); }

/* ---- Meal actions ---- */
.meal-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem; }
.meal-actions form { margin: 0; }

.pick-btn, .rate-btn {
    font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer;
    display: inline-flex; align-items: center; gap: 0.35rem;
    border: 0; background: var(--surface-2); color: var(--ink-2); border-radius: 999px;
    transition: background var(--t), color var(--t), transform var(--t);
}
.pick-btn { padding: 0.42rem 0.95rem; }
.rate-btn { width: 2.15rem; height: 2.15rem; justify-content: center; padding: 0; }
.pick-btn:hover, .rate-btn:hover { background: var(--surface-3); color: var(--ink); }
.pick-btn:active, .rate-btn:active { transform: scale(0.96); }
.pick-btn:disabled, .rate-btn:disabled { opacity: 0.55; }
.pick-btn:focus-visible, .rate-btn:focus-visible { box-shadow: var(--focus); }

.pick-btn .pick-on { display: none; }
.pick-btn[aria-pressed="true"] { background: var(--lime); color: var(--lime-ink); }
.pick-btn[aria-pressed="true"] .pick-on { display: inline; }
.pick-btn[aria-pressed="true"] .pick-off { display: none; }
.rate-btn[data-kind="like"][aria-pressed="true"] { background: var(--green-soft); color: var(--green); }
.rate-btn[data-kind="dislike"][aria-pressed="true"] { background: var(--red-soft); color: var(--red); }
.meal-actions.is-compact .pick-btn { width: 2.15rem; height: 2.15rem; padding: 0; justify-content: center; }

.pick-friends { font-size: 0.85rem; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.pick-friends i { color: var(--lime-deep); }

.allergens { font-size: 0.8rem; color: var(--ink-3); white-space: nowrap; cursor: help; }

.app-toast {
    position: fixed; left: 50%; bottom: calc(1.5rem + env(safe-area-inset-bottom)); z-index: 2000;
    transform: translate(-50%, 0.75rem); opacity: 0; pointer-events: none;
    background: var(--ink); color: var(--bg); font-weight: 600; font-size: 0.92rem;
    padding: 0.65rem 1.15rem; border-radius: 999px; box-shadow: var(--shadow-lg);
    transition: opacity 0.2s, transform 0.2s;
}
.app-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.app-toast.is-error { background: var(--red); color: #fff; }
@media (max-width: 991px) { body.has-tabbar .app-toast { bottom: calc(84px + env(safe-area-inset-bottom)); } }

/* ============================================
   MENU PAGE
   ============================================ */
.day-tabs, .scope-toggle {
    display: inline-flex; flex-wrap: wrap; gap: 0.2rem;
    padding: 0.25rem; border-radius: 999px; background: var(--surface-2);
    margin: 0 0.5rem 1rem 0;
}
.day-tab, .scope-opt {
    padding: 0.4rem 0.95rem; border-radius: 999px; font-weight: 600; font-size: 0.9rem;
    color: var(--ink-3); text-decoration: none; transition: background var(--t), color var(--t);
}
.day-tab:hover, .scope-opt:hover { color: var(--ink); }
.day-tab[aria-current="page"], .scope-opt[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.scope-note { align-self: center; color: var(--ink-3); font-size: 0.85rem; padding: 0 0.6rem; }

.menu-filters { position: sticky; top: 64px; z-index: 50; background: var(--bg); padding: 0.75rem 0 0.6rem; margin-bottom: 0.75rem; }
.menu-search { position: relative; margin-bottom: 0.65rem; }
.menu-search i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.menu-search input {
    width: 100%; padding: 0.75rem 1rem 0.75rem 2.6rem; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink); font: inherit;
}
.menu-search input::placeholder { color: var(--ink-3); }
.menu-search input:focus { outline: none; border-color: var(--lime-deep); box-shadow: var(--focus); }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.chip-group { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.filter-chip {
    font: inherit; font-size: 0.86rem; font-weight: 500; cursor: pointer;
    padding: 0.3rem 0.85rem; border-radius: 999px;
    border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2);
}
.filter-chip:hover { border-color: var(--ink-3); color: var(--ink); }
.filter-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.filter-select, .filter-toggle { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.88rem; color: var(--ink-2); margin: 0; cursor: pointer; }
.filter-select select { font: inherit; padding: 0.28rem 0.6rem; border-radius: 999px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.filter-toggle input { accent-color: var(--ink); width: 1rem; height: 1rem; }
.filter-count { font-size: 0.82rem; color: var(--ink-3); margin: 0.5rem 0 0; }

.menu-restaurant-card { overflow: hidden; margin-bottom: 1rem; }
.menu-r-header { padding: 1.1rem 1.3rem 0.6rem; display: flex; align-items: center; gap: 0.6rem; }
.menu-r-header > i { display: none; }
.menu-r-header > div { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.6rem; }
.menu-r-header > div small { flex-basis: 100%; color: var(--ink-3); font-size: 0.88rem; }
.menu-r-header h4 { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; margin: 0; }
.menu-r-link { margin-left: auto; color: var(--ink-3) !important; font-size: 0.9rem; width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.menu-r-link:hover { background: var(--surface-2); color: var(--ink) !important; }
.walk-time { font-size: 0.8rem; font-weight: 600; color: var(--ink-2); background: var(--surface-2); border-radius: 999px; padding: 0.08rem 0.55rem; white-space: nowrap; }
.walk-time i { color: var(--lime-deep); }

.meal-list { list-style: none; margin: 0; padding: 0.15rem 0.5rem 0.5rem; }
.meal-row { display: flex; gap: 1rem; align-items: flex-start; padding: 0.75rem 0.8rem; border-radius: var(--r); }
.meal-row + .meal-row { border-top: 1px solid var(--line); border-radius: 0; }
.meal-row.is-rec { background: var(--lime-soft); border-radius: var(--r); border-top-color: transparent; }
.meal-row.is-rec + .meal-row { border-top-color: transparent; }
.meal-main { min-width: 0; flex: 1; }
.meal-head { display: flex; align-items: baseline; gap: 0.75rem; }
.meal-title { font-weight: 600; line-height: 1.35; }
.meal-leader { display: none; }
.meal-head .meal-price { margin-left: auto; font-size: 0.95rem; }
.meal-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.6rem; font-size: 0.86rem; color: var(--ink-3); margin-top: 0.3rem; }
.meal-side { flex-shrink: 0; }
.for-you { display: inline-block; font-size: 0.72rem; font-weight: 700; color: var(--lime-ink); background: var(--lime); border-radius: 999px; padding: 0.05rem 0.5rem; margin-right: 0.3rem; vertical-align: 2px; }

.menu-suggest { margin-top: 1.5rem; color: var(--ink-2); }
.allergen-legend { margin-top: 1rem; font-size: 0.88rem; color: var(--ink-3); }
.allergen-legend summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
.allergen-legend ul { list-style: none; padding: 0; margin: 0.75rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.3rem 1rem; }

/* ============================================
   ADMIN
   ============================================ */
.admin-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.admin-table .restaurant-name { font-weight: 600; }
.status-badge { display: inline-block; padding: 0.08rem 0.55rem; border-radius: 999px; font-size: 0.76rem; font-weight: 600; }
.status-badge.active { background: var(--green-soft); color: var(--green); }
.status-badge.inactive { background: var(--surface-2); color: var(--ink-3); }
.log-status-ok { color: var(--green); font-weight: 600; }
.log-status-err { color: var(--red); font-weight: 600; }
.scraper-badge { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; font-weight: 500; padding: 0.12rem 0.6rem; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.scraper-badge i { color: var(--ink-3); }
.scraper-badge.is-llm { background: var(--amber-soft); }
.admin-help { padding: 0.9rem 1.2rem; font-size: 0.92rem; color: var(--ink-2); }
.admin-help summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.admin-help pre { background: var(--surface-2); border-radius: var(--r-sm); padding: 0.7rem 0.9rem; margin: 0.6rem 0; white-space: pre-wrap; word-break: break-all; }
.admin-help pre code { background: none; padding: 0; }

/* ============================================
   RESTAURANT REQUESTS
   ============================================ */
.req-layout { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 2rem; align-items: start; }
.req-form-card { padding: 1.5rem; position: sticky; top: 84px; }
.req-heading { font-size: 1.25rem; font-weight: 800; margin-bottom: 0.75rem; letter-spacing: -0.02em; }

.req-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.req-item { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 0.9rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.req-votes { text-align: center; line-height: 1.1; background: var(--surface-2); border-radius: var(--r); padding: 0.4rem 0; }
.req-votes-n { display: block; font-size: 1.3rem; font-weight: 800; }
.req-votes-label { font-size: 0.72rem; color: var(--ink-3); }
.req-name { font-weight: 700; font-size: 1.05rem; }
.req-city { font-size: 0.8rem; font-weight: 500; color: var(--ink-2); background: var(--surface-2); border-radius: 999px; padding: 0.05rem 0.5rem; margin-left: 0.35rem; vertical-align: 2px; }
.req-url { font-size: 0.9rem; color: var(--ink-3); word-break: break-all; }
.req-note { color: var(--ink-2); margin: 0.25rem 0 0; font-size: 0.93rem; }

.req-mine { list-style: none; padding: 0; margin: 0; }
.req-mine li { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.req-mine-line { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.req-mine-meta { font-size: 0.9rem; color: var(--ink-3); }
.req-reply { color: var(--ink-2); margin: 0.35rem 0 0; padding-left: 0.7rem; border-left: 3px solid var(--line-strong); }
.req-withdraw { font: inherit; font-size: 0.88rem; background: none; border: 0; padding: 0; margin-top: 0.3rem; color: var(--ink-3); text-decoration: underline; cursor: pointer; }
.req-withdraw:hover { color: var(--red); }

.req-status { font-size: 0.78rem; font-weight: 600; padding: 0.08rem 0.6rem; border-radius: 999px; white-space: nowrap; }
.req-status.is-pending { background: var(--surface-2); color: var(--ink-2); }
.req-status.is-approved { background: var(--green-soft); color: var(--green); }
.req-status.is-rejected { background: var(--red-soft); color: var(--red); }

.admin-req-list { display: grid; gap: 0.9rem; }
.admin-req { padding: 1.2rem 1.4rem; }
.admin-req-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.admin-req-name { font-size: 1.2rem; font-weight: 800; margin: 0; }
.admin-req-meta { color: var(--ink-3); font-size: 0.92rem; }
.admin-req-note { color: var(--ink-2); margin: 0.25rem 0 0; }
.admin-req-more { margin-top: 0.75rem; }
.admin-req-more summary { cursor: pointer; color: var(--ink-3); font-size: 0.92rem; }
.admin-req-more summary:hover { color: var(--ink); }
.admin-req-forms { display: grid; gap: 1rem; padding-top: 0.75rem; }

/* ============================================
   LUNCH LOG ("Co bylo k obědu?")
   ============================================ */
.lunch-ask { padding: 1.15rem 1.3rem; margin-bottom: 1.5rem; background: var(--surface); box-shadow: var(--shadow); }
.lunch-ask h3 { font-size: 1.2rem; font-weight: 800; margin: 0 0 0.3rem; }
.lunch-ask-plan { color: var(--ink-2); margin-bottom: 0.8rem; }
.lunch-ask-rate { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 0.6rem; }
.lunch-ask-rate form, .lunch-ask-other form { margin: 0; }
.lunch-ask-other { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 1.2rem; font-size: 0.92rem; margin-top: 0.4rem; }
.lunch-ask-other a { color: var(--ink-2); }

.rate-chip {
    font: inherit; font-weight: 600; cursor: pointer;
    padding: 0.42rem 1.05rem; border-radius: 999px;
    border: 0; background: var(--surface-2); color: var(--ink);
    transition: background var(--t), color var(--t), transform var(--t);
}
.rate-chip:hover { background: var(--surface-3); }
.rate-chip:active { transform: scale(0.97); }
.rate-chip.rate-3:hover, .rate-chip.rate-3.is-static { background: var(--lime); color: var(--lime-ink); }
.rate-chip.rate-1:hover, .rate-chip.rate-1.is-static { background: var(--red-soft); color: var(--red); }
.rate-chip.is-static { cursor: default; font-size: 0.82rem; padding: 0.1rem 0.6rem; }

.lunch-form { max-width: 720px; }
.lunch-group { font-size: 1.1rem; font-weight: 800; margin: 1.5rem 0 0.6rem; }
.lunch-options { display: grid; gap: 0.4rem; }
.lunch-option {
    display: flex; gap: 0.75rem; align-items: flex-start; margin: 0; cursor: pointer;
    padding: 0.75rem 0.95rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
    transition: border-color var(--t), background var(--t);
}
.lunch-option:hover { border-color: var(--line-strong); }
.lunch-option:has(input:checked) { border-color: var(--lime-deep); background: var(--lime-soft); }
.lunch-option input[type=radio] { accent-color: var(--ink); margin-top: 0.3rem; flex-shrink: 0; }
.lunch-option-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.lunch-option-name { font-weight: 600; }
.lunch-option-meta { font-size: 0.9rem; color: var(--ink-3); }
.lunch-restaurant { border-bottom: 1px solid var(--line); }
.lunch-restaurant summary { cursor: pointer; padding: 0.65rem 0; font-weight: 600; }
.lunch-restaurant .lunch-options { padding-bottom: 0.75rem; }
.lunch-rating { margin: 1.5rem 0 0; border: 0; padding: 0; }
.lunch-rating legend { font-size: 1.1rem; font-weight: 800; margin-bottom: 0.6rem; }
.lunch-submit { display: flex; gap: 0.5rem; margin-top: 1.5rem; }

.lunch-missing { background: var(--lime-soft); border-radius: var(--r); padding: 0.75rem 1rem; margin-bottom: 1.5rem; color: var(--ink-2); }
.lunch-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.75rem; margin: 0 0 1.75rem; }
.lunch-stats > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0.9rem 1.1rem; }
.lunch-stats dt { font-weight: 500; font-size: 0.85rem; color: var(--ink-3); }
.lunch-stats dd { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.lunch-diary { list-style: none; padding: 0; margin: 0; max-width: 820px; display: grid; gap: 0.5rem; }
.lunch-diary li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 0.8rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.lunch-diary-date { color: var(--ink-3); font-variant-numeric: tabular-nums; font-size: 0.92rem; }
.lunch-diary-name { font-weight: 600; }
.lunch-diary-meta { font-size: 0.88rem; color: var(--ink-3); }
.lunch-diary-side { display: flex; align-items: center; gap: 0.8rem; }
.lunch-edit { font-size: 0.88rem; color: var(--ink-3); }

/* ============================================
   LOCATION (profile, admin, menu scope)
   ============================================ */
.pref-location { border: 0; padding: 0 0 1.75rem; margin: 0 0 1.75rem; border-bottom: 1px solid var(--line); }
.pref-location legend { font-size: 1.25rem; font-weight: 800; margin-bottom: 0.25rem; letter-spacing: -0.02em; }
.loc-search { display: flex; gap: 0.5rem; }
.loc-search .form-control { flex: 1; min-width: 0; }
.loc-results { list-style: none; padding: 0; margin: 0.4rem 0 0; display: grid; gap: 0.25rem; }
.loc-results:empty { display: none; }
.loc-result {
    width: 100%; text-align: left; font: inherit; font-size: 0.9rem; cursor: pointer;
    padding: 0.5rem 0.75rem; border-radius: var(--r-sm);
    border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.loc-result:hover { border-color: var(--lime-deep); background: var(--lime-soft); }
.loc-muted { color: var(--ink-3); font-size: 0.9rem; padding: 0.3rem 0.1rem; }
.loc-map { height: 260px; margin-top: 0.75rem; border-radius: var(--r-lg); border: 1px solid var(--line-strong); z-index: 0; overflow: hidden; }
.loc-map-sm { height: 200px; }
.loc-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 0.35rem; }
.leaflet-container { font-family: var(--font); }
[data-theme="dark"] .loc-map .leaflet-tile { filter: brightness(0.7) contrast(1.1) saturate(0.5); }
.lp-cities { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.25rem 0 1rem; }
.lp-cities a { font-size: 0.88rem; font-weight: 600; color: var(--ink-2); text-decoration: none; background: var(--surface-2); border-radius: 999px; padding: 0.25rem 0.8rem; }
.lp-cities a[aria-current="true"] { background: var(--ink); color: var(--bg); }

/* ============================================
   FRIENDS
   ============================================ */
.friends-layout { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 2rem; align-items: start; }
.invite-row { display: flex; gap: 0.5rem; }
.invite-row .form-control { flex: 1; min-width: 0; }
.friends-invite { background: var(--lime-soft); border-color: transparent; }
.friends-invite #inviteUrl { font-size: 0.88rem; color: var(--ink-2); }
.friend-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.friend-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.8rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.friend-name { font-weight: 700; font-size: 1.02rem; }
.friend-today { font-size: 0.9rem; color: var(--ink-3); }
.friend-today em { font-style: normal; color: var(--ink-2); }
.friend-actions { display: flex; gap: 0.4rem; }
.friend-actions form { margin: 0; }

.friend-picks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.8rem; }
.friend-picks li { padding-bottom: 0.8rem; border-bottom: 1px solid var(--line); }
.friend-picks li:last-child { border-bottom: 0; padding-bottom: 0; }
.friend-pick-who { font-weight: 700; }
.friend-pick-what { font-size: 0.92rem; color: var(--ink-2); line-height: 1.35; }
.friend-pick-where { font-size: 0.86rem; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 0.2rem 0.75rem; align-items: center; margin-top: 0.15rem; }
.friend-pick-where .link-btn { font-weight: 600; color: var(--lime-ink); text-decoration: none; background: var(--lime); border-radius: 999px; padding: 0.05rem 0.6rem; font-size: 0.8rem; }
.friend-pick-same { font-size: 0.82rem; font-weight: 600; color: var(--lime-deep); }

/* ============================================
   ROZHODNI ZA MĚ (decide for me)
   ============================================ */
.dash-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.dash-actions form { margin: 0; }

.decide {
    position: fixed; inset: 0; z-index: 2100;
    display: flex; align-items: center; justify-content: center; padding: 1rem;
    background: rgba(10, 10, 10, 0.45);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    animation: decideFade 0.18s ease;
}
.decide[hidden] { display: none; }
.decide-card {
    position: relative; width: min(440px, 100%);
    background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
    padding: 2rem 1.5rem 1.5rem; text-align: center;
    animation: decidePop 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.decide-close {
    position: absolute; top: 0.8rem; right: 0.8rem; width: 2.2rem; height: 2.2rem;
    border: 0; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); cursor: pointer;
}
.decide-close:hover { background: var(--surface-3); color: var(--ink); }
.decide-kicker { font-weight: 600; color: var(--ink-3); margin-bottom: 1rem; }
.decide-window {
    background: var(--lime); border-radius: var(--r-lg); padding: 1.6rem 1.1rem; min-height: 8.5rem;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.decide-reel { color: var(--lime-ink); }
.decide-name { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; }
.decide-place { font-size: 0.95rem; font-weight: 500; margin-top: 0.35rem; opacity: 0.75; }
.decide-reel.tick { animation: decideTick 0.12s ease-out; }
.decide-reel.landed { animation: decideLand 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.4); }
.decide-actions { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.2rem; flex-wrap: wrap; }
.decide-actions[hidden] { display: none; }
.decide-hint { font-size: 0.82rem; color: var(--ink-3); margin: 1rem 0 0; }
@media (hover: hover) and (pointer: fine) { .decide-hint { display: none; } }

@keyframes decideFade { from { opacity: 0; } }
@keyframes decidePop { from { transform: scale(0.94); opacity: 0; } }
@keyframes decideTick { from { transform: translateY(-40%); opacity: 0.2; } }
@keyframes decideLand { 0% { transform: scale(0.9); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }

/* ============================================
   OBĚDOVÝ WRAPPED
   ============================================ */
.wr-teaser {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding: 0.9rem 1.1rem; margin-bottom: 1.25rem; border-radius: var(--r-lg);
    background: var(--lime); color: var(--lime-ink); text-decoration: none;
}
.wr-teaser:hover { background: var(--lime-hover); color: var(--lime-ink); }
.wr-nav { display: flex; justify-content: space-between; gap: 0.5rem; margin-bottom: 1.25rem; max-width: 720px; }
.wrapped { max-width: 720px; border-radius: var(--r-xl); background: var(--lime); color: var(--lime-ink); padding: 1.75rem; }
.wr-hero { margin-bottom: 1.5rem; }
.wr-kicker { font-weight: 600; font-size: 0.92rem; opacity: 0.75; }
.wr-persona { color: var(--lime-ink); font-size: clamp(2.2rem, 7vw, 3.6rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; margin: 0.4rem 0 0.6rem; }
.wr-persona-line { font-size: 1.1rem; margin: 0; }
.wr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.wr-tile { background: rgba(255, 255, 255, 0.85); border-radius: var(--r-lg); padding: 0.9rem 1rem; display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; color: #141414; }
.wr-wide { grid-column: span 2; }
.wr-accent { background: #141414; color: var(--lime); justify-content: center; }
.wr-accent .wr-sub { color: rgba(212, 243, 102, 0.8); }
.wr-label { font-size: 0.8rem; font-weight: 600; color: #57564f; }
.wr-value { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
.wr-value-text { font-size: 1.15rem; letter-spacing: -0.02em; line-height: 1.25; overflow-wrap: anywhere; }
.wr-sub { font-size: 0.82rem; color: #57564f; }
.wr-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; margin: 0.4rem 0 0.3rem; background: #e6e5de; }
.wr-bar .is-great { background: #5f7d12; }
.wr-bar .is-good { background: #a5c63a; }
.wr-bar .is-meh { background: #d93d42; }
.wr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 1.25rem; max-width: 720px; }

/* ============================================
   MAP VIEW
   ============================================ */
.view-toggle { display: inline-flex; gap: 0.2rem; padding: 0.25rem; border-radius: 999px; background: var(--surface-2); margin: 0 0.5rem 1rem 0; }
.view-toggle .scope-opt i { margin-right: 0.2rem; }
.menu-map { height: min(68vh, 560px); margin-top: 0.25rem; }
.map-pin {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 0.4rem; border-radius: 999px;
    background: var(--surface); color: var(--ink); border: 2px solid var(--ink);
    font-weight: 800; font-size: 0.85rem; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    font-family: var(--font);
}
.map-pin.is-rec { background: var(--lime); color: var(--lime-ink); border-color: var(--lime-ink); font-size: 1rem; }
.map-me { display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: #2f6fed; border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(47, 111, 237, 0.35); }
.map-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.9rem; font-size: 0.85rem; color: var(--ink-3); margin-top: 0.75rem; }
.map-legend .map-pin { min-width: 26px; height: 26px; font-size: 0.72rem; box-shadow: none; border-width: 1.5px; }
.map-legend .map-me { width: 14px; height: 14px; border-width: 2px; }
.map-unplaced { font-size: 0.9rem; color: var(--ink-3); margin-top: 0.75rem; }
.map-popup { font-family: var(--font); color: #141414; }
.map-popup-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.5rem; margin-bottom: 0.5rem; }
.map-popup-head strong { font-size: 1rem; }
.map-popup-meals { list-style: none; padding: 0; margin: 0 0 0.6rem; display: grid; gap: 0.35rem; }
.map-popup-meals li { display: flex; justify-content: space-between; gap: 0.6rem; font-size: 0.86rem; line-height: 1.3; }
.map-popup-meals li.is-rec { font-weight: 600; }
.map-popup-name { min-width: 0; }
.map-popup-link { font-weight: 600; font-size: 0.86rem; color: #141414 !important; }
.leaflet-popup-content-wrapper { border-radius: 16px; }

/* ---- Profile: morning e-mail ---- */
.pref-digest { border: 0; padding: 1.5rem 0 0; margin: 0 0 1.75rem; border-top: 1px solid var(--line); }
.pref-digest legend { font-size: 1.25rem; font-weight: 800; margin-bottom: 0.6rem; letter-spacing: -0.02em; }
.digest-switch { display: flex; align-items: flex-start; gap: 0.75rem; cursor: pointer; font-weight: 500; margin-bottom: 0.35rem; }
.digest-switch .form-check-input { width: 2.6em; height: 1.4em; margin: 0.05rem 0 0; flex-shrink: 0; border-radius: 2em; cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23999'/%3e%3c/svg%3e");
    background-position: left center; background-repeat: no-repeat; transition: background-position .15s ease; }
.digest-switch .form-check-input:checked { background-position: right center; background-color: var(--ink); border-color: var(--ink);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23d4f366'/%3e%3c/svg%3e"); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .dash-layout { grid-template-columns: 1fr; }
    .navbar .nav-link.active { box-shadow: none; background: var(--surface-2); }
}

@media (max-width: 860px) {
    .req-layout, .friends-layout { grid-template-columns: 1fr; }
    .req-form-card { position: static; }
}

@media (max-width: 767px) {
    .wr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wr-wide { grid-column: 1 / -1; }
    .wrapped { padding: 1.25rem; }
    .dash-actions { width: 100%; }
    .dash-actions .btn, .dash-actions form { flex: 1; }
    .dash-actions form .btn { width: 100%; }
    .rec-hero { flex-direction: column; gap: 0.85rem; padding: 1.3rem; }
    .rec-hero h3 { font-size: 1.35rem; }
    .meal-row { flex-direction: column; gap: 0.5rem; }
    .meal-side { align-self: flex-end; }
    .menu-filters { position: static; }
    .admin-actions { flex-direction: column; }
    .auth-card, .profile-card { margin: 0.75rem 0; padding: 1.5rem; }
    .lunch-diary li { grid-template-columns: 4.5rem minmax(0, 1fr); }
    .lunch-diary-side { grid-column: 2; }
}

@media (max-width: 520px) {
    .req-item { grid-template-columns: 3rem minmax(0, 1fr); }
    .req-action { grid-column: 2; }
}

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

/* Admin: anonymous tries */
.try-toggle {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem;
    padding: 1rem 1.15rem; margin-bottom: 1.25rem; border-radius: var(--r-lg);
    background: var(--surface); border: 1px solid var(--line);
}
.try-toggle.is-on { background: var(--lime-soft); border-color: var(--lime); }
.try-toggle b { display: block; }
.try-toggle span { color: var(--ink-2); font-size: 0.92rem; }
.try-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.6rem; margin-bottom: 1.25rem; }
.try-stats > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 0.9rem 1rem; }
.try-stats b { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; }
.try-stats span { color: var(--ink-3); font-size: 0.88rem; }
.try-tallies { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.6rem; }
.try-tallies section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 0.9rem 1rem; }
.try-tallies h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); margin-bottom: 0.5rem; }
.try-tallies ul { list-style: none; padding: 0; margin: 0; }
.try-tallies li { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.92rem; padding: 0.15rem 0; }
