
:root{--bg:#f6f4ed;--ink:#303c32;--muted:#787d71;--line:#dedfd4;--green:#465d41;--family:#65774c;--laura:#ad704f;--perry:#687f9a;--work:#8b8099}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px 'DM Sans',sans-serif}button,input,select{font:inherit;color:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #a3b18e;outline-offset:3px}button{border:0;background:none}a{color:inherit;text-decoration:none}.topbar{height:94px;margin:0 42px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.brand{font-family:'Libre Caslon Text',Georgia,serif;font-size:29px;display:flex;align-items:center;gap:12px;letter-spacing:-1px}.sun{font-family:Georgia,serif;color:var(--green);font-size:43px}.brand-note{font:12px 'DM Sans',sans-serif;letter-spacing:0;color:var(--muted);margin-left:22px}.household{display:flex;align-items:center;gap:17px;font-size:12px}.avatars{display:flex;padding-left:5px}.avatars i{font-style:normal;display:grid;place-items:center;width:33px;height:33px;border:3px solid var(--bg);background:#e2e6d7;border-radius:50%;margin-left:-5px;font-size:11px}.avatars i+i{background:#eee0d5}main{max-width:1700px;margin:auto;display:grid;grid-template-columns:265px minmax(0,1fr);padding:39px 42px 30px;gap:44px}aside{border-right:1px solid var(--line);padding-right:29px}.eyebrow{font-size:10px;font-weight:600;letter-spacing:1.8px;color:var(--muted)}h1{font:32px/1.26 'Libre Caslon Text',Georgia,serif;letter-spacing:-1px;margin:17px 0 12px}.aside-intro p{color:var(--muted);line-height:1.7;font-size:12px;margin-bottom:30px}.section-title{display:flex;justify-content:space-between;align-items:center}.section-title span{font-size:24px;color:var(--green)}h2{margin:0}.section-title h2,.calendar-list h2{font-size:14px;font-weight:600}.add-panel{border-top:1px solid var(--line);padding-top:20px}form label{display:block;font-size:11px;font-weight:500;margin:15px 0 7px}label span{font-size:10px;color:var(--muted);font-weight:400}input,select{width:100%;height:40px;border:1px solid #d8dbcf;border-radius:5px;background:#fcfbf7;padding:9px 10px;font-size:12px;min-width:0}input::placeholder{color:#96998e;font-size:11px}input[type=date]{font-size:12px}.form-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}.primary{background:var(--green);color:#fff;border-radius:5px;width:100%;padding:13px 12px;margin-top:19px;display:flex;justify-content:space-between;font-size:12px}.primary:hover{background:#334930}.form-note{font-size:10px;color:var(--muted);line-height:1.6}.calendar-list{margin-top:30px}.calendar-list h2{margin-bottom:17px}.filter{display:flex;align-items:center;justify-content:space-between;margin:13px 0;font-size:12px;cursor:pointer}.filter>span{display:flex;gap:10px;align-items:center}.color-dot{height:8px;width:8px;border-radius:50%;background:var(--color);display:inline-block;flex-shrink:0}.filter input{accent-color:var(--green);width:14px;height:14px;margin:0}.calendar-list p{color:var(--muted);font-size:10px;line-height:1.6;max-width:190px}.prototype{margin-top:35px;font-size:10px;color:#686f61}.prototype p{color:var(--muted);font-size:10px;line-height:1.8}.status-dot{display:inline-block;width:5px;height:5px;background:#a49a6b;border-radius:50%;margin-right:5px}.planner{min-width:0;padding-top:5px}.planner-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:27px}.planner-heading h2{font:34px 'Libre Caslon Text',Georgia,serif;letter-spacing:-1.2px;margin-top:10px}.view-switch{display:flex;background:#ebece3;border-radius:6px;padding:4px;gap:2px}.view-switch button{padding:8px 15px;font-size:11px;color:var(--muted);border-radius:4px}.view-switch button.active{background:#fffef9;box-shadow:0 1px 3px #0000000d;color:var(--ink)}.planner-toolbar{display:flex;align-items:center;gap:20px;margin-bottom:21px;font-size:11px}.navigation{display:flex;border:1px solid #d9dcd0;border-radius:5px;align-items:center}.navigation button{padding:7px 12px}.navigation button:first-child,.navigation button:last-child{font-size:21px;line-height:17px}.navigation button:hover{background:#e9ebdf}.navigation #today{font-size:11px}.planner-toolbar p{color:var(--muted)}.tiny-sun{color:#a59c67;margin-right:5px;font-size:17px}.tap-hint{margin-left:auto;color:#8c9084;font-size:10px}.grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border:1px solid var(--line);border-radius:7px;overflow:hidden;background:#fffef9;min-height:450px}.day{border-right:1px solid var(--line);min-width:0;position:relative;display:flex;flex-direction:column}.day:last-child{border-right:0}.day.weekend{background:#f9f8f2}.day-heading{text-align:center;border-bottom:1px solid var(--line);padding:17px 4px 13px}.day-name{text-transform:uppercase;font-size:9px;letter-spacing:1.3px;color:var(--muted)}.day-number{font-family:'Libre Caslon Text',Georgia,serif;font-size:25px;display:grid;place-items:center;margin:9px auto 0;width:38px;height:38px}.is-today .day-number{background:var(--green);border-radius:50%;color:white}.is-today .day-name{color:var(--green);font-weight:700}.day-body{padding:14px 9px;flex:1;background-image:repeating-linear-gradient(to bottom,transparent 0,transparent 71px,#ebede340 71px,#ebede340 72px)}.event{width:100%;text-align:left;display:block;border-left:2px solid var(--color);padding:9px 8px;margin-bottom:13px;border-radius:0 4px 4px 0;background:var(--tint);overflow-wrap:anywhere}.event:hover{filter:brightness(.96)}.event-time{display:block;font-size:9px;color:var(--muted);margin-bottom:6px}.event-title{font-size:12px;line-height:1.5;font-weight:500;display:block}.event-calendar{font-size:9px;color:var(--color);display:block;margin-top:8px}.add-day{width:calc(100% - 16px);margin:0 8px 13px;text-align:left;padding:10px 8px;color:#9a9e90;font-size:10px;border:1px dashed transparent;border-radius:4px}.day:hover .add-day,.add-day:focus-visible{border-color:#d8ddcb;color:var(--green)}.paper-footer{display:flex;justify-content:space-between;font-size:9px;letter-spacing:.4px;color:#8d9385;margin-top:13px}.week-note{border-top:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:17px;padding:25px 0;margin-top:32px}.note-icon{width:37px;height:37px;border:1px solid #d9decc;border-radius:50%;display:grid;place-items:center;color:#7a866a;font-size:18px}.week-note h3{font:16px 'Libre Caslon Text',Georgia,serif;margin:0 0 7px}.week-note p{font-size:11px;color:var(--muted);margin:0;line-height:1.5}.week-note button{margin-left:auto;font-size:11px;white-space:nowrap}.week-note button span{margin-left:15px}.month-grid{min-height:450px}.month-cell{min-height:112px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:7px}.month-cell:nth-child(7n){border-right:0}.month-cell .event{padding:4px;margin:5px 0}.month-cell .event-title{font-size:10px}.month-cell .event-time,.month-cell .event-calendar{display:none}.month-label{padding:10px;text-align:center;font-size:10px;border-bottom:1px solid var(--line);color:var(--muted)}.month-date{font-size:11px;padding:3px 5px;border-radius:50%}.month-date.today{background:var(--green);color:white}.muted-day{opacity:.4}.day-view{grid-template-columns:1fr;max-width:700px}.day-view .day-heading{text-align:left;padding-left:25px;display:flex;align-items:center;gap:15px}.day-view .day-number{margin:0}.day-view .day-body{padding:20px}.day-view .event{max-width:480px}.day-view .event-title{font-size:16px}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,15px);background:#303e2e;color:#fff;padding:14px 22px;border-radius:8px;font-size:13px;opacity:0;pointer-events:none;transition:.2s;z-index:5}#toast.show{opacity:1;transform:translate(-50%,0)}dialog{width:390px;max-width:calc(100% - 32px);border:1px solid var(--line);border-radius:12px;padding:25px;background:var(--bg);color:var(--ink)}dialog::backdrop{background:#29312566}.dialog-heading{display:flex;align-items:center;justify-content:space-between}.dialog-heading h2{font:23px 'Libre Caslon Text',Georgia,serif}.dialog-heading button{font-size:24px}#delete-event{color:#9c594c;font-size:12px;display:block;margin:18px auto 0}@media(min-width:1450px){.day-body{padding:18px 12px}.event{padding:12px}.grid{min-height:510px}}@media(max-width:1100px){main{padding:30px 25px;gap:24px;grid-template-columns:235px minmax(0,1fr)}aside{padding-right:20px}.topbar{margin:0 25px}.event{padding:7px 5px}.day-body{padding:12px 5px}.tap-hint{display:none}.planner-heading h2{font-size:28px}.view-switch button{padding:8px 10px}.week-note{flex-wrap:wrap}.event-title{font-size:11px}}@media(max-width:780px){.topbar{height:75px;margin:0 20px}.brand{font-size:25px}.brand-note{display:none}.household{font-size:10px;gap:8px}.avatars i{width:27px;height:27px}main{display:flex;flex-direction:column;padding:25px 20px;gap:26px}aside{display:contents}.aside-intro{display:none}.planner{order:1}.add-panel{order:2;border:1px solid var(--line);border-radius:8px;padding:20px}.calendar-list{order:3;margin:0}.calendar-list #filters{display:flex;flex-wrap:wrap;gap:20px}.filter{gap:15px;margin:4px 0}.calendar-list p{max-width:none}.prototype{order:4;margin:0}.planner-heading{gap:10px;margin-bottom:20px}.planner-heading h2{font-size:25px}.view-switch button{padding:8px 9px}.grid:not(.day-view){overflow:visible;grid-template-columns:1fr;min-height:0}.grid:not(.day-view):not(.month-grid) .day{border-right:0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:65px 1fr}.day-heading{border-bottom:0;border-right:1px solid var(--line);padding:15px 3px}.day-body{padding:13px}.event{padding:9px;max-width:none;margin-bottom:8px}.event-title{font-size:13px}.event-time{float:right;margin:0 0 4px 8px}.event-calendar{margin-top:4px}.grid:not(.day-view) .add-day{grid-column:2;margin:0 0 10px 12px;width:calc(100% - 24px);padding:3px 8px}.day-number{font-size:23px}.week-note{margin-top:23px;padding:20px 0}.week-note button{margin-left:54px}.month-grid{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important}.month-cell{padding:3px;min-height:85px}.month-cell .event-title{font-size:8px}.month-cell .event{padding:3px}.month-label{padding:8px 1px;font-size:8px}.paper-footer{font-size:8px}}

.mobile-add{display:none}@media(max-width:780px){.mobile-add{display:block;position:fixed;bottom:18px;right:20px;z-index:4;padding:14px 20px;border-radius:25px;background:var(--green);color:white;box-shadow:0 3px 15px #303c3230;font-size:13px}body{padding-bottom:65px}#toast{bottom:78px;width:max-content;max-width:90%}}

.family-logo{display:block;width:58px;height:54px;flex-shrink:0}.add-panel{border-top:0;padding-top:0}select:disabled{opacity:.55;background:#efefe7}#quick-form>.form-pair+div,#edit-form>.form-pair+div{margin-top:0}@media(max-width:780px){.family-logo{width:47px;height:44px}.add-panel{padding-top:20px}}

.connection-note{font-size:11px;color:var(--muted);margin-top:28px;line-height:1.7}.connection-note p{font-size:10px}#connection-status{font-size:12px;color:var(--muted);min-height:18px}#calendar-errors{font-size:12px;color:#955b40;line-height:1.6;margin-bottom:14px}#calendar-errors:empty{display:none}button:disabled{cursor:wait;opacity:.6}#google-event-link{display:block;font-size:12px;margin-top:18px;text-decoration:underline}#google-event-link[hidden]{display:none}#read-only-note{font-size:12px;line-height:1.6;color:var(--muted)}.household button{font-size:11px;text-decoration:underline}.event-time{line-height:1.5}@media(max-width:780px){.connection-note{order:4;margin:0}}

/* A forward-looking list, with comfortable touch targets on a phone. */
[hidden]{display:none!important}.schedule-list{background:#fffef9;border:1px solid var(--line);border-radius:8px;overflow:hidden}.schedule-day{display:grid;grid-template-columns:82px minmax(0,1fr);border-bottom:1px solid var(--line);padding:22px 20px;gap:18px}.schedule-date{margin:0;text-align:center;font-weight:400}.schedule-weekday,.schedule-month{display:block;color:var(--muted);font-size:11px;line-height:1.8}.schedule-weekday{text-transform:uppercase;letter-spacing:1px}.schedule-number{display:grid;place-items:center;width:42px;height:42px;margin:4px auto;font:28px Georgia,serif}.schedule-day.is-today .schedule-number{background:var(--green);color:white;border-radius:50%}.schedule-day.is-today .schedule-weekday{color:var(--green);font-weight:600}.schedule-plans{min-width:0}.schedule-plans .event{padding:13px 15px;margin-bottom:10px;min-height:72px}.schedule-plans .event-title{font-size:15px}.schedule-plans .event-time{float:none;font-size:12px;margin:0 0 5px}.schedule-plans .event-calendar{font-size:11px;margin-top:5px}.schedule-empty{color:var(--muted);font-size:13px;margin:12px 0}.schedule-add{min-height:44px;padding:10px 0;font-size:12px;color:var(--green)}.schedule-through{padding:18px;text-align:center;font-size:11px;color:var(--muted);margin:0;line-height:1.6}.schedule-more{display:block;margin:16px auto 0;min-height:44px;padding:12px 22px;border:1px solid var(--line);border-radius:6px;color:var(--green);background:#fffef9;font-size:13px}.schedule-today{border:1px solid var(--line);border-radius:5px;min-height:36px;padding:8px 14px;font-size:12px}.schedule-more:hover,.schedule-today:hover{background:#edf0e4}
@media(max-width:780px){.planner-heading{align-items:flex-start;flex-direction:column;gap:16px}.view-switch{width:100%;justify-content:space-between}.view-switch button{flex:1;min-height:40px;padding:8px 10px;font-size:12px}.planner-toolbar{margin-bottom:12px;gap:15px}.schedule-day{grid-template-columns:52px minmax(0,1fr);padding:18px 12px;gap:12px}.schedule-number{font-size:25px}.schedule-plans .event{padding:12px;margin-bottom:9px}.schedule-plans .event-title{font-size:14px}.schedule-plans .event-time{font-size:11px}.schedule-weekday,.schedule-month{font-size:10px}.topbar{margin:0 14px}.household{gap:10px}.household #signed-in-name{display:none}.family-logo{width:40px}.brand{font-size:23px;gap:8px}.household button{min-height:44px}.schedule-more{width:100%}}

#event-sources{font-size:12px;line-height:1.6;color:var(--muted);background:#edf0e4;border-radius:5px;padding:10px 12px}

/* Phone forms use readable, full-size controls instead of sidebar dimensions. */
@media(max-width:780px){
  .add-panel{width:100%;min-width:0;padding:20px;scroll-margin-top:16px;background:#fffef9}
  .add-panel .section-title{gap:12px;margin-bottom:6px}
  .add-panel .section-title h2{font:22px Georgia,serif}
  #quick-form,#edit-form{min-width:0;width:100%}
  #quick-form label,#edit-form label{font-size:14px;line-height:1.4;margin:18px 0 8px}
  #quick-form label span{font-size:12px}
  #quick-form input,#quick-form select,#edit-form input,#edit-form select{
    display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-inline-size:0;
    height:52px;min-height:52px;padding:12px;font-size:16px;line-height:1.4;border-radius:7px;
  }
  #quick-form input::placeholder,#edit-form input::placeholder{font-size:16px}
  #quick-form .form-pair,#edit-form .form-pair{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .form-pair>div{min-width:0}
  #quick-form input[type=date],#quick-form input[type=time],#edit-form input[type=date],#edit-form input[type=time]{
    -webkit-appearance:none;appearance:none;text-align:left;
  }
  #quick-form input::-webkit-date-and-time-value,#edit-form input::-webkit-date-and-time-value{text-align:left;min-height:1.4em}
  #quick-form input::-webkit-datetime-edit,#edit-form input::-webkit-datetime-edit{padding:0;min-width:0}
  #quick-form .primary,#edit-form .primary{min-height:52px;padding:15px 16px;font-size:16px;align-items:center;margin-top:24px}
  .add-panel .form-note{font-size:12px;line-height:1.6;margin:14px 0 0}
  .mobile-add{bottom:calc(18px + env(safe-area-inset-bottom))}
  body{padding-bottom:calc(80px + env(safe-area-inset-bottom))}
  dialog{width:390px;max-width:calc(100% - 24px);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow-y:auto;padding:20px;min-width:0}
  .dialog-heading{gap:10px;align-items:flex-start}
  .dialog-heading h2{min-width:0;line-height:1.3}
  .dialog-heading button{flex-shrink:0;min-width:44px;min-height:44px;margin-top:-8px;margin-right:-8px}
}
@media(max-width:480px){
  #quick-form .form-pair,#edit-form .form-pair{grid-template-columns:minmax(0,1fr);gap:0}
  .add-panel{padding:18px}
}

/* Keep the calendar close to its controls, with one compact desktop toolbar. */
.topbar{height:70px}.family-logo{width:46px;height:44px}.brand{font-size:26px}
main{padding-top:24px}.planner{padding-top:0}
.planner-heading{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:8px}
.planner-title{flex:1;min-width:160px}.planner-heading h2{font-size:28px;line-height:1.2;margin-top:4px;letter-spacing:-.8px}
.planner-toolbar{margin:0;gap:0;flex-shrink:0}.view-switch{flex-shrink:0}.view-switch button{padding:8px 11px}
.planner-status{display:flex;justify-content:space-between;align-items:baseline;gap:16px;margin:0 0 12px;min-height:18px}
.planner-status p{margin:0;font-size:11px;color:var(--muted);line-height:1.6}
#connection-status{min-height:0;text-align:right}.day-heading{padding:13px 4px 10px}.day-number{margin-top:5px}
@media(min-width:781px){.add-panel form label{margin-top:12px}.add-panel .primary{margin-top:15px}.calendar-list{margin-top:24px}.connection-note{margin-top:22px}}
@media(min-width:781px) and (max-width:1100px){.planner-heading{column-gap:12px;row-gap:10px}.planner-heading .view-switch{width:100%;justify-content:space-between}.view-switch button{flex:1}}
@media(max-width:780px){
 .topbar{height:64px}.family-logo{width:38px;height:38px}.brand{font-size:23px}
 main{padding-top:18px;gap:22px}.planner-heading{flex-direction:row;align-items:center;gap:10px;margin-bottom:8px}
 .planner-title{min-width:0}.planner-heading h2{font-size:23px}.eyebrow{font-size:9px;letter-spacing:1.2px}
 .planner-heading .view-switch{width:100%;margin-top:2px}.view-switch button{min-height:44px}
 .navigation button{min-height:44px;padding:8px 10px}.schedule-today{min-height:44px}
 .planner-status{gap:10px;margin-bottom:10px}.planner-status p{font-size:10px}
}

/* Cobalt and white: high-contrast surfaces and calendar colors. */
:root{--bg:#edf3fb;--ink:#102440;--muted:#40516a;--line:#a9bad0;--green:#174ea6}
body{color-scheme:light}.grid,.schedule-list,input,select,dialog,.schedule-more,.add-panel{background:#ffffff}.day.weekend{background:#e5edf8}
input,select,.navigation,.schedule-today,.schedule-more{border-color:#a9bad0}input::placeholder{color:#40516a}.view-switch{background:#dde7f5}.view-switch button{color:#102440}.view-switch button.active,.primary,.mobile-add{background:#174ea6;color:#ffffff}
.is-today .day-number,.schedule-day.is-today .schedule-number,.month-date.today{background:#174ea6;color:#ffffff}.primary:hover{background:#174ea6;filter:brightness(.93)}.navigation button:hover,.schedule-today:hover,.schedule-more:hover{background:#dde7f5}
.day-body{background-image:none}.event-time,.form-note,.connection-note,.connection-note p,.planner-status p,.day-name,.eyebrow,.schedule-weekday,.schedule-month{color:#40516a}.event-title{color:#102440}.add-day{color:#40516a}.event{border-left-width:3px}select:disabled{opacity:1;background:#dde7f5}.status-dot{background:#174ea6}

@media(min-width:781px){.add-panel{background:transparent}}

/* Compact event spacing without shrinking titles or time labels. */
.event{padding:6px 7px;margin-bottom:7px}
.event-time{margin-bottom:3px}.event-calendar{margin-top:3px}
.day-body{padding:10px 7px}.day-view .day-body{padding:12px}
.schedule-day{padding:14px 16px;gap:14px}
.schedule-plans .event{padding:7px 10px;margin-bottom:6px;min-height:44px}
.schedule-plans .event-time{margin-bottom:2px}
.schedule-plans .event-calendar{margin-top:2px}
@media(max-width:780px){
 .schedule-day{padding:12px 10px;gap:10px}
 .schedule-plans .event{padding:6px 8px;margin-bottom:5px}
 .day-body{padding:10px}
}

/* Calendar-colored all-day headers replace the dark top border. */
.event{--event-inset:7px}
.schedule-plans .event{--event-inset:10px}
.month-cell .event{--event-inset:4px}
.event.event-all-day{padding:0 0 6px;border-top:0;border-top-left-radius:4px;overflow:hidden}
.event-all-day .event-time{display:block;float:none;background:var(--color);color:#fff;font-weight:700;letter-spacing:.02em;padding:3px var(--event-inset);margin:0 0 3px}
.event-all-day .event-title,.event-all-day .event-calendar{padding-inline:var(--event-inset)}
.month-cell .event-all-day .event-time{display:block;font-size:10px}
@media(max-width:780px){
 .schedule-plans .event{--event-inset:8px}
 .month-cell .event{--event-inset:3px}
}

/* Repeat options expand only when needed; keep phone controls comfortably sized. */
.repeat-form fieldset{border:0;padding:0;margin:14px 0;display:flex;gap:8px;flex-wrap:wrap}
.repeat-form legend{font-size:12px;margin-bottom:8px}
.repeat-form fieldset label{display:flex;align-items:center;gap:4px;margin:0;min-height:32px;font-size:12px}
.repeat-form input[type=checkbox]{width:16px;height:16px;margin:0;accent-color:var(--green)}
.repeat-form .form-note{overflow-wrap:anywhere}
.calendar-list details{width:100%;font-size:12px;margin-top:12px}.calendar-list summary{cursor:pointer;padding:8px 0}
dialog{max-height:calc(100dvh - 24px);overflow-y:auto}
@media(max-width:780px){
 .repeat-form fieldset label{min-height:44px;min-width:62px}
 #quick-form .repeat-form input[type=checkbox]{width:20px;height:20px;min-height:20px;padding:0}
 #quick-form .repeat-form fieldset label{margin:0;font-size:13px}
 .repeat-form legend{font-size:14px}
}

/* Ribbon W: preserve the supplied mark and its approved header proportions. */
.family-logo{width:60px;height:44px;object-fit:contain}.brand{gap:12px}
@media(max-width:780px){.family-logo{width:48px;height:36px}.brand{gap:10px}}
