/* The kitchen is a complete, passive information board. No content paging. */
.display-shell{--muted:#4f6357;display:block;color:#21382c}
.display-shell .workspace{height:100svh;min-height:100svh;max-width:none;margin:0;display:flex;flex-direction:column;padding:22px 28px;gap:18px}
.display-header{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-shrink:0;min-height:90px}
.display-date{font-size:24px;font-weight:550;margin:0 0 4px;color:#405b49;line-height:1.2}
.display-clock time{font-family:'Manrope',sans-serif;font-size:56px;font-weight:700;letter-spacing:-2px;line-height:1.05;font-variant-numeric:tabular-nums}
.display-header-right{display:flex;align-items:center;gap:22px}
.display-shell .weather{gap:13px;max-width:none;flex-wrap:nowrap;justify-content:start}
.display-shell .sun svg{width:50px;height:50px;stroke-width:1.8}
.display-shell .temperature{font-size:50px;font-weight:650;letter-spacing:-2px}
.display-shell .weather-details{font-size:22px;line-height:1.3;min-width:165px;text-align:left;width:auto;color:#405b49}
.display-shell .weather-details>span{display:block}
.display-shell .weather-alert{font-size:20px;color:#795023;margin-top:6px;display:flex;gap:7px;font-weight:550;line-height:1.2}
.display-shell .weather-alert svg{height:23px;width:23px}
.display-inbox{display:flex;align-items:center;gap:10px;min-height:56px;padding:13px 17px;background:#e5ecde;border:1px solid #cdd9c4;border-radius:15px;font-size:22px;font-weight:600;white-space:nowrap}
.display-inbox svg{height:27px;width:27px}
.display-inbox.has-unread{background:#315c49;color:#fff;border-color:#315c49}
.display-body{flex:1;min-height:0;display:flex;flex-direction:column;overflow:auto}
.display-shell[data-screen=calendar] .display-body{overflow:visible}
.display-calendar{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1.9fr) minmax(0,1fr);gap:18px}
.display-shell .panel{padding:20px 22px;border-radius:18px;border-color:#d9e0d1;min-width:0}
.display-shell .panel-heading{margin-bottom:16px;gap:14px;align-items:center}
.display-shell .panel-heading h1,.display-shell .panel-heading h2{font-family:'Manrope',sans-serif;font-size:34px;font-weight:700;letter-spacing:-.8px;line-height:1.15;margin:0}
.display-event-count{font-size:22px;color:var(--muted);white-space:nowrap}
.display-today-events{display:flex;flex-direction:column}
.board-event{display:grid;grid-template-columns:106px minmax(0,1fr) 128px;align-items:start;gap:14px;padding:14px 0 14px 12px;text-align:left;width:100%;border-bottom:1px solid #dce3d5;border-left:4px solid #91a880;min-height:74px}
.board-event:last-child{border-bottom:0}
.board-event.sport{border-left-color:#bb9156}
.board-event.health{border-left-color:#9b81b0}
.board-event.school{border-left-color:#6f91b0}
.board-event.celebration{border-left-color:#c18a70}
.board-event.travel{border-left-color:#6f9890}
.board-event.work{border-left-color:#8c8ba5}
.board-event:hover{background:#f0f4e9}
.board-event.is-next{background:#e9efdf}
.board-time{font-size:28px;font-weight:650;line-height:1.25;font-variant-numeric:tabular-nums;white-space:nowrap;padding-top:3px}
.board-detail{min-width:0}
.board-detail h2{font-size:clamp(32px,2.5vw,38px);font-weight:650;line-height:1.15;letter-spacing:-.5px;margin:0 0 4px;overflow-wrap:anywhere}
.board-description{display:block;font-size:22px;line-height:1.2;color:#4b6252;overflow-wrap:anywhere}
.board-people{font-size:24px;line-height:1.25;font-weight:550;color:#385442;padding-top:4px;overflow-wrap:anywhere}
.display-calendar[data-density=busy] .today-panel{padding:16px 18px}
.display-calendar[data-density=busy] .panel-heading{margin-bottom:12px}
/* Leave enough line height for the web font's ascenders/descenders. Keep busy
   rows compact through padding, so eight events still fit at 1280 by 800. */
.display-calendar[data-density=busy] .board-event{padding-top:0;padding-bottom:0;min-height:58px}
.display-calendar[data-density=busy] .board-detail h2{font-size:32px;line-height:1.25;margin-bottom:0}
.display-calendar[data-density=busy] .board-description{font-size:20px;line-height:1.25}
.display-calendar[data-density=busy] .board-time{font-size:26px;line-height:1.2}
.display-calendar[data-density=busy] .board-people{font-size:22px;line-height:1.2}
.display-ahead{display:flex;flex-direction:column;gap:16px;min-height:0;min-width:0}
.display-shell .upcoming-panel{flex:1}
.display-shell .upcoming-panel .panel-heading h2{font-size:30px}
.display-shell .mini-day{padding:0 0 12px}
.display-shell .mini-day+.mini-day{padding-top:12px;border-top:1px solid #d9e0d1}
.display-shell .mini-day:last-child{padding-bottom:0}
.display-shell .mini-heading{font-size:25px;font-weight:650;line-height:1.2;margin-bottom:8px;display:flex}
.display-shell .mini-heading>div{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}
.display-shell .display-upcoming-date{font-size:21px;color:var(--muted);font-weight:450}
.display-shell .mini-event{display:grid;grid-template-columns:92px minmax(0,1fr);align-items:start;gap:10px;padding:6px 0;width:100%;text-align:left}
.display-shell .mini-event .time{font-size:22px;line-height:1.2;color:#3d5544;font-weight:550;white-space:nowrap;font-variant-numeric:tabular-nums}
.display-upcoming-event{min-width:0}
.display-upcoming-event strong{font-size:24px;font-weight:600;line-height:1.2;display:block;overflow-wrap:anywhere}
.display-upcoming-event>span{font-size:20px;display:block;color:#4f6357;margin-top:3px;line-height:1.2;overflow-wrap:anywhere}
.display-free-day{font-size:23px;margin:0;color:#4f6357}
.display-shell .horizon{margin:0}
.display-shell .milestones{grid-template-columns:1fr;gap:12px}
.display-shell .milestone{padding:14px 18px;gap:14px;min-height:86px;border-color:#d7ddcc}
.display-shell .milestone>div:first-child{min-width:0}
.display-shell .milestone strong{font-size:26px;font-weight:650;line-height:1.15;margin-bottom:5px;overflow-wrap:anywhere}
.display-shell .milestone p{font-size:21px;color:#4f6357;line-height:1.2}
.display-shell .countdown{flex-shrink:0;min-width:78px}
.display-shell .countdown b{font-family:'Manrope',sans-serif;font-weight:650;font-size:43px;line-height:1.05;letter-spacing:-1px}
.display-shell .countdown span{font-size:18px;letter-spacing:0;text-transform:none;color:#405b49;margin-top:3px}
/* Controls are separate from the board and consume no passive display space. */
.display-controls{position:relative;flex-shrink:0}
.display-controls summary{list-style:none;width:52px;height:52px;border-radius:50%;border:1px solid #d9e0d1;display:grid;place-items:center;cursor:pointer;background:var(--paper)}
.display-controls summary::-webkit-details-marker{display:none}
.display-controls summary svg{width:26px;height:26px}
.display-controls .display-footer{position:fixed;bottom:18px;left:24px;right:24px;z-index:60;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px;background:#fffefaf5;border:1px solid #d2dcc8;border-radius:18px;box-shadow:0 8px 40px #20352730;backdrop-filter:blur(10px)}
.display-footer nav{display:flex;gap:6px}
.display-nav{display:flex;align-items:center;justify-content:center;gap:9px;min-height:52px;padding:11px 16px;border-radius:12px;font-size:20px;font-weight:550;color:#46614e}
.display-nav svg{width:26px;height:26px}
.display-nav.active{background:#dfe8d6;color:#203e2c}
.display-nav:hover{background:#e5ebde}
.display-rotation{display:flex;align-items:center;gap:9px}
.display-rotation-state{font-size:18px;color:#4f6357;margin-right:10px}
.display-shell .icon-button{width:52px;height:52px;flex-shrink:0}
.display-shell .icon-button svg{width:27px;height:27px;stroke-width:1.8}
.display-sync{font-size:19px;color:#795023;display:flex;gap:9px;align-items:center;justify-content:center}
.display-shell .intro{margin:0 0 20px}
.display-shell .intro h1{font-family:'Manrope',sans-serif;font-size:40px;font-weight:650;line-height:1.2;letter-spacing:-1px;margin:0 0 8px}
.display-shell .intro p{font-size:22px;line-height:1.4;max-width:none;color:#4f6357}
.display-shell .eyebrow{display:none}
.display-shell .message-grid{gap:18px;grid-template-columns:repeat(2,minmax(0,1fr))}
.display-shell .message-grid[data-note-count="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}
.display-shell .note{padding:24px}
.display-shell .note-head{font-size:24px;line-height:1.3}
.display-shell .note-head small{font-size:20px;margin-top:6px;color:#4f6357}
.display-shell .avatar{width:44px;height:44px;font-size:20px}
.display-shell .note-body{font-family:'DM Sans',sans-serif;font-size:34px;font-weight:500;line-height:1.35;margin:22px 0;overflow-wrap:anywhere}
.display-shell .message-grid[data-note-count="3"] .note-body{font-size:28px}
.display-shell .reply{font-size:24px;line-height:1.35}
.display-shell .reply small{font-size:20px}
.display-shell .note-actions button{font-size:22px;min-height:52px;padding:10px 14px}
.display-shell .note-actions svg{width:23px;height:23px}
.display-shell .filter-pills button{font-size:21px;min-height:52px}
.display-shell .primary,.display-shell .secondary{font-size:22px;min-height:52px}
.display-shell .empty{padding:35px 15px}
.display-shell .empty h2{font-family:'DM Sans',sans-serif;font-weight:550;font-size:32px}
.display-shell .empty p{font-size:24px;line-height:1.4}
.display-shell .photos-stage{flex:1;min-height:300px;height:auto}
.display-shell .photo-caption h2{font-family:'DM Sans',sans-serif;font-size:40px;font-weight:600}
.display-shell .photo-caption p{font-size:23px;line-height:1.4}
.display-shell .text-button{font-size:20px;min-height:48px;display:inline-flex;align-items:center;gap:7px}
.display-shell .form-help{font-size:18px;line-height:1.4}
.display-shell .settings-panel h2{font-size:28px}
.display-shell .description{font-size:20px;line-height:1.5}
.display-shell .settings-nav button{font-size:21px;min-height:52px}
.display-shell .setting-row strong,.display-shell .calendar-row strong{font-size:22px}
.display-shell .setting-row small,.display-shell .calendar-row small{font-size:19px}
body[data-interface=display] .dialog{max-width:680px}
body[data-interface=display] .dialog h2{font-size:28px}
body[data-interface=display] .dialog label{font-size:20px}
body[data-interface=display] .dialog input,body[data-interface=display] .dialog select,body[data-interface=display] .dialog textarea{font-size:22px;min-height:52px}
body[data-interface=display] .dialog .primary,body[data-interface=display] .dialog .secondary{font-size:21px;min-height:52px}
body[data-interface=display] .modal-detail{font-size:22px}
@media(min-width:761px) and (max-height:850px){
 .display-shell .workspace{padding:18px 22px;gap:14px}
 .display-header{min-height:88px}
 .display-clock time{font-size:50px}
 .display-date{font-size:23px}
 .display-calendar{gap:14px}
 .display-shell .panel{padding:16px 18px}
 .display-shell .panel-heading{margin-bottom:12px}
 .board-event{grid-template-columns:96px minmax(0,1fr) 110px;gap:12px}
 .display-shell .milestone{min-height:80px;padding:12px 16px}
 .display-shell .mini-day{padding-bottom:10px}
 .display-shell .mini-day+.mini-day{padding-top:10px}
 .display-shell .mini-heading{margin-bottom:6px}
}
@media(min-width:761px) and (max-width:1250px){
 .display-header-right{gap:12px}
 .display-inbox{font-size:20px;padding:12px}
 .display-shell .weather-details{font-size:20px;min-width:145px}
 .display-shell .weather{gap:9px}
 .display-shell .sun svg{width:42px;height:42px}
 .display-shell .temperature{font-size:44px}
 .display-nav{padding:10px;font-size:18px}
 .display-rotation-state{display:none}
}
/* Phone management remains separate; a small explicit display can scroll. */
@media(max-width:760px){
 .display-shell{padding:0}
 .display-shell .workspace{height:auto;min-height:100svh;padding:20px;gap:20px}
 .display-header{align-items:start;gap:15px;flex-wrap:wrap}
 .display-clock time{font-size:48px}
 .display-date{font-size:22px}
 .display-header-right{width:100%;flex-wrap:wrap;justify-content:space-between;gap:14px}
 .display-shell .temperature{font-size:42px}
 .display-shell .weather-details{font-size:20px}
 .display-shell .weather-alert{font-size:20px}
 .display-shell .sun svg{width:38px;height:38px}
 .display-inbox{font-size:20px}
 .display-body{overflow:visible;min-height:auto}
 .display-calendar{display:flex;flex-direction:column}
 .display-shell .panel{padding:18px}
 .display-shell .panel-heading{align-items:start;flex-wrap:wrap}
 .board-event,.display-calendar[data-density=busy] .board-event{grid-template-columns:1fr;padding:12px 8px;gap:5px}
 .board-detail h2,.display-calendar[data-density=busy] .board-detail h2{font-size:30px}
 .board-time{font-size:26px}
 .board-description{font-size:22px}
 .board-people{font-size:23px}
 .display-shell .mini-event{grid-template-columns:1fr;gap:4px}
 .display-controls .display-footer{flex-direction:column;align-items:stretch;left:12px;right:12px;bottom:12px;gap:12px}
 .display-footer nav{justify-content:space-between;gap:2px}
 .display-nav{font-size:17px;padding:10px 7px;flex-direction:column;gap:5px;flex:1}
 .display-rotation{flex-wrap:wrap;justify-content:center;gap:7px}
 .display-rotation-state{width:100%;text-align:center;font-size:19px}
 .display-shell .message-grid,.display-shell .message-grid[data-note-count="3"]{grid-template-columns:1fr}
 .display-shell .note-body{font-size:30px}
 .display-shell .messages-header{flex-wrap:wrap;gap:15px}
 .display-shell .filter-pills button{font-size:19px;padding:10px 13px}
 .display-shell .photo-caption h2{font-size:32px}
}
.display-calendar{grid-template-rows:minmax(0,1fr)}
.display-shell .countdown b{font-size:40px;line-height:1}
.display-shell .countdown span{line-height:1.1;margin-top:1px}
@media(min-width:761px) and (max-height:850px){.board-event{grid-template-columns:106px minmax(0,1fr) 100px}}
.display-shell .note-controls{margin-top:10px}
.display-shell .note-controls summary{list-style:none;display:inline-flex;align-items:center;gap:8px;cursor:pointer;min-height:44px;font-size:21px;color:#315c49;font-weight:550}
.display-shell .note-controls summary::-webkit-details-marker{display:none}
.display-shell .note-controls summary svg{width:23px;height:23px}
.display-shell .message-grid[data-note-count="3"] .note{padding:20px}
.display-shell .message-grid[data-note-count="3"] .note-body{line-height:1.3;margin:16px 0 10px}
.display-shell .message-grid[data-note-count="3"] .note-controls{margin-top:0}

/* Share the actual time column width across all rows, including 11:30 pm.
   Person colors, rather than category colors, identify the people attending. */
.display-shell .display-body{touch-action:pan-y}
.display-today-events{display:grid;grid-template-columns:max-content minmax(0,1fr) 128px}
.board-event{position:relative;grid-column:1/-1;grid-template-columns:subgrid;column-gap:22px;border-left:0;padding-left:16px}
.board-event:before{content:'';position:absolute;left:0;top:8px;bottom:8px;width:7px;border-radius:5px;background:var(--event-stripe,#687b64)}
.board-time{padding-right:0}
.board-people{display:flex;align-content:start;align-items:start;flex-wrap:wrap;gap:4px;padding-top:4px}
.board-people .person-dot{width:11px;height:11px}
.board-people .person-tag{gap:4px;padding:0 2px;line-height:1.2}
.display-shell .mini-heading{flex-direction:column;align-items:flex-start;gap:8px}
.display-shell .mini-heading .coming-weather{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:20px;line-height:1.3;font-weight:450;color:#405b49}
.coming-weather svg{width:25px;height:25px;flex-shrink:0}
.coming-weather span{white-space:nowrap}
.display-calendar[data-density=busy] .board-event:before{top:4px;bottom:4px}
@media(min-width:761px) and (max-height:850px){.display-today-events{grid-template-columns:max-content minmax(0,1fr) 118px}.board-event{grid-template-columns:subgrid;column-gap:18px}}
@media(max-width:760px){.display-today-events{display:flex}.board-event,.display-calendar[data-density=busy] .board-event{grid-template-columns:1fr;padding-left:16px}.board-event:before{top:12px;bottom:12px}.board-people{gap:8px}}
/* Keep names beside their times so long titles have the full remaining width. */
.display-today-events{grid-template-columns:max-content minmax(0,1fr)}
.board-event{row-gap:2px}
.board-time{grid-column:1;grid-row:1}
.board-detail{grid-column:2;grid-row:1/3}
.board-people{grid-column:1;grid-row:2;width:132px;max-width:132px;padding-top:0}
.display-calendar[data-density=busy] .panel-heading{margin-bottom:8px}
.display-shell .mini-heading{gap:4px}
.display-shell .mini-heading .coming-weather span{font-size:20px;line-height:1.3}
.display-shell .mini-event{padding-top:2px;padding-bottom:2px}
.display-upcoming-event>span{margin-top:0}
.display-upcoming-event .person-tag{padding:0 2px;line-height:1.15}
@media(min-width:761px) and (max-height:850px){.display-today-events{grid-template-columns:max-content minmax(0,1fr)}}
@media(max-width:760px){.board-event,.display-calendar[data-density=busy] .board-event{display:flex;flex-direction:column;gap:5px}.board-people{width:auto;max-width:none}}
@media(min-width:761px) and (max-height:850px){
 .display-shell .workspace:has(.display-calendar[data-density=busy]){gap:10px;padding-top:16px;padding-bottom:16px}
 .display-calendar[data-density=busy] .today-panel{padding-top:12px;padding-bottom:12px}
 .display-calendar[data-density=busy] .panel-heading{margin-bottom:4px}
}
body[data-interface=display] .dialog .person-choice{font-size:21px;min-height:56px}
body[data-interface=display] .dialog .person-choice input[type=checkbox]{width:24px;height:24px;min-height:24px}
.display-shell .photos-stage img{-webkit-user-drag:none;user-select:none}

/* The next four dayparts share the header; no weather paging or tiny chances. */
.display-header-right{flex:1;min-width:0;gap:16px}
.display-clock{flex-shrink:0}
.display-weather{flex:1;min-width:0}
.weather-periods{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.weather-period{min-width:0;border-left:1px solid #d9e0d1;padding-left:10px}
.weather-period:first-child{border-left:0;padding-left:0}
.weather-period h2{font-size:20px;font-weight:550;line-height:1.25;margin:0;color:#405b49}
.weather-period-main{display:flex;align-items:center;gap:7px;min-width:0}
.weather-period-main strong{font-size:26px;line-height:1.25;font-weight:650;white-space:nowrap;font-variant-numeric:tabular-nums}
.forecast-icon{width:26px;height:26px;flex-shrink:0;color:#54705b}
.forecast-icon.sun{color:#b9832f}.forecast-icon.snow{color:#5077a0}.forecast-icon.alert{color:#94622a}
.weather-period p{font-size:20px;line-height:1.25;margin:0;color:#405b49}
.display-shell .display-weather>.weather-alert{font-size:20px;line-height:1.2;margin-top:2px}
.weather-fallback{display:flex;flex-direction:column;gap:4px;font-size:22px;line-height:1.3}
@media(min-width:761px) and (max-height:850px){
 .display-shell .workspace:has(.display-calendar[data-density=busy]){gap:6px}
 .display-calendar[data-density=busy] .today-panel{padding-top:8px}
 .display-calendar[data-density=busy] .panel-heading{margin-bottom:0}
}
@media(max-width:760px){.display-weather{flex-basis:100%;order:3}.weather-periods{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.weather-period:nth-child(3){border-left:0;padding-left:0}.display-header-right{flex-wrap:wrap}.display-shell .display-weather>.weather-alert{margin-top:12px}}
@media(max-width:760px){.display-header-right{flex:0 0 100%;width:100%}}
