@import url('/tokens.css');
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.5}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}a{color:var(--primary)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #a5b4fc;outline-offset:3px}button{border:0;background:none;color:inherit}svg{width:21px;height:21px;flex-shrink:0;vertical-align:middle}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(1.65rem,2.8vw,2.3rem);letter-spacing:-.035em;line-height:1.2;margin-bottom:8px}h2{font-size:1.15rem;letter-spacing:-.015em;margin-bottom:0}h3{font-size:1rem;margin-bottom:8px}p{margin-bottom:12px}.muted{color:var(--muted)}.small{font-size:.875rem}.eyebrow{font-size:.875rem;font-weight:600;color:var(--muted);margin-bottom:7px}.icon-button{width:42px;height:42px;display:inline-grid;place-items:center;border:1px solid var(--line);background:var(--surface,#fff);border-radius:12px;flex-shrink:0}.icon-button:hover{background:#f1f2f8}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 17px;border-radius:11px;font-weight:600;font-size:.875rem;line-height:1.4;background:var(--surface,#fff);border:1px solid var(--line);white-space:normal}.button:hover{background:#f7f7fc}.button.primary{background:var(--primary);border-color:var(--primary);color:#fff;box-shadow:0 4px 9px #4f46e51a}.button.primary:hover{background:#4338ca}.button.danger{background:#fff1f2;color:#be123c;border-color:#fecdd3}.button.subtle{border:0;box-shadow:none;background:#f1f2fb;color:var(--primary)}.button svg{width:18px;height:18px}.tag{font-size:.75rem;font-weight:600;border-radius:6px;padding:3px 7px;background:#eef0ff;color:#4f46e5;white-space:nowrap}.tag.orange{background:#fff2df;color:#ad6216}.tag.green{background:#e8f8ee;color:#287546}.badge{background:#1e293b;color:#a8b2c5;border-radius:5px;font-size:.75rem;padding:2px 6px}.flex{display:flex;align-items:center;gap:10px}.wrap{flex-wrap:wrap}.between{justify-content:space-between}.spacer{flex:1}.stack{display:grid;gap:16px}.section-gap{margin-top:26px}.empty{display:grid;justify-items:center;text-align:center;gap:10px;padding:35px 20px;color:var(--muted)}.empty svg{width:36px;height:36px;color:#a0a5c1}.empty h3{color:var(--ink);margin-bottom:0}.empty p{max-width:360px;margin:0}.panel{background:var(--surface,#fff);border:1px solid var(--line);border-radius:17px;overflow:hidden}.panel-head{padding:19px 22px;display:flex;justify-content:space-between;align-items:center;gap:14px;border-bottom:1px solid var(--line)}.panel-body{padding:22px}.panel-link{color:var(--primary);font-size:.875rem;font-weight:600;padding:6px}.panel-link:hover{text-decoration:underline}.shell{display:grid;grid-template-columns:228px minmax(0,1fr);min-height:100dvh}.rail{position:sticky;top:0;height:100dvh;background:var(--nav);color:#e2e8f0;padding:28px 18px;display:flex;flex-direction:column;gap:25px;z-index:40}.brand{display:flex;gap:12px;align-items:center;padding:0 10px;line-height:1.2}.brand-mark{width:40px;height:40px;border-radius:12px;background:#a3e635;color:#172333;display:grid;place-items:center;flex-shrink:0}.brand-mark svg{width:25px;height:25px}.brand strong{font-size:1.05rem;letter-spacing:-.025em}.brand small{display:block;font-size:.75rem;font-weight:500;color:#a5b0c5;margin-top:4px}.rail-label{font-size:.75rem;color:#8897ad;font-weight:600;letter-spacing:.08em;text-transform:uppercase;padding:0 13px;margin-bottom:10px}.nav-list{display:grid;gap:5px}.nav-item{display:flex;align-items:center;gap:12px;text-align:left;border-radius:10px;padding:12px 13px;color:#aebacf;font-weight:500;font-size:.875rem;min-height:47px;width:100%}.nav-item:hover{background:#1d293c;color:white}.nav-item.active{background:#344064;color:#fff}.nav-item.active svg{color:#c4b5fd}.nav-item svg{width:20px;height:20px}.nav-item:disabled{opacity:.65}.nav-bottom{margin-top:auto}.self-hosted{border:1px solid #354155;border-radius:12px;padding:13px 12px;font-size:.75rem;line-height:1.5;color:#aebacf}.self-hosted strong{display:block;color:#e2e8f0;font-size:.875rem;margin-bottom:2px}.self-hosted svg{width:17px;height:17px;color:#a3e635;margin-right:5px}.workspace{min-width:0}.topbar{min-height:78px;border-bottom:1px solid var(--line);padding:16px 34px;display:flex;gap:16px;align-items:center;background:var(--surface,#fff)}.family-title{font-weight:600}.topbar .local-clock{font-variant-numeric:tabular-nums;font-size:.875rem;font-weight:600;color:var(--muted)}.topbar .divider{height:22px;border-left:1px solid var(--line)}.topbar .icon-button{border:0;background:#f4f5fa}.connection{display:flex;align-items:center;gap:6px;font-size:.75rem;color:var(--muted)}.connection:before{content:"";height:6px;width:6px;border-radius:50%;background:#16a34a}.connection.offline:before{background:#ef4444}.mobile-menu{display:none}.main{max-width:1700px;padding:32px 34px 40px;margin:auto;min-width:0}.page-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.page-head p{margin:0;color:var(--muted);font-size:.875rem}.head-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.family-filters{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.filter{min-height:39px;display:flex;align-items:center;gap:8px;padding:6px 11px;border:1px solid var(--line);border-radius:24px;background:var(--surface,#fff);font-size:.875rem;color:#59627a;font-weight:500}.filter.active{border-color:var(--primary);box-shadow:0 0 0 1px var(--primary);color:var(--primary);background:#f7f7ff}.avatar{width:28px;height:28px;border-radius:9px;display:inline-grid;place-items:center;font-size:.75rem;font-weight:700;background:var(--person-bg,#eef0ff);color:var(--person,#4f46e5);flex-shrink:0}.avatar.large{width:47px;height:47px;border-radius:14px;font-size:1.1rem}.avatar.round{border-radius:50%;width:22px;height:22px;font-size:.75rem}.summary-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0}.summary-card{display:flex;align-items:center;gap:15px;background:var(--surface,#fff);border:1px solid var(--line);border-radius:15px;padding:18px 20px}.summary-icon{width:45px;height:45px;display:grid;place-items:center;border-radius:12px;background:#eeeeff;color:#6366f1}.summary-icon.orange{background:#fff0db;color:#df9439}.summary-icon.green{background:#e5f5ed;color:#36a673}.summary-card strong{display:block;font-size:1.5rem;line-height:1.3;letter-spacing:-.03em}.summary-card span{font-size:.875rem;color:var(--muted)}.summary-card .summary-hint{margin-left:auto;font-size:.75rem;max-width:100px;text-align:right;color:var(--muted)}.home-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr);gap:22px;margin-top:24px}.week-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.week-caption{font-size:.875rem;font-weight:600}.day-switch{display:flex;gap:5px}.day-switch button{width:31px;height:31px;border-radius:8px;display:grid;place-items:center;color:var(--muted)}.day-switch button:hover{background:#f0f1fa}.week-scroll{overflow-x:auto;overscroll-behavior-x:contain}.week-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));min-width:760px}.day-column{border-right:1px solid var(--line);min-height:250px;padding:0 9px 14px;min-width:0}.day-column:last-child{border-right:0}.day-top{text-align:center;padding:16px 2px 15px;color:var(--muted);font-size:.75rem;font-weight:500}.day-top strong{display:grid;place-items:center;width:33px;height:33px;margin:5px auto 0;font-size:1.2rem;color:var(--ink);border-radius:11px}.day-column.today{background:#fafaff}.day-column.today .day-top strong{background:var(--primary);color:#fff}.event-card{position:relative;text-align:left;width:100%;padding:9px 8px;background:var(--person-bg,#f0f0fe);border-left:3px solid var(--person,#6366f1);border-radius:7px;margin-bottom:8px;color:var(--ink);font-size:.875rem;line-height:1.35;overflow-wrap:anywhere}.event-card:hover{filter:brightness(.97)}.event-card strong{font-size:.8125rem;font-weight:600;display:block}.event-card .event-time{font-size:.75rem;color:var(--person,#6366f1);display:block;font-weight:600;margin-bottom:4px}.event-card .event-person{font-size:.75rem;opacity:.7;margin-top:5px;display:block}.day-add{opacity:.4;display:grid;place-items:center;width:100%;height:29px;border-radius:7px;color:var(--muted)}.day-add:hover{opacity:1;background:#eeefff}.day-add svg{width:15px;height:15px}.day-meal{border:1px dashed var(--line);border-radius:9px;padding:8px;display:flex;gap:5px;align-items:flex-start;font-size:.75rem;margin-top:10px;color:var(--muted)}.day-meal svg{width:14px;height:14px;margin-top:3px}.todo-row{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #f0f1f6}.todo-row:last-child{border:0}.todo-title{font-size:.875rem;font-weight:500;overflow-wrap:anywhere}.todo-detail{font-size:.75rem;color:var(--muted);margin-top:3px}.todo-row.done .todo-title{text-decoration:line-through;color:#8e95a6}.check-button{width:25px;height:25px;border:1.5px solid #d6dbea;border-radius:7px;display:grid;place-items:center;flex-shrink:0;background:var(--surface,#fff)}.check-button.checked{background:var(--primary);border-color:var(--primary);color:#fff}.check-button svg{width:17px;height:17px}.points-tag{display:inline-flex;gap:4px;align-items:center;font-size:.75rem;color:#a96717;white-space:nowrap;background:#fff4de;padding:3px 7px;border-radius:6px}.points-tag svg{width:13px;height:13px}.mini-progress{height:5px;border-radius:5px;background:#edeffa;overflow:hidden}.mini-progress div{height:100%;background:var(--primary);border-radius:5px}.meal-preview{background:#eaf5f1;border-color:#cfe7dc}.meal-preview .panel-head{border-color:#d4e8df}.meal-label{display:inline-block;color:#3d8267;font-size:.75rem;font-weight:600;background:#d4ebdf;padding:4px 9px;border-radius:6px;margin-bottom:14px}.meal-preview h3{font-size:1.3rem;line-height:1.3;letter-spacing:-.02em}.meal-meta{display:flex;gap:16px;color:#4e7968;font-size:.875rem;margin-top:14px}.meal-meta svg{width:16px;height:16px;margin-right:4px}.meal-preview .button{background:var(--surface,#fff);border-color:#c2ddce;color:#356a52;margin-top:19px}.note-preview{font-size:.875rem;color:var(--muted);white-space:pre-line;line-height:1.65;margin:10px 0 16px}.view-switch{display:flex;gap:3px;padding:4px;border:1px solid var(--line);border-radius:10px;background:#f4f5fa}.view-switch button{padding:6px 12px;border-radius:7px;font-size:.875rem;color:var(--muted)}.view-switch button.active{background:var(--surface,#fff);color:var(--ink);box-shadow:0 1px 5px #2430550d}.month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.month-label{padding:10px;color:var(--muted);text-align:center;font-size:.75rem;font-weight:600;border-bottom:1px solid var(--line)}.month-cell{padding:8px;min-height:130px;border-bottom:1px solid var(--line);border-right:1px solid var(--line);min-width:0}.month-cell:nth-child(7n){border-right:0}.month-cell.outside{background:#f9fafc;color:#a2a8b7}.month-cell.today .date-num{background:var(--primary);color:#fff}.date-num{display:inline-grid;place-items:center;min-width:29px;height:29px;border-radius:9px;font-size:.875rem;margin-bottom:6px}.month-cell .event-card{padding:5px;font-size:.75rem;margin-bottom:4px}.month-cell .event-card strong{font-size:.75rem}.month-cell .event-person{display:none}.agenda-day{padding:18px 22px;border-bottom:1px solid var(--line)}.agenda-day:last-child{border:0}.agenda-event{display:flex;gap:13px;align-items:center;text-align:left;width:100%;padding:12px 0}.agenda-time{min-width:85px;color:var(--muted);font-size:.875rem}.agenda-line{width:4px;align-self:stretch;border-radius:3px;background:var(--person)}.task-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(270px,1fr);gap:22px;margin-top:22px}.member-tasks{margin-bottom:18px}.task-buttons{display:flex;gap:2px;align-items:center}.task-buttons .icon-button{width:30px;height:30px;border:0;color:#989fb2;background:none}.task-buttons svg{width:16px;height:16px}.points-member{display:flex;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid #f0f1f6}.points-member:last-child{border:0}.point-value{font-size:1.35rem;font-weight:700;color:var(--primary)}.reward-row{padding:16px 0;border-bottom:1px solid var(--line)}.reward-row:last-child{border:0}.reward-row .button{min-height:36px;padding:7px 11px;font-size:.75rem;margin-top:10px}.recipe-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.recipe-card{padding:22px;display:flex;flex-direction:column;align-items:flex-start}.recipe-card h3{font-size:1.12rem;line-height:1.3;margin:14px 0 10px}.recipe-card .recipe-meta{color:var(--muted);font-size:.875rem;display:flex;gap:14px;flex-wrap:wrap;margin-bottom:20px}.recipe-card .recipe-meta svg{width:16px;height:16px}.recipe-card .recipe-bottom{margin-top:auto;width:100%}.meal-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:12px;margin:22px 0 28px;min-width:780px}.meal-day{border:1px solid var(--line);border-radius:13px;padding:15px 13px;background:var(--surface,#fff);min-height:170px;display:flex;flex-direction:column}.meal-day.today{border-color:#a5b4fc;background:#f9f9ff}.meal-day .day-name{font-size:.75rem;font-weight:600;color:var(--muted);margin-bottom:16px}.meal-day h3{font-size:.875rem}.meal-day .meal-add{margin-top:auto;text-align:left;color:var(--primary);font-size:.8125rem;font-weight:500;display:flex;gap:6px;align-items:center;padding:8px 0}.meal-day svg{width:16px;height:16px}.list-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:22px;margin-top:22px}.list-nav{padding:10px}.list-nav button{width:100%;min-height:45px;text-align:left;display:flex;align-items:center;gap:10px;padding:12px;border-radius:9px;font-size:.875rem}.list-nav button.active{background:#eef0ff;color:var(--primary)}.list-nav svg{width:19px;height:19px}.list-category{font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin:19px 0 6px}.inline-add{display:flex;gap:8px;margin-bottom:17px}.inline-add input{min-width:0;flex:1}.notes-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.note-card{padding:22px;position:relative;min-height:190px}.note-card.pinned{border-top:3px solid #f5bd5e}.note-card .note-body{white-space:pre-wrap;font-size:.875rem;line-height:1.7;color:var(--muted);margin:12px 0 20px;overflow-wrap:anywhere}.note-card h3{overflow-wrap:anywhere}.note-card .note-footer{display:flex;justify-content:flex-end;gap:3px}.note-card .note-footer button{color:var(--muted);padding:5px}.note-card .note-footer svg{width:17px;height:17px}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:start}.settings-wide{grid-column:1/-1}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.form-field{display:grid;gap:6px;font-size:.875rem;font-weight:500;min-width:0}.form-field.full{grid-column:1/-1}input,select,textarea{width:100%;border:1px solid #dce0eb;border-radius:9px;padding:10px 12px;min-height:44px;background:var(--surface,#fff);color:var(--ink);font-size:1rem;min-width:0}input[type=color]{padding:5px;max-width:100px}input[type=checkbox]{width:19px;height:19px;min-height:0;accent-color:var(--primary);flex-shrink:0}textarea{resize:vertical;min-height:100px}.field-hint{font-weight:400;font-size:.8125rem;color:var(--muted)}.checkbox-field{display:flex;gap:10px;align-items:center;font-size:.875rem;font-weight:400}.form-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin-top:22px}.form-error{color:#be123c;background:#fff1f2;border-radius:8px;padding:10px 12px;font-size:.875rem;margin-top:12px}.form-error:empty{display:none}.member-edit{padding:12px 0;display:flex;gap:12px;align-items:center;border-bottom:1px solid var(--line)}.member-edit:last-child{border:0}.integration-card{padding:18px;border:1px solid var(--line);border-radius:12px;margin-top:16px}.integration-heading{display:flex;gap:10px;align-items:center;margin-bottom:12px}.google-logo{font-size:1.25rem;font-weight:750;color:#4285f4;background:#f0f5ff;width:35px;height:35px;border-radius:9px;display:grid;place-items:center}.calendar-setting{display:grid;grid-template-columns:minmax(0,1fr) 160px;gap:12px;align-items:center;padding:10px 0;border-top:1px solid var(--line)}.calendar-setting label{overflow-wrap:anywhere}.calendar-setting select{font-size:.875rem}.integration-error{font-size:.8125rem;color:#be123c;margin-top:10px}.info-box{font-size:.875rem;background:#f3f4fa;border:1px solid var(--line);border-radius:10px;padding:14px;color:var(--muted);line-height:1.6}.photo-sources{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:22px 0}.source-card{background:var(--surface,#fff);border:1px solid var(--line);border-radius:13px;padding:18px;text-align:left;display:grid;gap:9px}.source-card svg{color:#858baa;width:25px;height:25px}.source-card.active{border-color:var(--primary);box-shadow:0 0 0 1px var(--primary);background:#f8f8ff}.source-card.active svg{color:var(--primary)}.source-card strong{font-size:.875rem}.source-card small{font-size:.75rem;color:var(--muted)}.photo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:22px}.photo-thumbnail{position:relative;aspect-ratio:4/3;background:#e9edf3;border-radius:12px;overflow:hidden;cursor:pointer}.photo-thumbnail img{width:100%;height:100%;object-fit:cover}.photo-thumbnail .photo-delete{position:absolute;top:8px;right:8px;background:var(--surface,#fff);border-radius:8px;padding:6px;display:grid;place-items:center}.photo-thumbnail .photo-delete svg{width:16px;height:16px}.photo-caption{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(transparent,#0008);color:#fff;font-size:.75rem;padding:20px 10px 10px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.photo-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.photo-toolbar select{width:auto;max-width:350px}.upload-button input{display:none}.upload-button{cursor:pointer}#slideshow{position:fixed;inset:0;background:#090c12;z-index:200;color:white}#slideshow[hidden]{display:none}#slideshow img{width:100%;height:100%;object-fit:contain}#slideshow .slide-overlay{position:absolute;inset:0;background:linear-gradient(#0007,transparent 25%,transparent 65%,#0007);pointer-events:none}#slideshow .slide-toolbar{position:absolute;top:24px;left:24px;right:24px;display:flex;align-items:center;gap:12px}#slideshow .icon-button{background:#ffffff1f;color:white;border-color:#ffffff2a}#slideshow .slide-footer{position:absolute;bottom:28px;left:30px;right:30px;display:flex;align-items:end;justify-content:space-between;gap:15px}#slideshow .slide-clock{font-size:clamp(2.5rem,7vw,5.5rem);letter-spacing:-.04em;line-height:1.1;font-weight:300}#slideshow .slide-count{font-size:.875rem;opacity:.75}.auth-page{min-height:100dvh;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr)}.auth-art{background:#172237;color:white;display:flex;flex-direction:column;justify-content:center;padding:clamp(28px,6vw,90px);position:relative;overflow:hidden}.auth-art .brand{padding:0;margin-bottom:60px}.auth-art h1{font-size:clamp(2rem,4.5vw,3.7rem);max-width:530px;letter-spacing:-.04em;line-height:1.1}.auth-art p{max-width:430px;color:#b8c4d8;font-size:1rem;line-height:1.8}.auth-art .auth-feature{padding:18px 0;display:flex;gap:14px;align-items:center;color:#c6d1e4;font-size:.875rem}.auth-art .auth-feature svg{color:#a3e635}.auth-form-wrap{display:grid;place-items:center;padding:40px 24px;background:var(--surface,#fff)}.auth-form{width:100%;max-width:440px}.auth-form h2{font-size:1.5rem;margin-bottom:10px}.auth-form>p{color:var(--muted);font-size:.875rem;margin-bottom:26px}.auth-form .form-field{margin-bottom:17px}.auth-form .button.primary{width:100%;margin-top:14px}.auth-version{margin-top:25px;font-size:.75rem;color:#9199ad}.boot{display:grid;place-content:center;justify-items:center;min-height:100dvh;color:var(--muted)}.loader{height:28px;width:28px;border:3px solid #dfe1ff;border-top-color:var(--primary);border-radius:50%;animation:spin .8s linear infinite}.loader+p{margin-top:16px}@keyframes spin{to{transform:rotate(360deg)}}dialog{border:0;border-radius:18px;padding:0;width:min(600px,calc(100vw - 32px));max-height:calc(100dvh - 40px);box-shadow:0 25px 120px #131b4052;color:var(--ink)}dialog::backdrop{background:#10152a80;backdrop-filter:blur(3px)}.dialog-header{padding:21px 24px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:15px}.dialog-header h2{font-size:1.25rem}.dialog-header .icon-button{width:33px;height:33px;border:0;background:#f4f5fa}.dialog-body{padding:24px}.dialog-body .recipe-instructions{white-space:pre-wrap;color:var(--muted);font-size:1rem;line-height:1.8}.ingredient-row{display:flex;gap:8px;padding:7px 0;border-bottom:1px solid var(--line);font-size:.875rem}.ingredient-row span:first-child{min-width:100px;font-weight:500}.confirm-body{padding:24px}.confirm-body p{color:var(--muted)}#toasts{position:fixed;bottom:25px;right:25px;z-index:300;display:grid;gap:8px;max-width:min(400px,calc(100vw - 32px))}.toast{padding:13px 18px;border-radius:12px;background:#172237;color:#fff;box-shadow:0 8px 35px #10152a26;font-size:.875rem;animation:toast-in .2s}.toast.error{background:#9f1239}@keyframes toast-in{from{transform:translateY(12px);opacity:0}to{transform:translateY(0);opacity:1}}.mobile-nav{display:none}.offline-banner{padding:10px 20px;background:#fff0db;color:#91570c;font-size:.875rem;text-align:center}.online-only[disabled]{opacity:.4}
@media(min-width:1700px){.week-grid{min-width:0}.day-column{min-height:300px}.event-card{padding:12px 10px}.event-card strong{font-size:.875rem}}
@media(max-width:1200px){.shell{grid-template-columns:205px minmax(0,1fr)}.rail{padding:25px 13px}.main{padding:25px}.topbar{padding:16px 25px}.home-grid{grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr);gap:18px}.summary-card{padding:16px}.summary-hint{display:none}.recipe-grid,.notes-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.photo-sources{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-grid{grid-template-columns:1fr}.settings-wide{grid-column:auto}}
@media(max-width:980px){.home-grid{grid-template-columns:1fr}.home-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}.home-side>.panel:last-child{grid-column:1/-1}.task-layout{grid-template-columns:1fr}.task-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}.list-layout{grid-template-columns:190px minmax(0,1fr)}.topbar .local-clock,.topbar .divider{display:none}.month-cell{min-height:110px;padding:5px}.month-cell .event-time{display:none}}
@media(max-width:760px){.shell{display:block}.rail{display:none;position:fixed;width:260px;box-shadow:0 0 0 100vw #10152a80;height:100dvh;overflow-y:auto;left:0;top:0}.rail.open{display:flex}.mobile-menu{display:inline-grid}.topbar{padding:13px 18px;gap:10px;min-height:68px}.topbar .picture-shortcut{display:none}.family-title{font-size:.875rem}.topbar .connection{font-size:.75rem}.topbar .icon-button{width:37px;height:37px}.main{padding:24px 18px 95px}.page-head{align-items:flex-start;margin-bottom:21px;gap:10px}.page-head .head-actions{max-width:50%;justify-content:flex-end}.page-head .button{padding:9px 12px}.head-actions .button-label{display:none}.page-head .button svg{margin:0}.summary-row{gap:9px;margin:20px 0}.summary-card{display:block;padding:13px 12px}.summary-icon{width:32px;height:32px;border-radius:9px;margin-bottom:9px}.summary-icon svg{width:18px;height:18px}.summary-card strong{font-size:1.4rem}.summary-card span{font-size:.75rem;line-height:1.3;display:block}.summary-card .summary-hint{display:none}.family-filters{gap:7px}.filter{font-size:.8125rem;min-height:35px;padding:5px 9px}.filter .avatar{width:22px;height:22px;border-radius:7px;font-size:.75rem}.panel-head{padding:16px}.panel-body{padding:16px}.home-grid{gap:18px;margin-top:20px}.home-side{grid-template-columns:1fr}.home-side>.panel:last-child{grid-column:auto}.task-side{grid-template-columns:1fr}.week-grid{min-width:770px}.week-toolbar{gap:5px}.week-caption{font-size:.8125rem}.panel-head h2{font-size:1.05rem}.month-scroll{overflow:auto}.month-grid{min-width:650px}.recipe-grid,.notes-grid{grid-template-columns:1fr}.meal-week{min-width:950px}.list-layout{grid-template-columns:1fr;gap:16px}.list-nav{display:flex;gap:7px;overflow-x:auto}.list-nav button{width:auto;white-space:nowrap;flex-shrink:0}.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.source-card{padding:15px}.settings-grid{gap:18px}.calendar-setting{grid-template-columns:minmax(0,1fr) 125px}.auth-page{grid-template-columns:1fr}.auth-art{padding:28px;display:block}.auth-art .brand{margin:0}.auth-art h1,.auth-art>p,.auth-art .auth-feature{display:none}.auth-form-wrap{padding:28px 24px;align-items:start}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;border-top:1px solid var(--line);background:#ffffffed;backdrop-filter:blur(12px);z-index:35;padding:7px 8px max(8px,env(safe-area-inset-bottom));justify-content:space-around;gap:3px}.mobile-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:.75rem;min-height:48px;width:20%;border-radius:10px;color:var(--muted)}.mobile-nav button.active{background:#eef0ff;color:var(--primary)}.mobile-nav svg{width:20px;height:20px}#toasts{bottom:86px;right:16px}.form-grid{gap:13px}.dialog-body,.dialog-header,.confirm-body{padding:20px}.view-switch button{padding:6px 9px}.page-head .view-switch{order:1}.agenda-day{padding:16px}.agenda-time{min-width:68px;font-size:.8125rem}.task-buttons .icon-button{width:27px}#slideshow .slide-toolbar{top:16px;left:16px;right:16px}#slideshow .slide-footer{bottom:22px;left:20px;right:20px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}
/* Auch lange Familiennamen und vergrößerte Schrift dürfen die Seite nicht verbreitern. */
body{font-size:1rem}.panel-head{flex-wrap:wrap}.spacer,.page-head>div:first-child,.family-title{min-width:0}.filter{max-width:100%;overflow-wrap:anywhere}h1,h2,h3,.todo-title,.family-title,.integration-card{overflow-wrap:anywhere}#slideshow .slide-toolbar>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(min-width:760px) and (max-height:650px){.rail{gap:13px;padding-top:18px;padding-bottom:18px}.nav-item{padding:8px 12px;min-height:39px}.self-hosted{display:none}}
/* Geburtstage passen sich auch schmalen Displays an. */
.birthday-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:18px}.birthday-card{padding:22px;display:flex;flex-direction:column;align-items:flex-start;gap:12px}.birthday-card>.flex{width:100%}.birthday-card h2,.birthday-card p{margin:0}.birthday-card .panel-link{margin-top:auto}.birthday-date{display:flex;align-items:center;gap:10px}.birthday-date svg{width:22px;height:22px;flex-shrink:0;color:var(--primary)}.form-grid>.full{grid-column:1/-1}.info-box p:last-child{margin-bottom:0}.birthday-event{border-left-style:dashed}

