@charset "UTF-8";
:root{color-scheme:light;--white:#fff;--ink:#192438;--muted:#68778e;--line:#e7edf5;--blue:#152b49;--blue-dark:#0d2038;--blue-soft:#edf2f8;--purple:#9265c9;--orange:#d98d31;--green:#278365;--pink:#c15d96;--nav-height:76px;font-family:Inter,Roboto,"Segoe UI",Arial,sans-serif;font-size:15px;line-height:1.5;background:var(--white);color:var(--ink);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button,input,select,textarea,a{touch-action:manipulation}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #aac6ff;outline-offset:3px}h1,h2,h3,p{margin:0}h1{font-size:34px;letter-spacing:-1.2px;line-height:1.15;font-weight:650}h2{font-size:21px;letter-spacing:-.5px;font-weight:650}h3{font-size:16px;font-weight:600}svg{width:20px;height:20px;vertical-align:middle;flex-shrink:0}button svg{pointer-events:none}hr{border:0;border-top:1px solid var(--line);margin:20px 0}[hidden]{display:none!important}.sr-only,.skip:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip:focus{position:fixed;top:12px;left:12px;z-index:50;background:#fff;padding:14px;border:2px solid var(--blue)}.small,.field-hint{font-size:12px;color:var(--muted);line-height:1.7}.eyebrow{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:1.3px;color:var(--muted);margin-bottom:9px}.subtitle{margin-top:12px;font-size:14px;color:var(--muted);line-height:1.7}.button{border:1px solid var(--line);background:#fff;border-radius:11px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;font-size:13px;font-weight:600;color:var(--ink);text-align:center;line-height:1.5}.button:hover{background:#f7f9fc;text-decoration:none}.button.primary{background:var(--blue);color:#fff;border-color:var(--blue)}.button.primary:hover{background:var(--blue-dark)}.button.quiet{border-color:transparent;background:transparent;color:var(--blue);padding-left:0;padding-right:0}.button.danger{color:#b23b4a;background:#fff;border-color:#f0d8df}.button.icon-only{padding:10px}.icon-button{width:44px;height:44px;flex-shrink:0;display:inline-grid;place-items:center;background:#fff;color:var(--muted);border:1px solid var(--line);border-radius:12px;font-size:24px}.icon-button:hover{background:var(--blue-soft);color:var(--blue)}.row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.space-between{justify-content:space-between}.gap-top{margin-top:20px}.app-shell{max-width:1680px;margin:0 auto;display:grid;grid-template-columns:230px minmax(0,1fr);min-height:100vh}.sidebar{border-right:1px solid var(--line);padding:32px 22px;background:#fafbfe;display:flex;flex-direction:column;position:sticky;top:0;height:100dvh}.brand{font-size:26px;font-weight:750;letter-spacing:-1.2px;display:inline-flex;align-items:center;gap:8px;color:var(--ink);line-height:1}.brand:hover{text-decoration:none}.brand-logo{display:block;width:164px;height:auto;max-width:100%}.sidebar-caption{font-size:11px;color:var(--muted);margin:17px 0 30px;line-height:1.7}.desktop-navigation{display:grid;gap:7px}.nav-link{display:flex;align-items:center;gap:12px;padding:12px 14px;min-height:46px;border-radius:11px;color:#52627a;font-size:13px;font-weight:500}.nav-link:hover{background:#f0f4fa;text-decoration:none}.nav-link[aria-current=page]{background:var(--blue-soft);color:var(--blue);font-weight:650}.sidebar-family{margin-top:34px}.sidebar-family .eyebrow{margin-left:13px}.sidebar-family .person-chip{width:100%;justify-content:flex-start;border:0;padding:8px 13px;background:none}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);padding-top:18px;display:grid;gap:15px}.external-link{font-size:12px;color:#52627a;display:flex;align-items:center;justify-content:space-between;gap:10px}.sidebar-bottom .small{font-size:10px;color:#8190a5}.app-content{min-width:0}.topbar{display:flex;align-items:center;gap:12px;padding:23px 38px;min-height:82px;border-bottom:1px solid var(--line);background:#fff}.mobile-brand{display:none}.connection{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted);min-width:0}.connection-dot{width:7px;height:7px;border-radius:50%;background:#a3b3cd;flex-shrink:0}.connection.cloud .connection-dot{background:var(--green)}.connection.offline .connection-dot{background:var(--orange)}.top-actions{display:flex;align-items:center;gap:12px;margin-left:auto}.account-button{display:grid;place-items:center;min-width:36px;width:36px;height:36px;border-radius:50%;background:var(--blue-soft);color:var(--blue);font-size:12px;font-weight:650}.account-button:hover{text-decoration:none}main{max-width:1280px;margin:0 auto;padding:38px 38px 60px;outline:none}.page-intro{display:flex;align-items:center;justify-content:space-between;gap:25px;margin-bottom:28px}.notice{padding:13px 16px;background:#f5f8ff;border:1px solid #e1eafd;color:#425d8b;border-radius:10px;margin-bottom:22px;font-size:12px;line-height:1.7}.notice a{font-weight:600}.loading{padding:60px 0;color:var(--muted);font-size:14px}.toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:24px 0 18px}.toolbar .period{font-size:17px;font-weight:650;margin-right:auto}.toolbar .icon-button{width:38px;height:38px;min-height:38px;font-size:20px}.segmented{display:flex;gap:3px;padding:3px;background:#f1f5fa;border-radius:10px}.segmented button{border:0;border-radius:7px;background:transparent;color:var(--muted);font-size:12px;min-height:34px;padding:6px 12px}.segmented button[aria-pressed=true]{background:#fff;color:var(--ink);box-shadow:0 1px 4px #24385c12}.people-filter{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:23px}.person-chip{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:24px;background:#fff;min-height:42px;padding:5px 11px 5px 5px;font-size:12px;color:#44536d}.person-chip[aria-pressed=false]{opacity:.45}.avatar{width:28px;height:28px;border-radius:50%;background:var(--blue-soft);color:var(--blue);display:grid;place-items:center;flex-shrink:0;font-size:11px;font-weight:650}.avatar[data-color=purple]{background:#f2eafa;color:#8352ac}.avatar[data-color=orange]{background:#fff0dc;color:#a06920}.avatar[data-color=green]{background:#e6f4ee;color:#267c60}.avatar[data-color=pink]{background:#fbeaf3;color:#b34f88}.person-name{overflow-wrap:anywhere}.date-strip{display:none}.week-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border:1px solid var(--line);border-radius:14px;overflow:hidden}.week-day{min-width:0;border-right:1px solid var(--line);background:#fff;min-height:345px}.week-day:last-child{border-right:0}.week-day-head{display:flex;gap:9px;align-items:center;padding:15px 10px;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}.week-day-head strong{font-size:23px;font-weight:500;color:var(--ink);width:33px;height:33px;display:grid;place-items:center}.week-day.today .week-day-head strong{border-radius:50%;background:var(--blue);color:#fff}.day-events{padding:9px 7px;display:grid;gap:9px;align-content:start}.event-card{background:#fff;border:1px solid var(--line);border-left:3px solid var(--event-color,var(--blue));border-radius:9px;padding:12px 10px;min-width:0;width:100%;text-align:left;display:block;color:var(--ink);transition:background .15s}.event-card:hover{background:#fafcff}.event-time{font-size:11px;color:#5c6e88;display:block;margin-bottom:5px}.event-title{font-size:12px;font-weight:600;line-height:1.5;display:block;overflow-wrap:anywhere}.event-detail{font-size:10px;color:var(--muted);display:block;margin-top:7px;overflow-wrap:anywhere}.agenda{display:grid;gap:23px}.agenda-group h2{font-size:13px;color:#5b6b83;margin-bottom:12px;font-weight:600}.agenda-group .event-card{display:grid;grid-template-columns:65px minmax(0,1fr);gap:0 10px;padding:17px;margin-top:10px}.agenda-group .event-time{grid-row:1 / span 2;font-size:12px;font-weight:600;margin-top:2px}.agenda-group .event-title{font-size:15px}.agenda-group .event-detail{font-size:11px;grid-column:2}.empty{padding:35px 18px;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:14px}.empty-icon{display:inline-grid;place-items:center;width:48px;height:48px;border-radius:16px;background:var(--blue-soft);color:var(--blue);margin-bottom:14px}.empty h2{font-size:17px;color:var(--ink);margin-bottom:9px}.empty p{font-size:13px;max-width:380px;margin:0 auto 17px;line-height:1.8}.section-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:30px 0 15px}.section-head h2{font-size:18px}.section-head p{font-size:12px;color:var(--muted);margin-top:5px}.template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.template-card{display:flex;gap:13px;align-items:center;border:1px solid var(--line);border-radius:14px;padding:20px 17px;background:#fff;text-align:left;color:var(--ink);min-width:0}.template-card:hover{border-color:#b6cdf9;background:#fcfdff}.template-icon{color:var(--blue);background:#f5f8ff;border-radius:12px;display:grid;place-items:center;min-width:40px;width:40px;height:44px}.template-card strong{font-size:13px;display:block;font-weight:600;overflow-wrap:anywhere}.template-card small{font-size:11px;color:var(--muted);display:block;margin-top:5px}.template-help{margin-top:24px;padding:18px;border-radius:12px;background:#f8faff;color:var(--muted);font-size:12px;line-height:1.8}.month-grid{border:1px solid var(--line);border-radius:13px;overflow:hidden;display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.month-weekday{background:#fafcff;text-align:center;padding:10px;font-size:11px;color:var(--muted)}.month-cell{background:#fff;border:0;border-top:1px solid var(--line);border-right:1px solid var(--line);min-height:105px;text-align:left;padding:10px;min-width:0;color:var(--ink)}.month-cell:nth-child(7n){border-right:0}.month-cell.outside{color:#a5afbe;background:#fcfdff}.month-cell.today>.month-number{background:var(--blue);color:#fff;border-radius:50%;width:27px;height:27px;display:inline-grid;place-items:center}.month-number{font-size:13px;font-weight:500}.month-event{font-size:10px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:6px;color:#536580;border-left:2px solid var(--event-color,var(--blue));padding-left:5px}.panel{padding:24px;border:1px solid var(--line);border-radius:15px;background:#fff}.panel+.panel{margin-top:20px}.family-list{display:grid;gap:0}.family-person{display:flex;align-items:center;gap:13px;padding:17px 0;border-bottom:1px solid var(--line)}.family-person:last-child{border-bottom:0}.family-person .avatar{width:40px;height:40px;font-size:14px}.family-person strong{font-size:14px}.family-person .icon-button{margin-left:auto}.family-person p{font-size:12px;color:var(--muted);margin-top:4px}.account-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.account-grid>.panel+.panel{margin:0}.settings-row{display:flex;align-items:flex-start;gap:16px;justify-content:space-between;padding:15px 0;border-bottom:1px solid var(--line)}.settings-row:last-child{border:0}.settings-row h3{font-size:14px}.settings-row p{font-size:12px;color:var(--muted);margin-top:6px;max-width:420px}.settings-row .button{flex-shrink:0}.form-stack{display:grid;gap:16px;margin-top:20px}label{display:grid;gap:7px;font-size:12px;font-weight:500}input,select,textarea{width:100%;min-width:0;border:1px solid #dfe6f0;border-radius:10px;background:#fff;color:var(--ink);padding:11px 12px;min-height:45px}textarea{resize:vertical;min-height:90px}input[type=checkbox]{width:19px;height:19px;min-height:19px;accent-color:var(--blue);margin:0;flex-shrink:0}.check-label{display:flex;align-items:flex-start;gap:10px;font-weight:400;line-height:1.7}.check-label input{margin-top:2px}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-error{color:#ae3649;background:#fff5f6;padding:12px;border-radius:9px;font-size:12px}.form-success{color:#276c52;background:#edf9f2;padding:12px;border-radius:9px;font-size:12px}.search-row{display:flex;gap:9px;align-items:center}.search-row>input{flex:1}.provider-fields{border:1px solid var(--line);border-radius:13px;padding:17px;display:grid;gap:12px}.provider-result{padding:14px 0;border-bottom:1px solid var(--line)}.provider-result:last-child{border:0}.provider-result strong{font-size:13px}.provider-result p{font-size:11px;color:var(--muted);margin:5px 0 10px}.provider-result .row{gap:10px}.provider-result .button{font-size:11px;padding:7px 11px;min-height:37px}.provider-result a{font-size:12px}.provider-empty{padding:20px 0;color:var(--muted);font-size:12px;line-height:1.8}.booking-search{padding:22px;border:1px solid var(--line);border-radius:14px}.booking-info{margin:22px 0;max-width:680px}.share-field{display:flex;gap:8px;margin-top:16px}.share-field input{font-size:12px}.sheet{border:1px solid var(--line);padding:0;border-radius:20px;width:calc(100% - 32px);max-width:620px;max-height:90dvh;overflow:auto;background:#fff;color:var(--ink);box-shadow:0 25px 100px #17294628}.sheet::backdrop{background:#17294655;backdrop-filter:blur(3px)}.sheet-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:23px 26px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff;z-index:2}.sheet-header h2{font-size:22px}.sheet-header .eyebrow{margin-bottom:5px}.sheet-header .icon-button{border:0;font-size:28px}.sheet-content{padding:24px 26px;display:grid;gap:20px}.sheet-footer{display:flex;justify-content:flex-end;gap:10px;padding:17px 26px;border-top:1px solid var(--line);position:sticky;bottom:0;background:#fff;z-index:2}.sheet-footer .danger{margin-right:auto}.small-sheet{max-width:460px}.people-field{padding:0;border:0;margin:0;min-width:0}.people-field legend{font-size:12px;font-weight:500;margin-bottom:8px}.people-options{display:flex;flex-wrap:wrap;gap:8px}.person-option{display:flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid var(--line);border-radius:10px;font-size:12px}.person-option input{width:16px;height:16px;min-height:16px}.toast{position:fixed;bottom:27px;left:50%;transform:translateX(-50%);background:#1d2c44;color:#fff;box-shadow:0 8px 30px #17294620;padding:13px 21px;border-radius:13px;z-index:30;font-size:13px;max-width:calc(100% - 30px);text-align:center}.bottom-navigation,.fab{display:none}.content-search{margin-bottom:20px}.export-actions{display:flex;gap:8px;flex-wrap:wrap}.mode-badge{display:inline-flex;padding:5px 10px;background:var(--blue-soft);color:var(--blue);border-radius:7px;font-size:11px}.invitation{border-color:#bfd0f1;background:#fbfdff}.import-file{position:relative}.import-file input{position:absolute;width:1px;height:1px;opacity:0}.color-dot{background:var(--event-color,var(--blue));display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:5px}.event-count{font-size:11px;color:var(--muted);margin-top:12px}.read-only-hint{font-size:11px;color:var(--muted);margin-top:8px}.welcome-actions{display:flex;gap:9px;justify-content:center;flex-wrap:wrap}.install-tip{margin-top:12px;font-size:12px;color:var(--muted);line-height:1.8}.error-panel{padding:18px;border:1px solid #f0d8df;background:#fffafb;border-radius:12px;color:#a53d50;font-size:13px}
@media(min-width:1400px){main{padding:44px 54px}.week-day{min-height:420px}.week-day-head{padding:17px}.event-card{padding:14px}}
@media(max-width:1100px){.app-shell{grid-template-columns:195px minmax(0,1fr)}.sidebar{padding:28px 15px}.brand{font-size:24px}main{padding:29px 25px 50px}.topbar{padding-left:25px;padding-right:25px}.week-day-head{gap:4px;padding:11px 6px}.event-card{padding:10px 6px}.event-title{font-size:11px}.day-events{padding:7px 4px}.template-card{padding:15px 12px;gap:9px}.template-icon{min-width:32px;width:32px;height:38px}.account-grid{grid-template-columns:1fr}h1{font-size:30px}.week-day-head strong{font-size:21px;width:29px;height:29px}}
@media(max-width:760px){:root{font-size:15px;--nav-height:70px}.app-shell{display:block;min-height:100dvh}.sidebar{display:none}.topbar{padding:calc(16px + env(safe-area-inset-top)) 20px 14px;border-bottom:0;min-height:70px;flex-wrap:wrap;gap:8px}.mobile-brand{display:inline-flex;font-size:25px}.brand-logo{width:139px}.top-actions{gap:8px}.connection{order:3;width:100%;font-size:10px;margin-top:6px}.account-button{width:34px;height:34px}.top-actions .icon-button{height:34px;width:34px;min-height:34px;border:0}main{padding:13px 20px calc(var(--nav-height) + 110px + env(safe-area-inset-bottom));max-width:680px}.page-intro{display:block;margin-bottom:23px}.page-intro h1{font-size:29px;line-height:1.2;letter-spacing:-.85px;max-width:360px}.eyebrow{font-size:10px;letter-spacing:1px}.subtitle{font-size:12px;margin-top:10px;line-height:1.75;max-width:350px}.desktop-add{display:none}.notice{font-size:11px;margin-bottom:20px;padding:12px}.people-filter{margin-bottom:20px;gap:6px}.person-chip{font-size:11px;min-height:43px;padding-right:9px}.person-chip .avatar{width:27px;height:27px;font-size:10px}.toolbar{gap:6px;margin:20px 0 12px}.toolbar .period{font-size:14px;flex:1;min-width:140px}.toolbar .icon-button{width:36px;height:36px;min-height:36px}.toolbar>.button{padding:6px 10px;font-size:11px;min-height:36px}.segmented{width:100%;margin-top:7px;max-width:280px}.segmented button{min-height:36px;flex:1}.date-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin:16px 0 23px}.date-strip button{border:0;border-radius:13px;background:#fff;min-height:64px;color:var(--ink);padding:9px 2px;font-size:17px;font-weight:600}.date-strip button span{font-size:10px;display:block;color:var(--muted);font-weight:400;margin-bottom:6px}.date-strip button[aria-pressed=true]{background:var(--blue);color:#fff}.date-strip button[aria-pressed=true] span{color:#fff}.date-strip button.today:not([aria-pressed=true]){background:var(--blue-soft)}.week-grid{display:block;border:0;overflow:visible}.week-day{border:0;min-height:0;margin-bottom:23px}.week-day-head{padding:0 0 12px;border:0;font-size:12px;gap:6px}.week-day-head strong{font-size:14px;width:auto;height:auto;display:inline}.week-day.today .week-day-head strong{color:var(--blue);background:none}.day-events{padding:0;gap:11px}.event-card,.agenda-group .event-card{display:grid;grid-template-columns:52px minmax(0,1fr);gap:0 8px;padding:16px 13px;min-height:86px;border-radius:11px}.event-time,.agenda-group .event-time{grid-row:1 / span 2;font-size:11px;font-weight:600;padding-top:2px;margin:0}.event-title,.agenda-group .event-title{font-size:14px;line-height:1.55}.event-detail,.agenda-group .event-detail{font-size:10px;grid-column:2;margin-top:6px}.agenda-group h2{font-size:12px}.empty{padding:30px 15px}.empty p{font-size:12px}.section-head{margin-top:26px;gap:10px}.section-head h2{font-size:16px}.section-head p{font-size:11px}.section-head .button{font-size:11px;min-height:42px;white-space:nowrap}.template-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.template-card{display:flex;flex-direction:column;align-items:flex-start;gap:11px;padding:17px 13px;min-height:120px}.template-card strong{font-size:12px}.template-card small{font-size:10px}.template-icon{width:31px;height:31px;min-width:31px;background:none;border-radius:0;justify-content:start}.template-icon svg{width:23px;height:23px}.template-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.template-shortcuts .template-card{min-height:94px;padding:14px 8px;gap:10px}.template-shortcuts .template-card strong{font-size:10px;font-weight:500;line-height:1.6}.template-shortcuts .template-card small{display:none}.bottom-navigation{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;left:0;right:0;bottom:0;padding:8px 10px calc(8px + env(safe-area-inset-bottom));background:#fffffffa;backdrop-filter:blur(12px);border-top:1px solid var(--line);min-height:var(--nav-height);z-index:10;gap:4px}.bottom-navigation a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:var(--muted);font-size:10px;min-height:50px;border-radius:12px}.bottom-navigation a:hover{text-decoration:none}.bottom-navigation a svg{width:21px;height:21px}.bottom-navigation a[aria-current=page]{background:var(--blue-soft);color:var(--blue);font-weight:600}.fab{display:flex;align-items:center;gap:10px;position:fixed;right:20px;bottom:calc(var(--nav-height) + env(safe-area-inset-bottom) + 18px);z-index:9;border:0;border-radius:17px;background:var(--blue);color:#fff;min-height:54px;padding:0 18px;font-size:12px;font-weight:600;box-shadow:0 5px 20px #152b4930}.fab>span:first-child{font-size:25px;font-weight:400}.toast{bottom:calc(var(--nav-height) + env(safe-area-inset-bottom) + 90px);font-size:12px}.sheet{width:100%;max-width:none;max-height:100dvh;height:100dvh;margin:0;border-radius:0;border:0;box-shadow:none}.sheet-header{padding:calc(17px + env(safe-area-inset-top)) 20px 17px}.sheet-header h2{font-size:22px}.sheet-content{padding:23px 20px;gap:20px}.sheet-footer{padding:14px 20px calc(14px + env(safe-area-inset-bottom));gap:8px}.sheet-footer .button{min-height:48px;font-size:12px;padding:10px 14px}.sheet.small-sheet{height:auto;max-height:90dvh;width:calc(100% - 30px);max-width:460px;margin:auto;border:1px solid var(--line);border-radius:20px}.small-sheet .sheet-header{padding-top:22px}.field-grid{gap:10px}input,select,textarea{font-size:16px;min-height:48px}.check-label{font-size:13px}.person-option{min-height:43px}.people-options{gap:7px}.panel{padding:20px 17px}.settings-row{flex-wrap:wrap;gap:12px}.settings-row .button{font-size:12px}.account-grid{gap:16px}.account-grid h2{font-size:18px}.month-weekday{padding:10px 2px;font-size:10px}.month-cell{min-height:69px;padding:7px 4px}.month-number{font-size:11px}.month-event{font-size:0;border:0;display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--event-color,var(--blue));padding:0;margin:5px 2px 0 0}.month-cell.today>.month-number{width:23px;height:23px}.booking-search{padding:17px}.search-row{gap:7px}.search-row>.button{padding:9px 12px;font-size:12px}.share-field{flex-wrap:wrap}.share-field input{font-size:12px}.share-field .button{font-size:12px}.family-person .icon-button{width:42px;height:42px}.family-person .avatar{width:36px;height:36px}.family-person strong{font-size:13px}.template-help{font-size:11px}.connection-label{overflow-wrap:anywhere}}
@media(max-width:370px){main{padding-left:15px;padding-right:15px}.topbar{padding-left:15px;padding-right:15px}.page-intro h1{font-size:27px}.field-grid{grid-template-columns:1fr}.sheet-footer{padding-left:14px;padding-right:14px}.sheet-footer .button{padding-left:10px;padding-right:10px}.person-chip{padding-right:8px}.toolbar .period{min-width:120px}.fab{right:16px}.provider-fields{padding:13px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
@media print{.sidebar,.topbar,.bottom-navigation,.fab,.toolbar .button,.people-filter,.template-shortcuts,.desktop-add{display:none!important}.app-shell{display:block}main{padding:0}.event-card{break-inside:avoid}.week-grid{border-color:#bbb}.week-day{min-height:250px}}

.event-card[data-color=purple],.month-event[data-color=purple]{--event-color:var(--purple)}.event-card[data-color=orange],.month-event[data-color=orange]{--event-color:var(--orange)}.event-card[data-color=green],.month-event[data-color=green]{--event-color:var(--green)}.event-card[data-color=pink],.month-event[data-color=pink]{--event-color:var(--pink)}
/* Calendar additions, personal defaults, lists and notes. */
.day-add{min-height:38px;font-size:20px;color:var(--blue);margin-top:7px}.agenda-group>.row h2{margin-bottom:0}.holiday-legend{display:flex;gap:8px 14px;flex-wrap:wrap;color:#8792a4;font-size:10px;margin:0 0 15px}.holiday-legend .holiday-legend-local{color:var(--blue)}.holiday-badge{display:block;border-radius:7px;padding:7px 8px;margin:5px 0;font-size:11px;overflow-wrap:anywhere;text-align:left;line-height:1.5}.holiday-badge small{display:block;font-size:9px;margin-top:3px;opacity:.85}.holiday-local{background:var(--blue-soft);color:var(--blue);border-left:3px solid var(--blue)}.holiday-other{background:#f4f5f7;color:#7d8796;border-left:3px solid #bdc4ce}.month-cell{padding:0;position:relative}.month-select{width:100%;min-height:105px;background:transparent;border:0;color:inherit;text-align:left;padding:10px 7px;display:block}.month-add{position:absolute;right:4px;top:4px;background:#fff;border:1px solid var(--line);border-radius:6px;width:25px;height:25px;color:var(--blue);font-size:18px;display:grid;place-items:center;padding:0}.month-cell.today .month-number{background:var(--blue);color:#fff;border-radius:50%;width:25px;height:25px;display:inline-grid;place-items:center}.month-cell .holiday-compact{font-size:9px;padding:4px;margin:5px 0;line-height:1.4}.calendar-overview{margin-top:29px;border-top:1px solid var(--line);padding-top:4px}.calendar-overview .section-head{margin-top:17px}.overview-list{display:grid;gap:8px}.overview-item{display:flex;align-items:center;gap:15px;text-align:left;background:#fff;border:1px solid var(--line);border-radius:11px;padding:14px;width:100%;color:var(--ink)}.overview-item:hover{background:#fafcff}.overview-date{font-size:12px;color:var(--blue);min-width:95px;max-width:150px}.overview-item strong{font-size:13px;display:block;overflow-wrap:anywhere}.overview-item small{display:block;font-size:11px;color:var(--muted);margin-top:5px}.overview-item>span:last-child{margin-left:auto;color:var(--muted)}.overview-empty{padding:8px 0 4px}.list-presets{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:20px}.collection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-top:22px}.collection-card{text-align:left;color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px;display:grid;gap:11px;overflow-wrap:anywhere}.collection-card:hover{border-color:#adc7f8}.collection-card strong{font-size:15px;font-weight:600}.collection-card small{font-size:11px;color:var(--muted)}.notes-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.note-card{border:1px solid var(--line);border-radius:14px;padding:20px;min-width:0}.note-card h2{font-size:17px;overflow-wrap:anywhere}.note-card .row>h2{flex:1;min-width:0}.note-body{font-size:14px;line-height:1.8;margin-top:17px;white-space:normal;overflow-wrap:anywhere}.checklist{margin-top:20px}.checklist-row{display:flex;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}.checklist-row>label{flex:1;min-width:0;overflow-wrap:anywhere;font-size:14px}.checklist-row .icon-button{border:0;width:35px;height:35px;font-size:21px}.checklist-row .item-done span{text-decoration:line-through;color:var(--muted)}#municipal-options{display:grid;gap:14px}.sidebar{overflow-y:auto}.sidebar-family{margin-top:22px}.desktop-navigation{gap:3px}.sidebar-bottom{padding-top:15px;margin-top:30px}
@media(max-width:1000px){.collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-date{min-width:85px}.month-select{padding-top:37px}.month-cell .month-number{position:absolute;left:6px;top:8px}}
@media(max-width:760px){.bottom-navigation{grid-template-columns:repeat(6,minmax(0,1fr));gap:1px;padding-left:5px;padding-right:5px}.bottom-navigation a{font-size:9px;min-width:0}.bottom-navigation a svg{width:20px;height:20px}.holiday-legend{font-size:9px;line-height:1.6;gap:5px 12px}.holiday-badge{font-size:11px}.holiday-badge small{font-size:9px}.month-select{min-height:85px;padding:31px 4px 6px}.month-add{width:21px;height:24px;right:1px;top:3px;font-size:16px;border:0;background:transparent}.month-cell .month-number{font-size:10px;top:6px;left:4px}.month-cell.today .month-number{width:19px;height:19px}.month-cell .holiday-compact{font-size:0;min-height:5px;height:5px;border:0;padding:0;margin:5px 2px;border-radius:3px}.month-cell .holiday-local{background:var(--blue)}.month-cell .holiday-other{background:#b5bdc9}.overview-item{gap:11px;padding:13px 11px}.overview-date{font-size:11px;min-width:75px;max-width:100px}.overview-item strong{font-size:12px}.overview-item small{font-size:10px}.calendar-overview .section-head h2{font-size:16px}.calendar-overview .section-head .button{font-size:12px;min-height:42px;padding:8px 12px}.collection-grid,.notes-grid{grid-template-columns:1fr;gap:12px}.collection-card{padding:17px;grid-template-columns:36px 1fr;gap:5px 12px;align-items:center}.collection-card>.template-icon{grid-row:1 / span 2}.collection-card strong{font-size:14px}.collection-card small{grid-column:2}.list-presets{display:grid;grid-template-columns:1fr 1fr;gap:8px}.list-presets .button{font-size:11px;padding:10px 8px}.note-card{padding:17px}.note-body{font-size:13px}.checklist-row>label{font-size:13px}.checklist-row{min-height:48px}.day-add{min-width:40px}.week-day .day-add{width:100%;border:1px dashed var(--line);margin-top:0}}

.account-locked{display:block;max-width:760px}
.account-locked .sidebar,
.account-locked .desktop-add,
.account-locked ~ .fab,
.account-locked ~ .bottom-navigation{display:none}
.account-locked .mobile-brand{display:inline-flex}
.account-locked .panel{max-width:500px}

/* Family calendar visual refresh. */
:root {
  --line: #e6eaf0;
  --blue-soft: #edf2f8;
  --accent: #f46c50;
}
.sidebar { background: #f8fafc; }
.topbar { padding-top: 17px; padding-bottom: 17px; min-height: 70px; }
.page-intro { margin-bottom: 22px; }
.page-intro h1 { font-size: 29px; letter-spacing: -.9px; }
.page-intro .subtitle { margin-top: 8px; }
.eyebrow { letter-spacing: 1.1px; }
.button, .icon-button { border-radius: 12px; }
.button.primary { box-shadow: 0 3px 8px #152b4910; }
.nav-link[aria-current=page] { box-shadow: inset 3px 0 var(--accent); }
.person-chip {
  padding: 5px 13px 5px 5px;
  background: #f7f9fc;
  border-color: transparent;
  font-weight: 500;
}
.person-chip:has(.avatar[data-color=green]) { background: #edf7f2; }
.person-chip:has(.avatar[data-color=purple]) { background: #f4effa; }
.person-chip:has(.avatar[data-color=orange]) { background: #fff5e7; }
.person-chip:has(.avatar[data-color=pink]) { background: #fbeff5; }
.person-chip[aria-pressed=false] { background: #fff; border-color: var(--line); }
.toolbar { margin-top: 17px; }
.week-grid { border-radius: 16px; }
.week-day { background: #fcfdff; }
.week-day-head { background: #f5f7fa; padding-top: 12px; padding-bottom: 12px; }
.week-day.today .week-day-head { background: #edf2f8; }
.event-card {
  --event-surface: #edf2f8;
  background: var(--event-surface);
  border: 1px solid transparent;
  border-left: 3px solid var(--event-color, var(--blue));
  border-radius: 11px;
}
.event-card[data-color=green] { --event-surface: #e8f5ee; }
.event-card[data-color=purple] { --event-surface: #f0eafa; }
.event-card[data-color=orange] { --event-surface: #fff1db; }
.event-card[data-color=pink] { --event-surface: #fbeaf2; }
.event-card:hover { background: var(--event-surface); border-top-color: var(--event-color, var(--blue)); }
.event-title { color: #23334b; }
.event-time, .event-detail { color: #52627a; }
.month-weekday { background: #f5f7fa; }
.month-cell.outside { background: #f8fafc; }
.month-add { border-radius: 8px; }
.panel { border-radius: 18px; }
.template-card {
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: 0 3px 12px #152b4903;
}
.template-icon { color: var(--blue); background: #edf2f8; border-radius: 12px; }
.template-card:nth-child(2) .template-icon { background: #e8f5ee; color: #267c60; }
.template-card:nth-child(3) .template-icon { background: #fff1db; color: #94601d; }
.template-card:nth-child(4) .template-icon { background: #f0eafa; color: #78509f; }
.template-card:nth-child(5) .template-icon { background: #fbeaf2; color: #a6447b; }
.template-card:nth-child(6) .template-icon { background: #e8f5ee; color: #267c60; }
.collection-card { border-radius: 16px; border-top: 3px solid #d5e1f0; }
.collection-card:nth-child(3n+2) { border-top-color: #c5e5d4; }
.collection-card:nth-child(3n) { border-top-color: #e0d3f0; }
.note-card { background: #fffdf7; border-color: #eee8d8; border-radius: 16px; }
.note-card:nth-child(even) { background: #f6f8fc; border-color: var(--line); }
.checklist-row { padding-top: 13px; padding-bottom: 13px; }
input[type=checkbox] { border-radius: 6px; }
.family-person .avatar { outline: 4px solid #f7f9fc; }
.overview-item { border-radius: 13px; }
.overview-date { font-weight: 600; }
.fab { box-shadow: 0 5px 16px #152b4920; }
@media (max-width: 760px) {
  .topbar { padding: calc(12px + env(safe-area-inset-top)) 20px 10px; min-height: 64px; }
  .connection { margin-top: 3px; }
  main { padding-top: 10px; }
  .page-intro { margin-bottom: 18px; }
  .page-intro h1 { font-size: 25px; line-height: 1.18; letter-spacing: -.7px; }
  .page-intro .eyebrow { display: none; }
  .page-intro .subtitle { font-size: 12px; margin-top: 7px; }
  .people-filter { margin-bottom: 15px; gap: 7px; }
  .person-chip { min-height: 40px; }
  .toolbar { margin: 15px 0 11px; }
  .segmented { max-width: none; padding: 4px; background: #f1f4f8; }
  .segmented button { min-height: 35px; }
  .holiday-legend { font-size: 9px; margin-bottom: 9px; }
  .date-strip { margin: 12px 0 18px; gap: 5px; }
  .date-strip button { min-height: 58px; border-radius: 13px; font-size: 17px; }
  .date-strip button[aria-pressed=true] { box-shadow: 0 3px 8px #152b4915; }
  .agenda-group > .row { margin-bottom: 11px; }
  .agenda-group > .row h2 { color: var(--ink); font-size: 13px; }
  .event-card, .agenda-group .event-card { padding: 14px 12px; min-height: 80px; margin-top: 9px; }
  .event-title, .agenda-group .event-title { font-size: 14px; }
  .event-detail, .agenda-group .event-detail { font-size: 11px; line-height: 1.55; }
  .day-add { border-radius: 11px; }
  .week-day { background: #fff; margin-bottom: 20px; }
  .week-day-head { background: transparent; }
  .week-day.today .week-day-head { background: transparent; }
  .template-card { padding: 16px 13px; min-height: 116px; gap: 10px; }
  .template-icon { background: #edf2f8; border-radius: 10px; justify-content: center; width: 35px; height: 35px; min-width: 35px; }
  .template-icon svg { width: 21px; height: 21px; }
  .template-shortcuts .template-card { min-height: 103px; }
  .collection-card { padding: 16px; gap: 6px 13px; }
  .note-card { padding: 18px; }
  .panel { padding: 20px 17px; }
  .bottom-navigation { padding-top: 6px; padding-bottom: calc(6px + env(safe-area-inset-bottom)); }
  .bottom-navigation a { min-height: 48px; border-radius: 12px; gap: 4px; }
  .bottom-navigation a[aria-current=page] { box-shadow: inset 0 -3px var(--accent); }
  .fab { min-height: 48px; border-radius: 15px; padding: 0 15px; font-size: 12px; }
}

/* Stronger family colors across sparse and populated calendars. */
:root { --blue-soft: #e5edf9; }
.sidebar { background: #f0f4fb; }
.topbar { background: #f5f8fd; }
.nav-link[aria-current=page] { background: #dce8fa; color: #152b49; }
.page-intro {
  padding: 22px 24px;
  border: 1px solid #dce5f3;
  border-radius: 18px;
  background: linear-gradient(110deg, #eaf1fc 0%, #f1edfb 65%, #fff0e8 100%);
}
.person-chip { background: #dfebfa; }
.person-chip:has(.avatar[data-color=green]) { background: #d8eee2; }
.person-chip:has(.avatar[data-color=purple]) { background: #e7dcf7; }
.person-chip:has(.avatar[data-color=orange]) { background: #ffe8c4; }
.person-chip:has(.avatar[data-color=pink]) { background: #f9dcea; }
.week-day { background: #f7f9fd; }
.week-day-head { background: #e2ebfa; color: #425875; }
.week-day:nth-child(2) .week-day-head { background: #e8e0f7; }
.week-day:nth-child(3) .week-day-head { background: #dcefe7; }
.week-day:nth-child(4) .week-day-head { background: #ffedcf; }
.week-day:nth-child(5) .week-day-head { background: #f7deea; }
.week-day:nth-child(6) .week-day-head { background: #deedf3; }
.week-day:nth-child(7) .week-day-head { background: #ebe6f6; }
.week-day.today { background: #edf3fc; }
.week-day.today .week-day-head { background: #cddff8; }
.event-card { --event-surface: #dbe8fa; }
.event-card[data-color=purple] { --event-surface: #e6d9f8; }
.event-card[data-color=green] { --event-surface: #d2efdf; }
.event-card[data-color=orange] { --event-surface: #ffe5b8; }
.event-card[data-color=pink] { --event-surface: #f8d5e5; }
.week-day .day-add {
  width: 100%;
  background: #eaf0fa;
  border: 1px dashed #c7d6ea;
  border-radius: 10px;
}
.week-day .day-add:hover { background: #dce8fa; }
.month-weekday { background: #e2ebfa; color: #324b6d; }
.month-weekday:nth-child(2) { background: #e8e0f7; }
.month-weekday:nth-child(3) { background: #dcefe7; }
.month-weekday:nth-child(4) { background: #ffedcf; }
.month-weekday:nth-child(5) { background: #f7deea; }
.month-cell.today { background: #edf3fc; }
.template-card:nth-child(6n+1), .collection-card:nth-child(3n+1) { background: #eaf1fc; border-color: #d4e1f4; }
.template-card:nth-child(6n+2), .collection-card:nth-child(3n+2) { background: #e5f3eb; border-color: #cfe7d9; }
.template-card:nth-child(6n+3) { background: #fff0d9; border-color: #f0debf; }
.template-card:nth-child(6n+4), .collection-card:nth-child(3n) { background: #eee5fa; border-color: #dfd1f1; }
.template-card:nth-child(6n+5) { background: #fbe5ef; border-color: #efd2e1; }
.template-card:nth-child(6n+6) { background: #e1f0f3; border-color: #c9e3e8; }
.note-card { background: #fff1cb; border-color: #f0dfb2; }
.note-card:nth-child(even) { background: #e9e1f7; border-color: #dbcef0; }
.calendar-overview { padding: 4px 18px 18px; border: 1px solid #d6e6dd; border-radius: 16px; background: #eef7f1; }
.calendar-overview + .calendar-overview { background: #f3eefb; border-color: #e3d9f2; }
@media (max-width: 760px) {
  .page-intro { padding: 17px; border-radius: 15px; }
  .week-day { background: #fff; }
  .week-day.today { background: #fff; }
  .week-day-head { border-radius: 10px; padding: 10px; }
  .week-day.today .week-day-head { background: #cddff8; }
  .date-strip button { background: #edf2fa; }
  .date-strip button:nth-child(2) { background: #eee6fa; }
  .date-strip button:nth-child(3) { background: #e3f2e9; }
  .date-strip button:nth-child(4) { background: #fff0d7; }
  .date-strip button:nth-child(5) { background: #fae3ed; }
  .date-strip button[aria-pressed=true] { background: var(--blue); color: #fff; }
  .bottom-navigation a[aria-current=page] { background: #dce8fa; }
  .calendar-overview { padding: 4px 13px 15px; }
}

/* Time-based calendar with pointer and keyboard adjustment. */
.calendar-help { margin-bottom: 10px; }
.time-calendar { border: 1px solid var(--line); border-radius: 16px; overflow: auto; background: #fff; }
.calendar-head, .calendar-all-day, .time-grid { display: grid; grid-template-columns: 48px repeat(var(--days), minmax(0, 1fr)); }
.time-calendar[data-days="7"] > .calendar-head,
.time-calendar[data-days="7"] > .calendar-all-day,
.time-calendar[data-days="7"] > .time-scroll { min-width: 910px; }
.calendar-day-head { display: flex; gap: 7px; align-items: center; padding: 10px 6px; font-size: 11px; background: #e2ebfa; border-left: 1px solid #fff; }
.calendar-day-head:nth-child(3) { background: #e8e0f7; }
.calendar-day-head:nth-child(4) { background: #dcefe7; }
.calendar-day-head:nth-child(5) { background: #ffedcf; }
.calendar-day-head:nth-child(6) { background: #f7deea; }
.calendar-day-head:nth-child(7) { background: #deedf3; }
.calendar-day-head:nth-child(8) { background: #ebe6f6; }
.calendar-day-head strong { font-size: 12px; }
.calendar-day-head.is-today { box-shadow: inset 0 -3px var(--accent); }
.calendar-add { min-height: 32px; width: 32px; padding: 2px; margin-left: auto; font-size: 20px; background: #ffffffaa; border: 0; }
.time-corner { padding: 12px 3px; font-size: 9px; color: var(--muted); background: #f5f7fb; overflow-wrap: anywhere; }
.all-day-cell { padding: 5px; min-height: 35px; border-left: 1px solid var(--line); background: #f8fafc; }
.calendar-all-day { border-bottom: 1px solid var(--line); }
.all-day-event { display: flex; align-items: center; background: #dbe8fa; border-radius: 7px; margin: 3px 0; min-height: 30px; }
.all-day-event > button { background: none; border: 0; color: var(--ink); padding: 4px; font-size: 11px; text-align: left; overflow-wrap: anywhere; }
.all-day-cell .holiday-badge { font-size: 9px; padding: 4px; }
.time-scroll { max-height: 640px; height: 65dvh; min-height: 300px; overflow-y: auto; overscroll-behavior: contain; }
.time-grid { height: 1440px; }
.time-axis { position: relative; background: #f8fafc; }
.time-axis span { position: absolute; right: 7px; font-size: 10px; color: var(--muted); }
.time-column { position: relative; border-left: 1px solid var(--line); background: repeating-linear-gradient(to bottom, #fff 0px, #fff 29px, #f1f4f8 29px, #f1f4f8 30px, #fff 30px, #fff 59px, #dfe6ef 59px, #dfe6ef 60px); }
.time-event { position: absolute; z-index: 1; display: flex; flex-direction: column; border-radius: 8px; background: #dbe8fa; border-left: 3px solid #6c96d1; min-height: 44px; overflow: hidden; }
.time-event[data-color=purple], .all-day-event[data-color=purple] { background: #e6d9f8; border-color: #9265c9; }
.time-event[data-color=green], .all-day-event[data-color=green] { background: #d2efdf; border-color: #278365; }
.time-event[data-color=orange], .all-day-event[data-color=orange] { background: #ffe5b8; border-color: #d98d31; }
.time-event[data-color=pink], .all-day-event[data-color=pink] { background: #f8d5e5; border-color: #c15d96; }
.time-event-open { flex: 1; min-height: 0; min-width: 0; overflow: hidden; border: 0; background: none; text-align: left; color: #23334b; padding: 3px 6px 9px; cursor: grab; }
.time-event-open strong { display: block; font-size: 11px; line-height: 1.3; overflow-wrap: anywhere; }
.time-event-open small, .time-event-label { display: block; font-size: 9px; line-height: 1.4; }
.calendar-grip, .calendar-resize { display: block; flex-shrink: 0; cursor: grab; touch-action: none; text-align: center; line-height: 16px; height: 16px; font-size: 15px; color: #465d7b; user-select: none; }
.time-event .calendar-grip { position: absolute; right: 0; top: 0; width: 25px; z-index: 2; background: #ffffff55; border-radius: 0 0 0 7px; }
.time-event-label { padding-right: 19px; }
.calendar-resize { position: absolute; bottom: 0; left: 0; right: 0; height: 13px; line-height: 13px; cursor: ns-resize; background: #ffffff55; }
.all-day-event .calendar-grip { width: 24px; height: 26px; line-height: 26px; }
.calendar-grip:focus-visible, .calendar-resize:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.calendar-dragging { z-index: 8; box-shadow: 0 5px 16px #152b4940; opacity: .85; pointer-events: none; }
.calendar-drop-target { box-shadow: inset 0 0 0 2px #6c96d1; }
.calendar-adjusting { user-select: none; cursor: grabbing; }
.calendar-drag-status { padding: 6px 12px; min-height: 29px; background: #f5f8fc; }
@media(max-width:760px) {
  .time-scroll { height: 58dvh; max-height: 600px; }
  .calendar-day-head { font-size: 10px; flex-wrap: wrap; }
  .time-calendar[data-days="1"] .time-event-open strong { font-size: 13px; }
  .time-calendar[data-days="1"] .time-event-open small,
  .time-calendar[data-days="1"] .time-event-label { font-size: 11px; }
  .calendar-grip { width: 32px !important; height: 24px !important; line-height: 24px !important; }
  .calendar-resize { height: 20px; line-height: 20px; }
  .time-event-open { padding-bottom: 19px; }
  .time-event-label { padding-right: 28px; }
}
.toast { pointer-events: none; }

/* Assigned family tasks, routines and calendar subscriptions. */
.task-toolbar { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 22px; align-items: center; }
.task-toolbar input { width: 160px; }
.task-toolbar select { width: auto; min-width: 150px; }
.routine-board { display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 16px; align-items: start; }
.routine-person { --routine-bg: #e5edf9; --routine-card: #d8e6f9; border: 1px solid var(--line); background: var(--routine-bg); border-radius: 18px; overflow: hidden; }
.routine-person[data-color=purple] { --routine-bg: #f0eafa; --routine-card: #e2d4f5; }
.routine-person[data-color=green] { --routine-bg: #e6f4ec; --routine-card: #cfe9db; }
.routine-person[data-color=orange] { --routine-bg: #fff1db; --routine-card: #ffe2b0; }
.routine-person[data-color=pink] { --routine-bg: #fbeaf2; --routine-card: #f5d0e2; }
.routine-person-head { display: flex; gap: 12px; padding: 17px; align-items: center; background: #ffffff66; }
.routine-person-head h2 { font-size: 17px; }
.routine-person-head p { font-size: 11px; color: var(--muted); margin-top: 3px; }
.routine-person-head .icon-button { margin-left: auto; width: 36px; height: 36px; }
.routine-period { padding: 15px 13px 0; }
.routine-period h3 { font-size: 12px; color: #52627a; margin-bottom: 10px; }
.routine-period:last-of-type { padding-bottom: 15px; }
.routine-task { display: flex; align-items: center; gap: 5px; padding: 12px 10px; background: var(--routine-card); border-radius: 13px; margin-bottom: 9px; min-height: 63px; }
.routine-task .check-label { flex: 1; min-width: 0; align-items: center; }
.routine-task strong { display: block; font-size: 13px; overflow-wrap: anywhere; font-weight: 600; }
.routine-task small { display: block; font-size: 10px; color: #52627a; margin-top: 4px; }
.routine-task input { width: 22px; height: 22px; min-height: 22px; }
.routine-task .icon-button { border: 0; background: #ffffff88; width: 32px; height: 32px; font-size: 20px; }
.task-complete strong { text-decoration: line-through; }
.task-complete { background: #ffffffa0; }
.task-weekday-options { display: flex; gap: 12px; flex-wrap: wrap; }
#task-weekdays { border: 1px solid var(--line); border-radius: 10px; padding: 13px; }
#task-weekdays legend { font-size: 12px; }
.task-library { display: grid; gap: 13px; padding-top: 18px; }
.task-library .row { justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.routine-empty { padding: 0 16px 16px; }
.connection-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 16px; }
.connection-cards .panel + .panel { margin: 0; }
#feed-result input { margin-top: 15px; font-size: 12px; }
@media(max-width:760px) {
 .bottom-navigation { grid-template-columns: repeat(7,minmax(0,1fr)); }
 .bottom-navigation a { font-size: 8px; }
 .bottom-navigation a svg { width: 19px; height: 19px; }
 .routine-board { grid-template-columns: 1fr; }
 .task-toolbar { gap: 7px; }
 .task-toolbar input { flex: 1; width: 145px; }
 .task-toolbar select { width: 100%; }
 .task-toolbar > .button { flex: 1; white-space: nowrap; }
}
.calendar-scope-switch { margin-bottom: 20px; padding: 6px; background: #edf2f8; border-radius: 14px; width: fit-content; gap: 6px; }

.person-color-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 14px; color: #52627a; font-size: 11px; }
.person-color-item { display: inline-flex; align-items: center; gap: 6px; }
.person-color-swatch { display: inline-block; width: 15px; height: 12px; border-radius: 4px; border: 1px solid #6c96d1; background: #dbe8fa; flex-shrink: 0; }
.person-color-swatch[data-color=purple] { background: #e6d9f8; border-color: #9265c9; }
.person-color-swatch[data-color=green] { background: #d2efdf; border-color: #278365; }
.person-color-swatch[data-color=orange] { background: #ffe5b8; border-color: #d98d31; }
.person-color-swatch[data-color=pink] { background: #f8d5e5; border-color: #c15d96; }
