@font-face{font-family:Nunito;src:url(/brand/Nunito.woff2?v=fd0bff4bcc6e73295ec4f03d) format("woff2");font-weight:200 1000;font-display:swap}
:root{--heading-font:Nunito,Onest,system-ui,sans-serif;--overlay:#07101dcc;--shadow:#07101d33;--font:Onest,Arial,sans-serif}
html{background:var(--bg);color:var(--text);font-family:var(--font)}body,body.workspace-shell{background:var(--bg);color:var(--text);font-family:var(--font);font-size:16px;line-height:1.5}button,input,textarea,select{font:inherit}a{color:var(--accentText)}button,a,input,select,textarea{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--focus)!important;outline-offset:3px}
.workspace-shell .shell-topbar,.workspace-shell .shell-navigation,.workspace-shell .shell-bottom{background:var(--surface);border-color:var(--border);color:var(--text)}.shell-brand{font-family:var(--heading-font);font-weight:700;display:flex;align-items:center;gap:8px;font-size:20px;color:var(--text);white-space:nowrap;letter-spacing:-.04em}.shell-brand img{object-fit:contain;display:block}[data-theme=dark] .shell-brand img{content:url(/brand/logo-dark.svg)}.shell-page-name,.shell-topbar #session-name{color:var(--muted)}.shell-link-icon{width:22px!important;height:22px!important;display:inline-block;vertical-align:middle;margin-right:0;stroke:currentColor;fill:none;flex-shrink:0}.shell-navigation a{color:var(--text)}.shell-navigation a:hover{background:var(--raised)}.shell-navigation a[aria-current]{background:var(--raised);color:var(--accentText);box-shadow:inset 3px 0 var(--accentText)}.shell-navigation summary{color:var(--muted)}.shell-topbar .shell-theme{white-space:nowrap;font-size:13px;min-width:102px}.theme-status{position:fixed;right:20px;top:70px;z-index:100;background:var(--dangerBg);color:var(--danger);padding:12px;border-radius:8px;max-width:300px}
.workspace-shell button,button{background:var(--surface);color:var(--text);border:1px solid var(--control);border-radius:12px;min-height:44px;padding:9px 14px;cursor:pointer}.workspace-shell button:hover:not(:disabled),button:hover:not(:disabled){background:var(--raised)}.workspace-shell button:disabled,button:disabled{opacity:.55;cursor:not-allowed}.workspace-shell form button:not([type=button]),.workspace-shell #publish,.workspace-shell #save,.workspace-shell #complete,.workspace-shell .primary,button.primary{background:var(--accent);color:var(--onAccent);border-color:var(--accent);font-weight:600}.workspace-shell form button:not([type=button]):hover,.workspace-shell .primary:hover{background:var(--accentHover);color:var(--onAccent)}.workspace-shell button.secondary{background:var(--raised);color:var(--text)}input:not([type=checkbox]):not([type=radio]),select,textarea{background:var(--surface);color:var(--text);border:1px solid var(--control);border-radius:12px;min-height:44px;padding:9px 12px}input[type=checkbox],input[type=radio]{accent-color:var(--accentText)}input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}
.workspace-shell dialog,dialog{background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:20px;padding:24px;max-height:90dvh;max-width:94vw;box-shadow:0 20px 70px var(--shadow)}dialog::backdrop{background:var(--overlay)}dialog h2{margin-top:0}dialog label{display:block;margin:12px 0}dialog input:not([type=color]):not([type=checkbox]):not([type=radio]),dialog textarea{width:100%}.dialog-actions{display:flex;gap:12px;flex-wrap:wrap;justify-content:flex-end;margin-top:24px}.dialog-close{position:absolute;right:12px;top:12px}.field-hint,.muted{color:var(--muted);font-size:13px}.form-error,[role=alert]:not(:empty),#error:not(:empty){color:var(--danger);background:var(--dangerBg);border-radius:8px;padding:10px 14px}.form-error:empty,[role=alert]:empty{padding:0;margin:0}table{color:var(--text)}th{background:var(--raised);color:var(--text)}td,th{border-color:var(--border)}.card,article,section.card{background:var(--surface);border-color:var(--border)}.shell-fold{background:var(--surface);border-color:var(--border)}.shell-tabs a[aria-current]{color:var(--accentText);border-color:var(--accentText)}.shell-bottom a,.shell-bottom button{color:var(--muted)}.shell-bottom [aria-current],.shell-bottom .shell-current-section{color:var(--accentText);background:var(--raised)}.shell-bottom svg{stroke:currentColor}
/* Keep native choice marks compact; their labels provide the click/touch area. */
body label:has(> input:is([type=checkbox], [type=radio])):not(.done-check) {
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  min-height:44px;
  min-width:0;
  margin-block:2px;
  text-align:start;
  overflow-wrap:anywhere;
}
body label > input:is([type=checkbox], [type=radio]) {
  box-sizing:border-box;
  flex:0 0 20px;
  width:20px;
  height:20px;
  min-width:0;
  min-height:20px;
  margin:0;
  padding:0;
}
.calendar-only main{max-width:none!important;padding:18px 24px 36px!important}.calendar-only .overview-heading{display:none}.calendar-only .context-bar{margin:0 0 10px}.calendar-only .context-bar label{font-size:12px;max-width:300px}.calendar-only #status{font-size:12px;color:var(--muted);margin:6px 0}.calendar-only .calendar-panel{margin:10px 0;padding:20px;min-height:72vh}.calendar-options{gap:14px}.calendar-options label{color:var(--muted)}.calendar-top{gap:12px}.calendar-top h2{text-transform:none;font-weight:600}.view-switch{background:var(--raised)}.view-switch button{color:var(--muted)!important}.view-switch button[aria-pressed=true]{background:var(--surface)!important;color:var(--accentText)!important;box-shadow:none}.calendar-legend{color:var(--muted)}.calendar-help{font-size:12px;color:var(--muted);margin:10px 0}.calendar-toolbar-create{display:flex;gap:8px;align-items:center}.calendar-filter{min-width:180px;max-width:240px}.fc{--fc-border-color:var(--border);--fc-page-bg-color:var(--surface);--fc-neutral-bg-color:var(--raised);--fc-neutral-text-color:var(--muted);--fc-today-bg-color:color-mix(in srgb,var(--accent) 8%,var(--surface));--fc-now-indicator-color:var(--accent);--fc-list-event-hover-bg-color:var(--raised);--fc-highlight-color:color-mix(in srgb,var(--focus) 20%,transparent);--fc-small-font-size:.8em;color:var(--text);font-family:var(--font)}.fc a{color:inherit;text-decoration:none}.fc .fc-col-header-cell-cushion{padding:12px 4px;font-size:13px;font-weight:500}.fc .fc-timegrid-slot{height:var(--calendar-slot-height,30px)}.fc .fc-timegrid-axis-cushion,.fc .fc-timegrid-slot-label-cushion{font-size:11px;color:var(--muted)}.fc .fc-daygrid-day-number{padding:5px 8px;margin:3px;min-width:28px;text-align:center}.fc .fc-day-today .fc-daygrid-day-number{background:var(--accent);color:var(--onAccent);border-radius:50%}.fc .fc-daygrid-event{font-size:12px;border-radius:4px;padding:2px 4px;margin-top:3px}.fc .fc-timegrid-event{border-radius:6px;padding:3px;min-height:22px}.fc .fc-event-title{font-weight:600}.fc .fc-event-time{font-variant-numeric:tabular-nums}.fc .fc-event:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.fc .fc-event.cancelled{opacity:.6;text-decoration:line-through}.fc .fc-event.personal{cursor:grab}.fc .fc-popover{background:var(--surface);border:1px solid var(--border);color:var(--text);box-shadow:0 6px 24px var(--shadow)}.fc .fc-popover-header{background:var(--raised)}.fc .fc-scrollgrid{border-radius:8px}.calendar-date-picker{display:flex;align-items:center;gap:8px}.calendar-view-hint{font-size:12px;color:var(--muted)}#calendar-create{width:min(500px,94vw)}#calendar-create .settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}#calendar-create textarea{min-height:80px}#move-summary{padding:16px;background:var(--raised);border-radius:10px;white-space:pre-line}.quick-actions a{background:var(--surface);color:var(--text);border-color:var(--border)}.overview-metrics a,.overview-metrics>div{background:var(--surface);color:var(--text);border-color:var(--border)}.overview-metrics span,.overview-heading p,.agenda-entry p,.empty-state{color:var(--muted)}
@media(max-width:900px){.shell-brand{font-size:17px}.shell-brand img{width:34px;height:34px}.shell-topbar{gap:10px!important;padding:10px 12px!important}.shell-topbar #session-name{display:none}.shell-topbar .shell-theme{margin-left:auto;min-width:92px;font-size:12px;padding:8px}.calendar-only main{padding:14px 10px 100px!important}.calendar-only .calendar-panel{padding:10px}.calendar-only .calendar-options{margin:10px 0}.calendar-filter{max-width:none;flex:1}.calendar-top .view-switch{width:auto}.fc .fc-col-header-cell-cushion{font-size:11px}.fc .fc-daygrid-event{font-size:10px}.fc .fc-timegrid-event{font-size:10px}.calendar-only .context-bar label{min-width:120px}.calendar-only .context-bar #reload{font-size:0;width:44px}.calendar-only .context-bar #reload:before{content:'↻';font-size:20px}}
@media(max-width:480px){.shell-page-name{display:none}.shell-brand span{font-size:15px}.shell-topbar .shell-menu{font-size:0;width:42px;padding:8px}.shell-topbar .shell-menu:before{content:'☰';font-size:20px}.shell-topbar button{font-size:12px;padding:8px}.calendar-top{display:block}.period-controls{margin-bottom:8px}.calendar-toolbar-create{margin:8px 0}.calendar-top .view-switch{display:flex}.calendar-top .view-switch button{flex:1;padding:8px}.calendar-only .context-bar{gap:8px}.calendar-options input[type=date]{max-width:170px}.fc .fc-daygrid-day-number{font-size:12px}.fc .fc-daygrid-event .fc-event-time{display:none}#calendar-create .settings-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.calendar-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:18px;align-items:start}.calendar-layout.sidebar-closed{grid-template-columns:minmax(0,1fr)}.calendar-sidebar{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:16px;position:sticky;top:84px;max-height:calc(100dvh - 100px);overflow:auto}.calendar-sidebar h2{font-size:16px;margin:0 0 16px}.calendar-sidebar .context-bar,.calendar-sidebar .calendar-options,.calendar-sidebar .calendar-legend{display:flex;flex-direction:column;align-items:stretch;gap:12px}.calendar-sidebar label,.calendar-sidebar select,.calendar-sidebar input[type=date],.calendar-sidebar input[type=search]{width:100%;min-width:0!important;max-width:100%!important}.calendar-sidebar label:has(input[type=checkbox]){display:flex;gap:8px;align-items:center}.calendar-sidebar .calendar-legend small{margin:0}.calendar-layout .calendar-panel{margin:0;min-width:0}.calendar-only #error:empty{display:none}.calendar-only .overview-heading+.context-bar{display:none}#mini-calendar{margin-bottom:20px}#mini-calendar .fc-header-toolbar{margin-bottom:8px;gap:4px}#mini-calendar .fc-toolbar-title{font-size:13px}#mini-calendar .fc-button{background:var(--surface);color:var(--text);border-color:var(--border);min-height:44px;min-width:44px;padding:3px;font-size:12px}#mini-calendar .fc-daygrid-day-frame{min-height:24px}#mini-calendar .fc-daygrid-day-top{justify-content:center}#mini-calendar .fc-daygrid-day-number{font-size:11px;padding:2px;margin:0}#mini-calendar .fc-col-header-cell-cushion{font-size:10px;padding:3px}#mini-calendar .fc-scrollgrid,#mini-calendar td,#mini-calendar th{border:0}#mini-calendar .fc-daygrid-day-events{display:none}#mini-calendar .mini-selected{box-shadow:inset 0 0 0 1px var(--focus);border-radius:6px}.calendar-sidebar [hidden]{display:none!important}.calendar-only .shell-tools{margin-top:24px}.calendar-help{max-width:720px}
@media(max-width:1100px){.calendar-layout{display:block;position:relative}.calendar-sidebar{position:absolute;left:0;top:56px;z-index:25;width:260px;max-height:70dvh;box-shadow:0 12px 40px var(--shadow)}.calendar-layout .calendar-panel{min-height:70vh}}

/* Keep navigation legible on every page and provide a calm, optional transition. */
.shell-tabs a[aria-current],.workspace-shell .shell-tabs a[aria-current]{background:var(--raised);color:var(--accentText);font-weight:700}
@media(max-width:480px){.calendar-top .view-switch button{font-size:12px;white-space:nowrap;padding:8px 3px}}

.calendar-sidebar{scrollbar-width:thin;scrollbar-color:var(--control) transparent;overscroll-behavior:contain}.calendar-sidebar-heading{display:flex;align-items:start;justify-content:space-between;gap:8px}.calendar-sidebar-close{display:none}
@media(max-width:1100px){.calendar-sidebar-close{display:inline-flex;align-items:center;min-height:44px;padding:6px 10px!important;font-size:13px}}
/* Today uses the accent text color; selection keeps an independent outline. */
#mini-calendar .fc-daygrid-day.mini-selected{box-shadow:none}
#mini-calendar .fc-daygrid-day.fc-day-today{background:transparent}
#mini-calendar .fc-daygrid-day-number{display:grid;place-items:center;width:28px;height:28px;min-width:28px;padding:0;margin:0;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--text);font-size:12px;line-height:1;text-decoration:none}
#mini-calendar .fc-daygrid-day:not(.mini-selected):not(.fc-day-today) .fc-daygrid-day-number:hover{background:var(--raised)}
#mini-calendar .fc-day-other:not(.fc-day-today) .fc-daygrid-day-number{color:var(--muted)}
#mini-calendar .fc-daygrid-day.fc-day-today .fc-daygrid-day-number{background:transparent;color:var(--accentText);font-weight:700;text-shadow:none}
#mini-calendar .fc-daygrid-day.mini-selected .fc-daygrid-day-number{background:transparent;border-color:var(--focus)}
@media(max-width:480px){.fc .fc-col-header-cell-cushion{font-size:10px;padding:8px 1px;white-space:normal;overflow-wrap:anywhere}}

.calendar-help summary{cursor:pointer;min-height:40px;display:inline-flex;align-items:center;gap:6px;color:var(--muted)}
.calendar-help summary:focus-visible{outline:3px solid var(--control);outline-offset:3px}
.calendar-help p{margin:4px 0 12px;max-width:50em}

/* Platform administration has a distinct context, without changing account theme. */
body.platform-workspace .shell-topbar{border-bottom:3px solid #438979}
body.platform-workspace #platform{border-top:4px solid #438979}
body.platform-workspace .platform-eyebrow{color:var(--text);font-weight:700;letter-spacing:.05em;font-size:12px}
/* Keep navigation and the create action together on narrow screens. Zoom stays available in filters and by pinch. */
@media(max-width:480px){
 .calendar-only .calendar-top{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;gap:8px}
 .calendar-only .period-controls{display:contents}
 .calendar-only #calendar-sidebar-toggle{grid-column:1;grid-row:1}
 .calendar-only #previous{grid-column:2;grid-row:1}
 .calendar-only #today{grid-column:3;grid-row:1;white-space:nowrap;padding:8px 6px;font-size:13px}
 .calendar-only #next{grid-column:4;grid-row:1}
 .calendar-only #period{grid-column:1 / 3;grid-row:2;margin:0;font-size:16px}
 .calendar-only .calendar-toolbar-create{grid-column:3 / 5;grid-row:2;margin:0;justify-self:end}
 .calendar-only #zoom-out,.calendar-only #zoom-in{display:none!important}
 .calendar-only .calendar-top .view-switch{grid-column:1 / -1;grid-row:3;width:100%}
}
/* A seven-day time grid needs room for readable event names on a phone. */
@media(max-width:600px){
 .calendar-only #calendar{overflow-x:auto;overscroll-behavior-x:contain}
 .calendar-only .fc-timeGridWeek-view{min-width:600px}
}

#week-scroll-hint{margin:6px 0;color:var(--muted);font-size:12px}
/* Disabled actions remain readable in either theme without looking active. */
.workspace-shell button:disabled,button:disabled{opacity:1;background:var(--raised)!important;color:var(--muted)!important;border-color:var(--border)!important;cursor:not-allowed}

/* Platform and organization workspaces share typography, surfaces and controls. */
body.service-workspace {
  margin:0; padding:0; background:var(--bg); color:var(--text);
  font:15px/1.5 var(--font); min-height:100vh;
}

.service-workspace *, .service-workspace *::before { box-sizing:border-box }
.service-header { background:var(--surface); border-bottom:1px solid var(--border) }
.service-top,.service-navigation,body.service-workspace main {
  max-width:1160px; width:100%; margin:0 auto; padding-inline:clamp(16px,4vw,48px);
}
.service-top { min-height:68px; display:flex; align-items:center; gap:18px }
.service-top .shell-brand { font-weight:750; text-decoration:none }
.service-top strong { color:var(--accentText); font-size:14px; border-left:1px solid var(--border); padding-left:18px }
a.cabinet-switch {
  display:inline-flex; align-items:center; justify-content:center; padding:6px 12px; min-height:44px;
  border:1px solid var(--control); border-radius:8px; color:var(--text); font-size:14px;
  font-weight:600; text-decoration:none; white-space:nowrap;
}
a.cabinet-switch:hover { background:var(--raised) }
.service-top .cabinet-switch { margin-left:auto }
.service-navigation { display:flex; gap:clamp(12px,3vw,32px); overflow-x:auto }
.service-navigation a { padding:12px 0; color:var(--muted); white-space:nowrap; text-decoration:none; border-bottom:3px solid transparent }
.service-navigation a:hover { color:var(--text) }
.service-navigation a[aria-current] { color:var(--accentText); border-color:var(--accent); font-weight:650 }
body.service-workspace main { padding-block:32px 64px; background:var(--bg); color:var(--text) }
.service-workspace h1 { font-size:clamp(26px,4vw,38px); margin:0 0 20px; line-height:1.18; letter-spacing:-.035em }
.service-workspace h2 { font-size:21px; margin:0 0 14px; letter-spacing:-.025em }
.service-overview section { background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:clamp(16px,2.5vw,26px); margin-bottom:18px; min-width:0 }
.service-overview #metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px }
.service-overview #metrics > div { color:var(--muted) }
.service-overview #metrics strong { display:block; color:var(--accentText); font-size:clamp(28px,4vw,42px); line-height:1.2; font-variant-numeric:tabular-nums }
.service-directories { display:grid; grid-template-columns:1fr 1fr; gap:18px; align-items:start }
.service-overview details { padding:9px 0; border-top:1px solid var(--border) }
.service-overview summary { cursor:pointer; padding:10px 0; overflow-wrap:anywhere }
.service-overview fieldset { border:1px solid var(--border); border-radius:8px; margin:14px 0; padding:12px }
.service-overview fieldset label { display:flex; gap:8px; align-items:center; min-height:40px }
.service-overview #orgs button { width:100%; text-align:left; margin-bottom:6px; overflow-wrap:anywhere }
.service-overview #health div { color:var(--muted); padding:6px 0; border-top:1px solid var(--border) }
.service-overview #health p { font-weight:650 }
.service-overview #detail button,.service-overview details button { margin:4px 6px 4px 0 }
body.service-workspace #platform { border-color:var(--border); border-top-color:var(--accent) }
@media(max-width:700px){
 .service-directories { grid-template-columns:1fr; gap:0 }
 .service-top { flex-wrap:wrap; gap:4px 10px; padding-block:10px }
 .service-top strong { order:3; width:100%; padding:0; border:0 }
 .service-navigation { gap:18px }
 .service-overview #metrics { grid-template-columns:1fr; gap:0 }
 .service-overview #metrics > div { display:flex; flex-direction:row-reverse; justify-content:space-between; align-items:center; gap:12px; padding:8px 0 }
 .service-overview #metrics > div + div { border-top:1px solid var(--border) }
}
@media(max-width:650px){
 .shell-topbar:has(.cabinet-switch) .shell-brand span { display:none }
 .workspace-shell .shell-topbar:has(.cabinet-switch) { gap:6px!important; padding-inline:8px!important }
 .shell-topbar:has(.cabinet-switch) .shell-theme { min-width:0; font-size:12px }
 .shell-topbar .cabinet-switch { font-size:12px; padding-inline:8px }
}
@media(max-width:480px){
 .service-navigation { display:grid; grid-template-columns:1fr 1fr; gap:0 12px }
 .service-navigation a { padding:10px 0; min-height:44px }
}
.service-overview [hidden]{display:none!important}
.service-navigation{flex-wrap:wrap;column-gap:clamp(12px,2vw,24px)}
.service-overview :is(#employees,#orgs) article{padding:14px 0;border-top:1px solid var(--border);background:transparent}
.service-overview :is(#employees,#orgs) article h2{margin:0;font-size:18px}
.service-overview #orgs article button{width:auto;margin-right:8px}

/* The service console uses the same left edge for navigation and operational data. */
@media(min-width:1100px) {
  .service-top,.service-navigation,body.service-workspace main:not(#panel-main) {
    max-width:none;
    padding-inline:clamp(24px,2vw,40px);
  }
  .service-overview :is(#orgs,#employees,#accounts,#storage-list) {
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(min(100%,24rem),1fr));
    gap:16px 24px;
    align-items:start;
  }
  .service-overview:has(#detail:not([hidden])) {
    display:grid;
    grid-template-columns:minmax(21rem,1fr) minmax(0,2fr);
    column-gap:24px;
    align-items:start;
  }
  .service-overview:has(#detail:not([hidden])) > :is(h1,#error) {grid-column:1/-1}
  .service-overview #storage-page {
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:12px 24px;
    align-items:start;
  }
  .service-overview #storage-page > :is(h2,#storage-list,#storage-more) {grid-column:1/-1}
  .service-overview #storage-list > article:only-child {
    grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
    align-items:start;gap:8px 24px;
  }
  .service-overview #storage-list > article:only-child > h3 {grid-column:1/-1;margin-block:0}
  .service-overview #storage-list > article:only-child > p {margin-block:0 8px}
  .service-overview #storage-list > article:only-child > details:first-of-type {grid-column:1}
  .service-overview #storage-more {justify-self:start}
  .service-overview #health {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(min(100%,24rem),1fr));
    gap:0 24px;
  }
  .service-overview #health p {grid-column:1/-1}
  .service-workspace :is(#detail,#server-health,#code-policy,#platform) p {max-inline-size:75ch}
  body.service-workspace #platform {margin:0;padding:0;border:0;background:transparent}
  .service-workspace #platform-list p {
    max-inline-size:none;overflow-wrap:anywhere;
    display:flex;align-items:center;justify-content:space-between;gap:16px;
    padding:12px 0;margin:0;border-bottom:1px solid var(--border);
  }
  .service-workspace #platform-list button {flex:none}

  .service-workspace #platform:has(#terms:not([hidden])) {
    display:grid;
    grid-template-columns:minmax(0,1.5fr) minmax(20rem,1fr);
    column-gap:32px;
    align-items:start;
  }
  .service-workspace #platform > :is(h1,p) {grid-column:1/-1}
  .service-workspace #platform-list {grid-column:1;grid-row:3}
  .service-workspace #platform-more {grid-column:1;grid-row:4;justify-self:start}
  .service-workspace #terms {grid-column:2;grid-row:3/span 2;max-width:40rem;min-width:0}
  .service-workspace #terms :is(input:not([type=checkbox]),select) {max-width:100%}
  .service-workspace #detail select {max-width:min(100%,32rem)}
}
.service-overview :is(article,details,fieldset,#detail,#storage-list,#orgs) {min-width:0;overflow-wrap:anywhere}

/* iOS zooms the visual viewport when focusing text controls smaller than 16px. */
@media (max-width:700px){
 body.workspace-shell :is(dialog,.shell-search,#compose) :is(input:not([type=checkbox]):not([type=radio]),textarea,select){font-size:16px}
}

.task-card-heading {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
}
.workspace-shell .notice {border-radius:12px; overflow-wrap:anywhere}
.workspace-shell details.shell-tools {
  background:transparent;
  border:0;
  border-top:1px solid var(--border);
  border-radius:0;
  padding:0;
}
.shell-tools > summary {padding-block:12px; min-height:44px}
.task-card-heading {padding:4px 8px; border-radius:12px}
.task-card-heading h2 { min-width:0; margin: 0; overflow-wrap: anywhere; }
.task-card-heading button { margin:0; flex-shrink: 0; min-height: 44px; }

h1,h2,h3,.workspace-shell :is(h1,h2,h3),.workspace-panel .overview-metrics strong,
.calendar-only .fc-daygrid-day-number,.calendar-only .fc-timegrid-slot-label-cushion {
  font-family:var(--heading-font);
}
h1,h2,.workspace-shell :is(h1,h2) {letter-spacing:-.035em}
.calendar-only .fc-timegrid-slot-label-cushion,.overview-metrics strong {
  font-variant-numeric:tabular-nums;
}
.workspace-shell .shell-bottom :is(a,button),button,input,select,textarea {
  font-family:var(--font);
}

/* Keep text-entry surfaces dense; the edge and backdrop mark the active layer. */
body.workspace-panel dialog:is(#card,#display-settings,#event-detail,#calendar-create) {
  border-color:var(--control);
  border-radius:22px;
}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  body.workspace-panel dialog:is(#card,#display-settings,#event-detail,#calendar-create) {
    background:var(--glass-light),var(--glass-face);
    -webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);
    box-shadow:inset 0 1px rgb(255 255 255 / .32),0 12px 36px var(--shadow);
  }
}
@media(max-width:600px){
  body.workspace-panel dialog:is(#card,#display-settings,#event-detail,#calendar-create)[open] {
    inset:auto 0 0;margin:0 auto;width:100%;max-width:100%;max-height:92dvh;
    padding:16px max(16px,env(safe-area-inset-right,0px)) 16px max(16px,env(safe-area-inset-left,0px));
    border-radius:22px 22px 0 0;
  }
}
@media(max-width:600px) and (prefers-reduced-motion:no-preference){
  body.workspace-panel dialog:is(#card,#display-settings,#event-detail,#calendar-create)[open] {
    animation:panel-arrive 180ms cubic-bezier(.2,.75,.25,1);
  }
  @keyframes panel-arrive {from{opacity:.78}}
}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more),(forced-colors:active){
  body.workspace-panel dialog:is(#card,#display-settings,#event-detail,#calendar-create) {
    background:var(--surface);-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none;
  }
}

#launch-screen {
  position:fixed; inset:0; z-index:120; display:grid; place-items:center;
  box-sizing:border-box; padding:24px; background:var(--bg); color:var(--text);
  text-align:center; overflow:auto;
}
.launch-content {width:min(100%,26rem); position:relative; padding-block:16px 88px}
.launch-content img {display:block; margin:auto}
.launch-slogan {margin:16px 0 0; font:700 clamp(20px,4vw,26px)/1.3 var(--heading-font); letter-spacing:-.025em}
.launch-tip {margin:16px auto 0; max-width:34ch; font:400 15px/1.5 var(--font); color:var(--muted)}
.launch-tip,.launch-retry {position:absolute; inset-inline:0}
.launch-retry {bottom:-2.5rem; margin:auto; width:fit-content; padding:12px; color:var(--accentText)}
@media (prefers-reduced-motion:no-preference) {
  .launch-slogan span {display:inline-block; animation:launch-wave 440ms cubic-bezier(.2,.72,.22,1) both}
  .launch-slogan span:nth-child(2) {animation-delay:50ms}
  .launch-slogan span:nth-child(3) {animation-delay:100ms}
  .launch-slogan span:nth-child(4) {animation-delay:150ms}
  @keyframes launch-wave {
    from {opacity:0;transform:translateY(.38em) rotate(2deg)}
    68% {opacity:1;transform:translateY(-.08em) rotate(-.6deg)}
    to {opacity:1;transform:none}
  }
}

/* One persistent selection treatment for segmented controls and workspace tabs. */
.workspace-shell :is(.category-switch,.scope-switch,.task-switch,.group-tree) button[aria-pressed="true"],
.shell-tabs a[aria-current]:not([aria-current="false"]) {
  background:var(--accentText)!important;
  color:var(--bg)!important;
  font-weight:700;
  box-shadow:none;
}
@media(forced-colors:active) {
  .workspace-shell :is(.category-switch,.scope-switch,.task-switch,.group-tree) button[aria-pressed="true"],
  .shell-tabs a[aria-current]:not([aria-current="false"]) {
    border:2px solid ButtonText!important;
    text-decoration:underline;
  }
}

/* The shell and its embedded pages are separate documents. Give controls in
   either document the same tap treatment, including clicks on their icons. */
:where(a[href],button,summary,select,label,[role=button],[role=tab],input[type=button],input[type=submit],input[type=checkbox],input[type=radio]) {
  -webkit-tap-highlight-color:transparent;
}
@media (prefers-reduced-transparency:no-preference) and (prefers-contrast:no-preference) and (forced-colors:none) {
  :is(.category-switch,.scope-switch,.task-switch,#communication-tabs) {
    background-image:linear-gradient(155deg,color-mix(in srgb,var(--edge) 16%,transparent),transparent 55%)!important;
    box-shadow:inset 0 1px 0 var(--edge);
  }
}
/* The reflection rides over the existing fill without changing its perimeter. */
body:not(.workspace-host) :is(button:enabled,a[href],summary,select:enabled,[role=button],[role=tab]).touch-pressed {
  background-image:linear-gradient(112deg, transparent 36%, rgb(255 225 197 / .16) 43%, rgb(255 255 255 / .70) 49%, rgb(255 241 224 / .22) 54%, transparent 63%)!important;
  background-size:210% 100%!important;
  background-position:50% 50%;
  background-repeat:no-repeat;
}
@media(prefers-reduced-motion:no-preference) {
  .touch-pressed {animation:control-glint 250ms ease-out both}
  @keyframes control-glint {
    from {background-position:95% 50%}
    to {background-position:5% 50%}
  }
}
@media (prefers-reduced-transparency:reduce),(prefers-contrast:more),(forced-colors:active) {
  body:not(.workspace-host) :is(button:enabled,a[href],summary,select:enabled,[role=button],[role=tab]).touch-pressed {
    background-image:none!important;
    animation:none;
    text-decoration:underline;
  }
}
@media (forced-colors:active) {
  :where(body:not(.workspace-host)) :is(a[href],button:enabled,summary,[role=button],[role=tab]):is(:active,.touch-pressed) {text-decoration:underline}
}

/* Light can travel through the perimeter; the labels stay on the front face. */
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
  .workspace-panel :is(.category-switch,.scope-switch,.task-switch,#communication-tabs),
  body.workspace-host.workspace-shell > .shell-bottom,
  .workspace-panel.calendar-only .calendar-layout .calendar-sidebar {
    background-color:var(--lens-track);
    background-image:linear-gradient(155deg,color-mix(in srgb,var(--edge) 23%,transparent),transparent 45%,color-mix(in srgb,var(--accent) 8%,transparent))!important;
    -webkit-backdrop-filter:blur(8px) saturate(1.16);
    backdrop-filter:var(--lens-filter,blur(8px)) saturate(1.16);
    box-shadow:inset 0 1px var(--edge),inset 0 -1px color-mix(in srgb,var(--edge) 35%,transparent);
  }
  .workspace-panel.calendar-only .calendar-layout .calendar-sidebar {
    background-color:color-mix(in srgb,var(--surface) 87%,transparent);
    backdrop-filter:var(--lens-filter,blur(6px)) blur(2px) saturate(1.16);
  }
}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more),(forced-colors:active) {
  .workspace-panel :is(.category-switch,.scope-switch,.task-switch,#communication-tabs),
  body.workspace-host.workspace-shell > .shell-bottom,
  .workspace-panel.calendar-only .calendar-layout .calendar-sidebar {
    background:var(--raised)!important;
    -webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none;
  }
}

/* On a flat calendar backdrop the reflected light gives glass a visible face. */
:is(.category-switch,.scope-switch,.task-switch) {position:relative;isolation:isolate}
.segment-reflection {
  position:absolute;pointer-events:none;opacity:0;z-index:1;border-radius:12px;
  transform-origin:left center;
  background:linear-gradient(116deg,transparent 5%,rgb(255 224 198 / .26) 28%,rgb(255 255 255 / .62) 44%,rgb(255 239 222 / .16) 61%,transparent 82%);
}
@media (prefers-contrast:no-preference) and (forced-colors:none) {
  .workspace-panel :is(.category-switch,.scope-switch,.task-switch,#communication-tabs),
  body.workspace-host.workspace-shell > .shell-bottom {
    background-image:radial-gradient(ellipse 64% 124% at 14% -34%,rgb(255 213 180 / .45),transparent 90%),linear-gradient(118deg,transparent 25%,rgb(255 244 235 / .15) 45%,transparent 61%)!important;
  }
  .workspace-panel :is(.task-switch,.category-switch,.scope-switch) button[aria-pressed=true]:not(.touch-pressed),
  .workspace-panel #communication-tabs [aria-current=page]:not(.touch-pressed) {
    background-image:linear-gradient(163deg,rgb(255 255 255 / .42),transparent 41%,transparent 67%,rgb(255 215 182 / .24))!important;
  }
}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more),(forced-colors:active) {
  .workspace-panel :is(.category-switch,.scope-switch,.task-switch,#communication-tabs),
  body.workspace-host.workspace-shell > .shell-bottom,
  .workspace-panel :is(.task-switch,.category-switch,.scope-switch) button[aria-pressed=true]:not(.touch-pressed),
  .workspace-panel #communication-tabs [aria-current=page]:not(.touch-pressed) {background-image:none!important}
  .segment-reflection {display:none}
}
@media(prefers-reduced-motion:reduce) {.segment-reflection {display:none}}

/* A fixed, scrollable settings panel needs a self-painted fallback: sampling
   the iframe backdrop in WebKit can expose a differently colored compositor tile. */
.workspace-panel.calendar-only .calendar-layout .calendar-sidebar:not(.refracts-backdrop) {
  background:var(--surface)!important;
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
  box-shadow:inset 0 1px var(--edge);
}

.workspace-shell dialog :is(.member-dialog-heading,.task-card-heading,.calendar-dialog-heading,.feed-heading,.guide-heading) {
  align-items:center;gap:12px;padding:8px 12px;border:0;border-radius:14px;
  background:var(--surface);color:var(--text);top:0;
}
.workspace-shell dialog :is(.member-dialog-heading,.task-card-heading,.calendar-dialog-heading,.feed-heading,.guide-heading) h2 {
  margin:0;min-width:0;line-height:1.25;overflow-wrap:anywhere;
}
#edit .planning-section {
  min-width:0;margin:16px 0;padding:10px 16px 14px;
  border:1px solid var(--border);border-radius:16px;background:var(--surface);
}
#edit .planning-section>legend {padding:0 6px;font-weight:700}
#edit details.planning-section {padding-block:0}
#edit details.planning-section>summary {min-height:46px;align-content:center;font-weight:650;cursor:pointer}
#edit details.planning-section[open] {padding-bottom:12px}
@media(prefers-reduced-motion:no-preference){
  @supports (transition-behavior:allow-discrete) {
    .workspace-shell dialog {
      transition:opacity 140ms ease-out,translate 180ms cubic-bezier(.22,.9,.32,1),display 180ms allow-discrete,overlay 180ms allow-discrete;
    }
    .workspace-shell dialog:not([open]) {opacity:0;translate:0 8px}
    @starting-style {.workspace-shell dialog[open]{opacity:0;translate:0 10px}}
    .workspace-shell dialog::backdrop {transition:opacity 160ms,display 160ms allow-discrete,overlay 160ms allow-discrete}
    .workspace-shell dialog:not([open])::backdrop {opacity:0}
    @starting-style {.workspace-shell dialog[open]::backdrop{opacity:0}}
  }
  @supports selector(details::details-content) {
    #edit details.planning-section::details-content {transition:opacity 160ms,content-visibility 160ms allow-discrete}
    #edit details.planning-section:not([open])::details-content {opacity:0}
  }
}

/* The warm light behind the workspace gives translucent surfaces depth. */
@media (prefers-contrast:no-preference) and (forced-colors:none) {
  body.workspace-panel {
    background-image:radial-gradient(ellipse 62rem 32rem at 12% 0%,color-mix(in srgb,var(--accent) 12%,transparent),transparent 72%);
    background-repeat:no-repeat;
  }
  @supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
    body.workspace-panel dialog[open],
    body.workspace-panel .agenda-panel,
    body.workspace-panel.calendar-only .calendar-panel {
      background:var(--glass-light),var(--glass-face);
      -webkit-backdrop-filter:blur(16px) saturate(1.12);
      backdrop-filter:blur(16px) saturate(1.12);
      box-shadow:inset 0 1px var(--edge),0 6px 22px var(--shadow);
    }
    .workspace-panel.calendar-only .calendar-layout .calendar-sidebar {
      background-color:var(--glass-face);
    }
    .workspace-panel.calendar-only .calendar-layout .calendar-sidebar:not(.refracts-backdrop) {
      background:var(--glass-light),var(--surface)!important;
    }
  }
}
@media (prefers-reduced-transparency:reduce),(prefers-contrast:more),(forced-colors:active) {
  body.workspace-panel {background-image:none}
  body.workspace-panel dialog[open],
  body.workspace-panel.calendar-only .calendar-panel,
  body.workspace-panel .agenda-panel,
  body.workspace-panel.calendar-only .calendar-layout .calendar-sidebar {
    background:var(--surface)!important;box-shadow:none;
    -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
  }
}

.needs-correction {outline:2px solid var(--danger)!important;outline-offset:2px}
.field-correction {margin:.35rem 0 .75rem;color:var(--danger);font-weight:600}

body a.member-name-link,body .directory-group li a.member-name-link {
  color:var(--text);font-weight:600;padding:0;text-decoration:none;overflow-wrap:anywhere;
}
body a.member-name-link:is(:hover,:focus-visible),body .directory-group li a.member-name-link:is(:hover,:focus-visible) {
  color:var(--accentText);text-decoration:underline;text-underline-offset:.18em;
}

.person-identity {display:inline-flex;max-width:100%;min-width:0;align-items:center;gap:.5em;vertical-align:middle;text-align:start}
.person-identity > span:last-child {min-width:0;overflow-wrap:anywhere}
.person-avatar {position:relative;display:inline-grid;place-items:center;flex:none;width:1.85rem;height:1.85rem;border-radius:50%;overflow:hidden;background:var(--raised);color:var(--text);font:600 .72rem/1 system-ui}
.person-avatar img {position:absolute;inset:0;width:100%;height:100%;border-radius:inherit;object-fit:cover}
.directory-group li > span:first-child {flex:1 1 12rem;min-width:0}
.directory-group .person-identity {min-height:44px}
.chat-row .person-avatar {width:2.5rem;height:2.5rem}

/* Long headings and actions must reflow when text size is increased. */
html[data-public-flow] body {overflow-wrap:anywhere}
html[data-public-flow] :is(button,fieldset,legend) {min-inline-size:0;max-inline-size:100%;box-sizing:border-box}

.workspace-panel :is(h1,h2,h3,h4,legend) {overflow-wrap:anywhere}
