:root {
    --bg: #f3ece0;
    --panel: #fffdf8;
    --panel-2: #ece2d1;
    --text: #2c2a26;
    --muted: #8a8172;
    --accent: #e08a3c;
    --accent-hover: #c9742a;
    --danger: #cf4a5b;
    --ok: #4a9d5b;
    --border: #e3d9c6;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Decoratief Nomster-manneke, centraal onderaan (achtergrond) */
body::after {
    content: "";
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(70vw, 340px);
    height: min(42vh, 300px);
    background: url("/assets/favicon.svg") no-repeat center bottom;
    background-size: contain;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
}

/* Inhoud boven het watermerk houden */
.topbar, .container, .footer, .auth-wrap { position: relative; z-index: 1; }

/* Topbar */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    background: var(--panel);
    border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text); }
.logo { height: 46px; width: auto; display: block; }
.brand-name { font-size: 1.25rem; font-weight: 700; letter-spacing: 0.5px; }
.topnav { display: flex; align-items: center; gap: 1rem; }
.user-email { color: var(--muted); font-size: 0.9rem; }
.logout { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.logout:hover { color: var(--text); }

/* Gear menu */
.gear { position: relative; }
.gear-btn { background: none; border: none; color: var(--muted); cursor: pointer; display: flex; padding: 0.3rem; border-radius: 6px; }
.gear-btn:hover { color: var(--text); background: var(--panel-2); }
.gear-menu {
    display: none; position: absolute; right: 0; top: 120%;
    background: var(--panel-2); border: 1px solid var(--border);
    border-radius: 8px; min-width: 190px; overflow: hidden; z-index: 20;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.gear-menu.open { display: block; }
.gear-menu a { display: block; padding: 0.7rem 1rem; color: var(--text); text-decoration: none; font-size: 0.92rem; }
.gear-menu a:hover { background: var(--accent); color: #1a1a1a; }

/* Layout */
.container { flex: 1; width: 100%; max-width: 960px; margin: 0 auto; padding: 2rem 1.25rem; }
.footer { text-align: center; padding: 1rem; color: var(--muted); font-size: 0.8rem; border-top: 1px solid var(--border); }

/* Auth cards */
.auth-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.card {
    background: var(--panel); border: 1px solid var(--border);
    border-radius: 14px; padding: 2rem; width: 100%; max-width: 400px;
}
.card.wide { max-width: 100%; }
.logo-placeholder {
    width: 72px; height: 72px; margin: 0 auto 1rem; display: block;
    border-radius: 16px;
}
.logo-primary {
    width: 130px; height: 130px; margin: 0 auto 1.25rem; display: block;
    background: #fff; border-radius: 24px; padding: 16px;
}

/* ---------- Licht auth-thema (login / wachtwoord) ---------- */
body.auth-light { background: #f6f4f0; color: #1d1d1b; }
body.auth-light .card {
    background: #ffffff; border-color: #e8e3da; color: #1d1d1b;
    box-shadow: 0 12px 40px rgba(29,29,27,0.08);
}
body.auth-light .card .sub { color: #6b7280; }
body.auth-light label { color: #6b7280; }
body.auth-light input[type=email],
body.auth-light input[type=password],
body.auth-light input[type=text] {
    background: #fff; border-color: #d9d3c8; color: #1d1d1b;
}
body.auth-light .alert.info { background: #fff7e6; border-color: #f0c674; color: #92610a; }

/* ---------- Geanimeerd logo ---------- */
.nomster-anim {
    width: 280px; max-width: 82%; height: auto; display: block; margin: 0 auto 1rem;
    --ink: #1d1d1b;
    --glow: #f59e0b;
}
.nomster-anim .ink { fill: var(--ink); }
.nomster-anim .halo { animation: nm-halo 3.4s ease-in-out infinite; }
.nomster-anim .sweep { animation: nm-sweep 3.6s ease-in-out infinite; }
.nomster-anim .chew {
    transform-box: fill-box; transform-origin: center;
    animation: nm-chew 1.7s ease-in-out infinite;
}
.nomster-anim .mouth {
    transform-box: fill-box; transform-origin: center;
    animation: nm-mouth 1.7s ease-in-out infinite;
}
@keyframes nm-halo { 0%,100% { opacity: 0.2; } 50% { opacity: 0.5; } }
@keyframes nm-sweep {
    0%   { transform: translateX(-380px); opacity: 0; }
    15%  { opacity: 0.85; }
    85%  { opacity: 0.85; }
    100% { transform: translateX(1080px); opacity: 0; }
}
@keyframes nm-chew {
    0%,100% { transform: scale(1) rotate(0deg); }
    50%     { transform: scale(1.02) rotate(-1.5deg); }
}
@keyframes nm-mouth {
    0%,100% { transform: scaleY(1); }
    50%     { transform: scaleY(1.7); }
}
@media (prefers-reduced-motion: reduce) {
    .nomster-anim .halo, .nomster-anim .sweep,
    .nomster-anim .chew, .nomster-anim .mouth { animation: none; }
}
.card h1 { text-align: center; margin: 0 0 0.25rem; font-size: 1.5rem; }
.card .sub { text-align: center; color: var(--muted); margin: 0 0 1.5rem; font-size: 0.9rem; }

/* Forms */
label { display: block; margin: 0.9rem 0 0.35rem; font-size: 0.88rem; color: var(--muted); }
input[type=email], input[type=password], input[type=text], input[type=number],
input[type=date], input[type=time], select, textarea {
    width: 100%; box-sizing: border-box; padding: 0.7rem 0.85rem; border-radius: 10px;
    border: 1px solid var(--border); background: var(--panel); color: var(--text);
    font-size: 0.95rem; font-family: inherit; min-height: 46px;
}
select {
    appearance: none; -webkit-appearance: none; padding-right: 2.2rem; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8172' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 0.85rem center; background-size: 12px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
input[type=file] { padding: 0.4rem 0.5rem; cursor: pointer; }
input[type=file]::file-selector-button {
    font-family: inherit; font-weight: 600; font-size: 0.85rem; border: none; cursor: pointer;
    background: var(--accent); color: #fff; padding: 0.55rem 0.9rem; border-radius: 8px; margin-right: 0.75rem;
}
input[type=file]::file-selector-button:hover { background: var(--accent-hover); }
input[type=date]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 0.65; }
input[type=date]::-webkit-calendar-picker-indicator:hover { opacity: 1; }
button.btn, .btn {
    display: inline-block; margin-top: 1.25rem; width: 100%; padding: 0.75rem;
    background: var(--accent); color: #1a1a1a; border: none; border-radius: 8px;
    font-size: 1rem; font-weight: 600; cursor: pointer; text-align: center; text-decoration: none;
}
.btn:hover { background: var(--accent-hover); }
.btn.small { width: auto; margin: 0; padding: 0.4rem 0.75rem; font-size: 0.82rem; }
.btn.secondary { background: var(--panel-2); color: var(--text); }
.btn.danger { background: var(--danger); color: #fff; }

/* Alerts */
.alert { padding: 0.75rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: 0.9rem; }
.alert.error { background: #fbe9ea; border: 1px solid #e0a3a9; color: #8a2b34; }
.alert.ok { background: #e9f3ea; border: 1px solid #a8cfae; color: #2f6b3a; }
.alert.info { background: #fbf1de; border: 1px solid #e6c987; color: #8a611a; }

/* Tables */
table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.88rem; }
th, td { text-align: left; padding: 0.6rem 0.6rem; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; }
.tag { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.72rem; font-weight: 600; }
.tag.ok { background: #dcefe0; color: #2f6b3a; }
.tag.locked { background: #f6dcdf; color: #8a2b34; }
.tag.muted { background: var(--panel-2); color: var(--muted); }

/* ---------- Ingrediënten: categorieknoppen ---------- */
.cat-grid {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 1.5rem;
}
.cat-btn { flex: 1 1 150px; max-width: 220px; }
.cat-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.4rem; padding: 1.75rem 1rem; border-radius: 16px; text-decoration: none;
    color: #fff; background: var(--cat, var(--accent));
    border: 1px solid rgba(255,255,255,0.15); transition: transform .12s ease, filter .12s ease;
}
.cat-btn:hover { transform: translateY(-3px); filter: brightness(1.08); }
.cat-emoji { font-size: 2.6rem; line-height: 1; }
.cat-label { font-weight: 700; letter-spacing: 1px; font-size: 1rem; }
.cat-count { font-size: 0.8rem; opacity: 0.85; }

/* ---------- Ingrediënten: itemkaarten ---------- */
.ing-grid {
    display: grid; gap: 1rem; margin-top: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.ing-card {
    background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
    overflow: hidden; display: flex; flex-direction: column;
}
.ing-card.excluded { opacity: 0.5; }
.ing-photo {
    position: relative; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--cat) 22%, var(--panel));
}
.ing-photo img { width: 100%; height: 100%; object-fit: cover; }
.ing-ph { font-size: 3rem; }
/* Nomster-placeholder in plaats van emoji, in alle keuze-/kaartcontexten */
.ph-img { width: 50%; height: 50%; object-fit: contain; opacity: 0.45; }
.ing-badge {
    position: absolute; top: 6px; left: 6px; font-size: 0.65rem; font-weight: 700;
    padding: 0.1rem 0.45rem; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.5px;
}
.ing-badge.g { background: rgba(148,163,184,0.9); color: #0f172a; }
.ing-badge.o { background: var(--accent); color: #1a1a1a; }
.ing-x {
    position: absolute; bottom: 6px; right: 6px; font-size: 0.62rem; font-weight: 700;
    padding: 0.1rem 0.4rem; border-radius: 6px; background: var(--danger); color: #fff; text-transform: uppercase;
}
.ing-name { padding: 0.6rem 0.6rem 0.3rem; font-weight: 600; font-size: 0.92rem; }
.ing-actions { padding: 0 0.6rem 0.7rem; margin-top: auto; }
/* Placeholder (Nomster-manneke) bij geen foto */
.ing-ph-img { width: 48%; height: 48%; object-fit: contain; opacity: 0.45; }
/* Foto wissen (kruisje op de foto) */
.ing-photo-clear { position: absolute; top: 6px; right: 6px; margin: 0; }
.ing-photo-clear button { width: 26px; height: 26px; border-radius: 50%; border: none; background: rgba(0,0,0,0.55); color: #fff; cursor: pointer; font-size: 0.8rem; line-height: 1; display: flex; align-items: center; justify-content: center; }
/* Hernoemen met potlood */
.ing-rename > summary.ing-name { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 0.3rem; }
.ing-rename > summary::-webkit-details-marker { display: none; }
.ing-rename .pencil { color: var(--muted); font-size: 0.85rem; }
.ing-rename-form { display: flex; gap: 0.4rem; padding: 0 0.6rem 0.5rem; }
.ing-rename-form input { min-height: 38px; }
/* Actieknoppen gelijke grootte */
.ing-actions-row { display: flex; gap: 0.4rem; }
.ing-actions-row form { flex: 1; }
.icon-btn { width: 100%; display: flex; align-items: center; justify-content: center; min-height: 40px; cursor: pointer; }
.excl-form { margin: 0; }
.excl-label { display: flex; align-items: center; gap: 0.4rem; margin: 0; font-size: 0.82rem; color: var(--muted); cursor: pointer; }
.excl-label input { width: auto; }

/* ---------- Moderne dashboard-hoofdknoppen ---------- */
.main-buttons {
    display: grid; gap: 1.25rem; margin: 1.75rem 0 2.75rem;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.mainbtn {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem;
    padding: 2.4rem 1rem; text-decoration: none; color: var(--text);
    background: var(--panel); border: 1px solid var(--border);
    border-radius: 32px 6px 32px 6px;
    box-shadow: 0 6px 20px rgba(120,100,60,0.06);
    transition: transform .14s ease, background .14s ease, color .14s ease, box-shadow .14s ease;
}
.mainbtn:hover {
    transform: translateY(-4px); background: var(--accent); color: #fff;
    box-shadow: 0 14px 30px rgba(224,138,60,0.30);
}
.mainbtn-ico { font-size: 2.9rem; line-height: 1; }
.mainbtn-lbl { font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; font-size: 0.95rem; }

/* ---------- Sectie Vandaag ---------- */
.today-title {
    text-transform: uppercase; letter-spacing: 2px; font-size: 1.1rem; color: var(--text);
    border-bottom: 2px solid var(--accent); padding-bottom: 0.5rem; margin: 0 0 1rem;
}
.today-card, .panel-card {
    background: var(--panel); border: 1px solid var(--border);
    border-radius: 18px 4px 18px 4px; padding: 1.5rem; color: var(--muted);
}

/* ---------- Dashboard volgorde: mobiel kalender eerst, knoppen eronder ---------- */
.dash { display: flex; flex-direction: column; }
.dash-cal { order: 1; }
.dash-buttons { order: 2; }
@media (min-width: 700px) {
    .dash-buttons { order: 1; }
    .dash-cal { order: 2; }
}

/* ---------- Dashboard: dag/week-schakelaar + ingebouwde weergave ---------- */
.dash-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.dash-cal-head .today-title { margin: 0; border: none; }
.dash-toggle { display: flex; }
.dash-toggle form { margin: 0; }
.seg {
    border: 1px solid var(--border); background: var(--panel); color: var(--text);
    padding: 0.5rem 1.1rem; cursor: pointer; font-size: 0.85rem; font-weight: 600; min-height: 42px;
}
.dash-toggle form:first-child .seg { border-radius: 12px 0 0 12px; }
.dash-toggle form:last-child .seg { border-radius: 0 12px 12px 0; border-left: none; }
.seg.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.today-title { margin-top: 1rem; }
.dash-cal-head + .today-card, .dash-cal-head + .dash-week { margin-top: 1rem; }
.dash-today { display: block; text-decoration: none; color: inherit; }
.dash-today .cal-ing, .dash-today .cal-free { font-size: 1rem; line-height: 1.6; white-space: normal; }
.dash-today .cal-special { font-size: 1.05rem; gap: 0.6rem; margin: 0.2rem 0; }
.dash-today .cal-special img { width: 44px; height: 44px; border-radius: 8px; }
.dash-week { margin-top: 1rem; }

/* ---------- Ingrediëntkiezer (foto + naam) ---------- */
details.pick { border: 1px solid var(--border); border-radius: 12px; background: var(--panel); margin-bottom: 0.5rem; overflow: hidden; }
.pick-summary { list-style: none; cursor: pointer; padding: 0.6rem 0.85rem; display: flex; align-items: center; gap: 0.6rem; min-height: 56px; }
.pick-summary::-webkit-details-marker { display: none; }
.pick-caret { margin-left: auto; color: var(--muted); }
.pick-card-inner { display: flex; align-items: center; gap: 0.6rem; }
.pick-card-inner img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.pick-ph { width: 40px; height: 40px; border-radius: 8px; background: var(--panel-2); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.pick-name { font-size: 0.95rem; }
.pick-choose { color: var(--muted); }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.5rem; padding: 0.5rem 0.85rem 0.85rem; }
.pick-search { grid-column: 1 / -1; margin-bottom: 0.25rem; }
.pick-grp { grid-column: 1 / -1; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-top: 0.4rem; }
.pick-card { display: flex; align-items: center; gap: 0.5rem; border: 1px solid var(--border); border-radius: 10px; padding: 0.4rem; cursor: pointer; background: var(--bg); position: relative; min-height: 52px; }
.pick-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.pick-card:has(input:checked) { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 2px var(--accent) inset; }
.pick-card .pick-card-inner img, .pick-card .pick-ph { width: 38px; height: 38px; }
.pick-card .pick-name { font-size: 0.85rem; }

/* ---------- SpecialsTonight keuze-knoppen ---------- */
.opt-card {
    display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
    border: 1px solid var(--border); border-radius: 10px; padding: 0.5rem; cursor: pointer;
    background: var(--bg); font-family: inherit; color: var(--text); min-height: 92px;
}
.opt-card:hover { border-color: var(--accent); background: #fff; }
.opt-card img { width: 54px; height: 54px; border-radius: 8px; object-fit: cover; }
.opt-card .pick-ph { width: 54px; height: 54px; }
.opt-card .pick-name { font-size: 0.8rem; text-align: center; }

/* ---------- Periode wissen ---------- */
.range-del { margin-top: 0.5rem; text-align: center; }
.range-del summary { list-style: none; display: inline-flex; cursor: pointer; }
.range-del summary::-webkit-details-marker { display: none; }
.range-del-form { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: flex-end; justify-content: center; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 0.75rem; margin-top: 0.5rem; }
.range-del-form > div { display: flex; flex-direction: column; flex: 1; min-width: 130px; }
.range-del-form label { margin: 0 0 0.2rem; font-size: 0.8rem; }

/* ---------- Verras me ---------- */
.surprise-line { margin-bottom: 1rem; }
.surprise-line-title { font-weight: 600; margin-bottom: 0.4rem; }
.cat-checks { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.catcheck { display: inline-flex; align-items: center; gap: 0.4rem; border: 1px solid var(--border); border-radius: 999px; padding: 0.45rem 0.85rem; cursor: pointer; background: var(--bg); font-size: 0.85rem; min-height: 40px; }
.catcheck input { width: auto; min-height: auto; margin: 0; }
.catcheck:has(input:checked) { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 2px var(--accent) inset; }
.surprise-dates { display: flex; gap: 1rem; flex-wrap: wrap; margin: 0.5rem 0 1rem; }
.surprise-dates > div { flex: 1; min-width: 150px; }
.surprise-preview { display: flex; flex-direction: column; gap: 0.5rem; margin: 1rem 0; }
.sp-day { display: flex; gap: 0.75rem; align-items: center; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 0.5rem 0.75rem; flex-wrap: wrap; }
.sp-date { min-width: 120px; font-weight: 600; font-size: 0.85rem; }
.sp-items { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.sp-chip { background: var(--panel-2); border-radius: 999px; padding: 0.2rem 0.7rem; font-size: 0.82rem; }

/* ---------- Special-acties ---------- */
.special-actions { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }
.special-actions form { margin: 0; }
.specials-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.special-photo-form { display: flex; align-items: center; gap: 0.5rem; margin: 0; }
.special-photo-thumb img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; display: block; }

/* ---------- ICS QR-abonnement ---------- */
.ics-sub { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 1rem 0; }
.ics-qr { background: #fff; padding: 10px; border-radius: 12px; border: 1px solid var(--border); line-height: 0; }
.ics-qr img, .ics-qr canvas { display: block; }
.ics-sub-info { flex: 1; min-width: 180px; }

/* ---------- Dashboard dag-slots (foto + naam + plus) ---------- */
.dash-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.75rem; margin-top: 1rem; }
.slot-tile {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem;
    min-height: 120px; padding: 1rem 0.75rem; text-decoration: none; color: var(--text);
    background: var(--panel); border: 1px solid var(--border); border-radius: 20px 4px 20px 4px;
    text-align: center;
}
.slot-tile.empty { color: var(--muted); border-style: dashed; }
.slot-tile img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.slot-ph { width: 64px; height: 64px; border-radius: 12px; background: var(--panel-2); display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.slot-name { font-weight: 600; font-size: 0.9rem; }
.slot-plus { font-size: 2.4rem; line-height: 1; color: var(--accent); }
.slot-tile.free { grid-column: 1 / -1; min-height: 60px; flex-direction: row; justify-content: flex-start; gap: 0.6rem; }
.slot-free-label { color: var(--muted); font-size: 0.8rem; }

/* ---------- Kalender (mobile-first) ---------- */
.cal-topbar { margin-bottom: 1rem; }
.cal-nav-row { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.cal-title { margin: 0; font-size: 1.15rem; text-align: center; flex: 1; text-transform: capitalize; }
.cal-arrow {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; min-width: 44px; font-size: 1.6rem; line-height: 1;
    text-decoration: none; color: var(--text); background: var(--panel);
    border: 1px solid var(--border); border-radius: 12px;
}
.cal-arrow:hover { background: var(--accent); color: #fff; }
.cal-modes { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; }
.cal-modes .btn.small { min-height: 38px; display: inline-flex; align-items: center; }

/* Maandraster */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-wd { text-align: center; font-size: 0.7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; padding: 0.25rem 0; }
.cal-day {
    display: flex; flex-direction: column; min-height: 62px; padding: 3px; gap: 2px;
    background: var(--panel); border: 1px solid var(--border); border-radius: 8px;
    text-decoration: none; color: var(--text); overflow: hidden;
}
.cal-day.out { opacity: 0.4; }
.cal-day.today { outline: 2px solid var(--accent); }
.cal-daynum { font-size: 0.72rem; font-weight: 700; }
.cal-day-body { display: flex; flex-direction: column; gap: 1px; overflow: hidden; }
.cal-ing, .cal-free {
    font-size: 0.62rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cal-ing { color: var(--text); }
.cal-free { color: var(--muted); font-style: italic; }
.cal-special { display: flex; align-items: center; gap: 3px; font-size: 0.62rem; overflow: hidden; }
.cal-special img { width: 16px; height: 16px; border-radius: 4px; object-fit: cover; flex: none; }
.cal-special span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-special-dot { color: var(--accent); }
/* Maand: special groot met naam onderaan */
.cal-special-big { display: flex; flex-direction: column; gap: 2px; height: 100%; align-items: center; }
.cal-special-big img { width: 100%; max-height: 66px; object-fit: cover; border-radius: 6px; }
.cal-special-name { font-size: 0.6rem; text-align: center; margin-top: auto; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Week: kleine foto + naam per ingrediënt */
.cal-ing-photo { display: flex; align-items: center; gap: 5px; font-size: 0.7rem; overflow: hidden; margin-bottom: 1px; }
.cal-ing-photo img, .mini-ph { width: 20px; height: 20px; border-radius: 4px; object-fit: cover; flex: none; }
.mini-ph { background: var(--panel-2); display: inline-flex; align-items: center; justify-content: center; font-size: 0.8rem; }
.cal-ing-photo span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-empty { color: var(--muted); font-size: 0.7rem; }

/* Weekweergave: mobiel gestapeld */
.cal-week { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
.cal-weekday {
    display: block; background: var(--panel); border: 1px solid var(--border);
    border-radius: 10px; padding: 0.6rem 0.75rem; text-decoration: none; color: var(--text); min-height: 44px;
}
.cal-weekday.today { outline: 2px solid var(--accent); }
.cal-weekday-head { font-weight: 700; text-transform: capitalize; margin-bottom: 0.3rem; font-size: 0.9rem; }
.cal-weekday .cal-ing, .cal-weekday .cal-free, .cal-weekday .cal-special { font-size: 0.82rem; }
/* Special groot binnen weekkaart (niet volledig uitrekken) */
.cal-weekday .cal-special-big { align-items: flex-start; }
.cal-weekday .cal-special-big img { width: auto; max-width: 100%; max-height: 110px; }
.cal-weekday .cal-special-name { text-align: left; width: auto; white-space: normal; font-size: 0.9rem; font-weight: 600; }

/* Dagformulier */
.cal-dayform button.btn { min-height: 46px; }

/* Speciallekes */
.cal-specials-list { display: flex; flex-direction: column; gap: 0.5rem; }
.special-row { display: flex; align-items: center; gap: 0.75rem; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 0.6rem 0.75rem; }
.special-thumb { width: 48px; height: 48px; min-width: 48px; border-radius: 10px; background: var(--panel-2); display: flex; align-items: center; justify-content: center; color: var(--accent); overflow: hidden; }
.special-thumb img { width: 100%; height: 100%; object-fit: cover; }
.special-info { flex: 1; display: flex; flex-direction: column; }
.special-info span { font-size: 0.8rem; color: var(--muted); }

@media (min-width: 700px) {
    .cal-title { font-size: 1.5rem; }
    .cal-grid { gap: 6px; }
    .cal-day { min-height: 112px; padding: 6px; }
    .cal-daynum { font-size: 0.9rem; }
    .cal-ing, .cal-free { font-size: 0.8rem; }
    .cal-special { font-size: 0.8rem; }
    .cal-special img { width: 26px; height: 26px; }
    .cal-special-big img { max-height: 88px; }
    .cal-special-name { font-size: 0.78rem; }
    .cal-ing-photo { font-size: 0.82rem; }
    .cal-ing-photo img, .mini-ph { width: 26px; height: 26px; }
    .cal-week { grid-template-columns: repeat(7, 1fr); }
}

h2 { margin-top: 0; }
.page-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; }
.inline-form { display: inline; }
.grid-info { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 1.5rem; }
.info-box { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem; }
.info-box h3 { margin: 0 0 0.4rem; font-size: 1rem; }
.info-box p { margin: 0; color: var(--muted); font-size: 0.88rem; }
code { background: var(--panel-2); padding: 0.1rem 0.35rem; border-radius: 4px; }
