/* DailyTogether — Warm Domestic Editorial (App UI) */

body.is-app {
    --paper-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
    --editorial-card: #fffdf8;
    --editorial-row: #fffdf8;
    --editorial-row-alt: #f7f1e8;
    --editorial-inset: #f3ece2;
    --editorial-border: #e8dfd3;
    --font-body: var(--font-ui);
    font-family: var(--font-display);
    font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 16;
    font-weight: 500;
    letter-spacing: 0.012em;
    background-color: var(--bg);
    background-image:
        linear-gradient(180deg, color-mix(in srgb, var(--soft) 36%, transparent), transparent 160px),
        var(--paper-texture);
    background-size: auto, 180px 180px;
    background-blend-mode: normal, multiply;
}

body.is-app .shell {
    position: relative;
}

/* —— Header (mockup: zentriert) —— */

body.is-app .app-header {
    gap: 8px;
    padding-top: 8px;
}

body.is-app .app-header-top {
    position: relative;
    display: block;
    min-height: 42px;
}

body.is-app .app-header-copy {
    width: 100%;
    max-width: 100%;
    padding: 0 46px;
    text-align: center;
}

body.is-app .app-header-brand-row {
    justify-content: center;
    gap: 7px;
    color: var(--text);
    font-size: 0.78rem;
}

body.is-app .app-header-brand {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--text);
}

body.is-app .app-header-brand-row .app-version-badge {
    border-radius: var(--editorial-radius-xs);
    padding: 2px 7px;
    background: color-mix(in srgb, var(--soft) 72%, var(--surface));
    color: var(--muted);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

body.is-app .app-header-brand-row .app-space-mode-badge {
    background: color-mix(in srgb, var(--soft) 70%, var(--surface));
    color: var(--muted);
}

body.is-app .app-header-team {
    margin-top: 6px;
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 7vw, 2rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.02em;
    text-align: center;
}

body.is-app .app-header-welcome {
    margin-top: 4px;
    font-weight: 500;
    font-size: 0.84rem;
    text-align: center;
}

body.is-app .app-header-top .app-menu {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
}

body.is-app .app-header-notice {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    max-width: 520px;
    margin-inline: auto;
    padding: 10px 14px;
    border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--line));
    border-radius: var(--editorial-radius-sm);
    background: color-mix(in srgb, var(--primary) 7%, var(--surface));
    text-align: left;
}

body.is-app .app-header-notice-icon {
    flex: 0 0 auto;
    margin-top: 1px;
    color: var(--primary);
    font-size: 0.72rem;
    line-height: 1.45;
}

body.is-app .app-header-notice-text {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
}

/* —— Datumszeile (mockup) —— */

body.is-app .date-controls--editorial {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: none;
    margin-top: 4px;
}

body.is-app .date-controls-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

body.is-app .date-nav-button {
    flex: 0 0 36px;
    width: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    border: 0;
    border-radius: var(--editorial-radius-xs);
    background: transparent;
    color: var(--quiet);
    font-size: 1.05rem;
    line-height: 1;
    box-shadow: none;
}

body.is-app .date-nav-button:hover,
body.is-app .date-nav-button:focus-visible {
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 8%, transparent);
}

body.is-app .date-button--editorial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    min-height: 40px;
    padding: 0 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--text);
    font-family: var(--font-display);
    font-size: clamp(0.92rem, 3.6vw, 1.06rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
}

body.is-app .date-button-icon {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    color: var(--quiet);
    opacity: 0.78;
}

body.is-app .date-button-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.is-app .date-today-button {
    flex: 0 0 auto;
    min-width: 52px;
    min-height: 32px;
    padding: 0 8px;
    border: 0;
    border-radius: var(--editorial-radius-xs);
    background: transparent;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    cursor: pointer;
}

body.is-app .date-today-button:hover:not(:disabled),
body.is-app .date-today-button:focus-visible:not(:disabled) {
    color: var(--primary-strong);
    background: color-mix(in srgb, var(--primary) 8%, transparent);
}

body.is-app .date-today-button:disabled,
body.is-app .date-today-button.is-current {
    color: var(--quiet);
    opacity: 0.72;
    cursor: default;
}

/* —— Wochenleiste —— */

body.is-app .week-strip {
    gap: 4px;
}

body.is-app .week-day {
    min-height: 58px;
    gap: 3px;
    padding: 2px 0 6px;
}

body.is-app .week-day-number {
    display: block;
    width: auto;
    min-width: 0;
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    font-family: var(--font-display);
    font-size: clamp(1.02rem, 3.4vw, 1.28rem);
    font-weight: 600;
    line-height: 1.1;
    box-shadow: none;
}

body.is-app .week-day-label {
    display: inline-block;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--quiet);
}

body.is-app .week-day.is-active .week-day-number,
body.is-app .week-day.is-today .week-day-number {
    color: var(--primary);
}

body.is-app .week-day.is-active .week-day-label {
    border-bottom-color: var(--primary);
    color: var(--text);
}

body.is-app .week-day.is-complete .week-day-number {
    color: color-mix(in srgb, var(--green) 82%, var(--text));
}

body.is-app .week-day.is-complete .week-day-label {
    border-bottom-color: var(--green);
}

body.is-app .week-day.has-activity:not(.is-complete) .week-day-label {
    border-bottom-color: color-mix(in srgb, var(--primary) 45%, var(--line));
}

body.is-app .week-day.is-active strong,
body.is-app .week-day.is-active .week-day-number,
body.is-app .week-day.is-complete.is-active strong,
body.is-app .week-day.is-complete.is-active .week-day-number {
    border: 0;
    background: transparent;
    color: var(--primary);
    box-shadow: none;
}

/* —— Cards & UI —— */

body.is-app .week-card,
body.is-app .progress-card,
body.is-app .day-panel-card,
body.is-app .chat-box,
body.is-app .checklist,
body.is-app .active-timers-card {
    border: 1px solid var(--editorial-border);
    border-radius: var(--editorial-radius);
    padding: 14px 16px;
    background: var(--editorial-card);
    box-shadow: none;
    backdrop-filter: none;
}

body.is-app .week-card {
    padding: 10px 12px 8px;
}

body.is-app .progress-card.progress-card--editorial {
    gap: 8px;
    padding: 12px 14px;
}

body.is-app .day-panel-card {
    padding: 0;
    overflow: hidden;
}

body.is-app .day-panel-card .day-utility-bar {
    margin-top: 0;
    padding: 0 6px;
    border-bottom: 1px solid var(--editorial-border);
    background: transparent;
}

body.is-app .day-panel-card .day-utility-panel {
    margin-top: 0;
    padding: 12px 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.is-app .day-panel-card .chat-box,
body.is-app .day-panel-card .shopping-panel-content {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body.is-app .progress-card {
    padding: 12px 14px;
}

body.is-app .progress-head {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 7px;
    margin-bottom: 2px;
    font-family: var(--font-display);
    font-size: clamp(1rem, 3.8vw, 1.14rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
}

body.is-app .progress-head-sep {
    color: var(--quiet);
    font-weight: 500;
}

body.is-app .progress-head-count {
    font-variant-numeric: tabular-nums;
    color: color-mix(in srgb, var(--primary) 78%, var(--text));
}

body.is-app .progress-card--editorial .progress-row {
    gap: 0;
}

body.is-app .progress-card--editorial .progress-track {
    height: 6px;
    border-radius: 999px;
    background: var(--editorial-inset);
}

body.is-app .progress-head-count.is-progress-bump {
    animation: dt-progress-bump 320ms var(--motion-pop, cubic-bezier(0.33, 1, 0.68, 1));
}

body.is-app .progress-pill {
    min-width: 44px;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: var(--editorial-radius-xs);
    background: var(--surface);
    font-variant-numeric: tabular-nums;
    font-size: 0.84rem;
    font-weight: 600;
}

body.is-app .progress-track {
    height: 8px;
    background: var(--soft);
}

body.is-app .day-utility-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 2px;
    padding: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
}

body.is-app .day-utility-toggle {
    flex: 1 1 0;
    min-height: 42px;
    padding: 8px 12px 10px;
    border: 0;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    grid-template-columns: minmax(0, 1fr) auto auto;
    margin-bottom: -1px;
}

body.is-app .day-utility-toggle.is-open {
    border-bottom-color: var(--primary);
    background: transparent;
}

body.is-app .day-utility-toggle-label {
    font-size: 0.86rem;
    font-weight: 600;
}

body.is-app .day-utility-toggle-count {
    min-width: 24px;
    min-height: 24px;
    padding: 0 6px;
    border: 1px solid var(--editorial-border);
    border-radius: var(--editorial-radius-xs);
    background: var(--editorial-inset);
    font-size: 0.76rem;
    font-weight: 600;
}

body.is-app .day-utility-toggle-chevron {
    display: none;
}

body.is-app .day-utility-panel {
    margin-top: 10px;
}

body.is-app .checklist-scope,
body.is-app .checklist-board-scope,
body.is-app .checklist-board-tabs {
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--editorial-border);
    border-radius: var(--editorial-radius-sm);
    background: var(--editorial-inset);
}

body.is-app .checklist-scope button,
body.is-app .checklist-board-scope button,
body.is-app .checklist-board-tabs button {
    min-height: 32px;
    border-radius: var(--editorial-radius-xs);
}

body.is-app .checklist-scope button.is-active,
body.is-app .checklist-board-scope button.is-active,
body.is-app .checklist-board-tabs button.is-active {
    background: var(--soft);
    box-shadow: none;
}

body.is-app .checklist-head {
    padding: 8px 4px 4px;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: none;
}

body.is-app .checklist-head span:first-child {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}

body.is-app .member-head {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: var(--editorial-radius-xs);
    background: color-mix(in srgb, currentColor 10%, var(--surface));
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0;
}

body.is-app .check-category {
    margin: 14px 4px 6px;
    color: var(--quiet);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.is-app .check-row {
    min-height: 46px;
    padding: 7px 8px 7px 12px;
    border: 1px solid var(--editorial-border);
    border-radius: var(--editorial-radius-sm);
    background: var(--editorial-row);
    box-shadow: none;
}

body.is-app .checklist .check-row:nth-child(odd) {
    background: var(--editorial-row-alt);
}

body.is-app .check-label {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--text);
}

body.is-app .check-button {
    width: 32px;
    height: 32px;
    border-width: 1.5px;
    border-radius: var(--editorial-radius-xs);
}

body.is-app .check-row.is-shared .check-button-shared {
    height: 32px;
    border-radius: var(--editorial-radius-xs);
}

body.is-app .check-button.is-checked,
body.is-app .check-button-shared.is-checked {
    color: var(--on-primary);
    border-color: var(--green);
    background: var(--green);
}

body.is-app .check-row.is-row-done {
    border-color: var(--editorial-border);
    background: var(--editorial-row);
    opacity: 0.88;
}

body.is-app .checklist .check-row.is-row-done:nth-child(odd) {
    background: var(--editorial-row-alt);
}

body.is-app .check-row.is-row-done .check-label {
    opacity: 0.56;
    color: var(--muted);
    text-decoration: line-through;
    text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent);
    text-decoration-thickness: 1px;
    transform: translateX(-1px);
}

body.is-app .day-utility-panel.is-panel-enter {
    animation: dt-panel-enter 260ms ease-out;
}

@keyframes dt-panel-enter {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.is-app .chat-message {
    border: 1px solid var(--editorial-border);
    border-radius: var(--editorial-radius-sm);
    background: var(--editorial-row);
    color: var(--text);
}

body.is-app .chat-form textarea,
body.is-app .chat-form .primary {
    min-height: 44px;
    height: 44px;
    border-radius: var(--editorial-radius-sm);
}

body.is-app .chat-form .primary {
    width: auto;
    min-width: 54px;
    box-shadow: none;
}

body.is-app .empty-state {
    border: 1px dashed var(--editorial-border);
    border-radius: var(--editorial-radius-sm);
    background: var(--editorial-inset);
    color: var(--muted);
    font-weight: 500;
}

body.is-app .active-timer-item {
    border-radius: var(--editorial-radius-sm);
    background: var(--editorial-row);
    border-color: var(--editorial-border);
}

body.is-app .active-timer-icon {
    border-radius: var(--editorial-radius-xs);
}

body.is-app .primary {
    border-radius: var(--editorial-radius-sm);
    box-shadow: none;
    font-weight: 600;
}

body.is-app .secondary,
body.is-app .danger {
    border-radius: var(--editorial-radius-sm);
}

body.is-app .menu-button.menu-button--gear {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: var(--editorial-radius-xs);
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    color: var(--muted);
}

body.is-app .menu-button--gear:hover,
body.is-app .menu-button--gear:focus-visible,
body.is-app .app-menu.is-open .menu-button--gear {
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 8%, transparent);
}

body.is-app .app-menu.is-open .menu-button--gear {
    visibility: hidden;
    pointer-events: none;
}

body.is-app .menu-button-icon {
    display: block;
    width: 22px;
    height: 22px;
    margin: 0 auto;
}

body.is-app .menu-overlay {
    background: var(--editorial-card);
}

body.is-app .menu-sheet-head,
body.is-app .menu-sheet-foot {
    border-color: var(--editorial-border);
}

body.is-app .menu-sheet-title {
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 5vw, 1.75rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

body.is-app .menu-sheet-space {
    font-family: var(--font-body);
    font-size: 0.74rem;
    font-weight: 500;
}

body.is-app .menu-sheet-version {
    min-height: 24px;
    padding: 0 8px;
    border: 1px solid var(--editorial-border);
    border-radius: var(--editorial-radius-xs);
    background: var(--editorial-inset);
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 24px;
}

body.is-app .menu-sheet-close {
    border-color: var(--editorial-border);
    border-radius: var(--editorial-radius-xs);
    background: var(--editorial-card);
    font-size: 1.35rem;
}

body.is-app .menu-sheet-close:hover,
body.is-app .menu-sheet-close:focus-visible {
    background: var(--editorial-inset);
}

body.is-app .menu-sheet-body {
    gap: 18px;
}

body.is-app .menu-row {
    min-height: 50px;
    padding: 10px 10px;
    border-radius: var(--editorial-radius-xs);
}

body.is-app .menu-row-icon {
    color: color-mix(in srgb, var(--text) 72%, var(--muted));
}

body.is-app .menu-row-label {
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 600;
}

body.is-app .menu-row-value {
    font-size: 0.9rem;
    font-weight: 500;
}

body.is-app .menu-row-chevron {
    color: var(--muted);
    font-size: 1.15rem;
}

body.is-app .menu-group-title {
    margin: 0 10px 6px;
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
}

body.is-app .menu-sheet-foot .menu-row-logout {
    min-height: 50px;
    border-radius: var(--editorial-radius-xs);
}

body.is-app .menu-row-action:hover,
body.is-app .menu-row-action:focus-visible {
    background: var(--editorial-inset);
}

body.is-app .menu-title {
    margin: 2px 8px 2px;
    text-transform: none;
    letter-spacing: 0.01em;
    font-size: 0.74rem;
    font-weight: 600;
}

body.is-app .menu-hint {
    margin: -2px 8px 4px;
    padding: 0;
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1.35;
}

body.is-app .menu-group {
    gap: 2px;
    padding-top: 14px;
}

body.is-app .menu-sheet-body .menu-group:first-child {
    padding-top: 0;
}

body.is-app .menu-item {
    min-height: 40px;
    padding: 0 8px;
    border-radius: var(--editorial-radius-xs);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
}

body.is-app .menu-item:hover,
body.is-app .menu-item:focus-visible {
    background: var(--editorial-inset);
}

body.is-app .menu-inline-label {
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 600;
}

body.is-app .menu-theme-option {
    border-color: var(--editorial-border);
    border-radius: var(--editorial-radius-xs);
    background: var(--editorial-card);
    font-size: 0.9rem;
}

body.is-app .menu-theme-option.is-active {
    border-color: color-mix(in srgb, var(--primary) 42%, var(--editorial-border));
    background: color-mix(in srgb, var(--primary) 12%, var(--editorial-card));
}

body.is-app .menu-theme-option:hover,
body.is-app .menu-theme-option:focus-visible {
    background: var(--editorial-inset);
}

body.is-app .modal.modal--setting .setting-modal-actions {
    border-top-color: var(--editorial-border);
}

body.is-app .modal.modal--sheet {
    background: var(--editorial-card);
}

@media (min-width: 761px) {
    body.is-app .menu-overlay {
        background: var(--overlay);
    }

    body.is-app .menu-sheet {
        background: var(--editorial-card);
    }

    body.is-app .modal.modal--sheet {
        background: var(--overlay);
    }

    body.is-app .modal.modal--sheet > .modal-card,
    body.is-app .modal.modal--sheet .setting-modal-card {
        background: var(--editorial-card);
    }
}

body.is-app .modal.modal--sheet > .modal-card,
body.is-app .modal.modal--sheet .setting-modal-card {
    background: var(--editorial-card);
}

body.is-app .modal.modal--sheet .modal-actions,
body.is-app .modal.modal--sheet .setting-modal-actions {
    border-top-color: var(--editorial-border);
}

body.is-app .modal-card {
    border: 1px solid var(--line);
    border-radius: calc(var(--editorial-radius) + 4px);
    background: var(--surface);
    box-shadow: 0 24px 64px var(--overlay);
    backdrop-filter: none;
}

body.is-app #calendarModal .modal-card--calendar {
    max-width: min(380px, calc(100vw - 32px));
}

body.is-app #calendarModal .calendar-nav {
    margin-bottom: 12px;
}

body.is-app #calendarModal .calendar-nav strong {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

body.is-app #calendarModal .calendar-nav .icon-button {
    min-width: 36px;
    min-height: 36px;
    border: 0;
    border-radius: var(--editorial-radius-xs);
    background: transparent;
    color: var(--quiet);
    font-size: 1rem;
}

body.is-app #calendarModal .calendar-nav .icon-button:hover,
body.is-app #calendarModal .calendar-nav .icon-button:focus-visible {
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 8%, transparent);
}

body.is-app #calendarModal .calendar-weekdays {
    margin-bottom: 6px;
    text-transform: none;
    letter-spacing: 0.04em;
    font-size: 0.68rem;
    font-weight: 600;
}

body.is-app #calendarModal .calendar-day {
    min-height: 42px;
    border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
    border-radius: var(--editorial-radius-xs);
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: none;
}

body.is-app #calendarModal .calendar-day.is-selected {
    border-color: var(--primary);
    background: color-mix(in srgb, var(--primary) 12%, var(--surface));
    box-shadow: none;
}

body.is-app #calendarModal .calendar-day.is-complete {
    background: color-mix(in srgb, var(--green) 14%, var(--surface));
    border-color: color-mix(in srgb, var(--green) 34%, var(--line));
}

body.is-app #calendarModal .calendar-day.has-progress::after {
    background: var(--primary);
    width: 5px;
    height: 5px;
    bottom: 6px;
}

body.is-app .modal-head h2,
body.is-app .app-modal-form .panel-kicker {
    font-family: var(--font-display);
    text-transform: none;
    letter-spacing: -0.01em;
}

body.is-app .app-modal-form .panel-kicker {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
}

body.is-app input,
body.is-app select,
body.is-app textarea {
    border-radius: var(--editorial-radius-sm);
    font-weight: 500;
}

body.is-app label {
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 0.78rem;
}

body.is-app .shopping-list-quick-submit {
    border-radius: var(--editorial-radius-sm);
    box-shadow: none;
}

body.is-app .message {
    border: 1px solid var(--line);
    border-radius: var(--editorial-radius-sm);
    box-shadow: none;
}

/* —— Typografie: Display warm, Fließtext klar —— */

body.is-app .check-label,
body.is-app .chat-line p,
body.is-app .chat-form textarea,
body.is-app input,
body.is-app select,
body.is-app textarea,
body.is-app .menu-hint,
body.is-app .empty-state,
body.is-app .progress-legend-item,
body.is-app .shopping-list-quick-input {
    font-family: var(--font-body);
    font-variation-settings: normal;
    letter-spacing: 0.015em;
}

body.is-app .menu-item,
body.is-app .day-utility-toggle-label,
body.is-app .primary,
body.is-app .secondary,
body.is-app .danger,
body.is-app .date-today-button,
body.is-app label,
body.is-app .checklist-scope button,
body.is-app .checklist-board-scope button,
body.is-app .checklist-board-tabs button,
body.is-app .modal-title,
body.is-app .week-day-label {
    font-family: var(--font-display);
    font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 14;
}

body.is-app .app-header-welcome,
body.is-app .app-header-brand-row {
    font-family: var(--font-display);
    font-variation-settings: "SOFT" 90, "WONK" 0, "opsz" 14;
}

body.is-app .check-category {
    font-family: var(--font-display);
    font-variation-settings: "SOFT" 80, "WONK" 0, "opsz" 10;
    letter-spacing: 0.1em;
}

/* —— Dark Mode —— */

html[data-theme="dark"] body.is-app {
    --paper-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.34'/%3E%3C/svg%3E");
    --editorial-card: #242019;
    --editorial-row: #2a2520;
    --editorial-row-alt: #2f2a25;
    --editorial-inset: #332e28;
    --editorial-border: #403a33;
    background-color: var(--bg);
    background-image:
        linear-gradient(180deg, color-mix(in srgb, var(--soft) 38%, transparent), transparent 160px),
        var(--paper-texture);
    background-size: auto, 180px 180px;
    background-blend-mode: normal, soft-light;
}

html[data-theme="dark"] body.is-app .week-card,
html[data-theme="dark"] body.is-app .progress-card,
html[data-theme="dark"] body.is-app .day-panel-card,
html[data-theme="dark"] body.is-app .chat-box,
html[data-theme="dark"] body.is-app .checklist,
html[data-theme="dark"] body.is-app .active-timers-card,
html[data-theme="dark"] body.is-app .modal-card,
html[data-theme="dark"] body.is-app .menu-overlay {
    background: var(--editorial-card);
    border-color: var(--editorial-border);
}

html[data-theme="dark"] body.is-app .day-panel-card .day-utility-bar {
    border-bottom-color: var(--editorial-border);
}

html[data-theme="dark"] body.is-app .date-button-icon {
    color: var(--muted);
    opacity: 0.72;
}

html[data-theme="dark"] body.is-app .check-row {
    background: var(--editorial-row);
    border-color: var(--editorial-border);
}

html[data-theme="dark"] body.is-app .checklist .check-row:nth-child(odd) {
    background: var(--editorial-row-alt);
}

html[data-theme="dark"] body.is-app .check-row.is-row-done {
    background: var(--editorial-row);
    border-color: var(--editorial-border);
    opacity: 0.82;
}

html[data-theme="dark"] body.is-app .checklist .check-row.is-row-done:nth-child(odd) {
    background: var(--editorial-row-alt);
}

html[data-theme="dark"] body.is-app .check-row.is-row-done .check-label {
    opacity: 0.52;
    color: var(--muted);
    text-decoration: line-through;
    text-decoration-color: color-mix(in srgb, var(--muted) 45%, transparent);
}

html[data-theme="dark"] body.is-app .checklist-scope,
html[data-theme="dark"] body.is-app .checklist-board-scope,
html[data-theme="dark"] body.is-app .checklist-board-tabs,
html[data-theme="dark"] body.is-app .empty-state,
html[data-theme="dark"] body.is-app .day-utility-toggle-count {
    background: var(--editorial-inset);
    border-color: var(--editorial-border);
}

html[data-theme="dark"] body.is-app .chat-message {
    background: var(--editorial-row);
    border-color: var(--editorial-border);
    color: var(--text);
}

html[data-theme="dark"] body.is-app .chat-line span,
html[data-theme="dark"] body.is-app .chat-line p {
    color: var(--text);
}

html[data-theme="dark"] body.is-app .active-timer-item {
    background: var(--editorial-row);
    border-color: var(--editorial-border);
}

html[data-theme="dark"] body.is-app .progress-pill {
    background: var(--editorial-inset);
    border-color: var(--editorial-border);
}

html[data-theme="dark"] body.is-app .progress-card--editorial .progress-track {
    background: var(--editorial-inset);
}

html[data-theme="dark"] body.is-app .menu-item:hover,
html[data-theme="dark"] body.is-app .menu-item:focus-visible {
    background: var(--editorial-inset);
}

html[data-theme="dark"] body.is-app .app-header-notice {
    background: color-mix(in srgb, var(--primary) 14%, var(--editorial-card));
    border-color: color-mix(in srgb, var(--primary) 28%, var(--editorial-border));
}

html[data-theme="dark"] body.is-app #calendarModal .calendar-day {
    background: var(--editorial-row);
    border-color: var(--editorial-border);
    color: var(--text);
}

html[data-theme="dark"] body.is-app #calendarModal .calendar-day.is-selected {
    background: color-mix(in srgb, var(--primary) 18%, var(--editorial-row));
    border-color: color-mix(in srgb, var(--primary) 42%, var(--editorial-border));
}

html[data-theme="dark"] body.is-app #calendarModal .calendar-day.is-complete {
    background: color-mix(in srgb, var(--green) 20%, var(--editorial-row));
    border-color: color-mix(in srgb, var(--green) 38%, var(--editorial-border));
}

html[data-theme="dark"] body.is-app .active-timer-item.is-countdown {
    background: color-mix(in srgb, var(--primary) 12%, var(--editorial-row));
    border-color: color-mix(in srgb, var(--primary) 28%, var(--editorial-border));
}

html[data-theme="dark"] body.is-app .active-timer-item.is-countup,
html[data-theme="dark"] body.is-app .active-timer-item.is-reached {
    background: color-mix(in srgb, var(--green) 14%, var(--editorial-row));
    border-color: color-mix(in srgb, var(--green) 30%, var(--editorial-border));
}

html[data-theme="dark"] body.is-app .checklist-scope button.is-active,
html[data-theme="dark"] body.is-app .checklist-board-scope button.is-active,
html[data-theme="dark"] body.is-app .checklist-board-tabs button.is-active {
    background: color-mix(in srgb, var(--primary) 16%, var(--editorial-inset));
    color: var(--text);
}

html[data-theme="dark"] body.is-app .member-head {
    background: color-mix(in srgb, currentColor 14%, var(--editorial-inset));
}

html[data-theme="dark"] body.is-app .check-category {
    color: color-mix(in srgb, var(--text) 58%, var(--muted));
}

html[data-theme="dark"] body.is-app #calendarModal .calendar-day.is-muted {
    opacity: 0.42;
}

html[data-theme="dark"] body.is-app .week-day-number {
    color: var(--text);
}

html[data-theme="dark"] body.is-app .week-day.is-active .week-day-number,
html[data-theme="dark"] body.is-app .week-day.is-today .week-day-number {
    color: color-mix(in srgb, var(--primary) 88%, #fff 12%);
}

html[data-theme="dark"] body.is-app .date-nav-button {
    color: var(--muted);
}

html[data-theme="dark"] body.is-app .date-nav-button:hover,
html[data-theme="dark"] body.is-app .date-nav-button:focus-visible {
    color: color-mix(in srgb, var(--primary) 90%, #fff 10%);
    background: color-mix(in srgb, var(--primary) 14%, transparent);
}

html[data-theme="dark"] body.is-app .date-today-button:not(:disabled) {
    color: color-mix(in srgb, var(--primary) 88%, #fff 12%);
}

html[data-theme="dark"] body.is-app .date-today-button:disabled,
html[data-theme="dark"] body.is-app .date-today-button.is-current {
    color: var(--muted);
    opacity: 0.55;
}

html[data-theme="dark"] body.is-app .menu-button--gear {
    color: var(--muted);
}

html[data-theme="dark"] body.is-app .menu-button--gear:hover,
html[data-theme="dark"] body.is-app .menu-button--gear:focus-visible,
html[data-theme="dark"] body.is-app .app-menu.is-open .menu-button--gear {
    color: color-mix(in srgb, var(--primary) 88%, #fff 12%);
}

@media (prefers-reduced-motion: reduce) {
    body.is-app .day-utility-panel.is-panel-enter,
    body.is-app .progress-head-count.is-progress-bump {
        animation: none !important;
    }
}

@media (max-width: 620px) {
    body.is-app .app-header-copy {
        padding: 0 40px;
    }

    body.is-app .app-header-team {
        font-size: clamp(1.45rem, 8vw, 1.85rem);
    }

    body.is-app .week-day {
        min-height: 52px;
    }

    body.is-app .week-card,
    body.is-app .progress-card,
    body.is-app .day-panel-card,
    body.is-app .chat-box,
    body.is-app .checklist,
    body.is-app .active-timers-card,
    body.is-app .day-panel-card .day-utility-panel {
        padding: 12px;
    }

    body.is-app .check-button {
        width: 30px;
        height: 30px;
    }

    body.is-app .date-button--editorial {
        font-size: 0.88rem;
    }
}

@media (max-width: 380px) {
    body.is-app .date-controls--editorial {
        grid-template-columns: 32px minmax(0, 1fr) auto;
        gap: 4px;
    }

    body.is-app .date-nav-button {
        flex-basis: 32px;
        width: 32px;
        min-width: 32px;
    }

    body.is-app .date-today-button {
        min-width: 46px;
        padding: 0 6px;
        font-size: 0.72rem;
    }
}
