/* Mail workspace: source filters above, personal organisation on the left. */
.hub{grid-template-columns:220px minmax(0,1fr)}
.hub main{min-width:0;padding:26px 28px;background:#f5f7fb}
.hub header{margin-bottom:16px}.hub header h1{font-size:28px}
#workspaces-nav{margin-top:32px}#workspaces-nav .eyebrow{padding:0 12px;font-size:10px}
#workspaces button{display:block;width:100%;text-align:left;overflow-wrap:anywhere}
#workspaces-nav>button{font-size:12px;opacity:.85}
.toolbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:22px}
.toolbar>label{min-width:140px;flex:1}.toolbar label{font-size:11px;color:#66748a;font-weight:600}
.toolbar input,.toolbar select{min-width:0;height:40px;margin-top:5px;background:white}
.toolbar>button{height:40px;white-space:nowrap}.toolbar form{flex:2;min-width:220px;align-items:end}
.toolbar form label{flex:1;min-width:0}.toolbar form button{height:40px}
.mail-summary{display:flex;align-items:center;gap:12px;margin-bottom:12px}.mail-summary h2{margin:0;font-size:18px}
#mail-count{font-size:12px;color:#64748b}.bulk-bar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:12px 0;font-size:12px}
.bulk-bar select{width:auto;max-width:180px;padding:7px;font-size:12px}.bulk-bar button{padding:7px 10px;min-height:34px;font-size:12px}.bulk-bar>span{margin-right:8px;color:#64748b}
.mail-grid{display:grid;grid-template-columns:minmax(270px,38%) minmax(0,1fr);gap:0;background:white;border:1px solid #dce3ec;border-radius:12px;overflow:hidden;min-height:60vh}
.list-pane{min-width:0;border-right:1px solid #e4e9f1}.messages{border:0;border-radius:0;max-height:68vh;overflow:auto;background:white}
.desk-row{display:flex;align-items:flex-start;border-bottom:1px solid #edf0f5;padding-left:12px}.desk-row>input{width:16px;height:16px;flex:none;margin:23px 0 0;accent-color:#2563eb}
.desk-row .message-row{border:0;border-radius:0;min-width:0;flex:1;padding:17px 14px;text-align:left;background:transparent;display:grid;gap:5px}
.desk-row:hover,.desk-row:focus-within{background:#f1f6ff}.desk-row.unread{box-shadow:inset 3px 0 #2563eb;background:#f8fbff}
.message-row .sender{font-size:12px;color:#41516a}.message-row strong{font-size:14px;font-weight:600;line-height:1.5}
.message-row .snippet{font-size:12px;color:#778397;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.message-row small{font-size:10px;color:#748198;overflow-wrap:anywhere}
.message{border:0;border-radius:0;padding:28px;min-width:0;max-height:76vh;overflow:auto}.message h2{font-size:22px;line-height:1.4;margin:14px 0}.message p{font-size:13px;overflow-wrap:anywhere}
.reading-actions{display:flex;gap:6px;flex-wrap:wrap;padding:18px 0;border-bottom:1px solid #edf0f5;margin-bottom:22px}.reading-actions button{font-size:11px;padding:7px 10px}
.account-chip{display:inline-block;background:#eef3fd;color:#3e62a1;padding:5px 9px;border-radius:5px;font-size:11px!important}
.message .mail-body{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;font-size:14px;line-height:1.85;background:transparent;padding:0;border:0}
.reading-empty{text-align:center;padding:80px 20px;color:#718198}.reading-empty>span{font-size:44px}.reading-empty h2{font-size:18px}
.source-warning{padding:10px 14px;background:#fff7e5;border:1px solid #f0dfba;border-radius:8px;font-size:12px}
#more-messages{margin:14px}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:20px}
#compose-dialog{width:min(720px,94vw)}#compose-form textarea{font:inherit;width:100%;resize:vertical;border:1px solid #cfd8e5;border-radius:8px;padding:12px;margin-top:6px}
button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible{outline:3px solid #96baff;outline-offset:2px}
.message-row[aria-current=true]{background:#eaf2ff}
@media(max-width:700px){#workspaces-nav{display:block!important}#workspaces-nav .eyebrow{margin:8px 0}#workspaces{width:100%;padding-bottom:6px}#workspaces button{flex-shrink:0}#workspaces-nav>button{margin:4px 4px 0 0}.sidebar .profile{margin-top:8px;padding-top:10px}.hub header{margin-bottom:8px}.hub header+p.status:empty{margin:0;min-height:12px}.toolbar{padding:12px;gap:10px}}
@media(max-width:1050px){.hub{grid-template-columns:180px minmax(0,1fr)}.hub main{padding:20px}.mail-grid{grid-template-columns:minmax(230px,43%) minmax(0,1fr)}.message{padding:18px}.toolbar>label{min-width:120px}}
@media(max-width:700px){.hub{display:block}.sidebar{position:static;width:auto;min-height:0;padding:16px}.sidebar>nav:first-of-type{display:flex}.sidebar .profile{margin-top:16px}.sidebar .brand,.sidebar>.eyebrow{display:none}#workspaces-nav{margin-top:12px}#workspaces{display:flex;gap:6px;overflow:auto}#workspaces button{width:auto;white-space:nowrap}#workspaces-nav>button{display:inline-block;width:auto}.hub main{padding:14px}.mail-grid{display:block}.list-pane{border-right:0}.messages{max-height:44vh}.message{max-height:none;border-top:1px solid #dce3ec}.toolbar form{min-width:100%;flex:1}.toolbar>label{min-width:100px}.bulk-bar{gap:6px}.bulk-bar>span{width:100%}.mail-summary{flex-wrap:wrap}.reading-empty{padding:30px 10px}}

/* Full-height mail app: one command row, then the content. */
body.compact-mail{overflow:hidden}.compact-mail .hub{height:100dvh;min-height:0;grid-template-columns:224px minmax(0,1fr)}
.compact-mail .hub main{height:100dvh;padding:0;display:flex;flex-direction:column;overflow:hidden;background:#fff}
.compact-mail main>header{display:none}.compact-mail #status{margin:0;padding:0 14px;min-height:0;font-size:12px;flex:none}.compact-mail #status:not(:empty){padding:8px 14px;background:#fff7e5}
.compact-mail #mail-view{min-height:0;display:flex;flex-direction:column;flex:1;overflow:hidden}
.compact-mail .toolbar{height:62px;min-height:62px;flex-wrap:nowrap;align-items:center;border:0;border-bottom:1px solid #dce3ec;border-radius:0;padding:10px 16px;margin:0;gap:14px;background:#f7f9fc}
.compact-mail .toolbar>button{height:38px;font-size:13px}.compact-mail .toolbar form{min-width:140px;max-width:720px;flex:1;gap:8px;align-items:center}.compact-mail .toolbar form label{font-size:0;flex:1}.compact-mail .toolbar input{height:38px;margin:0;font-size:13px}.compact-mail .toolbar form button{height:38px;font-size:12px}.compact-mail #refresh{margin-left:auto;white-space:nowrap}
.compact-mail .sidebar{padding:16px 12px;gap:12px;min-height:0;height:100dvh;overflow:auto;background:#f7f9fc}.compact-mail .sidebar>.eyebrow{display:none}.compact-mail .sidebar .brand{font-size:23px;margin:0 8px 8px}.compact-mail .sidebar nav button{padding:9px 10px;min-height:36px;font-size:13px;margin:1px 0}.compact-mail .sidebar nav:first-of-type{display:flex;gap:2px}.compact-mail .sidebar nav:first-of-type button{padding:8px 6px;gap:5px;font-size:12px}.compact-mail .sidebar .profile{margin-top:auto;padding:12px 6px 0;font-size:12px}.compact-mail .sidebar .profile button{padding:4px 0;font-size:12px}
.source-panel{display:grid;gap:8px;margin-top:10px}.source-panel>.eyebrow{font-size:10px;margin:0 6px}.source-panel label{font-size:11px;color:#66748a;min-width:0}.source-panel select{font-size:12px;padding:8px;min-width:0;width:100%;margin:3px 0 0;background:#fff}.source-panel .source-warning{font-size:11px;line-height:1.5;margin:0;padding:8px;overflow-wrap:anywhere}
.compact-mail #workspaces-nav{margin-top:12px;display:block}.compact-mail #workspaces-nav>.eyebrow{margin:8px 6px;padding:0}.compact-mail #workspaces-nav>button{width:100%;text-align:left;font-size:12px}.organize-progress{font-size:11px;line-height:1.5;margin:6px;overflow-wrap:anywhere;color:#63748c}
.compact-mail .bulk-bar{padding:7px 14px;margin:0;border-bottom:1px solid #e4e9f1;min-height:44px;flex:none}.compact-mail .mail-grid{--list-width:360px;display:grid;grid-template-columns:minmax(260px,var(--list-width)) 5px minmax(280px,1fr);flex:1;min-height:0;border:0;border-radius:0;overflow:hidden}
.compact-mail .list-pane{display:flex;flex-direction:column;min-height:0;border:0;overflow:hidden}.compact-mail .mail-summary{height:46px;min-height:46px;padding:0 16px;margin:0;gap:8px;border-bottom:1px solid #e4e9f1}.compact-mail .mail-summary h2{font-size:15px}.compact-mail #mail-count{font-size:10px}.compact-mail .messages{flex:1;min-height:0;max-height:none;overflow:auto}.compact-mail .desk-row .message-row{padding:12px 10px;gap:3px}.compact-mail .message-row strong{font-size:13px;line-height:1.45}.compact-mail .message-row .sender{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.compact-mail .desk-row>input{margin-top:17px}.compact-mail #more-messages{margin:8px;font-size:12px;padding:8px}
.mail-divider{background:#e8edf4;cursor:col-resize;touch-action:none}.mail-divider:hover,.mail-divider:focus{background:#5488d8;outline:none}
.compact-mail .sidebar nav:first-of-type{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.compact-mail .sidebar nav:first-of-type button{width:auto;min-width:0;justify-content:center;padding:8px 2px;font-size:11px}.compact-mail .sidebar nav:first-of-type button span{display:none}.compact-mail .sidebar nav button:not([aria-current]){background:transparent}
.compact-mail .message{max-height:none;height:100%;overflow:auto;padding:20px 24px}.compact-mail .message h2{font-size:20px;line-height:1.4;margin:0 0 10px}.message-details{border:0;padding:0;background:transparent;border-radius:0;font-size:12px}.message-details summary{color:#607189;cursor:pointer;line-height:1.6;overflow-wrap:anywhere}.message-details p{margin:5px 0}.compact-mail .reading-actions{margin:12px 0 16px;padding:0 0 12px;gap:6px}.compact-mail .mail-body{margin:0;font-size:14px;line-height:1.7}.compact-mail .reading-empty{min-height:100%;padding:24px}.mobile-back,.mobile-folders{display:none}
@media(max-width:1000px) and (min-width:701px){.compact-mail .hub{grid-template-columns:190px minmax(0,1fr)}.compact-mail .mail-grid{--list-width:290px;grid-template-columns:minmax(230px,var(--list-width)) 5px minmax(240px,1fr)}.compact-mail .message{padding:16px}.compact-mail .toolbar{padding:10px;gap:8px}.compact-mail .sidebar nav:first-of-type button span{display:none}}
@media(max-width:700px){.compact-mail .hub{display:block}.compact-mail .sidebar{display:none;position:absolute;z-index:5;top:62px;left:0;width:240px;height:calc(100dvh - 62px);box-shadow:8px 0 20px #20334820}.compact-mail.folders-open .sidebar{display:flex}.compact-mail .sidebar .brand{display:none}.compact-mail #workspaces{display:block;overflow:visible}.compact-mail #workspaces button{width:100%;text-align:left}.compact-mail .toolbar{padding:8px;gap:6px}.compact-mail .toolbar .mobile-folders{display:block;font-size:12px}.compact-mail #compose-new{font-size:0;width:38px;padding:0}.compact-mail #compose-new:before{content:'＋';font-size:22px}.compact-mail .toolbar form{min-width:80px}.compact-mail .toolbar form button{display:none}.compact-mail #refresh{font-size:0;width:36px;padding:0}.compact-mail #refresh:before{content:'↻';font-size:21px}.compact-mail .mail-grid{display:flex;flex-direction:column}.compact-mail .list-pane{flex:1}.compact-mail .message{display:none}.compact-mail.reading-open .list-pane{display:none}.compact-mail.reading-open .message{display:block;border:0;padding:16px}.mail-divider{display:none}.mobile-back{display:block;margin:0 0 14px}.compact-mail .bulk-bar{min-height:0;padding:6px;gap:4px}.compact-mail .bulk-bar>span{width:auto}.compact-mail .bulk-bar select{max-width:110px}.compact-mail #clear-selection{display:none}.compact-mail .message h2{font-size:18px}}

.project-review{margin:8px 0;border-block:1px solid #dce3ed;padding:8px 0}.project-review summary{cursor:pointer;font-weight:600}.project-review select{max-width:100%}.project-review button{margin:6px 6px 0 0}.project-review p{overflow-wrap:anywhere}

/* Shared office shell — all views retain the same navigation and visual rhythm. */
:root{--ink:#172e36;--muted:#697b80;--blue:#256b60;--line:#dfe7e5;--wash:#f5f7f6;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body .hub,body.compact-mail .hub{grid-template-columns:224px minmax(0,1fr)}
body .hub .sidebar,body.compact-mail .hub .sidebar{background:#fff;padding:28px 18px;gap:24px;border-right:1px solid var(--line)}
body .sidebar .office-home,body.compact-mail .sidebar .office-home{display:block;font-size:30px;margin:6px 12px 22px;padding:0}
body .sidebar nav[aria-label="Hoofdnavigatie"],body.compact-mail .sidebar nav[aria-label="Hoofdnavigatie"]{display:grid;grid-template-columns:1fr;gap:7px}
body .sidebar nav[aria-label="Hoofdnavigatie"] button,body.compact-mail .sidebar nav[aria-label="Hoofdnavigatie"] button{min-height:46px;padding:12px 16px;font-size:14px;justify-content:flex-start;border-radius:12px;text-align:left}
body .sidebar nav [aria-current]{background:#eaf3ef;color:#245c50;font-weight:650}
body .hub main,body.compact-mail .hub main{padding:28px 32px 88px;background:var(--wash)}
body .hub main>header,body.compact-mail .hub main>header{display:flex;flex:none;margin:0 0 24px;min-height:62px}
.hub header h1{font-size:30px;letter-spacing:-.035em}.hub header .eyebrow{font-size:11px;letter-spacing:.12em;color:var(--muted)}
button{transition:background .15s,border-color .15s,box-shadow .15s}button:hover{background:#eef4f1}button.primary{background:var(--blue);border-color:var(--blue);color:#fff}button.primary:hover{background:#1e574e}
body.compact-mail #mail-view{border:1px solid var(--line);border-radius:18px;background:white;box-shadow:0 6px 24px #193b2e04}
body.compact-mail .toolbar{background:#fff;border-bottom:1px solid var(--line);height:auto;min-height:72px;padding:14px 18px}
body.compact-mail .mail-grid{grid-template-columns:minmax(230px,var(--list-width,330px)) 5px minmax(0,1fr)}
body.compact-mail .message-row strong{font-size:14px}.desk-row.unread{box-shadow:inset 3px 0 #397c6d;background:#f6faf8}.desk-row:hover,.desk-row:focus-within{background:#edf5f1}
body.compact-mail .desk-row .message-row{padding:16px 14px;gap:5px}.mail-divider{background:#edf1ef}.mail-divider:hover{background:#7bac9b}
body.compact-mail .sidebar .profile,.sidebar .profile{font-size:13px;padding:18px 8px 0;gap:6px}.source-panel{padding-top:18px;border-top:1px solid var(--line)}
.team-intro{margin:28px 0 12px;max-width:620px}.team-intro h2{font-size:clamp(24px,3vw,34px);letter-spacing:-.035em;margin:8px 0 12px}.team-intro p,#team-status{color:var(--muted);font-size:14px;line-height:1.7}
#team-departments{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:28px;align-items:start}
.team-department{padding:0;border:1px solid var(--line);border-radius:16px;background:white;overflow:hidden;box-shadow:0 3px 12px #173f3703}
.team-department>summary{list-style:none;cursor:pointer;padding:24px;display:flex;flex-wrap:wrap;align-items:center;gap:12px;min-height:102px}.team-department>summary::-webkit-details-marker{display:none}.team-department>summary::after{content:'＋';margin-left:auto;color:#65887d;font-size:22px}.team-department[open]>summary::after{content:'−'}.department-name{font-size:16px;font-weight:650;flex-basis:70%}.department-count{font-size:12px;color:#637d73;background:#eff5f2;padding:4px 9px;border-radius:20px}
.team-department[open]>summary{border-bottom:1px solid var(--line);background:#fafcfb}.team-members{padding:0 22px}.team-person{display:flex;gap:14px;padding:20px 0;border-bottom:1px solid #edf1ef}.team-person:last-child{border:0}.team-avatar{height:44px;width:44px;flex:none;border-radius:14px;background:#eaf2ee;display:grid;place-items:center;color:#3b7161;font-size:14px;font-weight:700}.team-identity{min-width:0}.team-identity strong{font-size:14px}.team-identity p{font-size:12px;color:var(--muted);margin:4px 0 9px;line-height:1.5}.team-state{font-size:11px;color:#6d7977;border:1px solid #e5ebe8;padding:3px 8px;border-radius:20px;display:inline-block}
.office-panel,.account-card,.office-card{background:white;border-color:var(--line);border-radius:16px}.office-filters button{font-size:13px}.office-filters [aria-pressed=true]{background:#286859}.james-launcher{box-shadow:0 8px 24px #163f3720}
@media(max-width:1050px){body .hub,body.compact-mail .hub{grid-template-columns:190px minmax(0,1fr)}body .hub main,body.compact-mail .hub main{padding:22px 20px 84px}#team-departments{grid-template-columns:1fr}.team-department>summary{min-height:86px}}
@media(max-width:700px){body.compact-mail{overflow:auto}body .hub,body.compact-mail .hub{display:flex;flex-direction:column;height:auto;min-height:100dvh}body .hub .sidebar,body.compact-mail .hub .sidebar{display:flex;position:static;width:auto;height:auto;overflow:visible;padding:16px;gap:12px;box-shadow:none;border-right:0;border-bottom:1px solid var(--line)}body .sidebar .office-home,body.compact-mail .sidebar .office-home{display:block;margin:0 6px 8px;font-size:25px}body .sidebar nav[aria-label="Hoofdnavigatie"],body.compact-mail .sidebar nav[aria-label="Hoofdnavigatie"]{grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}body .sidebar nav[aria-label="Hoofdnavigatie"] button,body.compact-mail .sidebar nav[aria-label="Hoofdnavigatie"] button{padding:10px 4px;font-size:12px;justify-content:center;min-height:42px}body.compact-mail .sidebar .source-panel,body.compact-mail .sidebar #workspaces-nav{display:none!important}body.compact-mail.folders-open .sidebar .source-panel,body.compact-mail.folders-open .sidebar #workspaces-nav{display:grid!important}.sidebar .profile,body.compact-mail .sidebar .profile{display:flex;flex-wrap:wrap;margin:0;padding:8px 4px 0;gap:12px}.sidebar .profile #profile-role{display:none}body .hub main,body.compact-mail .hub main{height:auto;padding:20px 14px 88px;overflow:visible}body .hub main>header,body.compact-mail .hub main>header{margin-bottom:18px;min-height:50px}.hub header h1{font-size:25px}body.compact-mail #mail-view{height:calc(100dvh - 210px);min-height:410px}body.compact-mail .toolbar{padding:10px;gap:8px}.team-intro{margin-top:24px}.team-department>summary{padding:20px}.team-members{padding:0 18px}#team-departments{margin-top:20px;gap:12px}.hub #workspace-navigation{display:none}}
@media(prefers-reduced-motion:reduce){button{transition:none}}

@media(max-width:700px){body.compact-mail #workspace-navigation{display:none!important}}

/* Keep mail-only controls out of other views, including legacy mobile overrides. */
body.nonmail-view .sidebar #workspaces-nav,body.nonmail-view .sidebar .source-panel{display:none!important}
@media(max-width:700px){body.nonmail-view .sidebar>nav[aria-label="Hoofdnavigatie"]{grid-template-columns:repeat(4,minmax(0,1fr))}.team-department>summary{display:grid;grid-template-columns:1fr auto;gap:8px 14px}.department-name{grid-column:1;min-width:0}.department-count{grid-column:1;justify-self:start}.team-department>summary::after{grid-column:2;grid-row:1/3;margin:0}.team-department>summary{min-height:106px}}

/* Calendar and settings use the same quiet office surfaces. */
.calendar-heading{background:white;border:1px solid var(--line);padding:22px;border-radius:16px;gap:20px;flex-wrap:wrap;align-items:center}.calendar-heading h2{font-size:19px;letter-spacing:-.02em}.calendar-controls{gap:14px}.calendar-modes{background:#f3f6f4;padding:4px;border:0;border-radius:12px}.calendar-modes button{background:transparent;border:0;border-radius:9px;font-size:13px;min-height:36px}.calendar-modes button[aria-pressed=true]{background:white;color:#23594e;box-shadow:0 2px 6px #193b2e10}.calendar-actions button{font-size:13px}.calendar-source{font-size:11px;background:#f6f8f7;border-radius:20px;padding:4px 8px}.calendar{border-color:var(--line);border-radius:16px;min-height:54vh}.calendar-day{padding:12px;border-color:var(--line)}.calendar-day.is-today{background:#f4f9f6}.calendar-day.is-today .calendar-day-head strong{background:#286859}.calendar-day-head{font-size:11px}.calendar-event{background:#eff5f2;border-radius:8px;padding:10px}.calendar-status{background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px 20px;color:var(--muted);font-size:14px}.calendar-status.is-error{border-color:#e7d5ba;background:#fffbf3;color:#7a5425}
#accounts-view>.section-heading{margin:8px 0 24px}#accounts-view>.section-heading h2{font-size:24px;letter-spacing:-.025em}#accounts-view>.section-heading p{font-size:14px}.settings-help{display:flex;justify-content:space-between;align-items:center;gap:24px;background:#eaf3ef;border:1px solid #dce9e2;border-radius:16px;padding:24px;margin-bottom:24px}.settings-help strong{font-size:15px}.settings-help p{font-size:13px;color:var(--muted);margin:6px 0 0}.settings-help button{white-space:nowrap;font-size:13px}.account-card{justify-content:flex-start;padding:22px;gap:18px}.account-card h2{font-size:16px;font-weight:650;overflow-wrap:anywhere}.account-card p{font-size:12px;margin:6px 0 10px}.account-avatar{display:grid;place-items:center;flex:0 0 46px;height:46px;background:#edf3f0;border-radius:14px;color:#417661;font-size:20px;font-weight:700}.account-more{margin-left:auto;font-size:12px;white-space:nowrap}.badge{font-size:11px;border-radius:20px;padding:4px 9px}.consent-note{font-size:12px;color:var(--muted);line-height:1.7;max-width:72ch}.account-details{font-size:14px}.account-details dd{min-width:0}.account-dialog-actions{margin-top:24px}textarea{font:inherit;border:1px solid var(--line);border-radius:10px;padding:12px;color:var(--ink)}
@media(max-width:700px){.calendar-heading{padding:18px;gap:16px}.calendar-controls{justify-content:flex-start;width:100%}.calendar-actions{flex:1;justify-content:space-between}.calendar-modes{width:100%}.calendar-day{min-height:110px}.settings-help{align-items:flex-start;flex-direction:column;padding:20px;gap:16px}.account-card{padding:18px;gap:12px;align-items:flex-start;flex-wrap:wrap}.account-card>div{flex:1;min-width:0}.account-more{margin-left:58px}.account-card h2{font-size:14px}.calendar-mode-month .calendar-day{min-width:92px}.calendar-status{padding:14px}}

@media(min-width:701px) and (max-width:1100px){.calendar-mode-week{grid-template-columns:repeat(2,minmax(0,1fr));min-height:0}.calendar-mode-week .calendar-day{min-width:0;min-height:160px;border-bottom:1px solid var(--line)}.calendar-mode-week .calendar-day:last-child{grid-column:1/-1}}
@media(max-width:700px){button.account-card.account-open{display:grid;grid-template-columns:44px minmax(0,1fr);align-items:start}.account-card .account-avatar{grid-column:1}.account-card>div{grid-column:2}.account-card .account-more{grid-column:2;margin:0;justify-self:start}.account-card h2{overflow-wrap:anywhere}}

.skip-link{position:fixed;left:16px;top:-100px;z-index:100;background:#173f37;color:white;padding:12px 20px;border-radius:10px;text-decoration:none}.skip-link:focus{top:16px}#main-content:focus{outline:none}
#office-projects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:24px}.office-card{margin:0;padding:26px;box-shadow:0 4px 14px #173f3704}.office-card h3{font-size:19px;line-height:1.4;letter-spacing:-.015em;margin:14px 0 12px}.office-card p{font-size:14px;line-height:1.7;color:var(--muted)}.office-card .project-state{display:inline-flex;padding:4px 10px;border-radius:20px;font-size:11px;line-height:1.6;margin:0;background:#eff3f1;color:#5f746b}.office-card[data-office-status=active] .project-state{background:#e7f3ec;color:#2f654b}.office-card[data-office-status=waiting_for_peter] .project-state{background:#fff2dc;color:#865b21}.office-card[data-office-status=rejected] .project-state{background:#f6eeee;color:#8a5151}.office-card button{font-size:12px}.project-description{padding:14px;background:#f8faf9;border:0;margin:12px 0}.project-description summary{font-size:13px;cursor:pointer}.office-empty{padding:36px;border:1px dashed #cddcd5;background:#fbfdfc;border-radius:16px;color:var(--muted);grid-column:1/-1}.office-empty h3{font-size:19px;color:var(--ink);margin:0 0 10px}.office-empty p{max-width:60ch;margin:0;font-size:14px;line-height:1.8}#office-filter-empty{margin-top:24px}.office-work-heading h2{font-size:24px;letter-spacing:-.025em}.office-work-heading p{font-size:13px;color:var(--muted)}.office-filters{gap:8px;margin:24px 0 0}.office-filters button{border-radius:10px;padding:9px 14px;min-height:40px}.office-filters button[aria-pressed=true]{border-color:#286859}
@media(max-width:1000px){#office-projects{grid-template-columns:1fr}}@media(max-width:700px){.office-card{padding:22px}.office-empty{padding:24px}.office-filters button{font-size:12px;padding:8px 10px}.office-work-heading{gap:16px}}

#projects-view>.office-work-heading{margin-top:24px}.reading-empty>span{display:grid;place-items:center;width:76px;height:76px;background:#eff5f2;border-radius:24px;font-size:32px;color:#6f9584;margin:0 0 20px}.reading-empty h2{color:#294d40;font-size:20px}.reading-empty p{max-width:34ch;color:var(--muted);line-height:1.7}.mail-divider:focus-visible{outline:3px solid #286859;outline-offset:-2px;background:#b8d4c6}#compose-dialog{border-radius:20px;padding:26px}#compose-form>label{font-size:13px;color:#4e665d}#compose-form textarea{line-height:1.7}#compose-form .dialog-actions{padding-top:16px;border-top:1px solid var(--line)}

.team-search{max-width:460px;margin:24px 0 16px;font-size:12px;color:var(--muted)}.team-search input{margin-top:8px;border-color:var(--line);border-radius:12px;padding:13px 16px;font-size:14px;background:white}.team-search input:focus{border-color:#4b8973;outline:2px solid #d9e9e0;outline-offset:2px}#team-empty{margin-top:24px;font-size:14px}

.hub main>#status:empty{display:none}

/* Consistent keyboard focus across the office, including native disclosure controls. */
:is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #286859;outline-offset:3px}
dialog{max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain}
@media(max-width:600px){dialog .dialog-actions{flex-wrap:wrap}dialog{padding:20px}}
