/* dashboard familial — style.css */

/* ===== variables ===== */
:root {
    --white:     #ffffff;
    --bg:        #f8f8f7;
    --border:    #e8e8e5;
    --border-md: #d4d4cf;
    --text:      #111110;
    --text-2:    #555552;
    --text-3:    #999995;
    --radius:    14px;
    --radius-sm: 8px;
    --shadow:    0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
    --transition: .18s ease;
}

/* ===== reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    overscroll-behavior: none;
}
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ===== écran de chargement ===== */
#loading-screen {
    position: fixed; inset: 0;
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 9999;
    transition: opacity .3s;
}
#loading-screen.hidden { opacity: 0; pointer-events: none; }
.loader {
    width: 36px; height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--text);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== écran de login ===== */
#login-screen {
    display: none;
    position: fixed; inset: 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    z-index: 9998;
}
#login-screen.visible { display: flex; }

.login-box {
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.login-box h1 {
    font-size: clamp(26px, 6vw, 36px);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.1;
}
.login-box p { color: var(--text-2); font-size: 15px; }

.pin-input-wrap {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.pin-digit {
    width: 60px; height: 70px;
    border: 1.5px solid var(--border-md);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    background: var(--white);
    transition: border-color var(--transition);
    -webkit-appearance: none;
}
.pin-digit:focus {
    outline: none;
    border-color: var(--text);
}
.pin-error {
    color: #c0392b;
    font-size: 14px;
    text-align: center;
    min-height: 20px;
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: var(--text);
    color: var(--white);
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    transition: opacity var(--transition);
}
.btn-primary:hover { opacity: .85; }
.btn-primary:active { opacity: .7; }

/* ===== sélection du membre ===== */
#member-screen {
    display: none;
    position: fixed; inset: 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    z-index: 9997;
}
#member-screen.visible { display: flex; }

.member-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    width: 100%;
    max-width: 400px;
    margin-top: 24px;
}

.member-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 28px 16px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 18px;
    transition: border-color var(--transition), transform var(--transition);
    min-height: 120px;
}
.member-card:active { transform: scale(.97); }
.member-card:hover { border-color: var(--border-md); }

.member-avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
}
.member-card .name {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.01em;
}
.member-card .role { font-size: 13px; color: var(--text-3); }

/* ===== app principale ===== */
#app {
    display: none;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 80px; /* hauteur nav mobile */
}
#app.visible { display: flex; }

/* ===== topbar ===== */
.topbar {
    position: sticky; top: 0;
    background: rgba(248,248,247,.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
}
.topbar-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.02em;
}
.topbar-member {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-2);
}
.topbar-avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
}
.btn-icon {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: background var(--transition);
    color: var(--text-2);
    font-size: 20px;
}
.btn-icon:hover { background: var(--border); }

/* ===== pages ===== */
.page { display: none; padding: 0 0 24px; }
.page.active { display: block; }

.page-inner { padding: 20px 20px 0; }

/* ===== section card ===== */
.section-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 14px;
}
.section-card-header {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.section-card-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-3);
}

/* ===== HOME ===== */
.home-hero {
    padding: 24px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.home-date {
    font-size: clamp(13px, 3vw, 15px);
    color: var(--text-3);
    font-weight: 500;
    text-transform: capitalize;
}
.home-time {
    font-size: clamp(56px, 16vw, 88px);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1;
    color: var(--text);
}

/* météo */
.weather-widget {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.weather-current {
    display: flex;
    align-items: center;
    gap: 14px;
}
.weather-icon { font-size: 36px; line-height: 1; }
.weather-temp {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.02em;
}
.weather-city { font-size: 12px; color: var(--text-3); }

/* créneaux prévisions */
.weather-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    border-top: 1px solid var(--border);
    padding-top: 14px;
}
.weather-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
}
.weather-slot-icon { font-size: 22px; line-height: 1; }
.weather-slot-temp {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.01em;
}
.weather-slot-label {
    font-size: 11px;
    color: var(--text-3);
    font-weight: 500;
    line-height: 1.3;
}
.weather-slot-precip {
    font-size: 11px;
    color: #3B7DD8;
    font-weight: 600;
}

/* humeurs home */
.moods-row {
    display: flex;
    gap: 12px;
    padding: 16px 18px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.mood-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.mood-chip .avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    position: relative;
}
.mood-chip .mood-emoji {
    position: absolute;
    bottom: -4px; right: -4px;
    font-size: 16px;
    line-height: 1;
}
.mood-chip .mood-name {
    font-size: 11px;
    color: var(--text-3);
    font-weight: 500;
}

/* événements home */
.event-list { padding: 4px 0; }
.event-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.event-item:last-child { border-bottom: none; }
.event-item:hover { background: var(--bg); }

.event-date-col {
    min-width: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2px;
}
.event-day {
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.02em;
}
.event-month {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-3);
    font-weight: 600;
}
.event-content { flex: 1; min-width: 0; }
.event-title {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.event-meta {
    font-size: 13px;
    color: var(--text-2);
    margin-top: 2px;
}
.event-type-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}
.event-type-event       { background: #3B7DD8; }
.event-type-birthday    { background: #D4537E; }
.event-type-appointment { background: #1D9E75; }

/* ===== AGENDA ===== */
.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 8px;
}
.calendar-month-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.02em;
    text-transform: capitalize;
}
.btn-nav {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--border);
    font-size: 18px;
    color: var(--text);
    transition: background var(--transition);
}
.btn-nav:hover { background: var(--bg); }

.calendar-grid-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 0 20px;
    margin-bottom: 4px;
}
.calendar-dow {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-3);
    padding: 6px 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    padding: 0 20px;
}
.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 4px 2px 2px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition);
    min-height: 40px;
}
.calendar-day:hover { background: var(--border); }
.calendar-day.other-month .day-num { color: var(--text-3); }
.calendar-day.today .day-num {
    background: var(--text);
    color: var(--white);
    width: 26px; height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.calendar-day.has-event .day-dots {
    display: flex;
    gap: 2px;
    margin-top: 2px;
}
.calendar-day .day-num {
    font-size: 13px;
    font-weight: 500;
    line-height: 26px;
    width: 26px;
    text-align: center;
}
.cal-dot {
    width: 4px; height: 4px;
    border-radius: 50%;
}
.day-dots { display: flex; gap: 2px; margin-top: 1px; }

/* liste événements agenda */
.agenda-events {
    padding: 16px 20px 0;
}
.agenda-day-group { margin-bottom: 20px; }
.agenda-day-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-3);
    margin-bottom: 8px;
}
.agenda-event-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-left-width: 3px;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.agenda-event-title {
    font-size: 15px;
    font-weight: 600;
}
.agenda-event-meta { font-size: 13px; color: var(--text-2); }
.btn-delete-event {
    color: var(--text-3);
    font-size: 18px;
    padding: 4px;
    flex-shrink: 0;
    transition: color var(--transition);
}
.btn-delete-event:hover { color: #c0392b; }

/* ===== LISTES ===== */
.lists-tabs {
    display: flex;
    gap: 8px;
    padding: 16px 20px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.list-tab {
    padding: 8px 16px;
    border-radius: 99px;
    border: 1.5px solid var(--border);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    background: var(--white);
    color: var(--text-2);
    transition: all var(--transition);
    flex-shrink: 0;
}
.list-tab.active {
    background: var(--text);
    color: var(--white);
    border-color: var(--text);
}

.list-content { padding: 16px 20px 0; }

.list-items { margin-bottom: 14px; }
.list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.list-item:last-child { border-bottom: none; }

.list-check {
    width: 24px; height: 24px;
    border: 2px solid var(--border-md);
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    cursor: pointer;
}
.list-check.checked {
    background: var(--text);
    border-color: var(--text);
}
.list-check.checked::after {
    content: "✓";
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
}
.list-item-text {
    flex: 1;
    font-size: 16px;
    transition: color var(--transition), text-decoration var(--transition);
}
.list-item-text.checked {
    color: var(--text-3);
    text-decoration: line-through;
}
.btn-del-item {
    color: var(--text-3);
    font-size: 18px;
    padding: 4px;
    transition: color var(--transition);
}
.btn-del-item:hover { color: #c0392b; }

/* ajout rapide */
.quick-add {
    display: flex;
    gap: 10px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 4px 4px 4px 14px;
    align-items: center;
}
.quick-add input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
    padding: 8px 0;
}
.btn-add-item {
    width: 40px; height: 40px;
    background: var(--text);
    color: var(--white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 300;
    flex-shrink: 0;
    transition: opacity var(--transition);
}
.btn-add-item:hover { opacity: .8; }

.btn-clear-checked {
    font-size: 13px;
    color: var(--text-3);
    padding: 8px 0;
    text-align: right;
    display: block;
    width: 100%;
    transition: color var(--transition);
}
.btn-clear-checked:hover { color: var(--text); }

/* ===== HUMEURS ===== */
.moods-page { padding: 20px; }
.moods-page h2 {
    font-size: clamp(22px, 5vw, 30px);
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: 6px;
}
.moods-page .subtitle { font-size: 15px; color: var(--text-2); margin-bottom: 24px; }

.mood-member-section { margin-bottom: 20px; }
.mood-member-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.mood-member-header .avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
}
.mood-member-name { font-weight: 700; font-size: 16px; }
.mood-member-current { font-size: 13px; color: var(--text-3); margin-left: auto; }

.mood-picker {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.mood-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 6px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    background: var(--white);
    transition: all var(--transition);
    cursor: pointer;
}
.mood-btn:hover { border-color: var(--border-md); background: var(--bg); }
.mood-btn.selected {
    border-color: var(--text);
    background: var(--text);
    color: var(--white);
}
.mood-btn .emoji { font-size: 24px; line-height: 1; }
.mood-btn .label { font-size: 11px; font-weight: 600; text-align: center; color: var(--text-2); }
.mood-btn.selected .label { color: var(--white); }

/* ===== IDÉES ===== */
.ideas-page { padding: 20px; }
.ideas-page h2 {
    font-size: clamp(22px, 5vw, 30px);
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: 24px;
}

.ideas-cats {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.cat-btn {
    padding: 6px 14px;
    border-radius: 99px;
    border: 1.5px solid var(--border);
    font-size: 13px;
    font-weight: 600;
    background: var(--white);
    color: var(--text-2);
    transition: all var(--transition);
}
.cat-btn.active {
    background: var(--text);
    color: var(--white);
    border-color: var(--text);
}

.idea-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.idea-text { font-size: 16px; font-weight: 500; line-height: 1.45; }
.idea-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-3);
}
.idea-author { flex: 1; }
.btn-like {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 99px;
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition);
}
.btn-like:hover { border-color: #D4537E; color: #D4537E; }
.btn-like.liked { background: #fef0f4; border-color: #D4537E; color: #D4537E; }
.btn-del-idea {
    color: var(--text-3);
    font-size: 16px;
    padding: 4px;
    transition: color var(--transition);
}
.btn-del-idea:hover { color: #c0392b; }

/* ajout idée */
.add-idea-form {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.add-idea-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 15px;
    resize: none;
    min-height: 70px;
    outline: none;
    transition: border-color var(--transition);
}
.add-idea-form textarea:focus { border-color: var(--text); }
.add-idea-form select {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    background: var(--white);
    font-size: 15px;
    outline: none;
    color: var(--text);
}
.add-idea-form .form-row {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}
.add-idea-form select { flex: 1; }

/* ===== navigation bas (mobile) ===== */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(255,255,255,.94);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    z-index: 200;
    padding-bottom: env(safe-area-inset-bottom);
}
.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 10px 4px;
    color: var(--text-3);
    font-size: 11px;
    font-weight: 600;
    transition: color var(--transition);
    -webkit-tap-highlight-color: transparent;
}
.nav-btn .nav-icon {
    font-size: 24px;
    line-height: 1;
    transition: transform var(--transition);
}
.nav-btn.active { color: var(--text); }
.nav-btn.active .nav-icon { transform: scale(1.15); }

/* ===== bouton flottant (FAB) ===== */
.fab {
    position: fixed;
    right: 20px;
    bottom: calc(80px + env(safe-area-inset-bottom));
    width: 56px; height: 56px;
    background: var(--text);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 300;
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
    transition: opacity var(--transition), transform var(--transition);
    z-index: 199;
    line-height: 1;
}
.fab:hover { opacity: .9; }
.fab:active { transform: scale(.93); }
.fab.hidden { display: none; }

/* ===== drawer / modal ===== */
.overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 500;
    -webkit-tap-highlight-color: transparent;
}
.overlay.open { display: block; }

.drawer {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--white);
    border-radius: 20px 20px 0 0;
    padding: 12px 20px 32px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 501;
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.drawer.open { transform: translateY(0); }

.drawer-handle {
    width: 40px; height: 4px;
    background: var(--border-md);
    border-radius: 2px;
    margin: 0 auto 20px;
}
.drawer-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 20px;
}
.drawer-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}
.drawer-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
}
.drawer-field input,
.drawer-field select,
.drawer-field textarea {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 16px;
    outline: none;
    background: var(--white);
    transition: border-color var(--transition);
    width: 100%;
}
.drawer-field input:focus,
.drawer-field select:focus,
.drawer-field textarea:focus { border-color: var(--text); }
.drawer-field textarea { resize: vertical; min-height: 80px; }
.drawer-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* ===== toast ===== */
.toast {
    position: fixed;
    bottom: calc(90px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--text);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transition: opacity .2s, transform .2s;
    z-index: 600;
    white-space: nowrap;
    pointer-events: none;
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== états vides ===== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-3);
}
.empty-state .empty-icon { font-size: 40px; margin-bottom: 12px; }
.empty-state p { font-size: 15px; }

/* ===== breakpoint desktop ===== */
@media (min-width: 1000px) {
    body { background: var(--bg); }

    #app {
        max-width: 960px;
        margin: 0 auto;
        padding-bottom: 0;
    }

    .topbar { border-radius: 0 0 16px 16px; max-width: 960px; margin: 0 auto; left: 0; right: 0; }

    .bottom-nav {
        position: static;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-top: none;
        border-bottom: 1px solid var(--border);
        max-width: 960px;
        margin: 0 auto;
        padding-bottom: 0;
    }
    .nav-btn { padding: 14px 8px; font-size: 12px; }

    .page-inner { padding: 28px 28px 0; }
    .home-hero { padding: 32px 28px 24px; }
    .calendar-nav,
    .calendar-grid-header,
    .calendar-grid { padding-left: 28px; padding-right: 28px; }
    .agenda-events { padding: 20px 28px 0; }
    .lists-tabs { padding: 20px 28px 0; }
    .list-content { padding: 20px 28px 0; }
    .moods-page,
    .ideas-page { padding: 28px; }

    .fab { right: calc(50% - 480px + 20px); }

    .mood-picker { grid-template-columns: repeat(5, 1fr); }

    .home-time { font-size: 96px; }
}
