/*
 * Mobile Bedienung: Tab-Bar, Plus-Button, Schnell-Hinzufügen-Sheet,
 * Live-Toasts und iOS-Safe-Areas. Ergänzt app.css, ohne es umzuschreiben.
 */
:root {
    --tabbar-height: 60px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --keyboard-inset: 0px;
}

/* Safe Areas (viewport-fit=cover, Statusleiste black-translucent) */
.topbar { padding-top: var(--safe-top); height: calc(72px + var(--safe-top)); }
.sidebar { padding-top: calc(22px + var(--safe-top)); }

/* Plus-Button */
.quick-fab {
    position: fixed; right: calc(24px + var(--safe-right)); bottom: calc(24px + var(--safe-bottom)); z-index: 41;
    width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
    display: grid; place-items: center; font-size: 30px; line-height: 1; font-weight: 500;
    background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 70%, #8d6cff));
    color: #fff; box-shadow: 0 12px 30px color-mix(in srgb, var(--primary) 45%, transparent);
    transition: transform .15s ease, opacity .15s ease;
}
.quick-fab:active { transform: scale(.94); }
.quick-fab:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 3px; }

/* Schnell-Hinzufügen-Sheet */
.quick-sheet-backdrop { position: fixed; inset: 0; z-index: 65; background: rgba(0, 0, 0, .45); }
.quick-sheet {
    position: fixed; z-index: 70; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: min(460px, calc(100vw - 32px)); max-height: min(640px, 90dvh); overflow: auto;
    padding: 18px 20px 20px; border: 1px solid var(--border); border-radius: 22px;
    background: var(--surface); box-shadow: var(--shadow);
}
.quick-sheet[hidden], .quick-sheet-backdrop[hidden], .quick-sheet-form[hidden] { display: none; }
.quick-sheet-grip { display: none; }
.quick-sheet-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.quick-sheet-header strong { font-size: 18px; }
.quick-sheet-modes { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 4px; margin-bottom: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.quick-sheet-modes button { min-height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 700; font-size: 14px; cursor: pointer; }
.quick-sheet-modes button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 6px rgba(0, 0, 0, .18); }
.quick-sheet-form { display: grid; gap: 12px; }
.quick-sheet-form label { display: grid; gap: 6px; }
.quick-sheet-form label > span { color: var(--muted); font-size: 13px; font-weight: 700; }
.quick-sheet-form input:not([type="checkbox"]), .quick-sheet-form select {
    width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 12px;
    border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-size: 16px;
}
.quick-sheet-form input:focus, .quick-sheet-form select:focus { outline: 2px solid color-mix(in srgb, var(--primary) 60%, transparent); outline-offset: 1px; }
.quick-sheet-row { display: flex; gap: 10px; align-items: end; }
.quick-sheet-row .grow { flex: 1 1 0; min-width: 0; }
.quick-sheet-qty { flex: 0 0 96px; }
.quick-sheet-form .check-row { display: flex; align-items: center; gap: 8px; min-height: 46px; }
.quick-sheet-form .check-row input { width: 22px; height: 22px; }
.quick-sheet-form .button { min-height: 48px; font-size: 16px; }
.quick-sheet-hint { margin: 0; color: var(--muted); font-size: 12px; }
.quick-sheet-form.is-busy .button { opacity: .6; pointer-events: none; }

/* Live-Toasts mit Rückgängig */
.live-toast-stack {
    position: fixed; z-index: 90; right: calc(24px + var(--safe-right)); bottom: calc(96px + var(--safe-bottom));
    display: grid; gap: 8px; width: min(380px, calc(100vw - 32px)); pointer-events: none;
}
.live-toast {
    pointer-events: auto; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 10px 10px 16px;
    border-radius: 14px; border: 1px solid var(--border); background: color-mix(in srgb, var(--surface-3) 96%, transparent);
    box-shadow: var(--shadow); backdrop-filter: blur(14px); font-size: 15px; animation: fd-live-toast-in .18s ease-out;
}
body.quick-sheet-open .live-toast-stack { top: calc(24px + var(--safe-top)); bottom: auto; }
.live-toast.error { border-color: color-mix(in srgb, var(--danger) 55%, var(--border)); }
.live-toast span { flex: 1; min-width: 0; }
.live-toast button { flex: 0 0 auto; min-height: 36px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--primary); font-weight: 800; font-size: 15px; cursor: pointer; }
.live-toast.hide { opacity: 0; transform: translateY(6px); transition: .18s ease; }
@keyframes fd-live-toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Listen: Abhaken ohne Neuladen */
.shopping-item .check-form { display: grid; place-items: center; }
.shopping-item .check-button { position: relative; }
.shopping-item .check-button::after { content: ""; position: absolute; inset: -9px; }
.shopping-item.is-toggling { opacity: .5; transition: opacity .2s ease; }
.shopping-item.is-new { animation: fd-item-new 1.6s ease-out; }
@keyframes fd-item-new { 0% { background: color-mix(in srgb, var(--primary) 22%, transparent); } 100% { background: transparent; } }
.quick-add-form.is-busy .button { opacity: .6; }

/* Mobile Tab-Bar */
.mobile-tabbar { display: none; }

@media (max-width: 760px) {
    .topbar { height: calc(64px + var(--safe-top)); padding-left: calc(16px + var(--safe-left)); padding-right: calc(16px + var(--safe-right)); }
    #menuButton { display: none; }
    .topbar-title { margin-left: 0; }
    .sidebar { z-index: 60; padding-bottom: calc(16px + var(--safe-bottom)); height: 100dvh; overflow-y: auto; overscroll-behavior: contain; }
    .sidebar-backdrop { z-index: 55; }
    .content { padding-bottom: calc(var(--tabbar-height) + 90px + var(--safe-bottom)); padding-left: calc(16px + var(--safe-left)); padding-right: calc(16px + var(--safe-right)); }

    .mobile-tabbar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
        display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
        height: calc(var(--tabbar-height) + var(--safe-bottom)); padding: 0 var(--safe-right) var(--safe-bottom) var(--safe-left);
        border-top: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(16px);
    }
    .mobile-tab {
        display: grid; place-items: center; align-content: center; gap: 2px; min-width: 0; padding: 6px 2px 4px;
        border: 0; background: transparent; color: var(--muted); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
    }
    .mobile-tab-icon { font-size: 21px; line-height: 1; }
    .mobile-tab-label { font-size: 11px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
    .mobile-tab.active { color: var(--primary); }
    .mobile-tab.active .mobile-tab-icon { transform: translateY(-1px); }

    .quick-fab { right: calc(16px + var(--safe-right)); bottom: calc(var(--tabbar-height) + 14px + var(--safe-bottom)); }
    .live-toast-stack { left: calc(16px + var(--safe-left)); right: calc(16px + var(--safe-right)); width: auto; bottom: calc(var(--tabbar-height) + 14px + var(--safe-bottom)); }
    body.quick-fab-visible .live-toast-stack { right: calc(88px + var(--safe-right)); }
    body.quick-sheet-open .live-toast-stack { top: calc(12px + var(--safe-top)); bottom: auto; right: calc(16px + var(--safe-right)); }

    .quick-sheet {
        left: 0; right: 0; top: auto; bottom: var(--keyboard-inset); transform: none; width: auto; max-height: calc(88dvh - var(--keyboard-inset));
        border-radius: 22px 22px 0 0; border-bottom: 0; padding: 8px 16px calc(18px + var(--safe-bottom));
        animation: fd-sheet-in .22s ease-out;
    }
    .quick-sheet-grip { display: block; width: 38px; height: 5px; margin: 0 auto 10px; border-radius: 3px; background: var(--border); }

    /* Notizen nutzen ein Vollbild-Layout: Platz für Statusleiste und Tab-Bar abziehen */
    .page-notes .notes-workspace { height: calc(100dvh - (64px * var(--density-scale, 1)) - var(--safe-top) - var(--tabbar-height) - var(--safe-bottom)); }

    /* Offene Detail-Popover nicht vom Plus-Button verdecken lassen */
    body:has(.item-menu[open]) .quick-fab { display: none; }

    /* Detail-Popover der Listeneinträge über der Tab-Bar halten */
    .item-popover { bottom: calc(var(--tabbar-height) + 12px + var(--safe-bottom)); max-height: calc(100dvh - var(--tabbar-height) - 120px - var(--safe-top) - var(--safe-bottom)); }

    /* Beim Tippen in der Seite (Touch-Geräte, siehe live.js) Tab-Bar und Plus ausblenden */
    body.is-typing .mobile-tabbar, body.is-typing .quick-fab { display: none; }
}
@keyframes fd-sheet-in { from { transform: translateY(24px); } to { transform: none; } }

/* Versteckte Kalenderfilter-Checkbox erbte width:100% ohne positionierten
   Container und machte die Kalenderseite auf dem iPhone breiter als den Bildschirm. */
.calendar-filter-pill { position: relative; }
.calendar-filter-pill input { width: 1px; height: 1px; }

/* Kalender: Tagesliste unter dem Monatsraster (nur Smartphone, siehe live.js) */
.calendar-day-agenda { display: none; }
@media (max-width: 760px) {
    .calendar-day { cursor: pointer; -webkit-tap-highlight-color: transparent; }
    .calendar-day.is-selected { box-shadow: inset 0 0 0 2px var(--primary); border-radius: 8px; }
    .calendar-day-agenda { display: grid; gap: 10px; margin-top: 12px; padding: 14px 16px 16px; border-top: 1px solid var(--border); }
    .calendar-day-agenda h2 { margin: 0; font-size: 17px; }
    .calendar-day-agenda ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
    .calendar-day-agenda a {
        display: block; min-height: 44px; padding: 11px 14px; border-radius: 12px; font-size: 15px; font-weight: 600;
        background: color-mix(in srgb, var(--calendar-color) 14%, var(--surface-2));
        border-left: 4px solid var(--calendar-color);
    }
    .calendar-day-agenda a.external { opacity: .85; font-style: italic; }
    .calendar-day-agenda .muted { margin: 0; }
    .calendar-day-agenda .button { justify-self: start; min-height: 44px; }
}

/* iOS zoomt bei Feldern unter 16px automatisch hinein. Gilt für alle Seiten auf
   Touch-Geräten; Checkboxen, Radios und Farbwähler sind ausgenommen. */
@media (pointer: coarse) {
    input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]):not([type="file"]),
    select, textarea { font-size: 16px !important; }
}

@media (prefers-reduced-motion: reduce) {
    .quick-sheet, .live-toast, .shopping-item.is-new { animation: none; }
    .quick-fab, .shopping-item.is-toggling, .live-toast.hide { transition: none; }
}

/* Mobile Grundlayout: kein seitliches Herauslaufen, lesbare Abstände und
   Aktionsflächen über die volle verfügbare Breite. */
@media (max-width: 760px) {
    html, body { width: 100%; max-width: 100%; overflow-x: hidden; overflow-x: clip; }
    .main-area, .content, .content > *, .page-header > *, .list-toolbar > * { min-width: 0; }
    .content { padding-top: 16px; }
    img, svg, video, canvas { max-width: 100%; }
    .page-header, .list-toolbar, .welcome { margin-bottom: 18px; }
    .page-header h1, .list-toolbar h1, .welcome h1 { overflow-wrap: anywhere; font-size: clamp(26px, 8vw, 34px); }
    .page-header > form, .page-header > form .button { width: 100%; }
    .toolbar-actions { flex-wrap: wrap; }
    .panel, .card { max-width: 100%; border-radius: 16px; }
    .alert { overflow-wrap: anywhere; }
    .table-wrap { width: 100%; max-width: 100%; -webkit-overflow-scrolling: touch; }
    .export-popover, .board-user-popover, .board-more-popover { max-width: calc(100vw - 24px); }
}

@media (max-width: 380px) {
    .content { padding-left: calc(12px + var(--safe-left)); padding-right: calc(12px + var(--safe-right)); }
    .quick-sheet { padding-left: 12px; padding-right: 12px; }
    .quick-sheet-modes { overflow-x: auto; grid-auto-columns: minmax(92px, 1fr); }
}

/* ------------------------------------------------------------------
 * Vereinfachte Startseite: eine Überschrift pro Karte, Link rechts daneben,
 * keine Mindesthöhen für leere Flächen.
 * ------------------------------------------------------------------ */
.dashboard-topline { align-items: flex-end; }
.dashboard-topline h1 { margin: 0; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; letter-spacing: -.02em; }
.dashboard-topline .muted { font-size: 14px; }
.dashboard-widget { position: relative; min-height: 0; justify-content: flex-start; gap: 6px; }
.dashboard-widget .card-label, .dashboard-widget .card-icon, .dashboard-widget .card-head > .count { display: none; }
.dashboard-widget .card-head { position: absolute; top: 20px; right: 20px; margin: 0; }
.dashboard-widget h2 { margin: 0 0 8px; padding-right: 110px; font-size: 18px; }
.dashboard-widget.widget-today .card-head { position: static; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dashboard-widget.widget-today .card-head h2 { padding-right: 0; }
.dashboard-widget .text-link { font-size: 13px; font-weight: 700; }
.today-due-row.is-event .today-due-icon { font-size: 15px; }
.dashboard-edit-link { margin: 22px 0 0; text-align: center; }
.dashboard-edit-link .text-link { color: var(--muted); font-size: 13px; }

@media (max-width: 760px) {
    /* Für schnelle Aktionen gibt es auf dem Handy den Plus-Button. */
    .dashboard-widget.widget-quick_actions { display: none; }
    .dashboard-widget { padding: 16px 18px; }
    .dashboard-widget .card-head { top: 16px; right: 18px; }
}

/* Darstellung und Hell/Dunkel stehen im Menü statt in der Kopfzeile */
.sidebar-settings { display: grid; gap: 2px; }
.sidebar-settings .theme-form { margin: 0; }
.sidebar-settings button.nav-link { width: 100%; border: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.sidebar-settings .nav-icon { font-size: 12px; font-weight: 800; }
.topbar .presence-control { margin-left: auto; }
.topbar .presence-control + .notification-bell { margin-left: 8px; }

/* ------------------------------------------------------------------
 * Listen: eine Eingabezeile, Menge/Gruppe nur bei Bedarf, Aktionen im •••-Menü
 * ------------------------------------------------------------------ */
.quick-add-form.simple-quick-add { display: grid; grid-template-columns: 1fr; gap: 8px; }
.simple-quick-add .quick-title input { width: 100%; min-height: 50px; padding-right: 56px; }
.simple-quick-add .quick-add-submit {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border: 0; border-radius: 11px; cursor: pointer;
    background: var(--primary); color: #fff; font-size: 18px; font-weight: 800;
}
.simple-quick-add .quick-add-submit:active { transform: translateY(-50%) scale(.94); }
.quick-add-more summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 2px 4px; color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; }
.quick-add-more summary::-webkit-details-marker { display: none; }
.quick-add-more summary::before { content: "▸"; font-size: 11px; transition: transform .15s; }
.quick-add-more[open] summary::before { transform: rotate(90deg); }
.quick-add-more-fields { display: grid; grid-template-columns: 120px 1fr; gap: 8px; margin-top: 8px; }
.quick-add-more-fields > input, .quick-add-more-fields > select { grid-column: auto !important; width: 100% !important; max-width: none; margin: 0; min-height: 44px; }
.list-more-menu .export-popover { min-width: 220px; }
.list-more-menu .export-popover a { display: block; padding: 11px 10px; font-size: 15px; }
@media (max-width: 760px) {
    .quick-add-more-fields { grid-template-columns: 1fr; }
}

/* Seitenköpfe auf dem Handy: Rubrik und Erklärtext weglassen, der Titel genügt */
@media (max-width: 760px) {
    .page-header .eyebrow, .page-header > div > p.muted { display: none; }
    .page-header h1 { margin-top: 0; }
}

/* Aufgaben: eine Eingabezeile, Details bei Bedarf */
.simple-task-quick .task-quick-form { display: grid; grid-template-columns: 1fr; gap: 8px; }
.simple-task-quick .quick-title { position: relative; }
.simple-task-quick .quick-title input { width: 100%; min-height: 50px; padding-left: 43px; padding-right: 56px; }
.simple-task-quick .quick-title .plus-symbol { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.simple-task-quick .quick-add-submit {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border: 0; border-radius: 11px; cursor: pointer;
    background: var(--primary); color: #fff; font-size: 18px; font-weight: 800;
}
.task-quick-more-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 10px; align-items: end; margin-top: 8px; }
.task-quick-more-fields label { display: grid; gap: 4px; }
.task-quick-more-fields label > span { color: var(--muted); font-size: 12px; font-weight: 700; }
.task-quick-more-fields input, .task-quick-more-fields select { width: 100%; min-height: 44px; }
@media (max-width: 760px) {
    .task-quick-more-fields { grid-template-columns: 1fr 1fr; }
    .task-quick-more-fields label:first-child, .task-quick-more-fields .button { grid-column: 1 / -1; }
}

/* Kalender: ausführliches Formular als aufklappbarer Bereich */
.calendar-form-details > summary { list-style: none; cursor: pointer; color: var(--primary); font-weight: 700; font-size: 14px; padding: 4px 0; }
.calendar-form-details > summary::-webkit-details-marker { display: none; }
.calendar-form-details[open] > summary { display: none; }

/* Listen: häufig gekaufte Posten als Vorschlags-Chips */
.list-suggestions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; }
.list-suggestions-label { color: var(--muted); font-size: 13px; font-weight: 700; margin-right: 2px; }
.list-suggestion {
    min-height: 36px; padding: 6px 12px; border-radius: 999px; cursor: pointer;
    border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; font-weight: 600;
}
.list-suggestion:active { transform: scale(.96); }
@media (max-width: 760px) {
    .list-suggestions { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 14px; padding: 0 16px 2px; scrollbar-width: none; }
    .list-suggestions::-webkit-scrollbar { display: none; }
    .list-suggestion { flex: 0 0 auto; }
}

/* Aufgaben: Abhaken ohne Neuladen */
.task-row.is-toggling, .dashboard-task-row.is-toggling { opacity: .5; transition: opacity .2s ease; }
.task-row.is-toggling.is-completed .task-check-button::after, .dashboard-task-row.is-toggling .mini-check::after { content: "✓"; }

/* Aufgaben-Details: selten genutzte Felder unter „Weitere Optionen“ */
.task-more-options { grid-column: 1 / -1; border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px; background: var(--surface-2); }
.task-more-options > summary { cursor: pointer; color: var(--primary); font-weight: 700; font-size: 14px; list-style: none; }
.task-more-options > summary::-webkit-details-marker { display: none; }
.task-more-options > summary::before { content: "▸ "; }
.task-more-options[open] > summary::before { content: "▾ "; }
.task-more-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-top: 12px; }
.task-more-fields .span-2 { grid-column: 1 / -1; }
@media (max-width: 760px) { .task-more-fields { grid-template-columns: 1fr; } }

/* Personenfarben */
.person-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 1px 8px 1px 2px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.6; color: var(--text); background: color-mix(in srgb, var(--person-color) 16%, transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.person-chip i { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--person-color); color: #fff; font-style: normal; font-size: 10px; font-weight: 900; flex: 0 0 auto; }
.item-assignee .person-chip { font-size: 11px; }
.admin-user-name { display: flex; align-items: center; gap: 8px; }
.admin-user-color input[type="color"] { width: 32px; height: 32px; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: none; cursor: pointer; }
.person-color-picker { border: 0; padding: 0; margin: 22px 0 18px; }
.person-color-picker legend { font-weight: 800; font-size: 16px; margin-bottom: 4px; }
.person-color-picker .muted { margin: 0 0 12px; font-size: 13px; }
.person-color-options { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.person-color-swatch { position: relative; cursor: pointer; }
.person-color-swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.person-color-swatch span { display: block; width: 40px; height: 40px; border-radius: 50%; background: var(--person-color); box-shadow: inset 0 0 0 2px rgba(255,255,255,.15); }
.person-color-swatch input:checked + span { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--person-color); }
.person-color-swatch input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 4px; }
.person-color-custom { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
.person-color-custom input { width: 40px; height: 40px; padding: 0; border: 1px solid var(--border); border-radius: 50%; overflow: hidden; background: none; cursor: pointer; }

/* Geburtstage */
.calendar-birthday-chip { --calendar-color: #EC4899; cursor: default; }
.calendar-day-agenda ul > li > span { display: block; min-height: 44px; padding: 11px 14px; border-radius: 12px; font-size: 15px; font-weight: 600; background: color-mix(in srgb, #EC4899 14%, var(--surface-2)); border-left: 4px solid #EC4899; }
.calendar-birthdays > details > summary { display: flex; flex-direction: column; gap: 2px; cursor: pointer; list-style: none; }
.calendar-birthdays > details > summary::-webkit-details-marker { display: none; }
.birthday-list { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 6px; }
.birthday-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.birthday-list li > span { display: grid; gap: 1px; }
.birthday-list small { color: var(--muted); font-size: 12px; }
.birthday-add { display: grid; gap: 10px; margin-top: 12px; }
.birthday-add label:not(.check-row) { display: grid; gap: 4px; }
.birthday-add label > span { color: var(--muted); font-size: 12px; font-weight: 700; }
.birthday-add .check-row { display: flex; align-items: center; gap: 8px; }
.today-due-row.is-birthday { background: color-mix(in srgb, #EC4899 10%, transparent); border-radius: 10px; }
.birthday-add .check-row { justify-content: flex-start; }
.birthday-add .check-row input { width: 22px; height: 22px; flex: 0 0 auto; margin: 0; }
.birthday-add .check-row span { color: var(--text); font-size: 14px; font-weight: 600; }

/* Darstellung: Auswahl Standard / Familienbrett mit kleiner Vorschau */
.skin-picker { border: 0; padding: 0; margin: 0 0 22px; }
.skin-picker legend { font-weight: 800; font-size: 16px; margin-bottom: 10px; }
.skin-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.skin-card { position: relative; display: grid; gap: 10px; padding: 12px; border: 2px solid var(--border); border-radius: 16px; background: var(--surface); cursor: pointer; }
.skin-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.skin-card:has(input:checked) { border-color: var(--primary); }
.skin-card:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.skin-card-copy { display: grid; gap: 2px; }
.skin-card-copy small { color: var(--muted); font-size: 13px; }
.skin-preview { display: grid; grid-template-columns: 26px 1fr 1fr; grid-template-rows: 14px 30px 30px; gap: 5px; height: 96px; padding: 8px; border-radius: 10px; }
.skin-preview i, .skin-preview b { display: block; border-radius: 5px; }
.skin-preview-standard { background: #0b0e14; }
.skin-preview-standard i:nth-child(1) { grid-row: 1 / -1; background: #121722; }
.skin-preview-standard i:nth-child(2) { grid-column: 2 / -1; background: #18202c; }
.skin-preview-standard i:nth-child(3) { background: #18202c; }
.skin-preview-standard b { background: #6d92ff; }
.skin-preview-board { background: #EEF1F4; grid-template-columns: 1fr 1fr; grid-template-rows: 12px 30px 30px; }
.skin-preview-board i:nth-child(1) { grid-column: 1 / -1; background: #14181F; border-radius: 4px; }
.skin-preview-board i:nth-child(2) { background: #FFFFFF; border: 1px solid #DCE1E7; }
.skin-preview-board i:nth-child(3) { background: #E3F3EA; }
.skin-preview-board b { grid-column: 1 / -1; background: #FFFFFF; border: 1px solid #DCE1E7; }
.skin-note { margin: 10px 0 0; font-size: 13px; }
.quick-sheet-amount { flex: 0 0 132px; }
