
    #dayroom{--dr-bg:light-dark(#f7f7f2,#181b19);--dr-panel:light-dark(#ffffff,#222723);--dr-ink:light-dark(#243c34,#edf2e9);--dr-muted:light-dark(#67766c,#b4c0b6);--dr-line:light-dark(#dde3d9,#3c473e);--dr-soft:light-dark(#ecf1e7,#303b30);--dr-accent:#cfef90;--dr-map:#253f36;--dr-floor:#cfb897;--dr-wall:#8b9d88;font-family:'Manrope',system-ui,sans-serif;font-size:14px;line-height:1.45;color:var(--dr-ink);background:var(--dr-bg);border:1px solid var(--dr-line);border-radius:16px;overflow:hidden;position:relative;isolation:isolate}
    #dayroom *{box-sizing:border-box}#dayroom :where(button,input,select){font:inherit}#dayroom :where(button){cursor:pointer;color:inherit}#dayroom button:disabled{cursor:default;opacity:.5}#dayroom :where(button):hover:not(:disabled,[aria-disabled=true]){filter:brightness(.96)}#dayroom :where(button):active:not(:disabled,[aria-disabled=true]){translate:0 1px}#dayroom [hidden]{display:none!important}#dayroom h1,#dayroom h2,#dayroom h3,#dayroom p{margin:0}#dayroom h1{font-size:18px;font-weight:500}#dayroom h2{font-size:16px;font-weight:500}#dayroom h3{font-size:14px;font-weight:500}#dayroom .dr-muted{color:var(--dr-muted);font-size:12px}#dayroom #dr-canvas{image-rendering:pixelated;touch-action:manipulation;cursor:crosshair}#dayroom .dr-walkkeys{display:flex;gap:4px}#dayroom .dr-walkkeys button{background:var(--dr-panel);border:1px solid var(--dr-line);width:32px;height:32px;border-radius:4px;font-size:12px}#dayroom .dr-messages{padding:20px 16px;min-height:235px;flex:1;display:flex;flex-direction:column;gap:20px}#dayroom .dr-msg{display:flex;gap:8px;align-items:flex-start}#dayroom .dr-msg canvas{width:24px;height:36px;flex:0 0 24px;image-rendering:pixelated;background:var(--dr-soft);border-radius:4px}#dayroom .dr-msgtext{min-width:0;overflow-wrap:anywhere;font-size:12px}#dayroom .dr-msgname{display:flex;gap:8px;align-items:baseline;margin-bottom:4px;font-size:12px;font-weight:500}#dayroom .dr-msgname time{font-size:11px;color:var(--dr-muted)}#dayroom .dr-system{font-size:12px;color:var(--dr-muted);text-align:center}#dayroom .dr-modal p{font-size:12px;color:var(--dr-muted);margin-bottom:16px}#dayroom .dr-field{display:grid;gap:4px;font-size:12px;margin-bottom:12px}#dayroom .dr-field input,#dayroom .dr-field select{width:100%}#dayroom .dr-field input[type=color]{height:36px;padding:4px}#dayroom .dr-error{color:light-dark(#a13636,#f4b3ab);font-size:12px;margin-bottom:12px}#dayroom .dr-roomline{display:flex;align-items:center;justify-content:space-between;padding:8px 0;gap:12px;font-size:12px}#dayroom .dr-check{display:flex;gap:8px;align-items:center;font-size:12px;margin:12px 0}
    @media(max-width:560px){#dayroom .dr-overlay{padding:24px 8px}}
    @media(prefers-reduced-motion:reduce){#dayroom *{scroll-behavior:auto}}
    #dayroom .dr-walkkeys button{width:40px;height:40px;touch-action:none;user-select:none}
    @media(pointer:coarse){#dayroom .dr-walkkeys button{width:44px;height:44px}}

#dayroom .dr-messages{flex:1;min-height:80px;overflow:auto;padding:16px;display:flex;flex-direction:column;gap:16px}
#dayroom .dr-msgtext{min-width:0;overflow-wrap:anywhere;white-space:pre-wrap}#dayroom .dr-chat-image{display:block;max-width:100%;max-height:180px;object-fit:contain;margin:8px 0}#dayroom .dr-msgtext a{display:block;color:var(--dr-ink)}
#dayroom #dr-mention-list{display:flex;gap:4px;flex-wrap:wrap;margin:8px 0}#dayroom #dr-reply-draft,#dayroom #dr-attachment-draft{font-size:12px;overflow-wrap:anywhere}#dayroom .dr-quote{display:block;width:100%;text-align:left;padding:8px;background:var(--dr-soft);color:var(--dr-ink);border:1px solid var(--dr-line)}#dayroom .dr-mentioned{display:block;font-size:12px;color:var(--dr-ink);background:var(--dr-soft);padding:4px;margin-top:4px}#dayroom #dr-chat-error{font-size:12px}


  
#dayroom .dr-sidebar .dr-field{padding:8px;font-size:12px}#dayroom .dr-sidebar .dr-field input{min-width:0;width:100%;box-sizing:border-box}

html,body{margin:0;background:#181d19;color:#eef2e7;font-family:system-ui,sans-serif}html:has(#dayroom[data-ui-mode]),html:has(#dayroom[data-ui-mode]) body{background:var(--dr-page-bg,light-dark(#F1F0EA,#0B0E0D));color:light-dark(#151E19,#EDF3EF)}*{box-sizing:border-box}body{padding:16px}#dayroom{max-width:1600px;margin:auto}#dayroom .dr-messages{flex:1;overflow:auto;min-height:120px}#dayroom :where(textarea){font:inherit}#dayroom textarea{resize:vertical;min-height:72px}#dayroom .dr-messages article{padding:12px;overflow-wrap:anywhere}#dayroom .dr-auth{padding:48px 24px;max-width:520px;margin:40px auto;background:var(--dr-panel);border:1px solid var(--dr-line);border-radius:16px}#dayroom .dr-auth h1{font-size:28px}#dayroom .dr-auth form{display:grid;gap:16px}#dayroom .dr-error:empty{display:none}#dayroom [hidden]{display:none!important}#dayroom #dr-member-search{width:100%}#dayroom .dr-pending{font-size:12px;overflow-wrap:anywhere}#dayroom .dr-messages button{padding:4px 8px}#dayroom .dr-muted{overflow-wrap:anywhere}#dayroom input[type=file]{max-width:100%}
@media(max-width:1100px){body{padding:8px}}@media(max-width:850px){#dayroom .dr-auth{margin:16px auto;padding:24px}}
@media(min-width:851px){body{padding:12px}#dayroom .dr-messages{min-height:50px}}
#dayroom .dr-field textarea{width:100%}#dayroom .dr-field input{max-width:100%}


/* Shared validation, including onboarding and dynamically opened settings. */
#dayroom .dr-field-error{display:block;flex-basis:100%;font-family:inherit;font-size:14px;font-weight:400;line-height:1.5;color:var(--dr-ink);background:var(--dr-soft);border:1px solid var(--dr-line);border-radius:8px;padding:10px 12px;margin-top:8px;letter-spacing:normal;overflow-wrap:anywhere}
#dayroom input[aria-invalid="true"],#dayroom textarea[aria-invalid="true"],#dayroom select[aria-invalid="true"]{border-color:var(--dr-accent);outline:2px solid var(--dr-accent);outline-offset:2px}#dayroom article:focus{outline:2px solid var(--dr-accent);outline-offset:-2px}#dayroom #dr-search-form{margin-bottom:16px}#dayroom #dr-notification-results{margin-top:12px}
#dayroom #dr-canvas{cursor:crosshair}

/* Conversation bubbles preserve the office palette and make ownership clear. */


/* Conversation call history stays readable without relying on audio. */
#dayroom #dr-conversation-calls{white-space:nowrap;min-height:36px;flex-shrink:0}
/* Narrow phones: the conversation's name needs the room, and the header's … menu already lists Calls & notes. */
@media(max-width:400px){#dayroom #dr-conversation-calls{display:none}}
#dayroom .dr-chathead .dr-team-tools{flex-wrap:wrap;gap:8px}
#dayroom .dr-page[data-page="calls"]>.dr-page-head{padding:24px 28px}
#dayroom .dr-page[data-page="calls"]>.dr-page-body{padding:24px 28px 32px;display:grid;gap:24px}
#dayroom #dr-call-history{display:grid;gap:20px;min-width:0}
#dayroom .dr-call-record{display:flex;flex-direction:column;gap:16px;min-width:0;padding:24px;border:1px solid var(--dr-line);border-radius:16px;background:var(--dr-soft)}
#dayroom .dr-call-record-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
#dayroom .dr-call-record-heading h3{margin:0;font-size:17px;line-height:1.4;font-weight:600}
#dayroom .dr-call-outcome{padding:6px 10px;border:1px solid var(--dr-line);border-radius:8px;font-size:12px;line-height:1.4;white-space:nowrap}
#dayroom .dr-call-record-date{display:block;font-size:14px;line-height:1.6;color:var(--dr-muted)}
#dayroom .dr-call-record-people{display:grid;gap:6px}
#dayroom .dr-call-record-label{font-size:12px;color:var(--dr-muted)}
#dayroom .dr-call-record-people p{margin:0;font-size:14px;line-height:1.7;overflow-wrap:anywhere}
#dayroom .dr-call-record-empty{margin:4px 0 0;padding-top:16px;border-top:1px solid var(--dr-line);font-size:13px;line-height:1.6;color:var(--dr-muted)}
#dayroom .dr-call-summary{margin:4px 0 0;border-top:1px solid var(--dr-line)}
#dayroom .dr-call-summary summary{display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;padding:18px 0 0;min-height:44px;box-sizing:border-box;font-weight:600;list-style:none}
#dayroom .dr-call-summary summary::-webkit-details-marker{display:none}
#dayroom .dr-call-summary-toggle::after{content:'+';font-size:20px;font-weight:400}
#dayroom .dr-call-summary[open] .dr-call-summary-toggle::after{content:'−'}
#dayroom .dr-call-summary-content{display:grid;gap:20px;padding-top:20px}
#dayroom .dr-call-summary-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.8;margin:0}
#dayroom .dr-call-summary-content .dr-hint{margin:0;line-height:1.6}
@media(max-width:600px){#dayroom .dr-page[data-page="calls"]>.dr-page-head{padding:20px}#dayroom .dr-page[data-page="calls"]>.dr-page-body{padding:20px 16px 24px}#dayroom .dr-call-record{padding:20px;gap:14px}}
#dayroom .dr-call-transcript{flex:0 1 auto;max-height:24vh;overflow:auto;padding:12px 20px;border:1px solid var(--dr-line);border-radius:12px}
#dayroom .dr-call-transcript h3{margin:0 0 8px;font-size:16px}
#dayroom .dr-call-transcript p{line-height:1.5;overflow-wrap:anywhere;margin:8px 0}
#dayroom .dr-call-controls{flex-wrap:wrap;justify-content:center;gap:8px}

#dayroom .dr-booking-host{--booking-gap:18px}#dayroom .dr-booking-publish-state{display:flex;align-items:center;gap:9px;margin-bottom:18px}#dayroom .dr-booking-publish-state>button{margin-left:auto}#dayroom .dr-booking-dot{width:8px;height:8px;background:var(--dr-muted)}#dayroom .dr-booking-dot.is-live{background:var(--dr-accent-text)}#dayroom .dr-booking-link{display:flex;align-items:end;gap:8px;margin-bottom:14px}#dayroom .dr-booking-link .dr-field{flex:1;min-width:0;margin:0}#dayroom .dr-booking-link input{font-size:12px}#dayroom .dr-booking-link>a{text-decoration:none}#dayroom .dr-booking-host .dr-form>.dr-card{margin-top:18px}#dayroom .dr-booking-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 18px}#dayroom .dr-booking-host textarea{width:100%}#dayroom .dr-booking-connection{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}#dayroom .dr-booking-connection>div{flex:1;min-width:180px}#dayroom .dr-booking-host .dr-booking-connection p{margin:4px 0 0}#dayroom .dr-booking-day{display:grid;grid-template-columns:100px minmax(0,1fr);gap:14px;padding:14px 0;border-bottom:1px solid var(--dr-line)}#dayroom .dr-booking-day>strong{font-size:12px;padding-top:10px}#dayroom .dr-booking-range{display:flex;align-items:center;gap:7px;margin-bottom:8px}#dayroom .dr-booking-range input{min-width:0;width:125px;min-height:40px}#dayroom .dr-booking-range>button{min-width:36px;padding:6px}#dayroom .dr-booking-range>span{font-size:12px;color:var(--dr-muted)}#dayroom .dr-booking-add-range{font-size:12px}#dayroom .dr-booking-override{border:1px solid var(--dr-line);padding:14px;border-radius:10px;margin-bottom:14px}#dayroom .dr-booking-override-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}#dayroom .dr-booking-reservation{display:flex;align-items:flex-start;gap:15px;justify-content:space-between;border-bottom:1px solid var(--dr-line);padding:18px 0}#dayroom .dr-booking-reservation:last-child{border-bottom:0}#dayroom .dr-booking-reservation>div{min-width:0;flex:1;overflow-wrap:anywhere}#dayroom .dr-booking-reservation p{margin:5px 0!important}#dayroom .dr-booking-reservation details{font-size:12px}#dayroom .dr-booking-host .dr-hint{line-height:1.6}#dayroom #dr-booking-form{margin-bottom:26px}#dayroom #dr-booking-saved:empty{display:none}
@media(max-width:600px){#dayroom .dr-booking-link{flex-wrap:wrap}#dayroom .dr-booking-link>.dr-field{flex-basis:100%}#dayroom .dr-booking-fields{grid-template-columns:1fr}#dayroom .dr-booking-day{grid-template-columns:1fr;gap:6px}#dayroom .dr-booking-range input{width:100px;flex:1}#dayroom .dr-booking-reservation{flex-wrap:wrap}#dayroom .dr-booking-reservation>div{flex-basis:100%}#dayroom .dr-booking-override-heading{align-items:end}#dayroom .dr-booking-override-heading>button{margin-bottom:12px}#dayroom .dr-booking-override-heading .dr-field{min-width:0}#dayroom .dr-booking-publish-state{flex-wrap:wrap}}

/* Keep real control edges aligned and narrow-screen date fields contained. */
#dayroom .dr-booking-link :is(button,a){min-height:40px;display:inline-flex;align-items:center;justify-content:center}
#dayroom .dr-booking-day>div{min-width:0}
@media(max-width:600px){#dayroom .dr-booking-override-heading{display:grid;grid-template-columns:minmax(0,1fr);gap:0}#dayroom .dr-booking-override-heading>button{justify-self:start}#dayroom .dr-booking-range{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}#dayroom .dr-booking-range input{width:100%}#dayroom .dr-booking-range>button{grid-column:3;justify-self:end;min-height:36px}}

/* File links stay readable in the narrow conversation pane and in chat-only mode. */
#dayroom .dr-drive-attachment{display:flex;align-items:center;gap:8px;min-width:0;margin-block:10px;border:1px solid var(--dr-line);border-radius:8px;background:var(--dr-panel);overflow:hidden}
#dayroom .dr-drive-attachment a{display:flex;align-items:center;gap:12px;flex:1;min-width:0;padding:12px;color:var(--dr-ink);text-decoration:none;text-underline-offset:3px}
#dayroom .dr-drive-attachment a:hover strong{text-decoration:underline}
#dayroom .dr-drive-attachment a:hover{background:var(--dr-soft)}
#dayroom .dr-drive-attachment a:focus-visible{outline:3px solid var(--dr-accent);outline-offset:-3px}
#dayroom .dr-drive-attachment a>svg{width:28px;height:28px;flex-shrink:0}
#dayroom .dr-drive-attachment a>span{min-width:0;flex:1}
#dayroom .dr-drive-attachment strong{display:block;font-size:14px;line-height:1.4;overflow-wrap:anywhere;font-weight:600}
#dayroom .dr-drive-attachment small{display:block;margin-top:4px;color:var(--dr-muted);font-size:12px;line-height:1.4}
#dayroom .dr-drive-attachment a>svg.dr-file-open{width:16px;height:16px;color:var(--dr-muted)}
#dayroom .dr-drive-attachment.is-draft{flex-wrap:wrap;margin:0}
#dayroom .dr-drive-attachment.is-draft a{flex-basis:180px}
#dayroom .dr-file-remove{margin:0 8px 8px auto;min-height:32px;padding:6px 10px;flex-shrink:0}
#dayroom .dr-upload-draft{display:flex;align-items:center;gap:12px;min-width:0;padding:10px;border:1px solid var(--dr-line);border-radius:8px;background:var(--dr-panel)}
#dayroom .dr-upload-draft>span{flex:1;min-width:0;overflow-wrap:anywhere}
#dayroom .dr-upload-draft .dr-file-remove{margin:0}
#dayroom #dr-pending{display:grid;gap:8px;max-height:min(32vh,300px);overflow-y:auto;scrollbar-color:var(--dr-line) var(--dr-bg)}
#dayroom #dr-pending:not(:empty){margin-bottom:12px;padding:2px}
#dayroom p.dr-drive-access-note{font-size:12px;line-height:1.5;margin:0 0 2px;color:var(--dr-muted)}
#dayroom .dr-chattools{flex-wrap:wrap}
#dayroom #dr-drive svg{flex-shrink:0}
#dayroom #dr-attachment-status{font-size:12px;color:var(--dr-muted);padding-top:8px}
#dayroom #dr-attachment-status:empty{display:none}

#dayroom .dr-drive-attachment .dr-drive-remove-icon{width:32px;min-width:32px;height:32px;padding:6px;margin:8px 8px 8px 0;align-self:flex-start}

/* A file dragged over the conversation gets one clear destination. The overlay never intercepts the drop itself. */
#dayroom .dr-chatcol.is-file-drag::after{content:'Drop files to attach';position:absolute;inset:10px;z-index:20;display:grid;place-items:center;border:3px dashed var(--dr-accent);border-radius:14px;background:color-mix(in srgb,var(--dr-panel) 94%,transparent);color:var(--dr-ink);font-size:15px;font-weight:800;letter-spacing:.01em;pointer-events:none}

/* Calls, rebuilt on the Window design (design addendum "Voice and video calls"; reference §1–§2; world.html Card tag). */
#dayroom #dr-callbox[hidden]{display:none}
/* The open stage replaces the office window and the chat column below the header. */
#dayroom .dr-main:has(>#dr-callbox.dr-call-screen)>:is(.dr-window,.dr-chatcol,.dr-pane-divider){display:none}
#dayroom #dr-callbox.dr-call-screen{flex:1;min-height:0;display:flex;flex-direction:column;gap:12px;margin:12px;padding:12px;border-radius:13px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-line)}
#dayroom .dr-call-top{flex:none;display:flex;align-items:center;gap:10px;height:36px;min-width:0;padding-left:6px}
#dayroom .dr-call-title{margin:0;min-width:0;font-size:14px;font-weight:800;letter-spacing:-0.01em;color:var(--dr-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#dayroom .dr-call-title .dr-hash{color:var(--dr-faint);font-weight:700}
#dayroom .dr-call-connection{font-size:12.5px;font-weight:600;color:var(--dr-muted);white-space:nowrap}
#dayroom .dr-livedot{flex:none;width:7px;height:7px;border-radius:50%;background:var(--st-available);box-shadow:0 0 0 3px rgba(61,170,109,.2)}
#dayroom .dr-call-body{position:relative;flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
#dayroom .dr-call-tiles{min-width:0;min-height:0;padding:8px;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--dr-line-2) transparent}
#dayroom .dr-call-grid{display:grid;grid-template-columns:repeat(var(--cols,2),var(--tile-w,320px));grid-auto-rows:var(--tile-h,240px);gap:12px;justify-content:center;align-content:center;min-height:100%}
/* dr-ctile, not dr-tile: ui-kit.js's shared app/connector card (imports, workspace settings, Apps & connectors) already defines a bare .dr-tile with its own unrelated radius and layout; reusing that name here silently lost the call tile's 16px radius to the cascade. */
#dayroom .dr-ctile{position:relative;margin:0;overflow:hidden;border-radius:16px;background:var(--tint,var(--dr-panel));box-shadow:inset 0 0 0 1px var(--dr-line);transition:box-shadow .12s ease,opacity .2s ease}
#dayroom .dr-ctile.is-ringing{animation:dr-call-pulse 1.3s ease-out infinite}
#dayroom .dr-tile-media{position:absolute;inset:0}
#dayroom .dr-tile-portrait{position:absolute;left:50%;bottom:0;width:var(--portrait,144px);height:var(--portrait,144px);transform:translateX(-50%);image-rendering:pixelated}
#dayroom .dr-call-body.is-reconnecting .dr-ctile{opacity:.72}
/* Card name tag: world.html style B "Card" (lines 33–36, 42–47), the same literal white Card as the office overlay (Decision 14). */
#dayroom .dr-ctag{position:absolute;left:10px;bottom:10px;z-index:1;display:inline-flex;align-items:flex-start;gap:5px;max-width:calc(100% - 20px);padding:5px 10px 5px 8px;border-radius:10px;background:#fff;color:#17211c;box-shadow:0 3px 10px rgba(20,40,30,.24),0 0 0 1px rgba(0,0,0,.05);font:700 11.5px/1 'Manrope',system-ui,sans-serif;letter-spacing:-0.005em;white-space:nowrap}
#dayroom .dr-ctag.is-self{box-shadow:0 3px 10px rgba(20,40,30,.24),0 0 0 2px #1F5A41}
#dayroom .dr-ctag-dot{flex:none;width:7px;height:7px;margin-top:3px;border-radius:50%;background:var(--st-available)}
#dayroom .dr-ctag-dot.is-working{background:var(--st-working)}#dayroom .dr-ctag-dot.is-dnd{background:var(--st-dnd)}#dayroom .dr-ctag-dot.is-away{background:var(--st-away)}#dayroom .dr-ctag-dot.is-lunch{background:var(--st-lunch)}
#dayroom .dr-ctag-lines{display:flex;flex-direction:column;gap:2px;min-width:0}
/* Only the name truncates, never the YOU badge after it. On a tile under 150px your own tag reads "● YOU": the name stays for
   screen readers. */
#dayroom .dr-ctile{container-type:inline-size}
#dayroom .dr-ctag-name{display:flex;align-items:baseline;min-width:0}
#dayroom .dr-ctag-nm{min-width:0;overflow:hidden;text-overflow:ellipsis}
#dayroom .dr-ctag .dr-you{flex:none}
@container (max-width:150px){#dayroom .dr-ctag.is-self .dr-ctag-nm{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}#dayroom .dr-ctag.is-self .dr-you{margin-left:0}}
#dayroom .dr-ctag small{font-size:10.5px;font-weight:600;color:#6b766f}
#dayroom :is(.dr-ctag,.dr-roster-id) .dr-you{margin-left:2px;padding:2px 5px;border-radius:6px;background:#1F5A41;color:#fff;font-size:9.5px;font-weight:800;letter-spacing:.02em}
#dayroom .dr-call-grid.is-compact .dr-ctag small{display:none}
/* Glass control bar: rail button metrics (reference §2.5 .rbtn/.ri). */
#dayroom .dr-call-controls{flex:none;align-self:center;display:flex;align-items:center;gap:2px;padding:6px 8px;border-radius:18px}
#dayroom .dr-cbtn{position:relative;width:64px;display:flex;flex-direction:column;align-items:center;gap:3px;padding:5px 0 6px;border:0;border-radius:12px;background:none;color:var(--dr-muted);font:700 10.5px/1.2 'Manrope',system-ui,sans-serif;letter-spacing:.01em}
#dayroom .dr-cbtn .dr-ri{position:relative;width:42px;height:32px;border-radius:10px;display:grid;place-items:center}
#dayroom .dr-cbtn .dr-ri svg.dr-i{width:20px;height:20px}
#dayroom .dr-cbtn:hover:not(:disabled,[aria-disabled=true]) .dr-ri{background:var(--dr-hover)}
#dayroom .dr-cbtn.is-on{color:var(--dr-ink)}#dayroom .dr-cbtn.is-on .dr-ri{background:var(--dr-sel)}
#dayroom .dr-cbtn.is-alert{color:var(--dr-ink)}#dayroom .dr-cbtn.is-alert .dr-ri{background:rgba(224,90,79,.14);color:#E05A4F}
#dayroom .dr-cbtn.is-leave{color:var(--dr-ink)}#dayroom .dr-cbtn.is-leave .dr-ri,#dayroom .dr-cbtn.is-leave:hover .dr-ri{background:#E05A4F;color:#fff;box-shadow:inset 0 -2px 0 rgba(0,0,0,.14)}
#dayroom .dr-cbtn:is(:disabled,[aria-disabled=true]){opacity:.45;cursor:default}
/* A busy call control is aria-disabled so it keeps keyboard focus (a disabled button loses it); it looks like the shared button:disabled. */
#dayroom :where(#dr-callbox,#dr-incoming) button[aria-disabled=true]{cursor:default;opacity:.5}
#dayroom .dr-call-controls .dr-div{width:1px;height:32px;margin:0 6px;background:var(--dr-line-2)}
#dayroom #dr-callbox>.dr-call-error{flex:none;align-self:center;display:flex;align-items:center;gap:8px;max-width:680px;margin:0;padding:8px 12px;border-radius:11px;background:var(--dr-panel);box-shadow:inset 0 0 0 1px rgba(224,90,79,.45);font-size:12.5px;font-weight:700}
/* Ink on the stage's chip only; in the bar and the ended row the shared .dr-error colour applies, which meets AA on both. */
#dayroom #dr-callbox.dr-call-screen>.dr-call-error{color:var(--dr-ink)}
#dayroom #dr-callbox>.dr-call-error[hidden]{display:none}
/* Reconnecting: reference .chip and .dots on glass, centred over the tiles. */
#dayroom .dr-call-reconnecting{position:absolute;top:12px;left:50%;z-index:2;transform:translateX(-50%);display:inline-flex;align-items:center;gap:8px;height:34px;padding:0 12px;border-radius:11px;font-size:12.5px;font-weight:800;color:var(--dr-ink);white-space:nowrap}
#dayroom .dr-call-reconnecting .dr-dots{display:inline-flex;gap:3px}
#dayroom .dr-call-reconnecting .dr-dots i{width:5px;height:5px;border-radius:50%;background:var(--dr-faint);animation:dr-call-dot 1.2s ease-in-out infinite}
#dayroom .dr-call-reconnecting .dr-dots i:nth-child(2){animation-delay:.2s}#dayroom .dr-call-reconnecting .dr-dots i:nth-child(3){animation-delay:.4s}
#dayroom #dr-callbox:is(.dr-call-bar,.dr-call-ended)>.dr-call-error{flex-basis:100%;align-self:auto;max-width:none;margin:0 0 10px;padding:0;background:none;box-shadow:none;font-size:12px}
/* Ended: a quiet row until dismissed. */
#dayroom #dr-callbox.dr-call-ended{flex:none;display:flex;flex-wrap:wrap;align-items:center;gap:10px;min-height:44px;margin:12px 12px 0;padding:0 6px 0 14px;border-radius:13px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-line);font-size:13px;font-weight:700;color:var(--dr-ink-2)}
#dayroom .dr-call-ended>svg.dr-i{width:16px;height:16px;color:var(--dr-muted)}
#dayroom .dr-call-ended .dr-call-title{font-size:13px}
#dayroom .dr-call-ended .dr-muted{min-width:0;font-weight:600;color:var(--dr-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@keyframes dr-call-pulse{0%{box-shadow:0 0 0 0 rgba(61,170,109,.4)}100%{box-shadow:0 0 0 12px rgba(61,170,109,0)}}
@keyframes dr-call-dot{0%,80%,100%{opacity:.35}40%{opacity:1}}
@media (prefers-reduced-motion:reduce){#dayroom .dr-ctile{transition:none}#dayroom .dr-ctile.is-ringing{animation:none;box-shadow:0 0 0 2px rgba(61,170,109,.5)}#dayroom .dr-call-reconnecting .dr-dots i{animation:none;opacity:.7}}
@media (max-width:760px){#dayroom #dr-callbox.dr-call-screen{margin:8px;padding:8px}#dayroom .dr-cbtn{width:52px}}
/* The ended row's "Last call's notes" link keeps its ghost look (carried from the old notes block; Window T9's box-shadow:none opt-out). */
#dayroom .dr-call-panel .dr-call-notes-link{font-size:12px;line-height:16px;background:transparent;box-shadow:none;min-height:32px;margin-top:8px;width:auto;padding:4px 0;color:var(--dr-muted);text-underline-offset:4px}
@media(hover:hover){#dayroom .dr-call-panel .dr-call-notes-link:hover{color:var(--dr-ink);text-decoration:underline}}
#dayroom .dr-call-ended .dr-call-notes-link{margin-top:0}
/* Incoming call: a glass card (Doorway glass, reference §3.2 and §1.2) with the caller's portrait. */
#dayroom .dr-incoming.dr-glass{position:fixed;top:16px;right:16px;z-index:90;width:360px;max-width:calc(100vw - 32px);display:grid;grid-template-columns:72px minmax(0,1fr);align-items:center;gap:14px;padding:18px;border-radius:20px;color:var(--dr-ink);-webkit-backdrop-filter:blur(22px) saturate(1.4);backdrop-filter:blur(22px) saturate(1.4);box-shadow:0 24px 60px -12px rgba(24,40,30,.35),inset 0 0 0 1px var(--dr-glass-line)}
/* Minor 5 (visual-2): fixed top-right, this sat over an open dialog's search field and Close button, both
   also top-anchored. The bottom-right corner is clear of every dialog, which starts 64px from the top and
   never reaches the viewport's bottom 24px (.dr-overlay's own padding), while the card itself stays visible. */
#dayroom:has(#dr-overlay:not([hidden])) .dr-incoming.dr-glass{top:auto;bottom:16px}
@media (prefers-color-scheme:dark){#dayroom:not([data-scheme]) .dr-incoming.dr-glass{box-shadow:0 30px 70px -12px rgba(0,0,0,.7),inset 0 0 0 1px var(--dr-glass-line)}}
#dayroom[data-scheme="dark"] .dr-incoming.dr-glass{box-shadow:0 30px 70px -12px rgba(0,0,0,.7),inset 0 0 0 1px var(--dr-glass-line)}
#dayroom .dr-incoming:focus{outline:none}#dayroom .dr-incoming:focus-visible{outline:2px solid var(--dr-accent);outline-offset:3px}
#dayroom .dr-incoming-portrait{width:72px;height:72px;border-radius:20px;animation:dr-call-pulse 1.3s ease-out infinite}
#dayroom #dr-incoming-avatar{width:72px;height:72px;border-radius:20px;image-rendering:pixelated}
#dayroom .dr-incoming-text{min-width:0;display:grid;justify-items:start;gap:4px}
#dayroom .dr-incoming .dr-eyebrow{display:inline-flex;align-items:center;padding:6px 10px;border-radius:8px;background:var(--dr-accent-soft);color:var(--dr-accent-text);font:400 10px 'Silkscreen',monospace;letter-spacing:.06em}
#dayroom .dr-incoming h2{margin:4px 0 0;font-size:17px;font-weight:800;letter-spacing:-0.02em;line-height:1.2;overflow-wrap:anywhere}
#dayroom .dr-incoming p{margin:0;font-size:12.5px;font-weight:600;color:var(--dr-muted)}
#dayroom .dr-incoming-actions{grid-column:1/-1;display:flex;gap:10px}
#dayroom .dr-cpill{flex:1;height:40px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:12px;background:var(--dr-panel);color:var(--dr-ink);box-shadow:inset 0 0 0 1px var(--dr-line-2);font:800 13.5px 'Manrope',system-ui,sans-serif}
#dayroom .dr-cpill svg.dr-i{width:18px;height:18px}
#dayroom .dr-cpill.is-accept{background:var(--dr-accent);color:var(--dr-accent-ink);box-shadow:0 8px 20px -8px rgba(31,90,65,.6),inset 0 -2px 0 rgba(0,0,0,.14)}
#dayroom .dr-cpill-ic{width:22px;height:22px;display:grid;place-items:center;border-radius:50%;background:#E05A4F;color:#fff}
#dayroom .dr-cpill-ic svg.dr-i{width:14px;height:14px}
#dayroom .dr-incoming>.dr-call-error{grid-column:1/-1;margin:0;font-size:12px}
#dayroom .dr-incoming>.dr-call-error[hidden]{display:none}
@media (prefers-reduced-motion:reduce){#dayroom .dr-incoming-portrait{animation:none;box-shadow:0 0 0 2px rgba(61,170,109,.5)}}
/* The rail's live call and the live pill share the call's live dot. */
#dayroom .dr-rbtn.is-live{color:var(--dr-accent-text)}
#dayroom .dr-rbtn.is-live .dr-ri{background:var(--dr-accent-soft)}
#dayroom .dr-rbtn.is-live .dr-livedot{position:absolute;top:3px;right:5px}
/* Video fills the tile; your own camera is mirrored like a mirror, never a teammate's. */
#dayroom .dr-ctile.has-video{background:#0B0E0D}
#dayroom .dr-ctile.has-video .dr-tile-portrait{display:none}
#dayroom .dr-ctile video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#0B0E0D}
#dayroom .dr-ctile.is-self video.is-camera{transform:scaleX(-1)}
/* Presenter: the screen on a dark backdrop, everyone else in a 208px filmstrip. */
#dayroom .dr-call-body[data-layout=presenter]{grid-template-columns:minmax(0,1fr) 208px}
#dayroom .dr-call-body[data-layout=presenter] .dr-call-grid{align-content:start}
#dayroom .dr-call-presenter{position:relative;min-width:0;min-height:0;margin:0;display:grid;place-items:center;overflow:hidden;border-radius:16px;background:#0B0E0D}
#dayroom .dr-call-presenter-media,#dayroom .dr-call-presenter video{position:absolute;inset:0;width:100%;height:100%}
#dayroom .dr-call-presenter video{object-fit:contain;background:#0B0E0D}
#dayroom .dr-call-presenter .dr-ctag{left:12px;bottom:12px}
/* Participants panel: sidebar row metrics (reference .row, .count) in a panel column. */
#dayroom .dr-call-body.has-roster{grid-template-columns:minmax(0,1fr) 280px}
#dayroom .dr-call-body[data-layout=presenter].has-roster .dr-call-tiles{display:none}
#dayroom .dr-call-roster{align-self:start;max-height:100%;min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden;border-radius:13px;background:var(--dr-panel);box-shadow:inset 0 0 0 1px var(--dr-line)}
#dayroom .dr-call-roster header{flex:none;display:flex;align-items:center;gap:8px;height:48px;padding:0 6px 0 14px;border-bottom:1px solid var(--dr-line)}
#dayroom .dr-call-roster h3{margin:0;font-size:14px;font-weight:800;letter-spacing:-0.01em}
#dayroom .dr-roster-count{min-width:20px;height:19px;padding:0 6px;border-radius:10px;background:var(--dr-accent);color:var(--dr-accent-ink);font:800 11px/19px 'Manrope',system-ui,sans-serif;text-align:center}
#dayroom .dr-roster-scroll{flex:0 1 auto;padding-bottom:14px;min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--dr-line-2) transparent}
#dayroom #dr-call-add{display:flex;justify-content:center;width:calc(100% - 28px);margin:6px 14px 0;min-height:36px}
#dayroom .dr-call-roster ul{margin:0;padding:0 6px 6px;list-style:none}
/* Two groups: in the call, then who it rang and hasn't joined. */
#dayroom .dr-roster-group{display:flex;align-items:center;gap:8px;margin:0;padding:12px 14px 6px;font-size:11.5px;font-weight:800;letter-spacing:.02em;color:var(--dr-muted)}
#dayroom .dr-roster-count.is-waiting{background:var(--dr-sunken);color:var(--dr-ink-2);box-shadow:inset 0 0 0 1px var(--dr-line-2)}
#dayroom .dr-roster-row.is-waiting canvas{opacity:.55;filter:saturate(.6)}
#dayroom .dr-roster-row.is-waiting.is-ringing canvas{opacity:.85;filter:none}
#dayroom .dr-roster-row.is-waiting small{display:inline-flex;align-items:center;gap:6px}
/* Waiting for, grouped by how each invitation stands; a long group folds into "+N more". */
#dayroom .dr-roster-sub{display:flex;align-items:center;gap:6px;margin:0;padding:8px 14px 2px;font-size:11px;font-weight:700;color:var(--dr-muted)}
#dayroom .dr-roster-sub .dr-roster-count{min-width:18px;height:17px;font-size:10.5px;line-height:17px}
#dayroom .dr-roster-more{display:block;margin:2px 14px 6px 50px;padding:4px 8px;min-height:28px;border:0;border-radius:8px;background:none;color:var(--dr-ink-2);font:700 12px/1.2 'Manrope',system-ui,sans-serif;cursor:pointer}
#dayroom .dr-roster-more:hover{background:var(--dr-hover)}
#dayroom .dr-roster-more:focus-visible{outline:2px solid var(--dr-accent);outline-offset:1px}
#dayroom .dr-ring-again{flex:none;min-height:30px;padding:4px 10px;font-size:12px}
/* Ringing: a stepped blink in the accent colour (retro, no glow). */
/* A pending tile: the portrait waits, faded, until they join. */
#dayroom .dr-ctile.is-ringing .dr-tile-portrait{opacity:.6}
#dayroom .dr-ring-dot{flex:none;display:inline-block;width:6px;height:6px;background:var(--dr-accent);animation:dr-ring-blink 1s steps(2,jump-none) infinite}
#dayroom .dr-call-waiting{display:inline-flex;align-items:center;gap:7px;min-width:0;height:24px;padding:0 10px;border-radius:8px;background:var(--dr-accent-soft);color:var(--dr-accent-text);font-size:12px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#dayroom .dr-cbtn-ring{position:absolute;bottom:-1px;right:2px;width:7px;height:7px;background:var(--dr-accent);box-shadow:0 0 0 2px var(--dr-panel);animation:dr-ring-blink 1s steps(2,jump-none) infinite}
@keyframes dr-ring-blink{0%{opacity:1}100%{opacity:.25}}
/* In-call chat: the call's own conversation, beside the tiles in the same column as People. */
#dayroom .dr-call-body.has-chat{grid-template-columns:minmax(0,1fr) 320px}
#dayroom .dr-call-body[data-layout=presenter].has-chat .dr-call-tiles{display:none}
#dayroom .dr-call-chatbox{min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden;border-radius:13px;background:var(--dr-panel);box-shadow:inset 0 0 0 1px var(--dr-line)}
#dayroom .dr-call-chatbox header{flex:none;display:flex;align-items:center;gap:8px;min-height:48px;padding:4px 6px 4px 14px;border-bottom:1px solid var(--dr-line)}
#dayroom .dr-call-chat-heading{min-width:0;display:grid;gap:1px}
#dayroom .dr-call-chatbox h3{margin:0;font-size:14px;font-weight:800;letter-spacing:-0.01em}
#dayroom .dr-call-chat-where{font-size:11.5px;font-weight:700;color:var(--dr-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#dayroom .dr-call-chat-list{flex:1;min-height:0;display:flex;flex-direction:column;gap:10px;padding:10px 12px;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--dr-line-2) transparent}
#dayroom .dr-call-chat-list:focus-visible{outline:2px solid var(--dr-accent);outline-offset:-2px}
#dayroom .dr-call-chat-empty{margin:auto 0;font-size:12.5px;font-weight:600;line-height:1.45;color:var(--dr-muted);text-align:center}
#dayroom .dr-call-chat-msg{min-width:0;display:grid;gap:2px}
#dayroom .dr-call-chat-head{display:flex;align-items:baseline;gap:6px;font-size:12px}
#dayroom .dr-call-chat-head b{font-weight:800;color:var(--dr-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#dayroom .dr-call-chat-head time{flex:none;font-size:12px;font-weight:700;color:var(--dr-muted)}
#dayroom .dr-call-chat-msg.is-own .dr-call-chat-head b{color:var(--dr-accent-text)}
#dayroom .dr-call-chat-body{font-size:13px;font-weight:500;line-height:1.45;color:var(--dr-ink-2);overflow-wrap:anywhere}
#dayroom .dr-call-chat-body p{margin:0}
#dayroom .dr-call-chat-body a{color:var(--dr-accent-text);text-decoration:underline;text-underline-offset:2px}
#dayroom .dr-call-chat-form{flex:none;display:flex;align-items:flex-end;gap:6px;padding:8px;border-top:1px solid var(--dr-line)}
#dayroom #dr-call-chat-input{flex:1;min-width:0;min-height:40px;max-height:120px;resize:none;padding:9px 10px;border:0;border-radius:10px;background:var(--dr-sunken);color:var(--dr-ink);box-shadow:inset 0 0 0 1px var(--dr-line-2);font:500 13px/1.4 'Manrope',system-ui,sans-serif}
#dayroom .dr-call-chat-form .dr-call-chat-send{flex:none;width:40px;height:40px;border-radius:10px;background:var(--dr-accent);color:var(--dr-accent-ink)}
#dayroom .dr-call-chat-form .dr-call-chat-send:hover{background:var(--dr-accent);filter:brightness(1.08)}
#dayroom .dr-call-chat-status{flex:none;min-height:0;margin:0;padding:0 12px 8px;font-size:11.5px;font-weight:700;color:var(--dr-muted)}
#dayroom .dr-call-chat-status:empty{display:none}
#dayroom .dr-roster-row{display:flex;align-items:center;gap:10px;min-height:44px;padding:4px 8px;border-radius:9px}
#dayroom .dr-roster-row canvas{flex:none;width:32px;height:32px;border-radius:9px}
#dayroom .dr-roster-id{flex:1;min-width:0;display:grid;gap:1px}
#dayroom .dr-roster-id b{font-size:13.5px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#dayroom .dr-roster-id small{font-size:12px;font-weight:600;color:var(--dr-muted)}
#dayroom .dr-roster-icons{display:flex;align-items:center;gap:4px;color:var(--dr-muted)}
#dayroom .dr-roster-icons svg.dr-i{width:16px;height:16px}
#dayroom .dr-roster-icons svg.is-alert{color:#E05A4F}
#dayroom .dr-roster-chip{height:20px;padding:0 8px;border-radius:10px;background:var(--dr-accent-soft);color:var(--dr-accent-text);font:800 10.5px/20px 'Manrope',system-ui,sans-serif}
#dayroom .dr-cbtn-count{position:absolute;top:-4px;right:-2px;min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:var(--dr-accent);color:var(--dr-accent-ink);font:800 10px/17px 'Manrope',system-ui,sans-serif;text-align:center;box-shadow:0 0 0 2px var(--dr-panel)}
/* Meeting notes: a banner at the top of the stage while the workspace takes notes. "Notes on" stays for the whole call;
   the join notice shows until you choose Got it. */
#dayroom .dr-call-notes{flex:none;display:flex;align-items:flex-start;gap:12px;padding:10px 10px 10px 14px;border-radius:13px;background:var(--dr-panel);box-shadow:inset 0 0 0 1px var(--dr-line)}
#dayroom .dr-call-notes>svg.dr-i{margin-top:1px;color:var(--dr-accent-text)}
#dayroom .dr-call-notes-text{flex:1;min-width:0;display:grid;gap:3px}
#dayroom .dr-call-notes-heading{display:flex;align-items:center;gap:8px;font-size:13px}
#dayroom .dr-call-notes-heading strong{font-weight:800}
#dayroom .dr-call-notes-status{height:20px;padding:0 8px;border-radius:10px;background:var(--dr-sunken);color:var(--dr-muted);font:800 10.5px/20px 'Manrope',system-ui,sans-serif;white-space:nowrap}
#dayroom .dr-call-notes-status[data-capturing=true]{background:var(--dr-accent-soft);color:var(--dr-accent-text)}
#dayroom .dr-call-notes-status.is-on{display:inline-flex;align-items:center;gap:6px;border-radius:6px;background:var(--dr-accent-soft);color:var(--dr-accent-text);font:400 10px/20px 'Silkscreen',monospace;letter-spacing:.06em;text-transform:uppercase}
#dayroom .dr-call-notes-status.is-on::before{content:"";flex:none;width:6px;height:6px;background:currentColor;box-shadow:0 0 0 1px var(--dr-accent-soft)}
#dayroom .dr-call-notes.is-on{box-shadow:inset 0 0 0 1px var(--dr-line),inset 3px 0 0 var(--dr-accent)}
#dayroom .dr-call-notes-quiet{margin:0;font-size:12px;font-weight:700;color:var(--dr-ink-2);overflow-wrap:anywhere}
#dayroom .dr-roster-chip.is-off{background:var(--dr-sunken);color:var(--dr-ink-2)}
#dayroom .dr-incoming-notes{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border-radius:6px;background:var(--dr-accent-soft);color:var(--dr-accent-text)!important;font-size:12px!important;font-weight:700!important}
#dayroom .dr-incoming-notes svg.dr-i{flex:none;width:14px;height:14px}
#dayroom .dr-call-notes-copy{margin:0;font-size:12.5px;font-weight:600;color:var(--dr-ink-2);overflow-wrap:anywhere}
#dayroom .dr-call-notes-disclosure{margin:0;font-size:12px;font-weight:500;line-height:1.45;color:var(--dr-muted);overflow-wrap:anywhere}
#dayroom .dr-call-notes-error{margin:2px 0 0;font-size:12px}
#dayroom .dr-call-notes-actions{flex:none;align-self:center;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
/* Problem card: a start that failed, what went wrong, and a retry. */
#dayroom #dr-callbox.dr-call-problem{flex:none;display:flex;align-items:center;gap:12px;margin:12px 12px 0;padding:12px 8px 12px 14px;border-radius:13px;background:var(--dr-panel);box-shadow:inset 0 0 0 1px rgba(224,90,79,.45)}
#dayroom .dr-call-problem-ic{flex:none;width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:rgba(224,90,79,.14);color:#E05A4F}
#dayroom .dr-call-problem-text{min-width:0;display:grid;gap:2px}
#dayroom .dr-call-problem-text b{font-size:13.5px;font-weight:800}
#dayroom .dr-call-problem-text p{margin:0;font-size:12.5px;font-weight:600;color:var(--dr-ink-2);overflow-wrap:anywhere}
#dayroom .dr-call-problem-text .dr-call-error{margin:2px 0 0;font-size:12px}
#dayroom .dr-call-problem-text .dr-call-error[hidden]{display:none}
#dayroom #dr-callbox>.dr-call-error .dr-iconbtn{width:24px;height:24px;margin:-4px -6px -4px 0}
/* Kept last so they override the base rules above (People, Chat and the waiting chip). */
/* Narrow stages: People or Chat covers the tiles inside the stage, so the control bar below stays put and reachable. */
#dayroom #dr-callbox.dr-call-screen{container:dr-call-stage/inline-size}
@container dr-call-stage (max-width:700px){#dayroom .dr-call-body:is(.has-roster,.has-chat){grid-template-columns:minmax(0,1fr)}#dayroom .dr-call-body:is(.has-roster,.has-chat)>:is(.dr-call-roster,.dr-call-chatbox){position:absolute;inset:0;z-index:3}}
@container dr-call-stage (max-width:640px){#dayroom .dr-call-notes{flex-wrap:wrap}#dayroom .dr-call-notes-text{flex-basis:calc(100% - 40px)}#dayroom .dr-call-notes-actions{flex:1 1 100%;justify-content:flex-start}}
@container dr-call-stage (max-width:520px){#dayroom .dr-cbtn{width:46px}#dayroom .dr-call-controls .dr-div{margin:0 2px}#dayroom .dr-call-waiting{display:none}}
@media (prefers-reduced-motion:reduce){#dayroom :is(.dr-ring-dot,.dr-cbtn-ring){animation:none}}

/* A live miniature stays available while the conversation or another workspace page is open. */
#dayroom #dr-callbox.dr-call-bar{position:fixed;z-index:40;top:96px;right:20px;width:320px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 112px);margin:0;padding:10px;border-radius:14px;display:flex;flex-direction:column;align-items:stretch;gap:8px;overflow:auto;background:var(--dr-panel);box-shadow:var(--dr-shadow),0 0 0 1px var(--dr-line-2)}
#dayroom #dr-callbox.dr-call-bar.is-left{right:auto;left:84px}
#dayroom .dr-call-bar .dr-call-top{gap:6px;padding:0;height:32px}
#dayroom .dr-call-bar .dr-call-title{flex:1}
#dayroom .dr-call-bar .dr-call-top .dr-grow{display:none}
#dayroom .dr-call-bar>.dr-call-connection{padding:0 2px;font-size:11px}
#dayroom .dr-call-bar .dr-call-body{flex:0 1 170px;min-height:0;height:170px;grid-template-columns:minmax(0,1fr);gap:0}
#dayroom .dr-call-bar .dr-call-tiles{padding:4px}
#dayroom .dr-call-bar .dr-call-grid{gap:8px}
#dayroom .dr-call-bar .dr-ctile{border-radius:10px}
#dayroom .dr-call-bar .dr-ctag{left:5px;bottom:5px;max-width:calc(100% - 10px);padding:5px;font-size:10px}
#dayroom .dr-call-bar .dr-ctag small,#dayroom .dr-call-bar .dr-you{display:none}
#dayroom .dr-call-bar .dr-call-controls{padding:0;gap:4px}
#dayroom .dr-call-bar .dr-cbtn{width:60px}
#dayroom .dr-call-mini-notes{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px}
#dayroom .dr-call-mini-notes .dr-button{font-size:11px;min-height:32px;padding:4px 6px}
#dayroom #dr-callbox.dr-call-bar>.dr-call-error{flex-basis:auto;margin:0}
#dayroom .dr-share-caption{position:absolute;left:8px;bottom:8px;right:8px;display:flex;align-items:center;gap:8px;width:fit-content;max-width:calc(100% - 16px);padding:6px 10px;border-radius:8px;background:#0B0E0D;color:#EDF3EF;font-size:12px;font-weight:800;box-shadow:0 0 0 1px #536057}
#dayroom .dr-sharing-laptop{flex:none;display:block;width:24px;height:24px;color:currentColor}
#dayroom .dr-share-caption .dr-sharing-laptop{color:#C4EC7D}
#dayroom .dr-call-bar .dr-share-caption{font-size:10px;gap:5px;padding:4px 6px}
#dayroom .dr-call-bar .dr-share-caption .dr-sharing-laptop{width:24px;height:24px}
#dayroom .dr-laptop-closed{visibility:hidden;animation:dr-laptop-closed .9s step-end}
#dayroom .dr-laptop-half{visibility:hidden;animation:dr-laptop-half .9s step-end}
#dayroom .dr-laptop-open{animation:dr-laptop-open .9s step-end}
@keyframes dr-laptop-closed{0%{visibility:visible}33%,100%{visibility:hidden}}
@keyframes dr-laptop-half{0%{visibility:hidden}33%{visibility:visible}66%,100%{visibility:hidden}}
@keyframes dr-laptop-open{0%{visibility:hidden}66%,100%{visibility:visible}}
@media(prefers-reduced-motion:reduce){#dayroom :is(.dr-laptop-closed,.dr-laptop-half,.dr-laptop-open){animation:none}}
@media(max-width:760px){#dayroom #dr-callbox.dr-call-bar{top:70px;right:12px;max-height:calc(100dvh - 150px)}#dayroom #dr-callbox.dr-call-bar.is-left{left:12px}}
@media(max-width:360px){#dayroom .dr-call-bar .dr-cbtn{width:54px}}
@container dr-call-stage (max-width:520px){#dayroom .dr-call-top{flex-wrap:wrap;height:auto;min-height:36px}#dayroom .dr-call-top .dr-call-connection{display:none}#dayroom .dr-call-body[data-layout=presenter]{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(100px,1fr) 108px}#dayroom .dr-call-body[data-layout=presenter] .dr-call-grid{justify-content:start;grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:128px;grid-template-rows:96px;min-height:0}#dayroom .dr-call-body[data-layout=presenter] .dr-tile-portrait{width:72px;height:72px}#dayroom .dr-call-body[data-layout=presenter]:is(.has-roster,.has-chat){grid-template-rows:minmax(0,1fr)}#dayroom .dr-call-notes{max-height:35dvh;overflow:auto}}

/* Floating calls can be moved by their title; controls retain ordinary gestures. */
#dayroom .dr-call-bar .dr-call-top{cursor:grab;touch-action:none;user-select:none}
#dayroom .dr-call-bar .dr-call-top button{cursor:pointer;touch-action:manipulation}
#dayroom .dr-call-bar .dr-call-controls .dr-cbtn{width:auto;min-width:0;flex:1}
#dayroom .dr-call-bar>.dr-call-roster{position:relative;inset:auto;width:100%;max-height:260px;min-height:0;flex:0 0 auto}
#dayroom .dr-call-bar .dr-call-top{position:sticky;top:-10px;z-index:4;flex-shrink:0;background:var(--dr-panel)}
#dayroom .dr-call-bar:has(>.dr-call-roster) .dr-call-body{height:100px}

@container dr-call-stage (max-width:700px){#dayroom .dr-call-body.has-roster>.dr-call-roster{bottom:auto;max-height:100%}}

#dayroom .dr-call-grid.is-compact .is-speaking .dr-ctag small{display:block}

/* Conversation bubbles: retain the sender and time outside each bubble. */
#dayroom .dr-call-chat-msg{display:flex;flex-direction:column;align-items:flex-start;gap:5px}
#dayroom .dr-call-chat-msg.is-own{align-items:flex-end}
#dayroom .dr-call-chat-head{max-width:90%;flex-wrap:wrap}
#dayroom .dr-call-chat-msg.is-own .dr-call-chat-head{justify-content:flex-end}
#dayroom .dr-call-chat-body{max-width:90%;min-width:0;padding:9px 12px;border-radius:17px 17px 17px 5px;background:var(--dr-soft);color:var(--dr-ink)}
#dayroom .dr-call-chat-msg.is-own .dr-call-chat-body{border-radius:17px 17px 5px 17px;background:var(--dr-accent);color:var(--dr-accent-ink,#172017)}
#dayroom .dr-call-chat-msg.is-own .dr-call-chat-body a{color:inherit}
#dayroom .dr-call-chat-body :is(img,video){max-width:100%;height:auto}
#dayroom .dr-call-chat-body pre{max-width:100%;overflow:auto;white-space:pre-wrap}

/* Phones and short windows: the stage keeps the whole height for the call (findings 20, 21, 24). The room header goes (the call
   title names the conversation and Minimize goes back to it; the phone bar keeps search and navigation). */
@media (max-width:760px),(max-height:520px){#dayroom .dr-main:has(>#dr-callbox.dr-call-screen)>.dr-head{display:none}}
/* The meeting-notes banner folds to its chip row on a narrow stage or a short window (the join notice and errors never fold;
   call-panel.js). The same rules twice: a container query and a media query can't share one block. */
#dayroom .dr-call-notes :is(.dr-call-notes-fold,.dr-call-notes-count){display:none}
#dayroom .dr-call-notes-fold svg.dr-i{transition:transform .12s ease}
#dayroom .dr-call-notes.is-open .dr-call-notes-fold svg.dr-i{transform:rotate(180deg)}
@container dr-call-stage (max-width:640px){
 #dayroom .dr-call-notes.can-fold{position:relative}
 #dayroom .dr-call-notes.can-fold .dr-call-notes-fold{display:grid;position:absolute;top:2px;right:2px;width:44px;height:44px}
 #dayroom .dr-call-notes.can-fold>.dr-call-notes-text{padding-right:40px}
 #dayroom .dr-call-notes.can-fold:not(.is-open){flex-wrap:nowrap;align-items:center;min-height:48px;padding:2px 46px 2px 12px}
 #dayroom .dr-call-notes.can-fold:not(.is-open)>.dr-call-notes-text{flex:1 1 auto;padding-right:0}
 #dayroom .dr-call-notes.can-fold:not(.is-open) .dr-call-notes-heading strong,#dayroom .dr-call-notes.can-fold:not(.is-open) :is(.dr-call-notes-copy,.dr-call-notes-quiet,#dr-call-notes){display:none}
 #dayroom .dr-call-notes.can-fold:not(.is-open) .dr-call-notes-count{display:inline;min-width:0;font-size:12px;font-weight:700;color:var(--dr-ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #dayroom .dr-call-notes.can-fold:not(.is-open)>.dr-call-notes-actions{flex:none;flex-basis:auto}
 #dayroom .dr-call-notes.can-fold:not(.is-open)>.dr-call-notes-actions:not(:has(.dr-button:not(#dr-call-notes))){display:none}
}
@media (max-height:520px){
 #dayroom .dr-call-notes.can-fold{position:relative}
 #dayroom .dr-call-notes.can-fold .dr-call-notes-fold{display:grid;position:absolute;top:2px;right:2px;width:44px;height:44px}
 #dayroom .dr-call-notes.can-fold>.dr-call-notes-text{padding-right:40px}
 #dayroom .dr-call-notes.can-fold:not(.is-open){flex-wrap:nowrap;align-items:center;min-height:48px;padding:2px 46px 2px 12px}
 #dayroom .dr-call-notes.can-fold:not(.is-open)>.dr-call-notes-text{flex:1 1 auto;padding-right:0}
 #dayroom .dr-call-notes.can-fold:not(.is-open) .dr-call-notes-heading strong,#dayroom .dr-call-notes.can-fold:not(.is-open) :is(.dr-call-notes-copy,.dr-call-notes-quiet,#dr-call-notes){display:none}
 #dayroom .dr-call-notes.can-fold:not(.is-open) .dr-call-notes-count{display:inline;min-width:0;font-size:12px;font-weight:700;color:var(--dr-ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #dayroom .dr-call-notes.can-fold:not(.is-open)>.dr-call-notes-actions{flex:none;flex-basis:auto}
 #dayroom .dr-call-notes.can-fold:not(.is-open)>.dr-call-notes-actions:not(:has(.dr-button:not(#dr-call-notes))){display:none}
}
@media (prefers-reduced-motion:reduce){#dayroom .dr-call-notes-fold svg.dr-i{transition:none}}
/* Short landscape: a slimmer top bar, notes row and control bar give the tiles, People, Chat and a shared screen the height. */
@media (max-height:500px) and (orientation:landscape){
 #dayroom #dr-callbox.dr-call-screen{margin:4px 8px 6px;padding:6px 8px;gap:6px;overflow-y:auto;overscroll-behavior:contain}
 #dayroom #dr-callbox.dr-call-screen>.dr-call-top{height:32px;min-height:32px}
 #dayroom #dr-callbox.dr-call-screen>.dr-call-notes:not(.can-fold){max-height:30dvh;overflow:auto}
 #dayroom #dr-callbox.dr-call-screen>.dr-call-body{min-height:120px}
 #dayroom #dr-callbox.dr-call-screen>.dr-call-controls{padding:2px 6px}
 #dayroom #dr-callbox.dr-call-screen .dr-cbtn{padding:3px 0 2px;gap:1px}
 #dayroom #dr-callbox.dr-call-screen .dr-cbtn .dr-ri{height:28px}
}
/* In-call chat on a phone or a short window is a sheet over the whole screen, sized to what the keyboard leaves
   (--dr-mobile-height, mobile-shell.js); the notes chip stays, and on short screens the control bar gives way to the list. */
@media (max-width:760px),(max-height:500px){
 #dayroom #dr-callbox.dr-call-screen:has(>.dr-call-body.has-chat){position:fixed;left:0;right:0;top:0;bottom:auto;height:var(--dr-mobile-height,100dvh);z-index:45;margin:0;gap:8px;border-radius:0;padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}
 #dayroom #dr-callbox.dr-call-screen:has(>.dr-call-body.has-chat)>.dr-call-notes.can-fold{min-height:0;padding:4px 12px}
 #dayroom #dr-callbox.dr-call-screen:has(>.dr-call-body.has-chat)>.dr-call-notes.can-fold :is(.dr-call-notes-fold,.dr-call-notes-actions){display:none}
}
@media (max-width:760px) and (max-height:560px),(max-height:500px){#dayroom #dr-callbox.dr-call-screen:has(>.dr-call-body.has-chat)>.dr-call-controls{display:none}}
@media (max-height:300px){#dayroom #dr-callbox.dr-call-screen:has(>.dr-call-body.has-chat)>.dr-call-top{display:none}}
/* 16px so iOS doesn't zoom into the field (mobile.css gives every other field 16px; this rule's id outranks it). */
@media (max-width:899px){#dayroom #dr-call-chat-input{font-size:16px}}
/* The minimized call on a phone: one row in the page under the phone bar (title, Mute, Leave, Restore), pushing the
   conversation or office down instead of covering its header, composer or controls; Notes on and Don't transcribe me
   take a second row while notes are live (findings 22, 23). */
@media (max-width:899px){
 #dayroom #dr-product>.dr-mobile-bar{order:-2}
 #dayroom #dr-product>#dr-callbox.dr-call-bar{position:relative;inset:auto;z-index:auto;order:-1;flex:none;flex-direction:row;flex-wrap:wrap;align-items:center;gap:4px;width:auto;max-width:none;max-height:none;margin:6px 8px 0;padding:4px 4px 4px 10px;overflow:visible}
 #dayroom #dr-product>.dr-call-bar :is(.dr-call-body,#dr-camera-call,#dr-share-call,#dr-call-people,#dr-call-move),#dayroom #dr-product>.dr-call-bar>:is(.dr-call-connection,.dr-call-roster){display:none}
 #dayroom #dr-product>.dr-call-bar .dr-call-top{flex:1 1 0;min-width:0;position:static;height:44px;cursor:default;touch-action:auto;background:none}
 #dayroom #dr-product>.dr-call-bar .dr-call-top .dr-iconbtn{width:44px;height:44px}
 #dayroom #dr-product>.dr-call-bar .dr-call-controls{flex:none;order:1}
 #dayroom #dr-product>.dr-call-bar .dr-call-controls .dr-cbtn{flex:none;width:44px;height:44px;padding:0;justify-content:center}
 #dayroom #dr-product>.dr-call-bar .dr-cbtn>span:not(.dr-ri){display:none}
 #dayroom #dr-product>.dr-call-bar>:is(.dr-call-mini-notes,.dr-call-error){order:2;flex-basis:100%}
 #dayroom #dr-product>.dr-call-bar>.dr-call-mini-notes{padding:0 0 2px}
 /* Rooms & DMs opens under the strip (mobile.css places it under the 52px phone bar), so the call stays in reach. */
 #dayroom[data-mobile-nav]:has(#dr-product>#dr-callbox.dr-call-bar) :is(.dr-rail,.dr-sidebar){top:110px}
 #dayroom[data-mobile-nav]:has(#dr-product>#dr-callbox.dr-call-bar>:is(.dr-call-mini-notes,.dr-call-error:not([hidden]))) :is(.dr-rail,.dr-sidebar){top:160px}
}
/* An incoming call over a dialog on a phone: the overlay leaves the card's room (its measured height, call-panel.js) and the
   dialog scrolls in what is left, so its actions stay reachable; in short landscape it leaves the card's side instead. */
@media (max-width:899px){
 #dayroom:has(#dr-incoming .dr-incoming) #dr-overlay{padding-bottom:calc(var(--dr-incoming-h,170px) + 24px + env(safe-area-inset-bottom))}
 #dayroom:has(#dr-incoming .dr-incoming) #dr-overlay>.dr-modal{max-height:100%}
}
@media (max-width:899px) and (max-height:500px){#dayroom:has(#dr-incoming .dr-incoming) #dr-overlay{padding-bottom:8px;padding-right:calc(min(360px,100vw - 32px) + 32px)}}

#dayroom .dr-gathering-compose{padding:6px 10px;border-top:1px solid var(--dr-line)}
#dayroom .dr-gathering-compose label,#dayroom .dr-gathering-toggle{display:flex;align-items:center;gap:8px;font-size:12px;line-height:1.5}
#dayroom .dr-gathering-compose small{display:block;color:var(--dr-muted);font-size:11px;margin-top:4px}
#dayroom .dr-gathering-card{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:8px 0;padding:12px;border:1px solid var(--dr-line);border-radius:12px;background:var(--dr-panel);color:var(--dr-ink);max-width:100%}
#dayroom .dr-gathering-card>div{flex:1;min-width:120px}
#dayroom .dr-gathering-card strong,#dayroom .dr-gathering-card small{display:block;overflow-wrap:anywhere}
#dayroom .dr-gathering-card small{color:var(--dr-muted);font-size:12px;margin-top:4px}
#dayroom .dr-call-chat-form{position:relative;flex-wrap:wrap}
#dayroom .dr-call-chat-form .dr-gathering-toggle{flex:1 1 70%;min-width:0}
#dayroom .dr-call-chat-mentions{position:absolute;bottom:100%;left:8px;right:8px;max-height:180px;overflow:auto;background:var(--dr-panel);border:1px solid var(--dr-line);border-radius:10px;z-index:4;padding:4px}
#dayroom .dr-call-chat-mentions [role=option]{display:flex;align-items:center;width:100%;padding:8px;border:0;background:transparent;color:var(--dr-ink);text-align:left}
#dayroom .dr-call-chat-mentions [aria-selected=true]{background:var(--dr-soft)}
#dayroom #dr-call-chat-input{flex:1 1 calc(100% - 52px);min-width:0}
#dayroom .dr-call-chat-msg.is-own .dr-call-chat-body .dr-mention{color:inherit;background:color-mix(in srgb,currentColor 12%,transparent)}

#dayroom .dr-call-notes.is-compact{align-items:center;flex-wrap:wrap;padding:10px 12px;gap:10px}
#dayroom .dr-call-notes.is-compact .dr-call-notes-fold{display:inline-flex}
#dayroom .dr-call-notes.is-compact .dr-call-notes-status{font:inherit;font-size:12px;letter-spacing:0;text-transform:none}
#dayroom .dr-call-notes.is-compact .dr-call-notes-text{flex:1 1 200px}
#dayroom .dr-call-notes.is-compact p{font-size:12px;margin:4px 0}
#dayroom .dr-notes-switch{display:inline-flex;align-items:center;gap:8px;border:0;background:transparent;color:var(--dr-ink);font:inherit;font-size:12px;padding:6px;min-height:40px;cursor:pointer}
#dayroom .dr-notes-switch-track{display:inline-flex;align-items:center;box-sizing:border-box;width:36px;height:22px;padding:3px;border:1px solid var(--dr-muted);border-radius:20px;background:var(--dr-soft);flex:none}
#dayroom .dr-notes-switch-track>span{width:14px;height:14px;border-radius:50%;background:var(--dr-muted)}
#dayroom .dr-notes-switch[aria-checked=true] .dr-notes-switch-track{background:var(--dr-accent);border-color:var(--dr-accent);justify-content:flex-end}
#dayroom .dr-notes-switch[aria-checked=true] .dr-notes-switch-track>span{background:var(--dr-accent-ink)}
#dayroom .dr-notes-switch:focus-visible{outline:2px solid var(--dr-accent);outline-offset:2px;border-radius:6px}
#dayroom .dr-notes-switch:disabled{opacity:.55;cursor:default}
/* Gather around one table (the landing page's Gather picture): square portrait seats around a pixel table on a rug.
   call-panel.js tablePlan() sizes and places every seat; a stage too small for the smallest seats keeps the grid. */
#dayroom .dr-call-table,#dayroom .dr-ctag-muted{display:none}
#dayroom .dr-call-body[data-layout=table] .dr-call-tiles{position:relative;overflow:hidden}
#dayroom .dr-call-body[data-layout=table] .dr-call-table{display:block;position:absolute;translate:8px 8px;image-rendering:pixelated;pointer-events:none}
#dayroom .dr-call-body[data-layout=table] .dr-call-grid{position:absolute;inset:8px;display:block;min-height:0;pointer-events:none}
#dayroom .dr-call-body[data-layout=table] .dr-call-grid>*{pointer-events:auto}
#dayroom .dr-call-body[data-layout=table] .dr-ctile{position:absolute;left:0;top:0;width:var(--seat);height:var(--seat);overflow:visible;border-radius:16px;transform:translate(var(--x,0),var(--y,0));container-type:normal}
#dayroom .dr-call-body[data-layout=table] .dr-tile-media{border-radius:inherit;overflow:hidden;background:var(--tint,var(--dr-panel));box-shadow:inset 0 0 0 1px var(--dr-line)}
#dayroom .dr-call-body[data-layout=table] .dr-tile-portrait{left:0;bottom:0;width:100%;height:100%;transform:none}
#dayroom .dr-call-body[data-layout=table] .dr-ctile.is-speaking .dr-tile-media{box-shadow:0 0 0 3px #8FD16A,inset 0 0 0 1px rgba(0,0,0,.08)}
#dayroom .dr-call-body[data-layout=table] .dr-ctag{left:50%;bottom:auto;top:calc(100% + 6px);transform:translateX(-50%);max-width:var(--seat-label,120px);padding:4px 8px 4px 7px;align-items:center;font-size:11px}
#dayroom .dr-call-body[data-layout=table] .dr-ctile[data-side=top] .dr-ctag{top:auto;bottom:calc(100% + 6px)}
#dayroom .dr-call-body[data-layout=table] .dr-ctag-dot{margin-top:0}
#dayroom .dr-call-body[data-layout=table] .dr-ctag small{display:none}
#dayroom .dr-call-body[data-layout=table] .dr-ctile.is-muted .dr-ctag-muted{display:inline-flex;flex:none;color:#C9483E}
#dayroom .dr-call-body[data-layout=table] .dr-ctag-muted svg.dr-i{width:12px;height:12px}
/* The shared screen as a card beside the table; its button opens it full size. */
#dayroom .dr-call-screen-open{display:none}
#dayroom .dr-call-body[data-layout=table] .dr-call-presenter{position:absolute;left:0;top:0;width:var(--sw);height:var(--sh);translate:8px 8px;transform:translate(var(--x),var(--y));border-radius:10px;background:#F4F4EF;box-shadow:0 0 0 1px rgba(255,255,255,.12),0 12px 28px -12px rgba(0,0,0,.55)}
#dayroom .dr-call-body[data-layout=table] .dr-call-presenter video{background:#F4F4EF}
#dayroom .dr-call-body[data-layout=table] .dr-call-screen-open{display:block;position:absolute;inset:0;z-index:2;border:0;border-radius:inherit;background:none;cursor:zoom-in}
#dayroom .dr-call-body[data-layout=table] .dr-call-screen-open:focus-visible{outline:2px solid #9BE15D;outline-offset:3px}
#dayroom .dr-call-body[data-layout=table] .dr-call-presenter .dr-ctag{left:8px;bottom:8px;padding:4px 8px;font-size:10.5px}
#dayroom .dr-call-body[data-layout=table] .dr-call-presenter .dr-ctag small{display:none}
#dayroom .dr-call-body[data-layout=table] .dr-share-caption{left:6px;bottom:6px;padding:4px 7px;font-size:10.5px}
#dayroom .dr-call-body[data-layout=table] .dr-share-caption .dr-sharing-laptop{width:18px;height:18px}

/* A gathering's stage is the landing picture: a dark green room in both palettes, a clock and headcount up top,
   and square icon controls (pale green when on, red to leave). Labels stay as each control's name and tooltip. */
#dayroom #dr-callbox.dr-call-screen.is-gather{color:#fff;background:radial-gradient(120% 90% at 50% 0%,#26352d 0%,#18211c 62%,#131a16 100%);box-shadow:0 0 0 1px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.06);
 --dr-ink:#F4F7F5;--dr-ink-2:#DCE5DF;--dr-muted:rgba(255,255,255,.66);--dr-faint:rgba(255,255,255,.5);--dr-line:rgba(255,255,255,.1);--dr-line-2:rgba(255,255,255,.16);--dr-hover:rgba(255,255,255,.1);--dr-sel:rgba(232,242,201,.16);
 --dr-panel:#1F2823;--dr-sunken:#151C18;--dr-soft:#2A342E;--dr-accent-soft:rgba(155,225,93,.16);--dr-accent-text:#B9E98C;--dr-glass-line:rgba(255,255,255,.12);color-scheme:dark}
#dayroom .is-gather .dr-call-top{padding:0 2px 0 8px}
#dayroom .is-gather .dr-call-title{font-size:15px;font-weight:700;color:#fff}
#dayroom .is-gather .dr-call-title .dr-hash{color:rgba(255,255,255,.55)}
#dayroom .is-gather .dr-livedot{width:9px;height:9px;border-radius:2px;background:#9BE15D;box-shadow:0 0 0 2px rgba(155,225,93,.22)}
#dayroom .dr-call-clock{flex:none;font:500 13px/1 'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,monospace;color:rgba(255,255,255,.6);font-variant-numeric:tabular-nums}
#dayroom .is-gather .dr-call-connection{font-size:12px;color:rgba(255,255,255,.55)}
#dayroom .dr-call-count{flex:none;display:inline-flex;align-items:center;gap:8px;height:32px;padding:0 11px;border-radius:9px;background:rgba(255,255,255,.08);color:rgba(255,255,255,.85);font:600 13px/1 'JetBrains Mono',ui-monospace,Menlo,monospace}
#dayroom .dr-call-count svg{width:15px;height:17px}
#dayroom .is-gather .dr-pillbtn{background:rgba(255,255,255,.08);color:#fff;box-shadow:none}
#dayroom .is-gather .dr-pillbtn:hover{background:rgba(255,255,255,.14)}
#dayroom .is-gather .dr-pillbtn .dr-i-table{width:18px;height:14px}
#dayroom .is-gather .dr-call-controls{gap:8px;padding:8px;border-radius:14px;background:rgba(255,255,255,.07);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);-webkit-backdrop-filter:none;backdrop-filter:none}
#dayroom .is-gather .dr-cbtn{width:auto;padding:0;gap:0;border-radius:11px;color:rgba(255,255,255,.88)}
#dayroom .is-gather .dr-cbtn>span:last-child{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#dayroom .is-gather .dr-cbtn .dr-ri{width:54px;height:46px;border-radius:11px;background:rgba(255,255,255,.08)}
#dayroom .is-gather .dr-cbtn .dr-ri svg.dr-i{width:22px;height:22px}
#dayroom .is-gather .dr-cbtn .dr-ri svg.dr-i-table{width:27px;height:21px}
#dayroom .is-gather .dr-cbtn:hover:not(:disabled,[aria-disabled=true]) .dr-ri{background:rgba(255,255,255,.14)}
#dayroom .is-gather .dr-cbtn.is-on{color:#1F3A2C}#dayroom .is-gather .dr-cbtn.is-on .dr-ri,#dayroom .is-gather .dr-cbtn.is-on:hover .dr-ri{background:#E8F2C9}
#dayroom .is-gather .dr-cbtn.is-alert .dr-ri{background:rgba(224,90,79,.22);color:#FF9D8F}
#dayroom .is-gather .dr-cbtn.is-leave .dr-ri,#dayroom .is-gather .dr-cbtn.is-leave:hover .dr-ri{width:84px;background:#C9483E;color:#fff}
#dayroom .is-gather .dr-cbtn:focus-visible{outline:none}#dayroom .is-gather .dr-cbtn:focus-visible .dr-ri{outline:2px solid #9BE15D;outline-offset:2px}
#dayroom .is-gather .dr-cbtn-count{box-shadow:0 0 0 2px #18211c}
#dayroom .is-gather .dr-call-controls .dr-div{height:30px;margin:0 2px;background:rgba(255,255,255,.14)}
#dayroom .is-gather .dr-call-body[data-layout=table] .dr-tile-media{box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)}
#dayroom .is-gather .dr-call-body[data-layout=table] .dr-ctile.is-speaking .dr-tile-media{box-shadow:0 0 0 3px #9BE15D}
#dayroom .is-gather .dr-call-grid:not(.is-table) .dr-ctile{box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)}
@container dr-call-stage (max-width:520px){#dayroom .is-gather .dr-cbtn .dr-ri{width:42px;height:40px}#dayroom .is-gather .dr-cbtn.is-leave .dr-ri{width:56px}#dayroom .is-gather .dr-call-controls{gap:4px;padding:6px}#dayroom .is-gather .dr-call-controls .dr-div{display:none}#dayroom .dr-call-count{height:28px;padding:0 8px}#dayroom .is-gather .dr-pillbtn span{display:none}}
@container dr-call-stage (max-width:380px){#dayroom .is-gather .dr-cbtn .dr-ri{width:36px;height:38px}#dayroom .is-gather .dr-cbtn.is-leave .dr-ri{width:46px}#dayroom .is-gather .dr-call-controls{gap:3px;padding:5px}}
@container dr-call-stage (max-width:520px){#dayroom .is-gather .dr-call-top{flex-wrap:nowrap;gap:8px}#dayroom .is-gather .dr-call-title{font-size:14px}#dayroom .is-gather .dr-call-top .dr-pillbtn{flex:none;width:34px;padding:0;justify-content:center}}
/* Around the table your own seat reads "YOU": your name stays for screen readers. */
#dayroom .dr-call-body[data-layout=table] .dr-ctag.is-self .dr-ctag-nm{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#dayroom .dr-call-body[data-layout=table] .dr-ctag.is-self .dr-you{margin-left:0}
@container dr-call-stage (max-width:330px){#dayroom .is-gather .dr-cbtn .dr-ri{width:33px;height:38px}#dayroom .is-gather .dr-cbtn.is-leave .dr-ri{width:40px}#dayroom .is-gather .dr-call-controls{gap:2px;padding:4px}}
/* Empty chairs: pick one to move there; everyone in the gathering sees the move. */
#dayroom .dr-call-seat{display:none}
#dayroom .dr-call-body[data-layout=table] .dr-call-seat:not([hidden]){position:absolute;left:0;top:0;width:var(--seat);height:var(--seat);transform:translate(var(--x,0),var(--y,0));display:grid;place-items:center;padding:0;border:0;border-radius:16px;background:rgba(255,255,255,.04);box-shadow:inset 0 0 0 2px rgba(255,255,255,.14);color:rgba(255,255,255,.34);cursor:pointer}
#dayroom .dr-call-body[data-layout=table] .dr-call-seat svg.dr-i-chair{width:calc(var(--seat) * .3);height:calc(var(--seat) * .34)}
#dayroom .dr-call-body[data-layout=table] .dr-call-seat>span{position:absolute;left:50%;top:calc(100% + 6px);transform:translateX(-50%);padding:4px 8px;border-radius:10px;background:#E8F2C9;color:#1F3A2C;font:700 11px/1 'Manrope',system-ui,sans-serif;white-space:nowrap;opacity:0;pointer-events:none}
#dayroom .dr-call-body[data-layout=table] .dr-call-seat[data-side=top]>span{top:auto;bottom:calc(100% + 6px)}
#dayroom .dr-call-body[data-layout=table] .dr-call-seat:is(:hover,:focus-visible){background:rgba(155,225,93,.12);box-shadow:inset 0 0 0 2px #9BE15D;color:#B9E98C;outline:none}
#dayroom .dr-call-body[data-layout=table] .dr-call-seat:is(:hover,:focus-visible)>span{opacity:1}
/* The pencil and notepad the companion writes on in its dashboard (below): each line is written in turn.
   Reduced motion shows the finished page and a resting pencil. */
#dayroom .dr-scribe-pad{position:absolute;left:18%;right:18%;bottom:8%;height:30%;border-radius:3px;background:#F4EFE4;box-shadow:0 0 0 2px #203b34,0 3px 0 2px rgba(0,0,0,.25);overflow:visible}
#dayroom .dr-scribe-pad::before{content:"";position:absolute;left:0;right:0;top:0;height:10%;min-height:2px;border-radius:3px 3px 0 0;background:#E0533F}
#dayroom .dr-scribe-pad>i:not(.dr-scribe-pen){position:absolute;left:10%;height:max(2px,7%);width:0;background:#56625B}
#dayroom .dr-scribe-pad>i:nth-child(1){top:30%;animation:dr-jot-1 3.6s infinite}
#dayroom .dr-scribe-pad>i:nth-child(2){top:52%;animation:dr-jot-2 3.6s infinite}
#dayroom .dr-scribe-pad>i:nth-child(3){top:74%;animation:dr-jot-3 3.6s infinite}
#dayroom .dr-scribe-pen{position:absolute;left:10%;top:30%;width:max(9px,16%);aspect-ratio:6/9;transform:translate(-12%,-88%);animation:dr-jot-pen 3.6s infinite}
#dayroom .dr-scribe-pen svg{display:block;width:100%;height:100%}
@keyframes dr-jot-1{0%{width:0;animation-timing-function:steps(7,end)}30%{width:78%}92%{width:78%}100%{width:0}}
@keyframes dr-jot-2{0%,33%{width:0;animation-timing-function:steps(6,end)}63%{width:60%}92%{width:60%}100%{width:0}}
@keyframes dr-jot-3{0%,66%{width:0;animation-timing-function:steps(6,end)}90%{width:70%}92%{width:70%}100%{width:0}}
@keyframes dr-jot-pen{0%{left:10%;top:30%;animation-timing-function:steps(7,end)}30%{left:88%;top:30%;animation-timing-function:steps(1,end)}33%{left:10%;top:52%;animation-timing-function:steps(6,end)}63%{left:70%;top:52%;animation-timing-function:steps(1,end)}66%{left:10%;top:74%;animation-timing-function:steps(6,end)}90%{left:80%;top:74%;animation-timing-function:steps(1,end)}100%{left:10%;top:30%}}
#dayroom .dr-scribe-rec{flex:none;width:7px;height:7px;border-radius:50%;background:#E0533F;animation:dr-scribe-rec 1.2s steps(2,end) infinite}
@keyframes dr-scribe-rec{50%{opacity:.35}}
@media (prefers-reduced-motion:reduce){#dayroom .dr-scribe-pad>i,#dayroom .dr-scribe-pen,#dayroom .dr-scribe-rec{animation:none}#dayroom .dr-scribe-pad>i:nth-child(1){width:78%}#dayroom .dr-scribe-pad>i:nth-child(2){width:60%}#dayroom .dr-scribe-pad>i:nth-child(3){width:70%}#dayroom .dr-scribe-pen{left:80%;top:74%}}

/* The agent's dashboard beside the table (the landing picture's card): the companion writing with pen and paper,
   the lines it is noting, and the to-dos it is drafting. Shown only while notes are really being taken, and during
   the wrap-up after the gathering. */
#dayroom .dr-agent-board{display:none}
#dayroom .dr-call-body[data-layout=table] .dr-agent-board:not([hidden]){position:absolute;left:0;top:0;width:var(--bw);height:var(--bh);transform:translate(var(--x,0),var(--y,0));display:grid;grid-template-columns:1fr 1.2fr 1.2fr;gap:6px;padding:7px;border-radius:10px;background:#F4F4EF;color:#1F3A2C;box-shadow:0 0 0 1px rgba(255,255,255,.12),0 12px 28px -12px rgba(0,0,0,.55)}
/* A phone's slim strip above the table: the writing companion and its to-dos. */
#dayroom .dr-call-body[data-layout=table] .dr-agent-board.is-wide:not([hidden]){grid-template-columns:minmax(64px,.55fr) 1.8fr;gap:5px;padding:5px}
#dayroom .dr-agent-board.is-wide .dr-ab-state span{display:none}
#dayroom .dr-agent-board.is-wide .dr-ab-col{padding:4px 7px;gap:2px}
#dayroom .dr-agent-board.is-wide .dr-ab-col:nth-child(2){display:none}
#dayroom .dr-agent-board.is-wide .dr-ab-bot{top:4%;width:min(46%,34px)}
#dayroom .dr-agent-board.is-wide .dr-ab-writer .dr-scribe-pad{bottom:26%;height:26%}
#dayroom .dr-agent-board.is-wide .dr-ab-state{font-size:8.5px;bottom:3px}
#dayroom .dr-agent-board.is-wide .dr-ab-col li{-webkit-line-clamp:1;flex:none}
#dayroom .dr-agent-board.is-wide .dr-ab-col li:nth-child(n+3){display:none}
#dayroom .dr-ab-writer{position:relative;min-width:0;overflow:hidden;border-radius:7px;background:linear-gradient(#E9F4FB,#fff 72%);box-shadow:0 0 0 .75px rgba(0,0,0,.08)}
#dayroom .dr-ab-bot{position:absolute;left:50%;top:6%;width:min(58%,64px);aspect-ratio:1;transform:translateX(-50%)}
#dayroom .dr-ab-bot svg{display:block;width:100%;height:100%;border-radius:6px}
#dayroom .dr-ab-writer .dr-scribe-pad{left:14%;right:14%;bottom:24%;height:30%}
#dayroom .dr-ab-state{position:absolute;left:0;right:0;bottom:5px;display:flex;align-items:center;justify-content:center;gap:4px;font:800 9.5px/1 'Manrope',system-ui,sans-serif;color:#1F3A2C;white-space:nowrap}
#dayroom .dr-ab-col{min-width:0;display:flex;flex-direction:column;gap:4px;padding:6px 7px;overflow:hidden;border-radius:7px;background:#fff;box-shadow:0 0 0 .75px rgba(0,0,0,.08),0 2px 6px rgba(0,0,0,.05)}
#dayroom .dr-ab-h{display:flex;align-items:baseline;gap:4px;font:800 10px/1.2 'Manrope',system-ui,sans-serif;color:#1F3A2C}
#dayroom .dr-ab-h small{font-size:9px;font-weight:700;color:#6B766F}
#dayroom .dr-ab-col :is(ol,ul){display:flex;flex-direction:column;gap:4px;margin:0;padding:0;list-style:none;min-height:0;overflow:hidden}
#dayroom .dr-ab-col li{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;font:600 10.5px/1.25 'Manrope',system-ui,sans-serif;color:#33403A;overflow-wrap:anywhere}
#dayroom .dr-ab-todos li:not(.dr-ab-empty)::before{content:"";display:inline-block;width:7px;height:7px;margin-right:5px;vertical-align:0;border:1.5px solid #1F5A41;border-radius:2px}
#dayroom .dr-ab-col li.dr-ab-empty{font-weight:600;color:#7A847D}
#dayroom .dr-ab-col li.is-new{animation:dr-ab-write .9s steps(9,end) both}
@keyframes dr-ab-write{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
#dayroom .dr-agent-board.is-done :is(.dr-scribe-pad>i,.dr-scribe-pen){animation:none}
#dayroom .dr-agent-board.is-done .dr-scribe-pad>i:nth-child(1){width:78%}#dayroom .dr-agent-board.is-done .dr-scribe-pad>i:nth-child(2){width:60%}#dayroom .dr-agent-board.is-done .dr-scribe-pad>i:nth-child(3){width:70%}
#dayroom .dr-agent-board.is-done .dr-scribe-pen{left:80%;top:74%}
#dayroom .dr-agent-board.is-done .dr-scribe-rec{animation:none;background:#3DAA6D}
@media (prefers-reduced-motion:reduce){#dayroom .dr-ab-col li.is-new{animation:none}}
/* After the gathering: the meeting notes slide from the dashboard to every seat. Yours opens them. */
#dayroom .dr-note-slip{position:absolute;left:0;top:0;z-index:2;display:flex;flex-direction:column;justify-content:center;gap:12%;width:var(--sw);height:var(--sh);padding:0 calc(var(--sw) * .16);border:0;border-radius:2px;background:#F4EFE4;box-shadow:0 0 0 2px #203B34,0 4px 0 2px rgba(0,0,0,.28);opacity:0;transform:translate(var(--x0),var(--y0)) rotate(-10deg);transition:transform .8s cubic-bezier(.2,.8,.2,1) calc(var(--i,0) * .16s),opacity .15s linear calc(var(--i,0) * .16s)}
#dayroom .dr-note-slip>i{display:block;height:max(2px,calc(var(--sh) * .07));background:#56625B}
#dayroom .dr-note-slip>i:nth-child(2){width:80%}#dayroom .dr-note-slip>i:nth-child(3){width:60%}
#dayroom .dr-note-slip.is-sent{opacity:1;transform:translate(var(--x),var(--y)) rotate(0)}
#dayroom button.dr-note-slip.is-mine{cursor:pointer;box-shadow:0 0 0 2px #9BE15D,0 4px 0 2px rgba(0,0,0,.28)}
#dayroom button.dr-note-slip.is-mine.is-sent:hover{transform:translate(var(--x),calc(var(--y) - 3px))}
#dayroom button.dr-note-slip:focus-visible{outline:2px solid #9BE15D;outline-offset:3px}
@media (prefers-reduced-motion:reduce){#dayroom .dr-note-slip{transition:none}}
/* The wrap-up keeps the table up while the notes are written; no chairs to move to, no call controls. */
#dayroom .is-wrap .dr-call-seat{display:none!important}
#dayroom .dr-livedot.is-ended{background:#8A948D;box-shadow:none}
#dayroom .dr-wrap-foot{flex:none;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px 14px;padding-bottom:4px}
#dayroom .dr-wrap-status{margin:0;font-size:13px;font-weight:600;color:rgba(255,255,255,.82);text-align:center}
#dayroom .is-wrap .dr-wrap-actions{gap:8px;padding:6px}
#dayroom .is-wrap .dr-wrap-actions .dr-button{min-height:38px;padding:0 16px;border-radius:10px}
#dayroom .is-wrap .dr-wrap-actions .dr-button:not(.dr-primary){background:rgba(255,255,255,.1);color:#fff;box-shadow:none}

/* Sidebar lists, messages and composer details that later Window tasks restyle. The shell layout (rail, sidebar, main pane) lives in window.css. */
#dayroom #dr-people-search{padding:4px 0 8px}
#dayroom #dr-people-search .dr-field{padding:4px;margin:0 0 4px}
#dayroom .dr-messages{padding:16px;min-height:0;gap:8px}
#dayroom .dr-messages article{padding:8px;line-height:1.55}
#dayroom .dr-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(max-width:760px){#dayroom .dr-messages{min-height:120px}}
#dayroom .dr-dm-empty{padding:8px 4px}
#dayroom .dr-message-content{min-width:0;overflow-wrap:anywhere}
/* #dr-companion-activity loads before surfaces.css, so a bare .dr-companion-summary (same specificity as
   .dr-card-body, now its other class) would lose padding-top to .dr-card-body's own padding shorthand by
   file order alone; scoping to its host id keeps this win regardless of load order. */
#dayroom #dr-companion-activity .dr-companion-summary{white-space:pre-wrap;max-height:200px;overflow:auto;line-height:1.6;padding-top:12px}

#dayroom .dr-rail-more{width:100%;display:flex;flex-direction:column;align-items:center}
#dayroom .dr-rail-more>summary{list-style:none;cursor:pointer;margin-inline:auto}
#dayroom .dr-rail-more>summary::-webkit-details-marker{display:none}
#dayroom .dr-rail-more>.dr-rail-button{margin-inline:auto}

/* One compact row of familiar conversation views, including on narrow phones. */
#dayroom .dr-chat-filters{display:flex;gap:4px;padding:4px 0 10px}
#dayroom .dr-chat-filters button{flex:1;min-width:0;padding:7px 3px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--dr-muted);font:inherit;font-size:12px;font-weight:700}
#dayroom .dr-chat-filters button:hover{background:var(--dr-hover);color:var(--dr-ink)}
#dayroom .dr-chat-filters button[aria-pressed="true"]{background:var(--dr-accent-soft);border-color:var(--dr-line-2);color:var(--dr-accent-text)}
#dayroom .dr-chat-filters button:focus-visible{outline:2px solid var(--dr-accent-text);outline-offset:2px}
#dayroom .dr-chat-filter-empty{padding:12px 4px;font-size:13px}

/* Quiet daily controls, drawn from the same woodland palette as the office. */
#dayroom select:not([multiple]),#dayroom :is(.dr-modal,.dr-workspace-pages) select:not([multiple]){appearance:none;-webkit-appearance:none;padding-right:44px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%238f9e92' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 16px center;background-size:16px}
#dayroom .dr-agent-portrait{color:var(--dr-accent);font-size:26px}
#dayroom .dr-command-hint{font-size:12px;color:var(--dr-accent);margin:0 0 10px}
#dayroom .dr-message-task{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--dr-line);background:var(--dr-soft);border-radius:10px;padding:12px;margin-top:12px;color:var(--dr-text);text-align:left;cursor:pointer;max-width:100%;font-size:13px}
#dayroom .dr-message-task strong{color:var(--dr-accent)}#dayroom .dr-message-task small{display:block;color:var(--dr-muted);margin-top:5px}

#dayroom .dr-calendar-day{margin-top:24px}
#dayroom .dr-calendar-day h2{font-size:18px;margin-bottom:14px}
#dayroom .dr-calendar-agenda{list-style:none;padding:0;margin:0}
#dayroom .dr-calendar-agenda>li{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 0;border-bottom:1px solid var(--dr-line)}
#dayroom .dr-calendar-agenda>li>div{min-width:0;overflow-wrap:anywhere}
#dayroom .dr-calendar-agenda p{color:var(--dr-muted);font-size:13px;margin:5px 0}
#dayroom .dr-calendar-links{display:flex;gap:8px;flex-wrap:wrap;flex-shrink:0}
#dayroom .dr-calendar-editor{max-width:720px;margin:0 auto}
#dayroom .dr-calendar-editor h2{font-size:20px;margin:0 0 20px}
#dayroom .dr-calendar-editor fieldset{border:0;padding:0;margin:0;min-width:0;display:grid;gap:16px}
#dayroom .dr-calendar-editor .dr-field{display:grid;gap:8px;margin:0;min-width:0}
#dayroom .dr-calendar-editor input,#dayroom .dr-calendar-editor select,#dayroom .dr-calendar-editor textarea{width:100%;box-sizing:border-box;min-width:0}
#dayroom .dr-calendar-editor input,#dayroom .dr-calendar-editor select{height:42px}
#dayroom .dr-calendar-times{display:grid;grid-template-columns:1fr 1fr;gap:16px}
#dayroom #calendar-form-error{color:var(--dr-error-text)}
@media(max-width:600px){#dayroom .dr-calendar-times{grid-template-columns:1fr}#dayroom .dr-calendar-editor .dr-calendar-links{flex-direction:column;align-items:stretch}}

/* Main Calendar deliberately shares the Works month grid and meeting-card surfaces. */
#dayroom .dr-meeting-card{text-decoration:none}
#dayroom .dr-meeting-time{font-size:11px;font-weight:700;color:var(--dr-accent-text)}
#dayroom .dr-meeting-room{font-size:11px;color:var(--dr-muted);overflow-wrap:anywhere}
#dayroom .dr-meeting-card.is-cancelled .dw-task-title{text-decoration:line-through}
#dayroom .dr-meetings-page .dw-calendar:not(:has(.dw-calendar-item,.is-today))::after{content:'No meetings this month.'}
#dayroom .dr-meetings-page .dr-meeting-month-bar select{min-height:36px}
@media(max-width:700px){
 #dayroom .dr-meetings-page .dr-meeting-month-bar :is(#calendar-prev,#calendar-next){width:36px;min-width:36px;padding:0;font-size:0}
 #dayroom .dr-meetings-page .dr-meeting-month-bar :is(#calendar-prev,#calendar-next)::before{content:'‹';font-size:20px}
 #dayroom .dr-meetings-page .dr-meeting-month-bar #calendar-next::before{content:'›'}
 #dayroom .dr-meetings-page .dr-meeting-month-bar select{width:92px;padding-left:8px;padding-right:26px;font-size:12px}
 #dayroom .dr-meetings-page .dr-meeting-month-bar #calendar-today{padding-inline:8px;font-size:12px}
 #dayroom .dr-calendar-agenda>li{align-items:flex-start;flex-direction:column}
}

@media(max-width:700px){
 #dayroom .dr-meetings-page .dr-meeting-month-bar{flex-wrap:wrap}
 #dayroom .dr-meetings-page .dr-meeting-month-bar>label{order:5;flex:1 0 100%;margin-top:4px}
 #dayroom .dr-meetings-page .dr-meeting-month-bar select{width:100%;padding-right:40px}
 #dayroom .dr-meetings-page .dr-meeting-month-bar h3{min-width:100px;overflow-wrap:normal}
}

/* Calendar actions stay together against the header's right edge. */
#dayroom #dr-work-page.dr-meetings-page .dr-page-head{align-items:center}
#dayroom #dr-work-page.dr-meetings-page .dr-page-titles{flex:1 1 260px;min-width:0}
#dayroom #dr-work-page.dr-meetings-page .dr-page-actions{flex:0 0 auto;margin-left:auto;justify-content:flex-end}

/* Controls keep their own space; an action row never touches its form fields. */
#dayroom .dr-calendar-editor>.dr-calendar-links{margin-top:24px;gap:12px;align-items:center;padding-bottom:24px}
#dayroom .dr-calendar-links .dr-button{flex-shrink:0;min-height:44px;padding:10px 18px;white-space:normal}
#dayroom #calendar-form-error:empty{display:none}
#dayroom .dr-meeting-month-bar{gap:12px;flex-wrap:wrap}
#dayroom .dr-meeting-month-bar>.dr-button{flex-shrink:0;min-height:40px}
#dayroom .dr-day-scroll{height:clamp(360px,65vh,860px);overflow:auto;border:1px solid var(--dr-line);border-radius:16px;padding-top:12px;background:var(--dr-panel)}
#dayroom .dr-time-grid{position:relative;min-width:260px}
#dayroom .dr-time-row{display:grid;grid-template-columns:72px 1fr;height:64px}
#dayroom .dr-time-row time{font-size:12px;color:var(--dr-muted);padding:0 12px;text-align:right;transform:translateY(-8px);white-space:nowrap}
#dayroom .dr-time-row>div{border-top:1px solid var(--dr-line)}
#dayroom .dr-time-events{position:absolute;inset:0 16px 0 72px;pointer-events:none}
#dayroom .dr-time-event{position:absolute;box-sizing:border-box;padding:2px 6px 2px 0;pointer-events:auto}
#dayroom .dr-time-event .dw-calendar-item{height:100%;margin:0}
#dayroom .dr-time-event .dr-meeting-card{height:100%;width:100%;min-height:0;box-sizing:border-box;overflow:auto;padding:8px 12px;border-left:3px solid var(--dr-accent-text);gap:4px;justify-content:flex-start}
#dayroom .dr-time-event .dw-task-title{font-size:13px;overflow-wrap:anywhere}
#dayroom .dr-time-event .dr-meeting-room{display:none}
#dayroom .dr-all-day{display:grid;grid-template-columns:72px 1fr;gap:0;padding:12px 16px 16px 0}
#dayroom .dr-all-day>span{font-size:12px;color:var(--dr-muted);padding:10px 12px}
#dayroom .dr-all-day>div{display:grid;gap:8px;min-width:0}
#dayroom .dr-all-day .dr-meeting-card{min-height:0;padding:10px 12px;gap:4px}
#dayroom .dr-all-day .dr-meeting-time{display:none}
#dayroom div.dr-meeting-card{cursor:default}
@media(max-width:600px){
 #dayroom .dr-calendar-editor>.dr-calendar-links{gap:12px;margin-top:24px}
 #dayroom .dr-calendar-editor>.dr-calendar-links .dr-button{width:100%;min-height:44px}
 #dayroom .dr-time-row{grid-template-columns:56px 1fr}
 #dayroom .dr-time-row time{padding-inline:6px;font-size:11px}
 #dayroom .dr-time-events{left:56px;right:8px}
 #dayroom .dr-time-event .dr-meeting-card{padding:6px 8px}
}
#dayroom .dr-time-row>div{display:grid;grid-template-rows:1fr 1fr}
#dayroom .dr-time-slot{appearance:none;border:0;background:transparent;width:100%;min-height:0;padding:0;cursor:pointer;border-radius:0}
#dayroom .dr-time-slot:hover,#dayroom .dr-time-slot:focus-visible{background:color-mix(in srgb,var(--dr-accent-text) 12%,transparent);outline:2px solid var(--dr-accent-text);outline-offset:-2px}
#dayroom .dr-time-preview{height:100%;box-sizing:border-box;padding:8px 12px;background:var(--dr-accent-text);color:var(--dr-bg);border-radius:8px;font-weight:600}
#dayroom .dr-meeting-dialog{width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 48px);margin:auto;padding:24px;border:1px solid var(--dr-line);border-radius:20px;background:var(--dr-panel);color:var(--dr-ink);box-shadow:0 18px 60px #0005;overflow:auto;box-sizing:border-box}
#dayroom .dr-meeting-dialog::backdrop{background:#0004}
#dayroom .dr-meeting-dialog .dr-calendar-editor{max-width:none;margin:0}
#dayroom .dr-meeting-dialog .dr-calendar-editor>.dr-calendar-links{padding-bottom:0;justify-content:flex-end}
#dayroom .dr-meeting-dialog .dr-calendar-editor h2{font-size:20px;margin-bottom:20px}
@media(max-width:600px){#dayroom .dr-meeting-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:20px;border-radius:16px}}
#dayroom .dr-meeting-dialog .dr-calendar-editor>.dr-calendar-links{position:sticky;bottom:-24px;background:var(--dr-panel);padding:16px 0 4px;z-index:1}
#dayroom .dr-meeting-dialog textarea{min-height:72px}
@media(max-width:600px){#dayroom .dr-meeting-dialog .dr-calendar-editor>.dr-calendar-links{bottom:-20px}}

#dayroom .dr-calendar-dismiss{float:right;width:36px;height:36px;min-width:36px;margin:-4px 0 8px 12px;padding:0;font-size:20px}
/* Scroll the fields, not beneath the actions; the footer never covers a field. */
#dayroom .dr-meeting-dialog .dr-calendar-editor{position:relative;display:flex;flex-direction:column;max-height:calc(100dvh - 98px)}
#dayroom .dr-meeting-dialog .dr-calendar-editor>fieldset{overflow:auto;flex:1 1 auto;min-height:0;padding-right:4px}
#dayroom .dr-meeting-dialog .dr-calendar-editor>h2{flex:0 0 auto;padding-right:44px;min-height:28px}
#dayroom .dr-meeting-dialog .dr-calendar-editor>.dr-calendar-links{position:static;flex:0 0 auto;padding:0;margin-top:24px}
#dayroom .dr-calendar-dismiss{position:absolute;right:0;top:0;float:none;margin:0}
@media(max-width:600px){#dayroom .dr-meeting-dialog .dr-calendar-editor{max-height:calc(100dvh - 66px)}}

#dayroom .dr-meeting-notes summary{cursor:pointer;padding:8px 0;font-weight:600}
#dayroom .dr-meeting-notes[open] summary{margin-bottom:8px}
/* Short windows use one scrollable form instead of crushing its field area. */
@media(max-height:560px){
 #dayroom .dr-meeting-dialog .dr-calendar-editor{max-height:none}
 #dayroom .dr-meeting-dialog .dr-calendar-editor>fieldset{overflow:visible;flex:none}
}

#dayroom .dr-message-citation{display:inline;padding:0 3px;border:0;background:transparent;color:var(--dr-ink);font:inherit;text-decoration:underline;cursor:pointer}
#dayroom .dr-answer-text{white-space:normal;line-height:1.6;overflow-wrap:anywhere;text-wrap:pretty}
#dayroom .dr-answer-text p{margin:0 0 12px}
#dayroom .dr-answer-text :is(ul,ol){margin:0 0 12px;padding-inline-start:22px}
#dayroom .dr-answer-text li{margin:4px 0;padding-inline-start:2px}
#dayroom .dr-answer-text strong{font-weight:600}
#dayroom .dr-answer-text a{color:inherit;text-decoration:underline;text-underline-offset:3px}
#dayroom .dr-answer-text blockquote{margin:0 0 12px;padding-inline-start:12px;border-inline-start:2px solid var(--dr-line);color:var(--dr-muted)}
#dayroom .dr-answer-text code{font-family:ui-monospace,monospace;font-size:.9em;white-space:pre-wrap}
#dayroom .dr-answer-text pre{margin:0 0 12px;padding:12px;background:var(--dr-panel);border:1px solid var(--dr-line);overflow:auto;white-space:pre;text-wrap:nowrap}
#dayroom .dr-answer-text pre code{white-space:pre}
#dayroom .dr-answer-text>:last-child{margin-bottom:0}
#dayroom .dr-answer-source-label{color:var(--dr-muted);font-size:.85em;white-space:nowrap}

.dr-note-transcription{margin-top:10px}.dr-note-transcript-text{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0;line-height:1.5}.dr-note-transcription .dr-hint:empty{display:none}

.dr-shared-file{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.dr-shared-file .dr-attachment{min-width:0;overflow-wrap:anywhere}

#dayroom .dr-download-button{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;min-width:36px;min-height:36px;padding:0;flex-shrink:0;border:1px solid var(--dr-line);border-radius:8px;background:var(--dr-panel);color:var(--dr-ink);text-decoration:none}
#dayroom .dr-download-button:hover{background:var(--dr-bg)}
#dayroom .dr-download-button:focus-visible{outline:2px solid var(--dr-ink);outline-offset:3px}
#dayroom .dr-note-download{margin-left:auto;display:inline-flex;align-items:center;gap:8px;color:var(--dr-muted);font-size:12px}
#dayroom .dr-note-heading{align-items:center}

#dayroom .dr-note-actions{display:flex;flex-direction:column;align-items:center;gap:6px;flex:none}
#dayroom .dr-chat-media:not(.is-video) .dr-note-controls{display:grid;grid-template-columns:34px minmax(0,1fr) 36px;gap:4px 10px;align-items:center}
#dayroom .dr-chat-media:not(.is-video) .dr-note-actions{display:contents}
#dayroom .dr-chat-media:not(.is-video) .dr-note-play{grid-area:1 / 1}
#dayroom .dr-chat-media:not(.is-video) .dr-note-track{grid-area:1 / 2}
#dayroom .dr-chat-media:not(.is-video) .dr-note-speed{grid-area:1 / 3}
#dayroom .dr-chat-media:not(.is-video) .dr-download-button{grid-area:2 / 3;align-self:start}
#dayroom .dr-chat-media:not(.is-video) .dr-note-transcription{grid-area:2 / 1 / auto / 3;margin-top:0;min-width:0}
#dayroom .dr-chat-media:not(.is-video) .dr-note-speed{height:34px;min-width:36px}

/* Keep the history explanation intact inside the scrolling message flex column. */
#dayroom .dr-history-limit{flex:none}
#dayroom .dr-history-limit .dr-button{align-self:flex-start}


/* Referenced messages remain readable and operable without hover, including on phones. */
#dayroom .dr-message-citation.dr-message-reference,#dayroom .dr-message-body .dr-message-citation.dr-message-reference{display:flex;flex-direction:column;vertical-align:top;box-sizing:border-box;width:100%;max-width:360px;min-width:0;margin:5px 0;padding:9px 12px;gap:4px;border:1px solid var(--dr-line);border-inline-start:3px solid var(--dr-ink);border-radius:6px;background:var(--dr-panel);color:var(--dr-ink);text-align:start;text-decoration:none;white-space:normal;overflow-wrap:anywhere;line-height:1.4}
#dayroom .dr-reference-heading{font-size:.85em;font-weight:700}
#dayroom .dr-reference-excerpt{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;font-weight:400}
#dayroom .dr-reference-open{font-size:.8em;text-decoration:underline}
#dayroom .dr-message-reference:focus-visible{outline:2px solid var(--dr-ink);outline-offset:3px}

/* Character studio and square portraits. Loads after product.css and chat-bubbles.css, whose older portrait rules these extend. */
/* The overlay sets a dialog 64px from the top with 24px below, so it stops at 100dvh - 88px like every dialog. The studio
   gets what is left after the dialog header (60px) and the body's padding (48px), and its minimum never exceeds that,
   so Save, Surprise me and Undo stay on screen at any window height. */
#dayroom .dr-modal:has(.dp-studio){width:min(1080px,calc(100vw - 32px));max-height:calc(100dvh - 88px)}
#dayroom .dp-studio{display:grid;grid-template-columns:300px minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:0;min-height:min(520px,calc(100dvh - 196px));max-height:calc(100dvh - 196px)}
#dayroom .dp-left{display:flex;flex-direction:column;gap:14px;padding:4px 18px 16px 2px;border-right:1px solid var(--dr-line);min-height:0;overflow:auto}
/* A short window scrolls the left column rather than squeezing the preview stage. */
#dayroom .dp-left>*{flex:none}
#dayroom .dp-stage{position:relative;height:264px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(180deg,var(--dr-soft),color-mix(in srgb,var(--dr-soft) 60%,var(--dr-bg)));box-shadow:inset 0 0 0 1px var(--dr-line);overflow:hidden}
#dayroom .dp-stage::after{content:'';position:absolute;left:0;right:0;bottom:0;height:52px;background:repeating-linear-gradient(90deg,rgba(0,0,0,.06) 0 23px,rgba(0,0,0,.1) 23px 24px)}
#dayroom .dp-preview{position:relative;z-index:1;image-rendering:pixelated;width:160px;height:224px}
#dayroom .dp-turn{position:absolute;z-index:2;top:44%;width:36px;height:36px;border-radius:12px;border:1px solid var(--dr-line);background:var(--dr-panel);color:var(--dr-ink);font-size:16px;cursor:pointer}
#dayroom .dp-turn[data-turn="-1"]{left:10px}#dayroom .dp-turn[data-turn="1"]{right:10px}
/* The view label sits in the bottom-left corner: no look paints there (the gele reaches the top corners, shoes the bottom middle). */
#dayroom .dp-view{position:absolute;z-index:2;bottom:10px;left:10px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--dr-muted);background:var(--dr-panel);padding:4px 9px;border-radius:8px}
#dayroom .dp-describe{margin:0;font-size:12.5px;line-height:1.45;color:var(--dr-muted)}
#dayroom .dp-label{margin:0 0 8px;font-size:11.5px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;color:var(--dr-muted)}
#dayroom .dp-chips{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
#dayroom .dp-chip{height:32px;padding:0 11px;border-radius:10px;border:1px solid var(--dr-line);background:var(--dr-panel);color:var(--dr-ink);font:inherit;font-size:12.5px;font-weight:700;cursor:pointer}
#dayroom .dp-chip[aria-pressed="true"]{background:color-mix(in srgb,var(--dr-accent) 22%,var(--dr-panel));border-color:var(--dr-accent)}
#dayroom .dp-add{border-style:dashed;color:var(--dr-muted)}#dayroom .dp-suggest{color:var(--dr-muted)}
#dayroom .dp-outfit{display:inline-flex;align-items:center}#dayroom .dp-outfit .dp-chip{border-radius:10px 0 0 10px}
#dayroom .dp-remove{height:32px;width:26px;border:1px solid var(--dr-line);border-left:0;border-radius:0 10px 10px 0;background:var(--dr-panel);color:var(--dr-muted);cursor:pointer}
/* Minor 4: .dp-left (above) scrolls with only 2px of left padding, so the shared outset ring (rule 2) lost
   its left 2px on a chip standing at that edge. Inset, like the sidebar rows that have the same problem. */
#dayroom .dp-chip:focus-visible,#dayroom .dp-remove:focus-visible{outline:2px solid var(--dr-accent);outline-offset:-2px}
#dayroom .dp-name-form{display:flex;gap:6px}#dayroom .dp-name-form input{height:32px;border-radius:10px;font:inherit;width:140px}
#dayroom .dp-right{display:flex;flex-direction:column;min-width:0;min-height:0}
/* Whole-branch review I1: .dp-right is a flex column with .dp-tabs above the scrolling .dp-panel. overflow-x:auto
   here forces overflow-y away from visible too (same rule Minor 4 above already notes for the focus ring), and
   that strips this row's automatic minimum size down to 0 instead of its tabs' own 40px: a tall panel (Clothes'
   tile grid, at a short window) then shrinks the row instead of just scrolling further below it. flex:none pins
   it to its content height, same fix shape as .dp-left>* above. */
#dayroom .dp-tabs{display:flex;flex:none;gap:2px;padding:0 14px;border-bottom:1px solid var(--dr-line);overflow-x:auto}
#dayroom .dp-tab{height:40px;padding:0 12px;border:0;border-bottom:2px solid transparent;background:none;color:var(--dr-muted);font:inherit;font-size:13.5px;font-weight:800;cursor:pointer;white-space:nowrap}
#dayroom .dp-tab[aria-selected="true"]{color:var(--dr-ink);border-bottom-color:var(--dr-accent)}
/* Minor 4: .dp-tabs (above) sets overflow-x:auto with no vertical padding, which also makes overflow-y
   compute to auto, clipping the shared outset ring's (rule 2) top and bottom. Inset instead. */
#dayroom .dp-tab:focus-visible{outline:2px solid var(--dr-accent);outline-offset:-2px}
#dayroom .dp-panel{padding:14px 14px 18px;overflow:auto;min-height:0}
#dayroom .dp-group{margin:0 0 16px}
#dayroom .dp-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(74px,1fr));gap:8px}
#dayroom .dp-tile{position:relative;height:80px;border-radius:14px;border:0;background:#E7DDC8;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08);display:grid;place-items:center;overflow:hidden;cursor:pointer;padding:0 0 12px}
#dayroom .dp-tile:hover{background:#EFE6D3}#dayroom .dp-tile:focus-visible{outline:2px solid var(--dr-accent);outline-offset:2px}
#dayroom .dp-tile[aria-pressed="true"]{background:#F3EBD9;box-shadow:0 0 0 2px var(--dr-panel),0 0 0 4px var(--dr-accent)}
#dayroom .dp-tile:disabled{cursor:default;opacity:.7}
#dayroom .dp-tile canvas{image-rendering:pixelated;max-width:100%;max-height:62px}
/* Minor 3: #6E6350 measured 4.37:1 on the tile's own #E7DDC8, just under AA. #625846 clears 4.5:1 there and
   on the hover/pressed tile tints too (#EFE6D3, #F3EBD9); the tile itself is a fixed studio colour, not a
   palette token, so this one change covers every interface palette. */
#dayroom .dp-name{position:absolute;left:0;right:0;bottom:4px;font-size:10px;font-weight:800;color:#625846;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 4px}
#dayroom .dp-new{position:absolute;top:5px;left:5px;font-size:8.5px;font-weight:800;padding:2px 5px;border-radius:5px;background:#F2C94C;color:#3a2a06}
#dayroom .dp-soon{font-size:9px;font-weight:800;padding:3px 6px;border-radius:6px;background:#1F5A41;color:#D6F291}
#dayroom .dp-swatches{display:flex;flex-wrap:wrap;gap:7px}
#dayroom .dp-swatch{width:28px;height:28px;border-radius:9px;border:0;box-shadow:inset 0 0 0 1px rgba(0,0,0,.25);cursor:pointer;position:relative;display:inline-block}
#dayroom .dp-swatch[aria-pressed="true"]{box-shadow:0 0 0 2px var(--dr-panel),0 0 0 4px var(--dr-accent)}
#dayroom .dp-custom{background:conic-gradient(#e0533f,#f2c94c,#6fae4f,#3c9aae,#7b61c9,#e0533f);overflow:hidden}
#dayroom .dp-custom input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}
/* The real colour input is invisible, so its keyboard focus ring goes on the swatch itself. */
#dayroom .dp-custom:has(input:focus-visible){outline:2px solid var(--dr-accent);outline-offset:2px}
#dayroom .dp-note{margin:0;font-size:12.5px;color:var(--dr-muted)}
#dayroom .dp-foot{grid-column:1/-1;display:flex;align-items:center;gap:8px;padding:12px 0 0;border-top:1px solid var(--dr-line);flex-wrap:wrap}
/* Scoped to the studio so it outranks the dialog's #dayroom .dr-modal p muted text; the same red as .dr-error in both schemes. */
#dayroom .dp-grow{flex:1}#dayroom .dp-studio .dp-error{margin:0;color:light-dark(#a13636,#f4b3ab);font-size:12.5px;font-weight:700}
/* Save stays focusable while it saves (aria-disabled), so it borrows the disabled look. */
#dayroom .dp-foot [aria-disabled="true"]{cursor:default;opacity:.5}
/* One column: each stacked row takes its content height, so the preview column is never squeezed and whatever
   holds the studio (the Character card, a dialog) scrolls instead. */
@media (max-width:820px){#dayroom .dp-studio{grid-template-columns:1fr;grid-template-rows:none;max-height:none;min-height:0}#dayroom .dp-left{border-right:0;border-bottom:1px solid var(--dr-line);padding-right:0;min-height:auto;overflow:visible}#dayroom .dp-right{min-height:auto}}
/* Phone landscape, Edit character dialog only: 194px of studio can't hold the 264px preview beside the parts, so the
   dialog stacks like a portrait phone and #dr-modal-body is its one scroller. The sign-up card keeps two columns
   there (doorway.css), since it scrolls as a whole. */
@media (max-width:899px) and (max-height:500px){#dayroom #dr-modal-body .dp-studio{grid-template-columns:1fr;grid-template-rows:none;max-height:none;min-height:0}#dayroom #dr-modal-body .dp-left{border-right:0;border-bottom:1px solid var(--dr-line);padding-right:0;min-height:auto;overflow:visible}#dayroom #dr-modal-body .dp-right{min-height:auto}}
/* Phone dialogs fill the screen like every phone dialog (mobile.css), and #dr-modal-body becomes the only scroller. */
@media (max-width:899px){#dayroom .dr-modal:has(.dp-studio){max-height:calc(var(--dr-mobile-height,100dvh) - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}}
/* Phone portrait, Edit character dialog: the preview stays pinned at the top and Save at the bottom while the parts
   scroll between them. display:contents makes the stage a grid item of the whole studio so it sticks through the
   tabs and panel; the -16px offsets cover #dr-modal-body's own padding so nothing shows through above or below. */
@media (max-width:820px){
 #dayroom #dr-modal-body .dp-left{display:contents}
 #dayroom #dr-modal-body .dp-stage{position:sticky;top:-16px;z-index:2;height:150px;margin-top:12px}
 #dayroom #dr-modal-body .dp-preview{width:100px;height:140px}
 #dayroom #dr-modal-body .dp-stage::after{height:30px}
 #dayroom #dr-modal-body :is(.dp-describe,.dp-left>.dp-block){margin-top:12px}
 #dayroom #dr-modal-body .dp-right{margin-top:14px;border-top:1px solid var(--dr-line)}
 #dayroom #dr-modal-body .dp-foot{position:sticky;bottom:-16px;z-index:3;background:var(--dr-panel);padding:10px 0 16px;flex-wrap:nowrap}
 #dayroom #dr-modal-body .dp-foot .dp-error:empty{display:none}
}
/* The narrowest phones: Undo keeps its name (the hidden text) but shows only its arrow, so no label wraps. */
@media (max-width:420px){#dayroom #dr-modal-body .dp-foot .dr-button{white-space:nowrap;padding-inline:10px}#dayroom #dr-modal-body .dp-foot [data-action=undo]{font-size:0;min-width:44px;justify-content:center}#dayroom #dr-modal-body .dp-foot [data-action=undo]>span{font-size:16px}}

/* Catalogue choices stay with the character selector, above the preview on every tab. */
#dayroom .dp-all-styles{display:flex;align-items:center;gap:7px;margin-top:10px;font-size:12px;color:var(--dr-muted);cursor:pointer}
#dayroom .dp-all-styles input{width:15px;height:15px;margin:0;accent-color:var(--dr-accent)}
#dayroom .dp-all-styles[hidden],#dayroom .dp-other-styles[hidden]{display:none}
#dayroom .dp-other-styles{display:grid;gap:7px;margin-top:10px;justify-items:start}

/* Office world overlay (office-overlay.js): the approved "Card" name tags, room chips, speaking waveforms and bubbles,
   transcribed from design-plans/prototypes/2026-09-28-office-and-characters/world.html (.wm-layer, .s-soft .tag,
   .bubble, .typing, .ring and .room-label). The pixel world underneath is the same light artwork in every colour
   scheme, so these colours stay literal instead of following the light-dark --dr-* tokens; the status colours use
   window.css's --st-* tokens, which equal the mockup's values. Every rule is scoped to the overlay (product.css's
   older #dayroom .dr-tag and #dayroom .dr-dot rules, which these names once collided with, are gone; the scoping
   stays as the cheaper defence against the next one).
   The host isolates its own stacking context, so the cards' z-indexes (front cards up to 41) never reach #dayroom's,
   where the modal #dr-overlay (z 10) and the office hint card (z 35) must stay on top. */
#dayroom .dr-office-overlay{position:absolute;inset:0;isolation:isolate;overflow:hidden;pointer-events:none;font-family:'Manrope',system-ui,sans-serif;-webkit-font-smoothing:antialiased}
/* Match the app’s border-box sizing. */
#dayroom .dr-office-overlay,#dayroom .dr-office-overlay *{box-sizing:border-box}
#dayroom .dr-office-overlay [hidden]{display:none!important}
/* The card. Line 2 (the Spotify logo and the status) is one group, centred under the name, and keeps its 10.5px line
   with the logo alone. A one-line card is 22px, the pill's height, and a two-line card 34px: office-overlay.js stacks
   cards with these heights. */
#dayroom .dr-office-overlay .dr-tag{position:absolute;left:0;top:0;display:inline-flex;align-items:flex-start;gap:5px;min-height:22px;padding:5px 10px 5px 8px;border:0;border-radius:10px;background:#fff;color:#17211c;box-shadow:0 3px 10px rgba(20,40,30,.24),0 0 0 1px rgba(0,0,0,.05);font:700 11.5px/1 'Manrope',sans-serif;white-space:nowrap;letter-spacing:-.005em}
#dayroom .dr-office-overlay .dr-tag.dr-ring{box-shadow:0 3px 10px rgba(20,40,30,.24),0 0 0 2px #1F5A41}
#dayroom .dr-office-overlay .dr-dot{flex:none;width:7px;height:7px;margin:3px 0 0;border-radius:50%;background:var(--st-available)}
#dayroom .dr-office-overlay .dr-dot.is-working{background:var(--st-working)}
#dayroom .dr-office-overlay .dr-dot.is-dnd{background:var(--st-dnd)}
#dayroom .dr-office-overlay .dr-dot.is-away{background:var(--st-away)}
#dayroom .dr-office-overlay .dr-dot.is-lunch{background:var(--st-lunch)}
#dayroom .dr-office-overlay .dr-you{margin-left:2px;padding:2px 5px;border-radius:6px;background:#1F5A41;color:#fff;font-size:9.5px;font-weight:800;letter-spacing:.02em}
#dayroom .dr-office-overlay .dr-lines{display:flex;flex-direction:column;gap:2px}
#dayroom .dr-office-overlay .dr-lines small{display:flex;align-self:center;align-items:center;gap:4px;min-height:10.5px;font-size:10.5px;font-weight:600;color:#6b766f}
#dayroom .dr-office-overlay .dr-spot{flex:none;width:10px;height:10px}
/* Bubbles sit 8px above the card, 14px right of the character, as world.html places them over a two-line card. */
#dayroom .dr-office-overlay .dr-bubble{position:absolute;left:calc(50% + 14px);bottom:calc(100% + 8px);transform:translateX(-50%);transform-origin:50% 100%;display:inline-flex;align-items:center;justify-content:center;gap:4px;height:26px;min-width:26px;padding:0 7px;border-radius:13px 13px 13px 5px;background:#fff;box-shadow:0 3px 10px rgba(20,40,30,.22);font:800 12px/1 'Manrope',sans-serif;color:#17211c;white-space:nowrap}
#dayroom .dr-office-overlay .dr-em{font-size:14px;line-height:1}
#dayroom .dr-office-overlay .dr-typing-dots{display:inline-flex;gap:3px}
#dayroom .dr-office-overlay .dr-typing-dots i{width:5px;height:5px;border-radius:50%;background:#7d8a83;animation:dr-overlay-typing 1.2s ease-in-out infinite}
#dayroom .dr-office-overlay .dr-typing-dots i:nth-child(2){animation-delay:.15s}
#dayroom .dr-office-overlay .dr-typing-dots i:nth-child(3){animation-delay:.3s}
#dayroom .dr-office-overlay .dr-bubble.is-pop{animation:dr-overlay-pop .24s cubic-bezier(.3,1.5,.6,1) both}
/* Room chips (# channel · n) and the dark zone chips. */
#dayroom .dr-office-overlay .dr-chip{position:absolute;left:0;top:0;display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 9px 0 10px;border-radius:9px;background:rgba(255,255,255,.94);color:#1d2a23;font:800 12.5px/1 'Manrope',sans-serif;box-shadow:0 3px 10px rgba(20,40,30,.18);white-space:nowrap}
#dayroom .dr-office-overlay .dr-chip .dr-h{color:#8a968f;font-weight:700}
#dayroom .dr-office-overlay .dr-chip .dr-n{display:inline-flex;align-items:center;gap:4px;padding:3px 6px;border-radius:6px;background:#E3EEDB;color:#1F6446;font-size:11px}
#dayroom .dr-office-overlay .dr-chip .dr-n::before{content:'';width:6px;height:6px;border-radius:50%;background:var(--st-available)}
#dayroom .dr-office-overlay .dr-chip.is-zone{background:rgba(20,28,24,.72);color:#fff}
@keyframes dr-overlay-typing{0%,60%,100%{opacity:.45;transform:none}30%{opacity:1;transform:translateY(-2px)}}
@keyframes dr-overlay-pop{from{opacity:0;transform:translateX(-50%) scale(.6)}to{opacity:1;transform:translateX(-50%) scale(1)}}
@media(prefers-reduced-motion:reduce){#dayroom .dr-office-overlay .dr-typing-dots i,#dayroom .dr-office-overlay .dr-bubble.is-pop{animation:none}}
/* Dragging the map (product-world.js): the office canvas takes every touch gesture itself (a finger drags the map instead
   of scrolling the page) and shows a grab hand, grabbing while a drag is under way. office-hints' targets sit over the
   canvas, and a drag may start on one, so they never hand a touch drag to the page either. These follow product.css's
   older #dr-canvas rule (touch-action:manipulation, a crosshair) in the bundle, so they win at the same specificity. */
#dayroom #dr-canvas{touch-action:none;cursor:grab;-webkit-user-select:none;user-select:none}
#dayroom #dr-canvas[data-panning]{cursor:grabbing}
#dayroom .dr-office-hint-target{touch-action:none}
/* "Back to me": shown while a drag has parked the view away from you, just above the zoom controls (window.css's
   .dr-office-zoom, bottom-right), with the window's glass chip look. */
#dayroom .dr-world>.dr-office-recenter{position:absolute;z-index:7;right:12px;bottom:56px;display:inline-flex;align-items:center;height:34px;margin:0;padding:0 12px;border:0;border-radius:11px;color:var(--dr-ink);font-size:12.5px;font-weight:800;white-space:nowrap;cursor:pointer}
#dayroom .dr-world>.dr-office-recenter:focus-visible{box-shadow:0 0 0 2px rgba(10,20,14,.65)}
@media(forced-colors:active){#dayroom .dr-world>.dr-office-recenter{border:1px solid ButtonText}}
/* Phones: mobile.css makes the zoom chips 44px and lifts the HUD to 72px, so the chip sits in the zoom group's own row, just to
   its left (12px offset + the 142px group of three 44px chips + an 8px gap), the same 50px tall, clear of the HUD above. */
@media(max-width:899px){#dayroom .dr-world>.dr-office-recenter{right:calc(12px + var(--dr-zoom-w,142px) + 8px);bottom:12px;height:50px}}
/* The office toast clears the phone's bottom cluster (the HUD, and the Customize desk chip above it once you're seated: the
   window's 8px margin + the chip's 140px offset + its 44px + an 8px gap); in short landscape the chip sits under the HUD,
   so the toast only clears the HUD (8 + 72 + 58 + 8). A toast has no action, so on touch it never swallows a tap. */
@media(max-width:899px){#dayroom[data-office-expanded] #dr-live{bottom:calc(200px + env(safe-area-inset-bottom))}}
@media(max-width:300px){#dayroom[data-office-expanded] #dr-live{bottom:calc(248px + env(safe-area-inset-bottom))}}
@media(max-width:899px) and (max-height:500px){#dayroom[data-office-expanded] #dr-live{bottom:calc(146px + env(safe-area-inset-bottom))}}
@media(hover:none){html #dayroom #dr-live.is-shown{pointer-events:none}}

/* Voice activity, shared by office name cards and call participant labels. */
#dayroom .dr-speaking-wave{display:inline-flex;align-items:center;gap:2px;height:10px;vertical-align:middle;color:#24724e}
#dayroom .dr-speaking-wave i{display:block;width:2px;height:8px;background:currentColor;animation:dr-speaking-wave .7s steps(3,end) infinite alternate}
#dayroom .dr-speaking-wave i:nth-child(2n){height:4px;animation-delay:-.3s}
#dayroom .dr-speaking-wave i:nth-child(3n){height:10px;animation-delay:-.5s}
#dayroom .dr-speaking-wave i:nth-child(4n){animation-delay:-.15s}
#dayroom .dr-roster-id .dr-speaking-wave{color:var(--dr-ink)}
@keyframes dr-speaking-wave{from{transform:scaleY(.3)}to{transform:scaleY(1)}}
@media(prefers-reduced-motion:reduce){#dayroom .dr-speaking-wave i{animation:none}}

/* Window design system: approved mockup "directions.html" B. build.py loads it after the older stylesheets and before surfaces.css, desk-studio.css and doorway.css, which build on it. */
@font-face{font-family:'Manrope';font-style:normal;font-weight:400 800;font-display:swap;src:url('/assets/fonts/manrope/manrope-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Manrope';font-style:normal;font-weight:400 800;font-display:swap;src:url('/assets/fonts/manrope/manrope-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Silkscreen';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/silkscreen/silkscreen-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Silkscreen';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/silkscreen/silkscreen-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
/* Mockup tokens (reference §1.1), exact light/dark pairs via light-dark(); color-scheme:light dark lets Match device follow the OS.
   One deliberate departure for WCAG AA: light --dr-muted is #5C6761, not the mockup's #69746E (4.25:1 on --dr-bg), so muted
   text reads at 4.5:1 or better on every light surface, a hovered sidebar row included (interface-themes.test.cjs).
   --dr-error-text names product.css's and desk-studio.css's existing .dr-error/.dp-error red (unchanged, both still
   set it literally) so a later rule (surfaces.css's .dr-error.dr-error, Desks Task 12 verification) can reuse the
   same colour as a token instead of a bare hex, which surfaces.css's own tests refuse. Not a palette token: this
   colour is deliberately the same regardless of the interface palette, like the unread badge red. */
#dayroom{color-scheme:light dark;--dr-bg:light-dark(#F1F0EA,#141518);--dr-panel:light-dark(#FFFFFF,#1B1D21);--dr-sunken:light-dark(#F3F2EE,#24262B);--dr-hover:light-dark(#F4F4F0,#25272C);--dr-sel:light-dark(#E4E7DF,#34363D);--dr-line:light-dark(rgba(26,36,30,.08),rgba(235,235,240,.07));--dr-line-2:light-dark(rgba(26,36,30,.14),rgba(235,235,240,.13));--dr-ink:light-dark(#151E19,#F2F2F3);--dr-ink-2:light-dark(#333E38,#D1D2D6);--dr-muted:light-dark(#5C6761,#A9ABB1);--dr-faint:light-dark(#99A29C,#797C84);--dr-accent:light-dark(#1F5A41,#C4EC7D);--dr-accent-ink:light-dark(#FFFFFF,#132010);--dr-accent-soft:light-dark(#E3EEDB,rgba(196,236,125,.11));--dr-accent-text:light-dark(#1F6446,#C9EF86);--dr-lime:light-dark(#D6F291,#C4EC7D);--dr-lime-ink:light-dark(#20390F,#132010);--dr-logo-bg:light-dark(#1F5A41,#C4EC7D);--dr-logo-fg:light-dark(#D6F291,#173A28);--dr-glass:light-dark(rgba(255,255,255,.80),rgba(27,29,33,.80));--dr-glass-line:light-dark(rgba(255,255,255,.9),rgba(255,255,255,.08));--dr-field:light-dark(#FFFFFF,#191B1F);--dr-glass-shadow:0 10px 30px -6px rgba(24,40,30,.28);--dr-shadow:0 0 0 1px rgba(26,36,30,.06),0 1px 2px rgba(20,30,25,.04),0 10px 30px -8px rgba(20,30,25,.10);--st-available:#3DAA6D;--st-working:#E3A33B;--st-dnd:#E05A4F;--st-away:#A3ABA6;--st-lunch:#E88A3A;--dr-error-text:light-dark(#a13636,#f4b3ab)}
/* --dr-shadow/--dr-glass-shadow have a different number of layers per scheme (reference §1.1), so they can't be one light-dark() color value like the tokens above; swap the whole declaration instead. Match device has no data-scheme of its own (interface-themes.js only sets it for a named palette), so it follows the OS. A named palette sets data-scheme to its own scheme, so its shadow always matches its own panel no matter what the OS prefers. */
@media (prefers-color-scheme:dark){#dayroom:not([data-scheme]){--dr-glass-shadow:0 12px 34px -6px rgba(0,0,0,.55);--dr-shadow:0 0 0 1px rgba(255,255,255,.05),0 14px 34px -10px rgba(0,0,0,.6)}}
#dayroom[data-scheme="dark"]{--dr-glass-shadow:0 12px 34px -6px rgba(0,0,0,.55);--dr-shadow:0 0 0 1px rgba(255,255,255,.05),0 14px 34px -10px rgba(0,0,0,.6)}
#dayroom[data-scheme="light"]{--dr-glass-shadow:0 10px 30px -6px rgba(24,40,30,.28);--dr-shadow:0 0 0 1px rgba(26,36,30,.06),0 1px 2px rgba(20,30,25,.04),0 10px 30px -8px rgba(20,30,25,.10)}
/* --dr-soft predates this token set; keep it a live alias of --dr-sunken so panels using it still look right until later tasks restyle them. */
#dayroom{--dr-soft:var(--dr-sunken)}
/* Personal palettes (AGENTS.md) write only bg/panel/ink/muted/accent inline (interface-themes.js); everything else is derived here with contrast similar to the mockup's Match device values. */
#dayroom[data-ui-theme]:not([data-ui-theme="system"]){--dr-sunken:color-mix(in srgb,var(--dr-panel) 94%,var(--dr-ink) 6%);--dr-hover:color-mix(in srgb,var(--dr-panel) 96%,var(--dr-ink) 4%);--dr-sel:color-mix(in srgb,var(--dr-bg) 92%,var(--dr-ink) 8%);--dr-line:color-mix(in srgb,var(--dr-ink) 8%,transparent);--dr-line-2:color-mix(in srgb,var(--dr-ink) 14%,transparent);--dr-ink-2:color-mix(in srgb,var(--dr-ink) 62%,var(--dr-muted) 38%);--dr-faint:color-mix(in srgb,var(--dr-muted) 65%,var(--dr-bg) 35%);--dr-accent-soft:color-mix(in srgb,var(--dr-accent) 12%,transparent);--dr-accent-text:color-mix(in srgb,var(--dr-accent) 85%,var(--dr-ink) 15%)}
/* Field edges stay distinct from the softer card dividers in every personal palette. */
#dayroom{--dr-field-line:color-mix(in srgb,var(--dr-muted) 85%,var(--dr-field))}
#dayroom .dr-ws-tile svg,#dayroom .dr-ws-tile .dr-company-logo{display:block;width:32px;height:32px;border-radius:5px}
/* --dr-field per scheme (a named palette also sets data-scheme, reference §1.1): Match device light uses the panel colour itself; dark sits a little toward --dr-bg, below the panel, never toward --dr-ink (lighter would read as a raised control, not a field). */
#dayroom[data-ui-theme]:not([data-ui-theme="system"])[data-scheme="light"]{--dr-field:var(--dr-panel)}
#dayroom[data-ui-theme]:not([data-ui-theme="system"])[data-scheme="dark"]{--dr-field:color-mix(in srgb,var(--dr-panel) 85%,var(--dr-bg) 15%)}
/* Base rules (reference §1.1). */
#dayroom{font-family:'Manrope',system-ui,sans-serif;font-size:14px;line-height:1.45;color:var(--dr-ink);background:var(--dr-bg);-webkit-font-smoothing:antialiased}
#dayroom b{font-weight:800}
#dayroom svg.dr-i{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
#dayroom .dr-px{shape-rendering:crispEdges;flex:none}
#dayroom canvas{image-rendering:pixelated}
/* Utilities every later task uses. */
#dayroom .dr-glass{background:var(--dr-glass);-webkit-backdrop-filter:blur(16px) saturate(1.4);backdrop-filter:blur(16px) saturate(1.4);box-shadow:var(--dr-glass-shadow),inset 0 0 0 1px var(--dr-glass-line)}
/* forced-color-adjust:none (I9): a contrast theme otherwise flattens every status dot to the same system
   colour, losing available/working/dnd/away/lunch, which only background ever carries. */
#dayroom .dr-st{position:absolute;right:-3px;bottom:-3px;width:13px;height:13px;border-radius:50%;border:2.5px solid var(--dr-bg);background:var(--st-available);forced-color-adjust:none}
#dayroom .dr-st.is-working{background:var(--st-working)}
#dayroom .dr-st.is-dnd{background:var(--st-dnd)}
#dayroom .dr-st.is-away,#dayroom .dr-st.is-offline{background:var(--st-away)}
#dayroom .dr-st.is-lunch{background:var(--st-lunch)}
#dayroom .dr-grow{flex:1}
/* Short desktop windows: the chat spacing rules moved unchanged from call-panel.css (calls plan Task 2). The Messages and composer field sections below (reference §2.5) now set their own min-height/padding unconditionally and win by coming later in the cascade; only the tools row's tighter margin still has no later rule to override it. */
@media(min-width:851px) and (max-height:760px){
 #dayroom .dr-chattools{margin:4px 0}
}
/* ---------- The Window shell (reference §2.5): the rail and sidebar sit on --dr-bg; only the main pane is a raised card. ---------- */
/* App frame: .app is #dr-product, a full-window row of rail | sidebar + main pane (or a work page). */
body:has(#dayroom:not([data-screen])){padding:0}
#dayroom:not([data-screen]){max-width:none;height:100dvh;margin:0;border:0;border-radius:0;display:flex;flex-direction:column;overflow:hidden}
#dayroom #dr-product{position:relative;flex:1;min-height:0;display:flex}
#dayroom #dr-work-page,#dayroom #dr-tools-page{flex:1;min-width:0;min-height:0}
/* Minor 16: at top:14px this sat inside the 60px header (.dr-main's own 8px top margin + the header's
   height = 68px), covering the room title's subtitle. 76px clears the header with the same 8px the
   header itself keeps from the pane's top edge. */
#dayroom #dr-connection{position:absolute;z-index:8;top:76px;left:50%;transform:translateX(-50%);max-width:min(560px,calc(100% - 32px));padding:8px 14px;border-radius:11px;background:var(--dr-glass);-webkit-backdrop-filter:blur(16px) saturate(1.4);backdrop-filter:blur(16px) saturate(1.4);box-shadow:var(--dr-glass-shadow),inset 0 0 0 1px var(--dr-glass-line);color:var(--dr-ink);font-size:12.5px;font-weight:700}
/* Rail (76px). */
#dayroom .dr-rail{width:76px;flex:none;display:flex;flex-direction:column;align-items:center;gap:2px;padding:14px 0;min-height:0;background:var(--dr-bg)}
#dayroom .dr-rail-main,#dayroom .dr-rail-bottom{width:100%;display:flex;flex-direction:column;align-items:center;gap:2px}
/* The destinations take the rail's free space (the mockup's .grow) and scroll in short windows; Help and your portrait stay at the bottom. */
#dayroom .dr-rail-main{flex:1 1 auto;min-height:0;overflow-y:auto;scrollbar-width:none}
#dayroom .dr-rail-bottom{flex:none}
#dayroom .dr-rbtn{position:relative;flex:none;width:64px;display:flex;flex-direction:column;align-items:center;gap:3px;padding:5px 0 6px;border:0;border-radius:12px;background:transparent;color:var(--dr-muted);font-size:10.5px;font-weight:700;line-height:1.45;letter-spacing:.01em}
#dayroom .dr-rbtn .dr-ri{position:relative;width:42px;height:32px;border-radius:10px;display:grid;place-items:center}
#dayroom .dr-rbtn .dr-ri svg.dr-i{width:20px;height:20px}
#dayroom .dr-rbtn:hover,#dayroom .dr-rbtn[aria-current=page]{color:var(--dr-ink)}
#dayroom .dr-rbtn:hover .dr-ri{background:color-mix(in srgb,var(--dr-ink) 6%,transparent)}
#dayroom .dr-rbtn[aria-current=page] .dr-ri{background:var(--dr-sel)}
#dayroom .dr-rail-badge{position:absolute;top:0;right:2px;min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:#D6373D;color:#fff;font:800 10px/17px 'Manrope',sans-serif;text-align:center;box-shadow:0 0 0 2px var(--dr-bg)}
/* .panes + .pane.mainpane: a grid of the 256px sidebar and the main pane card. */
#dayroom .dr-layout{flex:1;min-width:0;min-height:0;display:grid;grid-template-columns:256px minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
/* Sidebar (256px). */
#dayroom .dr-sidebar{min-width:0;min-height:0;display:flex;flex-direction:column;padding:10px 8px 10px 2px}
#dayroom .dr-ws{position:relative;flex:none;display:flex;align-items:center;gap:10px;padding:6px 6px 6px 8px;border-radius:11px}
#dayroom .dr-ws-tile{flex:none;width:32px;height:32px;border-radius:9px;display:grid;place-items:center;background:#E8D8AA;color:#5B4520;font:400 11px 'Silkscreen',monospace;box-shadow:inset 0 0 0 1px rgba(0,0,0,.07),inset 0 -2px 0 rgba(0,0,0,.08)}
#dayroom .dr-ws-text{flex:1;min-width:0}
#dayroom .dr-workspace-menu-trigger{display:flex;align-items:center;gap:4px;max-width:100%;padding:0;border:0;background:transparent;color:var(--dr-ink);font-size:15px;font-weight:800;line-height:1.45;letter-spacing:-.01em;text-align:left}
#dayroom .dr-workspace-menu-trigger svg.dr-i{width:15px;height:15px;color:var(--dr-muted)}
#dayroom #dr-workspace-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#dayroom .dr-ws-sub{margin-top:1px;color:var(--dr-muted);font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#dayroom .dr-iconbtn{flex:none;width:32px;height:32px;display:grid;place-items:center;padding:0;border:0;border-radius:9px;background:transparent;color:var(--dr-muted)}
#dayroom .dr-iconbtn.is-boxed{box-shadow:inset 0 0 0 1px var(--dr-line-2);color:var(--dr-ink-2)}
#dayroom .dr-iconbtn:hover{background:color-mix(in srgb,var(--dr-ink) 6%,transparent);color:var(--dr-ink)}
#dayroom .dr-search{flex:none;display:flex;align-items:center;gap:9px;height:36px;margin:10px 4px 8px 6px;padding:0 8px 0 11px;border:0;border-radius:10px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-line);color:var(--dr-muted);font-size:13.5px;font-weight:600;text-align:left}
#dayroom .dr-search svg.dr-i{width:16px;height:16px}
#dayroom .dr-search:hover{box-shadow:inset 0 0 0 1px var(--dr-line-2)}
#dayroom .dr-kbd{margin-left:auto;padding:2px 6px;border-radius:6px;box-shadow:inset 0 0 0 1px var(--dr-line-2);color:var(--dr-muted);font:700 11px 'Manrope',sans-serif}
#dayroom .dr-row{flex:none;display:flex;align-items:center;gap:10px;height:32px;margin:1px 0 1px 4px;padding:0 8px 0 10px;border:0;border-radius:9px;background:transparent;color:var(--dr-ink-2);font-size:14px;font-weight:600;white-space:nowrap;text-align:left}
#dayroom button.dr-row:hover{background:color-mix(in srgb,var(--dr-ink) 6%,transparent)}
/* Row states (.dim, .unread, .on). When two apply, unread beats dim and the open conversation beats both. */
#dayroom .dr-row.is-dim{color:var(--dr-muted)}
#dayroom .dr-row.is-unread{color:var(--dr-ink);font-weight:800}
#dayroom .dr-row.is-on,#dayroom button.dr-row.is-on:hover{background:var(--dr-sel);color:var(--dr-ink);font-weight:800}
#dayroom .dr-row .dr-ic{flex:none;width:18px;display:grid;place-items:center;color:var(--dr-accent-text)}
#dayroom .dr-row .dr-ic svg.dr-i{width:17px;height:17px}
#dayroom .dr-row .dr-hash{flex:none;width:18px;color:var(--dr-faint);font-size:15px;font-weight:700;text-align:center}
#dayroom .dr-row .dr-hash.is-private{display:grid;place-items:center}
#dayroom .dr-row .dr-hash svg.dr-i{width:14px;height:14px}
/* A long name truncates; a status note gives way first. */
#dayroom .dr-row .dr-name{min-width:0;overflow:hidden;text-overflow:ellipsis}
#dayroom .dr-row .dr-note{flex:0 1000 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;color:var(--dr-muted);font-size:12px;font-weight:600}
#dayroom .dr-count{flex:none;margin-left:auto;min-width:20px;height:19px;padding:0 6px;border-radius:10px;background:var(--dr-accent);color:var(--dr-accent-ink);font:800 11px/19px 'Manrope',sans-serif;text-align:center}
#dayroom .dr-newpill{margin-left:auto;height:20px;padding:0 8px;border-radius:10px;background:var(--dr-lime);color:var(--dr-lime-ink);font:800 10.5px/20px 'Manrope',sans-serif}
/* A room's pile: up to three people in it at 20px, ringed in the sidebar colour. */
#dayroom .dr-row .dr-pile canvas{display:block;flex:none;width:20px;height:20px;margin-left:-5px;border-radius:6px;box-shadow:0 0 0 2px var(--dr-bg)}
#dayroom .dr-pile+.dr-count{margin-left:0}
/* A DM: the 24px portrait with a 10px status dot (or the companion's pixel robot), then the name and the Spotify badge. */
#dayroom .dr-dm canvas{display:block;width:24px;height:24px;border-radius:7px}
#dayroom .dr-dm .dr-st{width:10px;height:10px;right:-3px;bottom:-3px;border-width:2px}
#dayroom .dr-companion-dp{display:block;width:24px;height:24px;overflow:hidden;border-radius:7px}
#dayroom .dr-companion-dp svg{display:block;width:100%;height:100%}
/* #px-spot is a 10-cell mark (viewBox 0 0 10 10): size it at a multiple of 10 so every cell lands on a whole pixel at 1x and 2x (AGENTS.md "Dayroom visuals stay retro"). */
#dayroom .dr-row .dr-spot{flex:none;width:10px;height:10px;margin-left:auto}
/* The lists stack full-width rows. */
#dayroom #dr-roomnav,#dayroom #dr-dmnav,#dayroom #dr-peoplenav{display:flex;flex-direction:column}
/* Your day: a row under Catch up. "Your calendar" then its state as a note ("· state", like a DM's), which truncates;
   for the next meeting (is-next) the title truncates and the countdown stays whole at the right. */
#dayroom #dr-daybar{flex:none;display:flex;flex-direction:column}
#dayroom .dr-daybar-button strong{flex:none;font:inherit}
#dayroom .dr-daybar-button .dr-meeting-countdown{min-width:0;overflow:hidden;text-overflow:ellipsis;color:var(--dr-muted);font-size:12px;font-weight:600;font-variant-numeric:tabular-nums}
#dayroom .dr-daybar-button:not(.is-next) .dr-meeting-countdown::before{content:'· '}
#dayroom .dr-daybar-button.is-next strong{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
#dayroom .dr-daybar-button.is-next .dr-meeting-countdown{flex:none;margin-left:auto}
#dayroom .dr-sidebar-scroll{flex:1;min-height:0;overflow-x:hidden;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--dr-line-2) transparent}
#dayroom .dr-sec{display:flex;align-items:center;gap:4px;padding:18px 8px 6px 14px;color:var(--dr-muted);font-size:12px;font-weight:800;letter-spacing:.01em}
#dayroom .dr-sec svg.dr-i{width:14px;height:14px}
/* The + is the mockup's 14px icon in a 24px target; negative margins keep the section at the mockup's height. It and the ⌘K hint use
   --dr-muted, not the mockup's --dr-faint (2.3:1), so they meet AA (1.4.11 for the icon, 1.4.3 for the hint). */
#dayroom .dr-sec .dr-plus{flex:none;width:24px;height:24px;margin:-3px -5px -3px auto;padding:0;border:0;border-radius:7px;display:grid;place-items:center;background:transparent;color:var(--dr-muted)}
#dayroom .dr-sec .dr-plus:hover,#dayroom .dr-sec .dr-plus[aria-expanded=true]{background:color-mix(in srgb,var(--dr-ink) 6%,transparent);color:var(--dr-ink)}
/* Sidebar footer user panel (.upanel). */
#dayroom .dr-side-foot{flex:none;margin-top:auto;padding:8px 4px 2px 6px}
/* Reference .upanel padding (8px all round); long names truncate so the music badge and account button keep the inset. */
#dayroom .dr-upanel{display:flex;align-items:center;gap:10px;padding:8px;border-radius:14px;background:var(--dr-panel);box-shadow:var(--dr-shadow)}
#dayroom .dr-dpw{position:relative;flex:none}
#dayroom .dr-upanel .dr-dpw{width:34px;height:34px;padding:0;border:0;border-radius:10px;background:transparent}
#dayroom .dr-upanel canvas{display:block;width:34px;height:34px;border-radius:10px}
#dayroom .dr-hud-id{flex:1;min-width:0}
#dayroom .dr-hud-id b{display:block;font-size:13px;font-weight:800;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#dayroom .dr-pstat{position:relative;display:inline-flex;align-items:center;max-width:100%;color:var(--dr-muted);font-size:12px;font-weight:700;cursor:pointer}
#dayroom .dr-pstat svg.dr-i{position:absolute;right:0;top:50%;transform:translateY(-50%);width:13px;height:13px;pointer-events:none}
/* The status select reads as text: "Available ⌄". */
/* Reads as plain text ("Available ⌄"), not a boxed field: opts out of the global field look, which only resets the properties this rule also sets (reference §2.5 fields), by resetting height/box-shadow explicitly. */
/* Minor 14 (WCAG 2.5.8): height:auto let this read at the text's own ~17px line box. min-height plus the
   flex centring keeps the plain-text look while giving it a 24px target, same as every other control. */
#dayroom #dr-status{height:auto;min-height:24px;display:inline-flex;align-items:center;box-shadow:none;min-width:0;max-width:100%;field-sizing:content;margin:0;padding:0 19px 0 0;border:0;border-radius:4px;background:none;color:inherit;font:inherit;font-weight:inherit;appearance:none;-webkit-appearance:none;text-overflow:ellipsis;cursor:pointer}
#dayroom #dr-status:focus{outline:none;box-shadow:none}
#dayroom #dr-status:focus-visible{text-decoration:none;outline:2px solid var(--dr-accent);outline-offset:3px}
#dayroom .dr-music{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 12px 0 9px;border:0;border-radius:11px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-line);color:var(--dr-ink-2);font-size:12px;font-weight:700;white-space:nowrap}
#dayroom .dr-music .dr-spot{width:20px;height:20px;margin:0}
#dayroom .dr-music.is-mini{height:32px;padding:0 9px}
#dayroom .dr-music.is-mini .dr-spot{width:20px;height:20px}
/* Main pane: the one raised card, inside padding 8px 8px 8px 0. */
#dayroom .dr-main{position:relative;min-width:0;min-height:0;display:flex;flex-direction:column;margin:8px 8px 8px 0;overflow:hidden;border-radius:14px;background:var(--dr-panel);box-shadow:var(--dr-shadow)}
/* Main pane / chat header (reference §2.5): title and subtitle, the view switch, the member pile, the Huddle pill, then the conversation tools.
   The controls keep their size; at the 900px desktop minimum the title and subtitle truncate instead of the controls wrapping below them. */
#dayroom .dr-head{height:60px;flex:none;display:flex;align-items:center;gap:10px;padding:0 12px 0 20px;border-bottom:1px solid var(--dr-line)}
#dayroom .dr-head>div:first-child{min-width:0}
#dayroom .dr-title{overflow:hidden;font-size:16px;font-weight:800;letter-spacing:-.01em;white-space:nowrap;text-overflow:ellipsis}
#dayroom .dr-title .dr-hash{margin-right:6px;color:var(--dr-faint);font-weight:700}
#dayroom .dr-subt{margin-top:1px;overflow:hidden;color:var(--dr-muted);font-size:12.5px;font-weight:600;white-space:nowrap;text-overflow:ellipsis}
/* The view switch is a segmented control; aria-pressed marks the current layout. */
#dayroom .dr-seg{flex:none;display:inline-flex;padding:3px;border-radius:10px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-line)}
#dayroom .dr-seg button{width:32px;height:26px;display:grid;place-items:center;padding:0;border:0;border-radius:7px;background:transparent;color:var(--dr-muted)}
#dayroom .dr-seg button:hover{color:var(--dr-ink)}
#dayroom .dr-seg button[aria-pressed=true]{background:var(--dr-panel);color:var(--dr-ink);box-shadow:0 1px 2px rgba(0,0,0,.10),0 0 0 1px var(--dr-line)}
#dayroom .dr-seg svg.dr-i{width:16px;height:16px}
/* The member pile (reference .pile), at the header's 24px size (.head .pile canvas). */
#dayroom .dr-pile{flex:none;display:flex;margin-left:auto;padding:0 0 0 5px;border:0;background:transparent}
#dayroom #dr-member-pile canvas{display:block;flex:none;width:33px;height:33px;margin-left:-6px;border-radius:4px;box-shadow:0 0 0 2px var(--dr-panel)}
/* The Huddle pill; .is-live is the reference's .live-huddle. */
#dayroom .dr-pillbtn{flex:none;height:32px;display:inline-flex;align-items:center;gap:7px;padding:0 12px;border:0;border-radius:10px;background:transparent;color:var(--dr-ink);box-shadow:inset 0 0 0 1px var(--dr-line-2);font-size:13px;font-weight:800;white-space:nowrap}
#dayroom .dr-pillbtn:hover{background:color-mix(in srgb,var(--dr-ink) 6%,transparent)}
#dayroom .dr-pillbtn svg.dr-i{width:16px;height:16px}
#dayroom .dr-pillbtn.is-live{background:var(--dr-accent-soft);color:var(--dr-accent-text);box-shadow:inset 0 0 0 1px rgba(61,170,109,.35)}
/* Named palettes ring the live pill in their own accent. */
#dayroom[data-ui-theme]:not([data-ui-theme="system"]) .dr-pillbtn.is-live{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--dr-accent) 35%,transparent)}
#dayroom .dr-pillbtn .dr-huddle-count{display:none}
/* Up to 1040px wide the pill folds to its icon, plus the count while a call is live, so the room's name keeps its space. The full label stays for screen readers and as the tooltip. */
@media(max-width:1040px){
 #dayroom .dr-pillbtn{position:relative;padding:0 8px}
 #dayroom .dr-pillbtn>span{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
 #dayroom .dr-pillbtn .dr-huddle-count{display:inline}
}
/* Search, notifications, the companion and Channel details: icon buttons spaced like the header's own controls. */
#dayroom .dr-team-tools{flex:none;display:flex;align-items:center;gap:10px}
#dayroom #dr-notifications{position:relative}
#dayroom #dr-notification-count{position:absolute;top:-2px;right:-4px;min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:#D6373D;color:#fff;font:800 10px/17px 'Manrope',sans-serif;text-align:center;box-shadow:0 0 0 2px var(--dr-panel)}
#dayroom #dr-notification-count:empty{display:none}
/* The office window (reference §2.5): its chips, and the expanded office (below, near .dr-chatcol).
   The world engine (product-world.js) sizes the canvas to fill .dr-world with its own ResizeObserver
   and re-lays itself out on resize, so there is no fixed-aspect canvas "shown whole" here to letterbox.
   336px from an 836px-tall window up (the mockup is 900); shorter windows give the height back to the conversation. */
#dayroom .dr-window{position:relative;flex:none;height:clamp(160px,calc(100dvh - 500px),336px);margin:12px 12px 0;overflow:hidden;border-radius:13px;background:#E8F0D3;box-shadow:inset 0 0 0 1px var(--dr-line)}
#dayroom .dr-office-stage{position:absolute;inset:0;display:flex;justify-content:center}
#dayroom .dr-world{position:relative;width:100%;height:100%}
#dayroom #dr-canvas{display:block;width:100%;height:100%}
#dayroom[data-office-view=mini] .dr-window{height:clamp(120px,calc(100dvh - 540px),180px)}
#dayroom[data-office-view=chat] .dr-window{display:none}
/* The chat column: max 860px, centred under the window. If a call panel, reply and drafts outgrow a short window, the column scrolls rather than clipping the composer. */
#dayroom .dr-chatcol{position:relative;flex:1;min-width:0;min-height:0;width:100%;max-width:860px;margin:8px auto 0;display:flex;flex-direction:column;overflow-y:auto}
/* The window's chips (reference §2.5, the "where" and "open" chips): the default window shows only
   these two, top corners. dr-where-dot is its own class, not the unrelated #dr-live aria-status
   region's (that one hides itself with :empty{display:none} in product.css, which this always-
   empty-by-design dot would otherwise inherit too).
   z-index:7 keeps the chips clickable above the office-hints' invisible hotspot targets
   (office-hints.js layers a person/desk/table hotspot at z-index 5 or 6, position:fixed), which
   otherwise cover the whole window and, tied at the same stacking level, win ties by DOM order
   (they're appended after #dr-product) over an absolutely positioned sibling at the same z-index.
   The child combinator keeps these rules off the office's own room and zone chips, which are .dr-chip too, deeper in
   the window's overlay (office-overlay.css styles those). */
#dayroom .dr-window>.dr-chip{position:absolute;z-index:7;top:12px;margin:0;display:inline-flex;align-items:center;gap:8px;height:34px;padding:0 12px;border:0;border-radius:11px;color:var(--dr-ink);font-size:12.5px;font-weight:800;white-space:nowrap}
#dayroom .dr-window>.dr-chip svg.dr-i{width:16px;height:16px}
#dayroom #dr-where{left:12px}
#dayroom .dr-where-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--st-available);box-shadow:0 0 0 3px rgba(61,170,109,.2)}
#dayroom #dr-where-other{color:var(--dr-muted);font-weight:700}
#dayroom #dr-open-office{right:12px}
/* Minor 13: --dr-accent is lime in dark mode (#C4EC7D), too close in value to this window's own pale office
   art (office-overlay.css: the same light artwork in every colour scheme, so this stays pale behind the
   chips even in dark mode) for the shared outline alone (window.css's generic :focus-visible ring, below) to
   read clearly there. A dark inner edge, just inside that ring's own outline-offset:2px, keeps every glass
   chip's focus ring visible over art this light in every palette, not only dark mode -- a plain dark rgba,
   not a token, since it only ever needs to be dark, never a themed colour. */
#dayroom .dr-window>.dr-chip:focus-visible{box-shadow:0 0 0 2px rgba(10,20,14,.65)}
/* Expanded office (the "open" chip's #dayroom[data-office-expanded], not persisted): the window fills
   the main pane below the header and the chat column hides, so the HUD (bottom-left, reference
   .hud/.hbtn) becomes the way back to the desk, character editor, map and (owners only) the Office
   theme. Same specificity as the mini/chat rules above; this wins by coming later in the cascade. */
#dayroom[data-office-expanded] .dr-window{flex:1;height:auto;margin:12px}
#dayroom[data-office-expanded] .dr-chatcol{display:none}
/* z-index:7 for the same reason as .dr-chip above: office-hints' hotspot targets can otherwise win
   the click on a HUD button they happen to overlap. */
#dayroom .dr-hud{display:none;position:absolute;z-index:7;left:12px;bottom:12px;align-items:center;gap:10px;padding:7px 8px 7px 7px;border-radius:17px}
#dayroom[data-office-expanded] .dr-hud{display:inline-flex}
#dayroom .dr-hbtn{height:36px;min-width:36px;margin:0;padding:0 10px;border:0;border-radius:11px;display:inline-flex;align-items:center;justify-content:center;gap:7px;background:transparent;color:var(--dr-ink-2);font-weight:800;font-size:12.5px;white-space:nowrap}
#dayroom .dr-hbtn svg.dr-i{width:18px;height:18px}
#dayroom .dr-hbtn:hover{background:color-mix(in srgb,var(--dr-ink) 6%,transparent)}
/* ---------- Messages (reference §2.5 "Chat column"): flat rows under day dividers, hover tools, attachment cards, the thread line and the typing line. ---------- */
/* .msgs: a short conversation sits at the bottom, above the typing line; a long one scrolls as usual. */
#dayroom .dr-messages{gap:0;padding:0 12px}
/* The thread list keeps room above its root for the root's tools (top:-15px). */
#dayroom .dr-thread-messages{padding-top:16px}
#dayroom #dr-messages>:first-child{margin-top:auto}
#dayroom .dr-day{flex:none;display:flex;align-items:center;gap:12px;margin:6px 14px 8px;color:var(--dr-muted);font-size:12px;font-weight:800}
#dayroom .dr-day::before,#dayroom .dr-day::after{content:'';flex:1;height:1px;background:var(--dr-line)}
/* .msg: one flat row for everyone, yours included. Imported WhatsApp history keeps its transcript (surfaces.css).
   The row lights up for the pointer or for keyboard focus (:focus-visible), so a mouse click leaves nothing stuck. */
#dayroom article.dr-message-row{position:relative;display:flex;align-items:flex-start;gap:12px;margin:0;padding:8px 12px;border:0;border-radius:12px;line-height:1.45}
#dayroom article.dr-message-row:is(:hover,:has(:focus-visible)){background:var(--dr-hover)}
#dayroom article.dr-message-row.is-highlighted{background:var(--dr-accent-soft)}
#dayroom .dr-message-row .dr-message-avatar{flex:none;display:block;width:38px;height:38px;margin-top:2px;padding:0;border:0;border-radius:11px;overflow:hidden;background:transparent}
#dayroom .dr-message-row .dr-message-avatar:disabled{opacity:1;cursor:default}
#dayroom .dr-message-row .dr-message-avatar canvas{display:block;width:38px;height:38px;margin:0;border-radius:11px}
#dayroom .dr-message-row .dr-agent-portrait{display:grid;place-items:center;background:#203b34}
#dayroom .dr-message-row .dr-agent-portrait .dr-companion-dp{width:100%;height:100%;border-radius:0}
#dayroom .dr-message-row .dr-wa-historical-avatar{display:grid;place-items:center;border:1px solid var(--dr-line);background:var(--dr-sunken)}
#dayroom .dr-message-content{flex:1;min-width:0}
#dayroom .dr-msghead{display:flex;align-items:baseline;flex-wrap:wrap;gap:0 8px;margin:0}
#dayroom .dr-msghead b{font-size:14px;color:var(--dr-ink)}
/* Times use --dr-muted, not the mockup's --dr-faint: faint is about 2.6:1 on the light panel, below the 4.5:1 that 12px text needs. */
#dayroom .dr-msghead time{color:var(--dr-muted);font-size:12px;font-weight:700}
#dayroom .dr-msghead .dr-agent-label{margin:0;padding:0 5px;border-radius:5px;background:var(--dr-sunken);color:var(--dr-muted);font-size:10.5px;font-weight:800;line-height:17px}
/* "via Claude" (DayroomUI.via): the agent label's quiet chip, a little lighter, wherever a message's author is named. */
#dayroom .dr-via-label{display:inline-block;margin:0;padding:0 5px;border-radius:5px;background:var(--dr-sunken);color:var(--dr-muted);font-size:10.5px;font-weight:700;line-height:17px;white-space:nowrap;vertical-align:1px}
/* The text (.msg p): user text keeps its line breaks; answers keep their Markdown, spaced like the mockup's paragraphs. */
#dayroom .dr-message-body{margin-top:2px;color:var(--dr-ink-2);font-weight:500;white-space:pre-wrap}
#dayroom .dr-message-body .dr-answer-text{line-height:inherit}
#dayroom .dr-message-body .dr-answer-text>*{margin:0}
#dayroom .dr-message-body .dr-answer-text>*+*{margin-top:5px}
#dayroom .dr-message-body strong{color:var(--dr-ink);font-weight:700}
#dayroom .dr-message-body .dr-message-citation{padding:0 2px}
/* A failed companion answer, on the question itself (only its asker gets command_state). */
#dayroom .dr-command-failed{margin-top:4px;color:var(--dr-muted);font-size:12.5px;font-weight:600}
#dayroom .dr-command-failed .dr-command-retry{padding:0;border:0;background:none;color:var(--dr-accent-text);font-weight:800}
#dayroom .dr-command-failed .dr-command-retry:hover{text-decoration:underline;text-underline-offset:3px}
/* Pending sends (outbox.js): your message reads quieter until the server has it; a failed one says so in the error colour, with Retry and Edit. */
#dayroom article.dr-message-row.dr-outbox-pending .dr-message-body,#dayroom .dr-call-chat-msg.is-pending .dr-call-chat-body{opacity:.72}
#dayroom article.dr-message-row.dr-outbox-pending.is-failed .dr-message-body,#dayroom .dr-call-chat-msg.is-failed .dr-call-chat-body{opacity:1}
#dayroom .dr-outbox-status{margin:4px 0 0;color:var(--dr-muted);font-size:12.5px;font-weight:600}
#dayroom .dr-outbox-status.is-failed{color:var(--dr-error-text);font-weight:700}
#dayroom .dr-outbox-status .dr-link{display:inline;min-height:0;font-size:12.5px}
#dayroom .dr-outbox-files{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 0;padding:0;list-style:none}
#dayroom .dr-outbox-files li{padding:2px 8px;border:1px solid var(--dr-line);border-radius:6px;color:var(--dr-muted);font-size:12.5px;font-weight:600}
#dayroom .dr-outbox-thinking-line{display:flex;align-items:center;gap:8px;min-height:38px;margin:0;color:var(--dr-muted);font-size:13px;font-weight:700}
#dayroom .dr-mention{padding:0 4px;border-radius:5px;background:var(--dr-accent-soft);color:var(--dr-accent-text);font-weight:800}
#dayroom .dr-message-content .dr-replycontext{display:block;max-width:100%;margin:4px 0 2px;padding:1px 0 1px 10px;border:0;border-left:2px solid var(--dr-line-2);border-radius:0;background:none;color:var(--dr-muted);font-size:12.5px;font-weight:600;text-align:left;white-space:normal;overflow-wrap:anywhere}
#dayroom .dr-message-content .dr-replycontext:hover{color:var(--dr-ink-2)}
/* Attachments as the reference .att card: an icon tile, then the name. An uploaded picture shows itself instead of the tile; the tile's pixel page is the mockup's DOC. */
#dayroom .dr-message-content .dr-attachment{display:flex;align-items:center;gap:11px;width:fit-content;max-width:100%;margin-top:9px;padding:8px 14px 8px 8px;border-radius:12px;background:var(--dr-panel);box-shadow:inset 0 0 0 1px var(--dr-line-2);color:var(--dr-ink);font-size:13px;font-weight:800;line-height:1.25;text-decoration:none;overflow-wrap:anywhere}
#dayroom .dr-message-content .dr-attachment::before{content:'';flex:none;width:38px;height:38px;border-radius:10px;background:light-dark(#F2E3F4,#2A2230) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' shape-rendering='crispEdges'%3E%3Cpath fill='%23A259FF' d='M2 0h4l2 2v8H2z'/%3E%3Cpath fill='%23F4E8FF' d='M3 3h4v1H3zM3 5h4v1H3zM3 7h3v1H3z'/%3E%3Cpath fill='%237B2FD9' d='M6 0h1v1h1v1H6z'/%3E%3C/svg%3E") center/20px 20px no-repeat}
#dayroom .dr-message-content .dr-attachment:hover{text-decoration:underline;text-underline-offset:3px}
#dayroom .dr-message-content .dr-attachment:has(img){flex-direction:column;align-items:flex-start;gap:6px;padding:8px}
#dayroom .dr-message-content .dr-attachment:has(img)::before{content:none}
#dayroom .dr-message-content .dr-attachment img{display:block;max-width:100%;max-height:180px;border-radius:8px}
#dayroom .dr-message-content .dr-drive-attachment{width:fit-content;max-width:100%;margin:9px 0 0;border:0;border-radius:12px;background:var(--dr-panel);box-shadow:inset 0 0 0 1px var(--dr-line-2)}
#dayroom .dr-message-content .dr-drive-attachment a{gap:11px;padding:8px 14px 8px 8px}
/* The Drive pixel icon at its own 34px grid, in the 38px tile. */
#dayroom .dr-message-content .dr-drive-attachment a>svg.dr-drive-icon{width:38px;height:38px;padding:2px;border-radius:10px;background:var(--dr-sunken)}
#dayroom .dr-message-content .dr-drive-attachment strong{font-size:13px;font-weight:800;line-height:1.25}
#dayroom .dr-message-content .dr-drive-attachment small{margin-top:0;font-size:12px;font-weight:600}
#dayroom .dr-message-content .dr-chat-media{margin-top:9px;border:0;border-radius:12px;background:var(--dr-panel);box-shadow:inset 0 0 0 1px var(--dr-line-2)}
#dayroom .dr-message-content .dr-message-task{width:fit-content;margin-top:9px;padding:9px 14px 9px 12px;border:0;border-radius:12px;background:var(--dr-panel);box-shadow:inset 0 0 0 1px var(--dr-line-2);color:var(--dr-ink-2)}
/* The thread line (reference .thread): the repliers' 20px pile, ringed in the row's colour, then the accent "N replies" and when the last reply came. */
#dayroom .dr-thread-line{display:flex;align-items:center;gap:9px;width:fit-content;margin-top:7px;font-size:12.5px}
#dayroom .dr-thread-line .dr-pile{margin:0;padding-left:5px}
#dayroom .dr-thread-line .dr-pile canvas{display:block;width:20px;height:20px;margin-left:-5px;border-radius:6px;box-shadow:0 0 0 2px var(--dr-panel)}
#dayroom article.dr-message-row:is(:hover,:has(:focus-visible)) .dr-thread-line canvas{box-shadow:0 0 0 2px var(--dr-hover)}
#dayroom .dr-thread-line .dr-thread-link{padding:0;border:0;background:none;color:var(--dr-accent-text);font-size:inherit;font-weight:800}
#dayroom .dr-thread-line .dr-thread-link:hover{text-decoration:underline;text-underline-offset:3px}
#dayroom .dr-thread-last{color:var(--dr-muted);font-weight:600}
/* Reactions (reference .reacts/.re/.re.on): chips under the message, yours lit, then the smile-plus that adds one.
   Scoped to .dr-reacts so product.css's padding for every button in a message list (.dr-messages button) doesn't undo the reference's 0 9px. */
#dayroom .dr-reacts{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
#dayroom .dr-reacts .dr-re{height:26px;display:inline-flex;align-items:center;gap:5px;padding:0 9px;border:0;border-radius:13px;background:var(--dr-sunken);color:var(--dr-ink-2);font-size:12.5px;font-weight:800;line-height:1;box-shadow:inset 0 0 0 1px var(--dr-line)}
#dayroom .dr-reacts .dr-re.is-on{background:var(--dr-accent-soft);color:var(--dr-accent-text);box-shadow:inset 0 0 0 1px rgba(61,170,109,.4)}
#dayroom .dr-reacts .dr-re svg.dr-i{width:15px;height:15px;color:var(--dr-muted)}
#dayroom .dr-reacts .dr-re:hover{box-shadow:inset 0 0 0 1px var(--dr-line-2)}
#dayroom .dr-reacts .dr-re.is-on:hover{box-shadow:inset 0 0 0 1px rgba(61,170,109,.65)}
/* Named palettes ring the reactions you lit in their own accent, like the live pill above. */
#dayroom[data-ui-theme]:not([data-ui-theme="system"]) .dr-reacts .dr-re.is-on{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--dr-accent) 40%,transparent)}
#dayroom[data-ui-theme]:not([data-ui-theme="system"]) .dr-reacts .dr-re.is-on:hover{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--dr-accent) 65%,transparent)}
#dayroom .dr-reacts .dr-re-add:hover svg.dr-i{color:var(--dr-ink)}
/* The emoji picker: a small raised grid of the twenty emoji, five to a row, by the button that opened it. It pops in, except under reduced motion. */
#dayroom .dr-emoji-picker{position:fixed;z-index:9;display:flex;flex-direction:column;gap:2px;padding:6px;border-radius:12px;background:var(--dr-panel);box-shadow:0 8px 20px -4px rgba(0,0,0,.18),0 0 0 1px var(--dr-line-2);animation:dr-emoji-pop .14s ease-out}
#dayroom .dr-emoji-row{display:flex;gap:2px}
#dayroom .dr-emoji-row>[role="gridcell"]{display:grid}
#dayroom .dr-emoji{width:34px;height:34px;display:grid;place-items:center;padding:0;border:0;border-radius:8px;background:transparent;font-size:20px;line-height:1}
#dayroom .dr-emoji:is(:hover,:focus-visible){background:color-mix(in srgb,var(--dr-ink) 7%,transparent)}
#dayroom .dr-emoji:focus-visible{outline-offset:0}
@keyframes dr-emoji-pop{from{opacity:0;transform:translateY(-2px) scale(.97)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){#dayroom .dr-emoji-picker{animation:none}}
/* The hover tools (reference .tools), top right of the row. Hidden by opacity rather than display, so Tab still reaches them and keyboard focus (:focus-visible) shows them. */
#dayroom .dr-message-actions{position:absolute;z-index:2;top:-15px;right:14px;display:flex;gap:2px;margin:0;padding:3px;border-radius:11px;background:var(--dr-panel);box-shadow:0 8px 20px -4px rgba(0,0,0,.18),0 0 0 1px var(--dr-line-2);opacity:0;pointer-events:none}
#dayroom article.dr-message-row:is(:hover,:has(:focus-visible)) .dr-message-actions,#dayroom .dr-message-actions:has([aria-expanded="true"]){opacity:1;pointer-events:auto}
#dayroom .dr-message-actions .dr-tool{width:30px;height:28px;display:grid;place-items:center;padding:0;border:0;border-radius:8px;background:transparent;color:var(--dr-muted);font-size:15px}
#dayroom .dr-message-actions .dr-tool:hover,#dayroom .dr-message-actions .dr-tool[aria-expanded="true"]{background:color-mix(in srgb,var(--dr-ink) 6%,transparent);color:var(--dr-ink)}
#dayroom .dr-message-actions svg.dr-i{width:16px;height:16px}
#dayroom .dr-message-actions .dr-tool[aria-pressed="true"]{color:var(--dr-accent-text)}
#dayroom .dr-message-actions .dr-tool[aria-pressed="true"] svg.dr-i{fill:currentColor}
/* The More menu: a small panel under its button (above it near the bottom of the list), one text item per remaining action. */
#dayroom .dr-more{position:relative;display:grid}
#dayroom .dr-menu{position:absolute;z-index:3;top:calc(100% + 6px);right:-3px;display:flex;flex-direction:column;min-width:168px;padding:4px;border-radius:11px;background:var(--dr-panel);box-shadow:0 8px 20px -4px rgba(0,0,0,.18),0 0 0 1px var(--dr-line-2)}
#dayroom .dr-menu.is-up{top:auto;bottom:calc(100% + 6px)}
#dayroom .dr-menu[hidden]{display:none}
#dayroom .dr-menu .dr-menu-item{height:32px;padding:0 10px;border:0;border-radius:8px;background:transparent;color:var(--dr-ink-2);font-size:13px;font-weight:700;text-align:left;white-space:nowrap}
#dayroom .dr-menu .dr-menu-item:is(:hover,:focus){background:color-mix(in srgb,var(--dr-ink) 6%,transparent);color:var(--dr-ink)}
/* Without hover (touch screens) the tools stay in view under the message. */
@media(hover:none){#dayroom .dr-message-actions{position:static;width:fit-content;margin-top:6px;opacity:1;pointer-events:auto;box-shadow:inset 0 0 0 1px var(--dr-line-2)}}
/* The typing line (reference .typing). It keeps its 26px while nobody types, so the conversation doesn't jump when someone starts. */
#dayroom #dr-typing{flex:none;display:flex;align-items:center;gap:8px;height:26px;padding:2px 24px 6px;color:var(--dr-muted);font-size:12px;font-weight:700}
#dayroom .dr-dots{display:inline-flex;gap:3px}
#dayroom .dr-dots i{width:5px;height:5px;border-radius:50%;background:var(--dr-faint);animation:dr-typing-dot 1.2s ease-in-out infinite}
#dayroom .dr-dots i:nth-child(2){animation-delay:.15s}
#dayroom .dr-dots i:nth-child(3){animation-delay:.3s}
@keyframes dr-typing-dot{0%,60%,100%{opacity:.45;transform:none}30%{opacity:1;transform:translateY(-2px)}}
@media(prefers-reduced-motion:reduce){#dayroom .dr-dots i{animation:none}}
/* ---------- Composer (reference §2.5): reply/pending chips, then the auto-growing field, then the bar. In the dark scheme it sits on --dr-sunken instead of --dr-panel. ---------- */
#dayroom .dr-composer{margin:0 12px 12px;flex:none;display:flex;flex-direction:column;gap:2px;border-radius:14px;background:var(--dr-panel);box-shadow:inset 0 0 0 1px var(--dr-field-line),0 2px 6px -2px rgba(0,0,0,.06);padding:11px 10px 8px 14px}
/* The card itself shows the ring when its field is focused (reference §2.5), the same "the wrapper rings, the bare field inside stays plain" pattern as the search bars below.
   Minor 7: :focus-within also lit for a toolbar button (Attach, Emoji, Send…) and for a plain mouse click
   anywhere in the card, since it only cares that focus is somewhere inside. :has(textarea:focus-visible)
   scopes it to the card's own field specifically being keyboard-focused — textarea, not #dr-message, since
   the thread's reply box reuses this same .dr-composer class with its own #dr-thread-message field. */
#dayroom .dr-composer:has(textarea:focus-visible){outline:2px solid var(--dr-accent);outline-offset:2px}
@media(prefers-color-scheme:dark){#dayroom:not([data-scheme]) .dr-composer{background:var(--dr-sunken)}}
#dayroom[data-scheme="dark"] .dr-composer{background:var(--dr-sunken)}
/* Reply-to and pending-attachment chips: not in the mockup's short conversation, so drawn in its token language. Empty, they take no room. */
#dayroom .dr-reply-chip{display:flex;align-items:center;gap:10px;min-width:0;padding:7px 10px;border-radius:10px;background:var(--dr-sunken);color:var(--dr-muted);font-size:12.5px;font-weight:600;overflow-wrap:anywhere}
#dayroom .dr-reply-chip:empty{display:none}
/* visual-1 I3: the plain button this chip built lived at browser-default contrast and wrapped to "Can/cel" at 900px. */
#dayroom .dr-reply-chip button{flex:none;white-space:nowrap}
/* The field (reference .field): a single 38px line, faint like a placeholder until typed, that grows with the draft up to the cap below (lower in a short window), then scrolls. */
/* min-height overrides the shared #dayroom textarea{min-height:72px} (still needed by the thread and settings textareas), so the field keeps its 38px single line rather than that floor. */
/* Plain text inside the composer's own card (reference .field): opts out of the global field look/ring, which the card already provides. */
#dayroom #dr-message{display:block;width:100%;height:38px;min-height:38px;max-height:200px;margin:0;padding:8px 2px;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--dr-ink);font:inherit;font-weight:600;font-size:14px;line-height:20px;resize:none;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--dr-line-2) transparent}
#dayroom #dr-message:focus-visible{outline:none;box-shadow:none}
/* Minor 1: --dr-faint reads at 2.3-3.3:1 here, below AA; --dr-muted is the same fix the message times already use. */
#dayroom #dr-message::placeholder{color:var(--dr-muted);font-weight:600}
/* The bar (reference .bar/.tb/.div/.send): icon buttons from the shell sprite, a divider before DRIVE, Send at the end after .dr-grow. */
#dayroom .dr-bar{flex:none;display:flex;align-items:center;gap:2px;margin-left:-6px}
#dayroom .dr-bar .dr-tb{width:32px;height:30px;min-height:0;margin:0;padding:0;border:0;border-radius:8px;display:grid;place-items:center;background:transparent;color:var(--dr-muted)}
#dayroom .dr-bar .dr-tb:hover{background:color-mix(in srgb,var(--dr-ink) 6%,transparent);color:var(--dr-ink)}
#dayroom .dr-bar .dr-tb svg.dr-i{width:18px;height:18px}
#dayroom .dr-bar .dr-tb svg.dr-px{width:16px;height:16px}
#dayroom .dr-bar .dr-div{flex:none;width:1px;height:18px;margin:0 4px;background:var(--dr-line-2)}
#dayroom .dr-send{flex:none;width:34px;height:34px;min-height:0;margin:0;padding:0;border:0;border-radius:10px;display:grid;place-items:center;background:var(--dr-accent);color:var(--dr-accent-ink)}
#dayroom .dr-send svg.dr-i{width:18px;height:18px;stroke-width:2.2}
/* Short windows (Tasks 2/3's fix, carried into the new composer): a lower field cap keeps the bar, and Send, in view with a long draft; the outer cap is the same budget call-panel.css used before Calls Task 2 removed its own composer rules, for reply/pending/hint stacked with a full field. */
@media(min-width:851px) and (max-height:760px){
 #dayroom .dr-composer{max-height:calc((100dvh - 120px)*.46);overflow:auto;scrollbar-width:thin;scrollbar-color:var(--dr-line) transparent}
 #dayroom #dr-message{max-height:96px}
}
/* Narrow web windows (the desktop app's minimum is 900px) stack the sidebar above the main pane. */
@media(max-width:760px){
 #dayroom .dr-rail{width:64px}#dayroom .dr-rbtn{width:56px}
 #dayroom .dr-layout{display:flex;flex-direction:column;overflow-y:auto}
 #dayroom .dr-sidebar{flex:none;padding:8px 8px 0 2px}#dayroom .dr-sidebar-scroll{flex:none;max-height:40dvh}#dayroom .dr-side-foot{margin-top:0}
 #dayroom .dr-main{flex:none;min-height:560px;margin:8px 8px 8px 0}
}
/* Phone-width web windows, and web windows between the stacked layout and the 900px desktop minimum: the header's controls wrap under the title instead of clipping Channel details off the pane. */
@media(max-width:620px),(min-width:761px) and (max-width:899px){
 #dayroom .dr-head{height:auto;min-height:60px;flex-wrap:wrap;row-gap:8px;padding-top:8px;padding-bottom:8px}
 #dayroom .dr-head>div:first-child{flex:1 0 100%}
 #dayroom .dr-head>.dr-grow{display:none}
}
/* ---------- Global components (reference §2.5 and §3.4): buttons, fields, the modal, the toast and menus. These are DEFAULTS, at effectively zero added specificity (:where()), so every existing component keeps whatever look it already draws for itself (a search bar's borderless input, a list row's own button, Doorway's entry fields); only elements with no look of their own pick up the new one. Where a panel's own rule doesn't touch every property the default sets (height, box-shadow), that panel file adds an explicit opt-out next to its own rule. */
/* Buttons (reference .pillbtn): a 32px pill with an inset ring; .dr-primary fills the pill with the accent. min-height (not height) so a multi-line list row that reuses .dr-button (search results, the directory, a companion call) can still grow; panels still vary height/padding/font-size/white-space per context, and win normally since they're never less specific than #dayroom alone. */
#dayroom :where(.dr-button){min-height:32px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 12px;margin:0;border:0;border-radius:10px;background:transparent;box-shadow:inset 0 0 0 1px var(--dr-line-2);color:var(--dr-ink)}
#dayroom :where(.dr-button):hover:not(:disabled):not([aria-disabled=true]){background:color-mix(in srgb,var(--dr-ink) 6%,transparent)}
/* N4 (re-review): a dialog button marked aria-disabled while busy (product-app.js's bind/form) used to look fully
   idle -- only native :disabled dimmed anything here. It now gets the same look disabled buttons get elsewhere. */
#dayroom :where(.dr-button,button)[aria-disabled="true"]{cursor:default;opacity:.5}
#dayroom :where(.dr-button) svg.dr-i{width:16px;height:16px}
#dayroom :where(.dr-button.dr-primary){background:var(--dr-accent);color:var(--dr-accent-ink);box-shadow:0 1px 2px rgba(0,0,0,.12)}
#dayroom :where(.dr-button.dr-primary):hover:not(:disabled):not([aria-disabled=true]){background:var(--dr-accent);filter:brightness(1.05)}
/* Typography lives in its own rule, a plain (not :where()) class selector: it still needs to beat the button/input/select font:inherit reset above (product.css), which a zero-specificity rule cannot, while a panel's own size/weight for its own button or field (more specific than a single class or already winning by :where()) keeps overriding it same as before. */
#dayroom .dr-button{font-size:13px;font-weight:800}
/* Fields (reference §3.4 .input): input, select and textarea share one field look. Checkboxes, radios and similar native controls keep their own shape. A search bar's own input (border:0 on top of its wrapper's box), Doorway's entry fields, and other fields that already draw a complete look of their own opt out next to that rule with an explicit box-shadow/height reset, since :where() only yields on properties a panel rule also sets. */
#dayroom :where(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=image]),select,textarea){margin:0;padding:0 12px;border:0;border-radius:12px;background:var(--dr-field);box-shadow:inset 0 0 0 1px var(--dr-field-line);color:var(--dr-ink)}
/* A textarea grows with its content (see #dayroom textarea{min-height:72px} above), so only single-line fields take the fixed pill height. */
#dayroom :where(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=image]),select){height:40px}
#dayroom textarea{padding-top:9px;padding-bottom:9px}
/* Round 2 kept this at (1,1,1) (via the same one-class-worth-of-specificity reasoning as the button rule
   above) so it would beat product.css's #dayroom button,input,select{font:inherit} reset - but every
   component's own input font rule (.dr-wp-search input, .dr-hub-search input, .dr-drive-search input,
   .dr-wp-todo-editor input,select) is ALSO (1,1,1): a class plus the element, same as this. Same specificity,
   later file (window.css loads near-last, reference build.py) still won the tie, so 600/14px leaked into
   Activity/Agents/Drive search and the to-do editor's title despite each already having its own look. Now
   :where()-wrapped to (1,0,0) instead, same as the font:inherit reset it has to beat (also :where()-wrapped,
   above and at #dayroom textarea{font:inherit} for the textarea branch): window.css still loads after
   product.css, so this still wins that tie, but every (1,1,1) component rule now wins outright instead of by
   order. The Doorway's own fields (.dr-door-input, doorway.css) set their own size/weight next to
   their own look; the :where(.dr-entry-field input) branch below predates that rebuild and keeps this
   rule's specificity math pinned by a regression test even now that nothing carries the class any more. */
#dayroom :where(input:not([type=checkbox],[type=radio],[type=range],[type=color],[type=file],[type=image],:where(.dr-entry-field input)),select,textarea){font-size:14px;font-weight:600}
/* Minor 1: --dr-faint reads at 2.3-3.3:1 here, below AA; --dr-muted is the same fix the message times already use. */
#dayroom :where(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=image]),select,textarea)::placeholder{color:var(--dr-muted);font-weight:500;opacity:1}
/* Minor 8 (visual-2): Chromium/Safari draw their own blue "x" clear control on every type=search field (the
   app search bars, teammate search, every work-page and hub search), which no palette here ever styled.
   Hidden outright, since the fields already clear on their own (oninput/clearing the value on Escape elsewhere)
   and a restyled one would need separate light/dark/forced-colours art for a control the design never drew. */
#dayroom input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none;display:none}
/* Doorway's .input:focus ring (inset accent line plus a soft outer glow), reused for every field instead of the plain outline below.
   I9: outline:none here meant a contrast theme, which drops the box-shadow ring along with the inset edge
   below, left every field with no focus indicator at all. outline:2px solid transparent keeps the look
   identical outside forced-colors (transparent paints nothing) while giving a contrast theme a non-"none"
   outline to paint over in Highlight. */
#dayroom :where(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=image]),select,textarea):focus-visible{outline:2px solid transparent;outline-offset:2px;box-shadow:inset 0 0 0 1.5px var(--dr-accent),0 0 0 4px var(--dr-accent-soft)}
/* Every other interactive element gets a visible 2px accent ring. The shared rings below sit at (1,1,0) through
   :where(), so any component's own ring written as #dayroom <component>:focus-visible, at least (1,2,0), wins from
   any stylesheet and in any load order. The rules every focus ring follows (final review, C1):
   1. No class-name exclusion lists in window.css. :not(.a,.b,…) takes its strongest argument's weight, which lifts
      the shared ring above every designed ring instead of stepping aside for a few.
   2. A focusable element that touches the edge of a clipping container (overflow hidden, auto or scroll) declares
      an inset ring (outline-offset:-2px), since an outset one is cut off there.
   3. A rest-state outline:none or box-shadow:none on a focusable element is either scoped to :not(:focus-visible)
      or uses the wrapper :focus-within pattern (the composer card, the search bars), so focus always shows.
   4. Tests compute specificity rather than pinning selector text (product-client.test.cjs). */
#dayroom :where(button,a,summary,[tabindex]):focus-visible{outline:2px solid var(--dr-accent);outline-offset:2px}
#dayroom :where(input:is([type=checkbox],[type=radio],[type=range],[type=color],[type=file])):focus-visible{outline:2px solid var(--dr-accent);outline-offset:2px}
/* Rule 2: sidebar rows and the section + buttons sit in .dr-sidebar-scroll, and the rail's destinations in .dr-rail-main.
   Both scroll, so both clip an outset ring at their edges. */
#dayroom :is(.dr-row,.dr-plus,.dr-rbtn):focus-visible{outline:2px solid var(--dr-accent);outline-offset:-2px}
/* The modal: a panel card, its header a fixed 60px bar (the title at 16px/800, a .dr-iconbtn close) and a body that scrolls on its own below it, so a long list (search results, notifications, the directory, channel details, a WhatsApp dialog, the character studio) stays reachable past 90dvh. A full-page dialog (#dr-modal-body>.dr-page, surfaces.css) resets both to lay out its own header/scroll. */
#dayroom .dr-overlay{position:absolute;inset:0;z-index:10;display:flex;align-items:flex-start;justify-content:center;padding:64px 16px 24px;background:light-dark(rgba(15,23,19,.38),rgba(2,6,4,.6));-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
#dayroom:is([data-screen=auth],[data-screen=workspaces]) #dr-live{z-index:21}
#dayroom .dr-modal{position:relative;display:flex;flex-direction:column;width:400px;max-width:100%;max-height:calc(100dvh - 88px);border-radius:16px;background:var(--dr-panel);color:var(--dr-ink);box-shadow:var(--dr-shadow);overflow:hidden}
#dayroom .dr-modalhead{flex:none;min-height:60px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 12px 0 20px;border-bottom:1px solid var(--dr-line)}
#dayroom .dr-modalhead h2{font-size:16px;font-weight:800;letter-spacing:-.01em}
#dayroom .dr-modalhead .dr-close{flex:none}
#dayroom #dr-modal-body{flex:1;min-height:0;overflow-y:auto;padding:24px}
#dayroom #dr-modal-body .dr-error:empty{display:none}
@media(max-width:560px){#dayroom #dr-modal-body{padding:16px}#dayroom :where(.dr-button){min-height:38px}}
/* The workspace menu: a popover card with row buttons (its own .dr-button pill ring is flattened into a flush row). */
#dayroom .dr-workspace-menu{position:absolute;z-index:9;left:0;top:calc(100% + 6px);display:flex;flex-direction:column;width:236px;padding:6px;border-radius:12px;background:var(--dr-panel);box-shadow:0 8px 20px -4px rgba(0,0,0,.18),0 0 0 1px var(--dr-line-2)}
#dayroom .dr-workspace-menu .dr-button{height:36px;justify-content:flex-start;padding:0 10px;border-radius:8px;background:transparent;box-shadow:none;color:var(--dr-ink-2);font-size:13px;font-weight:700}
#dayroom .dr-workspace-menu .dr-button:hover,#dayroom .dr-workspace-menu .dr-button:focus-visible{background:color-mix(in srgb,var(--dr-ink) 6%,transparent);color:var(--dr-ink)}
/* The toast (#dr-live): a floating glass pill shown briefly for each message, then dismissed (product-app.js say()). It's positioned above the composer's tool row by default, clear of its icon buttons, and further above the call stage's glass control bar (Calls Task 2) when that's showing instead of the composer. It's decorative for assistive tech (say() writes every message to the always-rendered #dr-say-live instead), since toggling visibility on the one element screen readers watch is unreliable. */
/* --dr-composer-h (product-app.js, a ResizeObserver on the channel composer and on a thread's reply box,
   written on the toast itself) is the current height of whichever composer shows, so a reply chip,
   pending attachments, a longer draft or an open thread all still leave the toast clear of it: +28px
   covers the composer's own 12px bottom margin plus the pane's own 8px gap above its top
   edge (not 16px - the pane already contributes half of that). The 95px fallback matches a
   single-line composer, for the moment before that observer's first read. The composer is 0px on
   screens that hide it entirely instead of resizing it (the expanded office, the workspaces screen,
   sign-in) rather than just being briefly absent before layout - max(96px, ...) is a floor for that
   case, so the toast still clears controls near the bottom of those screens (Design studio, Sign
   out) instead of sitting 28px up with nothing to clear. */
#dayroom #dr-live{position:fixed;z-index:11;left:50%;bottom:max(96px,calc(var(--dr-composer-h,95px) + 28px));max-width:min(420px,calc(100% - 32px));padding:10px 18px;border-radius:100px;color:var(--dr-ink);font-size:12.5px;font-weight:700;line-height:1.35;text-align:center;opacity:0;visibility:hidden;transform:translate(-50%,6px);transition:opacity .16s ease,transform .16s ease,visibility 0s linear .16s;pointer-events:none}
#dayroom #dr-live:empty{display:none}
#dayroom #dr-live.is-shown{opacity:1;visibility:visible;pointer-events:auto;transform:translate(-50%,0);transition:opacity .16s ease,transform .16s ease}
@media(prefers-reduced-motion:reduce){#dayroom #dr-live,#dayroom #dr-live.is-shown{transition:none}}
/* Minor 2: left:50% above centres the pill on the whole window, not .dr-main -- at the 900px desktop minimum
   that put part of it over the sidebar's DM rows (rail 76px + sidebar 256px, visible only above this file's
   own 760px layout-switch below, sit on .dr-main's left; its own 8px right margin is the only thing on the
   right). .dr-main's centre is then a FIXED 162px right of the window's own centre at every width in that
   range -- ((76+256)+8)/2 -- regardless of width, since both terms are themselves fixed: left:calc(50% +
   162px) re-centres the pill on .dr-main instead, wherever that holds. Below 760px the sidebar moves above
   .dr-main (same breakpoint), but the 64px rail stays on its left and its 8px margin on its right: it spans
   64px to W-8px, so its centre is (64 + W - 8)/2 = W/2 + 28, a fixed 28px right of the window's. Both
   overrides share the base rule's specificity and come later in the file, so they win the tie. */
@media(min-width:761px){#dayroom #dr-live{left:calc(50% + 162px)}}
@media(max-width:760px){#dayroom #dr-live{left:calc(50% + 28px)}}
/* The call stage (Calls Task 2) fills the pane below the header and hides the composer with it (its
   height, and so --dr-composer-h, collapses to 0), so the default composer clearance no longer means
   anything here; a fixed distance above the glass control bar replaces it rather than adding to it. */
#dayroom:has(#dr-callbox.dr-call-screen) #dr-live{bottom:126px}
/* Minor 6 (visual-2): the toast's bottom offset tracks the composer, which says nothing about an open dialog
   centred over it, so a tall dialog's own content or actions could sit right where the toast lands. A dialog
   always starts 64px from the top (.dr-overlay's own padding), so anchoring the toast near the top instead,
   for as long as one is open, keeps it clear regardless of how tall the dialog grows. Same specificity as the
   call-stage lift above and later in the file, so this wins that tie too when a dialog opens mid-call. */
#dayroom:has(#dr-overlay:not([hidden])) #dr-live{top:16px;bottom:auto;transform:translate(-50%,-6px)}
#dayroom:has(#dr-overlay:not([hidden])) #dr-live.is-shown{transform:translate(-50%,0)}
/* I9: a Windows contrast theme drops every box-shadow, which is all that drew a field's edge above and,
   below, the rail's current destination, the open room/DM and the chosen chat/split/office layout --
   three states shown only by a background colour (reference §2.5's .dr-sel/.dr-panel swaps). System
   colours replace them. The rail and sidebar list scroll (rule 2), so these ring inside themselves. */
@media (forced-colors:active){
 #dayroom :where(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=image]),select,textarea){border:1px solid CanvasText}
 #dayroom .dr-rbtn[aria-current=page] .dr-ri{outline:2px solid Highlight;outline-offset:-2px}
 #dayroom .dr-row.is-on{outline:2px solid Highlight;outline-offset:-2px}
 #dayroom .dr-seg:not(.is-text) button[aria-pressed=true]{outline:2px solid Highlight;outline-offset:-2px}
}

/* Camera chips remain available in both compact and expanded office views. */
#dayroom .dr-office-zoom{position:absolute;z-index:7;right:12px;bottom:12px;display:flex;gap:2px;padding:3px;border-radius:11px}
#dayroom .dr-office-zoom>.dr-chip{display:grid;place-items:center;min-width:28px;height:28px;margin:0;padding:0 7px;border:0;border-radius:8px;background:transparent;color:var(--dr-ink);font-size:13px;font-weight:800;cursor:pointer}
#dayroom .dr-office-zoom>.dr-chip:hover{background:color-mix(in srgb,var(--dr-ink) 8%,transparent)}
#dayroom .dr-office-zoom>.dr-chip:focus-visible{box-shadow:0 0 0 2px rgba(10,20,14,.65)}
/* Keep Customize desk clear of the corner chips on narrow office windows. */
@media(max-width:1040px){#dayroom .dr-window #dr-desk-customize{bottom:56px}}
@media(forced-colors:active){#dayroom .dr-office-zoom{border:1px solid CanvasText;background:Canvas}}

/* Teammate suggestions stay in the composer, clear of the message history. */
#dayroom .dr-mention-picker{max-height:190px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--dr-field-line);border-radius:10px;background:var(--dr-panel);padding:4px;margin:5px 0}
#dayroom .dr-mention-picker[hidden]{display:none}
#dayroom .dr-mention-picker>[role="option"]{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;width:100%;padding:8px 12px;border:0;border-radius:7px;background:transparent;color:var(--dr-ink);text-align:left;font:inherit;cursor:pointer}
#dayroom .dr-mention-picker>[role="option"]:is([aria-selected="true"],:hover){background:var(--dr-accent-soft);color:var(--dr-accent-text)}
#dayroom .dr-mention-picker strong{overflow-wrap:anywhere;font-size:13px}
#dayroom .dr-mention-picker span{font-size:11px;flex-shrink:0}
#dayroom .dr-mention-picker p{padding:8px;font-size:12px}

/* Slash commands share the composer's palette and keep their explanation beside the usage. */
#dayroom .dr-command-picker{flex:0 1 auto;min-height:56px;max-height:232px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--dr-field-line);border-radius:10px;background:var(--dr-panel);padding:4px;margin:5px 0;scrollbar-width:thin}
#dayroom .dr-command-picker[hidden]{display:none}
#dayroom .dr-command-picker>[role="option"]{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-height:52px;width:100%;padding:8px 12px;border:0;border-radius:7px;background:transparent;color:var(--dr-ink);text-align:left;font:inherit;cursor:pointer}
#dayroom .dr-command-picker>[role="option"]:is([aria-selected="true"],:hover){background:var(--dr-accent-soft);color:var(--dr-accent-text)}
#dayroom .dr-command-usage{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px}
#dayroom .dr-command-usage strong{font-size:13px}
#dayroom .dr-command-usage small,#dayroom .dr-command-description{font-size:12px;line-height:1.4;color:var(--dr-muted);overflow-wrap:anywhere}
#dayroom .dr-command-picker p{margin:0;padding:10px 12px;font-size:12px;color:var(--dr-muted)}
@media(max-height:760px){#dayroom .dr-command-picker{max-height:168px}}
@media(forced-colors:active){#dayroom .dr-command-picker>[aria-selected="true"]{outline:2px solid Highlight;outline-offset:-2px}}
/* Review cards for agent-prepared to-dos and direct messages (companion-actions.js): flat, crisp edges, readable fields. */
#dayroom .dr-action-card{margin-top:9px;max-width:min(460px,100%);padding:12px 14px;border-radius:12px;background:var(--dr-panel);box-shadow:inset 0 0 0 1px var(--dr-line-2);color:var(--dr-ink-2);font-size:13px}
#dayroom .dr-action-fields{display:grid;grid-template-columns:auto 1fr;gap:6px 12px;margin:0}
#dayroom .dr-action-fields dt{color:var(--dr-muted);font-weight:700}
#dayroom .dr-action-fields dd{margin:0;overflow-wrap:anywhere}
#dayroom .dr-action-text{white-space:pre-wrap}
#dayroom .dr-action-foot{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px}
#dayroom .dr-action-foot:empty{display:none}
#dayroom .dr-action-status{margin:0;color:var(--dr-muted);font-weight:700}
#dayroom .dr-action-status.is-done{color:var(--dr-accent-text)}
#dayroom .dr-action-edit{display:grid;gap:8px}
#dayroom .dr-action-edit label{display:grid;gap:4px;color:var(--dr-muted);font-weight:700}
#dayroom .dr-action-edit input,#dayroom .dr-action-edit select,#dayroom .dr-action-edit textarea{font:inherit;color:var(--dr-text);background:var(--dr-sunken);border:1px solid var(--dr-line-2);border-radius:8px;padding:7px 9px;min-width:0}
#dayroom .dr-action-to{margin:0;color:var(--dr-muted);font-weight:700}
#dayroom .dr-thread-compose .dr-hint .dr-link{padding:0;border:0;background:none;color:var(--dr-accent-text);font-weight:800;cursor:pointer}

/* Room mute, archive and delete (decision 2026-10-02; room-lifecycle.js). */
#dayroom .dr-row-wrap{position:relative;display:flex;flex-direction:column;flex:none}
#dayroom .dr-row-more{position:absolute;top:50%;right:4px;width:26px;height:26px;display:grid;place-items:center;padding:0;border:0;border-radius:7px;background:var(--dr-panel);color:var(--dr-muted);opacity:0;transform:translateY(-50%);cursor:pointer}
#dayroom .dr-row-more svg.dr-i{width:16px;height:16px}
#dayroom .dr-row-more:is(:hover,:focus-visible){color:var(--dr-ink);background:color-mix(in srgb,var(--dr-ink) 8%,var(--dr-panel))}
#dayroom .dr-row-more:focus-visible{outline:2px solid var(--dr-accent);outline-offset:-2px}
#dayroom .dr-row-wrap:is(:hover,:focus-within) .dr-row-more,#dayroom .dr-row-more[aria-expanded="true"]{opacity:1}
#dayroom .dr-row-wrap:is(:hover,:focus-within)>.dr-row,#dayroom .dr-row-wrap:has(.dr-row-more[aria-expanded="true"])>.dr-row{padding-right:36px}
@media (hover:none){#dayroom .dr-row-more{opacity:1}#dayroom .dr-row-wrap>.dr-row{padding-right:36px}}
#dayroom .dr-row.is-muted{color:var(--dr-muted)}
#dayroom .dr-row.is-muted .dr-pile{opacity:.7}
#dayroom .dr-row .dr-mute-icon{flex:none;width:10px;height:10px;margin-left:auto;color:var(--dr-muted)}
#dayroom .dr-row .dr-mute-icon+.dr-count{margin-left:6px}
#dayroom .dr-room-menu{position:fixed;z-index:40;display:flex;flex-direction:column;min-width:208px;padding:4px;border-radius:11px;background:var(--dr-panel);box-shadow:0 8px 20px -4px rgba(0,0,0,.18),0 0 0 1px var(--dr-line-2)}
#dayroom .dr-room-menu-item{height:32px;padding:0 10px;border:0;border-radius:8px;background:transparent;color:var(--dr-ink-2);font-size:13px;font-weight:700;text-align:left;white-space:nowrap;cursor:pointer}
#dayroom .dr-room-menu-item:is(:hover,:focus){background:color-mix(in srgb,var(--dr-ink) 6%,transparent);color:var(--dr-ink);outline:none}
#dayroom .dr-room-menu-item:focus-visible{outline:2px solid var(--dr-accent);outline-offset:-2px}
#dayroom .dr-room-menu-item.is-danger{color:var(--st-dnd)}
#dayroom .dr-room-menu-sep{height:1px;margin:4px 6px;background:var(--dr-line-2)}
#dayroom .dr-archived-banner{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:10px 12px 0;padding:9px 12px;border-radius:10px;background:var(--dr-sunken);color:var(--dr-ink-2);font-size:13px;font-weight:700;box-shadow:inset 0 0 0 1px var(--dr-line-2)}
#dayroom .dr-archived-banner[hidden]{display:none}
#dayroom .dr-archived-banner svg.dr-i{width:16px;height:16px;flex:none}
#dayroom .dr-linkbtn{padding:0;border:0;background:none;color:var(--dr-accent-text);font:inherit;font-weight:800;text-decoration:underline;cursor:pointer}
#dayroom .dr-linkbtn:focus-visible{outline:2px solid var(--dr-accent);outline-offset:2px;border-radius:3px}
#dayroom .dr-room-gone{padding:24px 16px;text-align:center}
#dayroom[data-room-archived] #dr-compose,#dayroom[data-room-archived] .dr-thread-compose,#dayroom[data-room-archived] [data-react],#dayroom[data-room-archived] [data-reply],#dayroom[data-room-archived] [data-thread-reply]{display:none}
#dayroom[data-room-archived] .dr-re{pointer-events:none}
/* Sidebar sections (room-sections.js): a collapsible heading inside Rooms, e.g. an imported WhatsApp community. */
#dayroom .dr-section{display:flex;flex-direction:column}
#dayroom .dr-section-head{display:flex;align-items:center;gap:6px;height:28px;margin:6px 0 1px 4px;padding:0 8px 0 10px;border:0;border-radius:9px;background:transparent;color:var(--dr-muted);font-size:12px;font-weight:800;letter-spacing:.01em;text-align:left;cursor:pointer}
#dayroom .dr-section-head:hover{background:var(--dr-hover,rgba(127,127,127,.12));color:var(--dr-ink-2)}
#dayroom .dr-section-head:focus-visible{outline:2px solid var(--dr-accent);outline-offset:-2px}
#dayroom .dr-section-chevron{flex:none;width:12px;height:12px;transition:none}
#dayroom .dr-section.is-collapsed .dr-section-chevron{transform:rotate(-90deg)}
#dayroom .dr-section-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#dayroom .dr-section-head .dr-badge,#dayroom .dr-section-head .dr-count{margin-left:auto}
#dayroom .dr-section-rooms{display:flex;flex-direction:column;padding-left:8px}

/* Plan 4b: one page anatomy for every panel and page. Tokens only; loaded after window.css. */
#dayroom :is(.dr-page,.dr-card,.dr-li,.dr-tile,.dr-empty,.dr-dock,.dr-progress-wrap,.dr-seg)[hidden]{display:none}
#dayroom .dr-page{display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--dr-panel);color:var(--dr-ink)}
#dayroom .dr-page :is(h1,h2,h3,h4,p,ul,ol,figure):not(.dr-answer-text *){margin:0}
#dayroom .dr-page-head{flex:none;display:flex;align-items:center;gap:10px;min-height:60px;padding:10px 12px 10px 20px;border-bottom:1px solid var(--dr-line)}
#dayroom .dr-page-titles{flex:1;min-width:0}
#dayroom :is(h1,h2).dr-page-title{font-size:16px;font-weight:800;letter-spacing:-.01em;line-height:1.3;color:var(--dr-ink)}
#dayroom :is(h1,h2).dr-page-title:focus{outline:none}
/* Minor 6: a landing dialog or page focuses its own heading only to announce it (tabindex="-1"; it only rings
   for a keyboard-triggered open, never a mouse one, same as theme-studio.css's status lines). The old outset
   ring read as a text field around plain text and, with only the subtitle's 1px margin below, overlapped it.
   Inset keeps the ring inside the heading's own line box instead of bleeding into the subtitle. */
#dayroom :is(h1,h2).dr-page-title:focus-visible{outline:2px solid var(--dr-accent);outline-offset:-2px;border-radius:4px}
#dayroom p.dr-page-sub{margin-top:1px;font-size:12.5px;font-weight:600;line-height:1.4;color:var(--dr-muted);text-wrap:pretty}
#dayroom .dr-page-actions{flex:none;display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}
#dayroom .dr-page-body{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:16px;padding:20px 20px 28px;scrollbar-width:thin;scrollbar-color:var(--dr-line-2) transparent}
#dayroom .dr-page-body>*{flex:none}
/* Section cards */
#dayroom .dr-card{min-width:0;overflow:hidden;border-radius:14px;background:var(--dr-panel);box-shadow:inset 0 0 0 1px var(--dr-line-2)}
#dayroom .dr-card-head{display:flex;align-items:center;gap:10px;padding:14px 16px 12px}
#dayroom .dr-card-head>div:first-child{flex:1;min-width:0}
#dayroom h3.dr-card-title,#dayroom summary.dr-card-title{font-size:14px;font-weight:800;line-height:1.35;color:var(--dr-ink)}
/* Minor 7 (visual-2): the same clash as .dr-page-title above, on a card title focused only to announce it
   (tabindex="-1", e.g. Help's dr-help-page-title). [tabindex] (not summary.dr-card-title, already in the
   shared ring's own list and never also given tabindex) keeps this off every untabindexed card title. */
#dayroom .dr-card-title[tabindex]:focus{outline:none}
#dayroom .dr-card-title[tabindex]:focus-visible{outline:2px solid var(--dr-accent);outline-offset:-2px;border-radius:4px}
#dayroom p.dr-card-sub{margin-top:2px;font-size:12.5px;font-weight:600;line-height:1.45;color:var(--dr-muted)}
#dayroom .dr-card-actions{flex:none;display:flex;align-items:center;gap:8px}
/* If a head ever puts .dr-card-actions first (or alone), it would also match >div:first-child above;
   this rule's extra class beats that one on specificity (1,3,0 vs 1,2,1) so actions never stretches. */
#dayroom .dr-card-head>.dr-card-actions:first-child{flex:none}
#dayroom .dr-card-body{padding:0 16px 16px;font-size:13.5px;font-weight:500;line-height:1.5;color:var(--dr-ink-2)}
#dayroom .dr-card>.dr-card-body:first-child{padding-top:16px}
#dayroom .dr-card.is-padded{display:flex;flex-direction:column;gap:12px;padding:16px}
#dayroom .dr-stack{display:flex;flex-direction:column;gap:12px}
#dayroom .dr-card-body>p{font-size:inherit;color:inherit}
#dayroom .dr-card-body>p+p{margin-top:8px}
/* App-wide (Desks Task 12 verification): product.css's .dr-modal p and this file's own .dr-card-body>p are
   both #dayroom + one class + the p type (1,1,1), which beats .dr-error's own (1,1,0) outright regardless
   of load order, so a <p class="dr-error"> in a thread's reply box, a call's notes, Help or a to-do form
   read as muted body text instead of an error. Doubling the class (1,2,0) beats (1,1,1) outright wherever
   .dr-error ends up, not only inside today's two known wrappers (surfaces-css.test.cjs computes this).
   Colour and weight only; .dr-error's own margin-bottom keeps the paragraph spacing. --dr-error-text (window.css)
   names the same red product.css's .dr-error and desk-studio.css's .dp-error already set literally, since this
   file's own rules may use only tokens, never a bare hex. */
#dayroom .dr-error.dr-error{color:var(--dr-error-text);font-weight:700}/* Lists and rows */
#dayroom .dr-list{display:flex;flex-direction:column;list-style:none;padding:0}
#dayroom .dr-card-head+.dr-list{border-top:1px solid var(--dr-line)}
#dayroom .dr-li{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;padding:10px 16px;border:0;background:transparent;color:var(--dr-ink);font:inherit;text-align:left;text-decoration:none}
#dayroom .dr-li+.dr-li{box-shadow:inset 0 1px 0 var(--dr-line)}
#dayroom :is(button,a).dr-li,#dayroom .dr-li.is-link{cursor:pointer}
@media (hover:hover){#dayroom :is(button,a).dr-li:hover,#dayroom .dr-li.is-link:hover{background:var(--dr-hover)}}
#dayroom .dr-li:is([aria-current="true"],[aria-current="page"],[aria-pressed="true"],.is-on){background:var(--dr-sel)}
#dayroom .dr-li-lead{flex:none;width:32px;height:32px;display:grid;place-items:center;overflow:hidden;border-radius:9px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-line);color:var(--dr-muted)}
#dayroom .dr-li-lead:has(canvas){width:44px;height:44px;border-radius:4px}
/* Phone rows offset wrapped text and actions by the lead's width plus the 12px gap (mobile.css). */
#dayroom .dr-li:has(>.dr-li-lead>canvas){--dr-lead:44px}
#dayroom .dr-li-lead canvas{display:block;width:44px;height:44px;border-radius:4px}
#dayroom .dr-li-lead svg.dr-i{width:17px;height:17px}
#dayroom .dr-li-body{flex:1;min-width:0;display:flex;flex-direction:column}
#dayroom .dr-li-title{font-size:13.5px;font-weight:700;line-height:1.35;color:var(--dr-ink);overflow-wrap:anywhere}
#dayroom .dr-li-sub{font-size:12px;font-weight:600;line-height:1.4;color:var(--dr-muted);overflow-wrap:anywhere}
#dayroom .dr-li-trail{flex:none;margin-left:auto;display:flex;align-items:center;gap:8px}
#dayroom :is(button,a,summary,label).dr-li:focus-visible{outline:2px solid var(--dr-accent);outline-offset:-2px}
/* Toggle: a checkbox switch or a pressed button */
#dayroom .dr-toggle{appearance:none;-webkit-appearance:none;position:relative;flex:none;width:34px;height:20px;margin:0;padding:0;border:0;border-radius:10px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-line-2);cursor:pointer;transition:background-color .15s}
#dayroom .dr-toggle::before{content:"";position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:var(--dr-muted);transition:transform .15s,background-color .15s}
#dayroom .dr-toggle:is(:checked,[aria-pressed="true"],[aria-checked="true"]){background:var(--dr-accent);box-shadow:none}
#dayroom .dr-toggle:is(:checked,[aria-pressed="true"],[aria-checked="true"])::before{transform:translateX(14px);background:var(--dr-accent-ink)}
#dayroom .dr-toggle:disabled{opacity:.5;cursor:not-allowed}
#dayroom .dr-toggle:focus-visible{outline:2px solid var(--dr-accent);outline-offset:2px}
#dayroom .dr-toggle>*{display:none}
/* Status chips */
#dayroom .dr-state{display:inline-flex;align-items:center;gap:6px;height:22px;padding:0 8px 0 7px;border-radius:11px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-line-2);color:var(--dr-muted);font-size:11.5px;font-weight:800;line-height:22px;white-space:nowrap}
#dayroom .dr-state::before{content:"";flex:none;width:7px;height:7px;border-radius:50%;background:var(--st-away)}
#dayroom .dr-state.is-off{background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-line-2);color:var(--dr-muted)}
#dayroom .dr-state.is-ok{background:color-mix(in srgb,var(--st-available) 14%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--st-available) 35%,transparent);color:color-mix(in srgb,var(--st-available) 55%,var(--dr-ink))}
#dayroom .dr-state.is-ok::before{background:var(--st-available)}
#dayroom .dr-state.is-warn{background:color-mix(in srgb,var(--st-working) 16%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--st-working) 40%,transparent);color:color-mix(in srgb,var(--st-working) 45%,var(--dr-ink))}
#dayroom .dr-state.is-warn::before{background:var(--st-working)}
#dayroom .dr-state.is-bad{background:color-mix(in srgb,var(--st-dnd) 12%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--st-dnd) 35%,transparent);color:color-mix(in srgb,var(--st-dnd) 60%,var(--dr-ink))}
#dayroom .dr-state.is-bad::before{background:var(--st-dnd)}
#dayroom .dr-state.is-busy{background:var(--dr-accent-soft);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--dr-accent) 30%,transparent);color:var(--dr-accent-text)}
#dayroom .dr-state.is-busy::before{background:var(--dr-accent);animation:dr-state-blink 1.2s steps(2,end) infinite}
@keyframes dr-state-blink{50%{opacity:.35}}
/* Category tags: what a thing is, never its state */
#dayroom .dr-kind{display:inline-flex;align-items:center;height:20px;padding:0 7px;border-radius:6px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-line);color:var(--dr-muted);font-size:11px;font-weight:800;line-height:20px;white-space:nowrap}
/* Connector tiles */
#dayroom .dr-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(216px,1fr));gap:12px}
#dayroom .dr-tile{position:relative;display:grid;grid-template-columns:48px minmax(0,1fr);grid-template-areas:"logo name" "logo state" "desc desc" "foot foot";align-content:start;column-gap:12px;row-gap:2px;min-height:148px;padding:14px;border-radius:14px;background:var(--dr-panel);box-shadow:inset 0 0 0 1px var(--dr-line-2);color:var(--dr-ink);text-align:left}
#dayroom .dr-tile-logo{grid-area:logo;width:48px;height:48px;display:grid;place-items:center;border-radius:13px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-line)}
#dayroom .dr-tile-name{grid-area:name;align-self:end;margin:0;font-size:14px;font-weight:800;line-height:1.3;color:var(--dr-ink);overflow-wrap:anywhere}
#dayroom .dr-tile-state{grid-area:state;align-self:start;display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:4px}
#dayroom p.dr-tile-desc{grid-area:desc;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:10px;font-size:12.5px;font-weight:600;line-height:1.45;color:var(--dr-muted)}
#dayroom .dr-tile-foot{grid-area:foot;display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px}
@media (hover:hover){#dayroom .dr-tile:hover{box-shadow:inset 0 0 0 1px var(--dr-line-2),0 8px 20px -8px rgba(0,0,0,.18)}}
/* I9: box-shadow alone vanishes in a contrast theme; outline:2px solid transparent gives it a non-"none"
   outline for the theme to paint, while staying invisible the rest of the time. */
#dayroom .dr-tile:focus-within{outline:2px solid transparent;outline-offset:2px;box-shadow:inset 0 0 0 1px var(--dr-line-2),0 0 0 2px var(--dr-accent)}
/* Empty states */
#dayroom .dr-empty{display:flex;flex-direction:column;align-items:center;gap:4px;padding:36px 20px;text-align:center}
#dayroom .dr-empty-art{width:56px;height:56px;margin-bottom:10px;display:grid;place-items:center;border-radius:16px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-line);color:var(--dr-muted)}
#dayroom .dr-empty-art svg.dr-i{width:24px;height:24px}
#dayroom p.dr-empty-title{font-size:14px;font-weight:800;line-height:1.35;color:var(--dr-ink)}
#dayroom p.dr-empty-text{max-width:44ch;font-size:13px;font-weight:600;line-height:1.5;color:var(--dr-muted)}
#dayroom .dr-empty-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:12px}
/* Progress */
#dayroom .dr-progress-wrap{min-width:0}
#dayroom .dr-progress-label{display:flex;justify-content:space-between;gap:12px;margin-bottom:6px;font-size:12px;font-weight:700;line-height:1.4;color:var(--dr-muted);font-variant-numeric:tabular-nums}
#dayroom .dr-progress{position:relative;height:8px;overflow:hidden;border-radius:4px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-line)}
#dayroom .dr-progress>i{display:block;height:100%;border-radius:4px;background:var(--dr-accent);transition:width .15s steps(3,end)}
#dayroom .dr-progress.is-busy{display:none}
#dayroom .dr-progress-wrap:has(.dr-progress.is-busy) .dr-progress-label{margin-bottom:0}
#dayroom .dr-progress.is-bad>i{background:var(--st-dnd)}
/* Segmented control with text (the shell's .dr-seg holds the icon version) */
#dayroom .dr-seg.is-text{display:inline-flex;flex-wrap:wrap;padding:3px;border-radius:10px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-line)}
#dayroom .dr-seg.is-text>button{display:inline-flex;align-items:center;gap:6px;width:auto;min-width:0;height:26px;padding:0 12px;border:0;border-radius:7px;background:transparent;color:var(--dr-muted);font:800 12.5px/26px 'Manrope',system-ui,sans-serif;white-space:nowrap;cursor:pointer}
#dayroom .dr-seg.is-text>button:is([aria-pressed="true"],[aria-current="page"]){background:var(--dr-panel);color:var(--dr-ink);box-shadow:0 1px 2px rgba(0,0,0,.10),0 0 0 1px var(--dr-line)}
/* Tooltip, popover and dock */
#dayroom .dr-has-tip{position:relative}
#dayroom .dr-tip{position:absolute;left:50%;bottom:calc(100% + 8px);z-index:60;width:max-content;max-width:240px;padding:6px 9px;border-radius:9px;background:var(--dr-glass);-webkit-backdrop-filter:blur(16px) saturate(1.4);backdrop-filter:blur(16px) saturate(1.4);box-shadow:var(--dr-glass-shadow),inset 0 0 0 1px var(--dr-glass-line);color:var(--dr-ink);font-size:12px;font-weight:700;line-height:1.35;text-align:left;white-space:normal;pointer-events:none;opacity:0;visibility:hidden;transform:translateX(-50%);transition:opacity .12s,visibility .12s}
#dayroom .dr-tip.is-below{bottom:auto;top:calc(100% + 8px)}
#dayroom .dr-has-tip:is(:hover,:focus-within)>.dr-tip{opacity:1;visibility:visible}
#dayroom .dr-pop{position:absolute;z-index:50;min-width:220px;max-width:320px;padding:6px;border-radius:12px;background:var(--dr-panel);box-shadow:0 8px 20px -4px rgba(0,0,0,.18),0 0 0 1px var(--dr-line-2);color:var(--dr-ink)}
#dayroom .dr-dock{display:flex;flex-direction:column;gap:8px;margin-bottom:8px;padding:10px 12px;border-radius:14px;background:var(--dr-panel);box-shadow:var(--dr-shadow)}
/* Buttons, links, eyebrow and forms inside pages */
#dayroom .dr-button.dr-danger{color:var(--dr-danger-text);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--st-dnd) 45%,transparent)}
@media (hover:hover){#dayroom .dr-button.dr-danger:hover{background:color-mix(in srgb,var(--st-dnd) 10%,transparent)}}
#dayroom .dr-link{display:inline-flex;align-items:center;gap:6px;min-height:24px;padding:0;border:0;background:none;color:var(--dr-accent-text);font-size:13px;font-weight:800;text-decoration:none;cursor:pointer}
#dayroom .dr-link:hover{text-decoration:underline;text-underline-offset:3px}
#dayroom .dr-eyebrow{display:inline-flex;align-items:center;gap:8px;width:fit-content;padding:6px 10px;border-radius:8px;background:var(--dr-accent-soft);color:var(--dr-accent-text);font:400 10px/1.2 'Silkscreen',monospace;letter-spacing:.06em}
#dayroom .dr-page label.dr-field{display:grid;gap:7px;font-size:13px;font-weight:800;color:var(--dr-ink-2)}
#dayroom .dr-hint,#dayroom .dr-card-body p.dr-hint{font-size:12px;font-weight:600;line-height:1.45;color:var(--dr-muted)}
#dayroom .dr-form{display:flex;flex-direction:column;gap:14px}
#dayroom .dr-form-row{display:flex;align-items:flex-end;gap:8px}
#dayroom .dr-form-row>:is(input,select,textarea){flex:1;min-width:0}
#dayroom a.dr-button{text-decoration:none}
#dayroom .dr-form-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
#dayroom .dr-code{margin:0;padding:10px 12px;overflow:auto;border-radius:10px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-line);color:var(--dr-ink-2);font:600 12px/1.5 monospace;white-space:pre-wrap;overflow-wrap:anywhere}
/* A page inside the shared modal: the page header is the modal header */
#dayroom .dr-modal:has(>#dr-modal-body>.dr-page){position:relative;display:flex;flex-direction:column;width:min(760px,calc(100vw - 48px));max-width:none;max-height:calc(100dvh - 88px);padding:0;overflow:hidden}
#dayroom .dr-modal:has(>#dr-modal-body>.dr-page[data-size="wide"]){width:min(960px,calc(100vw - 48px))}
#dayroom .dr-modal:has(>#dr-modal-body>.dr-page)>.dr-modalhead{position:absolute;top:14px;right:12px;z-index:3;height:auto;min-height:0;margin:0;padding:0;border:0;background:none}
#dayroom .dr-modal:has(>#dr-modal-body>.dr-page) #dr-modal-title{display:none}
#dayroom .dr-modal:has(>#dr-modal-body>.dr-page)>#dr-modal-body{flex:1;min-height:0;display:grid;grid-template-rows:auto auto minmax(0,1fr);grid-template-areas:"head" "error" "body";padding:0;overflow:hidden}
#dayroom #dr-modal-body>.dr-page{display:contents}
#dayroom #dr-modal-body>.dr-page>.dr-page-head{grid-area:head;padding-right:56px}
#dayroom #dr-modal-body>.dr-page>.dr-page-body{grid-area:body}
#dayroom #dr-modal-body:has(>.dr-page)>#dr-modal-error{grid-area:error;margin:0}
#dayroom #dr-modal-body:has(>.dr-page)>#dr-modal-error:not(:empty){margin:12px 20px 0}
/* A page in the main pane (Activity, To-dos, Files, Later, Agents) */
#dayroom :is(#dr-work-page,#dr-tools-page):not([hidden]){position:relative;display:flex;flex-direction:column;min-width:0;min-height:0;margin:8px 8px 8px 0;overflow:auto;border-radius:14px;background:var(--dr-panel);box-shadow:var(--dr-shadow)}
@media (max-width:760px){#dayroom :is(#dr-work-page,#dr-tools-page):not([hidden]){flex:none;min-height:560px}}
#dayroom :is(#dr-work-page,#dr-tools-page)>.dr-page{flex:1;min-height:0}
#dayroom :is(#dr-work-page,#dr-tools-page) .dr-page-body{padding-inline:max(20px,calc((100% - 860px)/2))}
@media (prefers-reduced-motion:reduce){
 #dayroom .dr-toggle,#dayroom .dr-toggle::before,#dayroom .dr-progress>i,#dayroom .dr-tip{transition:none}
 #dayroom .dr-state.is-busy::before{animation:none}
}
#dayroom [data-logo]{display:contents}
/* My account and Colours */
#dayroom .dr-account-profile{display:grid;grid-template-columns:124px minmax(0,1fr);align-items:start;gap:20px}
#dayroom .dr-account-figure{display:grid;justify-items:center;gap:8px}
#dayroom #dr-account-avatar{width:108px;height:108px;border-radius:14px;outline:1px solid var(--dr-line);outline-offset:-1px;image-rendering:pixelated}
#dayroom .dr-account-figure figcaption{display:grid;justify-items:center;gap:2px;text-align:center}
#dayroom #dr-account-display-name{font-size:14px;font-weight:800;overflow-wrap:anywhere}
#dayroom .dr-account-player{display:flex;align-items:center;gap:12px;margin-bottom:12px}
#dayroom .dr-account-player-logo{flex:none;width:48px;height:48px;display:grid;place-items:center;border-radius:13px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-line)}
#dayroom #dr-account-music p{font-size:12px;font-weight:700;color:var(--dr-muted)}
#dayroom .dr-account-track-title{display:block;font-size:14px;font-weight:800;color:var(--dr-ink)}
#dayroom .dr-account-service{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:800;color:var(--dr-ink-2)}
#dayroom .dr-account-spotify{gap:8px}
#dayroom .dr-account-apps-feedback:has(#dr-account-apps-status:empty):has(#dr-account-apps-retry[hidden]){display:none}
/* Connected AI apps: the rows, then the address and the three steps, numbered like .dr-steps. */
#dayroom .dr-account-ai-feedback:has(#dr-account-ai-status:empty):has(#dr-account-ai-retry[hidden]){display:none}
#dayroom .dr-account-ai-app .dr-li-title :is(.dr-kind,.dr-state){margin-left:6px;vertical-align:1px}
#dayroom .dr-account-ai-app.is-inactive .dr-li-lead{opacity:.55}
#dayroom .dr-account-ai-setup{padding-top:14px;box-shadow:inset 0 1px 0 var(--dr-line)}
#dayroom .dr-account-ai-address{display:grid;gap:7px}
#dayroom .dr-account-ai-address label.dr-field{margin:0}
/* Copy matches the address field's 40px, top and bottom edges aligned. */
#dayroom .dr-account-ai-address .dr-form-row{align-items:stretch}
#dayroom #dr-account-ai-copy{min-height:40px}
/* A read-only textarea, so a long address wraps instead of clipping, and select() still backs up Copy. */
#dayroom #dr-account-ai-url{font:600 13px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;resize:none;overflow:hidden;word-break:break-all;field-sizing:content;min-height:40px}
#dayroom .dr-account-ai-steps{display:grid;gap:8px;margin:0;padding:0;list-style:none}
#dayroom .dr-account-ai-steps li{display:flex;align-items:center;gap:8px;color:var(--dr-ink-2);font-size:13px;font-weight:700}
#dayroom .dr-account-ai-steps b{flex:none;display:grid;place-items:center;width:20px;height:20px;border-radius:6px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-line-2);color:var(--dr-muted);font-size:11px;font-weight:800}
#dayroom .dr-theme-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#dayroom .dr-theme-choice{display:grid;gap:6px;padding:8px;border:0;border-radius:14px;background:var(--dr-panel);box-shadow:inset 0 0 0 1px var(--dr-line-2);color:var(--dr-ink);text-align:left;cursor:pointer}
#dayroom .dr-theme-choice[aria-pressed="true"]{box-shadow:inset 0 0 0 2px var(--dr-accent)}
#dayroom .dr-theme-preview{display:grid;grid-template-columns:10px 26% 1fr;gap:4px;height:72px;padding:5px;border-radius:9px;background:var(--sample-bg)}
#dayroom .dr-theme-rail{border-radius:4px;background:color-mix(in srgb,var(--sample-ink) 12%,var(--sample-bg))}
#dayroom .dr-theme-side{display:flex;flex-direction:column;gap:4px;padding:4px 2px}
#dayroom .dr-theme-side i,#dayroom .dr-theme-pane i{display:block;height:4px;border-radius:2px;background:color-mix(in srgb,var(--sample-ink) 35%,var(--sample-bg))}
#dayroom .dr-theme-side i:first-child{background:var(--sample-accent)}
#dayroom .dr-theme-pane{display:flex;flex-direction:column;gap:4px;padding:6px;border-radius:6px;background:var(--sample-panel)}
#dayroom .dr-theme-pane i{width:80%}
#dayroom .dr-theme-pane i+i{width:55%}
#dayroom .dr-theme-pane b{align-self:end;width:30%;height:10px;margin-top:auto;border-radius:4px;background:var(--sample-accent)}
#dayroom .dr-theme-name{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:13.5px;font-weight:800}
#dayroom .dr-theme-caption{font-size:12px;font-weight:600;color:var(--dr-muted)}
#dayroom .dr-theme-check{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:6px;background:var(--dr-accent);color:var(--dr-accent-ink);visibility:hidden}
#dayroom .dr-theme-check svg.dr-i{width:14px;height:14px;stroke-width:2.4}
#dayroom [data-colour][aria-pressed="true"] .dr-theme-check{visibility:visible}
#dayroom input.dr-recovery-code{width:100%;font-size:16px;font-weight:800;letter-spacing:.06em;text-align:center;user-select:all}
@media (max-width:640px){#dayroom .dr-account-profile{grid-template-columns:1fr;justify-items:start}#dayroom .dr-theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Workspace settings */
#dayroom .dr-workspace-form{display:flex;flex-direction:column;gap:16px}
#dayroom p.dr-workspace-read-name{font-size:14px;font-weight:800;color:var(--dr-ink);overflow-wrap:anywhere}
#dayroom .dr-workspace-you{font-weight:600;color:var(--dr-muted)}
#dayroom .dr-workspace-form-error:empty{display:none}
/* A busy action stays focusable (aria-disabled, so Escape still closes the dialog) and looks like a disabled one. */
#dayroom .dr-settings-workspace .dr-button[aria-disabled="true"]{cursor:default;opacity:.5}
/* The shared .dr-field carries a 12px margin-bottom (product.css) meant for stacked plain forms; this module's
   fields already sit in a .dr-form gap, so the extra margin only doubled the space before each hint/status line. */
#dayroom .dr-settings-workspace label.dr-field{margin:0}
/* The browser's own file-picker button ignores the page's font and buttons; give it the same tokens as .dr-button. */
#dayroom .dr-settings-workspace input[type=file]::file-selector-button{margin-right:10px;padding:8px 12px;border:1px solid var(--dr-line);border-radius:8px;background:var(--dr-panel);color:var(--dr-ink);font:inherit;cursor:pointer}
#dayroom .dr-brand-row{display:flex;align-items:flex-start;gap:16px}
/* 32 cells at 64px is an even 2px per cell; 48px (1.5x) gave alternating 1px/2px cells at 1x screen density. */
#dayroom .dr-brand-preview{flex:none;width:80px;height:80px;padding:8px;border-radius:13px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-line);color:var(--dr-muted)}
#dayroom .dr-brand-preview svg,#dayroom .dr-brand-preview .dr-company-logo{display:block;width:64px;height:64px}
#dayroom #dr-workspace-theme p.dr-card-sub{overflow-wrap:anywhere}
#dayroom .dr-office-theme-tile{grid-template-columns:minmax(0,1fr);grid-template-areas:"preview" "name" "desc";row-gap:0;min-height:0;border:0;font:inherit;text-align:left;cursor:pointer}
#dayroom .dr-office-theme-tile .dr-tile-desc{grid-area:desc}
/* A 1:1 crop of the base map: object-fit:none draws the canvas at its own size, centred, so each map pixel is one CSS pixel */
#dayroom .dr-office-theme-tile canvas[data-office-theme-preview]{grid-area:preview;display:block;width:100%;height:132px;object-fit:none;object-position:50% 50%;border-radius:10px;outline:1px solid var(--dr-line);outline-offset:-1px;image-rendering:pixelated}
/* The village map's landmark (the pond) sits away from centre; campus and loft read fine at the universal crop. */
#dayroom .dr-office-theme-tile canvas[data-office-theme-preview=village]{object-position:6% 57%}
#dayroom .dr-office-theme-tile .dr-tile-name{grid-area:name;margin-top:10px}
/* The shared .dr-tile:focus-within ring would double up with this tile's own :focus-visible outline. */
#dayroom .dr-office-theme-tile:focus-within{box-shadow:none}
#dayroom .dr-office-theme-tile[aria-pressed="true"]{box-shadow:inset 0 0 0 2px var(--dr-accent)}
#dayroom .dr-office-theme-tile:focus-visible{outline:2px solid var(--dr-accent);outline-offset:2px}
/* Apps & connectors */
#dayroom .dr-app-search{display:inline-flex;align-items:center;gap:8px;height:32px;padding:0 10px;border-radius:10px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-field-line);color:var(--dr-muted)}
#dayroom .dr-app-search svg.dr-i{width:16px;height:16px}
#dayroom .dr-app-search input{width:180px;height:30px;padding:0;border:0;background:transparent;box-shadow:none;color:var(--dr-ink);font-size:13px;font-weight:600}
#dayroom .dr-app-search input:focus{outline:none}
#dayroom .dr-app-search:focus-within{box-shadow:inset 0 0 0 1.5px var(--dr-accent),0 0 0 4px var(--dr-accent-soft)}
#dayroom details.dr-app-advanced>summary{list-style:none;cursor:pointer}
#dayroom details.dr-app-advanced>summary::-webkit-details-marker{display:none}
#dayroom details.dr-app-advanced[open]>summary svg.dr-i{transform:rotate(180deg)}
/* I8: the summary fills its .dr-card, which clips overflow, so the shared outset ring (rule 2) was cut off
   on all four sides. Inset, like the card rows below. */
#dayroom details.dr-app-advanced>summary:focus-visible{outline:2px solid var(--dr-accent);outline-offset:-2px;border-radius:14px}
#dayroom .dr-connect-waiting{display:flex;align-items:center;gap:14px;font-size:14px;font-weight:700;color:var(--dr-ink)}
#dayroom .dr-pre{white-space:pre-wrap;overflow-wrap:anywhere}
#dayroom .dr-table-wrap{overflow:auto}
#dayroom :is(.dr-diff,.dr-connected-content table){width:100%;border-collapse:collapse;font-size:13px}
#dayroom :is(.dr-diff,.dr-connected-content table) :is(th,td){padding:8px 10px;border-top:1px solid var(--dr-line);text-align:left;vertical-align:top}
#dayroom .dr-diff thead th{border-top:0;color:var(--dr-muted);font-size:12px;font-weight:800}
#dayroom .dr-diff tbody th{color:var(--dr-ink);font-weight:800}
#dayroom .dr-diff td:last-child{color:var(--dr-accent-text);font-weight:700}
/* Calendar, Drive, media and music */
#dayroom .dr-calendar-date,#dayroom .dr-daybar-date{flex:none;display:grid;place-items:center;align-content:center;width:40px;height:44px;border-radius:11px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-line)}
#dayroom :is(.dr-calendar-date,.dr-daybar-date) :is(span,small){color:var(--dr-accent-text);font-size:10px;font-weight:800;text-transform:uppercase}
#dayroom :is(.dr-calendar-date,.dr-daybar-date) strong{color:var(--dr-ink);font-size:16px;font-weight:800;line-height:1.1}
#dayroom .dr-calendar-when{font-variant-numeric:tabular-nums}
#dayroom :is(.dr-calendar-meeting-url,.dr-calendar-no-link){color:var(--dr-muted);font-size:12px;font-weight:600;overflow-wrap:anywhere}
#dayroom .dr-calendar-event .dr-state{margin-top:4px;width:fit-content}
/* Listening activity's header: the Spotify logo, its name and the connection chip, spaced as one group. */
#dayroom .dr-music-service{display:inline-flex;align-items:center;gap:8px}
/* Window T9's drive search opt-out (drive-files.css), carried forward and adapted: the row now draws its own
   pill (like .dr-app-search), so the plain input and submit button opt out of the generic field look inside it. */
#dayroom .dr-drive-search .dr-form-row{align-items:center;height:40px;padding-inline-start:12px;border-radius:12px;background:var(--dr-field);box-shadow:inset 0 0 0 1px var(--dr-field-line)}
#dayroom .dr-drive-search .dr-form-row:focus-within{outline:2px solid var(--dr-accent);outline-offset:3px}
#dayroom .dr-drive-search .dr-form-row>svg.dr-i{flex:none;color:var(--dr-muted)}
#dayroom .dr-drive-search input{height:auto;padding:0;border:0;background:transparent;box-shadow:none;font:inherit}
#dayroom .dr-drive-search input:focus-visible{box-shadow:none}
#dayroom .dr-drive-search .dr-button{box-shadow:none;border-inline-start:1px solid var(--dr-line-2);border-radius:0 12px 12px 0;background:transparent;font-size:12px}
#dayroom .dr-drive-footer{position:sticky;bottom:-28px;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;margin:0 -20px -28px;padding:12px 20px;border-top:1px solid var(--dr-line);background:var(--dr-panel)}
#dayroom .dr-drive-footer .dr-hint{margin-right:auto}
#dayroom .dr-drive-row input[data-drive-select]{flex:none;width:18px;height:18px;accent-color:var(--dr-accent)}
#dayroom .dr-drive-row input[data-drive-select]:disabled{cursor:default;opacity:.5}
#dayroom .dr-drive-row.is-selected{background:var(--dr-sel)}
#dayroom .dr-drive-row .dr-li-lead{width:34px;height:34px;background:none;box-shadow:none;border-radius:0}
#dayroom .dr-drive-row .dr-li-lead svg{width:34px;height:34px}
#dayroom a.dr-drive-title{text-decoration:none}
#dayroom .dr-drive-selection{display:flex;flex-wrap:wrap;gap:6px}
#dayroom .dr-drive-chip{display:inline-flex;align-items:center;gap:4px;height:26px;padding:0 4px 0 10px;border-radius:13px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-line);font-size:12.5px;font-weight:700}
#dayroom .dr-drive-remove{display:grid;place-items:center;width:20px;height:20px;padding:0;border:0;border-radius:10px;background:transparent;color:var(--dr-muted);cursor:pointer}
#dayroom .dr-drive-remove svg.dr-i{width:13px;height:13px}
#dayroom .dr-chat-media{display:grid;gap:8px;width:min(420px,100%);margin-top:9px;padding:10px 12px;border-radius:12px;background:var(--dr-panel);box-shadow:inset 0 0 0 1px var(--dr-line-2)}
#dayroom .dr-chat-media.is-video video{width:100%;max-height:280px;border-radius:10px;background:var(--dr-sunken)}
#dayroom .dr-note-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;font-size:13px;font-weight:800}
#dayroom .dr-note-heading a{color:var(--dr-muted);font-size:12px;font-weight:700}
#dayroom .dr-note-controls{display:flex;align-items:center;gap:10px}
#dayroom .dr-note-play{flex:none;display:grid;place-items:center;width:34px;height:34px;padding:0;border:0;border-radius:10px;background:var(--dr-accent);color:var(--dr-accent-ink);cursor:pointer}
#dayroom .dr-note-track{flex:1;min-width:0;display:grid;gap:2px}
#dayroom .dr-note-track input[type=range]{width:100%;accent-color:var(--dr-accent)}
#dayroom .dr-note-time{color:var(--dr-muted);font-size:11.5px;font-weight:700;font-variant-numeric:tabular-nums}
#dayroom .dr-note-speed{height:22px;padding:0 8px;border:0;border-radius:11px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-line-2);color:var(--dr-ink-2);font-size:12px;font-weight:800;cursor:pointer}
#dayroom p.dr-note-error,#dayroom p.dr-media-error,#dayroom p#calendar-error{color:color-mix(in srgb,var(--st-dnd) 60%,var(--dr-ink));font-size:12.5px;font-weight:700}
#dayroom #calendar-recovery{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding-top:4px}
#dayroom .dr-media-stage{display:grid;place-items:center;min-height:180px;padding:16px}
#dayroom .dr-media-placeholder{display:grid;justify-items:center;gap:8px;color:var(--dr-muted);font-size:13px;font-weight:700}
#dayroom .dr-media-video{width:100%;aspect-ratio:16/9;border-radius:12px;background:var(--dr-sunken)}
#dayroom .dr-media-meter{width:100%;height:48px}
#dayroom .dr-media-readout{display:flex;align-items:center;gap:10px}
#dayroom .dr-media-indicator{width:9px;height:9px;border-radius:50%;background:var(--dr-muted)}
#dayroom .dr-media-note[data-phase="recording"] .dr-media-indicator{background:var(--st-dnd);animation:dr-state-blink 1.2s steps(2,end) infinite}
#dayroom .dr-media-timer{font-size:20px;font-weight:800;font-variant-numeric:tabular-nums}
#dayroom .dr-media-limit{color:var(--dr-muted);font-size:12.5px;font-weight:700}
#dayroom p.dr-media-state{margin-left:auto;color:var(--dr-muted);font-size:12.5px;font-weight:700}
#dayroom .dr-media-actions [data-media="cancel"]{margin-left:auto}
#dayroom .dr-media-stop span{width:10px;height:10px;border-radius:2px;background:currentColor}
/* Window T9's media focus ring (media-notes.css), carried forward: audio/video review controls aren't covered
   by the shared button/link ring, since they're native media elements, not buttons. */
#dayroom .dr-media-note :is(audio,video):focus-visible{outline:2px solid var(--dr-accent);outline-offset:4px}
#dayroom .dr-spotify-controls{display:flex;align-items:center;gap:6px}
#dayroom .dr-spotify-controls button{display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:10px;background:var(--dr-panel);box-shadow:inset 0 0 0 1px var(--dr-line-2);color:var(--dr-ink-2);cursor:pointer}
#dayroom .dr-spotify-controls [data-player="toggle"]{width:44px;background:var(--dr-accent);box-shadow:none;color:var(--dr-accent-ink)}
#dayroom .dr-spotify-controls button:disabled{opacity:.45;cursor:not-allowed}
#dayroom :is(.dr-spotify-device,.dr-spotify-feedback){margin:6px 0 0;color:var(--dr-muted);font-size:12px;font-weight:600}
#dayroom .dr-music-status{display:flex;align-items:center;gap:6px;color:var(--dr-muted);font-size:12px;font-weight:700}
#dayroom .dr-music-title{display:block;font-size:16px;font-weight:800}
#dayroom p.dr-music-artist{color:var(--dr-muted);font-size:13px;font-weight:600}
#dayroom .dr-music-meter{display:inline-flex;align-items:flex-end;gap:2px;height:12px}
#dayroom .dr-music-meter i{width:3px;height:4px;border-radius:1px;background:var(--st-available)}
#dayroom .dr-music-now.is-playing .dr-music-meter i{animation:dr-music-beat .8s steps(4,end) infinite alternate}
#dayroom .dr-music-now.is-playing .dr-music-meter i:nth-child(2n){animation-delay:.2s}
@keyframes dr-music-beat{to{height:12px}}
#dayroom .dr-profile-listening .dr-card-body{display:grid;gap:4px;padding-top:12px}
#dayroom .dr-listening-service{display:inline-flex;align-items:center;gap:6px;color:var(--dr-muted);font-size:12px;font-weight:800}
#dayroom .dr-profile-listening a{color:var(--dr-ink);font-size:15px;font-weight:800}
@media (prefers-reduced-motion:reduce){#dayroom .dr-media-note[data-phase="recording"] .dr-media-indicator,#dayroom .dr-music-now.is-playing .dr-music-meter i{animation:none}}
/* Agents */
/* A rendered answer in a dialog reads as body text, like its own lists: product.css's small muted #dayroom .dr-modal p
   (kept for the studio and desks) would otherwise win on load order. Spacing stays chat-bubbles.css's, as in chat. */
#dayroom .dr-modal .dr-answer-text p{font-size:inherit;color:inherit}
#dayroom .dr-hub-sidebar{display:flex}
#dayroom .dr-hub-main{display:flex;flex-direction:column;gap:16px;min-width:0}
#dayroom .dr-hub-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}
#dayroom .dr-hub-heading h2{font-size:14px;font-weight:800;color:var(--dr-ink)}
#dayroom .dr-hub-heading p{font-size:12.5px;font-weight:600;color:var(--dr-muted)}
#dayroom .dr-hub-catalog-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
/* The companion fills its logo box or row lead, so the box takes the portrait's own background (no inset rectangle).
   Scoped: chat-bubbles.css and the shell's sidebar size every other companion portrait. */
#dayroom :is(.dr-tile-logo,.dr-li-lead)>.dr-companion-dp{width:100%;height:100%;border-radius:inherit}
#dayroom .dr-assistant-identity{display:flex;align-items:center;gap:12px}
#dayroom .dr-hub-step{display:grid;grid-template-columns:24px minmax(0,1fr) minmax(0,1fr) auto;align-items:end;gap:8px}
#dayroom .dr-hub-step-number{display:grid;place-items:center;width:24px;height:24px;border-radius:7px;background:var(--dr-sunken);color:var(--dr-muted);font-size:12px;font-weight:800}
#dayroom .dr-hub-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#dayroom .dr-companion-sources{display:flex;flex-wrap:wrap;gap:6px}
#dayroom .dr-skill-recording-bar{position:fixed;left:50%;bottom:20px;z-index:70;display:flex;align-items:center;gap:12px;padding:8px 8px 8px 14px;border-radius:14px;background:var(--dr-glass);-webkit-backdrop-filter:blur(16px) saturate(1.4);backdrop-filter:blur(16px) saturate(1.4);box-shadow:var(--dr-glass-shadow),inset 0 0 0 1px var(--dr-glass-line);transform:translateX(-50%)}
#dayroom .dr-skill-recording-bar strong{display:block;font-size:13px;font-weight:800}
#dayroom .dr-skill-recording-bar span{font-size:12px;font-weight:600;color:var(--dr-muted)}
#dayroom .dr-skill-recording-dot{width:10px;height:10px;border-radius:50%;background:var(--st-dnd);animation:dr-state-blink 1.2s steps(2,end) infinite}
@media (prefers-reduced-motion:reduce){#dayroom .dr-skill-recording-dot{animation:none}}
@media (max-width:760px){#dayroom .dr-hub-step{grid-template-columns:24px minmax(0,1fr)}}
/* Imports and migration */
#dayroom .dr-steps{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0;padding:0;list-style:none}
/* Minor 1: --dr-faint reads at 2.3-3.3:1 here, below AA; --dr-muted is the same fix the message times already use. */
#dayroom .dr-steps li{display:flex;align-items:center;gap:7px;color:var(--dr-muted);font-size:12px;font-weight:700}
#dayroom .dr-steps li+li::before{content:"";width:18px;height:1px;background:var(--dr-line-2)}
#dayroom .dr-steps b{display:grid;place-items:center;width:20px;height:20px;border-radius:6px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-line-2);color:var(--dr-muted);font-size:11px;font-weight:800}
#dayroom .dr-steps li[aria-current="step"]{color:var(--dr-ink)}
#dayroom .dr-steps li[aria-current="step"] b{background:var(--dr-accent);box-shadow:none;color:var(--dr-accent-ink)}
#dayroom .dr-steps li.is-complete b{background:var(--dr-accent-soft);box-shadow:none;color:var(--dr-accent-text)}
#dayroom .dr-import-sources{margin:0;padding:0;border:0}
#dayroom .dr-import-sources legend{margin-bottom:8px;color:var(--dr-ink-2);font-size:13px;font-weight:800}
#dayroom .dr-import-source{min-height:0;cursor:pointer}
#dayroom .dr-import-source input{position:absolute;opacity:0;pointer-events:none}
#dayroom .dr-import-source:has(input:checked){box-shadow:inset 0 0 0 2px var(--dr-accent)}
#dayroom .dr-import-source:has(input:focus-visible){outline:2px solid var(--dr-accent);outline-offset:2px}
#dayroom :is(.dr-import-filebox,.dr-wa-drop){position:relative;display:grid;justify-items:center;gap:6px;min-height:140px;padding:20px;border-radius:14px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1.5px var(--dr-line-2);text-align:center}
#dayroom :is(.dr-import-filebox.has-file,.dr-wa-drop.is-dragging,.dr-wa-drop.dragging){box-shadow:inset 0 0 0 2px var(--dr-accent)}
#dayroom :is(.dr-import-filebox,.dr-wa-drop) input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer}
#dayroom :is(.dr-import-filebox,.dr-wa-drop):has(input:focus-visible){outline:2px solid var(--dr-accent);outline-offset:2px}
#dayroom .dr-import-filebox .dr-field-error{position:relative;pointer-events:none}
#dayroom .dr-wa-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#dayroom .dr-wa-summary>div{padding:12px 14px}
#dayroom .dr-wa-summary strong{display:block;font-size:20px;font-weight:800;color:var(--dr-ink)}
#dayroom .dr-wa-qr{display:block;width:220px;height:220px;margin:8px auto;padding:10px;border-radius:14px;background:white;image-rendering:pixelated}
#dayroom :is(.dr-wa-candidates,#dr-wa-candidates,#dr-wa-sender-choices,.dr-wa-audit,.dr-wa-sample,.dr-wa-senders){max-height:320px;overflow:auto}
#dayroom .dr-wa-phase{font-size:14px;font-weight:800;color:var(--dr-ink)}
/* The logo and filename are one item (.dr-dock-name) that never shrinks below its natural size, so they can never
   land on separate lines; the state chip (fixed-size, never growing or shrinking) is the only thing that wraps to
   its own line when the two don't both fit. A name alone on its line that's still too wide falls back to the
   title's own ellipsis, never the container overflowing. */
#dayroom .dr-dock-head{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;min-width:0}
#dayroom .dr-dock-name{display:flex;align-items:center;gap:8px;flex:1 0 auto;max-width:100%;min-width:0}
#dayroom .dr-dock-title{flex:1;min-width:0;overflow:hidden;margin:0;font-size:13px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}
#dayroom .dr-dock-head .dr-state{flex:0 0 auto}
#dayroom .dr-wa-message-badge{height:18px;padding:0 6px;font-size:10.5px;line-height:18px}
#dayroom .dr-wa-source-label{display:block;color:var(--dr-muted);font-size:11.5px;font-weight:600}
#dayroom .dr-system-row{margin:6px auto;max-width:560px;padding:8px 12px;border-radius:12px;background:var(--dr-sunken);color:var(--dr-muted);font-size:12.5px;font-weight:600;text-align:center;white-space:pre-wrap}
#dayroom .dr-system-row time{display:block;margin-bottom:2px}
#dayroom .dr-wa-review-fields{display:flex;flex-direction:column;gap:12px;border:0;padding:0;margin:0;min-width:0}
/* .dr-field's own margin-bottom is meant for a stacked label; inside a row's trail it would push the row taller
   and the control off-centre, so it's zeroed there. */
#dayroom .dr-li-trail.dr-field{margin-bottom:0}
#dayroom .dr-import-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#dayroom .dr-attach-missing{display:flex;align-items:center;gap:10px;width:fit-content;margin-top:8px;padding:8px 14px 8px 10px;border-radius:12px;box-shadow:inset 0 0 0 1px var(--dr-line-2);color:var(--dr-muted);font-size:12.5px;font-weight:700}
#dayroom .dr-wa-historical-avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-line)}
/* Imported history keeps its chat transcript (AGENTS.md, 2026-09-28): what you sent, linked to you or chosen as your historical name, sits on the right in a tinted bubble; everyone else's sits on the left.
   Only imported rows (data-imported) do this. Messages sent in Dayroom, including those continuing after an import, are the flat rows above. */
#dayroom .dr-message-row.is-own[data-imported]{flex-direction:row-reverse}
#dayroom .dr-message-row[data-imported] .dr-message-content{flex:0 1 auto;max-width:min(85%,70ch);padding:12px 16px;background:var(--dr-soft);border:1px solid var(--dr-line);border-radius:16px 16px 16px 4px}
#dayroom .dr-message-row.is-own[data-imported] .dr-message-content{background:color-mix(in srgb,var(--dr-accent) 13%,var(--dr-panel));border-radius:16px 16px 4px 16px}
#dayroom .dr-message-row.is-own[data-imported] .dr-message-actions{right:auto;left:14px}
#dayroom .dr-message-row.is-own[data-imported] .dr-menu{right:auto;left:-3px}
@media(max-width:560px){#dayroom .dr-message-row[data-imported] .dr-message-content{max-width:calc(100% - 44px);padding:10px 12px}}
/* Help, the office tour and hints */
#dayroom .dr-help-content{display:flex;flex-direction:column;gap:16px}
#dayroom .dr-help-nav .dr-count{height:17px;min-width:17px;padding:0 5px;border-radius:9px;font-size:10.5px;line-height:17px}
#dayroom details:is(.dr-help-topic,.dr-help-guide)>summary{list-style:none;cursor:pointer}
#dayroom details:is(.dr-help-topic,.dr-help-guide)>summary::-webkit-details-marker{display:none}
#dayroom details:is(.dr-help-topic,.dr-help-guide)[open]>summary .dr-li-trail svg.dr-i{transform:rotate(180deg)}
#dayroom details:is(.dr-help-topic,.dr-help-guide)+details{box-shadow:inset 0 1px 0 var(--dr-line)}
#dayroom .dr-office-tour{position:fixed;inset:0;z-index:80;background:color-mix(in srgb,var(--dr-bg) 55%,transparent)}
#dayroom .dr-office-tour:has(.dr-tour-welcome){background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}
#dayroom .dr-tour-card{position:absolute;display:flex;flex-direction:column;gap:12px;width:min(440px,calc(100vw - 32px));padding:20px 22px 18px;border-radius:20px;background:var(--dr-glass);-webkit-backdrop-filter:blur(16px) saturate(1.4);backdrop-filter:blur(16px) saturate(1.4);box-shadow:var(--dr-glass-shadow),inset 0 0 0 1px var(--dr-glass-line);color:var(--dr-ink);outline:none;animation:dr-tour-in .15s steps(3,end)}
#dayroom .dr-tour-card:focus-visible{outline:none;box-shadow:var(--dr-glass-shadow),inset 0 0 0 1px var(--dr-glass-line),0 0 0 2px var(--dr-accent)}
#dayroom .dr-tour-welcome{width:min(520px,calc(100vw - 32px));padding:28px 30px 24px}
#dayroom p.dr-tour-welcome-line{margin:0;color:var(--dr-muted);font-size:14px;font-weight:700;overflow-wrap:anywhere}
#dayroom .dr-tour-workspace{display:grid;margin:0;color:var(--dr-ink);font-size:min(var(--dr-tour-name-size,40px),9vw);font-weight:800;letter-spacing:-.03em;line-height:1.02;overflow-wrap:anywhere}
#dayroom .dr-tour-card[data-reveal="waiting"] .dr-tour-workspace span{opacity:0}
#dayroom .dr-tour-card[data-reveal="complete"] .dr-tour-workspace span{opacity:1;transition:opacity .15s}
#dayroom .dr-tour-guide-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
#dayroom .dr-tour-progress{color:var(--dr-muted);font-size:12px;font-weight:800;font-variant-numeric:tabular-nums}
#dayroom .dr-tour-lesson{display:flex;align-items:flex-start;gap:14px}
#dayroom .dr-tour-icon{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--dr-accent-soft);color:var(--dr-accent-text)}
#dayroom .dr-tour-lesson h2{margin:0;font-size:16px;font-weight:800;letter-spacing:-.01em}
#dayroom p.dr-tour-copy{margin:4px 0 0;color:var(--dr-ink-2);font-size:13.5px;font-weight:500;line-height:1.5}
#dayroom p.dr-tour-hint{margin:0;color:var(--dr-muted);font-size:12.5px;font-weight:600}
#dayroom .dr-tour-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px}
#dayroom .dr-tour-actions .dr-tour-skip{margin-right:auto}
#dayroom .dr-tour-highlight{position:fixed;z-index:79;border-radius:14px;box-shadow:0 0 0 2px var(--dr-accent),0 0 0 6px var(--dr-accent-soft);pointer-events:none}
@keyframes dr-tour-in{from{opacity:0;transform:translateY(4px)}}
#dayroom .dr-office-hint-targets{position:absolute;inset:0;pointer-events:none}
#dayroom .dr-office-hint-target{position:absolute;border:0;border-radius:10px;background:transparent;opacity:0}
#dayroom .dr-office-hint-target:focus-visible{opacity:1;outline:2px dashed var(--dr-accent);outline-offset:2px}
#dayroom .dr-office-hint{display:grid;gap:6px;width:280px;padding:12px 14px 14px}
#dayroom .dr-office-hint[hidden]{display:none}
#dayroom .dr-office-hint-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
#dayroom .dr-office-hint h3{margin:0;color:var(--dr-ink);font-size:14px;font-weight:800;overflow-wrap:anywhere}
#dayroom .dr-office-hint p{margin:0;color:var(--dr-muted);font-size:13px;font-weight:600;line-height:1.45;overflow-wrap:anywhere}
#dayroom .dr-office-hint p.dr-office-hint-error{color:color-mix(in srgb,var(--st-dnd) 60%,var(--dr-ink))}
#dayroom .dr-office-hint-action{width:100%;margin-top:6px}
#dayroom #dr-helper-prompt{min-height:150px;line-height:1.65}
@media (hover:hover){#dayroom summary.dr-li:hover{background:var(--dr-hover)}}
/* Everyday dialogs */
#dayroom .dr-form-row>label.dr-field{flex:1;min-width:0}
#dayroom .dr-li input.dr-check{flex:none;width:18px;height:18px;margin:0;accent-color:var(--dr-accent);cursor:pointer}
#dayroom .dr-li-title label{cursor:pointer}
#dayroom .dr-li-trail select{min-width:200px}
/* Daily summary card (workspace settings): the Sent at and Timezone rows keep their label whole and give the select a fixed
   width (the same for both). The row wraps, so on a narrow screen the select drops under its label instead of being clipped.
   Scoped to this card; the shared select rule above is unchanged. */
#dayroom .dr-workspace-daily .dr-li.dr-daily-field{flex-wrap:wrap;row-gap:8px}
#dayroom .dr-workspace-daily .dr-daily-field>.dr-li-body{flex:0 0 auto}
#dayroom .dr-workspace-daily .dr-daily-field .dr-li-title{white-space:nowrap}
#dayroom .dr-workspace-daily .dr-daily-field>.dr-li-trail{flex:1 1 14rem;min-width:0;justify-content:flex-end}
#dayroom .dr-workspace-daily .dr-daily-field>.dr-li-trail select{width:100%;max-width:18rem;min-width:0;text-overflow:ellipsis}
#dayroom .dr-workspace-daily select:disabled{opacity:.5;cursor:not-allowed}
#dayroom .dr-message-result .dr-result-text{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--dr-ink-2)}
#dayroom .dr-message-result time{display:block;margin-top:2px;font-variant-numeric:tabular-nums}
/* Align visible search controls, without the field label's stacked-form margin. */
#dayroom #dr-search-form>label.dr-field{margin:0}
#dayroom #dr-search-form input,#dayroom #dr-search-form>.dr-button{height:44px;min-height:44px}
#dayroom #dr-search-form>.dr-button{flex:none}
#dayroom #dr-search-more{align-self:center}
#dayroom p.dr-card-note{padding:0 16px 12px}
#dayroom p.dr-card-note:empty{display:none}
@media (prefers-reduced-motion:reduce){#dayroom .dr-tour-card{animation:none}#dayroom .dr-tour-card[data-reveal] .dr-tour-workspace span{transition:none}}
/* Work pages (To-dos, Activity, Files, Later) are styled in pages.css; threads follow. */
/* Minor 9 (visual-2): the transcript disclosure (agents-ui.js's meetingNotes) has no icon of its own in its
   summary to rotate, unlike the chevron-based disclosures above and below, so CSS alone hides the native
   marker and draws a small chevron that still flips open/closed. */
#dayroom .dr-companion-transcript>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:8px}
#dayroom .dr-companion-transcript>summary::-webkit-details-marker{display:none}
#dayroom .dr-companion-transcript>summary::after{content:'';flex:none;width:7px;height:7px;border-right:2px solid var(--dr-muted);border-bottom:2px solid var(--dr-muted);transform:rotate(45deg);transition:transform .12s ease}
#dayroom .dr-companion-transcript[open]>summary::after{transform:rotate(-135deg)}
@media(prefers-reduced-motion:reduce){#dayroom .dr-companion-transcript>summary::after{transition:none}}
#dayroom .dr-catchup-card{margin:8px 12px 0}
#dayroom .dr-catchup-card>summary{list-style:none;cursor:pointer}
#dayroom .dr-catchup-card>summary::-webkit-details-marker{display:none}
#dayroom .dr-catchup-card[open]>summary svg.dr-i{transform:rotate(180deg)}
#dayroom .dr-catchup-card .dr-companion-dp{width:24px;height:24px;border-radius:7px}
/* The portrait comes first in this head, so .dr-card-head>div:first-child misses the title block: grow it here, which
   puts the chevron at the right edge. */
#dayroom .dr-catchup-card>summary>div{flex:1;min-width:0}
#dayroom .dr-chat[data-thread-open]>:not(.dr-thread-panel){display:none!important}
#dayroom .dr-thread-panel{flex:1;min-height:0}
#dayroom .dr-thread-older{align-self:center;margin-top:10px}
#dayroom .dr-thread-messages{flex:1;min-height:0;overflow:auto;padding-inline:12px}
#dayroom .dr-thread-compose{margin:0 12px 12px}
#dayroom .dr-thread-compose textarea{width:100%;min-height:44px;max-height:160px;border:0;background:transparent;box-shadow:none;color:var(--dr-ink);font-size:14px;font-weight:500;resize:none}
/* Minor 1: --dr-faint reads at 2.3-3.3:1 here, below AA; --dr-muted is the same fix the message times already use. */
#dayroom .dr-thread-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--dr-muted);font-size:12px;font-weight:700}
#dayroom .dr-thread-foot{flex-wrap:wrap}
#dayroom #dr-thread-send{margin-left:auto}
#dayroom .dr-thread-agent-tools{display:flex;align-items:center;gap:8px;min-width:0}
#dayroom .dr-thread-agent-tools select{width:auto;max-width:160px;min-height:36px}
#dayroom #dr-thread-command-hint:empty{display:none}
#dayroom .dr-picture-editor{display:grid;justify-items:center;gap:14px;max-width:560px;margin:auto}
#dayroom #dr-picture-preview{width:min(100%,256px);height:auto;aspect-ratio:1;border-radius:18px;background:var(--dr-panel);border:1px solid var(--dr-line)}
#dayroom .dr-picture-editor>.dr-hint{margin:0;text-align:center;max-width:420px}
#dayroom .dr-picture-file{position:relative;cursor:pointer;overflow:hidden}
#dayroom .dr-picture-file input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
#dayroom .dr-picture-file:focus-within{outline:2px solid var(--dr-accent);outline-offset:3px}
#dayroom .dr-picture-crop{display:grid;gap:10px;width:100%;max-width:360px}
#dayroom .dr-picture-crop label{display:grid;gap:4px;font-size:13px;font-weight:600}
#dayroom .dr-picture-crop input{width:100%;padding:0;min-height:24px;accent-color:var(--dr-accent)}
#dayroom .dr-picture-editor .dr-form-actions{width:100%;justify-content:flex-end}
@media(max-width:1100px){#dayroom .dr-thread-shortcuts{display:none}}
#dayroom .dr-thread-messages{overscroll-behavior:contain}
/* Forced colours (Windows contrast themes) drop backgrounds and box-shadows, which alone draw the toggle, mark the chosen
   segment, palette, office theme and import source, and ring the search pill and tour card on focus. System colours
   draw them instead. A chosen control that also has keyboard focus gets one double outline: its inner line is the
   chosen ring, its outer line the focus ring, so neither hides the other. The app-wide forced-colours pass is deferred. */
@media (forced-colors:active){
 #dayroom .dr-toggle{forced-color-adjust:none;background:Canvas;border:1px solid CanvasText;box-shadow:none}
 #dayroom .dr-toggle::before{top:2px;left:2px;background:CanvasText}
 #dayroom .dr-toggle:is(:checked,[aria-pressed="true"],[aria-checked="true"]){background:Highlight;border-color:Highlight}
 #dayroom .dr-toggle:is(:checked,[aria-pressed="true"],[aria-checked="true"])::before{background:HighlightText}
 #dayroom .dr-toggle:focus-visible{outline-color:Highlight}
 #dayroom .dr-seg.is-text>button:is([aria-pressed="true"],[aria-current="page"]),#dayroom :is(.dr-theme-choice,.dr-office-theme-tile)[aria-pressed="true"],#dayroom .dr-import-source:has(input:checked){outline:2px solid Highlight;outline-offset:-2px}
 #dayroom .dr-app-search:focus-within,#dayroom .dr-tour-card:focus-visible{outline:2px solid Highlight;outline-offset:2px}
 #dayroom .dr-seg.is-text>button:is([aria-pressed="true"],[aria-current="page"]):focus-visible,#dayroom :is(.dr-theme-choice,.dr-office-theme-tile)[aria-pressed="true"]:focus-visible,#dayroom .dr-import-source:has(input:checked):has(input:focus-visible){outline:6px double Highlight;outline-offset:-2px}
}

/* Gmail previews: one quiet, readable mail row instead of numbered action chips. */
#dayroom .dr-mail-content{padding:0;overflow:hidden}
#dayroom .dr-mail-list{list-style:none;margin:0;padding:0}
#dayroom .dr-mail-list>li+li{border-top:1px solid var(--dr-line)}
#dayroom .dr-mail-row{display:flex;align-items:flex-start;gap:14px;width:100%;padding:18px 20px;border:0;border-radius:0;background:transparent;color:var(--dr-ink);font:inherit;text-align:left;cursor:pointer}
#dayroom .dr-mail-row:hover{background:var(--dr-hover)}
#dayroom .dr-mail-row:focus-visible{outline:2px solid var(--dr-accent);outline-offset:-3px}
#dayroom .dr-mail-initial{flex:none;display:grid;place-items:center;width:36px;height:36px;margin-top:2px;border-radius:10px;background:var(--dr-sunken);color:var(--dr-muted);font-size:15px;font-weight:800;box-shadow:inset 0 0 0 1px var(--dr-line-2)}
#dayroom .dr-mail-copy{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
#dayroom .dr-mail-top{display:flex;align-items:center;gap:16px;min-width:0}
#dayroom .dr-mail-sender{display:flex;align-items:center;gap:7px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:600;color:var(--dr-muted)}
#dayroom .dr-mail-date{flex:none;margin-left:auto;font-size:11px;font-weight:600;color:var(--dr-muted);white-space:nowrap}
#dayroom .dr-mail-subject{font-size:14px;font-weight:650;line-height:1.45;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#dayroom .dr-mail-snippet{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;font-size:12.5px;font-weight:500;line-height:1.55;color:var(--dr-muted)}
#dayroom .dr-mail-row.is-unread .dr-mail-subject{font-weight:800}
#dayroom .dr-mail-row.is-unread .dr-mail-sender{color:var(--dr-ink);font-weight:800}
#dayroom .dr-mail-unread{flex:none;width:6px;height:6px;background:var(--dr-accent);border-radius:2px}
#dayroom .dr-mail-detail{padding:20px}
#dayroom .dr-mail-detail h3{margin:24px 0 12px;font-size:20px;font-weight:800;line-height:1.35;overflow-wrap:anywhere}
#dayroom .dr-mail-from{margin:0 0 4px;font-size:13px;font-weight:800;overflow-wrap:anywhere}
#dayroom .dr-mail-from span{color:var(--dr-muted);font-weight:500}
#dayroom .dr-mail-detail-snippet{margin:20px 0 0;font-size:14px;line-height:1.7;overflow-wrap:anywhere}
@media(max-width:560px){#dayroom .dr-mail-row{padding:15px 14px;gap:10px}#dayroom .dr-mail-initial{width:30px;height:30px;border-radius:8px}#dayroom .dr-mail-top{gap:8px}}
@media(forced-colors:active){#dayroom .dr-mail-row:focus-visible{outline-color:Highlight}#dayroom .dr-mail-unread{background:CanvasText}}

/* Imported media reads as a conversation; original provenance remains available. */
#dayroom .dr-wa-provenance{position:relative;font-size:11px;color:var(--dr-muted);font-weight:500}
#dayroom .dr-wa-provenance summary{cursor:pointer;list-style:none;text-decoration:underline;text-underline-offset:3px}
#dayroom .dr-wa-provenance summary::-webkit-details-marker{display:none}
#dayroom .dr-wa-provenance[open]{flex-basis:100%}
#dayroom .dr-wa-provenance span{display:block;padding:6px 0;line-height:1.5}
#dayroom .dr-wa-change{font-size:11px;color:var(--dr-muted);font-weight:500;font-style:italic}
#dayroom .dr-message-body:empty{display:none}
#dayroom .dr-message-content .dr-import-image{display:block;width:fit-content;max-width:100%;padding:0;border:0;background:transparent;margin-top:6px}
#dayroom .dr-message-content .dr-import-image img{display:block;width:auto;max-width:100%;max-height:280px;object-fit:contain;margin:0;border-radius:10px}

/* Photo bursts stay compact until opened; every original message keeps its actions. */
#dayroom .dr-photo-collection{max-width:min(620px,100%);margin:12px 0;padding:14px;border:1px solid var(--dr-line);border-radius:18px;background:var(--dr-soft)}
#dayroom .dr-photo-collection.is-own{margin-left:auto;background:color-mix(in srgb,var(--dr-accent) 10%,var(--dr-panel))}
#dayroom .dr-photo-collection>summary{display:block;cursor:pointer;list-style:none;width:fit-content;max-width:100%;border-radius:10px}
#dayroom .dr-photo-collection>summary::-webkit-details-marker{display:none}
#dayroom .dr-photo-collection>summary:focus-visible{outline:2px solid var(--dr-accent);outline-offset:5px}
#dayroom .dr-photo-heading{display:flex;align-items:center;gap:8px;font-size:13px;flex-wrap:wrap}
#dayroom .dr-photo-heading time{font-size:11px;color:var(--dr-muted)}
#dayroom .dr-photo-heading .dr-message-avatar{width:30px;height:30px;flex:0 0 30px}
#dayroom .dr-photo-stack{display:block;position:relative;width:min(240px,65vw);height:200px;margin:18px 12px 12px}
#dayroom .dr-photo-stack img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border:3px solid var(--dr-panel);border-radius:14px;box-shadow:var(--dr-shadow)}
#dayroom .dr-photo-stack img:first-child{transform:rotate(-6deg)}
#dayroom .dr-photo-stack img:nth-child(2){transform:rotate(5deg)}
#dayroom .dr-photo-stack img:last-child{transform:rotate(-1deg)}
#dayroom .dr-photo-count{display:block;padding:4px 0;font-size:12px;font-weight:700}
#dayroom .dr-photo-close-label{display:none}
#dayroom .dr-photo-collection[open]>summary .dr-photo-stack,#dayroom .dr-photo-collection[open]>summary .dr-photo-open-label{display:none}
#dayroom .dr-photo-collection[open]>summary .dr-photo-close-label{display:inline}
#dayroom .dr-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px;min-width:0}
#dayroom .dr-photo-grid>.dr-message-row{display:block;padding:0;min-width:0}
#dayroom .dr-photo-grid>.dr-message-row>.dr-message-avatar{display:none}
#dayroom .dr-photo-grid>.dr-message-row>.dr-message-content{max-width:100%;width:100%;padding:8px;box-sizing:border-box}
#dayroom .dr-photo-grid .dr-message-actions{position:relative;inset:auto;opacity:1;pointer-events:auto;margin-top:8px;flex-wrap:wrap}
#dayroom .dr-photo-grid .dr-import-image{width:100%;box-sizing:border-box}
#dayroom .dr-photo-grid .dr-import-image img{width:100%;height:180px;object-fit:contain}
#dayroom .dr-photo-grid .dr-photo-collection{padding:6px}
@media(max-width:560px){#dayroom .dr-photo-grid{grid-template-columns:1fr}#dayroom .dr-photo-collection{padding:10px}}

/* Viewing a photo is separate from choosing to download it. */
#dayroom .dr-image-open{cursor:zoom-in;text-align:left;color:var(--dr-ink);font:inherit}
#dayroom .dr-image-open:focus-visible{outline:2px solid var(--dr-accent);outline-offset:3px}
#dayroom .dr-modal:has(.dr-image-viewer){width:min(1080px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 88px);box-sizing:border-box}
#dayroom #dr-modal-body:has(>.dr-image-viewer){display:flex;flex-direction:column}
#dayroom .dr-image-viewer{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}
/* The picture gives way first on a short screen, so Previous, Next and Download stay in view. */
#dayroom .dr-image-viewer>.dr-image-stage{flex:1 1 auto;min-height:80px}
#dayroom .dr-image-viewer>:is(.dr-image-controls,.dr-image-filename){flex:none}
#dayroom .dr-image-stage{display:grid;place-items:center;min-height:180px;height:min(65dvh,720px);background:var(--dr-sunken);border-radius:12px;overflow:hidden}
#dayroom .dr-image-full{display:block;width:100%;height:100%;min-height:0;object-fit:contain}
#dayroom .dr-image-full[hidden],#dayroom .dr-image-error[hidden]{display:none}
#dayroom .dr-image-controls{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;padding:12px 0 0}
#dayroom [data-image-position]{min-width:60px;text-align:center;font-variant-numeric:tabular-nums}
#dayroom .dr-image-filename{overflow-wrap:anywhere;text-align:center;font-size:12px;color:var(--dr-muted);margin:8px 0 0}
#dayroom .dr-image-error{padding:24px;text-align:center}
@media(max-height:500px){#dayroom .dr-image-stage{height:45dvh;min-height:100px}#dayroom .dr-image-filename{display:none}}
#dayroom .dr-image-controls [aria-disabled="true"]{opacity:.4;cursor:default}
#dayroom .dr-file-open{cursor:pointer;text-align:left;color:var(--dr-ink);font:inherit}
#dayroom .dr-file-open:focus-visible{outline:2px solid var(--dr-accent);outline-offset:3px}
#dayroom .dr-modal:has(.dr-file-viewer){width:min(1080px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 88px);box-sizing:border-box}
#dayroom .dr-file-viewer{display:flex;flex-direction:column;min-height:0}
#dayroom .dr-file-stage{display:grid;place-items:center;min-height:120px;height:clamp(120px,calc(100dvh - 360px),720px);border-radius:12px;background:var(--dr-sunken);overflow:auto}
#dayroom .dr-file-stage canvas{display:block;margin:16px;max-width:none;background:#fff;grid-area:1/1;align-self:start;justify-self:center}
#dayroom .dr-file-stage:has(canvas){display:block}
#dayroom .dr-file-stage canvas{margin-inline:auto}
#dayroom .dr-pdf-tools{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;margin-bottom:12px}
#dayroom .dr-pdf-tools[hidden],#dayroom .dr-pdf-text[hidden]{display:none}
#dayroom .dr-pdf-tools label{display:flex;align-items:center;gap:8px}
#dayroom .dr-pdf-tools select{font:inherit;color:var(--dr-ink);background:var(--dr-surface);border:1px solid var(--dr-border);border-radius:8px;padding:7px}
#dayroom .dr-pdf-text{margin-top:12px;text-align:left}
#dayroom .dr-pdf-text pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:180px;overflow:auto;font:14px/1.6 ui-monospace,monospace}
#dayroom .dr-file-detail{font-size:13px;color:var(--dr-muted);text-align:center}
#dayroom .dr-file-stage pre{align-self:stretch;justify-self:stretch;min-height:100%;margin:0;padding:20px;box-sizing:border-box;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--dr-ink);font:13px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;text-align:left}
#dayroom .dr-file-loading,#dayroom .dr-file-error{padding:24px;text-align:center}
#dayroom .dr-file-controls{display:flex;justify-content:center;padding-top:12px}
#dayroom .dr-file-note{margin:8px 0 0;color:var(--dr-muted);font-size:12px;text-align:center}
@media(max-height:500px){#dayroom .dr-file-stage{height:45dvh;min-height:120px}#dayroom .dr-file-note{display:none}}
/* The long notification mode label needs its own row on narrow screens. */
@media(max-width:600px){
 #dayroom #dr-notification-settings .dr-li:has(#dr-notification-mode){display:grid;grid-template-columns:32px minmax(0,1fr)}
 #dayroom #dr-notification-settings .dr-li:has(#dr-notification-mode)>.dr-li-trail{grid-column:1/-1;width:100%;margin-left:0}
 #dayroom #dr-notification-mode{width:100%;min-width:0}
}

/* Standard provider artwork stays smooth and legible in every interface palette. */
#dayroom .dr-logo-brand{display:inline-block;object-fit:contain;image-rendering:auto;flex-shrink:0}
#dayroom .dr-tile-logo:has(.dr-logo-brand){background:#fff}
#dayroom .dr-tile-logo:has(img[src$="/kimi.svg"]){background:#111}
#dayroom .dr-connect-waiting>.dr-logo-brand{box-sizing:content-box;padding:8px;background:#fff;border-radius:12px}

/* Reviewed AI wording keeps the original task visible beside its suggestion. */
#dayroom .dr-todo-refine-dialog{width:min(540px,calc(100vw - 32px));max-height:calc(100dvh - 48px);box-sizing:border-box;overflow:auto;padding:26px;border:1px solid var(--dr-line);border-radius:16px;background:var(--dr-panel);color:var(--dr-ink);box-shadow:0 18px 60px #0005}
.dr-todo-refine-dialog::backdrop{background:rgb(8 14 11 / .48);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}
#dayroom .dr-todo-refine-dialog form{display:grid;gap:18px;margin:0}
#dayroom .dr-todo-refine-dialog header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
#dayroom .dr-todo-refine-dialog h2{font-size:20px;line-height:1.3;margin:6px 0 0}
#dayroom .dr-todo-refine-dialog header button{width:32px;min-height:32px;padding:0;font-size:22px;flex:none}
#dayroom .dr-todo-refine-original{padding:16px;border:1px solid var(--dr-line);border-radius:10px}
#dayroom .dr-todo-refine-original span{font-size:11px;color:var(--dr-muted)}
#dayroom .dr-todo-refine-dialog p{font-size:13px;line-height:1.5;margin:0;overflow-wrap:anywhere}
#dayroom .dr-todo-refine-original p{margin-top:8px}
#dayroom .dr-todo-refine-dialog label{font-size:13px;font-weight:600;margin-bottom:-10px}
#dayroom .dr-todo-refine-dialog textarea{width:100%;box-sizing:border-box;resize:vertical;min-height:88px;font:inherit;line-height:1.5;padding:12px;border:1px solid var(--dr-line);border-radius:8px;background:var(--dr-bg);color:var(--dr-ink)}
#dayroom .dr-todo-refine-note{border-left:3px solid var(--dr-accent);padding:8px 12px;background:color-mix(in srgb,var(--dr-accent) 8%,transparent)}
#dayroom .dr-todo-refine-dialog footer{display:flex;gap:10px;flex-wrap:wrap;padding-top:6px}
@media(max-width:600px){#dayroom .dr-todo-refine-dialog{padding:20px}}

/* Skeleton placeholders (DayroomUI.skeleton): the page's shape while data arrives, never a progress bar for opening a page. */
#dayroom .dr-skel{display:block;min-width:0}
#dayroom .dr-skel>[aria-hidden]{display:block}
#dayroom .dr-skel-line{display:block;height:10px;border-radius:5px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-line);animation:dr-skel-pulse 1.6s ease-in-out infinite}
#dayroom .dr-skel-line.is-faint{height:8px;opacity:.65}
#dayroom .dr-skel-line.is-title{height:16px;margin-bottom:4px}
#dayroom .dr-skel-list{display:flex;flex-direction:column}
#dayroom .dr-skel-row{display:flex;align-items:center;gap:12px;padding:12px 4px;border-bottom:1px solid var(--dr-line)}
#dayroom .dr-skel-dot{flex:none;width:28px;height:28px;border-radius:8px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-line);animation:dr-skel-pulse 1.6s ease-in-out infinite}
#dayroom .dr-skel-text{flex:1;display:flex;flex-direction:column;gap:7px;min-width:0}
#dayroom .dr-skel-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}
#dayroom .dr-skel-card{display:flex;flex-direction:column;gap:9px;padding:14px;border-radius:12px;background:var(--dr-panel);box-shadow:inset 0 0 0 1px var(--dr-line)}
#dayroom .dr-skel-board{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
#dayroom .dr-skel-column{display:flex;flex-direction:column;gap:10px;padding:12px;border-radius:12px;background:var(--dr-sunken)}
#dayroom .dr-skel-reader{display:flex;flex-direction:column;gap:10px;max-width:640px}
@keyframes dr-skel-pulse{50%{opacity:.45}}
@media (prefers-reduced-motion:reduce){#dayroom :is(.dr-skel-line,.dr-skel-dot){animation:none}}

/* Profile card: picture beside who they are, where they are and the actions (product-app.js profile()). */
#dayroom .dr-profile-hero{display:flex;align-items:flex-start;gap:18px}
#dayroom #dr-profile-picture{flex:none;display:block;width:112px;height:112px;border-radius:16px;image-rendering:pixelated;box-shadow:0 0 0 1px var(--dr-line)}
#dayroom .dr-profile-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:12px}
#dayroom .dr-profile-presence{display:flex;align-items:center;gap:7px;margin:0;font-size:13px;font-weight:700;color:var(--dr-ink-2)}
#dayroom .dr-profile-presence i{width:9px;height:9px;border-radius:50%;background:var(--st-away)}
#dayroom .dr-profile-presence.is-active i{background:var(--st-available)}
#dayroom .dr-profile-presence.is-busy i{background:var(--st-dnd)}
#dayroom .dr-profile-presence.is-away i{background:var(--st-working)}
#dayroom .dr-profile-presence.is-offline i{background:transparent;box-shadow:inset 0 0 0 2px var(--dr-faint)}
#dayroom .dr-profile-facts{display:grid;gap:8px;margin:0}
#dayroom .dr-profile-fact{display:grid;grid-template-columns:120px minmax(0,1fr);gap:10px;font-size:13px;line-height:1.4}
#dayroom .dr-profile-fact dt{color:var(--dr-muted);font-weight:700}
#dayroom .dr-profile-fact dd{margin:0;color:var(--dr-ink);font-weight:600;overflow-wrap:anywhere}
#dayroom .dr-profile-actions{display:flex;flex-wrap:wrap;gap:8px}
@media (max-width:560px){
 #dayroom .dr-profile-hero{flex-direction:column;align-items:center;text-align:center}
 #dayroom .dr-profile-main{width:100%;align-items:stretch}
 #dayroom .dr-profile-presence{justify-content:center}
 #dayroom .dr-profile-fact{grid-template-columns:1fr;gap:2px;text-align:center}
 #dayroom .dr-profile-actions>.dr-button{flex:1 1 0;min-height:44px}
}
@media (pointer:coarse){#dayroom .dr-profile-actions>.dr-button{min-height:44px}}

/* Danger text: --st-dnd stays the status-dot red, but as 13px text it is 3.66:1 on the light panel. The light
   value is the existing error red (6.78:1); dark keeps --st-dnd (4.9:1). */
#dayroom{--dr-danger-text:light-dark(#A13636,var(--st-dnd))}
#dayroom .dr-room-menu-item.is-danger{color:var(--dr-danger-text)}
/* Notification delivery cards: the email options keep [hidden] working, so no .dr-form display here. */
#dayroom #dr-email-alert-options:not([hidden]){display:flex;flex-direction:column;gap:14px}
#dayroom #dr-email-alert-options label.dr-field{margin:0}
/* Appearance modes on phones: one row of 44px options (the shared .dr-seg.is-text wrap and 26px height outranked theme-studio). */
@media (max-width:899px){
 #dayroom .dr-seg.is-text.dr-appearance-modes{display:flex;flex-wrap:nowrap;width:100%;max-width:420px}
 #dayroom .dr-seg.is-text.dr-appearance-modes>button{flex:1 1 auto;justify-content:center;height:44px;line-height:44px;padding:0 8px}
}
@media (max-width:340px){#dayroom .dr-seg.is-text.dr-appearance-modes>button svg.dr-i{display:none}}
@media (max-width:600px){
 #dayroom .dr-account-ai-address .dr-form-row{flex-direction:column}
}
@media (max-width:899px){
 /* User panel: 44px targets grown with negative margins, so the panel keeps its 60px height and layout. */
 #dayroom .dr-upanel .dr-dpw{width:44px;height:44px;margin:-5px;display:grid;place-items:center}
 #dayroom .dr-upanel .dr-dpw .dr-st{right:2px;bottom:2px}
 #dayroom .dr-upanel .dr-hud-id b{font-size:16px}
 #dayroom #dr-status{font-size:16px;min-height:44px;margin-block:-10px;padding-right:16px}
 /* Page heads: three or more actions wrap onto their own row instead of squeezing the title to one word per line. */
 #dayroom .dr-page-titles{min-width:min(100%,160px)}
 #dayroom .dr-page-actions{justify-content:flex-start}
 /* A text segment in page actions (Help's sections) shrinks and wraps its labels instead of spilling off the left. */
 #dayroom .dr-page-actions>.dr-seg.is-text{flex:0 1 auto;min-width:0;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,auto)}
 #dayroom .dr-page-actions>.dr-seg.is-text>button{height:auto;min-height:44px;padding:4px 10px;white-space:normal;line-height:1.25;justify-content:center;text-align:center}
 #dayroom .dr-page-actions>.dr-seg.is-text .dr-count{margin-left:0}
 /* Page dialogs keep one height, so switching sections doesn't move the tabs from under the finger. */
 #dayroom .dr-modal:has(>#dr-modal-body>.dr-page){height:calc(var(--dr-mobile-height,100dvh) - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
}
/* One quiet "Back to office" in every page head (Works, Agents, To-dos, Activity, Files, Later). */
#dayroom .dr-button.dr-back-office{box-shadow:none;color:var(--dr-muted)}
@media (hover:hover){#dayroom .dr-button.dr-back-office:hover{color:var(--dr-ink)}}

#dayroom .dr-wp-file-actions{display:flex;gap:4px;justify-content:flex-end}#dayroom .dr-wp-file-row{grid-template-columns:minmax(0,1fr) 120px 140px 84px}@media(max-width:800px){#dayroom .dr-wp-file-row{grid-template-columns:minmax(0,1fr) 84px}}

#dayroom .dr-file-remove-dialog[open]{display:grid;gap:14px}#dayroom .dr-file-remove-dialog p{font-size:14px}#dayroom .dr-file-remove-dialog [data-error]:empty{display:none}

/* Notifications use separate preference, setup and history views. */
#dayroom .dr-notifications-body{gap:20px;scroll-padding-top:70px}
#dayroom .dr-notification-nav{position:sticky;top:-20px;z-index:2;margin:-20px -20px 0;padding:16px 20px;background:var(--dr-panel);border-bottom:1px solid var(--dr-line)}
#dayroom .dr-notification-nav .dr-seg{width:100%}
#dayroom .dr-notification-nav .dr-seg button{flex:1;min-height:40px}
#dayroom .dr-notification-pane{display:grid;gap:20px;min-width:0}
#dayroom .dr-notifications-body [hidden]{display:none!important}
#dayroom .dr-notification-pane .dr-card-head{padding:20px 20px 14px}
#dayroom .dr-notification-pane .dr-card-title{font-size:15px}
#dayroom .dr-notification-pane .dr-card-sub{margin-top:5px;line-height:1.5}
#dayroom .dr-notification-pane .dr-card-body{padding:0 20px 20px}
#dayroom .dr-notification-pane .dr-stack{gap:14px}
#dayroom .dr-notification-pane .dr-field{margin:0;min-width:0}
#dayroom .dr-notification-pane select{width:100%;min-width:0;max-width:100%;height:42px}
#dayroom .dr-notification-pane .dr-form-actions{gap:10px}
#dayroom .dr-notification-pane .dr-button{min-height:40px}
#dayroom .dr-notification-pane .dr-hint{line-height:1.55;overflow-wrap:anywhere}
#dayroom #dr-notification-settings .dr-li{padding:16px 20px;gap:20px;align-items:center}
#dayroom #dr-notification-settings .dr-li-sub{margin-top:4px}
#dayroom #dr-notification-settings .dr-list{border-top:1px solid var(--dr-line);margin-bottom:4px}
#dayroom #dr-notification-saved:empty{display:none}
#dayroom .dr-notification-email-fields{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:16px}
#dayroom .dr-notification-detail{font-size:12px;line-height:1.5}
#dayroom .dr-notification-detail summary{cursor:pointer;font-weight:700;padding:2px 0;color:var(--dr-ink2)}
#dayroom .dr-notification-detail[open] summary{margin-bottom:10px}
#dayroom .dr-notification-detail summary:focus-visible{outline:2px solid var(--dr-accent);outline-offset:4px;border-radius:3px}
#dayroom .dr-phone-guide{display:grid;gap:24px;padding:4px 4px 0;min-width:0}
#dayroom .dr-phone-guide-head{display:flex;align-items:center;gap:14px}
#dayroom .dr-phone-guide-icon{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border-radius:12px;background:var(--dr-sunken);color:var(--dr-accent)}
#dayroom .dr-phone-guide-icon .dr-i{width:24px;height:24px}
#dayroom .dr-phone-guide h3{font-size:19px;font-weight:800;line-height:1.35}
#dayroom .dr-phone-guide-head p{margin-top:5px;color:var(--dr-muted);font-size:13px;line-height:1.5}
#dayroom .dr-phone-guide>.dr-seg{width:fit-content;max-width:100%}
#dayroom .dr-phone-guide>.dr-seg button{min-height:40px;padding-inline:18px}
#dayroom .dr-phone-steps{display:grid;list-style:none;padding:0;gap:0;border:1px solid var(--dr-line);border-radius:14px;overflow:hidden;background:var(--dr-panel)}
#dayroom .dr-phone-steps li{display:grid;grid-template-columns:30px minmax(0,1fr);gap:16px;padding:22px}
#dayroom .dr-phone-steps li+li{border-top:1px solid var(--dr-line)}
#dayroom .dr-phone-step-number{display:grid;place-items:center;width:30px;height:30px;border:1px solid var(--dr-line);border-radius:8px;font-size:13px;font-weight:800;color:var(--dr-accent);background:var(--dr-sunken)}
#dayroom .dr-phone-steps h4{font-size:14px;line-height:1.5;color:var(--dr-ink)}
#dayroom .dr-phone-steps p{margin-top:6px;font-size:13px;line-height:1.65;color:var(--dr-ink2)}
#dayroom .dr-phone-share-help{margin-top:10px}
#dayroom .dr-phone-steps strong{font-weight:700;color:var(--dr-ink)}
#dayroom .dr-phone-guide-footer{display:grid;gap:14px}
#dayroom .dr-phone-guide-footer>.dr-button{justify-self:start}
@media(max-width:600px){
 #dayroom .dr-notifications-body{padding:16px 16px 24px;gap:16px}
 #dayroom .dr-notification-nav{top:-16px;margin:-16px -16px 0;padding:12px 16px}
 #dayroom .dr-notification-nav .dr-seg button{padding-inline:10px;font-size:12px}
 #dayroom .dr-notification-pane{gap:16px}
 #dayroom .dr-notification-pane .dr-card-head{padding:18px 16px 12px}
 #dayroom .dr-notification-pane .dr-card-body{padding:0 16px 18px}
 #dayroom #dr-notification-settings .dr-li{padding:14px 16px;gap:12px}
 #dayroom .dr-notification-email-fields{grid-template-columns:minmax(0,1fr);gap:16px}
 #dayroom .dr-phone-guide{gap:20px;padding:4px 0 0}
 #dayroom .dr-phone-guide h3{font-size:17px}
 #dayroom .dr-phone-guide-icon{flex-basis:40px;width:40px;height:40px}
 #dayroom .dr-phone-guide-head{gap:12px}
 #dayroom .dr-phone-steps li{padding:18px 14px;gap:12px;grid-template-columns:26px minmax(0,1fr)}
 #dayroom .dr-phone-step-number{width:26px;height:26px}
}

#dayroom .dr-file-open[aria-busy="true"]{cursor:progress;opacity:.7}
#dayroom .dr-file-open[aria-busy="true"]::after{content:" · Opening…"}

/* Privacy review uses the same member list and controls as room creation. */
#dayroom .dr-room-private-members{border:0;padding:0;margin:4px 0;min-width:0}
#dayroom .dr-room-private-members legend{font-weight:600;font-size:14px;margin-bottom:8px}
#dayroom .dr-room-private-members .dr-list{max-height:240px;overflow:auto;overscroll-behavior:contain}
#dayroom .dr-room-private-members label{overflow-wrap:anywhere}
#dayroom .dr-gh>.dr-page-head{align-items:center;gap:12px;padding:20px 56px 20px 20px}
#dayroom .dr-gh>.dr-page-body{padding:24px 32px 32px}
#dayroom .dr-gh .dr-page-titles{flex:1 1 0;min-width:0}
#dayroom .dr-gh .dr-page-actions{align-items:center;margin-left:auto}
#dayroom .dr-gh .dr-page-actions:has(#gh-actions:empty){display:none}
#dayroom .dr-gh .dr-page-sub{display:flex;flex-wrap:wrap;align-items:center;gap:2px 12px;margin-top:2px}
#dayroom .dr-gh .dr-page-sub .dr-link{min-height:0}
#dayroom .dr-gh-back{display:grid;place-items:center;flex:none;width:32px;height:32px;padding:0;border:0;border-radius:10px;background:none;color:var(--dr-muted)}
#dayroom .dr-gh-back:hover{background:var(--dr-sunken);color:var(--dr-ink)}
#dayroom .dr-gh-logo{flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#fff}
#dayroom .dr-gh-search{position:relative;display:flex;align-items:center}
#dayroom .dr-gh-search>.dr-i{position:absolute;left:16px;width:18px;height:18px;color:var(--dr-muted);pointer-events:none}
#dayroom .dr-gh-search input{width:100%;height:50px;padding:0 16px 0 46px;border-radius:14px;font-size:15px}
#dayroom .dr-gh-listhead{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin:28px 0 8px}
#dayroom .dr-gh-listhead .dr-link{white-space:nowrap}
#dayroom .dr-gh-listhead h3{margin:0;font-size:13px;font-weight:700;color:var(--dr-muted)}
#dayroom #gh-results{transition:opacity .15s}
#dayroom #gh-results.is-loading .dr-gh-rows{opacity:.55}
#dayroom .dr-gh-rows{display:grid;gap:2px;margin-inline:-12px}
#dayroom .dr-gh-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;width:100%;min-height:68px;padding:12px;border:0;border-radius:12px;background:none;color:var(--dr-ink);font:inherit;text-align:left;text-decoration:none}
#dayroom .dr-gh-row:is(a,button):hover{background:var(--dr-sunken)}
#dayroom .dr-gh-row:focus-visible{outline:2px solid var(--dr-accent);outline-offset:-2px}
#dayroom .dr-gh-kind{display:grid;place-items:center;color:var(--st-available)}
#dayroom .dr-gh-row.is-closed .dr-gh-kind{color:var(--dr-muted)}
#dayroom .dr-gh-main{display:grid;gap:3px;min-width:0}
#dayroom .dr-gh-title{font-size:15px;font-weight:700;line-height:1.35;overflow-wrap:anywhere}
#dayroom .dr-gh-meta,#dayroom .dr-gh-when{font-size:13px;color:var(--dr-muted);overflow-wrap:anywhere}
#dayroom .dr-gh-when{white-space:nowrap}
#dayroom .dr-gh-more{margin:12px 0 0}
#dayroom .dr-gh-quiet{display:grid;justify-items:center;gap:12px;padding:48px 16px;text-align:center;color:var(--dr-muted)}
#dayroom .dr-gh-quiet p{margin:0}
#dayroom .dr-gh-note{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px;padding:14px 16px;border-radius:14px;background:var(--dr-sunken)}
#dayroom .dr-gh-note p{margin:0}
#dayroom .dr-gh-center{display:grid;justify-items:center;gap:10px;padding:56px 16px 48px;text-align:center}
#dayroom .dr-gh-center h3{margin:0;font-size:22px;font-weight:800;color:var(--dr-ink);outline:0}
#dayroom .dr-gh-center p{margin:0;max-width:46ch;color:var(--dr-muted);font-size:15px;line-height:1.5}
#dayroom .dr-gh-center .dr-hint{margin-top:6px;font-size:13px}
#dayroom .dr-gh-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
#dayroom .dr-gh-actions .dr-button{min-height:42px;padding-inline:18px}
#dayroom .dr-gh-end{justify-content:flex-end;margin-top:4px}
#dayroom .dr-gh-sheet{display:grid;gap:16px;width:min(620px,100%);margin:8px auto}
#dayroom .dr-gh-sheet h3{margin:0;font-size:22px;font-weight:800;color:var(--dr-ink);outline:0}
#dayroom .dr-gh-sheet .dr-field{margin:0}
#dayroom .dr-gh-sheet select{width:100%;min-height:46px}
#dayroom .dr-gh-sheet textarea{min-height:150px;padding:14px;font-size:15px;line-height:1.5;resize:vertical}
#dayroom .dr-gh-sheet .dr-hint{margin:0;font-size:13px}
#dayroom .dr-gh-error{margin:0;color:var(--dr-danger,var(--dr-accent-text));font-size:14px}
#dayroom .dr-gh-preview{padding:20px 22px;border:1px solid var(--dr-line);border-radius:14px}
#dayroom .dr-gh-sheet .dr-gh-preview h4{margin:0 0 14px;font-size:18px;line-height:1.3;font-weight:800;overflow-wrap:anywhere}
#dayroom .dr-gh-sheet .dr-gh-preview .dr-pre{margin:0;font-size:15px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:560px){
 #dayroom #dr-modal-body>.dr-gh>.dr-page-head{padding:14px 16px;gap:8px}
 #dayroom .dr-gh .dr-page-titles{padding-right:28px}
 #dayroom .dr-gh-back{margin-left:-8px}
 #dayroom .dr-gh>.dr-page-body{padding:16px 16px 24px}
 #dayroom .dr-gh-logo{width:36px;height:36px}
 #dayroom .dr-gh .dr-page-actions{order:5;width:100%;margin-left:0}
 #dayroom .dr-gh #gh-actions{display:block;width:100%}
 #dayroom .dr-gh .dr-page-actions .dr-button{width:100%;min-height:44px}
 #dayroom .dr-gh-row{grid-template-columns:auto minmax(0,1fr);row-gap:0}
 #dayroom .dr-gh-when{grid-column:2}
 #dayroom .dr-gh-rows{margin-inline:-8px}
 #dayroom .dr-gh-row{padding-inline:8px}
 #dayroom .dr-gh-center{padding-block:36px 28px}
 #dayroom .dr-gh-end .dr-button{flex:1}
}

/* Uploaded company marks retain their colours, proportions and smooth edges. */
#dayroom img.dr-company-logo{object-fit:contain;image-rendering:auto}

/* Agent setup: one decision per page, with room access kept explicit. */
#dayroom .dr-agent-settings .dr-page-body{gap:24px;padding:24px}
#dayroom .dr-agent-settings .dr-page-head{padding:20px 48px 20px 24px}
#dayroom .dr-agent-settings .dr-page-title{font-size:20px}
#dayroom .dr-agent-settings h3{font-size:15px;font-weight:800;overflow-wrap:anywhere}
#dayroom .dr-agent-settings p{line-height:1.55}
#dayroom .dr-agent-settings .dr-button{min-height:40px;padding:8px 14px}
#dayroom .dr-agent-settings .dr-field{margin:0}
#dayroom .dr-agent-settings input:is([type=url],[type=search]){width:100%;min-height:44px}
#dayroom .dr-agent-mark{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border:1px solid var(--dr-line);border-radius:12px;background:var(--dr-soft);color:var(--dr-ink)}
#dayroom .dr-agent-mark svg{width:26px;height:26px}
#dayroom :is(.dr-agent-row,.dr-agent-summary){display:flex;align-items:center;gap:16px;min-width:0}
#dayroom .dr-agent-row{padding:20px;border:1px solid var(--dr-line);border-radius:14px;background:var(--dr-panel)}
#dayroom .dr-agent-list{display:grid;gap:12px}
#dayroom .dr-agent-row-copy{flex:1;min-width:0}
#dayroom :is(.dr-agent-row-copy,.dr-agent-summary) p{color:var(--dr-muted);font-size:13px;margin-top:4px;overflow-wrap:anywhere}
#dayroom .dr-agent-empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:16px;padding:32px 16px}
#dayroom .dr-agent-empty h3{font-size:20px}
#dayroom .dr-agent-empty p{max-width:38ch;color:var(--dr-muted)}
#dayroom .dr-agent-choices{display:grid;grid-template-columns:1fr 1fr;gap:16px}
#dayroom .dr-agent-choice{display:flex;flex-direction:column;align-items:flex-start;gap:12px;text-align:left;padding:24px;border:1px solid var(--dr-line);border-radius:14px;background:var(--dr-panel);color:var(--dr-muted);font:inherit;cursor:pointer;line-height:1.5}
#dayroom .dr-agent-choice:hover{background:var(--dr-soft)}
#dayroom .dr-agent-choice-title{font-size:16px;font-weight:800;color:var(--dr-ink)}
#dayroom .dr-agent-choice-action{margin-top:auto;padding-top:12px;color:var(--dr-ink);font-size:13px;font-weight:800}
#dayroom .dr-agent-section{display:flex;flex-direction:column;gap:12px}
#dayroom .dr-agent-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
#dayroom .dr-agent-section-head>span{font-size:12px;color:var(--dr-muted)}
#dayroom .dr-agent-rooms{margin:0;padding:0;border:1px solid var(--dr-line);border-radius:12px;overflow:auto;max-height:240px;min-width:0}
#dayroom .dr-agent-room{display:flex;align-items:center;gap:12px;min-height:52px;padding:12px 16px;border-bottom:1px solid var(--dr-line);font-size:14px}
#dayroom .dr-agent-room:last-child{border-bottom:0}
#dayroom .dr-agent-room[hidden]{display:none}
#dayroom .dr-agent-room>span{flex:1;min-width:0;overflow-wrap:anywhere}
#dayroom .dr-agent-room>small{font-size:11px;color:var(--dr-muted)}
#dayroom .dr-agent-check{cursor:pointer}
#dayroom .dr-agent-check input[type=checkbox]{flex:0 0 18px;width:18px;height:18px;margin:0;accent-color:var(--dr-ink)}
#dayroom .dr-agent-check:has(input:checked){background:var(--dr-soft)}
#dayroom .dr-agent-permission{display:flex;align-items:center;gap:12px;border:1px solid var(--dr-line);border-radius:12px;padding:16px}
#dayroom .dr-agent-permission strong{display:block;font-size:14px}
#dayroom .dr-agent-permission small{display:block;margin-top:4px;font-size:12px;color:var(--dr-muted)}
#dayroom .dr-agent-return{display:grid;gap:6px;color:var(--dr-muted);font-size:12px}
#dayroom .dr-agent-return code{font:inherit;overflow-wrap:anywhere;color:var(--dr-ink)}
#dayroom .dr-agent-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-top:20px;margin-top:8px;border-top:1px solid var(--dr-line)}
#dayroom .dr-agent-footer>span{font-size:12px;color:var(--dr-muted);max-width:40ch;overflow-wrap:anywhere}
#dayroom .dr-agent-footer .dr-form-actions{flex-shrink:0}
#dayroom .dr-agent-settings button:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:600px){
 #dayroom .dr-agent-settings .dr-page-body{padding:20px 16px;gap:20px}
 #dayroom .dr-agent-settings .dr-page-head{padding:16px 48px 16px 16px;flex-wrap:wrap}
 #dayroom .dr-agent-choices{grid-template-columns:1fr}
 #dayroom .dr-agent-choice{padding:20px}
 #dayroom .dr-agent-row{flex-wrap:wrap;padding:16px;gap:12px}
 #dayroom .dr-agent-row>.dr-button{margin-left:60px}
 #dayroom .dr-agent-footer{align-items:stretch;flex-direction:column;gap:16px}
 #dayroom .dr-agent-footer .dr-form-actions{justify-content:flex-end}
 #dayroom .dr-agent-empty{padding:24px 0}
}

/* Domain checkout shares the company settings controls and personal palette. */
.dr-domain-contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.dr-domain-store .dr-form-actions,.dr-domain-review .dr-form-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
.dr-domain-orders{list-style:none;padding:0;display:grid;gap:16px}
.dr-domain-order{padding:16px;border:1px solid var(--dr-line);border-radius:12px;overflow-wrap:anywhere}
.dr-domain-review dl{display:grid;grid-template-columns:minmax(140px,1fr) 2fr;gap:12px 20px;margin:24px 0}
.dr-domain-review dd{margin:0;overflow-wrap:anywhere}.dr-domain-review dt{font-weight:600}
.dr-domain-review .dr-check{display:flex;align-items:flex-start;gap:12px;margin-top:24px}
@media(max-width:600px){.dr-domain-contact-grid{grid-template-columns:1fr}.dr-domain-review dl{grid-template-columns:1fr;gap:8px}.dr-domain-review dd{margin-bottom:12px}}

#dayroom .dr-agent-room-stage{--lab-ink:#111a17;--lab-metal:#263a34;--lab-panel:#1a2924;--lab-line:#49635a;position:relative;min-height:310px;overflow:hidden;background:var(--lab-panel);border:2px solid var(--lab-line);border-radius:10px;box-shadow:inset 0 0 0 4px var(--lab-ink)}
#dayroom .dr-agent-lab-backdrop{position:absolute;inset:0;overflow:hidden;background:repeating-linear-gradient(90deg,transparent 0 63px,color-mix(in srgb,var(--lab-line) 34%,transparent) 63px 65px),var(--lab-panel)}
#dayroom .dr-agent-lab-backdrop:before,#dayroom .dr-agent-lab-backdrop:after{content:"";position:absolute;top:36px;width:54px;height:112px;background:var(--lab-metal);border:3px solid var(--lab-ink);box-shadow:inset 0 0 0 2px var(--lab-line)}
#dayroom .dr-agent-lab-backdrop:before{left:18px}#dayroom .dr-agent-lab-backdrop:after{right:18px}
#dayroom .dr-agent-lab-label{position:absolute;z-index:1;top:12px;left:50%;translate:-50% 0;padding:4px 9px;background:var(--lab-ink);border:2px solid var(--lab-line);color:var(--dr-accent);font-family:'Silkscreen',monospace;font-size:9px;letter-spacing:.12em}
#dayroom .dr-agent-lab-gantry{position:absolute;top:29px;left:8%;right:8%;height:10px;background:var(--lab-metal);border:3px solid var(--lab-ink);box-shadow:inset 0 -2px var(--lab-line)}
#dayroom .dr-agent-lab-gantry i{position:absolute;top:7px;width:8px;height:24px;background:var(--lab-line);border-inline:2px solid var(--lab-ink)}
#dayroom .dr-agent-lab-gantry i:nth-child(1){left:18%}#dayroom .dr-agent-lab-gantry i:nth-child(2){left:50%}#dayroom .dr-agent-lab-gantry i:nth-child(3){right:18%}
#dayroom .dr-agent-lab-screen{position:absolute;top:56px;width:78px;height:50px;padding:8px;background:#183b37;border:4px solid var(--lab-ink);box-shadow:0 4px 0 var(--lab-line)}
#dayroom .dr-agent-lab-screen.is-left{left:86px}#dayroom .dr-agent-lab-screen.is-right{right:86px}
#dayroom .dr-agent-lab-screen i{display:block;height:4px;margin-bottom:5px;background:var(--dr-accent)}
#dayroom .dr-agent-lab-screen i:nth-child(2){width:64%;background:#7caa94}#dayroom .dr-agent-lab-screen i:nth-child(3){width:82%;background:#d58a47}
#dayroom .dr-agent-lab-arm{position:absolute;top:38px;right:28%;width:12px;height:55px;background:var(--lab-line);border-inline:3px solid var(--lab-ink)}
#dayroom .dr-agent-lab-arm i:first-child{position:absolute;top:45px;left:-18px;width:40px;height:12px;background:var(--lab-metal);border:3px solid var(--lab-ink)}
#dayroom .dr-agent-lab-arm i:last-child{position:absolute;top:57px;left:-12px;width:8px;height:14px;background:var(--dr-accent);box-shadow:16px 0 var(--dr-accent)}
#dayroom .dr-agent-lab-console{position:absolute;z-index:1;left:22px;bottom:45px;width:110px;height:42px;padding:8px;background:var(--lab-metal);border:3px solid var(--lab-ink);transform:skew(-5deg)}
#dayroom .dr-agent-lab-console i{display:inline-block;width:11px;height:11px;margin-right:7px;background:var(--dr-accent);border:2px solid var(--lab-ink)}#dayroom .dr-agent-lab-console i:nth-child(2){background:#d58a47}#dayroom .dr-agent-lab-console i:nth-child(3){background:#7caa94}
#dayroom .dr-agent-lab-floor{position:absolute;left:0;right:0;bottom:0;height:76px;background:repeating-linear-gradient(90deg,transparent 0 47px,var(--lab-line) 47px 49px),repeating-linear-gradient(0deg,transparent 0 22px,var(--lab-line) 22px 24px),var(--lab-ink);border-top:4px solid var(--lab-line)}
#dayroom .dr-agent-room-roster{position:relative;z-index:2;display:flex;align-items:flex-end;gap:20px;width:100%;min-height:310px;overflow-x:auto;padding:118px 20px 30px 104px;scrollbar-width:thin}
#dayroom .dr-agent-room-person{position:relative;display:grid;grid-template-rows:88px auto auto;justify-items:center;gap:3px;min-width:124px;padding:12px;background:color-mix(in srgb,var(--lab-panel) 92%,transparent);border:2px solid var(--lab-line);border-radius:5px;box-shadow:4px 4px 0 var(--lab-ink)}
#dayroom .dr-agent-room-person:before{content:"";position:absolute;top:-9px;left:12px;right:12px;height:7px;background:var(--dr-accent);border:2px solid var(--lab-ink)}
#dayroom .dr-agent-room-person:after{content:"";position:absolute;left:14px;right:14px;bottom:-11px;height:9px;background:var(--lab-metal);border:2px solid var(--lab-ink)}
#dayroom .dr-agent-room-person.is-agent{border-top-color:var(--dr-accent)}
#dayroom .dr-agent-room-person-art{display:grid;place-items:center;width:88px;height:88px;overflow:hidden;border:3px solid var(--lab-ink);border-radius:4px;background:var(--dr-soft)}
#dayroom .dr-agent-room-person canvas,#dayroom .dr-agent-room-event-avatar canvas{width:100%;height:100%;image-rendering:pixelated}
#dayroom .dr-agent-room-person strong{max-width:108px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
#dayroom .dr-agent-room-person span{font-size:11px;color:var(--dr-muted);text-align:center}
#dayroom .dr-agent-room-companion{display:grid;place-items:center;width:100%;height:100%;padding:10px;background:var(--dr-soft)}
#dayroom .dr-agent-room-companion svg{width:100%;height:100%;image-rendering:pixelated}
#dayroom .dr-agent-room-privacy{padding:10px 12px;background:var(--dr-soft);border-left:4px solid var(--dr-accent);border-radius:8px;font-size:12px;color:var(--dr-muted)}
#dayroom .dr-agent-room-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,320px);gap:16px;align-items:start}
#dayroom .dr-agent-room-timeline{display:flex;flex-direction:column;gap:10px;min-width:0}
#dayroom .dr-agent-room-event{display:grid;grid-template-columns:44px minmax(0,1fr);gap:10px;padding:12px;background:var(--dr-panel);border:1px solid var(--dr-line);border-radius:12px}
#dayroom .dr-agent-room-event.is-reasoning{border-left:4px solid var(--dr-accent)}
#dayroom .dr-agent-room-event.is-goal{background:var(--dr-soft)}
#dayroom .dr-agent-room-event.is-status{padding-block:8px;opacity:.84}
#dayroom .dr-agent-room-event.is-error{border-left:4px solid var(--dr-error-text,#a13636)}
#dayroom .dr-agent-room-event-avatar{width:44px;height:44px;overflow:hidden;border-radius:9px;background:var(--dr-soft)}
#dayroom .dr-agent-room-event-avatar .dr-agent-room-companion{padding:5px}
#dayroom .dr-agent-room-event-copy{min-width:0}
#dayroom .dr-agent-room-event-copy header{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;margin-bottom:5px}
#dayroom .dr-agent-room-event-copy header strong{font-size:13px}
#dayroom .dr-agent-room-agent-tag{padding:2px 5px;background:var(--dr-accent);color:var(--dr-accent-ink,#243c34);border-radius:4px;font-family:'Silkscreen',monospace;font-size:8px;line-height:1.2;text-transform:uppercase}
#dayroom .dr-agent-room-event-copy header span,#dayroom .dr-agent-room-event-copy time{font-size:11px;color:var(--dr-muted)}
#dayroom .dr-agent-room-event-copy time{margin-left:auto}
#dayroom .dr-agent-room-event-text{font-size:13px;line-height:1.55;overflow-wrap:anywhere;white-space:pre-wrap}
#dayroom .dr-agent-room-event-text :where(p,ul,ol){margin:0 0 8px}
#dayroom .dr-agent-room-controls{position:sticky;top:12px}
#dayroom .dr-agent-room-composer{display:grid;gap:10px;margin-top:12px}
#dayroom .dr-agent-room-list-meta{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;color:var(--dr-muted);font-size:12px}
#dayroom .dr-agent-room-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 14px;padding:0;border:0}
#dayroom .dr-agent-room-choices legend{margin-bottom:8px;font-size:12px;font-weight:700}
#dayroom .dr-agent-room-choice{display:grid;grid-template-columns:20px 48px minmax(0,1fr);align-items:center;gap:8px;padding:8px;background:var(--dr-soft);border:1px solid var(--dr-line);border-radius:10px}
#dayroom .dr-agent-room-choice-art{display:grid;place-items:center;width:48px;height:48px;overflow:hidden;border-radius:8px;background:var(--dr-panel)}
#dayroom .dr-agent-room-choice-art canvas{width:48px;height:48px;image-rendering:pixelated}
#dayroom .dr-agent-room-choice-art .dr-agent-room-companion{padding:5px}
#dayroom .dr-agent-room-choice>span:last-child{display:grid;min-width:0}
#dayroom .dr-agent-room-choice strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
#dayroom .dr-agent-room-choice small{color:var(--dr-muted);font-size:11px}
#dayroom .dr-agent-room-review{border:2px solid var(--dr-accent)}
#dayroom .dr-agent-room-review-flag{display:inline-block;margin-bottom:8px;padding:4px 7px;background:var(--dr-accent);color:var(--dr-accent-ink,#243c34);border-radius:6px;font-family:'Silkscreen',monospace;font-size:9px;text-transform:uppercase}
#dayroom .dr-agent-room-review h3{font-size:15px;font-weight:800;margin-bottom:4px}
#dayroom .dr-agent-room-review p{color:var(--dr-muted);font-size:12px}
#dayroom .dr-agent-room-review dl{display:grid;gap:10px;margin:14px 0}
#dayroom .dr-agent-room-review dl>div{display:grid;gap:4px}
#dayroom .dr-agent-room-review dt{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:var(--dr-muted)}
#dayroom .dr-agent-room-review dd{margin:0}
#dayroom .dr-agent-room-review pre{max-height:190px;margin:0;padding:10px;overflow:auto;background:var(--dr-sunken);border:1px solid var(--dr-line);border-radius:8px;color:var(--dr-ink);font:11px/1.45 ui-monospace,SFMono-Regular,monospace;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:900px){#dayroom .dr-agent-room-layout{grid-template-columns:1fr}#dayroom .dr-agent-room-controls{position:static}}
@media(max-width:600px){
 #dayroom .dr-hub-sidebar{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}
 #dayroom .dr-hub-sidebar>.dr-seg{flex:0 0 max-content;width:max-content}
 #dayroom .dr-agent-room-choices{grid-template-columns:1fr}
 #dayroom .dr-agent-room-stage{min-height:292px}
 #dayroom .dr-agent-room-roster{min-height:292px;padding:112px 24px 30px;gap:18px}
 #dayroom .dr-agent-lab-screen.is-left{left:22px}#dayroom .dr-agent-lab-screen.is-right{right:22px}
 #dayroom .dr-agent-lab-console{display:none}
 #dayroom .dr-agent-room-person{min-width:104px}
}

.dr-workforce-evidence { white-space:pre-wrap; overflow-wrap:anywhere; max-height:28rem; overflow:auto; border:1px solid var(--dr-line); border-radius:8px; padding:12px; background:var(--dr-bg); font-size:12px; line-height:1.6; }
.dr-workforce-check { display:flex; gap:10px; align-items:center; min-height:40px; }
.dr-workforce-check input { width:18px; height:18px; flex:none; }

/* Temporary Apps & connectors poster in the Agents hub. */
#dayroom .dr-apps-coming-soon { min-height:min(64vh,640px); display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:20px; padding:48px 24px; }
#dayroom .dr-apps-coming-art { width:88px; height:88px; padding:18px; color:var(--dr-accent); background:var(--dr-soft); border-radius:16px; }
#dayroom .dr-apps-coming-art svg { display:block; width:100%; height:100%; }
#dayroom .dr-apps-coming-label { font-size:12px; letter-spacing:.16em; color:var(--dr-muted); font-weight:700; }
#dayroom .dr-apps-coming-soon h2 { font-size:clamp(36px,5vw,64px); line-height:1.1; font-weight:750; letter-spacing:-.04em; }
#dayroom .dr-apps-coming-soon > p:last-child { color:var(--dr-muted); font-size:16px; max-width:32ch; }

/* Works shares the personal palette; team character comes from layout and shape. */
.dw-page{--dw-line:var(--dr-line);--dw-paper:var(--dr-panel);--dw-ink:var(--dr-ink)}
#dayroom #dr-work-page.dw-page .dr-page-body{padding:20px;gap:18px}
#dayroom .dw-toolbar{display:grid;grid-template-columns:minmax(170px,220px) auto minmax(170px,1fr) auto auto;align-items:end;gap:14px;margin:0}
#dayroom .dw-toolbar .dr-field{margin:0;min-width:0;display:flex;flex-direction:column;gap:8px}
#dayroom .dw-toolbar :is(select,input[type=search]){height:42px;min-height:42px;margin:0;padding-block:0;box-sizing:border-box}
#dayroom .dw-view-field{display:flex;flex-direction:column;gap:8px;min-width:0}
#dayroom .dw-control-label{font-size:12px;font-weight:600;line-height:18px}
#dayroom .dw-toolbar .dr-field{font-size:12px;line-height:18px}
#dayroom .dw-view-field [role=tablist],#dayroom .dw-view-field .dr-seg{height:42px;min-height:42px;box-sizing:border-box;margin:0;padding:3px;display:flex;align-items:stretch}
#dayroom .dw-view-field button{height:34px;min-height:34px;margin:0;padding:0 12px;box-sizing:border-box}
.dw-check{display:flex;gap:6px;align-items:center;font-size:12px;height:42px;white-space:nowrap}.dw-check input{width:16px;height:16px;margin:0;accent-color:var(--dr-accent)}
.dw-team-header{display:flex;align-items:center;gap:18px;border:1px solid var(--dw-line);border-radius:12px;padding:22px 24px;background:color-mix(in srgb,var(--dr-accent) 7%,var(--dw-paper));min-width:0}
.dw-team-mark{width:54px;height:54px;display:grid;place-items:center;background:var(--dr-accent);color:var(--dr-accent-ink,#172017);flex:none;border-radius:8px}.dw-team-mark svg{width:30px;height:30px}.dw-team-intro{min-width:0;flex:1}.dw-eyebrow{font-size:10px;letter-spacing:.1em;text-transform:uppercase;font-weight:650;opacity:.8}
#dayroom .dw-team-intro h2{font-size:22px;line-height:1.25;margin:5px 0 6px;overflow-wrap:anywhere}#dayroom .dw-team-intro p{font-size:12px;opacity:.8;margin:0}
.dw-team-stats{display:flex;gap:28px}.dw-team-stats>div{display:flex;flex-direction:column;gap:4px;min-width:55px}.dw-team-stats strong{font-size:24px;line-height:1.1;font-weight:600;font-variant-numeric:tabular-nums}.dw-team-stats span{font-size:11px;opacity:.8}
.dw-project-line{display:flex;justify-content:space-between;gap:12px;font-size:11px;opacity:.8}.dw-project-line>span:first-child::first-letter{text-transform:uppercase}
.dw-board{display:flex;align-items:stretch;gap:14px;overflow-x:auto;padding:2px 2px 18px;min-height:350px}.dw-column{flex:1 0 210px;min-width:0;max-width:440px;border:1px solid var(--dw-line);border-radius:12px;background:color-mix(in srgb,var(--dw-ink) 3%,var(--dw-paper));padding:12px;display:flex;flex-direction:column;gap:14px}.dw-column header{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:11px;min-height:30px}.dw-column h3{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600}.dw-stage-index{font-size:10px;font-variant-numeric:tabular-nums;color:var(--dr-muted)}.dw-count{border:1px solid var(--dw-line);border-radius:5px;min-width:23px;text-align:center;padding:3px}.dw-cards{display:flex;flex-direction:column;gap:12px;flex:1}.dw-column-empty{padding:30px 8px;text-align:center;color:var(--dr-muted);font-size:11px}.dw-column-empty svg{width:24px;height:24px;margin-bottom:10px;opacity:.6}
.dw-task{position:relative;display:flex;flex-direction:column;text-align:left;gap:10px;padding:14px;width:100%;min-height:150px;border:1px solid var(--dw-line);border-radius:9px;background:var(--dw-paper);color:inherit;font:inherit;cursor:pointer;box-shadow:0 3px 0 color-mix(in srgb,var(--dw-ink) 5%,transparent)}.dw-task:hover{border-color:var(--dr-accent);box-shadow:0 3px 0 color-mix(in srgb,var(--dr-accent) 28%,transparent)}.dw-task:focus-visible,.dw-day-number:focus-visible{outline:2px solid var(--dr-accent);outline-offset:3px}.dw-task-top{display:flex;align-items:center;justify-content:space-between;gap:6px}.dw-card-mark{opacity:.55;display:flex}.dw-card-mark svg{width:14px;height:14px}.dw-priority{font-size:9px;text-transform:uppercase;letter-spacing:.07em;opacity:.75}.dw-task-title{font-size:13px;line-height:1.45;font-weight:600;overflow-wrap:anywhere}.dw-task-excerpt{font-size:11px;line-height:1.5;opacity:.7;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.dw-task-bottom{display:flex;justify-content:space-between;align-items:flex-end;gap:6px;margin-top:auto;padding-top:4px;min-width:0}.dw-task-info{display:flex;flex-direction:column;gap:5px;min-width:0;padding-bottom:4px}.dw-task-date{font-size:10px;line-height:1.4}.dw-task-owner{font-size:10px;line-height:1.4;opacity:.65;overflow-wrap:anywhere}.dw-task-date.is-overdue{color:var(--dr-error-text)}.dw-people{display:flex;align-items:flex-end;justify-content:flex-end;flex:none;max-width:72px}.dw-person{width:20px;height:28px;image-rendering:pixelated;display:block;flex:none}.dw-person+.dw-person{margin-left:-3px}.dw-more{font-size:10px;align-self:center;padding:2px}.dw-former{padding:10px;font-size:14px}.dw-hint{font-size:11px}
/* Product uses a landscape; its task preview retains the project accent. */
.dw-page[data-team=product] .dw-team-header{border-left:5px solid var(--dr-accent)}.dw-page[data-team=product] .dw-task{border-left:3px solid var(--dr-accent)}
/* Engineering: a compact, squared workbench with terminal-style stage bars. */
.dw-page[data-team=engineering] .dw-team-header{border-radius:3px;border-top:3px solid var(--dr-accent)}.dw-page[data-team=engineering] .dw-team-mark{border-radius:2px}.dw-page[data-team=engineering] .dw-column{border-radius:3px;padding:0 10px 10px;gap:10px}.dw-page[data-team=engineering] .dw-column header{margin:0 -10px;padding:10px;background:color-mix(in srgb,var(--dr-accent) 9%,var(--dw-paper));border-bottom:1px solid var(--dw-line)}.dw-page[data-team=engineering] .dw-stage-index::before{content:'>'}.dw-page[data-team=engineering] .dw-task{border-radius:3px;box-shadow:3px 3px 0 color-mix(in srgb,var(--dw-ink) 9%,transparent)}.dw-page[data-team=engineering] .dw-card-mark{opacity:1;color:var(--dr-ink)}
/* Marketing: a campaign pinboard, with tabbed lanes and stacked brief cards. */
.dw-page[data-team=marketing] .dw-team-header{border-radius:2px 18px 18px 2px;border-left:6px solid var(--dr-accent)}.dw-page[data-team=marketing] .dw-column{border:0;border-radius:0;background:transparent;padding:0 3px}.dw-page[data-team=marketing] .dw-column header{padding:10px 12px;background:color-mix(in srgb,var(--dr-accent) 15%,var(--dw-paper));border:1px solid var(--dw-line);border-radius:10px 10px 0 0}.dw-page[data-team=marketing] .dw-task{border-radius:2px 2px 12px 2px;border-top:4px solid var(--dr-accent);box-shadow:3px 3px 0 var(--dw-paper),4px 4px 0 var(--dw-line)}.dw-page[data-team=marketing] .dw-task-title{font-size:14px}.dw-page[data-team=marketing] .dw-stage-index{display:none}
/* HR: soft people cards and roomy, welcoming step columns. */
.dw-page[data-team=hr] .dw-team-header{border-radius:24px}.dw-page[data-team=hr] .dw-team-mark{border-radius:50%}.dw-page[data-team=hr] .dw-column{border-radius:22px;border-style:dashed;padding:16px}.dw-page[data-team=hr] .dw-task{border-radius:18px;box-shadow:none}.dw-page[data-team=hr] .dw-stage-index{background:color-mix(in srgb,var(--dr-accent) 20%,var(--dw-paper));opacity:1;padding:7px;border-radius:50%}.dw-page[data-team=hr] .dw-task-bottom{border-top:1px solid var(--dw-line);padding-top:8px}
/* Operations: horizontal dispatch queues, rather than another column board. */
.dw-page[data-team=operations] .dw-team-header{border-radius:4px;background:var(--dw-paper);border-bottom:4px solid var(--dr-accent)}.dw-page[data-team=operations] .dw-board{display:flex;flex-direction:column;overflow:visible;min-height:0}.dw-page[data-team=operations] .dw-column{display:grid;grid-template-columns:150px minmax(0,1fr) 104px;align-items:center;max-width:none;flex:auto;border-radius:4px;gap:14px;padding:14px}.dw-page[data-team=operations] .dw-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px}.dw-page[data-team=operations] .dw-column-empty{padding:15px;text-align:left}.dw-page[data-team=operations] .dw-column-empty>span{display:none}.dw-page[data-team=operations] .dw-board .dw-task{min-height:120px;border-radius:3px;border-left:3px solid var(--dr-accent);box-shadow:none}.dw-page[data-team=operations] .dw-stage-index{display:none}
/* Native top-layer dialogs keep the board in place and trap keyboard focus. */
#dayroom .dw-dialog{color:var(--dr-ink);background:var(--dr-panel);border:1px solid var(--dr-line);border-radius:18px;width:min(640px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 40px);padding:0;margin:auto;box-shadow:0 24px 90px #0006;overflow:auto;overscroll-behavior:contain}
.dw-dialog::backdrop{background:rgb(8 14 11 / .48);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}
#dayroom .dw-editor{border:0;background:transparent;box-shadow:none;padding:26px;margin:0;border-radius:0}.dw-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:22px}.dw-dialog-heading h2{font-size:21px;line-height:1.3;margin:5px 0 0}.dw-dialog-heading>button{font-size:22px;width:36px;min-height:36px;padding:0;flex:none}.dw-dialog-heading .dw-eyebrow{display:block;max-width:460px;overflow-wrap:anywhere}.dw-editor>fieldset{border:0;padding:0;margin:0;min-width:0}.dw-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.dw-fields .dr-field{margin:0;min-width:0}.dw-fields input,.dw-fields select,.dw-fields textarea{width:100%;box-sizing:border-box}.dw-wide{grid-column:1/-1}.dw-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.dw-editor .dw-assignees{border:0;padding:0;margin:0;min-width:0}.dw-assignees legend{font-size:12px;font-weight:600;margin-bottom:9px}.dw-member-options{display:flex;flex-wrap:wrap;gap:8px;max-height:150px;overflow:auto;padding:2px}.dw-member-choice{display:flex;align-items:center;gap:7px;border:1px solid var(--dr-line);border-radius:7px;padding:8px 10px;font-size:12px;cursor:pointer}.dw-member-choice:has(:checked){background:color-mix(in srgb,var(--dr-accent) 14%,var(--dr-panel));border-color:var(--dr-accent)}.dw-member-choice input{width:14px;height:14px;margin:0;accent-color:var(--dr-accent)}.dw-assignees>.dr-hint{display:block;font-size:11px;margin-top:7px}
.dw-activity{border-top:1px solid var(--dr-line);margin-top:24px;padding-top:20px}.dw-activity h3{font-size:13px;margin:0 0 18px}.dw-history{list-style:none;margin:0;padding:0;font-size:12px;max-height:240px;overflow:auto}.dw-history li{position:relative;display:flex;gap:14px;padding:0 0 20px 3px}.dw-history li:before{content:'';position:absolute;left:7px;top:10px;bottom:0;width:1px;background:var(--dr-line)}.dw-history li:last-child:before{display:none}.dw-event-dot{position:relative;z-index:1;width:9px;height:9px;margin-top:4px;background:var(--dr-accent);border:1px solid var(--dr-line);flex:none}.dw-event-actor{font-weight:600}.dw-history p{margin:4px 0;font-size:12px}.dw-history time{display:block;font-size:10px;opacity:.65;margin-top:6px}.dw-page [disabled]{cursor:default}
.dw-month-bar{display:flex;align-items:center;gap:10px;margin-bottom:12px;flex-wrap:wrap}.dw-month-bar h3{flex:1;font-size:16px}.dw-calendar-scroll{overflow-x:auto}.dw-week,.dw-calendar{display:grid;grid-template-columns:repeat(7,minmax(140px,1fr));min-width:980px}.dw-week span{padding:10px;font-size:12px}.dw-calendar{border-left:1px solid var(--dw-line);border-top:1px solid var(--dw-line)}.dw-day{padding:8px;min-height:120px;border-right:1px solid var(--dw-line);border-bottom:1px solid var(--dw-line)}.dw-day.is-outside{opacity:.3}.dw-day.is-today{background:color-mix(in srgb,var(--dr-accent) 9%,transparent)}.dw-day-number{border:0;background:transparent;color:inherit;font:inherit;font-size:12px;cursor:pointer;padding:4px 6px;margin-bottom:8px}.dw-day .dw-task{padding:8px;margin-bottom:8px;gap:6px;min-height:0}.dw-day .dw-task-title{font-size:11px}.dw-day .dw-task-date,.dw-day .dw-task-excerpt,.dw-day .dw-task-top{display:none}.dw-day .dw-person{width:20px;height:28px}.dw-day .dw-person+.dw-person{margin-left:-3px}.dw-day .dw-people{max-width:64px}.dw-undated{display:grid;gap:20px;margin:0 0 24px;padding:20px;border:1px solid var(--dw-line);border-radius:12px;background:color-mix(in srgb,var(--dr-accent) 4%,var(--dw-paper))}#dayroom .dw-undated h3{font-size:14px;line-height:20px;margin:0}.dw-unscheduled{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr));gap:20px;align-items:stretch}.dw-unscheduled .dw-task{height:100%;min-height:168px;padding:18px;gap:12px}.dw-unscheduled .dw-task-date{display:none}#dayroom .dw-page .dw-hint{padding:12px 0 16px}
@media(max-width:1150px){#dayroom .dw-toolbar{grid-template-columns:minmax(150px,1fr) auto minmax(160px,1.5fr)}.dw-check{height:28px}.dw-team-stats{gap:16px}.dw-page[data-team=operations] .dw-column{grid-template-columns:120px minmax(0,1fr)}.dw-page[data-team=operations] .dw-column>.dr-button{grid-column:2;justify-self:start}}
@media(max-width:700px){#dayroom .dw-toolbar{grid-template-columns:minmax(0,1fr) auto;gap:12px}#dayroom .dw-search{grid-column:1/-1}.dw-team-header{padding:16px;gap:12px;flex-wrap:wrap}.dw-team-mark{width:42px;height:42px}.dw-team-mark svg{width:24px;height:24px}#dayroom .dw-team-intro h2{font-size:18px}.dw-team-stats{width:100%;padding-top:12px;border-top:1px solid var(--dw-line);gap:28px}.dw-team-stats>div{flex-direction:row;align-items:baseline;gap:8px}.dw-team-stats strong{font-size:18px}.dw-column{flex-basis:235px}.dw-project-line{flex-wrap:wrap}.dw-fields{grid-template-columns:1fr}#dayroom .dw-editor{padding:20px}.dw-dialog-heading .dw-eyebrow{max-width:230px}#dayroom #dr-work-page.dw-page .dr-page-body{padding:14px;gap:16px}.dw-month-bar h3{order:-1;flex-basis:100%}.dw-page[data-team=operations] .dw-column{display:flex;align-items:stretch}.dw-page[data-team=operations] .dw-cards{display:flex}.dw-page[data-team=operations] .dw-column>.dr-button{align-self:flex-start}.dw-page[data-team=operations] .dw-column header{justify-content:flex-start}}
#dayroom .dw-dialog-heading h2{font-size:21px;font-weight:600;margin:5px 0 0}
#dayroom .dw-fields{grid-template-columns:repeat(6,minmax(0,1fr));gap:16px}
/* Helper text must not stretch neighbouring label rows and offset their controls. */
#dayroom .dw-fields .dr-field{grid-column:span 3;margin:0;gap:7px;align-content:start}
#dayroom .dw-fields .dw-property{grid-column:span 2}
#dayroom .dw-property :is(input,select){height:40px;min-height:40px;margin:0}
#dayroom .dw-fields .dw-wide{grid-column:1/-1}
#dayroom .dw-activity h3{font-size:13px;font-weight:600;margin:0 0 18px}
#dayroom .dw-history{margin:0;padding:0}
#dayroom .dw-history p{margin:4px 0}
@media(max-width:500px){#dayroom .dw-fields{grid-template-columns:repeat(2,minmax(0,1fr))}#dayroom .dw-fields .dr-field{grid-column:1/-1}#dayroom .dw-fields .dw-property{grid-column:span 1}}
/* A date control's intrinsic width (with its picker icon) must not push past its half of the grid. */
#dayroom .dw-fields :is(input,select,textarea){min-width:0}
#dayroom .dw-fields input[type=date]{padding-inline:10px 8px}
.dw-task-actions #dw-archive{margin-left:auto}
@media(min-width:701px){
 .dw-page[data-team=operations] .dw-cards{display:flex;flex-direction:column}
 .dw-page[data-team=operations] .dw-board .dw-task{display:grid;grid-template-columns:minmax(130px,1fr) minmax(110px,1fr) 170px;align-items:center;min-height:84px;padding:10px 14px}
 .dw-page[data-team=operations] .dw-board .dw-task-top{display:none}
 .dw-page[data-team=operations] .dw-board .dw-task-bottom{margin:0;padding:0;align-self:stretch}
 .dw-page[data-team=operations] .dw-board .dw-task:not(:has(.dw-task-excerpt)) .dw-task-bottom{grid-column:3}
 .dw-page[data-team=operations] .dw-column-empty{padding:10px}
}
@media(min-width:701px) and (max-width:1000px){.dw-page[data-team=operations] .dw-board .dw-task{grid-template-columns:minmax(100px,1fr) 130px}.dw-page[data-team=operations] .dw-board .dw-task-excerpt{display:none}.dw-page[data-team=operations] .dw-board .dw-task:not(:has(.dw-task-excerpt)) .dw-task-bottom{grid-column:2}}
/* Product's game-like landscape. Task stops remain ordinary accessible buttons. */
.dw-roadmap{border:1px solid var(--dw-line);border-radius:14px;overflow:hidden;background:var(--dw-paper)}
.dw-map-bar{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:14px 18px;border-bottom:1px solid var(--dw-line)}
.dw-map-bar>div{display:flex;flex-direction:column;gap:4px}.dw-map-bar strong{font-size:13px}.dw-map-bar span{font-size:11px;opacity:.8}
.dw-map-key{display:flex;gap:7px;align-items:center;white-space:nowrap}.dw-map-key i{width:8px;height:8px;background:var(--dr-accent);display:inline-block;border:1px solid var(--dw-ink);border-radius:50%}.dw-map-key .is-open{background:var(--dw-paper);margin-left:10px}
.dw-map-layout{display:grid;grid-template-columns:minmax(0,1fr) 235px;align-items:start}
.dw-map-viewport{height:510px;overflow:auto;overscroll-behavior:contain;background:#c6d2b4;scrollbar-color:#74876c #c6d2b4}
.dw-map-viewport:focus-visible{outline:2px solid var(--dr-accent);outline-offset:-3px}
.dw-map-world{position:relative;min-width:280px;isolation:isolate}
.dw-map-art{position:absolute;inset:0;width:100%;image-rendering:pixelated;pointer-events:none}
.dw-map-stop{position:absolute;transform:translate(-50%,-36px);width:166px;padding:0;border:0;background:none;color:#263b30;font:inherit;display:flex;flex-direction:column;align-items:center;gap:7px;cursor:pointer;z-index:2}
.dw-stop-stage{font-size:10px;line-height:1;font-weight:650;padding:4px 8px;background:#edf1e4;border:1px solid #a5b597;border-radius:4px;max-width:160px}
.dw-stop-token{display:grid;place-items:center;width:52px;height:48px;box-sizing:border-box;background:#fff4d8;border:3px solid #667c55;border-radius:50%;box-shadow:0 5px 0 #859967,0 7px 0 #a6b38e;color:#30452e;font-size:17px;font-weight:700;font-variant-numeric:tabular-nums}
.dw-stop-name{font-size:11px;font-weight:600;line-height:1.4;max-width:160px;padding:5px 8px;border-radius:5px;background:#f3f2e6;color:#263b30;border:1px solid #adbb9d;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.dw-map-stop.is-done .dw-stop-token{background:#456a4c;color:#fff6df;border-color:#2d5135;box-shadow:0 5px 0 #304e34,0 7px 0 #a6b38e}
.dw-map-stop.is-empty .dw-stop-token{background:#dfe7cd;border-style:dashed;color:#52674b;font-weight:400;font-size:23px}
.dw-map-stop[aria-pressed=true] .dw-stop-token{outline:3px solid #fff9e9;outline-offset:4px}
.dw-map-stop:hover .dw-stop-name,.dw-map-stop[aria-pressed=true] .dw-stop-name{border-color:#456a4c;background:#fff9e9}
.dw-map-stop:focus-visible{outline:2px solid #263b30;outline-offset:6px;border-radius:8px}
.dw-map-traveller{position:absolute;left:0;top:0;width:20px;height:28px;image-rendering:pixelated;pointer-events:none;z-index:3}
.dw-map-inspector{padding:20px 16px;display:flex;flex-direction:column;gap:14px;position:sticky;top:0;min-width:0}
#dayroom .dw-map-inspector h3{margin:0 0 14px;font-size:16px;font-weight:600}.dw-map-inspector .dw-task{min-height:160px;border-radius:9px}.dw-map-inspector .dw-task-excerpt{-webkit-line-clamp:5}.dw-map-note,.dw-map-empty{font-size:11px;line-height:1.6;opacity:.75}.dw-map-empty{margin-bottom:12px}.dw-map-pages{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;border-top:1px solid var(--dw-line);font-size:11px}
@media(max-width:1100px){.dw-map-layout{grid-template-columns:minmax(0,1fr) 205px}.dw-map-stop{width:145px}.dw-stop-name{max-width:140px}}
@media(max-width:850px){.dw-map-layout{grid-template-columns:1fr}.dw-map-viewport{height:470px}.dw-map-inspector{position:static;display:grid;grid-template-columns:1fr;gap:10px;border-top:1px solid var(--dw-line)}.dw-map-inspector .dw-task{min-height:0}.dw-map-note{display:none}.dw-map-bar{padding:12px}.dw-map-bar>div{max-width:220px}.dw-map-key{font-size:10px}.dw-map-pages{padding:12px;flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.dw-map-traveller{will-change:auto}}
#dayroom .dw-stop-stage{color:#263b30;position:absolute;top:-28px;left:50%;transform:translateX(-50%);white-space:nowrap}
.dw-map-stop{transform:translate(-50%,-24px)}
.dw-map-key i{background:#456a4c;border-color:#667c55}.dw-map-key .is-open{background:#fff4d8}
.dw-page[data-team=product] .dw-team-header{padding:14px 20px}.dw-page[data-team=product] .dw-team-mark{width:42px;height:42px}.dw-page[data-team=product] .dw-team-mark svg{width:24px;height:24px}
.dw-map-viewport{height:470px}
.dw-map-open{font-size:11px;font-weight:600;padding-top:8px;border-top:1px solid var(--dw-line);margin-top:4px}
/* Quiet pixel motion: each priority stays identifiable when animation is paused. */
.dw-priority{display:inline-flex;align-items:center;gap:5px;opacity:1;white-space:nowrap;font-size:9px;letter-spacing:.04em;color:var(--dw-ink);line-height:18px}
.dw-priority svg{display:block;width:18px;height:18px;flex:none;overflow:visible}
.dw-priority[data-priority=low] .dw-priority-glyph{animation:dw-low 3.2s steps(3,end) infinite}
.dw-priority[data-priority=normal] path{animation:dw-normal 2.4s steps(2,end) infinite}
.dw-priority[data-priority=normal] .dw-signal-two{animation-delay:-1.6s}.dw-priority[data-priority=normal] .dw-signal-three{animation-delay:-.8s}
.dw-priority[data-priority=high] .dw-priority-glyph{animation:dw-high 1.8s steps(3,end) infinite}
.dw-priority[data-priority=urgent] .dw-priority-glyph{animation:dw-urgent 1.4s steps(2,end) infinite}
@keyframes dw-low{0%,100%{transform:translateY(-1px)}50%{transform:translateY(2px)}}
@keyframes dw-normal{0%,65%,100%{transform:translateY(0)}25%{transform:translateY(-2px)}}
@keyframes dw-high{0%,75%,100%{transform:translateY(1px)}40%{transform:translateY(-2px)}}
@keyframes dw-urgent{0%,70%,100%{transform:translateX(0)}25%{transform:translateX(2px)}45%{transform:translateX(-1px)}}
.dw-project-line{align-items:center}.dw-project-tools{display:flex;align-items:center;gap:16px}
.dw-team-scene{position:relative;flex:0 0 320px;width:320px;height:104px;max-width:100%;overflow:hidden;border-radius:5px;background:#c6d2b4;box-shadow:0 2px 0 color-mix(in srgb,var(--dw-ink) 12%,transparent)}
.dw-team-scene canvas,.dw-team-scene>svg{position:absolute;left:50%;top:0;transform:translateX(-50%);width:320px;height:104px;image-rendering:pixelated}
.dw-desk-note{animation:dw-desk-note 5s steps(5,end) infinite}.dw-desk-steam{animation:dw-steam 4s steps(4,end) infinite}
.dw-circuit-packet{animation:dw-circuit 5s steps(20,end) infinite}.dw-code-lines{animation:dw-code 5s steps(3,end) infinite;transform-origin:45px 28px}
.dw-print-sheet{animation:dw-print 5s steps(8,end) infinite}.dw-studio-pencil{animation:dw-pencil 5s steps(4,end) infinite}
.dw-garden-can{animation:dw-watering 6s steps(6,end) infinite}.dw-garden-water{animation:dw-water 3s steps(5,end) infinite}.dw-garden-leaves{animation:dw-leaves 6s steps(3,end) infinite}
.dw-dispatch-parcel{animation:dw-dispatch 6s steps(48,end) infinite}.dw-dispatch-scanner{animation:dw-scan 6s steps(4,end) infinite}
@keyframes dw-desk-note{0%,100%{transform:translateY(0)}35%,70%{transform:translateY(-5px)}}
@keyframes dw-steam{0%,100%{transform:translateY(0);opacity:.6}70%{transform:translateY(-5px);opacity:1}}
@keyframes dw-circuit{0%,10%{transform:translate(0,0)}30%{transform:translate(45px,0)}40%{transform:translate(45px,14px)}60%{transform:translate(99px,14px)}75%{transform:translate(99px,-9px)}90%,100%{transform:translate(141px,-9px)}}
@keyframes dw-code{0%,100%{transform:scaleX(.5)}35%,80%{transform:scaleX(1)}}
@keyframes dw-print{0%,100%{transform:translateY(0)}55%,80%{transform:translateY(15px)}}
@keyframes dw-pencil{0%,60%,100%{transform:translate(0,0)}30%{transform:translate(-6px,3px)}45%{transform:translate(-2px,0)}}
@keyframes dw-watering{0%,100%{transform:translateX(0)}35%,65%{transform:translateX(6px)}}
@keyframes dw-water{0%,100%{transform:translateY(0);opacity:.55}60%{transform:translateY(5px);opacity:1}}
@keyframes dw-leaves{0%,100%{transform:translateY(1px)}50%{transform:translateY(-2px)}}
@keyframes dw-dispatch{0%,8%{transform:translateX(0);opacity:0}12%{opacity:1}80%{transform:translateX(184px);opacity:1}90%,100%{transform:translateX(184px);opacity:0}}
@keyframes dw-scan{0%,100%{transform:translateY(0)}40%,60%{transform:translateY(5px)}}
.dw-page[data-motion=paused] :is(.dw-priority-glyph,.dw-priority path,.dw-team-scene g){animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){.dw-priority-glyph,.dw-priority path,.dw-team-scene g{animation:none!important}}
@media(max-width:1250px){.dw-team-scene{flex-basis:240px;width:240px}.dw-team-header{gap:14px}.dw-team-stats{gap:16px}}
@media(max-width:1000px){.dw-team-header:has(.dw-team-scene){flex-wrap:wrap}.dw-team-scene{order:4;flex-basis:100%;width:100%;margin-top:4px}.dw-team-scene canvas,.dw-team-scene>svg{width:320px}.dw-team-intro{flex-basis:calc(100% - 80px)}.dw-team-stats{margin-left:68px}.dw-team-header:has(.dw-team-scene) .dw-team-stats{margin-left:0}}
@media(max-width:700px){.dw-team-scene{order:3}.dw-team-stats{order:4;margin:0}.dw-project-tools{gap:10px;flex-wrap:wrap}}
/* Calendar pins are separate buttons, never nested inside the task editor button. */
.dw-pin-mark{font-size:13px}.dw-calendar-item{position:relative;min-width:0}
.dw-calendar-item.is-pinned .dw-task{border-color:color-mix(in srgb,var(--dr-accent) 65%,var(--dw-ink));background:color-mix(in srgb,var(--dr-accent) 8%,var(--dw-paper))}
.dw-pin-toggle{position:absolute;top:5px;right:5px;display:grid;place-items:center;width:28px;height:28px;padding:3px;border:1px solid transparent;border-radius:4px;background:transparent;color:var(--dw-ink);cursor:pointer;font-size:14px}
.dw-pin-toggle svg{width:16px;height:16px}.dw-pin-toggle:hover{background:var(--dw-paper);border-color:var(--dw-line)}.dw-pin-toggle:focus-visible{outline:2px solid var(--dr-accent);outline-offset:2px}.dw-pin-toggle[aria-pressed=true]{background:var(--dw-paper);border-color:var(--dw-line)}
.dw-calendar-item:has(.dw-pin-toggle) .dw-task-top{padding-right:28px}.dw-calendar-item:has(.dw-pin-toggle) .dw-card-mark,.dw-calendar-item:has(.dw-pin-toggle) .dw-pin-mark{display:none}
.dw-day .dw-task-top{display:flex;min-height:23px}.dw-day .dw-card-mark{display:none}.dw-day .dw-priority{font-size:8px;gap:3px}.dw-day .dw-priority svg{width:16px;height:16px}
.dw-pin-field{display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid var(--dw-line);border-radius:8px;font-size:12px;cursor:pointer}
#dayroom .dw-pin-field input{width:16px;height:16px;flex:none;margin:2px 0 0;accent-color:var(--dr-accent)}.dw-pin-field small{display:block;font-size:10px;opacity:.75;margin-top:5px;font-weight:400}.dw-pin-field:has(:checked){background:color-mix(in srgb,var(--dr-accent) 9%,var(--dw-paper))}
#dw-priority-preview{margin-top:2px}
.dw-map-stop .dw-priority{background:#f3f2e6;color:#263b30;border:1px solid #adbb9d;padding:1px 6px;border-radius:4px;font-size:8px}
.dw-map-stop .dw-priority svg{width:14px;height:14px}.dw-stop-token{position:relative}.dw-stop-done{position:absolute;bottom:-3px;right:-3px;background:#456a4c;color:#fff6df;border:2px solid #fff6df;border-radius:50%;font-size:11px;width:18px;height:18px;display:grid;place-items:center}
@media(min-width:701px){.dw-page[data-team=operations] .dw-board .dw-task{grid-template-columns:72px minmax(100px,1fr) minmax(100px,1fr) 150px}.dw-page[data-team=operations] .dw-board .dw-task-top{display:flex}.dw-page[data-team=operations] .dw-board .dw-card-mark{display:none}.dw-page[data-team=operations] .dw-board .dw-task:not(:has(.dw-task-excerpt)) .dw-task-bottom{grid-column:4}}
@media(min-width:701px) and (max-width:1150px){.dw-page[data-team=operations] .dw-board .dw-task{grid-template-columns:64px minmax(100px,1fr) 130px}.dw-page[data-team=operations] .dw-board .dw-task-excerpt{display:none}.dw-page[data-team=operations] .dw-board .dw-task-bottom,.dw-page[data-team=operations] .dw-board .dw-task:not(:has(.dw-task-excerpt)) .dw-task-bottom{grid-column:3}}
/* The global pressed-button transform must not move a map stop out from under the pointer. */
#dayroom .dw-map-stop:active:not(:disabled,[aria-disabled=true]){transform:translate(-50%,-24px)}

/* Keep undated work before the calendar, with a persistent way back to it. */
.dw-month-bar{position:sticky;top:0;z-index:4;background:var(--dw-paper);padding:12px 0;margin:0 0 16px;border-bottom:1px solid var(--dw-line)}
.dw-unscheduled-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
#dayroom .dw-unscheduled-heading p{font-size:11px;opacity:.75;margin:0}
#dw-unscheduled-heading{scroll-margin-top:84px}#dw-unscheduled-heading:focus-visible{outline:2px solid var(--dr-accent);outline-offset:5px;border-radius:2px}
.dw-unscheduled{max-height:230px;overflow:auto;padding:3px 4px 6px;scrollbar-gutter:stable}
.dw-unscheduled:focus-visible{outline:2px solid var(--dr-accent);outline-offset:3px}
.dw-unscheduled .dw-task{min-height:144px;padding:14px}
#dayroom #dw-unscheduled-jump{background:color-mix(in srgb,var(--dr-accent) 12%,var(--dw-paper));border-color:color-mix(in srgb,var(--dr-accent) 50%,var(--dw-line))}
@media(max-width:700px){.dw-month-bar{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:8px;align-items:center}.dw-month-bar h3{grid-column:1/3;grid-row:1}.dw-month-bar #dw-unscheduled-jump{grid-column:3;grid-row:1}.dw-month-bar #dw-prev{grid-column:1;grid-row:2}.dw-month-bar #dw-today{grid-column:2;grid-row:2}.dw-month-bar #dw-next{grid-column:3;grid-row:2}#dayroom .dw-month-bar .dr-button{font-size:11px;padding:8px;min-width:0}#dw-unscheduled-heading{scroll-margin-top:150px}.dw-undated{padding:16px}.dw-unscheduled{grid-template-columns:1fr;max-height:380px}}

/* A quiet, readable conversation beside the project's board and calendar. */
.dw-chat{max-width:900px;margin:0 auto;padding:16px;border:1px solid var(--dr-line);border-radius:12px;background:var(--dr-panel)}
.dw-chat h3{margin:0}.dw-chat-messages{max-height:48vh;min-height:120px;overflow:auto;overscroll-behavior:contain;margin:16px 0}
.dw-chat-message{display:flex;flex-direction:column;align-items:flex-start;margin:14px 0;min-width:0}
.dw-chat-message.is-own{align-items:flex-end}
.dw-chat-message header{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap;max-width:85%;font-size:12px;margin-bottom:5px}
.dw-chat-message.is-own header{justify-content:flex-end}.dw-chat-message time{font-size:12px;color:var(--dr-muted)}
#dayroom .dw-chat-message>p{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;line-height:1.5;padding:10px 14px;max-width:85%;min-width:0;border-radius:18px 18px 18px 5px;background:var(--dr-soft);color:var(--dr-ink)}
#dayroom .dw-chat-message.is-own>p{border-radius:18px 18px 5px 18px;background:var(--dr-accent);color:var(--dr-accent-ink,#172017)}
.dw-chat-form{display:flex;align-items:flex-end;gap:12px}.dw-chat-form .dr-field{flex:1;min-width:0}.dw-chat-form textarea{width:100%;resize:vertical;min-height:72px}
@media(max-width:600px){.dw-chat{padding:12px}.dw-chat-form{flex-direction:column;align-items:stretch}}

.dw-page[data-view=chat] .dw-search,.dw-page[data-view=chat] .dw-check{display:none!important}
.dw-page[data-view=chat] .dw-toolbar{grid-template-columns:minmax(170px,220px) auto;justify-content:start}
.dw-page[data-view=chat] .dw-project-tools{display:none}
@media(max-width:600px){.dw-page[data-view=chat] .dw-toolbar{grid-template-columns:1fr}.dw-chat-form textarea{box-sizing:border-box}}

/* Phones and small tablets: the map hands vertical scrolling on to the page at its ends; in phone landscape it stops
   being a nested scroller altogether (the JS-set world height becomes its height). Desktop keeps contain. */
@media (max-width:850px){#dayroom .dw-map-viewport{overscroll-behavior-y:auto}}
@media (max-width:850px) and (max-height:500px){#dayroom .dw-map-viewport{height:auto}}
/* The sticky month bar sits flush with the page body's top edge (the negative offset cancels its padding). */
#dayroom #dr-work-page.dw-page .dr-page-body{--dw-body-pad:20px}
@media(max-width:700px){#dayroom #dr-work-page.dw-page .dr-page-body{--dw-body-pad:14px}}
#dayroom .dw-month-bar{top:calc(-1*var(--dw-body-pad,0px))}
/* Up to 899px the 980px month grid becomes an agenda: one full-width section per day that has tasks, plus today,
   each named by its date. The weekday row is no longer needed, and nothing scrolls sideways. */
@media (max-width:899px){
 #dayroom .dw-calendar-scroll{overflow-x:visible}
 #dayroom .dw-week{display:none}
 #dayroom .dw-calendar{grid-template-columns:minmax(0,1fr);min-width:0;gap:10px;border:0}
 #dayroom .dw-calendar>.dw-day:is(.is-outside,:not(.is-today):not(:has(.dw-calendar-item))){display:none}
 #dayroom .dw-calendar:not(:has(.dw-calendar-item,.is-today))::after{content:'No dated tasks this month.';padding:8px 2px;color:var(--dr-muted);font-size:13px}
 #dayroom .dw-day{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 10px;min-height:0;padding:10px 12px;border:1px solid var(--dw-line);border-radius:10px;scroll-margin-top:72px}
 #dayroom .dw-day::before{content:attr(data-label);font-size:13px;font-weight:800;color:var(--dr-ink)}
 #dayroom .dw-day.is-today::before{content:attr(data-label) ' · Today'}
 #dayroom .dw-day-number{grid-column:2;grid-row:1;margin:0;width:44px;height:44px;margin:-8px -8px -8px 0;font-size:0;border-radius:10px}
 #dayroom .dw-day-number::before{content:'+';font-size:20px;line-height:1}
 #dayroom .dw-day-number:disabled{visibility:hidden}
 #dayroom .dw-day>.dw-calendar-item{grid-column:1/-1}
 #dayroom .dw-day .dw-task{margin:0}
 #dayroom .dw-day .dw-people{max-width:none}
}
/* One compact month bar on phones: icon arrows (their text stays as the accessible name), the month, Unscheduled and Today. */
@media(max-width:700px){
 #dayroom .dw-month-bar{display:flex;flex-wrap:nowrap;gap:6px;padding:8px 0}
 #dayroom .dw-month-bar h3{order:0;flex:1 1 0;min-width:0;font-size:14px;line-height:1.15}
 #dayroom .dw-month-bar :is(#dw-prev,#dw-next){width:40px;min-width:40px;padding:0;font-size:0}
 #dayroom .dw-month-bar :is(#dw-prev,#dw-next)::before{content:'‹';font-size:20px;line-height:1}
 #dayroom .dw-month-bar #dw-next::before{content:'›'}
 #dayroom .dw-month-bar #dw-prev{order:-1}
 #dayroom .dw-month-bar #dw-next{order:3}
 #dw-unscheduled-heading{scroll-margin-top:72px}
}

.dw-chat-actions{display:flex;flex-direction:column;gap:8px;min-width:0}.dw-chat-actions input[type=file]{display:block;max-width:100%;font-size:12px}.dw-chat-files{display:flex;flex-wrap:wrap;gap:8px;max-width:100%;margin-top:8px}.dw-chat-files a{overflow-wrap:anywhere;white-space:normal}.dw-chat-photo{border:1px solid var(--dr-line);border-radius:12px;padding:0;background:var(--dr-soft);overflow:hidden;cursor:pointer}.dw-chat-photo img{display:block;max-width:min(240px,65vw);max-height:220px;object-fit:contain}.dw-photo-viewer{width:min(900px,94vw);max-height:90dvh;box-sizing:border-box;background:var(--dr-panel);color:var(--dr-ink);border:1px solid var(--dr-line);border-radius:16px;padding:16px}.dw-photo-viewer::backdrop{background:#000b}.dw-photo-viewer>img{display:block;max-width:100%;max-height:70dvh;object-fit:contain;margin:12px auto}.dw-photo-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.dw-photo-actions button,.dw-photo-actions a{min-height:44px;display:inline-flex;align-items:center}.dw-chat-message a{color:inherit;text-decoration:underline}

.dw-chat-form{flex-direction:column;align-items:stretch}.dw-chat-form .dr-field{width:100%}.dw-chat-form textarea{box-sizing:border-box}.dw-chat-actions [data-pending]{overflow-wrap:anywhere}

/* Project management keeps actions together and readable on small screens. */
#dayroom .dw-managed-list{display:grid;gap:14px;margin-top:20px}
#dayroom .dw-managed-project{padding:16px;border:1px solid var(--dr-line);border-radius:12px;min-width:0}
#dayroom .dw-managed-name{font-size:16px;line-height:1.4;margin:0 0 8px;overflow-wrap:anywhere}
#dayroom .dw-managed-project p{margin:0;overflow-wrap:anywhere}
#dayroom .dw-managed-project .dw-actions{margin-top:14px;gap:8px}
#dayroom .dw-managed-empty{padding:24px 0;text-align:center}
#dayroom #dw-delete-name,#dayroom #dw-manager-filter{width:100%;box-sizing:border-box}

/* Personal task updates remain readable in every workspace palette. */
#dayroom .dw-updates{margin:0 0 20px;padding:16px;background:var(--dr-panel);color:var(--dr-ink)}
#dayroom .dw-updates-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
#dayroom .dw-updates-heading h2{margin:0 0 10px;font-size:16px}
#dayroom .dw-update{display:flex;flex-direction:column;gap:5px;width:100%;text-align:left;background:transparent;color:var(--dr-muted);border:0;border-top:1px solid var(--dr-line);padding:12px 0;font:inherit;cursor:pointer;overflow-wrap:anywhere}
#dayroom .dw-update-title{color:var(--dr-ink);font-weight:600}
#dayroom .dw-update-dot{display:inline-block;width:8px;height:8px;background:var(--dr-accent);margin-right:8px}
#dayroom .dw-update:focus-visible{outline:2px solid var(--dr-accent);outline-offset:3px}
#dayroom .dw-page .dr-page-head{flex-wrap:wrap;align-items:flex-start;gap:16px}
#dayroom .dw-page .dr-page-titles{flex:1 1 280px;min-width:0}
#dayroom .dw-page .dr-page-actions{flex:1 1 500px;flex-wrap:wrap;justify-content:flex-start}

/* File and send controls belong inside the project message composer. */
#dayroom .dw-chat-composer{width:100%;min-width:0;border:1px solid var(--dr-field-line,var(--dr-line));border-radius:18px;padding:12px;background:var(--dr-panel);box-sizing:border-box}
#dayroom .dw-chat-composer:focus-within{border-color:var(--dr-accent);box-shadow:0 0 0 1px var(--dr-accent)}
#dayroom .dw-chat-composer textarea{display:block;min-height:72px;border:0;border-radius:0;padding:6px 4px;box-shadow:none;outline:none;background:transparent;color:var(--dr-ink);font:inherit;resize:vertical}
#dayroom .dw-chat-composer .dw-chat-actions{display:flex;flex-direction:row;align-items:center;gap:10px;margin-top:8px}
#dayroom .dw-chat-composer .dw-chat-actions input[hidden]{display:none}
#dayroom .dw-chat-attach,#dayroom .dw-chat-send{display:grid;place-items:center;width:40px;height:40px;min-width:40px;padding:8px;border-radius:12px}
#dayroom .dw-chat-attach{background:transparent;border-color:transparent;color:var(--dr-muted)}
#dayroom .dw-chat-send{margin-left:auto}
#dayroom .dw-chat-attach svg,#dayroom .dw-chat-send svg{width:22px;height:22px;shape-rendering:auto}
#dayroom .dw-chat-composer [data-pending]:empty{display:none}
#dayroom .dw-chat-composer [data-pending]>div{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 8px;margin:6px 0;background:var(--dr-soft);border-radius:8px;overflow-wrap:anywhere}
#dayroom .dw-chat-file-limit{font-size:12px}
@media(max-width:600px){#dayroom .dw-chat-file-limit{max-width:180px}}

/* Project membership controls share the existing compact Works dialog. */
#dayroom .dw-member-mode{display:flex;align-items:center;gap:8px;margin:10px 0}
#dayroom .dw-project-member-options{max-height:220px;margin-top:8px}
#dayroom .dw-member-mode:first-of-type{margin-top:12px}
#dayroom .dw-project-member-options+ .dr-hint{margin-top:10px}

#dayroom .dw-member-mode input[type="radio"]{appearance:none;flex:none;width:16px;height:16px;margin:0;border:1.5px solid var(--dr-muted);border-radius:50%;background:var(--dr-panel)}
#dayroom .dw-member-mode input[type="radio"]:checked{border-color:var(--dr-accent);box-shadow:inset 0 0 0 3px var(--dr-panel);background:var(--dr-accent)}
#dayroom .dw-member-mode input[type="radio"]:focus-visible{outline:2px solid var(--dr-accent);outline-offset:2px}

/* Completion stays visible at the task’s original stop. */
.dw-map-stop.is-done .dw-stop-name{background:#e3ead9;border-color:#456a4c;color:#263b30}
@media(max-width:480px){
 #dayroom .dw-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}
 #dayroom .dw-toolbar>.dr-field:first-child,#dayroom .dw-toolbar>.dw-view-field{grid-column:1/-1}
 #dayroom .dw-toolbar .dw-view-field button{flex:1}
 .dw-check{min-width:0;height:auto;min-height:28px;white-space:normal}
 .dw-check input{flex-shrink:0}
}

#dayroom .dw-management{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}

/* Task views share records and palette. Controls wrap before content loses room. */
#dayroom .dw-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:16px 20px}
#dayroom .dw-toolbar>.dr-field{flex:1 1 200px}
#dayroom .dw-toolbar>.dw-view-field{flex:1 0 100%;order:5}
#dayroom .dw-toolbar>.dw-sort{flex:0 1 150px}
#dayroom .dw-toolbar .dw-check{min-height:44px;height:auto;white-space:normal;gap:10px}
#dayroom .dw-view-field .dr-seg{height:auto;min-height:50px;flex-wrap:wrap;gap:6px;justify-content:flex-start;width:fit-content;max-width:100%}
#dayroom .dw-view-field button{min-height:44px;height:auto;flex:none;padding:10px 18px}
#dayroom .dw-toolbar :is(select,input[type=search]){height:44px;min-height:44px;max-width:100%}
#dayroom .dw-page .dr-page-actions{justify-content:flex-end;gap:12px}
#dayroom .dw-page .dr-button{min-height:44px}
#dayroom .dw-page[data-view=chat] .dw-sort{display:none}
#dayroom .dw-kanban{display:flex;align-items:stretch;gap:20px;overflow:auto;padding:4px 4px 20px;scrollbar-gutter:stable}
#dayroom .dw-kanban .dw-column{flex:1 0 260px;min-width:260px;max-width:380px;padding:16px;gap:18px;display:flex;flex-direction:column}
#dayroom .dw-kanban .dw-cards{display:flex;flex-direction:column;gap:16px}
#dayroom .dw-kanban .dw-column>header{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
#dayroom .dw-kanban .dw-task{padding:18px;min-height:156px}
#dayroom .dw-kanban .dw-task-title{font-size:14px;line-height:1.5}
#dayroom .dw-kanban .dw-task-excerpt{font-size:12px}
#dayroom .dw-task-list{display:grid;gap:28px}
#dayroom .dw-list-section{border:1px solid var(--dw-line);border-radius:12px;overflow:hidden;min-width:0}
#dayroom .dw-list-section>header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:16px 20px;background:var(--dr-soft)}
#dayroom .dw-list-section h3{margin:0;display:flex;align-items:center;gap:12px;font-size:15px}
#dayroom .dw-list-row,#dayroom .dw-list-labels{display:grid;grid-template-columns:minmax(220px,2fr) minmax(150px,1fr) minmax(120px,.8fr) minmax(90px,.6fr);gap:20px;padding:14px 20px;align-items:center}
#dayroom .dw-list-labels{color:var(--dr-muted);font-size:12px;border-bottom:1px solid var(--dw-line)}
#dayroom .dw-list-row{min-height:72px;border-bottom:1px solid var(--dw-line);font-size:13px;overflow-wrap:anywhere}
#dayroom .dw-list-row:last-child{border-bottom:0}
#dayroom .dw-list-title{display:flex;gap:12px;align-items:center;min-width:0}
#dayroom .dw-list-title button[data-task],#dayroom .dw-timeline-row>button{border:0;background:transparent;color:var(--dr-ink);font:inherit;text-align:left;min-height:44px;padding:8px 0;overflow-wrap:anywhere;cursor:pointer;flex:1;min-width:0}
#dayroom .dw-list-title button[data-task]{font-weight:600}
#dayroom .dw-list-title small,#dayroom .dw-timeline-row small{display:block;font-size:12px;color:var(--dr-muted);font-weight:400;margin-top:6px}
#dayroom .dw-completion{width:44px;height:44px;flex:none;border:1px solid var(--dr-line);border-radius:10px;background:var(--dr-panel);color:var(--dr-ink);font-size:22px;cursor:pointer}
#dayroom .dw-list-row.is-done .dw-completion{background:var(--dr-accent);color:var(--dr-accent-ink)}
#dayroom .dw-list-owner{display:flex;align-items:center;gap:8px;min-width:0}
#dayroom .dw-list-row .is-overdue{color:var(--dr-danger,#db776a);font-weight:600}
#dayroom .dw-list-empty{padding:20px;color:var(--dr-muted);margin:0}
#dayroom .dw-page [data-task]:focus-visible,#dayroom .dw-completion:focus-visible{outline:2px solid var(--dr-accent);outline-offset:3px;border-radius:5px}
#dayroom .dw-detail-tabs{margin:20px 0 24px}
#dayroom .dw-detail-tabs .dr-seg{display:flex;flex-wrap:wrap;gap:8px;height:auto}
#dayroom .dw-detail-tabs button{min-height:44px;padding:10px 16px}
#dayroom .dw-fields{gap:22px}
#dayroom .dw-fields .dw-property{grid-column:span 3}
#dayroom .dw-property :is(input,select){min-height:44px}
#dayroom .dw-subtasks{border-top:1px solid var(--dr-line);padding-top:20px;min-width:0}
#dayroom .dw-subtasks h3{margin:0 0 16px;font-size:15px}
#dayroom #dw-subtask-list{display:grid;gap:12px;margin-bottom:16px}
#dayroom .dw-subtask{display:grid;grid-template-columns:24px minmax(0,1fr) 44px;align-items:center;gap:12px}
#dayroom .dw-subtask input[type=checkbox]{width:20px;height:20px;margin:0}
#dayroom .dw-subtask input[type=text]{min-height:44px;margin:0}
#dayroom .dw-task-actions{justify-content:flex-end;gap:12px;margin-top:28px;padding-top:20px;border-top:1px solid var(--dr-line)}
#dayroom .dw-task-actions #dw-archive{margin-left:0}
#dayroom #dw-task-discussion{padding:0 28px 28px}
#dayroom #dw-task-discussion[hidden],#dayroom .dw-task-actions[hidden],#dayroom .dw-editor fieldset[hidden],#dayroom .dw-activity[hidden]{display:none}
#dayroom #dw-task-discussion .dw-chat{border:0;padding:0}
#dayroom .dw-overview{border:1px solid var(--dr-line);border-radius:12px;padding:24px;min-width:0}
#dayroom .dw-summary-counts{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:24px;margin-bottom:32px}
#dayroom .dw-summary-counts>div{display:flex;flex-direction:column;gap:12px}
#dayroom .dw-summary-counts strong{font-size:32px}
#dayroom .dw-summary-stage{display:grid;grid-template-columns:minmax(100px,1fr) minmax(80px,2fr) 32px;gap:16px;align-items:center;margin:20px 0}
#dayroom .dw-summary-stage meter{width:100%;height:20px;accent-color:var(--dr-accent)}
#dayroom .dw-timeline-scroll{overflow:auto;border:1px solid var(--dr-line);border-radius:12px;margin-bottom:24px}
#dayroom .dw-timeline{width:calc(240px + var(--dw-days)*44px)}
#dayroom .dw-timeline-head,#dayroom .dw-timeline-row{display:grid;grid-template-columns:240px 1fr;border-bottom:1px solid var(--dr-line)}
#dayroom .dw-timeline-head>span,#dayroom .dw-timeline-row>button{position:sticky;left:0;z-index:2;background:var(--dr-panel);padding:16px;border-right:1px solid var(--dr-line)}
#dayroom .dw-timeline-head>div,#dayroom .dw-timeline-track{display:grid;grid-template-columns:repeat(var(--dw-days),44px);align-items:center}
#dayroom .dw-timeline-head>div>span{text-align:center;padding:16px 0}
#dayroom .dw-timeline-track{padding:12px 0;background:repeating-linear-gradient(to right,transparent 0,transparent 43px,var(--dr-line) 43px,var(--dr-line) 44px)}
#dayroom .dw-timeline-bar{min-width:0;min-height:44px;background:color-mix(in srgb,var(--dr-accent) 22%,var(--dr-panel));border:1px solid var(--dr-accent);border-radius:6px;color:var(--dr-ink);font:inherit;padding:10px;cursor:pointer;text-align:left}
#dayroom .dw-timeline-bar>span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#dayroom .dw-timeline-bar.is-done{opacity:.6}
@media(max-width:1100px){
 #dayroom .dw-list-labels{display:none}
 #dayroom .dw-list-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px 24px}
 #dayroom .dw-list-title{grid-column:1/-1}
 #dayroom .dw-list-row>[data-label]::before{content:attr(data-label);display:block;font-size:11px;color:var(--dr-muted);margin-bottom:6px}
 #dayroom .dw-list-row>.dw-list-owner{display:block}
 #dayroom .dw-list-owner .dw-people{display:none}
}
@media(max-width:600px){
 #dayroom .dw-toolbar>.dr-field,#dayroom .dw-toolbar>.dw-sort{flex:1 1 100%}
 #dayroom .dw-view-field .dr-seg{width:100%}
 #dayroom .dw-view-field button{flex:1 1 100px}
 #dayroom .dw-kanban{display:grid;grid-template-columns:minmax(0,1fr);overflow:visible}
 #dayroom .dw-kanban .dw-column{min-width:0;max-width:none;width:auto}
 #dayroom .dw-list-row,#dayroom .dw-list-section>header{padding:16px}
 #dayroom .dw-list-row{grid-template-columns:minmax(0,1fr)}
 #dayroom .dw-fields .dw-property{grid-column:1/-1}
 #dayroom .dw-task-actions{flex-direction:column;align-items:stretch}
 #dayroom #dw-task-discussion{padding:0 20px 20px}
 #dayroom .dw-page .dr-page-actions{flex-basis:100%;justify-content:flex-start}
 #dayroom .dw-month-bar{flex-wrap:wrap;gap:12px}
 #dayroom .dw-month-bar h3{flex:1 1 100%;order:-2}
 #dayroom .dw-month-bar #dw-unscheduled-jump{flex:1 1 100%}
 #dayroom .dw-summary-stage{grid-template-columns:minmax(0,1fr) 32px}
 #dayroom .dw-summary-stage meter{grid-column:1;grid-row:auto}
}
#dayroom .dw-toolbar .dw-view-field .dr-seg>button,#dayroom .dw-detail-tabs .dr-seg>button{min-height:44px;height:auto;line-height:1.35;padding:10px 18px;flex:0 0 auto;justify-content:center}
@media(max-width:600px){#dayroom .dw-toolbar .dw-view-field .dr-seg>button{flex:1 1 100px}}
#dayroom .dw-detail-title{margin:16px 0 0;font-size:16px;font-weight:600;overflow-wrap:anywhere}
#dayroom .dw-options>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:12px;font-size:13px;color:var(--dr-muted);width:fit-content;list-style:none}
#dayroom .dw-options>summary::before{content:'+';font-size:18px}
#dayroom .dw-options[open]>summary::before{content:'−'}
#dayroom .dw-options>summary:focus-visible{outline:2px solid var(--dr-accent);outline-offset:2px}
#dayroom #dw-project-options>summary{margin-left:auto}
#dayroom .dw-options[open]>.dw-toolbar,#dayroom .dw-options[open]>.dw-management{padding:16px 0 20px}
#dayroom .dw-toolbar>.dw-view-field{flex:2 1 440px;order:0}
#dayroom .dw-toolbar>.dr-field:first-child{flex:1 1 220px}
@media(max-width:600px){#dayroom .dw-toolbar>.dw-view-field{flex-basis:100%}#dayroom .dw-team-scene{display:none}}
#dayroom .dw-page[data-view=chat] #dw-filters-panel{display:none}

/* A task workspace uses the canvas for work, with roomy Asana-style columns. */
#dayroom .dw-page .dw-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:24px;margin:0}
#dayroom .dw-page .dw-toolbar>.dr-field{flex:0 1 280px}
#dayroom .dw-page .dw-view-field{flex:1 1 560px}
#dayroom .dw-page .dw-options{margin:0;padding:0}
#dayroom .dw-page .dw-project-line{margin:0;padding:0}
#dayroom .dw-page #dw-content{min-width:0}
#dayroom .dw-kanban{gap:24px;align-items:flex-start;padding:4px 0 24px;overflow-x:auto}
#dayroom .dw-kanban .dw-column{flex:0 0 340px;min-width:340px;max-width:none;background:transparent;border:0;padding:0;gap:16px}
#dayroom .dw-kanban .dw-column>header{padding:18px 20px;background:var(--dr-panel);border-radius:8px;margin:0;min-height:64px;box-sizing:border-box}
#dayroom .dw-kanban .dw-cards{background:var(--dr-panel);padding:12px;gap:12px;border-radius:8px}
#dayroom .dw-kanban .dw-task{min-height:0;padding:20px;gap:16px;border-radius:8px;box-shadow:none}
#dayroom .dw-kanban .dw-task-title{font-size:15px;line-height:1.5;font-weight:500}
#dayroom .dw-kanban .dw-task-excerpt,#dayroom .dw-kanban .dw-card-mark,#dayroom .dw-kanban .dw-stage-index{display:none}
#dayroom .dw-kanban .dw-column>.dr-button{align-self:stretch;text-align:left;padding:12px 20px}
#dayroom .dw-kanban .dw-column-empty{min-height:80px}
#dayroom .dw-task-panel{position:fixed;inset:16px 16px 16px auto;margin:0;width:min(620px,calc(100vw - 32px));height:calc(100dvh - 32px);max-height:calc(100dvh - 32px);border-radius:20px;box-shadow:0 4px 18px rgb(0 0 0 / .16)}
#dayroom .dw-task-panel::backdrop{background:transparent;backdrop-filter:none}
#dayroom .dw-task-panel .dw-editor{padding:32px}
#dayroom .dw-dashboard-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:18px}
#dayroom .dw-dashboard article{background:var(--dr-panel);border:1px solid var(--dr-line);border-radius:10px;padding:26px;min-width:0}
#dayroom .dw-dashboard h3{font-size:16px;font-weight:600;margin:0 0 24px;line-height:1.5}
#dayroom .dw-dashboard-totals strong{display:block;text-align:center;font-size:48px;font-weight:400;padding:20px 0 30px}
#dayroom .dw-dashboard-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
#dayroom .dw-chart-bars{display:flex;align-items:end;gap:24px;min-height:260px;overflow-x:auto;padding:20px 8px 8px}
#dayroom .dw-chart-column{flex:1;min-width:64px;text-align:center;display:flex;flex-direction:column;gap:12px;font-size:12px}
#dayroom .dw-chart-track{height:180px;display:flex;align-items:end;justify-content:center;border-bottom:1px solid var(--dr-line);background:repeating-linear-gradient(to top,transparent 0,transparent 44px,var(--dr-line) 45px)}
#dayroom .dw-chart-track>div{width:36px;max-width:70%;background:var(--dr-accent);border-radius:4px 4px 0 0}
#dayroom .dw-completion-chart{min-height:300px;display:flex;align-items:center;justify-content:center;gap:36px;flex-wrap:wrap}
#dayroom .dw-donut{width:220px;aspect-ratio:1;border-radius:50%;background:conic-gradient(var(--dr-accent) var(--done),color-mix(in srgb,var(--dr-accent) 35%,var(--dr-panel)) 0);display:grid;place-items:center;position:relative}
#dayroom .dw-donut:before{content:'';position:absolute;inset:30px;border-radius:50%;background:var(--dr-panel)}
#dayroom .dw-donut strong{position:relative;font-size:32px}
#dayroom .dw-completion-chart i{display:inline-block;width:12px;height:12px;border-radius:2px;margin-right:8px;background:color-mix(in srgb,var(--dr-accent) 35%,var(--dr-panel))}
#dayroom .dw-completion-chart i.is-complete{background:var(--dr-accent)}
@media(max-width:1000px){#dayroom .dw-dashboard-totals{grid-template-columns:repeat(2,minmax(0,1fr))}#dayroom .dw-dashboard-charts{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){#dayroom .dw-kanban{display:flex;overflow-x:auto;scroll-snap-type:x proximity}#dayroom .dw-kanban .dw-column{flex:0 0 calc(100vw - 48px);min-width:0;width:calc(100vw - 48px);scroll-snap-align:start}#dayroom .dw-task-panel .dw-editor{padding:20px}#dayroom .dw-dashboard article{padding:18px}#dayroom .dw-dashboard-totals{gap:12px}#dayroom .dw-dashboard-totals strong{font-size:36px}#dayroom .dw-dashboard h3{font-size:14px}}
#dayroom #dr-work-page.dw-page .dr-page-body{display:grid;grid-template-columns:minmax(0,1fr) auto;align-content:start;gap:12px 24px}
#dayroom .dw-page .dr-page-body>*{grid-column:1/-1}
#dayroom .dw-page .dr-page-body>.dr-seg{order:0}
#dayroom .dw-page .dr-page-body>.dw-toolbar{order:1}
#dayroom .dw-page #dw-filters-panel{grid-column:1;order:2}
#dayroom .dw-page #dw-project-options{grid-column:2;order:2}
#dayroom .dw-page .dw-project-line{order:3}
#dayroom .dw-page #dw-content{order:4}
#dayroom .dw-page .dw-hint{order:5}
#dayroom .dw-page .dw-options[open]{grid-column:1/-1!important}
#dayroom .dw-page .dw-updates{order:0}
/* "2 to-dos from chat" on your personal list: a full-width link just above the tasks. */
#dayroom .dw-page .dw-from-chat{order:4;display:flex;align-items:center;width:100%;min-height:44px;padding:10px 14px;border:0;border-radius:10px;background:var(--dr-panel);box-shadow:inset 0 0 0 1px var(--dr-line-2);color:var(--dr-accent-text);font:inherit;font-size:13px;font-weight:700;text-align:left;overflow-wrap:anywhere;cursor:pointer}
@media (hover:hover){#dayroom .dw-page .dw-from-chat:hover{background:var(--dr-hover)}}
#dayroom .dw-page .dw-from-chat:focus-visible{outline:2px solid var(--dr-accent);outline-offset:2px}
#dayroom .dw-page .dw-dashboard article{background:color-mix(in srgb,var(--dr-ink) 4%,var(--dr-panel))}
#dayroom .dw-page #dw-project-options:not([open]),#dayroom .dw-page #dw-filters-panel:not([open]){grid-row:3}
#dayroom .dw-kanban .dw-column>header,#dayroom .dw-kanban .dw-cards{background:color-mix(in srgb,var(--dr-ink) 4%,var(--dr-panel))}
@media(max-width:600px){#dayroom .dw-page .dw-toolbar>.dr-field{flex-basis:100%}#dayroom .dw-page .dr-back-office{position:absolute;right:16px;top:14px}#dayroom .dw-page .dr-page-header{position:relative;padding-right:48px}}
/* Board cards follow the reviewed title / badges / assignee-date structure. */
#dayroom .dw-kanban{gap:24px;padding:8px 0 28px}
#dayroom .dw-kanban .dw-column{flex-basis:350px;min-width:350px;gap:12px}
#dayroom .dw-kanban .dw-column>header{min-height:64px;padding:18px 20px;border-radius:8px}
#dayroom .dw-kanban .dw-column h3{font-size:17px;font-weight:600;display:flex;align-items:center;gap:14px;margin:0}
#dayroom .dw-kanban .dw-count{border:0;background:none;font-size:14px;font-weight:400;color:var(--dr-muted);padding:0}
#dayroom .dw-kanban .dw-cards{padding:12px;gap:12px;min-height:72px}
#dayroom .dw-board-card{position:relative;border:1px solid var(--dr-line);border-radius:8px;background:color-mix(in srgb,var(--dr-ink) 3%,var(--dr-panel));overflow:hidden}
#dayroom .dw-board-card.is-selected{background:color-mix(in srgb,var(--dr-accent) 16%,var(--dr-panel));border-color:var(--dr-accent);box-shadow:inset 0 0 0 1px var(--dr-accent)}
#dayroom .dw-board-open{display:flex;flex-direction:column;gap:20px;width:100%;min-height:172px;background:transparent;border:0;border-radius:0;color:var(--dr-ink);padding:22px 20px;text-align:left;cursor:pointer;font:inherit}
#dayroom .dw-board-title{display:block;font-size:15px;font-weight:500;line-height:1.5;padding-left:28px;overflow-wrap:anywhere}
#dayroom .dw-board-check{position:absolute;z-index:1;left:12px;top:15px;border:0;background:transparent;color:var(--dr-muted);font-size:22px;width:36px;height:36px;padding:0;cursor:pointer;border-radius:50%}
#dayroom .dw-board-check:hover{color:var(--dr-accent)}
#dayroom .dw-board-tags{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
#dayroom .dw-priority-tag{padding:3px 7px;border-radius:4px;font-size:12px;line-height:1.4;color:#201811;background:#e6cf83}
#dayroom .dw-priority-tag[data-priority=high]{background:#ff9687}
#dayroom .dw-priority-tag[data-priority=urgent]{background:#f2a2c3}
#dayroom .dw-priority-tag[data-priority=normal]{background:#ffc079}
#dayroom .dw-priority-tag[data-priority=low]{background:#f5d675}
#dayroom .dw-subtask-tag{font-size:12px;color:var(--dr-muted)}
#dayroom .dw-board-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:12px;min-height:30px}
#dayroom .dw-board-meta .dw-people{flex-shrink:0}
#dayroom .dw-board-due{line-height:1.5}
#dayroom .dw-unassigned{width:27px;height:27px;border:1px dashed var(--dr-muted);border-radius:50%;display:grid;place-items:center;color:var(--dr-muted)}
#dayroom .dw-cards>.dr-button{justify-content:flex-start;text-align:left;min-height:44px;background:transparent;border:0;box-shadow:none;color:var(--dr-muted);font-size:14px;padding:10px}
#dayroom .dw-board-empty{font-size:13px;color:var(--dr-muted);padding:10px;margin:0}
#dayroom .dw-board-open:focus-visible,#dayroom .dw-board-check:focus-visible{outline:2px solid var(--dr-accent);outline-offset:-3px}
@media(max-width:600px){#dayroom .dw-kanban .dw-column{flex-basis:calc(100vw - 48px);min-width:calc(100vw - 48px)}}

@media(max-width:600px){#dayroom .dw-task-panel{inset:8px 8px 8px auto;width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);border-radius:18px}}

#dayroom #dw-task-form .dw-subtasks>.dr-hint{margin:12px 0 0;line-height:1.5}

/* Moving cards keeps columns full width and uses a neutral drop target. */
#dayroom .dw-board-card[draggable=true] .dw-board-open{cursor:grab}
#dayroom .dw-board-card.is-dragging{opacity:.45}
#dayroom .dw-kanban .dw-column.is-drop-target .dw-cards{outline:2px dashed var(--dr-muted);outline-offset:-2px;background:color-mix(in srgb,var(--dr-ink) 9%,var(--dr-panel))}
#dayroom .dw-board-card img{pointer-events:none;-webkit-user-drag:none}

/* Plan 5: the "My desk" builder, the desk chooser and the office's "Customize desk" chip (office-studio.html
   section 2: .db-* and .dk-*). Chrome uses tokens. The scene is pixel art, so its name pills keep the office
   overlay's literal colours (office-overlay.css). Picture tiles, tabs and swatches are the character studio's
   .dp-* rules (people.css). This sheet loads after surfaces.css (build.py), so the desk page's width beats the
   anatomy's wide-page rule, which has the same specificity, and the scene fits 4× at 1440 × 900 (Decision 1).
   The builder brings the mockup's own paddings, so the page body has none. */
#dayroom .dr-modal:has(>#dr-modal-body>.dr-page[data-page="desk"]){width:min(1136px,calc(100vw - 48px))}
#dayroom #dr-modal-body>.dr-page[data-page="desk"]>.dr-page-body{padding:0}
/* Short windows, as the character studio does it (people.css): the dialog stops at 100dvh − 88px, and the page body would
   scroll the whole builder, its bottom bar (Reset, Save) included, out of view. The builder takes the page body's height
   instead and keeps the bottom bar on screen; its body keeps the mockup's 480 px while the window has room for that, the
   60 px page head and the 61 px bottom bar (88 + 60 + 61 = 209), and otherwise shrinks to the room left, where the scene
   column and the picture panel scroll. */
#dayroom #dr-desk-builder{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
#dayroom .dd-builder{position:relative;display:flex;flex-direction:column;flex:1 1 auto;min-height:0}
#dayroom .dd-body{display:grid;grid-template-columns:minmax(0,1fr) 400px;grid-template-rows:minmax(0,1fr);flex:1 1 auto;min-height:min(480px,calc(100dvh - 209px))}
#dayroom .dd-scene{display:flex;flex-direction:column;gap:12px;min-width:0;min-height:0;overflow:auto;padding:20px;border-right:1px solid var(--dr-line)}
#dayroom .dd-scene>*{flex:none}
#dayroom .dd-stage{position:relative;align-self:center;overflow:hidden;border-radius:14px;box-shadow:inset 0 0 0 1px var(--dr-line)}
#dayroom .dd-canvas{display:block;image-rendering:pixelated}
#dayroom .dd-pills{position:absolute;inset:0;pointer-events:none}
#dayroom .dd-pill{position:absolute;transform:translate(-50%,-50%);height:22px;padding:0 9px;border-radius:11px;background:rgba(20,28,24,.84);color:#fff;font:800 12px/22px 'Manrope',system-ui,sans-serif;white-space:nowrap}
#dayroom .dd-pill.is-you{background:#1F5A41}
/* The builder's own paragraphs are scoped to .dd-builder: product.css's #dayroom .dr-modal p (1,1,1) would otherwise make
   the note 12px, the toast muted grey on lime and a failed save plain grey text. The error is the character studio's
   own .dp-error (people.css .dp-studio .dp-error: the app's .dr-error red in both schemes). */
#dayroom .dd-builder .dd-note,#dayroom .dd-builder .dd-count{margin:0;font-size:12.5px;font-weight:600;line-height:1.5;color:var(--dr-muted)}
#dayroom .dd-builder .dp-error{margin:0;color:light-dark(#a13636,#f4b3ab);font-size:12.5px;font-weight:700}
#dayroom .dd-right{display:flex;flex-direction:column;min-width:0;min-height:0}
/* The mockup's tab row, group spacing and label gap (.dk-tabs, .dk-tab, .dk-group, .dk-label). The label is an h4 in a
   page, so surfaces.css's page reset (1,2,1) would otherwise take its 8px. */
#dayroom .dd-right .dp-tabs{gap:4px;padding:14px 18px 0}
#dayroom .dd-right .dp-tab{padding:0 13px}
#dayroom .dd-right .dp-group{margin:0 0 18px}
#dayroom .dd-builder .dp-group>.dp-label{margin:0 0 8px}
#dayroom .dd-right .dp-panel{padding:16px 18px 20px;max-height:440px}
#dayroom .dd-none{margin-bottom:12px;font-size:22px;color:#A89C84}
#dayroom .dd-bottom{display:flex;flex:none;align-items:center;gap:10px;padding:14px 18px;border-top:1px solid var(--dr-line)}
#dayroom .dd-builder .dd-toast{position:absolute;right:22px;bottom:70px;z-index:5;margin:0;padding:10px 14px;border-radius:12px;background:var(--dr-lime);color:var(--dr-lime-ink);box-shadow:var(--dr-glass-shadow);font-size:13px;font-weight:800;opacity:0;transform:translateY(6px);transition:opacity .15s,transform .15s;pointer-events:none}
#dayroom .dd-builder .dd-toast.is-shown{opacity:1;transform:none}
@media (max-width:900px){#dayroom .dd-body{grid-template-columns:1fr;grid-template-rows:none;overflow:auto}#dayroom .dd-scene{min-height:auto;overflow:visible;border-right:0;border-bottom:1px solid var(--dr-line)}#dayroom .dd-right{min-height:auto}}
/* Short landscape phones: the preview and the options side by side, each column scrolling on its own, so the scene stays in
   view while you pick (desk-studio.js also fits the scene's scale to this column's height). */
@media (max-width:900px) and (max-height:500px) and (orientation:landscape){#dayroom .dd-body{grid-template-columns:minmax(0,1fr) minmax(260px,45%);grid-template-rows:minmax(0,1fr);overflow:hidden}#dayroom .dd-scene{overflow:auto;min-height:0;padding:12px;border-bottom:0;border-right:1px solid var(--dr-line)}#dayroom .dd-right{min-height:0}#dayroom .dd-right .dp-panel{max-height:none}}
@media (prefers-reduced-motion:reduce){#dayroom .dd-builder .dd-toast{transition:none}}

/* The Desks chooser and the office's "Customize desk" chip. */
#dayroom .dd-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
#dayroom .dd-choice{display:grid;justify-items:center;gap:4px;min-width:0;padding:10px 6px;border:0;border-radius:12px;background:var(--dr-panel);box-shadow:inset 0 0 0 1px var(--dr-line-2);color:var(--dr-ink);font:inherit;cursor:pointer}
#dayroom .dd-choice[aria-pressed="true"]{background:var(--dr-sel);box-shadow:inset 0 0 0 2px var(--dr-accent)}
#dayroom .dd-choice:focus-visible{outline:2px solid var(--dr-accent);outline-offset:2px}
#dayroom .dd-choice canvas{width:72px;height:76px;image-rendering:pixelated}
#dayroom .dd-choice strong{font-size:13px;font-weight:800}
#dayroom .dd-choice span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11.5px;font-weight:700;color:var(--dr-muted)}
/* A claim that fails says so in the builder's error red: surfaces.css's #dayroom .dr-card-body>p (1,1,1) would otherwise
   give it the card's body text. */
#dayroom .dr-page[data-page="desks"] .dr-card-body>p.dr-error{color:light-dark(#a13636,#f4b3ab);font-size:12.5px;font-weight:700}
/* While a claim works, the chooser's controls stay focusable (aria-disabled) and look like disabled ones. */
#dayroom .dr-page[data-page="desks"] :is(.dd-choice,.dr-button)[aria-disabled="true"]{cursor:default;opacity:.5}
#dayroom .dr-window .dr-desk-chip{top:auto;bottom:12px;left:50%;transform:translateX(-50%);cursor:pointer}
/* Phones: above the HUD (mobile.css: bottom 72px, one 58px row; two rows below 300px), as tall as the HUD's own 44px targets.
   Short landscape: under the HUD at its left edge, so the map's middle stays clear and Back to me keeps the zoom row. */
@media(max-width:899px){#dayroom .dr-window #dr-desk-customize.dr-desk-chip{bottom:140px;min-height:44px}}
@media(max-width:300px){#dayroom .dr-window #dr-desk-customize.dr-desk-chip{bottom:188px}}
@media(max-width:899px) and (max-height:500px){#dayroom .dr-window #dr-desk-customize.dr-desk-chip{bottom:12px;left:8px;transform:none}}
@media (max-width:640px){#dayroom .dd-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* Plan 5: the owner's Office theme card in Workspace settings (office-studio.html section 3: .th-card, .th-box, .th-map,
   .th-prompt). Tokens only; surfaces.css styles the tiles themselves (.dr-office-theme-tile). The first rule repeats
   surfaces Task 3's three-row tile template: this sheet loads after surfaces.css, so the blurb row never depends on
   load order (pre-flight S7). */
#dayroom .dr-office-theme-tile{grid-template-areas:"preview" "name" "desc"}
#dayroom .dr-office-theme-tile .dr-tile-desc{grid-area:desc;display:block;margin-top:3px;font-size:12.5px;font-weight:600;line-height:1.45;color:var(--dr-muted)}
/* The mockup's spacing (.th-grid, .th-box h4, .th-box p). Scoped to the card, since the anatomy's rules tie or beat a plain
   class rule: .dr-tiles sets a 12px gap, surfaces.css's page reset (1,2,1) takes the headings' 4px and its
   .dr-card-body p.dr-hint (1,2,1) sets 12px hints. */
#dayroom #dr-workspace-theme .dr-office-theme-tiles{gap:14px}
/* Each box keeps its own height: stretched to the taller designer, the rooms box grew an empty block. */
#dayroom .dr-office-rows{display:grid;grid-template-columns:1.2fr 1fr;align-items:start;gap:18px;margin-top:18px}
#dayroom .dr-office-box{min-width:0;padding:16px;border-radius:16px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-line)}
#dayroom #dr-workspace-theme .dr-office-box h4{margin:0 0 4px;font-size:14px;font-weight:800;color:var(--dr-ink)}
#dayroom #dr-workspace-theme .dr-office-box>p.dr-hint{margin:0 0 12px;font-size:12.5px}
#dayroom .dr-office-map{display:grid;grid-template-columns:auto 1fr;gap:8px 12px;align-items:center;font-size:13px;font-weight:700}
#dayroom .dr-office-channel{color:var(--dr-ink)}
#dayroom .dr-office-channel i{font-style:normal;color:var(--dr-faint)}
#dayroom .dr-office-map select{height:34px;min-width:0;padding:0 12px;border-radius:10px;background:var(--dr-field);box-shadow:inset 0 0 0 1px var(--dr-field-line);color:var(--dr-ink-2);font:700 13px/34px 'Manrope',system-ui,sans-serif}
/* Its own resting box-shadow is (1,1,1): specific enough to beat window.css's shared, :where()-wrapped focus ring
   (1,1,0) even while focused, so it never showed one. A matching :focus-visible override (1,2,1) wins the resting
   rule outright (fix round 1, Important 2). */
#dayroom .dr-office-map select:focus-visible{outline:2px solid transparent;outline-offset:2px;box-shadow:inset 0 0 0 1.5px var(--dr-accent),0 0 0 4px var(--dr-accent-soft)}
#dayroom #dr-workspace-theme-status:empty{display:none}
#dayroom #dr-workspace-theme-status{margin-top:12px}
/* tabindex="-1" (fix round 2, Important 1) makes this a focus() target for Apply's announce(); the page title's own
   pattern (surfaces.css:8-9) keeps it silent for the programmatic/mouse focus that is announce()'s whole point, and
   only rings for a keyboard tab into it. */
#dayroom #dr-workspace-theme-status:focus{outline:none}
#dayroom #dr-workspace-theme-status:focus-visible{outline:2px solid var(--dr-accent);outline-offset:2px;border-radius:4px}
@media (max-width:900px){#dayroom .dr-office-rows{grid-template-columns:1fr}}
#dayroom #dr-office-brief{display:block;width:100%;min-height:88px;padding:12px;border:0;border-radius:12px;background:var(--dr-field);box-shadow:inset 0 0 0 1px var(--dr-field-line);color:var(--dr-ink-2);font:600 13px/1.5 'Manrope',system-ui,sans-serif;resize:vertical}
/* Same specificity hazard as the room selects above: (2,0,0) beats the shared (1,1,0) focus rule outright, so the
   textarea showed no ring at all when focused (fix round 1, Important 2, plan-mandated). A matching :focus-visible
   override, plus the app's own disabled look (button:disabled's opacity, matched here since a plain field has no
   such rule of its own) while it waits on the designer's availability or another action is busy (Minor 7). */
#dayroom #dr-office-brief:focus-visible{outline:2px solid transparent;outline-offset:2px;box-shadow:inset 0 0 0 1.5px var(--dr-accent),0 0 0 4px var(--dr-accent-soft)}
#dayroom #dr-office-brief:disabled{opacity:.5}
#dayroom #dr-office-designer .dr-form-actions{margin-top:12px}
#dayroom #dr-office-status:empty{display:none}
#dayroom #dr-office-status{margin-top:10px}
/* Fix round 2, Minor: outline:none alone (2,0,0) beat the shared [tabindex]:focus-visible ring outright, so a
   keyboard Redesign or Undo focused the note but showed nothing. The page title's pattern (surfaces.css:8-9): silent
   on programmatic/mouse focus (announce() uses this every time), a ring only for :focus-visible. */
#dayroom #dr-office-status:focus{outline:none}
#dayroom #dr-office-status:focus-visible{outline:2px solid var(--dr-accent);outline-offset:2px;border-radius:4px}
/* Whole-branch I9: a Windows contrast theme drops box-shadows, so the fields above would lose their focus ring (the
   transparent outline above is what it repaints) and the brief its only edge: its own border:0 outranks window.css's
   forced field edge, which the select already takes. */
@media (forced-colors:active){
 #dayroom #dr-office-brief{border:1px solid CanvasText}
}
/* Appearance (settings-panels.js): Light / Dark / Match device as a radio group on the shared text segmented control,
   the "When your device is…" headings for Match device, and the user panel's pixel sun/moon. Tokens only. */
#dayroom .dr-seg.is-text>button[role="radio"][aria-checked="true"]{background:var(--dr-panel);color:var(--dr-ink);box-shadow:0 1px 2px rgba(0,0,0,.10),0 0 0 1px var(--dr-line)}
#dayroom .dr-seg.is-text>button[role="radio"]:hover{color:var(--dr-ink)}
#dayroom .dr-appearance-modes>button{height:32px;padding:0 14px;line-height:32px}
#dayroom .dr-appearance-modes svg.dr-i{width:16px;height:16px}
#dayroom .dr-settings-colours p.dr-appearance-hint{margin:8px 0 0}
#dayroom .dr-settings-colours h4.dr-theme-group-title{margin:0 0 8px;font-size:12.5px;font-weight:800;color:var(--dr-muted)}
#dayroom .dr-settings-colours .dr-theme-grid+h4.dr-theme-group-title{margin-top:16px}
#dayroom .dr-upanel #dr-upanel-scheme{margin-right:-6px}
@media (forced-colors:active){#dayroom .dr-seg.is-text>button[role="radio"][aria-checked="true"]{outline:2px solid Highlight;outline-offset:-2px}}

/* Companion-led onboarding: the tour's speaker, the companion's welcome message, Get started and feature tips.
   Palette tokens only, so every surface follows the person's own Appearance. No new fonts, no motion. */
#dayroom .dr-tour-companion-line{display:flex;align-items:center;gap:10px;margin:0;color:var(--dr-ink-2);font-size:13.5px;font-weight:600;line-height:1.45}
#dayroom .dr-tour-companion-line .dr-companion-dp,#dayroom .dr-tour-speaker .dr-companion-dp{flex:none;width:32px;height:32px;border-radius:9px}
#dayroom .dr-tour-speaker{display:inline-flex;align-items:center;gap:8px}
#dayroom .dr-tour-speaker .dr-companion-dp{width:24px;height:24px;border-radius:7px}

#dayroom .dr-companion-welcome .dr-cw-body p{margin:0 0 8px}
#dayroom .dr-cw-abilities{margin:0 0 10px;padding-left:18px;color:var(--dr-ink-2)}
#dayroom .dr-cw-abilities li{margin:2px 0}
#dayroom .dr-cw-chips{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 10px}
#dayroom .dr-cw-chip{min-height:32px;padding:6px 12px;border:1px solid var(--dr-line-2);border-radius:999px;background:var(--dr-panel);color:var(--dr-ink);font:inherit;font-size:13px;font-weight:600;cursor:pointer}
#dayroom .dr-cw-chip:hover{background:var(--dr-hover);border-color:var(--dr-accent)}
#dayroom .dr-cw-chip:focus-visible{outline:2px solid var(--dr-accent);outline-offset:2px}
#dayroom p.dr-cw-closing{margin:0;color:var(--dr-muted);font-weight:600}

#dayroom .dr-get-started{margin-top:10px;padding:12px 14px;border:1px solid var(--dr-line);border-radius:12px;background:var(--dr-sunken);color:var(--dr-ink)}
#dayroom .dr-gs-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
#dayroom .dr-gs-title{margin:0;font-size:14px;font-weight:800}
#dayroom .dr-gs-count{color:var(--dr-muted);font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}
/* A stepped pixel meter: one square per step, crisp and flat. */
#dayroom .dr-gs-meter{display:flex;gap:3px;margin:8px 0 6px}
#dayroom .dr-gs-pip{width:14px;height:6px;background:var(--dr-line-2)}
#dayroom .dr-gs-pip.is-on{background:var(--dr-accent)}
#dayroom p.dr-gs-finished{margin:4px 0;color:var(--dr-ink-2);font-weight:700}
#dayroom .dr-gs-list{display:grid;gap:2px;margin:4px 0 0;padding:0;list-style:none}
#dayroom .dr-gs-item{display:flex;align-items:center;gap:10px;min-height:40px;padding:4px 0}
#dayroom .dr-gs-check{flex:none;display:grid;place-items:center;width:18px;height:18px;border:2px solid var(--dr-line-2);border-radius:4px;color:var(--dr-accent-ink);background:var(--dr-panel)}
#dayroom .dr-gs-item.is-done .dr-gs-check{border-color:var(--dr-accent);background:var(--dr-accent)}
#dayroom .dr-gs-check .dr-i{width:12px;height:12px}
#dayroom .dr-gs-text{display:grid;flex:1;min-width:0}
#dayroom .dr-gs-name{font-size:13.5px;font-weight:700}
#dayroom .dr-gs-item.is-done .dr-gs-name{color:var(--dr-muted);text-decoration:line-through}
#dayroom .dr-gs-hint{color:var(--dr-muted);font-size:12.5px}
#dayroom .dr-gs-action{flex:none}
#dayroom .dr-gs-foot{display:flex;justify-content:flex-end;margin-top:6px}

#dayroom .dr-feature-tip-slot[hidden]{display:none}
#dayroom .dr-feature-tip{display:flex;align-items:flex-start;gap:12px;margin:0 0 14px;padding:12px 14px;border:1px solid var(--dr-accent);border-radius:12px;background:var(--dr-accent-soft);color:var(--dr-ink)}
#dayroom .dr-feature-tip .dr-companion-dp{flex:none;width:32px;height:32px;border-radius:9px}
#dayroom .dr-feature-tip-body{display:grid;gap:4px;min-width:0}
#dayroom p.dr-feature-tip-title{margin:0;font-size:14px;font-weight:800}
#dayroom p.dr-feature-tip-text{margin:0;color:var(--dr-ink-2);font-size:13px;line-height:1.45}
#dayroom .dr-feature-tip-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
/* flex:1 has a 0 basis, so the row never wrapped; the basis leaves room only for the 18px check and its gap. */
@media (max-width:560px){#dayroom .dr-gs-item{flex-wrap:wrap}#dayroom .dr-gs-text{flex:1 1 calc(100% - 28px)}#dayroom .dr-gs-action{margin-left:28px}}
@media (forced-colors:active){#dayroom .dr-gs-pip.is-on,#dayroom .dr-gs-item.is-done .dr-gs-check{background:Highlight}#dayroom .dr-feature-tip,#dayroom .dr-cw-chip{border-color:CanvasText}}

#dayroom .dr-release-notice{position:fixed;bottom:18px;right:18px;z-index:35;max-width:min(520px,calc(100vw - 36px));padding:16px;background:var(--dr-panel);color:var(--dr-ink);border:2px solid var(--dr-line-2);border-radius:12px;box-shadow:4px 4px 0 var(--dr-line);display:flex;flex-direction:column;align-items:stretch;gap:12px}
#dayroom .dr-release-copy ul{margin:8px 0;padding-left:20px;font-size:13px;line-height:1.6}
#dayroom .dr-release-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
#dayroom .dr-release-notice small{display:block;color:var(--dr-muted);margin-top:4px}
#dayroom #dr-rail-works.dr-works-new{position:relative;overflow:visible;cursor:pointer}
#dayroom .dr-works-new .dr-ri{position:relative;overflow:visible}
#dayroom .dr-works-new .dr-ri>.dr-i{transform-origin:center;animation:dr-works-pulse 2.8s ease-in-out infinite}
#dayroom .dr-works-new .dr-ri::after{content:"";position:absolute;right:0;bottom:-2px;width:11px;height:15px;background:currentColor;clip-path:polygon(0 0,0 80%,27% 60%,45% 100%,64% 92%,45% 53%,90% 53%);pointer-events:none;animation:dr-works-click 2.8s ease-in-out infinite}
#dayroom #dr-rail-works.dr-works-new:active .dr-ri>.dr-i{animation:none;transform:scale(.9)}
#dayroom .dr-works-new-label{font-family:inherit;font-size:9px;font-weight:800;letter-spacing:-.02em;line-height:1.25;white-space:nowrap;color:var(--dr-ink);background:var(--dr-sunken);border:1px solid var(--dr-line-2);border-radius:4px;padding:2px 3px;margin-top:2px}
#dayroom .dr-works-guide-target{outline:3px solid var(--dr-accent)!important;outline-offset:4px;scroll-margin:100px}
#dayroom .dr-works-coach{position:fixed;z-index:65;box-sizing:border-box;width:min(336px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:18px;border:2px solid var(--dr-accent);border-radius:12px;background:var(--dr-panel);color:var(--dr-ink);box-shadow:4px 4px 0 var(--dr-line)}
#dayroom .dr-works-coach-top{display:flex;justify-content:space-between;gap:12px;font-size:10px;font-weight:800;letter-spacing:.08em;color:var(--dr-muted)}
#dayroom .dr-works-coach h2{font:700 19px/1.3 'Manrope',sans-serif;letter-spacing:-.025em;margin:12px 0 8px}
#dayroom .dr-works-coach p{font-size:14px;line-height:1.55;margin:0 0 16px}
#dayroom .dr-works-coach-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
#dayroom .dw-dialog>.dr-works-coach{position:sticky;bottom:8px;margin:12px auto;max-width:calc(100% - 24px)}
@keyframes dr-works-pulse{0%,100%{transform:scale(1)}35%{transform:scale(1.2)}50%{transform:scale(.92)}65%{transform:scale(1.08)}}
@keyframes dr-works-click{0%,100%{transform:translate(3px,4px);opacity:0}30%,70%{transform:translate(0,0);opacity:1}50%{transform:translate(-2px,-2px);opacity:1}}
@media(prefers-reduced-motion:reduce){#dayroom .dr-works-new .dr-ri>.dr-i,#dayroom .dr-works-new .dr-ri::after{animation:none}}
@media(max-width:540px){#dayroom .dr-release-notice{flex-wrap:wrap;bottom:12px;right:12px;max-width:calc(100vw - 24px)}#dayroom .dr-release-copy{min-width:0}}

/* WhatsApp import: three short steps, big targets, pictures instead of paragraphs (whatsapp-flow.js). */
#dayroom .dr-wa-flow{gap:16px}
#dayroom .dr-wa-steps3{gap:6px 8px}
#dayroom .dr-wa-head{display:grid;gap:4px}
#dayroom .dr-wa-title{font-size:20px;font-weight:800;line-height:1.2;color:var(--dr-ink);letter-spacing:-.01em}
#dayroom .dr-wa-title:focus{outline:none}
#dayroom .dr-modal .dr-wa-line,#dayroom .dr-wa-line{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:0;color:var(--dr-muted);font-size:14px;line-height:1.4}
#dayroom .dr-modal .dr-wa-note,#dayroom .dr-wa-note{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:0;color:var(--dr-muted);font-size:13px}
#dayroom .dr-wa-note.is-warn{color:var(--dr-ink)}
/* "?" opens a one-line explanation in place: works with touch, keyboard and screen readers. */
#dayroom .dr-wa-help{display:inline-block;position:relative}
#dayroom .dr-wa-help>summary{list-style:none;display:inline-grid;place-items:center;width:22px;height:22px;border-radius:6px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-line-2);color:var(--dr-ink);font:400 10px/1 'Silkscreen',monospace;cursor:pointer}
#dayroom .dr-wa-help>summary::-webkit-details-marker{display:none}
#dayroom .dr-wa-help>summary:focus-visible{outline:2px solid var(--dr-accent);outline-offset:2px}
#dayroom .dr-wa-help[open]{display:block;flex-basis:100%}
#dayroom .dr-wa-help[open]>summary{background:var(--dr-accent);color:var(--dr-accent-ink);box-shadow:none}
#dayroom .dr-modal .dr-wa-help>p,#dayroom .dr-wa-help>p{margin:6px 0 0;padding:8px 10px;border-radius:10px;background:var(--dr-sunken);color:var(--dr-ink);font-size:13px;line-height:1.45;max-width:46ch}

/* Step 1: the phone steps as pixel pictures. */
#dayroom .dr-wa-guide{display:grid;gap:10px;justify-items:start}
#dayroom .dr-wa-howto{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;width:100%;margin:0;padding:0;list-style:none}
#dayroom .dr-wa-howto li{display:grid;justify-items:center;gap:6px;padding:10px 6px;border-radius:12px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-line);text-align:center;font-size:12.5px;font-weight:700;line-height:1.25;color:var(--dr-ink)}
#dayroom .dr-wa-howto b{display:inline-grid;place-items:center;width:18px;height:18px;margin-right:2px;border-radius:5px;background:var(--dr-accent);color:var(--dr-accent-ink);font:400 9px/1 'Silkscreen',monospace;vertical-align:1px}
#dayroom .dr-wa-art{display:block;width:64px;height:104px;image-rendering:pixelated}
#dayroom .dr-wa-art .px-k{fill:light-dark(#243c34,#a9b8ad)}
#dayroom .dr-wa-art .px-s{fill:light-dark(#ffffff,#e9eee8)}
#dayroom .dr-wa-art .px-d{fill:light-dark(#8d9a92,#6b766f)}
#dayroom .dr-wa-art .px-g{fill:#1a8f4c}
#dayroom .dr-wa-art .px-w{fill:#ffffff}
#dayroom .dr-wa-art .px-l{fill:#b9c4bc}
#dayroom .dr-wa-art .px-b{fill:#dfe6e0}
#dayroom .dr-wa-art .px-m{fill:#bfe8c9}
#dayroom .dr-wa-art .px-p{fill:#ffffff}
#dayroom .dr-wa-art .px-a{fill:#7fa595}
#dayroom .dr-wa-art .px-h{fill:#f6d76b}
#dayroom .dr-wa-art .px-f{fill:#243c34}
#dayroom .dr-wa-flow .dr-wa-drop{min-height:0;gap:8px;padding:16px;border-radius:14px}
#dayroom .dr-wa-drop.dragging{box-shadow:inset 0 0 0 2px var(--dr-accent)}
#dayroom .dr-modal .dr-wa-droptext,#dayroom .dr-wa-droptext{margin:0;color:var(--dr-muted);font-size:12.5px}
#dayroom .dr-wa-cta{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
#dayroom .dr-wa-cta:empty{display:none}
#dayroom .dr-wa-flow .dr-wa-cta .dr-button{min-height:44px;padding:0 18px;font-size:14px;border-radius:12px}
#dayroom .dr-wa-kicker{display:inline-flex;width:fit-content;margin:0 0 6px;padding:5px 8px;border-radius:7px;background:var(--dr-accent-soft);color:var(--dr-accent-text);font:400 10px/1.2 'Silkscreen',monospace;letter-spacing:.06em;text-transform:uppercase}
#dayroom .dr-wa-job{width:100%;text-align:left}

/* "More options": everything the old review asked, folded away. */
#dayroom .dr-wa-more{border-radius:12px;box-shadow:inset 0 0 0 1px var(--dr-line)}
#dayroom .dr-wa-more>summary{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;cursor:pointer;color:var(--dr-ink);font-size:13.5px;font-weight:800;list-style:none}
#dayroom .dr-wa-more>summary::-webkit-details-marker{display:none}
#dayroom .dr-wa-more>summary::before{content:"+";display:inline-grid;place-items:center;width:18px;height:18px;border-radius:5px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-line-2);font:400 10px/1 'Silkscreen',monospace}
#dayroom .dr-wa-more[open]>summary::before{content:"-"}
#dayroom .dr-wa-more>summary:focus-visible{outline:2px solid var(--dr-accent);outline-offset:-2px;border-radius:12px}
#dayroom .dr-wa-more-body{display:grid;gap:12px;padding:0 14px 14px}
#dayroom .dr-wa-details{box-shadow:none}
#dayroom .dr-wa-details>summary{min-height:32px;padding:0;font-size:12.5px;color:var(--dr-muted)}
#dayroom .dr-wa-detail{margin:0;padding:0 0 0 18px;color:var(--dr-muted);font-size:12.5px;display:grid;gap:2px}
#dayroom .dr-wa-fieldset{display:grid;gap:8px;margin:0;padding:12px;border:0;border-radius:10px;background:var(--dr-sunken)}
#dayroom .dr-wa-fieldset>legend{float:left;width:100%;padding:0;margin-bottom:4px;font-size:12.5px;font-weight:800;color:var(--dr-ink)}
#dayroom .dr-wa-fieldset>summary{cursor:pointer;font-size:12.5px;font-weight:800;color:var(--dr-ink)}
#dayroom .dr-wa-fieldset .dr-field{margin-bottom:0}
#dayroom .dr-wa-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}

/* Step 2 */
#dayroom .dr-wa-flow .dr-wa-phase{font-size:16px;font-weight:800;color:var(--dr-ink);margin:0 0 8px}
#dayroom .dr-wa-problem{display:grid;gap:10px;justify-items:start;padding:14px;border-radius:12px;background:light-dark(#fff4dc,#2d2716);box-shadow:inset 0 0 0 1px light-dark(#ecd49a,#5a4a22)}
#dayroom .dr-modal .dr-wa-problem p,#dayroom .dr-wa-problem p{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0;color:var(--dr-ink);font-size:14px}
#dayroom .dr-wa-error:empty{display:none}

/* The one question */
#dayroom .dr-wa-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
#dayroom .dr-wa-choice{min-height:72px;padding:12px;border:0;border-radius:14px;background:var(--dr-panel);box-shadow:inset 0 0 0 1.5px var(--dr-line-2),0 2px 0 var(--dr-line-2);color:var(--dr-ink);font-size:18px;font-weight:800}
#dayroom .dr-wa-choice:hover{box-shadow:inset 0 0 0 2px var(--dr-accent),0 2px 0 var(--dr-line-2)}
#dayroom .dr-wa-choice:focus-visible{outline:2px solid var(--dr-accent);outline-offset:2px}

/* Step 3: Which one is you? */
#dayroom .dr-wa-people{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:8px;max-height:min(46vh,420px);overflow:auto;padding:2px}
#dayroom .dr-wa-person{display:grid;grid-template-columns:40px minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;align-items:center;min-height:56px;padding:8px 10px;border:0;border-radius:12px;background:var(--dr-panel);box-shadow:inset 0 0 0 1px var(--dr-line-2);color:var(--dr-ink);text-align:left}
#dayroom .dr-wa-person:hover:not([aria-disabled=true]){box-shadow:inset 0 0 0 2px var(--dr-accent)}
#dayroom .dr-wa-person:focus-visible{outline:2px solid var(--dr-accent);outline-offset:2px}
#dayroom .dr-wa-person[aria-pressed=true]{background:var(--dr-accent-soft);box-shadow:inset 0 0 0 2px var(--dr-accent)}
#dayroom .dr-wa-avatar{grid-row:1 / span 2;display:grid;place-items:center;width:40px;height:40px;border-radius:10px;background:var(--wa-tone,#2f6f5e);color:#fff;font:400 13px/1 'Silkscreen',monospace;box-shadow:inset 0 -3px 0 rgba(0,0,0,.18)}
#dayroom .dr-wa-person-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:800}
#dayroom .dr-wa-person-count{color:var(--dr-muted);font-size:12px;font-weight:600}
#dayroom .dr-wa-pager{justify-content:center}
#dayroom .dr-wa-pager:not(:has(.dr-button:not([hidden]))){display:none}

/* Done */
#dayroom .dr-wa-done{display:flex;align-items:center;gap:16px}
#dayroom .dr-wa-done .dr-wa-art{flex:none;width:48px;height:78px}
#dayroom .dr-wa-invite{display:grid;gap:10px;padding:14px;border-radius:12px;background:var(--dr-sunken)}
#dayroom .dr-wa-invite .dr-field{margin:0}
#dayroom .dr-wa-qrbox{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:16px 24px}
#dayroom .dr-wa-qrsteps{display:grid;gap:8px;margin:0;padding-left:22px;font-size:15px;font-weight:700;color:var(--dr-ink)}

@media(max-width:560px){
 #dayroom .dr-wa-howto{grid-template-columns:repeat(2,minmax(0,1fr))}
 #dayroom .dr-wa-title{font-size:18px}
 #dayroom .dr-wa-people{grid-template-columns:1fr;max-height:none}
 #dayroom .dr-wa-flow .dr-wa-cta .dr-button{flex:1 1 100%}
 #dayroom .dr-wa-grid{grid-template-columns:1fr}
}
@media(forced-colors:active){
 #dayroom .dr-wa-person[aria-pressed=true]{outline:2px solid Highlight}
 #dayroom .dr-wa-art{forced-color-adjust:none}
}
#dayroom .dr-wa-flow a.dr-button{text-decoration:none}
/* The status line above the bar names the work; the bar's own label stays for screen readers only. */
#dayroom .dr-wa-flow .dr-progress-label>span:first-child{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#dayroom .dr-wa-flow .dr-progress-label{justify-content:flex-end}
/* Manage group: the same person cards, with a real checkbox so a form saves several names. */
#dayroom .dr-wa-person-check{grid-template-columns:40px minmax(0,1fr) auto;cursor:pointer}
#dayroom .dr-wa-person-check>input{grid-column:3;grid-row:1 / span 2;width:20px;height:20px;accent-color:var(--dr-accent)}
#dayroom .dr-wa-person-check:has(input:checked){background:var(--dr-accent-soft);box-shadow:inset 0 0 0 2px var(--dr-accent)}
#dayroom .dr-wa-person-check:has(input:focus-visible){outline:2px solid var(--dr-accent);outline-offset:2px}
#dayroom .dr-wa-person-check[aria-disabled=true]{cursor:default;opacity:.6}
#dayroom .dr-wa-perspective .dr-wa-people{margin:10px 0}
#dayroom .dr-wa-fieldset .dr-wa-check{display:flex;align-items:center;gap:8px;margin:0;font-size:13px}
#dayroom .dr-wa-person-check:not(:has(.dr-wa-person-count)) .dr-wa-person-name{grid-row:1 / span 2}
/* Manage group on a phone: the title keeps its line; Refresh and Back move underneath it. */
@media(max-width:560px){
 #dayroom .dr-wa-page .dr-page-head{flex-wrap:wrap;padding-right:44px}
 #dayroom .dr-wa-page .dr-page-titles{flex-basis:100%}
 #dayroom .dr-wa-page .dr-page-actions{justify-content:flex-start}
}
/* Import a community (whatsapp-community-ui.js) and the Drive entry point. */
#dayroom .dr-wa-alt{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0;color:var(--dr-muted);font-size:13px}
#dayroom .dr-wa-groups{display:flex;flex-direction:column;gap:6px;margin:0;padding:0;list-style:none}
#dayroom .dr-wa-group{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
#dayroom .dr-wa-group .dr-li-body{flex:1 1 220px;min-width:0;display:flex;flex-direction:column;gap:4px}
#dayroom .dr-wa-group-actions{display:flex;align-items:center;gap:8px;margin-left:auto}
#dayroom .dr-section-option{display:flex;align-items:center;gap:8px}
@media (max-width:480px){#dayroom .dr-wa-group-actions{margin-left:0}}

/* Motion means work is in progress, never an invented completion estimate. */
#dayroom .dr-wa-transfer-scene{position:relative;width:112px;height:42px;margin:14px auto;color:var(--dr-accent)}
#dayroom .dr-wa-transfer-paper{position:absolute;left:4px;top:12px;width:12px;height:16px;border:2px solid currentColor;background:var(--dr-surface);box-shadow:inset 0 4px var(--dr-surface)}
#dayroom .dr-wa-transfer-paper::after{content:"";position:absolute;left:2px;top:4px;width:4px;height:2px;background:currentColor;box-shadow:0 4px currentColor}
#dayroom .dr-wa-transfer-desk{position:absolute;right:0;top:7px;width:30px;height:22px;border:3px solid currentColor}
#dayroom .dr-wa-transfer-desk::after{content:"";position:absolute;left:8px;top:19px;width:8px;height:6px;background:currentColor;box-shadow:-6px 6px currentColor,0 6px currentColor,6px 6px currentColor}
#dayroom [data-transferring="true"] .dr-wa-transfer-paper{animation:dr-wa-delivery 1.6s steps(8,end) infinite}
#dayroom .dr-wa-transfer-count{text-align:center;font-variant-numeric:tabular-nums;font-weight:700}
@keyframes dr-wa-delivery{from{transform:translateX(0)}to{transform:translateX(64px)}}
@media(prefers-reduced-motion:reduce){#dayroom [data-transferring="true"] .dr-wa-transfer-paper{animation:none}}

/* Doorway: the approved sign-in and sign-up screen (auth.html, direction B), over the showroom of the three office themes.
   Values are the mockup's (window-doorway-reference.md §1.2, §3). Loaded after window.css.
   Hidden elements rely on product.css's #dayroom [hidden]{display:none!important}. */

/* Doorway glass: a touch denser than Window's, with a deeper shadow and a 22px blur. */
#dayroom{--dr-door-glass:light-dark(rgba(255,255,255,.82),rgba(16,20,18,.84));--dr-door-glass-shadow:0 24px 60px -12px rgba(24,40,30,.35)}
@media (prefers-color-scheme:dark){#dayroom:not([data-scheme]){--dr-door-glass-shadow:0 30px 70px -12px rgba(0,0,0,.7)}}
#dayroom[data-scheme="dark"]{--dr-door-glass-shadow:0 30px 70px -12px rgba(0,0,0,.7)}
#dayroom[data-scheme="light"]{--dr-door-glass-shadow:0 24px 60px -12px rgba(24,40,30,.35)}
#dayroom :is(#dr-door,#dr-auth,#dr-workspaces) .dr-glass{background:var(--dr-door-glass);-webkit-backdrop-filter:blur(22px) saturate(1.4);backdrop-filter:blur(22px) saturate(1.4);box-shadow:var(--dr-door-glass-shadow),inset 0 0 0 1px var(--dr-glass-line)}

/* The stage (.auth-b): the showroom canvas, a wash behind the card, the evening vignette and the bottom shade. */
body:has(#dayroom[data-screen]){margin:0;padding:0;overflow:hidden}
#dayroom[data-screen]{max-width:none;margin:0;min-height:100dvh}
#dayroom .dr-door{position:fixed;inset:0;z-index:0;isolation:isolate;overflow:hidden;background-color:light-dark(#E8F0D3,#1B231E);--dr-door-wash:linear-gradient(90deg,transparent 45%,light-dark(rgba(244,249,236,.3),rgba(8,12,10,.4)) 80%)}
/* The hand-over to the office (product-app.js doorway()): the stage lifts above the shell (which comes later in the
   DOM at the same level) and fades out while the showroom keeps moving, then is hidden. Modals (z 10+) stay on top.
   Reduced motion skips the fade in script, and here too. */
#dayroom .dr-door{transition:opacity .32s ease-out}
#dayroom .dr-door.is-leaving{z-index:4;opacity:0;pointer-events:none}
@media (prefers-reduced-motion:reduce){#dayroom .dr-door{transition:none}}
#dayroom .dr-door-world{position:absolute;inset:0;z-index:0;display:block;width:100%;height:100%;image-rendering:pixelated}
#dayroom .dr-door::before{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;background:var(--dr-door-wash),radial-gradient(ellipse 60% 70% at 72% 50%,light-dark(rgba(12,16,14,.10),rgba(6,9,8,.45)),light-dark(rgba(12,16,14,.35),rgba(6,9,8,.72)))}
#dayroom .dr-door::after{content:'';position:absolute;left:0;right:0;bottom:0;height:55%;z-index:1;pointer-events:none;background:linear-gradient(180deg,rgba(0,0,0,0),rgba(8,14,11,.55))}
#dayroom .dr-door-top{position:absolute;left:28px;top:24px;right:28px;z-index:2;display:flex;align-items:center;justify-content:space-between}
/* AGENTS.md "One workspace logo": Dayroom's own mark is a signed-out (or before-any-workspace) logo. Once
   someone already has a workspace, product-app.js's updateHasWorkspaces() sets this flag from
   state.user && state.workspaces.length, so every Doorway card steps the wordmark aside -- the loading
   and error cards and a password reset included, not just the chooser's own list (a :has() on
   #dr-space-existing would only ever match the chooser itself, since that element's markup doesn't exist
   on the others). Sign-up's Your team card starts with no workspaces yet, so it keeps the wordmark until
   the first one exists. */
#dayroom[data-has-workspaces] .dr-door-top{display:none}
/* The Bell-d lockup (AGENTS.md "Browser favicon and Dayroom logo", 2026-10-25) sits straight on the office, with no pill behind
   it (founder, 2026-10-26: "it should just be pasted without the dayroom logo bg"). It uses the light reverse lockup, like the
   white quote below. It stays narrower than DayroomDoorwayWorld's LABEL.left (208px) so office labels never meet it. */
#dayroom .dr-door-wordmark{flex:none;display:flex;align-items:center}
#dayroom .dr-door-logo{display:block;width:134px;height:30px;background:url('/assets/lockup-reverse.svg') center/contain no-repeat}
#dayroom .dr-door-mark{display:none;width:auto;height:22px}
/* The showroom's overlay (doorway-world.js): Card bubbles from office-overlay.css on 0 × 0 anchors, and a glass label
   per office in the top bar. Both sit above the vignette and never take clicks. */
#dayroom .dr-door-bubbles{z-index:2}
#dayroom .dr-door-anchor{position:absolute;left:0;top:0;width:0;height:0}
#dayroom .dr-door-labels{position:absolute;inset:0;z-index:2;overflow:hidden;pointer-events:none}
#dayroom .dr-door-label{position:absolute;left:0;top:0;display:inline-flex;align-items:center;gap:8px;height:30px;padding:0 14px 0 12px;border-radius:999px;font-size:12.5px;font-weight:800;color:var(--dr-ink);white-space:nowrap}
#dayroom .dr-door-label::before{content:'';flex:none;width:6px;height:6px;background:var(--dr-accent);box-shadow:0 0 0 2px var(--dr-accent-soft)}
#dayroom .dr-door-quote{position:absolute;left:56px;bottom:52px;z-index:2;color:#fff}
#dayroom .dr-door-quote p{margin:0;font-size:44px;font-weight:800;letter-spacing:-0.035em;line-height:1.05;text-shadow:0 4px 24px rgba(0,0,0,.35)}
#dayroom .dr-door-quote small{display:block;margin-top:12px;font-size:15px;font-weight:700;opacity:.9;text-shadow:0 2px 10px rgba(0,0,0,.3)}

/* The card (.card.glass): one per screen, in a host that lets clicks through everywhere else.
   Its position and width are mirrored by DayroomDoorwayWorld.cardLeft(); change both together. */
#dayroom :is(#dr-auth,#dr-workspaces){position:fixed;inset:0;z-index:3;pointer-events:none}
#dayroom .dr-door-card{pointer-events:auto;position:absolute;right:96px;top:50%;transform:translateY(-50%);box-sizing:border-box;width:480px;max-height:calc(100dvh - 32px);overflow-y:auto;padding:36px 40px 30px;border-radius:24px;color:var(--dr-ink);font-size:14px;line-height:1.45}
#dayroom .dr-door-loading{padding:28px 40px}
#dayroom .dr-door-loading .dr-door-eyebrow{margin-bottom:12px}
#dayroom :is(#dr-auth,#dr-workspaces) :is(button,a):focus-visible{outline:2px solid var(--dr-accent);outline-offset:2px}

/* Form pieces (§3.4). */
#dayroom .dr-door-eyebrow{display:inline-flex;align-items:center;gap:8px;font:400 10px 'Silkscreen',monospace;letter-spacing:.06em;color:var(--dr-accent-text);background:var(--dr-accent-soft);padding:6px 10px;border-radius:8px;margin-bottom:18px}
#dayroom .dr-door-h1{margin:0;font-size:34px;font-weight:800;letter-spacing:-0.03em;line-height:1.1;color:var(--dr-ink);outline:none}
/* The heading takes focus only so a screen reader announces the new card. Scoped through the hosts so the shared
   [tabindex]:focus-visible ring (workspace-shell.css) can't outrank the outline:none above. */
#dayroom :is(#dr-auth,#dr-workspaces) .dr-door-h1:focus-visible{outline:none}
/* Minor 1: margin:0 left no gap under the headline (.dr-door-h1); the mockup keeps 10px, cramping every card. */
#dayroom .dr-door-lede{margin:10px 0 0;color:var(--dr-muted);font-size:15px;font-weight:500;line-height:1.5}
#dayroom .dr-door-steps{display:flex;gap:6px;margin:22px 0 0}
/* Minor 1: --dr-faint reads at 2.3-3.3:1 here, below AA; --dr-muted is the same fix the message times already use. */
#dayroom .dr-door-steps>span{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:700;color:var(--dr-muted)}
#dayroom .dr-door-steps>span b{width:20px;height:20px;border-radius:6px;display:grid;place-items:center;font-size:11px;background:var(--dr-sunken);color:var(--dr-muted);box-shadow:inset 0 0 0 1px var(--dr-line-2)}
#dayroom .dr-door-steps>span.is-on{color:var(--dr-ink)}
#dayroom .dr-door-steps>span.is-on b{background:var(--dr-accent);color:var(--dr-accent-ink);box-shadow:none}
#dayroom .dr-door-steps>i{width:18px;height:1px;background:var(--dr-line-2);align-self:center}
#dayroom .dr-door-google-wrap{margin-top:26px}
#dayroom .dr-door-google{width:100%;height:46px;border:0;border-radius:12px;display:flex;align-items:center;justify-content:center;gap:10px;font:inherit;font-weight:800;font-size:14px;background:var(--dr-field);box-shadow:inset 0 0 0 1px var(--dr-line-2),0 1px 2px rgba(0,0,0,.04);color:var(--dr-ink);cursor:pointer}
#dayroom .dr-door-gl{display:block;flex:none}
/* An opaque, palette-matched backing keeps this text readable over the moving office. */
#dayroom .dr-door-or{display:flex;align-items:center;gap:12px;margin:18px 0;font-size:12px;font-weight:700;color:var(--dr-muted)}
#dayroom .dr-door-or>span{padding:3px 8px;border-radius:6px;background:var(--dr-panel)}
#dayroom .dr-door-or::before,#dayroom .dr-door-or::after{content:'';flex:1;height:1px;background:var(--dr-line)}
#dayroom .dr-door-field{margin-top:14px}
/* A card with no steps or Google block (recovery) keeps the lede's usual 26px gap before its first field. */
#dayroom .dr-door-lede+form>.dr-door-field:first-child{margin-top:26px}
#dayroom .dr-door-flabel{display:flex;justify-content:space-between;margin:0 0 7px;font-size:13px;font-weight:800;color:var(--dr-ink-2)}
#dayroom .dr-door-link{padding:0;border:0;background:none;font:inherit;font-weight:800;color:var(--dr-accent-text);text-decoration:none;cursor:pointer}
#dayroom .dr-door-input{height:46px;border-radius:12px;background:var(--dr-field);box-shadow:inset 0 0 0 1px var(--dr-field-line);display:flex;align-items:center;padding:0 14px;font-size:14.5px;font-weight:600;color:var(--dr-ink)}
#dayroom .dr-door-input:focus-within{box-shadow:inset 0 0 0 1.5px var(--dr-accent),0 0 0 4px var(--dr-accent-soft)}
/* The inner input's reset is scoped through the hosts so it outranks any global field rule (plan 1 Task 9). */
#dayroom :is(#dr-auth,#dr-workspaces) .dr-door-input input{flex:1;min-width:0;height:100%;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;font:inherit;color:inherit;outline:none}
/* I9: the wrapper's own ring above is pure box-shadow, invisible to a contrast theme, and the actual focused
   element is this inner input, not the wrapper -- a transparent outline only gets a theme's own paint when
   it sits on a :focus-visible rule for the element that is itself focused. outline:none above still wins at
   rest (same specificity, earlier in the file), so this only ever shows while focused. */
#dayroom :is(#dr-auth,#dr-workspaces) .dr-door-input input:focus-visible{outline:2px solid transparent;outline-offset:2px}
/* Minor 1: --dr-faint reads at 2.3-3.3:1 here, below AA; --dr-muted is the same fix the message times already use. */
#dayroom :is(#dr-auth,#dr-workspaces) .dr-door-input input::placeholder{color:var(--dr-muted);font-weight:500;opacity:1}
#dayroom :is(#dr-auth,#dr-workspaces) .dr-door-input input:autofill{-webkit-text-fill-color:var(--dr-ink);caret-color:var(--dr-ink);box-shadow:0 0 0 1000px var(--dr-field) inset}
#dayroom .dr-door-show{margin-left:auto;padding:0 0 0 10px;border:0;background:none;font:inherit;font-size:12.5px;font-weight:800;color:var(--dr-muted);cursor:pointer}
#dayroom .dr-door-meter{display:flex;flex-wrap:wrap;gap:5px;row-gap:0;margin-top:9px;align-items:center}
#dayroom .dr-door-meter i{height:4px;flex:1;border-radius:2px;background:var(--dr-line-2)}
#dayroom .dr-door-meter[data-level="1"] i:nth-child(1){background:var(--st-dnd)}
#dayroom .dr-door-meter[data-level="2"] i:nth-child(-n+2){background:var(--st-working)}
#dayroom .dr-door-meter[data-level="3"] i:nth-child(-n+3),#dayroom .dr-door-meter[data-level="4"] i{background:#3DAA6D}
/* The hint takes its own line under the bars, so a long label never squeezes the bars to 0px or runs past a 360px card. */
#dayroom .dr-door-meter span{flex:1 1 100%;min-width:0;margin:6px 0 0;font-size:12px;font-weight:700;color:var(--dr-muted)}
#dayroom .dr-door-cta{margin-top:22px;width:100%;height:48px;border:0;border-radius:12px;display:flex;align-items:center;justify-content:center;gap:10px;background:var(--dr-accent);color:var(--dr-accent-ink);font:inherit;font-weight:800;font-size:15px;box-shadow:0 8px 20px -8px rgba(31,90,65,.6),inset 0 -2px 0 rgba(0,0,0,.14);cursor:pointer}
#dayroom .dr-door-cta svg.dr-i{width:18px;height:18px;stroke-width:2.2}
#dayroom :is(.dr-door-cta,.dr-door-google,.dr-door-secondary):disabled{opacity:.65;cursor:wait}
/* The chooser's own remaining controls (rows, tabs, the two footer links and Back) get the same busy look while
   setBusy() disables #dr-workspaces button,#dr-workspaces input during an "Opening …"/"Joining …" run. */
#dayroom #dr-workspaces :is(.dr-door-ws,.dr-door-seg button,.dr-door-link,.dr-door-back):disabled{opacity:.65;cursor:wait}
#dayroom .dr-door-switch{margin:20px 0 0;text-align:center;font-size:13.5px;font-weight:600;color:var(--dr-muted)}
#dayroom .dr-door-error{margin-top:14px;padding:10px 12px;border-radius:10px;background:color-mix(in srgb,var(--st-dnd) 12%,transparent);color:light-dark(#A13636,#F4B3AB);font-size:13px;font-weight:700;line-height:1.45}
#dayroom .dr-door-error:empty{display:none}
#dayroom .dr-door-note{margin-top:18px;padding:12px 14px;border-radius:12px;background:var(--dr-accent-soft);color:var(--dr-accent-text);font-size:12.5px;font-weight:700;line-height:1.45}
#dayroom .dr-door-note p{margin:0}
#dayroom .dr-door-note>.dr-door-link{display:inline-block;margin-top:8px}
/* When a browser blocks the sign-in tab, google-signin.js links it as a.dr-entry-link in this note. The old screen's lime
   link colour all but vanishes on the light note (1.07:1), so the link takes the note's own ink, underlined. */
#dayroom .dr-door-note .dr-entry-link{min-height:0;font:inherit;font-weight:800;color:inherit;text-decoration:underline;text-decoration-color:currentColor;text-underline-offset:2px}

/* Validation inside Doorway fields: the shared .dr-field-error box and input ring would clash with the glass. */
#dayroom .dr-door-field .dr-field-error{margin:7px 0 0;padding:0;border:0;background:none;font-size:12.5px;font-weight:700;line-height:1.4;color:light-dark(#A13636,#F4B3AB)}
#dayroom :is(#dr-auth,#dr-workspaces) .dr-door-input input[aria-invalid="true"]{outline:none}
#dayroom .dr-door-input:has(input[aria-invalid="true"]){box-shadow:inset 0 0 0 1.5px var(--st-dnd),0 0 0 4px color-mix(in srgb,var(--st-dnd) 16%,transparent)}

/* Layers above the stage. */
#dayroom[data-screen] .dr-overlay{position:fixed;z-index:20}
/* The #dr-live toast (say()): restores the placement and look the deleted entry-screen rule gave it, now on tokens so
   it reads in both schemes. Window T9 has landed and gives #dr-live a call-stage lift, #dayroom:has(#dr-callbox
   .dr-call-screen) #dr-live{bottom:126px}, specificity (3,1,0) -- #dr-callbox keeps that class whether or not the
   call screen is actually visible, so it still matches while a Doorway card covers #dr-product. Left alone, that
   lift beats the placement below (was (2,2,0)) whenever the chooser shows mid-call, and 126px from the bottom
   covers "Create workspace" or the name field. #dayroom named twice -- a deliberate repeat of the same simple
   selector, not a typo, worth exactly one more ID -- raises this rule to (3,2,0): it outranks the lift on ID count
   alone, unconditionally, rather than by hoping doorway.css keeps loading after window.css. Every position side is
   still set explicitly so nothing of T9's leaks through -- transform included: Window's own #dr-live sets
   translate(-50%, 6px) to centre under left:50%, and .is-shown animates it to translate(-50%, 0); left alone
   without transform:none here left that centring translate applied to left:24px instead, pushing the toast
   about half off the left edge (measured -158 to -181px at 800-1920px wide) and truncating every message,
   including the one-time recovery code's own Copy feedback. bottom sits at 8px rather than 16px so the toast
   clears the tagline's <small> in the corner instead of overlapping it by 8px once the translate stopped
   pushing the toast down and to the right of where it visually landed before. */
#dayroom:is(#dayroom):is([data-screen=auth],[data-screen=workspaces]) #dr-live:not(:empty){position:fixed;top:auto;right:auto;bottom:8px;left:24px;transform:none;z-index:25;width:fit-content;max-width:calc(100% - 48px);padding:12px 16px;background:var(--dr-panel);border:1px solid var(--dr-line);border-radius:10px;color:var(--dr-ink);box-shadow:var(--dr-shadow);font-size:13px;font-weight:600}

/* Smaller windows (the desktop app allows 900×650). Keep in step with DayroomDoorwayWorld.cardLeft(). */
@media (max-width:1279px){#dayroom .dr-door-card{right:48px}#dayroom .dr-door-quote p{font-size:36px}}
@media (max-width:1023px){#dayroom .dr-door-quote{display:none}}
/* Minor 11: below here the card centres instead of sitting right-aligned, sharing the wordmark's horizontal
   space (left:28px;right:28px, .dr-door-top above) for the first time. The base rule's top:50% only ever
   guaranteed 16px of clearance above the card once its max-height (100dvh - 32px) maxes out, well short of
   the wordmark's own ~50px (top:24px plus its pill), so the sign-up card -- three fields, Google and the
   step indicator, the tallest Doorway card -- crept up into it on a short, narrow window. top:88px anchors
   the card below the wordmark instead of centring through it, with max-height trimmed by the same 104px
   (88 clearance + 16 floor) so it still never runs off the bottom. */
@media (max-width:860px){#dayroom .dr-door-card{left:50%;right:auto;top:88px;transform:translateX(-50%);max-height:calc(100dvh - 104px);width:min(480px,calc(100vw - 32px));padding:28px 24px 24px}#dayroom .dr-door{--dr-door-wash:radial-gradient(ellipse 70% 60% at 50% 50%,light-dark(rgba(244,249,236,.3),rgba(8,12,10,.4)),transparent)}}

/* Phone landscape and other short windows: 345px is never enough for a 584-687px card, so the card centres at the
   top and splits into two columns (heading and links left, the form right) so the primary button shows on first
   paint. Height-gated, so the 900x650 desktop minimum and the phone portrait rules (mobile-entry.css) are untouched. */
@media (max-height:500px) and (min-width:601px){
 #dayroom .dr-door-top{top:calc(env(safe-area-inset-top,0px) + 12px);left:max(16px,env(safe-area-inset-left,0px))}
 /* The card reserves only 64px beside it here, so the pill carries the Bell-d mark alone. */
 #dayroom .dr-door-logo{display:block;width:112px;height:26px}
 #dayroom .dr-door-card:not(.is-wide){left:50%;right:auto;transform:translateX(-50%);top:calc(env(safe-area-inset-top,0px) + 12px);width:min(760px,calc(100vw - 2*max(16px,env(safe-area-inset-left,0px),env(safe-area-inset-right,0px)) - 128px));max-height:calc(var(--dr-mobile-height,100dvh) - env(safe-area-inset-top,0px) - 24px - env(safe-area-inset-bottom,0px));padding:20px 24px;overscroll-behavior:contain;scroll-padding-block:16px}
 #dayroom #dr-auth .dr-door-card:not(.is-wide):has(>form){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);column-gap:28px;align-content:start}
 #dayroom #dr-auth .dr-door-card:not(.is-wide):has(>form)>*{grid-column:1}
 #dayroom #dr-auth .dr-door-card:not(.is-wide):has(>form)>.dr-door-eyebrow{justify-self:start}
 #dayroom #dr-auth .dr-door-card:not(.is-wide):has(>form)>form{grid-column:2;grid-row:1/span 8}
 #dayroom #dr-auth .dr-door-card:not(.is-wide):has(>form) form>.dr-door-field:first-child{margin-top:0}
 #dayroom #dr-workspaces .dr-door-card:not(.is-wide){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);grid-auto-flow:row dense;column-gap:28px;align-content:start;align-items:start}
 #dayroom #dr-workspaces .dr-door-card:not(.is-wide)>*{grid-column:1}
 #dayroom #dr-workspaces .dr-door-card:not(.is-wide)>.dr-door-eyebrow{justify-self:start}
 #dayroom #dr-workspaces .dr-door-card:not(.is-wide)>:is(#dr-space-invite,.dr-door-seg,section[id$=-panel],.dr-door-switch){grid-column:2}
 #dayroom #dr-workspaces .dr-door-card:not(.is-wide)>section[id$=-panel]{grid-row-end:span 3}
 #dayroom .dr-door-card:not(.is-wide) .dr-door-h1{font-size:26px}
 #dayroom .dr-door-card:not(.is-wide) .dr-door-eyebrow{margin-bottom:10px}
 #dayroom .dr-door-google-wrap{margin-top:16px}
 #dayroom .dr-door-or{margin:12px 0}
 #dayroom .dr-door-field{margin-top:10px}
 #dayroom .dr-door-cta{margin-top:16px}
}

/* The character studio needs room: a wide card, centred, the studio filling it. top:50% is repeated here
   (already the inherited value, same as the base rule above) only so this stays centred on its own once the
   narrow-card rule above starts setting top:88px: #dayroom + two classes outranks #dayroom + one regardless
   of load order, so this keeps the wide card's own, taller centring immune to that change. */
#dayroom .dr-door-card.is-wide{left:50%;top:50%;right:auto;transform:translate(-50%,-50%);width:min(1080px,calc(100vw - 64px));height:min(780px,calc(100dvh - 48px));max-height:none;display:flex;flex-direction:column;overflow:hidden}
#dayroom .dr-door-card.is-wide #dr-people-studio{flex:1;min-height:0;margin-top:18px}
#dayroom .dr-door-card.is-wide .dp-studio{height:100%;min-height:0;max-height:none}
#dayroom:has(.dr-door-card.is-wide) :is(.dr-door-top,.dr-door-quote,.dr-door-bubbles,.dr-door-labels){display:none}
/* At people.css's one-column breakpoint the preview and the tabs/panel stack, needing more height than the wide
   card's own min-height:0 chain leaves them; without a floor the preview is squeezed to nothing. Let the card
   scroll instead, so Skip/Continue stay reachable even at 640×700. */
@media (max-width:820px){#dayroom .dr-door-card.is-wide{overflow-y:auto}#dayroom .dr-door-card.is-wide #dr-people-studio{min-height:560px}}
/* ...and the studio takes its natural height there instead of filling the card, so none of its stacked rows (people.css)
   is squeezed and the card scrolls over all of it, its bottom padding still below Continue. */
@media (max-width:820px){#dayroom .dr-door-card.is-wide #dr-people-studio{flex:none}#dayroom .dr-door-card.is-wide .dp-studio{height:auto}}
/* Phone landscape keeps the two columns (there's width to spare) but stops squeezing them into nested scrollers:
   the card scrolls instead, and Skip/Continue stay pinned at its bottom edge. */
@media (max-height:600px){
 #dayroom .dr-door-card.is-wide{overflow-y:auto;padding-bottom:0}
 #dayroom .dr-door-card.is-wide #dr-people-studio{flex:none}
 #dayroom .dr-door-card.is-wide .dp-studio{height:auto}
 #dayroom .dr-door-card.is-wide .dp-foot{position:sticky;bottom:0;z-index:3;padding-bottom:16px;background:var(--dr-door-glass);-webkit-backdrop-filter:blur(22px) saturate(1.4);backdrop-filter:blur(22px) saturate(1.4)}
 #dayroom .dr-door-card.is-wide .dr-door-lede{display:none}
}
/* The recovery code: shown once, monospaced so every character reads clearly. */
#dayroom :is(#dr-auth,#dr-workspaces) .dr-door-input #dr-recovery-code{font:700 14px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.02em}
/* Your team. Tiles are the Window .ws-tile; the tabs are the Window .seg with text. */
#dayroom .dr-door-back{display:inline-flex;margin:0 0 16px;padding:0;border:0;background:none;font:inherit;font-size:13px;font-weight:800;color:var(--dr-muted);cursor:pointer}
#dayroom .dr-door-listhead{margin:22px 0 0}
#dayroom .dr-door-wslist{display:flex;flex-direction:column;gap:8px;max-height:220px;overflow-y:auto;padding:2px}
#dayroom .dr-door-ws{display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;border:0;border-radius:12px;background:var(--dr-field);box-shadow:inset 0 0 0 1px var(--dr-line-2);font:inherit;color:var(--dr-ink);text-align:left;cursor:pointer}
/* The general button/a ring (line 44) sits at a 2px offset, outside the row's own border box. The list
   around it scrolls with only 2px of padding, so that ring fell almost entirely outside the scroller's
   clip and showed as four corner specks (WCAG 2.4.7). An inset ring stays inside the row's own box, so
   it's never clipped, whatever the list's padding. Needs the same #dr-auth,#dr-workspaces host wrapper
   as the general rule to outrank it: that rule is (2,1,1) on id count alone, so a bare
   .dr-door-ws:focus-visible (1,2,0) could never win the outline-offset property, no matter the load order. */
#dayroom :is(#dr-auth,#dr-workspaces) .dr-door-ws:focus-visible{outline-offset:-2px}
#dayroom .dr-door-ws-tile{width:40px;height:40px;flex:none;border-radius:12px;background:#E8D8AA;color:#5B4520;display:grid;place-items:center;font:400 13px 'Silkscreen',monospace;box-shadow:inset 0 0 0 1px rgba(0,0,0,.07),inset 0 -3px 0 rgba(0,0,0,.08)}
#dayroom .dr-door-ws b{display:block;font-size:15px;font-weight:800;letter-spacing:-0.01em}
#dayroom .dr-door-ws small{display:block;font-size:12.5px;font-weight:600;color:var(--dr-muted)}
#dayroom .dr-door-ws svg.dr-i{margin-left:auto;color:var(--dr-muted)}
#dayroom .dr-door-seg{display:flex;margin-top:22px;padding:3px;border-radius:10px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-line)}
#dayroom .dr-door-seg button{flex:1;height:34px;border:0;border-radius:7px;background:none;font:inherit;font-size:13px;font-weight:800;color:var(--dr-muted);cursor:pointer}
#dayroom .dr-door-seg button[aria-selected="true"]{background:var(--dr-panel);color:var(--dr-ink);box-shadow:0 1px 2px rgba(0,0,0,.10),0 0 0 1px var(--dr-line)}
#dayroom .dr-door-hint{margin:7px 0 0;font-size:12px;font-weight:600;line-height:1.45;color:var(--dr-muted)}
#dayroom .dr-door-progress{margin:12px 0 0;font-size:12.5px;font-weight:700;color:var(--dr-accent-text)}
#dayroom .dr-door-secondary{margin-top:10px;width:100%;height:46px;border:0;border-radius:12px;display:flex;align-items:center;justify-content:center;gap:8px;background:none;box-shadow:inset 0 0 0 1px var(--dr-line-2);font:inherit;font-weight:800;font-size:14px;color:var(--dr-ink);cursor:pointer}
#dayroom .dr-door-account{display:flex;align-items:center;gap:10px;margin-top:22px;padding-top:16px;border-top:1px solid var(--dr-line)}
#dayroom .dr-door-account canvas{width:30px;height:30px;flex:none;border-radius:9px}
#dayroom .dr-door-account b{display:block;font-size:13px;font-weight:800;color:var(--dr-ink)}
#dayroom .dr-door-account span{display:block;font-size:12px;font-weight:600;color:var(--dr-muted);overflow-wrap:anywhere}
#dayroom .dr-door-account .dr-door-link{margin-left:auto;font-size:12.5px}
/* I9: the entry field's edge above is box-shadow only, which a Windows contrast theme drops, leaving Email
   and Password with no visible boundary. */
@media (forced-colors:active){
 #dayroom .dr-door-input{border:1px solid CanvasText}
}

/* Keep the short onboarding questions usable on landscape phones. */
@media (max-height:500px) and (min-width:601px){
 #dayroom #dr-workspaces .dr-door-card>#dr-detail-form{grid-column:2;grid-row:1/span 3;min-width:0}
 #dayroom #dr-detail-form>.dr-door-field:first-child{margin-top:0}
}

/* Onboarding choices share the doorway field rhythm. */
.dr-door-field select{width:100%;min-height:48px;padding:12px;border:1px solid currentColor;border-radius:10px;background:var(--dr-field);color:var(--dr-ink);font:inherit;}
.dr-onboarding-other:not([hidden]){display:grid;gap:8px;margin-top:12px;}
.dr-onboarding-rooms{display:grid;gap:12px;margin:20px 0;border:0;padding:0;}
.dr-onboarding-rooms label{display:flex;align-items:center;gap:10px;}
.dr-onboarding-rooms input{width:20px;height:20px;}

#dayroom .dr-door-input select{border:0;min-width:0;min-height:0;height:100%;padding:0;box-shadow:none;outline-offset:5px;border-radius:0;background:transparent;}
#dayroom .dr-onboarding-other input{width:100%;min-height:46px;border:1px solid var(--dr-field-line);border-radius:12px;background:var(--dr-field);color:var(--dr-ink);padding:10px 14px;font:inherit;box-sizing:border-box;}
#dayroom #dr-auth-recover{display:block;width:fit-content;margin-top:14px;min-height:32px;line-height:1.5}

/* Company email: separate each decision and keep labels above their controls. */
#dayroom #dr-detail-form.dr-email-setup .dr-door-field{display:block;margin-top:24px}
#dayroom #dr-detail-form.dr-email-setup .dr-door-flabel{margin-bottom:10px}
#dayroom #dr-detail-form.dr-email-setup .dr-door-hint{margin-top:14px;line-height:1.6}
#dayroom #dr-detail-form.dr-email-setup .dr-door-cta{margin-top:28px}

/* Role and department: native single-choice inputs presented as wrapping bubbles. */
#dayroom .dr-onboarding-choice{border:0;padding:0;margin:24px 0 0;min-width:0}
#dayroom .dr-onboarding-choice legend{padding:0;margin-bottom:10px;font-size:13px;font-weight:800;color:var(--dr-ink-2)}
#dayroom .dr-onboarding-bubbles{display:flex;flex-wrap:wrap;gap:8px}
#dayroom .dr-onboarding-bubble{position:relative;display:block;cursor:pointer;max-width:100%}
#dayroom .dr-onboarding-bubble input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
#dayroom .dr-onboarding-bubble span{display:flex;align-items:center;min-height:42px;box-sizing:border-box;padding:9px 14px;border:1px solid var(--dr-field-line);border-radius:999px;background:var(--dr-field);color:var(--dr-ink);font-size:13px;font-weight:600;line-height:1.4}
#dayroom .dr-onboarding-bubble:hover span{border-color:var(--dr-accent)}
#dayroom .dr-onboarding-bubble input:checked+span{background:var(--dr-accent);color:var(--dr-accent-ink);border-color:var(--dr-accent)}
#dayroom .dr-onboarding-bubble input:checked+span::before{content:'✓';margin-right:6px;font-weight:800}
#dayroom .dr-onboarding-bubble input:focus-visible+span{outline:2px solid var(--dr-accent);outline-offset:3px}
#dayroom .dr-onboarding-expand{display:block;margin-top:10px;padding:6px 0;border:0;background:none;color:var(--dr-ink-2);font:inherit;font-size:12px;font-weight:700;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
#dayroom .dr-role-setup>.dr-door-hint{margin-top:22px}

/* Use the actual brand artwork on loading and recovery cards. */
#dayroom .dr-door-card-logo{display:block;width:134px;height:30px;margin-bottom:24px;background:url('/assets/lockup.svg') left center/contain no-repeat}
@media(prefers-color-scheme:dark){#dayroom:not([data-scheme]) .dr-door-card-logo{background-image:url('/assets/lockup-reverse.svg')}}

#dayroom[data-scheme="dark"] .dr-door-card-logo{background-image:url('/assets/lockup-reverse.svg')}

#dr-billing-banner{margin:8px 12px;padding:10px 12px;border:1px solid var(--dr-line);border-radius:10px;background:var(--dr-panel);font-size:12px;line-height:1.5}
#dr-billing-banner[hidden]{display:none}
#dr-billing-banner .dr-button{margin-top:6px;width:100%}
.dr-billing-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.dr-billing-fields .dr-field:last-child{grid-column:1/-1}
.dr-billing-total{display:flex;flex-direction:column;gap:6px;padding:18px;border:1px solid var(--dr-line);border-radius:12px;background:var(--dr-bg)}
.dr-billing-total strong{font-size:28px;line-height:1.25;font-variant-numeric:tabular-nums}
.dr-billing-pending{padding-bottom:18px;margin-bottom:18px;border-bottom:1px solid var(--dr-line);overflow-wrap:anywhere}
.dr-billing-page .dr-card-body>p:first-child{margin-top:0}
.dr-billing-page [hidden]{display:none!important}
@media(max-width:480px){.dr-billing-fields{grid-template-columns:1fr}}
#dayroom .dr-workspace-menu #dr-billing{justify-content:space-between;gap:8px}
#dayroom .dr-plan-tag{flex:none;padding:2px 7px;border-radius:6px;border:1px solid var(--dr-line-2);color:var(--dr-muted);font-size:11px;font-weight:700;line-height:1.4}

.dr-feedback-entry{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:36px;margin:8px 0 0;padding:7px 12px;border:1px solid var(--dr-line-2);border-radius:8px;background:var(--dr-panel);color:var(--dr-ink);font:inherit;font-size:12px;cursor:pointer}
.dr-feedback-entry:hover{background:var(--dr-hover)}
.dr-feedback-entry svg{width:16px;height:16px;flex:none}
.dr-feedback-entry:focus-visible{outline:2px solid var(--dr-ink);outline-offset:2px}
#dr-feedback-form textarea{resize:vertical;min-height:130px;max-height:40vh}
#dr-feedback-form .dr-form-actions{justify-content:space-between;gap:12px;flex-wrap:wrap}
.dr-feedback-success{padding:24px 0;line-height:1.6}

/* Stacked edges make the existing company tile the workspace switcher. */
#dayroom .dr-workspace-deck{position:relative;isolation:isolate;flex:none;padding:0;border:0;background:transparent;color:inherit;cursor:pointer;margin-right:4px}
#dayroom .dr-workspace-deck::before,#dayroom .dr-workspace-deck::after{content:'';position:absolute;inset:0;border:1px solid var(--dr-line-2);border-radius:10px;background:var(--dr-panel);z-index:-1}
#dayroom .dr-workspace-deck::before{transform:translate(5px,-5px)}
#dayroom .dr-workspace-deck::after{transform:translate(2px,-2px)}
#dayroom .dr-workspace-deck .dr-ws-tile{margin:0}
#dayroom .dr-workspace-deck-count{position:absolute;right:-8px;top:-10px;min-width:18px;padding:2px 4px;border-radius:10px;background:var(--dr-ink);color:var(--dr-panel);font:700 10px/14px var(--dr-font, sans-serif);border:2px solid var(--dr-panel)}
#dayroom .dr-workspace-deck-count[hidden]{display:none}
#dayroom .dr-workspace-alerts{position:fixed;bottom:24px;right:24px;display:grid;gap:10px;z-index:85;width:min(360px,calc(100vw - 32px));max-height:50vh;overflow:auto}
#dayroom .dr-workspace-alerts article{display:flex;background:var(--dr-panel);color:var(--dr-ink);border:1px solid var(--dr-line-2);border-radius:14px;box-shadow:0 4px 18px #0002}
#dayroom .dr-workspace-alerts button{border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;text-align:left}
#dayroom .dr-workspace-alert-open{flex:1;min-width:0;padding:16px}
#dayroom .dr-workspace-alert-open>*{display:block;overflow-wrap:anywhere}
#dayroom .dr-workspace-alert-open span{font-size:13px;margin:5px 0;line-height:1.5}
#dayroom .dr-workspace-alert-open small{font-size:11px;color:var(--dr-muted)}
#dayroom .dr-workspace-alert-close{align-self:flex-start;padding:12px;min-width:40px;min-height:40px}
#dayroom :is(.dr-workspace-deck,.dr-workspace-alerts button):focus-visible{outline:3px solid var(--dr-ink);outline-offset:4px}

/* ---------- Your workspaces: a deck of cards (workspace-deck.js) ---------- */
/* Every card peeks out by --peek; the raised one shows its whole face and the cards after it slide down to make room. */
#dayroom .dr-deck{--peek:60px;--card:118px;--add:52px;--drop:calc(var(--card) - var(--peek))}
#dayroom .dr-deck .dr-deck-list{position:relative;display:block;gap:0;padding:0;margin:14px 14px 16px;overflow:visible;height:calc(var(--n) * var(--peek) + var(--drop) + var(--add) + 6px);flex:none}
#dayroom #dr-modal-body:has(>.dr-deck){overflow:auto;overscroll-behavior:contain}
#dayroom .dr-deck .dr-deck-card{position:absolute;left:0;right:0;top:calc(var(--i) * var(--peek));z-index:calc(var(--i) + 1);display:flex;flex-direction:column;align-items:stretch;gap:0;width:auto;height:var(--card);min-height:0;margin:0;padding:0;border:1px solid var(--dr-line-2);border-radius:14px;background:var(--dr-panel);box-shadow:0 -1px 0 rgba(255,255,255,.5) inset,0 -8px 14px -12px rgba(0,0,0,.35);overflow:hidden;text-align:left;
 --shift:0px;--tilt:-.7deg;transform-origin:50% 0;transform:translateY(var(--shift)) rotate(var(--tilt)) scale(.985);transition:transform .1s cubic-bezier(.2,.8,.2,1),box-shadow .08s ease,opacity .07s ease,border-color .07s ease}
/* A loose pile: cards lean a little left and right; the raised one squares up and comes forward. */
#dayroom .dr-deck .dr-deck-card:nth-child(even){--tilt:.6deg}
#dayroom .dr-deck .dr-deck-card.is-raised{transform:translateY(var(--shift)) rotate(0deg) scale(1)}
#dayroom .dr-deck .dr-deck-card.is-add{--tilt:0deg}
/* Cards below the raised one move down by the height it needs. */
#dayroom .dr-deck .dr-deck-card.is-raised~.dr-deck-card{--shift:var(--drop)}
#dayroom .dr-deck .dr-deck-card.is-raised{border-color:var(--dr-ink-2);box-shadow:0 -1px 0 rgba(255,255,255,.5) inset,0 -10px 18px -12px rgba(0,0,0,.4),0 10px 22px -14px rgba(0,0,0,.45)}
#dayroom .dr-deck .dr-deck-card:hover:not(:disabled),#dayroom .dr-deck .dr-deck-card[aria-current="true"],#dayroom .dr-deck .dr-deck-card[aria-current="true"]:hover{background:var(--dr-panel)}
#dayroom .dr-deck .dr-deck-card[aria-current="true"]{background:color-mix(in srgb,var(--dr-sel) 55%,var(--dr-panel))}
#dayroom .dr-deck .dr-deck-card[aria-current="true"]:hover{background:color-mix(in srgb,var(--dr-sel) 55%,var(--dr-panel))}
#dayroom .dr-deck .dr-deck-card:focus-visible{outline:2px solid var(--dr-accent);outline-offset:2px}
#dayroom .dr-deck .dr-deck-top{flex:none;display:flex;align-items:center;gap:12px;height:var(--peek);padding:0 14px 0 12px}
#dayroom .dr-deck .dr-deck-more{flex:1;display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 14px;border-top:1px dashed var(--dr-line-2);color:var(--dr-muted);font-size:12.5px;font-weight:700;opacity:0;transition:opacity .07s ease}
#dayroom .dr-deck .dr-deck-card.is-raised .dr-deck-more{opacity:1;color:var(--dr-ink-2)}
#dayroom .dr-deck .dr-deck-go{display:inline-block;transition:transform .12s ease}
#dayroom .dr-deck .dr-deck-card.is-raised:hover .dr-deck-go{transform:translateX(3px)}
/* The blank card at the bottom of the deck. */
#dayroom .dr-deck .dr-deck-card.is-add{top:calc(var(--n) * var(--peek) + 6px);height:var(--add);--shift:var(--drop);border-style:dashed;background:var(--dr-panel);box-shadow:none}
#dayroom .dr-deck .dr-deck-card.is-add .dr-deck-top{height:100%}
#dayroom .dr-deck .dr-deck-card.is-add:hover:not(:disabled){background:color-mix(in srgb,var(--dr-ink) 5%,var(--dr-panel))}
/* Opening: the pile loosens into place in one short move (about 100 ms); no card waits for another. */
#dayroom .dr-deck .dr-deck-list.is-dealing .dr-deck-card{transform:translateY(calc(var(--i) * var(--peek) * -.35)) scale(.97);opacity:0;transition:none}
/* Picking: the chosen card comes to the front of the deck; the rest fall away. */
#dayroom .dr-deck .dr-deck-list.is-leaving .dr-deck-card{transform:translateY(calc(var(--shift) + 18px)) rotate(var(--tilt)) scale(.97);opacity:0;pointer-events:none;transition:transform .06s ease-in,opacity .05s ease-in}
#dayroom .dr-deck .dr-deck-list.is-leaving .dr-deck-card.is-picked{z-index:99;opacity:1;transform:translateY(calc(var(--i) * var(--peek) * -1)) scale(1.025);transition:transform .06s cubic-bezier(.2,.8,.2,1),box-shadow .05s ease;border-color:var(--dr-ink-2);box-shadow:0 18px 30px -16px rgba(0,0,0,.5)}
#dayroom .dr-deck .dr-deck-list.is-leaving .dr-deck-card.is-picked .dr-deck-more{opacity:1}
@media (prefers-reduced-motion:reduce){#dayroom .dr-deck .dr-deck-card,#dayroom .dr-deck .dr-deck-more,#dayroom .dr-deck .dr-deck-go{transition:none!important}}
@media (forced-colors:active){#dayroom .dr-deck .dr-deck-card.is-raised{outline:2px solid CanvasText}}

/* Meeting notes page and reader. */
/* Wide: the list and the reader side by side in one frame, each scrolling on its own. Narrow: the list, then the
   reader on its own with a Back control (data-view on .dr-meetings says which one shows). */
#dayroom .dr-hub-main:has(>.dr-meetings){container-type:inline-size;container-name:dr-meetings;flex:1 1 0;min-height:min(520px,calc(100dvh - 120px))}
#dayroom .dr-meetings{flex:1;min-height:0;display:grid;grid-template-columns:minmax(260px,320px) minmax(0,1fr);overflow:hidden;border-radius:16px;background:var(--dr-panel);box-shadow:inset 0 0 0 1px var(--dr-line-2)}
#dayroom .dr-meetings-notice{display:flex;align-items:flex-start;gap:8px;margin-top:-6px;color:var(--dr-muted);font-size:13px;font-weight:600;line-height:1.5}
#dayroom .dr-meetings-notice[hidden]{display:none}
#dayroom .dr-meetings-notice svg.dr-i{flex:none;width:15px;height:15px;margin-top:2px}
#dayroom .dr-meetings-list{display:flex;flex-direction:column;min-height:0;min-width:0;background:var(--dr-sunken);border-right:1px solid var(--dr-line-2)}
#dayroom .dr-meetings-search{display:flex;margin:12px 12px 4px;height:36px}
#dayroom .dr-meetings-search input{width:auto;flex:1;min-width:0}
#dayroom .dr-meetings-items{flex:1;min-height:0;overflow:auto;padding:0 8px 14px;scrollbar-width:thin;scrollbar-color:var(--dr-line-2) transparent}
#dayroom .dr-meetings-items>.dr-skel{padding:4px}
#dayroom .dr-meetings-group+.dr-meetings-group,#dayroom .dr-meetings-quiet{margin-top:8px}
#dayroom .dr-meetings-day{position:sticky;top:0;z-index:1;margin:0;padding:10px 6px 6px;background:var(--dr-sunken);color:var(--dr-muted);font-size:12px;font-weight:800;letter-spacing:.02em}
#dayroom .dr-meetings-group-items{display:flex;flex-direction:column;gap:2px}
#dayroom .dr-meetings-group-items[hidden]{display:none}
#dayroom .dr-meeting-item{display:flex;flex-direction:column;gap:5px;width:100%;padding:10px 10px 11px;border:0;border-radius:12px;background:transparent;color:var(--dr-ink);text-align:left;cursor:pointer}
#dayroom .dr-meeting-item:hover{background:var(--dr-hover)}
#dayroom .dr-meeting-item.is-selected{background:var(--dr-panel);box-shadow:inset 0 0 0 1px var(--dr-line-2),0 1px 2px rgba(0,0,0,.06)}
#dayroom .dr-meeting-item:focus-visible{outline:2px solid var(--dr-accent);outline-offset:-2px}
#dayroom .dr-meeting-item-head{display:flex;align-items:baseline;gap:8px;min-width:0}
#dayroom .dr-meeting-item-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:800;line-height:1.35}
#dayroom .dr-meeting-item time{flex:none;color:var(--dr-muted);font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}
#dayroom .dr-meeting-item-preview{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--dr-ink-2);font-size:13px;font-weight:600;line-height:1.45}
#dayroom .dr-meeting-item-status{display:inline-flex;align-items:center;gap:6px;color:var(--dr-muted);font-size:13px;font-weight:600;line-height:1.45}
#dayroom .dr-meeting-item-status.is-writing{color:var(--dr-accent-text)}
#dayroom .dr-meeting-item-status svg.dr-i{width:14px;height:14px}
#dayroom .dr-meeting-item-foot{display:flex;flex-wrap:wrap;align-items:center;gap:8px;color:var(--dr-muted);font-size:12px;font-weight:700}
#dayroom .dr-meeting-item.is-empty{gap:3px;padding-block:8px}
#dayroom .dr-meeting-item.is-empty .dr-meeting-item-title{color:var(--dr-ink-2);font-weight:700}
#dayroom .dr-meeting-faces{display:inline-flex;padding-left:4px}
#dayroom .dr-meeting-faces canvas{display:block;width:18px;height:18px;margin-left:-4px;border-radius:6px;background:var(--dr-sunken);box-shadow:0 0 0 2px var(--dr-sunken);image-rendering:pixelated}
#dayroom .dr-meeting-item.is-selected .dr-meeting-faces canvas{box-shadow:0 0 0 2px var(--dr-panel)}
#dayroom .dr-meeting-more{margin-left:4px;font-size:11.5px}
#dayroom .dr-meeting-chip{display:inline-flex;align-items:center;height:20px;padding:0 7px;border-radius:10px;background:var(--dr-accent-soft);color:var(--dr-accent-text);font-size:11.5px;font-weight:800}
#dayroom .dr-meeting-chip.is-quiet{background:var(--dr-panel);color:var(--dr-muted);box-shadow:inset 0 0 0 1px var(--dr-line)}
#dayroom .dr-meetings-quiet-toggle{display:flex;align-items:center;gap:6px;width:100%;min-height:36px;padding:6px;border:0;border-radius:10px;background:transparent;color:var(--dr-muted);font:800 12.5px/1.3 'Manrope',system-ui,sans-serif;text-align:left;cursor:pointer}
#dayroom .dr-meetings-quiet-toggle:hover{color:var(--dr-ink);background:var(--dr-hover)}
#dayroom .dr-meetings-quiet-toggle svg.dr-i{width:14px;height:14px;transition:rotate .15s}
#dayroom .dr-meetings-quiet-toggle[aria-expanded="true"] svg.dr-i{rotate:90deg}
#dayroom .dr-meetings-none{padding:24px 10px;color:var(--dr-muted);font-size:13px;font-weight:600;text-align:center}
#dayroom .dr-meetings-more{display:flex;justify-content:center;padding-top:10px}
/* No calls yet: one calm empty state instead of an empty list beside an empty reader. */
#dayroom .dr-meetings[data-empty="true"]{grid-template-columns:minmax(0,1fr)}
#dayroom .dr-meetings[data-empty="true"] :is(.dr-meeting-reader,.dr-meetings-search){display:none}
#dayroom .dr-meetings[data-empty="true"] .dr-meetings-list{border-right:0;justify-content:center}
/* The reader */
#dayroom .dr-meeting-reader{min-width:0;min-height:0;overflow:auto;padding:26px 30px 32px;scrollbar-width:thin;scrollbar-color:var(--dr-line-2) transparent}
#dayroom .dr-meeting-reader>.dr-skel{max-width:640px}
#dayroom .dr-meeting-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;height:100%;min-height:240px;color:var(--dr-muted);font-size:13px;font-weight:600}
#dayroom .dr-meeting-placeholder svg.dr-i{width:28px;height:28px}
#dayroom .dr-meeting-head{display:flex;flex-direction:column;gap:8px;max-width:680px;padding-bottom:18px;border-bottom:1px solid var(--dr-line)}
#dayroom .dr-meeting-back{display:none;align-self:flex-start;align-items:center;gap:6px;min-height:36px;margin:-6px 0 2px -8px;padding:0 10px 0 6px;border:0;border-radius:10px;background:transparent;color:var(--dr-accent-text);font:800 13.5px/1 'Manrope',system-ui,sans-serif;cursor:pointer}
#dayroom .dr-meeting-back:hover{background:var(--dr-hover)}
#dayroom .dr-meeting-back svg.dr-i{width:16px;height:16px}
#dayroom .dr-meeting-title{font-size:20px;font-weight:800;line-height:1.3;color:var(--dr-ink);overflow-wrap:anywhere}
#dayroom .dr-meeting-title:focus{outline:none}
#dayroom .dr-meeting-when{display:flex;align-items:center;gap:7px;color:var(--dr-muted);font-size:13px;font-weight:700}
#dayroom .dr-meeting-when svg.dr-i{flex:none;width:15px;height:15px}
#dayroom .dr-meeting-people{display:flex;flex-wrap:wrap;gap:6px;margin:2px 0 0;padding:0;list-style:none}
#dayroom .dr-meeting-people li{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px 0 4px;border-radius:14px;background:var(--dr-sunken);color:var(--dr-ink-2);font-size:12.5px;font-weight:700}
#dayroom .dr-meeting-people canvas{display:block;width:20px;height:20px;border-radius:7px;image-rendering:pixelated}
#dayroom .dr-meeting-people li.is-quiet{color:var(--dr-muted)}
#dayroom .dr-meeting-quiet-mark{display:inline-flex;color:var(--dr-muted)}
#dayroom .dr-meeting-quiet-mark svg.dr-i{width:13px;height:13px}
#dayroom .dr-meeting-tools{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
#dayroom .dr-meeting-content{display:flex;flex-direction:column;gap:22px;max-width:680px;padding-top:20px}
#dayroom .dr-meeting-body{display:flex;flex-direction:column;gap:22px}
#dayroom .dr-meeting-section h4{display:flex;align-items:center;gap:8px;margin:0 0 8px;color:var(--dr-muted);font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
#dayroom .dr-meeting-section .dr-answer-text{color:var(--dr-ink);font-size:14px;line-height:1.6}
#dayroom .dr-meeting-section .dr-answer-text :is(ul,ol){display:flex;flex-direction:column;gap:6px;margin:0;padding-left:20px}
#dayroom .dr-meeting-section .dr-answer-text p+p{margin-top:8px}
#dayroom .dr-meeting-section.is-decisions .dr-answer-text ul{padding-left:0;list-style:none}
#dayroom .dr-meeting-section.is-decisions .dr-answer-text ul>li{position:relative;padding-left:26px}
/* A bare accent tick, no box: the real "For you" checkboxes above are the only things that look tappable. */
#dayroom .dr-meeting-section.is-decisions .dr-answer-text ul>li::after{content:"";position:absolute;left:6px;top:calc(.3em + 1px);width:5px;height:10px;border:solid var(--dr-accent-text);border-width:0 2.5px 2.5px 0;rotate:45deg}
#dayroom .dr-meeting-section.is-questions .dr-answer-text ul{padding-left:0;list-style:none}
#dayroom .dr-meeting-section.is-questions .dr-answer-text ul>li{position:relative;padding-left:26px}
#dayroom .dr-meeting-section.is-questions .dr-answer-text ul>li::before{content:"?";position:absolute;left:2px;top:.25em;display:grid;place-items:center;width:14px;height:14px;border-radius:4px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-line-2);color:var(--dr-muted);font-size:10px;font-weight:800;line-height:1}
#dayroom .dr-meeting-summary .dr-answer-text{font-size:15px;line-height:1.65;color:var(--dr-ink)}
#dayroom .dr-meeting-foryou{padding:14px 16px;border-radius:14px;background:var(--dr-accent-soft);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--dr-accent) 30%,transparent)}
#dayroom .dr-meeting-foryou h4{display:flex;align-items:center;gap:7px;margin:0 0 8px;color:var(--dr-accent-text);font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
#dayroom .dr-meeting-foryou h4 svg.dr-i{width:15px;height:15px}
#dayroom .dr-meeting-tasks{display:flex;flex-direction:column;gap:2px}
#dayroom .dr-meeting-task{display:flex;align-items:flex-start;gap:10px;padding:7px 4px;border-radius:8px;cursor:pointer}
#dayroom .dr-meeting-task:has(input:disabled){cursor:default}
#dayroom .dr-meeting-task input{flex:none;width:18px;height:18px;margin:1px 0 0;accent-color:var(--dr-accent)}
#dayroom .dr-meeting-task-mark{flex:none;width:18px;height:18px;margin-top:1px;border-radius:50%;box-shadow:inset 0 0 0 1.5px var(--dr-line-2)}
#dayroom .dr-meeting-task.is-done .dr-meeting-task-mark{background:var(--dr-accent-soft);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--dr-accent) 45%,transparent)}
#dayroom .dr-meeting-task.is-done .dr-meeting-task-mark::after{content:"";display:block;width:4px;height:8px;margin:3px 0 0 6.5px;border:solid var(--dr-accent-text);border-width:0 2px 2px 0;rotate:45deg}
#dayroom div.dr-meeting-task{cursor:default}
#dayroom .dr-meeting-task-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
#dayroom .dr-meeting-task-title{color:var(--dr-ink);font-size:14px;font-weight:700;line-height:1.4}
#dayroom .dr-meeting-task.is-done .dr-meeting-task-title{color:var(--dr-muted);text-decoration:line-through}
#dayroom .dr-meeting-task-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;color:var(--dr-muted);font-size:12.5px;font-weight:700}
#dayroom .dr-meeting-task-owner{display:inline-flex;align-items:center;gap:5px}
#dayroom .dr-meeting-task-owner canvas{display:block;width:16px;height:16px;border-radius:5px;image-rendering:pixelated}
#dayroom .dr-meeting-original{margin-top:10px}
#dayroom .dr-meeting-original>summary{width:max-content;color:var(--dr-muted);font-size:12.5px;font-weight:800;cursor:pointer}
#dayroom .dr-meeting-original .dr-answer-text{margin-top:8px;padding-left:12px;border-left:2px solid var(--dr-line-2);color:var(--dr-ink-2);font-size:13.5px}
#dayroom .dr-meeting-coverage{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border-radius:12px;background:var(--dr-sunken);color:var(--dr-muted);font-size:12.5px;font-weight:600;line-height:1.5}
#dayroom .dr-meeting-coverage>svg.dr-i{flex:none;width:15px;height:15px;margin-top:2px}
#dayroom .dr-meeting-coverage>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
#dayroom .dr-meeting-coverage .dr-button{flex:none;align-self:center}
#dayroom .dr-meeting-state{display:flex;align-items:flex-start;gap:16px;padding:20px;border-radius:16px;background:var(--dr-sunken)}
#dayroom .dr-meeting-state-art{display:grid;place-items:center;flex:none;width:48px;height:48px;overflow:hidden;border-radius:14px;background:var(--dr-panel);box-shadow:inset 0 0 0 1px var(--dr-line-2);color:var(--dr-muted)}
#dayroom .dr-meeting-state-art svg{display:block}
#dayroom .dr-meeting-state-art svg.dr-i{width:22px;height:22px}
#dayroom .dr-meeting-state-art.is-companion svg{width:100%;height:100%}
#dayroom .dr-meeting-state-title{color:var(--dr-ink);font-size:15px;font-weight:800;line-height:1.35}
#dayroom .dr-meeting-state-text{margin-top:3px;color:var(--dr-muted);font-size:13.5px;font-weight:600;line-height:1.5}
#dayroom .dr-meeting-state-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
#dayroom .dr-meeting-transcript{border-top:1px solid var(--dr-line);padding-top:14px}
#dayroom .dr-meeting-transcript>summary{display:flex;align-items:center;gap:8px;width:max-content;min-height:32px;color:var(--dr-ink-2);font-size:13.5px;font-weight:800;cursor:pointer;list-style:none}
#dayroom .dr-meeting-transcript>summary::-webkit-details-marker{display:none}
#dayroom .dr-meeting-transcript>summary svg.dr-i{width:14px;height:14px;transition:rotate .15s}
#dayroom .dr-meeting-transcript[open]>summary svg.dr-i{rotate:90deg}
#dayroom .dr-meeting-transcript>summary small{color:var(--dr-muted);font-size:12px;font-weight:700}
#dayroom .dr-meeting-transcript>.dr-hint{margin:6px 0 10px}
#dayroom .dr-meeting-transcript ol{display:flex;flex-direction:column;gap:12px;margin:0;padding:0;list-style:none}
#dayroom .dr-meeting-transcript li{display:grid;grid-template-columns:64px minmax(0,1fr);gap:10px}
#dayroom .dr-meeting-transcript time{padding-top:1px;color:var(--dr-faint);font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}
#dayroom .dr-meeting-transcript strong{display:block;color:var(--dr-ink);font-size:13px;font-weight:800}
#dayroom .dr-meeting-transcript li p{margin-top:2px;color:var(--dr-ink-2);font-size:13.5px;line-height:1.5;overflow-wrap:anywhere}
/* In the call stage's dialog the reader is the page itself. */
#dayroom .dr-meeting-reader.is-dialog{overflow:visible;padding:0}
#dayroom .dr-meeting-reader.is-dialog .dr-meeting-head{padding-bottom:14px}
#dayroom .dr-meeting-reader.is-dialog .dr-meeting-content{padding-top:16px}
@container dr-meetings (max-width:719px){
 #dayroom .dr-meetings{grid-template-columns:minmax(0,1fr)}
 #dayroom .dr-meetings[data-view="list"] .dr-meeting-reader,#dayroom .dr-meetings[data-view="reader"] .dr-meetings-list{display:none}
 #dayroom .dr-meetings-list{border-right:0}
 #dayroom .dr-meeting-back{display:inline-flex}
 #dayroom .dr-meeting-reader{padding:20px 18px 28px}
}
@media (max-width:760px){
 #dayroom .dr-hub-main:has(>.dr-meetings){flex:none;min-height:0}
 #dayroom .dr-meetings{flex:none}
 #dayroom .dr-meetings{margin-inline:-16px;overflow:visible;border-radius:0;box-shadow:none;border-block:1px solid var(--dr-line-2)}
 #dayroom .dr-meetings-list,#dayroom .dr-meetings-items,#dayroom .dr-meeting-reader{overflow:visible}
 #dayroom .dr-meetings-day{top:0}
 #dayroom .dr-meeting-reader{scroll-margin-top:12px}
 #dayroom .dr-meeting-title{font-size:19px}
 #dayroom .dr-meeting-transcript li{grid-template-columns:minmax(0,1fr)}
 #dayroom .dr-meeting-transcript time{order:2;padding:0}
 #dayroom .dr-meeting-coverage{flex-wrap:wrap}
 #dayroom .dr-meeting-coverage .dr-button{margin-left:25px}
}
@media (pointer:coarse){
 #dayroom .dr-meeting-item{min-height:56px}
 #dayroom .dr-meeting-back,#dayroom .dr-meetings-quiet-toggle,#dayroom .dr-meeting-transcript>summary,#dayroom .dr-meeting-original>summary{min-height:44px}
 #dayroom .dr-meeting-original>summary{display:flex;align-items:center}
 #dayroom .dr-meeting-task{min-height:44px;align-items:center}
 #dayroom .dr-meeting-task input{width:22px;height:22px;margin:0}
 #dayroom .dr-meetings-search{height:44px}
 #dayroom .dr-meeting-reader .dr-button{min-height:44px}
}
@media (prefers-reduced-motion:reduce){#dayroom :is(.dr-meetings-quiet-toggle,.dr-meeting-transcript>summary) svg.dr-i{transition:none}}

/* Agents hub layout and sections. */
/* Navigation: one row of icon tabs in three groups; a section picker instead when the row would not fit. */
#dayroom .dr-page[data-page="agents"]>.dr-page-body{container-type:inline-size;container-name:dr-hub}
#dayroom .dr-hub-nav{display:block;overflow:visible}
#dayroom .dr-hub-tabs{display:flex;align-items:stretch;gap:2px;border-bottom:1px solid var(--dr-line-2)}
#dayroom .dr-hub-tab{position:relative;display:inline-flex;align-items:center;gap:7px;flex:none;height:40px;padding:0 10px;border:0;border-radius:8px 8px 0 0;background:transparent;color:var(--dr-muted);font:800 13px/1 'Manrope',system-ui,sans-serif;white-space:nowrap;cursor:pointer}
#dayroom .dr-hub-tab svg.dr-i{width:16px;height:16px;flex:none}
#dayroom .dr-hub-tab:hover{color:var(--dr-ink);background:var(--dr-hover)}
#dayroom .dr-hub-tab[aria-current="page"]{color:var(--dr-ink)}
#dayroom .dr-hub-tab[aria-current="page"]::after{content:"";position:absolute;left:8px;right:8px;bottom:-1px;height:2px;border-radius:2px 2px 0 0;background:var(--dr-accent)}
#dayroom .dr-hub-tab[aria-current="page"] svg.dr-i{color:var(--dr-accent-text)}
#dayroom .dr-hub-tab:focus-visible{outline:2px solid var(--dr-accent);outline-offset:-2px}
#dayroom .dr-hub-tab-gap{flex:none;align-self:center;width:1px;height:18px;margin:0 6px;background:var(--dr-line-2)}
#dayroom .dr-hub-picker{position:relative;display:none;align-items:center;gap:10px;min-height:44px;padding:0 12px;border-radius:12px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-field-line);color:var(--dr-ink)}
#dayroom .dr-hub-picker:focus-within{box-shadow:inset 0 0 0 1.5px var(--dr-accent),0 0 0 4px var(--dr-accent-soft)}
#dayroom .dr-hub-picker-icon{display:grid;place-items:center;width:28px;height:28px;flex:none;border-radius:8px;background:var(--dr-accent-soft);color:var(--dr-accent-text)}
#dayroom .dr-hub-picker-icon svg.dr-i{width:16px;height:16px}
#dayroom .dr-hub-picker select{flex:1;min-width:0;height:44px;margin:0;padding:0 28px 0 0;border:0;background:transparent;box-shadow:none;color:var(--dr-ink);font:800 15px/1.2 'Manrope',system-ui,sans-serif;appearance:none;-webkit-appearance:none;cursor:pointer}
#dayroom .dr-hub-picker select:focus{outline:none}
#dayroom .dr-hub-picker-chev{position:absolute;right:12px;top:50%;translate:0 -50%;pointer-events:none;color:var(--dr-muted)}
#dayroom .dr-hub-picker-chev svg.dr-i{width:16px;height:16px}
/* Less room: labels only. Less again: the picker, and section headings drop the title the picker already shows
   (it stays for screen readers). */
@container dr-hub (max-width:800px){#dayroom .dr-hub-tab{padding:0 9px}#dayroom .dr-hub-tab svg.dr-i{display:none}#dayroom .dr-hub-tab-gap{margin:0 3px}}
@container dr-hub (max-width:610px){
 #dayroom .dr-hub-tabs{display:none}
 #dayroom .dr-hub-picker{display:flex}
 #dayroom .dr-hub-main>.dr-hub-heading:has(.dr-hub-heading-icon) .dr-hub-heading-icon{display:none}
 #dayroom .dr-hub-main>.dr-hub-heading:has(.dr-hub-heading-icon) h2{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}
/* Section headings carry the section's icon so the page says where you are even without the tab row. */
#dayroom .dr-hub-heading{align-items:center}
#dayroom .dr-hub-heading>div:not(.dr-card-actions){flex:1;min-width:0}
#dayroom .dr-hub-heading h2{font-size:17px;font-weight:800;line-height:1.3}
#dayroom .dr-hub-heading p{font-size:13px;line-height:1.45}
#dayroom .dr-hub-heading-icon{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:12px;background:var(--dr-accent-soft);color:var(--dr-accent-text)}
#dayroom .dr-hub-heading-icon svg.dr-i{width:20px;height:20px}
#dayroom .dr-hub-heading .dr-card-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
#dayroom .dr-hub-main{gap:20px}
#dayroom .dr-hub-block{display:flex;flex-direction:column;gap:10px}
#dayroom .dr-hub-subhead{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:32px}
#dayroom .dr-hub-subhead h3{font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--dr-muted)}
#dayroom .dr-hub-empty-line{padding:14px 16px;border-radius:12px;background:var(--dr-sunken);color:var(--dr-muted);font-size:13px;font-weight:600;line-height:1.5}
#dayroom .dr-hub-callout{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border-radius:12px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-line);color:var(--dr-ink-2);font-size:13px;font-weight:600;line-height:1.5}
#dayroom .dr-hub-callout svg.dr-i{flex:none;width:16px;height:16px;margin-top:2px;color:var(--dr-muted)}
#dayroom .dr-hub-loading{padding-top:8px}
/* Agents: the companion first, then team agents, then a guide to everything else in the hub. */
#dayroom .dr-hub-companion{display:grid;grid-template-columns:64px minmax(0,1fr) auto;align-items:center;gap:16px;padding:18px;border-radius:16px;background:linear-gradient(135deg,var(--dr-accent-soft),transparent 70%),var(--dr-panel);box-shadow:inset 0 0 0 1px var(--dr-line-2)}
#dayroom .dr-hub-companion-art{display:grid;place-items:center;width:64px;height:64px;overflow:hidden;border-radius:16px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-line)}
#dayroom .dr-hub-companion-art svg{display:block;width:100%;height:100%}
#dayroom .dr-hub-companion-title{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
#dayroom .dr-hub-companion-title h3{font-size:16px;font-weight:800;color:var(--dr-ink)}
#dayroom .dr-hub-companion-copy p{margin-top:4px;max-width:58ch;color:var(--dr-ink-2);font-size:13px;font-weight:600;line-height:1.5}
#dayroom .dr-hub-companion-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
#dayroom .dr-hub-areas{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:10px}
#dayroom .dr-hub-area{display:grid;grid-template-columns:36px minmax(0,1fr) 16px;align-items:center;gap:12px;min-height:72px;padding:12px 12px 12px 14px;border:0;border-radius:14px;background:var(--dr-panel);box-shadow:inset 0 0 0 1px var(--dr-line-2);color:var(--dr-ink);text-align:left;cursor:pointer}
#dayroom .dr-hub-area:hover{background:var(--dr-hover)}
#dayroom .dr-hub-area:focus-visible{outline:2px solid var(--dr-accent);outline-offset:2px}
#dayroom .dr-hub-area>svg.dr-i{width:16px;height:16px;color:var(--dr-faint)}
#dayroom .dr-hub-area-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-line);color:var(--dr-ink-2)}
#dayroom .dr-hub-area-icon svg.dr-i{width:18px;height:18px}
#dayroom .dr-hub-area-copy{display:flex;flex-direction:column;gap:2px;min-width:0}
#dayroom .dr-hub-area-copy strong{font-size:14px;font-weight:800}
#dayroom .dr-hub-area-copy span{color:var(--dr-muted);font-size:13px;font-weight:600;line-height:1.4}
#dayroom .dr-hub-area-copy small{margin-top:3px;color:var(--dr-accent-text);font-size:12px;font-weight:800}
#dayroom .dr-hub-area-copy small.is-quiet{color:var(--dr-faint)}
/* Team instructions: where it applies, the note itself, and what makes a good one. */
#dayroom .dr-hub-scopes{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
#dayroom .dr-hub-scopes-label{flex:none;margin-right:4px;white-space:nowrap;color:var(--dr-muted);font-size:12px;font-weight:800}
#dayroom .dr-hub-scope{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border:0;border-radius:16px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-line-2);color:var(--dr-ink-2);font:800 13px/1 'Manrope',system-ui,sans-serif;cursor:pointer}
#dayroom .dr-hub-scope:hover{background:var(--dr-hover);color:var(--dr-ink)}
#dayroom .dr-hub-scope[aria-pressed="true"]{background:var(--dr-ink);box-shadow:none;color:var(--dr-panel)}
#dayroom .dr-hub-scope-dot{width:7px;height:7px;border-radius:50%;background:var(--st-available)}
#dayroom .dr-hub-instructions{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:16px;align-items:start}
#dayroom .dr-hub-instructions-form{display:flex;flex-direction:column;gap:12px;padding:18px;border-radius:16px;background:var(--dr-panel);box-shadow:inset 0 0 0 1px var(--dr-line-2)}
#dayroom .dr-hub-instructions-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
#dayroom .dr-hub-instructions-head h3{font-size:15px;font-weight:800;color:var(--dr-ink)}
#dayroom .dr-hub-instructions-head p{margin-top:2px;color:var(--dr-muted);font-size:13px;font-weight:600;line-height:1.45}
#dayroom .dr-hub-instructions-form textarea{width:100%;min-height:200px;resize:vertical;font-size:14px;line-height:1.6}
#dayroom .dr-hub-starters{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
#dayroom .dr-hub-starters>span{color:var(--dr-muted);font-size:12px;font-weight:800}
#dayroom .dr-hub-starter{display:inline-flex;align-items:center;gap:4px;height:28px;padding:0 10px 0 8px;border:0;border-radius:14px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-line);color:var(--dr-ink-2);font:700 12.5px/1 'Manrope',system-ui,sans-serif;cursor:pointer}
#dayroom .dr-hub-starter:hover{color:var(--dr-ink);background:var(--dr-hover)}
#dayroom .dr-hub-starter svg.dr-i{width:13px;height:13px}
#dayroom .dr-hub-instructions-foot{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
#dayroom .dr-hub-instructions-foot #hub-instruction-saved{flex:1;min-width:0}
#dayroom .dr-hub-instructions-foot .dr-button{margin-left:auto}
#dayroom .dr-hub-instructions-tips{padding:16px;border-radius:16px;background:var(--dr-sunken);color:var(--dr-ink-2);font-size:13px;font-weight:600;line-height:1.5}
#dayroom .dr-hub-instructions-tips h3{margin-bottom:8px;font-size:13px;font-weight:800;color:var(--dr-ink)}
#dayroom .dr-hub-instructions-tips ul{display:flex;flex-direction:column;gap:6px;margin:0 0 12px;padding:0;list-style:none}
#dayroom .dr-hub-instructions-tips li{position:relative;padding-left:16px}
#dayroom .dr-hub-instructions-tips li::before{content:"";position:absolute;left:2px;top:.6em;width:6px;height:6px;border-radius:2px;background:var(--dr-accent)}
#dayroom .dr-hub-instructions-tips p{margin-top:4px;padding-top:12px;border-top:1px solid var(--dr-line);color:var(--dr-muted)}
/* Skills: how it works in three steps, then your skills. */
#dayroom .dr-hub-howto{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0;padding:0;list-style:none}
#dayroom .dr-hub-howto li{display:flex;gap:10px;padding:14px;border-radius:14px;background:var(--dr-sunken)}
#dayroom .dr-hub-howto b{display:grid;place-items:center;flex:none;width:24px;height:24px;border-radius:7px;background:var(--dr-panel);box-shadow:inset 0 0 0 1px var(--dr-line-2);color:var(--dr-ink);font-size:12px;font-weight:800}
#dayroom .dr-hub-howto span{color:var(--dr-muted);font-size:13px;font-weight:600;line-height:1.45}
#dayroom .dr-hub-howto strong{display:block;margin-bottom:2px;color:var(--dr-ink);font-size:13.5px;font-weight:800}
#dayroom .dr-hub-howto-note{display:flex;align-items:center;gap:8px;margin-top:-8px}
#dayroom .dr-hub-howto-note svg.dr-i{flex:none;width:14px;height:14px}
#dayroom .dr-hub-skill-list,#dayroom .dr-hub-room-list{display:flex;flex-direction:column;gap:8px}
#dayroom .dr-hub-skill{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px 14px;border-radius:14px;background:var(--dr-panel);box-shadow:inset 0 0 0 1px var(--dr-line-2)}
#dayroom .dr-hub-skill h4{font-size:14px;font-weight:800;color:var(--dr-ink)}
#dayroom .dr-hub-skill p{color:var(--dr-ink-2);font-size:13px;font-weight:600;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#dayroom .dr-hub-skill small{color:var(--dr-muted);font-size:12px;font-weight:700}
#dayroom .dr-hub-skill-actions{display:flex;gap:8px}
/* Agent rooms list */
#dayroom .dr-hub-room{display:grid;grid-template-columns:minmax(0,1fr) auto 16px;align-items:center;gap:12px;padding:14px 14px 14px 16px;border:0;border-radius:14px;background:var(--dr-panel);box-shadow:inset 0 0 0 1px var(--dr-line-2);color:var(--dr-ink);text-align:left;cursor:pointer}
#dayroom .dr-hub-room:hover{background:var(--dr-hover)}
#dayroom .dr-hub-room:focus-visible{outline:2px solid var(--dr-accent);outline-offset:2px}
#dayroom .dr-hub-room>svg.dr-i{width:16px;height:16px;color:var(--dr-faint)}
#dayroom .dr-hub-room-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
#dayroom .dr-hub-room-copy strong{font-size:14px;font-weight:800}
#dayroom .dr-hub-room-copy span{color:var(--dr-ink-2);font-size:13px;font-weight:600;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#dayroom .dr-hub-room-copy small{color:var(--dr-muted);font-size:12px;font-weight:700}
/* Apps & connectors: the same page anatomy as every other section, not a page-sized hero. */
#dayroom .dr-hub-main .dr-apps-coming-soon{min-height:0;gap:10px;padding:40px 20px;border-radius:16px;background:var(--dr-sunken)}
#dayroom .dr-hub-main .dr-apps-coming-art{width:64px;height:64px;padding:14px}
#dayroom .dr-hub-main .dr-apps-coming-soon h3{font-size:18px;font-weight:800;color:var(--dr-ink)}
#dayroom .dr-hub-main .dr-apps-coming-soon>p{max-width:40ch;color:var(--dr-muted);font-size:13.5px;font-weight:600;line-height:1.5}
/* The skill recorder pinned to the bottom stays clear of the home indicator. */
#dayroom .dr-skill-recording-bar{margin-bottom:env(safe-area-inset-bottom,0px)}
@media (max-width:760px){
 #dayroom .dr-hub-heading{flex-wrap:wrap}
 #dayroom .dr-hub-heading .dr-card-actions{flex:1 1 100%;justify-content:flex-start}
 #dayroom .dr-hub-companion{grid-template-columns:52px minmax(0,1fr);padding:16px}
 #dayroom .dr-hub-companion-art{width:52px;height:52px;border-radius:14px}
 #dayroom .dr-hub-companion-actions{grid-column:1/-1;justify-content:stretch}
 #dayroom .dr-hub-companion-actions .dr-button{flex:1}
 #dayroom .dr-hub-areas{grid-template-columns:minmax(0,1fr)}
 #dayroom .dr-hub-instructions{grid-template-columns:minmax(0,1fr)}
 #dayroom .dr-hub-howto{grid-template-columns:minmax(0,1fr)}
 #dayroom .dr-hub-skill{grid-template-columns:36px minmax(0,1fr)}
 #dayroom .dr-hub-skill-actions{grid-column:1/-1}
 #dayroom .dr-hub-skill-actions .dr-button{flex:1}
 #dayroom .dr-hub-scopes{flex-wrap:nowrap;overflow-x:auto;margin-inline:-16px;padding:2px 16px;scrollbar-width:none}
 #dayroom .dr-hub-scope{flex:none}
}
@media (pointer:coarse){
 #dayroom .dr-hub-tab,#dayroom .dr-hub-scope,#dayroom .dr-hub-starter{min-height:44px}
 #dayroom .dr-hub-main .dr-button,#dayroom .dr-hub-heading .dr-button{min-height:44px}
}
@media (forced-colors:active){#dayroom .dr-hub-tab[aria-current="page"]::after{background:Highlight}#dayroom .dr-hub-scope[aria-pressed="true"]{outline:2px solid Highlight}}

/* Invite teammates dialog and workspace switcher. Tokens only (window.css), and nothing animates, so reduced motion
   needs no extra rule. Loads after surfaces.css and workspace-deck.css, before mobile.css; the phone sheet rules at the
   end win over mobile.css by specificity. */

/* ---------- Invite teammates (workspace-invites.js): email first, then a single-use link below a quiet divider ---------- */
#dayroom .dr-modal:has(>#dr-modal-body>.dr-page[data-page="invite"]){width:min(520px,calc(100vw - 32px))}
/* surfaces.css lays the page out as head, error and body; the phone sheet adds a pinned foot row. */
#dayroom .dr-modal:has(>#dr-modal-body>.dr-page[data-page="invite"])>#dr-modal-body{grid-template-rows:auto auto minmax(0,1fr) auto;grid-template-areas:"head" "error" "body" "foot"}
#dayroom .dr-page[data-page="invite"]>.dr-page-body{padding:20px 20px 24px}
#dayroom .dr-inv{display:flex;flex-direction:column;gap:20px}
#dayroom .dr-inv [hidden],#dayroom .dr-inv-foot[hidden]{display:none}
#dayroom .dr-inv :is(#dr-inv-compose,#dr-inv-link)[data-full]{display:none}
#dayroom h3.dr-inv-label{margin:0 0 8px;font-size:13px;font-weight:800;line-height:1.3;color:var(--dr-ink)}
#dayroom .dr-inv-entry{display:flex;align-items:flex-start;gap:8px}
/* The chip field reads as one text field: chips and the caret share its rounded box and its focus ring. */
#dayroom .dr-inv-field{flex:1;min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-height:40px;padding:5px 6px;border-radius:12px;background:var(--dr-field);box-shadow:inset 0 0 0 1px var(--dr-field-line);cursor:text}
#dayroom .dr-inv-field:focus-within{outline:2px solid transparent;outline-offset:2px;box-shadow:inset 0 0 0 1.5px var(--dr-accent),0 0 0 4px var(--dr-accent-soft)}
#dayroom .dr-inv-field.is-invalid{box-shadow:inset 0 0 0 1.5px var(--dr-error-text)}
#dayroom .dr-inv-field input{flex:1 1 150px;min-width:0;height:30px;padding:0 6px;border:0;border-radius:6px;background:transparent;box-shadow:none;color:var(--dr-ink)}
#dayroom .dr-inv-field input:focus-visible{outline:none;box-shadow:none}
#dayroom .dr-inv-chip{display:inline-flex;align-items:center;gap:2px;max-width:100%;height:28px;padding:0 3px 0 10px;border-radius:8px;background:var(--dr-accent-soft);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--dr-accent) 28%,transparent);color:var(--dr-accent-text);font-size:12.5px;font-weight:700}
#dayroom .dr-inv-chip>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#dayroom .dr-inv-chip button{position:relative;flex:none;display:grid;place-items:center;width:22px;height:22px;padding:0;border:0;border-radius:6px;background:transparent;color:inherit}
#dayroom .dr-inv-chip button svg.dr-i{width:13px;height:13px;stroke-width:2.2}
@media (hover:hover){#dayroom .dr-inv-chip button:hover:not(:disabled){background:color-mix(in srgb,var(--dr-accent-text) 14%,transparent)}}
#dayroom .dr-inv-chip button:focus-visible{outline:2px solid var(--dr-accent);outline-offset:0}
#dayroom #dr-invite-send{flex:none;min-height:40px;padding:0 14px 0 12px}
#dayroom p.dr-inv-note{margin-top:8px;font-size:12px;font-weight:600;line-height:1.45;color:var(--dr-muted)}
#dayroom p.dr-inv-note.is-error{color:var(--dr-error-text);font-weight:700}
#dayroom p.dr-inv-note.is-ok{color:var(--dr-accent-text);font-weight:700}
/* Pending email invitations: a dashed avatar says "not here yet". */
#dayroom .dr-inv-pending{margin-top:-6px}
#dayroom h4.dr-inv-sublabel{display:flex;align-items:center;gap:6px;margin:0 0 2px;font-size:12px;font-weight:800;line-height:1.3;color:var(--dr-muted)}
#dayroom h4.dr-inv-sublabel span{min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-line-2);color:var(--dr-ink-2);font-size:11px;line-height:18px;text-align:center;font-variant-numeric:tabular-nums}
#dayroom ul.dr-inv-list{list-style:none;margin:0;padding:0}
#dayroom .dr-inv-person{display:flex;align-items:center;gap:10px;min-height:48px;padding:6px 0}
#dayroom .dr-inv-person+.dr-inv-person{box-shadow:inset 0 1px 0 var(--dr-line)}
#dayroom .dr-inv-avatar{flex:none;width:30px;height:30px;display:grid;place-items:center;border:1px dashed var(--dr-line-2);border-radius:50%;color:var(--dr-muted);font-size:12px;font-weight:800}
#dayroom .dr-inv-who{flex:1;min-width:0;display:flex;flex-direction:column}
#dayroom .dr-inv-address{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:700;line-height:1.35;color:var(--dr-ink)}
#dayroom .dr-inv-who small{font-size:12px;font-weight:600;line-height:1.4;color:var(--dr-muted)}
#dayroom .dr-inv-who small.is-bad{color:var(--dr-error-text)}
#dayroom .dr-button.dr-inv-retry{flex:none;min-height:30px;padding:0 10px;font-size:12px}
#dayroom .dr-link.dr-inv-more{margin-top:2px;font-size:12.5px}
/* Without email the link leads; earlier email invitations follow it. */
#dayroom .dr-inv:has(>#dr-inv-compose[hidden]) #dr-inv-noemail{order:1;margin-top:-10px}
#dayroom .dr-inv:has(>#dr-inv-compose[hidden]) #dr-inv-pending{order:2;margin-top:0}
/* "or share an invite link": a hairline divider that is also the link section's heading. */
#dayroom h3.dr-inv-or{display:flex;align-items:center;gap:12px;margin:0 0 14px;font-size:12px;font-weight:700;line-height:1.3;color:var(--dr-muted);white-space:nowrap}
#dayroom h3.dr-inv-or::before,#dayroom h3.dr-inv-or::after{content:"";flex:1;height:1px;background:var(--dr-line-2)}
#dayroom h3.dr-inv-or.is-solo{margin-bottom:8px;font-size:13px;font-weight:800;color:var(--dr-ink)}
#dayroom h3.dr-inv-or.is-solo::before,#dayroom h3.dr-inv-or.is-solo::after{content:none}
#dayroom .dr-inv-linkcard{display:flex;align-items:center;gap:12px;padding:12px 12px 12px 14px;border-radius:12px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-line)}
#dayroom .dr-inv-linkicon{flex:none;width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:var(--dr-panel);box-shadow:inset 0 0 0 1px var(--dr-line-2);color:var(--dr-ink-2)}
#dayroom .dr-inv-linktext{flex:1;min-width:0;display:flex;flex-direction:column}
#dayroom .dr-inv-linktext strong{font-size:13px;font-weight:800;line-height:1.35;color:var(--dr-ink)}
#dayroom .dr-inv-linktext small{font-size:12px;font-weight:600;line-height:1.4;color:var(--dr-muted)}
#dayroom .dr-inv-linkcard>.dr-button{flex:none}
#dayroom .dr-inv-linkcard>.dr-button:not(.dr-primary){background:var(--dr-panel)}
#dayroom .dr-inv-made{display:flex;flex-direction:column;gap:8px}
/* Link and code: a labelled read-only field with its Copy button inside, like one control. */
#dayroom .dr-inv-copyrow{display:flex;align-items:center;gap:6px;min-height:44px;padding:4px 4px 4px 12px;border-radius:12px;background:var(--dr-field);box-shadow:inset 0 0 0 1px var(--dr-field-line)}
#dayroom .dr-inv-copyrow:has(input:focus){outline:2px solid transparent;outline-offset:2px;box-shadow:inset 0 0 0 1.5px var(--dr-accent),0 0 0 4px var(--dr-accent-soft)}
#dayroom .dr-inv-copylabel{flex:none;width:34px;font-size:12px;font-weight:800;color:var(--dr-muted)}
#dayroom .dr-inv-copyrow input{flex:1;min-width:0;height:34px;padding:0 2px;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--dr-ink);font:600 12.5px/1 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;text-overflow:ellipsis}
#dayroom .dr-inv-copyrow input:focus-visible{outline:none;box-shadow:none}
#dayroom .dr-inv-copyrow .dr-button{flex:none;min-height:34px;min-width:84px;padding:0 10px;background:var(--dr-panel);font-size:12.5px}
#dayroom .dr-inv-copyrow .dr-button.is-done{background:var(--dr-accent-soft);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--dr-accent) 40%,transparent);color:var(--dr-accent-text)}
#dayroom p.dr-inv-meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 12px;margin-top:2px;font-size:12px;font-weight:600;line-height:1.4;color:var(--dr-muted)}
#dayroom p.dr-inv-meta .dr-link{font-size:12.5px}
#dayroom p.dr-inv-meta .dr-link svg.dr-i{width:15px;height:15px}
/* A full workspace replaces both ways in with one notice. */
#dayroom .dr-inv-full{display:flex;align-items:center;gap:12px;padding:12px 12px 12px 14px;border-radius:12px;background:color-mix(in srgb,var(--st-working) 12%,var(--dr-panel));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--st-working) 35%,transparent)}
#dayroom .dr-inv-fullicon{flex:none;width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:var(--dr-panel);color:var(--dr-ink-2)}
#dayroom .dr-inv-fulltext{flex:1;min-width:0;display:flex;flex-direction:column}
#dayroom .dr-inv-fulltext strong{font-size:13px;font-weight:800;color:var(--dr-ink)}
#dayroom .dr-inv-fulltext small{font-size:12px;font-weight:600;line-height:1.4;color:var(--dr-ink-2)}
#dayroom .dr-inv-full>.dr-button{flex:none;background:var(--dr-panel)}
/* The phone sheet's pinned Send (below); a desktop dialog keeps Send beside the field. */
#dayroom .dr-inv-foot{display:none;grid-area:foot}

/* ---------- Your workspaces (workspace-deck.js): a plain list, the current one ticked ---------- */
#dayroom .dr-modal:has(>#dr-modal-body>.dr-ws-switch){width:min(420px,calc(100vw - 32px))}
#dayroom #dr-modal-body:has(>.dr-ws-switch){display:flex;flex-direction:column;padding:0;overflow:hidden}
#dayroom .dr-ws-switch{flex:1;min-height:0;display:flex;flex-direction:column}
#dayroom .dr-ws-switch-list{flex:0 1 auto;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:2px;padding:8px;scrollbar-width:thin;scrollbar-color:var(--dr-line-2) transparent}
#dayroom .dr-ws-switch-foot{flex:none;padding:8px;border-top:1px solid var(--dr-line)}
#dayroom .dr-ws-option{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;margin:0;padding:8px 12px 8px 10px;border:0;border-radius:10px;background:transparent;color:var(--dr-ink);font:inherit;text-align:left;cursor:pointer}
@media (hover:hover){#dayroom .dr-ws-option:hover:not(:disabled){background:var(--dr-hover)}}
#dayroom .dr-ws-option[aria-current="true"],#dayroom .dr-ws-option[aria-current="true"]:hover{background:var(--dr-sel)}
#dayroom .dr-ws-option:focus-visible{outline:2px solid var(--dr-accent);outline-offset:-2px}
#dayroom .dr-ws-option-mark{flex:none;width:36px;height:36px;display:grid;place-items:center;overflow:hidden;border-radius:9px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-line-2);color:var(--dr-ink-2);font-size:12.5px;font-weight:800;letter-spacing:.02em}
/* A pixel logo draws at 1:1 (32 px), like the sidebar's workspace tile. */
#dayroom .dr-ws-option-mark svg,#dayroom .dr-ws-option-mark .dr-company-logo{display:block;width:32px;height:32px;border-radius:6px}
#dayroom .dr-ws-option-mark svg.dr-i{width:18px;height:18px}
#dayroom .dr-ws-option-body{flex:1;min-width:0;display:flex;flex-direction:column}
#dayroom .dr-ws-option-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:700;line-height:1.3}
#dayroom .dr-ws-option small{font-size:12px;font-weight:600;line-height:1.35;color:var(--dr-muted)}
#dayroom .dr-ws-option-trail{flex:none;display:flex;align-items:center;color:var(--dr-accent-text)}
#dayroom .dr-ws-option-trail svg.dr-i{width:18px;height:18px;stroke-width:2.2}
#dayroom .dr-ws-option-trail .dr-count{margin-left:0}
#dayroom .dr-ws-option.is-add{min-height:48px}
#dayroom .dr-ws-option.is-add .dr-ws-option-mark{background:transparent;box-shadow:none;border:1px dashed var(--dr-line-2);color:var(--dr-muted)}
#dayroom .dr-ws-option.is-add .dr-ws-option-name{font-size:13.5px;color:var(--dr-ink-2)}

/* ---------- Touch: every control is at least 44px to hit, without growing small marks ---------- */
@media (pointer:coarse),(max-width:899px){
 #dayroom .dr-inv-field{min-height:44px;padding:6px 6px}
 #dayroom .dr-inv-field input{height:32px}
 #dayroom .dr-inv-chip{height:32px}
 #dayroom .dr-inv-chip button{width:28px;height:28px}
 #dayroom .dr-inv-chip button::after{content:"";position:absolute;inset:-8px}
 #dayroom #dr-invite-send,#dayroom .dr-inv-copyrow .dr-button,#dayroom .dr-button.dr-inv-retry,#dayroom :is(p.dr-inv-meta .dr-link,.dr-link.dr-inv-more){min-height:44px}
 #dayroom .dr-inv-copyrow{min-height:52px}
 #dayroom .dr-inv-copyrow input{height:44px}
 #dayroom .dr-ws-option{min-height:60px}
 #dayroom .dr-ws-option.is-add{min-height:52px}
}

/* ---------- Phones: both dialogs become full-height sheets with their main action pinned at the foot ---------- */
/* .dr-overlay fills #dayroom, whose height follows the visual viewport on phones (mobile-shell.js), so an
   open keyboard shortens the sheet and the pinned Send stays just above it. */
@media (max-width:599px){
 #dayroom .dr-overlay:has(.dr-page[data-page="invite"],.dr-ws-switch){align-items:stretch;padding:calc(8px + env(safe-area-inset-top)) 0 0}
 #dayroom .dr-modal:has(>#dr-modal-body>.dr-page[data-page="invite"]),#dayroom .dr-modal:has(>#dr-modal-body>.dr-ws-switch){width:100%;max-width:100%;height:100%;max-height:100%;border-radius:16px 16px 0 0}
 #dayroom .dr-page[data-page="invite"]>.dr-page-body{padding:16px 16px 24px}
 #dayroom .dr-inv-entry{display:block}
 #dayroom #dr-invite-send{display:none}
 #dayroom .dr-modal:has(#dr-inv-compose:not([hidden],[data-full])) .dr-inv-foot{display:flex;padding:12px 16px max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--dr-line);background:var(--dr-panel)}
 #dayroom .dr-inv-foot .dr-button{flex:1;min-height:48px;font-size:14px}
 #dayroom :is(.dr-inv-linkcard,.dr-inv-full){flex-wrap:wrap}
 #dayroom :is(.dr-inv-linkcard,.dr-inv-full)>.dr-button{flex:1 1 100%}
 #dayroom .dr-ws-switch-list{flex:1 1 auto}
 #dayroom .dr-ws-switch-foot{padding:8px 8px max(8px,env(safe-area-inset-bottom))}
}

/* Optional organization setup stays in the invitation flow. */
#dayroom .dr-inv-setup{margin-top:16px;border-top:1px solid var(--dr-line);padding-top:14px}
#dayroom .dr-inv-setup summary{cursor:pointer;font-weight:700;color:var(--dr-ink);padding:4px 0}
#dayroom .dr-inv-setup>p{margin-top:10px}
#dayroom #dr-inv-setup-fields{border:0;padding:0;margin:16px 0;display:grid;gap:8px;min-width:0}
#dayroom #dr-inv-setup-fields>label,#dayroom .dr-inv-teams legend{font-size:13px;font-weight:700;color:var(--dr-ink)}
#dayroom :is(#dr-inv-manager,#dr-inv-role){width:100%;min-height:40px;background:var(--dr-field);color:var(--dr-ink);border:1px solid var(--dr-field-line);border-radius:8px;padding:8px 10px}
#dayroom .dr-inv-teams{border:0;padding:0;margin:12px 0 0;min-width:0}
#dayroom #dr-inv-team-options{display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:8px}
#dayroom #dr-inv-team-options label{display:flex;align-items:center;gap:8px;min-height:36px;cursor:pointer;font-size:13px}
#dayroom #dr-inv-team-options input{width:16px;height:16px;margin:0;accent-color:var(--dr-accent)}

#dayroom #dr-inv-project-options{display:grid;gap:8px;margin-top:10px}
#dayroom #dr-inv-project-options label{display:flex;align-items:flex-start;gap:10px;padding:8px 0;cursor:pointer;font-size:13px}
#dayroom #dr-inv-project-options input{flex:none;width:16px;height:16px;margin:2px 0 0;accent-color:var(--dr-accent)}
#dayroom #dr-inv-project-options small{display:block;margin-top:4px;color:var(--dr-muted);font-size:12px;line-height:1.45}

/* To-dos, Activity, Files and Later pages (workspace-pages.js). Tokens only, so light, dark and personal palettes all work.
   The page body is a size container: a narrow page (a tablet with the sidebar open, a phone) gets the compact toolbar and
   rows from its own width; phone-only details (the add bar pinned to the bottom, safe areas) follow the viewport. */
#dayroom .dr-wp-page .dr-page-body{container-type:inline-size;gap:14px}
#dayroom .dr-wp-page .dr-page-body>*{width:100%;max-width:860px;margin-inline:auto}
#dayroom .dr-workspace-pages[data-wp="files"] .dr-page-body>*{max-width:980px}
#dayroom .dr-wp-headbtn>svg.dr-i{display:none}

/* Toolbar: filters on the left, search on the right; on a narrow page the search folds behind one button. */
#dayroom .dr-wp-toolbar{display:flex;align-items:center;gap:10px;min-width:0}
#dayroom .dr-wp-filters{flex:1;min-width:0;display:flex;align-items:center;gap:8px}
#dayroom .dr-wp-search{flex:0 1 260px;min-width:0}
#dayroom .dr-wp-search input{width:100%;min-width:0}
#dayroom .dr-wp-search-toggle{display:none}
#dayroom .dr-wp-select{flex:0 1 auto;min-width:0;display:flex}
#dayroom .dr-wp-select select{width:100%;min-width:0;height:32px;min-height:32px;padding:0 34px 0 12px;border-radius:10px;font:700 13px/1.2 'Manrope',system-ui,sans-serif;text-overflow:ellipsis}
#dayroom .dr-wp-seg-count{min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--dr-accent);color:var(--dr-accent-ink);font-size:11px;font-weight:800;line-height:18px;text-align:center}
#dayroom .dr-wp-filters .dr-seg{flex:none}

/* Groups: a quiet heading and a rounded list of rows. */
#dayroom .dr-wp-group+.dr-wp-group{margin-top:20px}
#dayroom .dr-wp-group-title{display:flex;align-items:center;gap:8px;margin:0 0 8px;padding:0 4px;color:var(--dr-muted);font-size:12px;font-weight:800;letter-spacing:.02em}
#dayroom .dr-wp-group-title canvas.dr-wp-face{border-radius:6px}
#dayroom .dr-wp-group-count{display:inline-flex;align-items:center;font-weight:700;color:var(--dr-muted);opacity:.8;font-variant-numeric:tabular-nums}
#dayroom .dr-wp-dot{flex:none;width:7px;height:7px;border-radius:50%;background:var(--st-dnd);forced-color-adjust:none}
#dayroom .dr-wp-group.is-overdue .dr-wp-group-title{color:color-mix(in srgb,var(--st-dnd) 72%,var(--dr-ink))}
#dayroom .dr-wp-rows{list-style:none;margin:0;padding:0;border-radius:14px;background:var(--dr-panel);box-shadow:inset 0 0 0 1px var(--dr-line-2)}
#dayroom .dr-wp-rows>li{position:relative}
#dayroom .dr-wp-rows>li+li{box-shadow:inset 0 1px 0 var(--dr-line)}
#dayroom .dr-wp-rows>li:first-child{border-radius:14px 14px 0 0}
#dayroom .dr-wp-rows>li:last-child{border-radius:0 0 14px 14px}
#dayroom .dr-wp-rows>li:only-child{border-radius:14px}
#dayroom canvas.dr-wp-face{display:block;flex:none;border-radius:8px;image-rendering:pixelated;background:var(--dr-sunken)}
#dayroom .dr-wp-notice{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 10px 10px 14px;border-radius:12px;background:color-mix(in srgb,var(--st-dnd) 9%,var(--dr-panel));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--st-dnd) 30%,transparent);color:var(--dr-ink);font-size:13px;font-weight:600;line-height:1.45}
#dayroom .dr-wp-notice>span{min-width:0;overflow-wrap:anywhere}
#dayroom .dr-wp-content .dr-empty{padding:40px 20px}
#dayroom .dr-wp-quiet{box-shadow:none;color:var(--dr-muted)}
@media (hover:hover){#dayroom .dr-wp-quiet:hover:not(:disabled){color:var(--dr-ink)}}
#dayroom .dr-wp-footer{display:flex;flex-direction:column;align-items:center;gap:4px}
#dayroom .dr-wp-footer:empty{display:none}
#dayroom .dr-wp-inline-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}

/* ---------- To-dos ---------- */
/* Quick add is one row of controls. On a wide page the extras (due date, who it's for, Add) appear beside the field
   when it's in use, which changes widths only, never the height, so nothing under the pointer moves. */
#dayroom .dr-wp-quickadd{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;min-height:46px;padding:4px 6px;border-radius:14px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-line-2)}
#dayroom .dr-wp-quickadd:focus-within{background:var(--dr-panel);box-shadow:inset 0 0 0 1.5px var(--dr-accent)}
#dayroom .dr-wp-quickadd-plus{flex:none;width:32px;height:32px;display:grid;place-items:center;padding:0;border:0;border-radius:9px;background:transparent;color:var(--dr-accent-text);cursor:text}
#dayroom .dr-wp-quickadd-plus svg.dr-i{width:18px;height:18px;stroke-width:2.2}
#dayroom .dr-wp-quickadd input.dr-wp-quickadd-title{flex:1 1 160px;min-width:0;height:36px;margin:0;padding:0 4px;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--dr-ink);font:600 14px/1.4 'Manrope',system-ui,sans-serif}
#dayroom .dr-wp-quickadd input.dr-wp-quickadd-title:focus{outline:none;box-shadow:none}
#dayroom .dr-wp-quickadd input::placeholder{color:var(--dr-muted);opacity:1}
#dayroom .dr-wp-quickadd-break{display:none}
#dayroom .dr-wp-quickadd-go{flex:none}
#dayroom .dr-wp-quickadd:not(:focus-within):not(.has-text) :is(.dr-wp-quickadd-go,.dr-wp-quickadd-field){display:none}
#dayroom .dr-wp-quickadd-field{flex:none;display:inline-flex;align-items:center;gap:6px;color:var(--dr-muted);font-size:12px;font-weight:800}
#dayroom .dr-wp-quickadd-field :is(input,select){height:32px;min-height:32px;border-radius:9px;font:600 13px/1.2 'Manrope',system-ui,sans-serif}
#dayroom .dr-wp-quickadd-field input{width:130px;padding:0 10px}
#dayroom .dr-wp-quickadd-field select{max-width:170px}
/* The privacy line is read with the field; on a phone it shows under it. */
#dayroom .dr-wp-quickadd-note{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;margin:0;color:var(--dr-muted);font-size:12px;font-weight:600}
#dayroom .dr-wp-quickadd-error{flex-basis:100%;margin:0 4px 4px 40px;font-size:13px}
#dayroom .dr-wp-quickadd-error[hidden]{display:none}

#dayroom .dr-wp-todo{display:flex;align-items:flex-start;gap:12px;min-height:48px;padding:11px 8px 11px 14px;overflow:hidden}
#dayroom .dr-wp-check{flex:none;position:relative;display:grid;place-items:center;width:24px;height:24px;margin:0;padding:0;border:0;border-radius:8px;background:transparent;box-shadow:inset 0 0 0 1.75px color-mix(in srgb,var(--dr-muted) 75%,transparent);color:transparent;cursor:pointer}
/* The box stays 24px; its target is 32px, and 44px on touch. */
#dayroom .dr-wp-check::before{content:'';position:absolute;inset:-4px;border-radius:10px}
#dayroom .dr-wp-check svg.dr-i{width:15px;height:15px;stroke-width:2.6}
#dayroom .dr-wp-check[aria-checked="true"],#dayroom .is-checking>.dr-wp-check{background:var(--dr-accent);box-shadow:none;color:var(--dr-accent-ink)}
#dayroom .is-unchecking>.dr-wp-check{background:transparent;color:transparent;box-shadow:inset 0 0 0 1.75px color-mix(in srgb,var(--dr-muted) 75%,transparent)}
#dayroom .dr-wp-check:focus-visible{outline:2px solid var(--dr-accent);outline-offset:3px}
#dayroom .dr-wp-check.is-readonly{cursor:default;box-shadow:inset 0 0 0 1.5px var(--dr-line-2);border-radius:50%;color:var(--dr-muted)}
@media (hover:hover){#dayroom .dr-wp-check:not(.is-readonly):not([aria-checked="true"]):hover{box-shadow:inset 0 0 0 2px var(--dr-accent);color:color-mix(in srgb,var(--dr-accent) 55%,transparent)}}
#dayroom .dr-wp-todo-body{flex:1;min-width:0;padding-top:2px}
#dayroom p.dr-wp-todo-line{margin:0;color:var(--dr-ink);font-size:14px;font-weight:600;line-height:20px}
#dayroom .dr-wp-todo-title{background:linear-gradient(currentColor,currentColor) no-repeat 0 60%/0 1.5px;overflow-wrap:anywhere}
#dayroom .dr-wp-todo.is-done .dr-wp-todo-title{background-size:100% 1.5px}
#dayroom :is(.dr-wp-todo.is-done,.dr-wp-todo.is-checking) p.dr-wp-todo-line{color:var(--dr-muted);font-weight:500}
#dayroom p.dr-wp-todo-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;margin:4px 0 0;color:var(--dr-muted);font-size:12px;font-weight:600;line-height:18px}
#dayroom :is(.dr-wp-due,.dr-wp-src,.dr-wp-who){display:inline-flex;align-items:center;gap:5px;min-width:0;max-width:100%}
#dayroom :is(.dr-wp-due,.dr-wp-src) svg.dr-i{width:13px;height:13px;flex:none}
#dayroom .dr-wp-due.is-overdue{color:color-mix(in srgb,var(--st-dnd) 72%,var(--dr-ink));font-weight:800}
#dayroom .dr-wp-who canvas.dr-wp-face{border-radius:5px}
#dayroom button.dr-wp-src{padding:0;margin:0;border:0;background:none;color:var(--dr-muted);font:inherit;text-align:left;text-decoration:underline;text-decoration-color:var(--dr-line-2);text-underline-offset:3px;cursor:pointer}
@media (hover:hover){#dayroom button.dr-wp-src:hover{color:var(--dr-ink);text-decoration-color:currentColor}}
#dayroom button.dr-wp-src:focus-visible{outline:2px solid var(--dr-accent);outline-offset:2px;border-radius:4px}
#dayroom .dr-wp-more{flex:none;margin:-4px 0}
@media (hover:hover){#dayroom .dr-wp-todo:not(:hover):not(:focus-within):not(.is-expanded) .dr-wp-more{opacity:0}}
#dayroom .dr-wp-todo{flex-wrap:wrap}
#dayroom .dr-wp-todo-actions{flex-basis:100%;padding:0 0 2px 36px}
#dayroom .dr-wp-row-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:2px}
#dayroom .dr-wp-row-actions .dr-button{min-height:30px;padding:0 10px;font-size:12.5px}
#dayroom .dr-wp-todo-confirm{display:grid;gap:10px;margin-top:10px;padding-top:10px;border-top:1px solid var(--dr-line);font-size:13px;line-height:1.45;overflow-wrap:anywhere}
#dayroom .dr-wp-todo.is-fresh{animation:dr-wp-fresh 1.8s ease-out}
@keyframes dr-wp-fresh{0%,30%{background:var(--dr-accent-soft)}100%{background:transparent}}
#dayroom .is-checking>.dr-wp-check{animation:dr-wp-pop .32s ease-out}
@keyframes dr-wp-pop{0%{transform:scale(.82)}60%{transform:scale(1.12)}100%{transform:scale(1)}}
#dayroom .dr-wp-todo.is-editing{display:block;padding:14px}
#dayroom .dr-wp-todo-editor fieldset{min-width:0;margin:0;padding:0;border:0;display:grid;gap:14px}
#dayroom .dr-wp-todo-editor fieldset:disabled{opacity:.7}
#dayroom .dr-wp-todo-editor label{display:grid;gap:6px;min-width:0;color:var(--dr-ink);font-size:13px;font-weight:700;line-height:18px}
#dayroom .dr-wp-todo-editor :is(input,select){font:600 14px/20px 'Manrope',system-ui,sans-serif}
#dayroom .dr-wp-todo-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
#dayroom .dr-wp-todo-optional{color:var(--dr-muted);font-weight:500}
#dayroom .dr-wp-todo-error{font-size:13px;overflow-wrap:anywhere}
#dayroom .dr-wp-todo-editor .dr-hint{margin:0;font-size:12px}

#dayroom .dr-wp-done{margin-top:22px}
#dayroom .dr-wp-done-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:36px}
#dayroom .dr-wp-done-toggle{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0 10px 0 4px;border:0;border-radius:9px;background:transparent;color:var(--dr-muted);font:600 13px/1.2 'Manrope',system-ui,sans-serif;cursor:pointer}
#dayroom .dr-wp-done-toggle strong{color:var(--dr-ink-2);font-weight:800}
#dayroom .dr-wp-done-toggle svg.dr-i{width:15px;height:15px;transition:transform .16s ease}
#dayroom .dr-wp-done.is-open .dr-wp-done-toggle svg.dr-i{transform:rotate(90deg)}
#dayroom .dr-wp-done-toggle:focus-visible{outline:2px solid var(--dr-accent);outline-offset:1px}
@media (hover:hover){#dayroom .dr-wp-done-toggle:hover{background:var(--dr-hover);color:var(--dr-ink)}}
#dayroom .dr-wp-done>.dr-wp-rows{margin-top:6px}
#dayroom .dr-wp-done>.dr-wp-rows[hidden]{display:none}

/* ---------- Activity, Later ---------- */
#dayroom .dr-wp-unread{display:flex;align-items:center;gap:8px;min-width:0;overflow-x:auto;scrollbar-width:none;padding:2px 2px 4px}
#dayroom .dr-wp-unread::-webkit-scrollbar{display:none}
#dayroom .dr-wp-unread-label{flex:none;margin-right:2px;color:var(--dr-muted);font-size:12px;font-weight:800}
#dayroom .dr-wp-chip{flex:none;display:inline-flex;align-items:center;gap:8px;min-height:30px;padding:0 5px 0 12px;border:0;border-radius:999px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-line-2);color:var(--dr-ink);font:700 13px/1.2 'Manrope',system-ui,sans-serif;white-space:nowrap;cursor:pointer}
#dayroom .dr-wp-chip .dr-count{margin:0}
#dayroom .dr-wp-chip:focus-visible{outline:2px solid var(--dr-accent);outline-offset:2px}
@media (hover:hover){#dayroom .dr-wp-chip:hover{background:var(--dr-hover)}}

#dayroom .dr-wp-item{display:flex;align-items:flex-start;gap:12px;min-height:56px;padding:12px 12px 12px 18px;overflow:hidden}
@media (hover:hover){#dayroom .dr-wp-item:hover{background:var(--dr-hover)}}
#dayroom .dr-wp-new{position:absolute;left:7px;top:25px;width:6px;height:6px;border-radius:50%;background:var(--dr-accent);forced-color-adjust:none}
#dayroom .dr-wp-item-lead{flex:none;position:relative;width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:var(--dr-sunken);color:var(--dr-muted)}
#dayroom .dr-wp-item-lead>svg.dr-i{width:17px;height:17px}
#dayroom .dr-wp-item-lead canvas.dr-wp-face{border-radius:9px}
#dayroom .dr-wp-item-lead .dr-companion-dp{display:block;width:32px;height:32px;overflow:hidden;border-radius:9px}
#dayroom .dr-wp-item-lead .dr-companion-dp svg{display:block;width:100%;height:100%}
#dayroom .dr-wp-item.is-task .dr-wp-item-lead{background:transparent}
#dayroom .dr-wp-item-glyph{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:var(--dr-sunken);color:var(--dr-muted)}
#dayroom .dr-wp-item-glyph svg.dr-i{width:17px;height:17px}
#dayroom .dr-wp-item-badge{position:absolute;right:-5px;bottom:-5px;width:17px;height:17px;display:grid;place-items:center;border-radius:50%;background:var(--dr-panel);box-shadow:0 0 0 1px var(--dr-line-2);color:var(--dr-accent-text)}
#dayroom .dr-wp-item-badge svg.dr-i{width:11px;height:11px;stroke-width:2.2}
#dayroom .dr-wp-item-body{flex:1;min-width:0}
#dayroom p.dr-wp-item-line{margin:0;color:var(--dr-ink-2);font-size:13.5px;font-weight:600;line-height:20px;overflow-wrap:anywhere}
#dayroom .dr-wp-item-open{display:inline;padding:0;margin:0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
/* The whole row opens it; its own buttons and links sit above. */
#dayroom .dr-wp-item-open::after{content:'';position:absolute;inset:0;z-index:0}
#dayroom .dr-wp-item-open:focus-visible{outline:none}
#dayroom .dr-wp-item-open:focus-visible::after{outline:2px solid var(--dr-accent);outline-offset:-2px;border-radius:inherit}
#dayroom .dr-wp-item-open[aria-disabled="true"]{cursor:default}
#dayroom .dr-wp-item :is(.dr-wp-check,.dr-wp-item-act,.dr-wp-attachments,.dr-wp-more-text,.dr-wp-summary,.dr-wp-tag,.dr-button){position:relative;z-index:1}
#dayroom .dr-wp-item-open strong{color:var(--dr-ink);font-weight:800}
#dayroom .dr-wp-item:not(.is-unread):not(.is-task) .dr-wp-item-open strong{font-weight:700}
#dayroom .dr-wp-item-where{color:var(--dr-muted);font-weight:600}
#dayroom .dr-wp-tag{display:inline-flex;align-items:center;margin-left:8px;padding:0 8px;border-radius:999px;background:var(--dr-accent-soft);color:var(--dr-accent-text);font-size:11px;font-weight:800;line-height:18px;vertical-align:1px}
#dayroom p.dr-wp-item-text{margin:2px 0 0;color:var(--dr-muted);font-size:13px;font-weight:500;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
#dayroom .dr-wp-item.is-unread p.dr-wp-item-text{color:var(--dr-ink-2)}
#dayroom .dr-wp-item.is-saved p.dr-wp-item-text{-webkit-line-clamp:3;color:var(--dr-ink-2)}
#dayroom p.dr-wp-item-sub{display:flex;flex-wrap:wrap;align-items:center;gap:2px 14px;margin:3px 0 0;color:var(--dr-muted);font-size:12px;font-weight:600;line-height:18px}
#dayroom .dr-wp-item-side{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:2px;min-height:32px}
#dayroom .dr-wp-when{color:var(--dr-muted);font-size:12px;font-weight:700;line-height:20px;white-space:nowrap;font-variant-numeric:tabular-nums}
#dayroom .dr-wp-item-act{width:30px;height:30px;margin-right:-4px}
#dayroom .dr-wp-item-act svg.dr-i{width:16px;height:16px}
#dayroom .dr-wp-item-act[aria-pressed="true"]{color:var(--dr-accent-text)}
#dayroom .dr-wp-item-act[aria-pressed="true"] svg.dr-i{fill:currentColor}
@media (hover:hover){#dayroom .dr-wp-item:not(:hover):not(:focus-within) .dr-wp-item-act:not([aria-pressed="true"]){opacity:0}}
#dayroom .dr-wp-item.is-catchup .dr-wp-item-open::after{display:none}
#dayroom .dr-wp-item.is-catchup:hover{background:transparent}
#dayroom .dr-wp-summary{max-width:72ch;margin-top:4px;color:var(--dr-ink-2);font-size:13px;line-height:1.55;max-height:4.65em;overflow:hidden;-webkit-mask-image:linear-gradient(#000 55%,transparent);mask-image:linear-gradient(#000 55%,transparent)}
#dayroom .dr-wp-item.is-expanded .dr-wp-summary{max-height:none;-webkit-mask-image:none;mask-image:none}
#dayroom .dr-wp-more-text{display:inline-flex;align-items:center;min-height:28px;margin-top:2px;padding:0;border:0;background:none;color:var(--dr-accent-text);font:800 12.5px/1 'Manrope',system-ui,sans-serif;cursor:pointer}
#dayroom .dr-wp-more-text:focus-visible{outline:2px solid var(--dr-accent);outline-offset:2px;border-radius:4px}
#dayroom .dr-wp-item.is-missing p.dr-wp-item-text{-webkit-line-clamp:unset}
#dayroom .dr-wp-item.is-missing .dr-button{margin-top:6px}
#dayroom .dr-wp-attachments{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;min-width:0}
#dayroom .dr-wp-attachment{display:inline-flex;align-items:center;gap:6px;max-width:100%;min-height:28px;padding:0 10px;border-radius:8px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-line);color:var(--dr-ink);font-size:12.5px;font-weight:700;text-decoration:none}
#dayroom .dr-wp-attachment span{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#dayroom .dr-wp-attachment svg.dr-i{width:14px;height:14px;color:var(--dr-muted)}
@media (hover:hover){#dayroom .dr-wp-attachment:hover{background:var(--dr-hover);box-shadow:inset 0 0 0 1px var(--dr-line-2)}}

/* ---------- Files ---------- */
#dayroom .dr-wp-file{display:flex;align-items:center;gap:10px;min-height:60px;padding:8px 8px 8px 10px}
@media (hover:hover){#dayroom .dr-wp-file:hover{background:var(--dr-hover)}}
#dayroom .dr-wp-file-open{flex:1;min-width:0;display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none;border-radius:10px}
#dayroom .dr-wp-file-open:focus-visible{outline:2px solid var(--dr-accent);outline-offset:2px}
#dayroom .dr-wp-file-thumb{flex:none;width:40px;height:40px;display:grid;place-items:center;overflow:hidden;border-radius:10px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-line);color:var(--dr-muted)}
#dayroom .dr-wp-file-thumb img{display:block;width:100%;height:100%;object-fit:cover}
#dayroom .dr-wp-file-thumb svg.dr-i{width:18px;height:18px}
#dayroom .dr-wp-file-thumb.is-document{color:var(--dr-accent-text)}
#dayroom .dr-wp-file-text{min-width:0;display:flex;flex-direction:column;gap:1px}
#dayroom .dr-wp-file-name{color:var(--dr-ink);font-size:14px;font-weight:700;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#dayroom .dr-wp-file-meta{color:var(--dr-muted);font-size:12px;font-weight:600;line-height:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (hover:hover){#dayroom .dr-wp-file-open:hover .dr-wp-file-name{text-decoration:underline;text-underline-offset:3px}}
#dayroom .dr-wp-file>.dr-wp-when{flex:none;min-width:56px;text-align:right}

/* Undo: a small bar that floats at the bottom of the page for a few seconds. */
#dayroom .dr-wp-undo{position:sticky;bottom:16px;z-index:4;order:30;margin-top:auto;display:flex;justify-content:center;pointer-events:none}
#dayroom .dr-wp-undo:empty{display:none}
#dayroom .dr-wp-undo-bar{pointer-events:auto;display:flex;align-items:center;gap:4px;max-width:min(560px,100%);min-height:44px;padding:4px 4px 4px 16px;border-radius:12px;background:var(--dr-ink);color:var(--dr-panel);box-shadow:var(--dr-shadow);font-size:13px;font-weight:700;animation:dr-wp-rise .2s ease-out}
@keyframes dr-wp-rise{from{transform:translateY(8px);opacity:0}}
#dayroom .dr-wp-undo-text{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#dayroom .dr-wp-undo-go{flex:none;min-height:36px;margin-left:6px;padding:0 12px;border:0;border-radius:8px;background:color-mix(in srgb,var(--dr-panel) 16%,transparent);color:var(--dr-panel);font:800 13px/1 'Manrope',system-ui,sans-serif;cursor:pointer}
#dayroom .dr-wp-undo-x{flex:none;color:color-mix(in srgb,var(--dr-panel) 75%,transparent)}
#dayroom .dr-wp-undo-bar :is(button):focus-visible{outline:2px solid var(--dr-panel);outline-offset:-2px}
@media (hover:hover){#dayroom .dr-wp-undo-go:hover{background:color-mix(in srgb,var(--dr-panel) 26%,transparent)}#dayroom .dr-wp-undo-x:hover{background:color-mix(in srgb,var(--dr-panel) 16%,transparent);color:var(--dr-panel)}}

/* ---------- A narrow page: one compact toolbar row, the search behind a button. ---------- */
@container (max-width:600px){
 #dayroom .dr-wp-search{display:none}
 #dayroom .dr-wp-search-toggle{display:grid;width:36px;height:36px;border-radius:10px;box-shadow:inset 0 0 0 1px var(--dr-line-2);color:var(--dr-ink-2)}
 #dayroom .dr-wp-toolbar.is-searching .dr-wp-filters{display:none}
 #dayroom .dr-wp-toolbar.is-searching .dr-wp-search{display:inline-flex;flex:1;height:36px}
 #dayroom .dr-wp-toolbar{gap:8px}
 /* Filters that don't fit scroll sideways inside their row, fading at the edge; the page itself never scrolls sideways. */
 #dayroom .dr-wp-filters{overflow-x:auto;scrollbar-width:none;padding:1px 14px 1px 1px;-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 14px),transparent);mask-image:linear-gradient(to right,#000 calc(100% - 14px),transparent)}
 #dayroom .dr-wp-filters::-webkit-scrollbar{display:none}
 #dayroom .dr-wp-filters .dr-seg.is-text>button{padding:0 8px;font-size:12px}
 #dayroom .dr-wp-filters:has(.dr-wp-select){padding-right:1px;-webkit-mask-image:none;mask-image:none}
 #dayroom .dr-wp-select{flex:1 1 0}
 #dayroom .dr-wp-select select{height:36px}
 #dayroom .dr-wp-quickadd-go{order:1}
 #dayroom :is(.dr-wp-quickadd-break,.dr-wp-quickadd-field,.dr-wp-quickadd-note,.dr-wp-quickadd-error){order:2}
 #dayroom .dr-wp-quickadd:is(:focus-within,.has-text) .dr-wp-quickadd-break{display:block;flex-basis:100%;height:0}
 #dayroom .dr-wp-quickadd-field{flex:1 1 140px;padding-left:4px}
 #dayroom .dr-wp-quickadd-field :is(input,select){flex:1;width:auto;min-width:0;max-width:none}
 #dayroom .dr-wp-quickadd:is(:focus-within,.has-text) .dr-wp-quickadd-note{position:static;width:auto;height:auto;clip-path:none;white-space:normal;flex-basis:100%;padding:0 4px 4px}
 #dayroom .dr-wp-quickadd-error{margin-left:4px}
 #dayroom .dr-wp-item{padding-left:16px;gap:10px}
 #dayroom .dr-wp-new{left:6px}
 #dayroom .dr-wp-file>.dr-wp-when{min-width:0}
 #dayroom .dr-wp-done-head .dr-wp-quiet{padding:0 8px}
}
@container (max-width:380px){
 #dayroom .dr-wp-file>.dr-wp-when{display:none}
}

/* ---------- Phones ---------- */
@media (max-width:760px){
 #dayroom .dr-wp-page .dr-page-head{flex-wrap:nowrap;min-height:56px;padding:8px 10px 8px 16px}
 #dayroom .dr-wp-page .dr-page-sub{display:none}
 #dayroom .dr-wp-page .dr-page-actions{flex-wrap:nowrap;gap:4px}
 #dayroom .dr-wp-headbtn{width:40px;min-height:40px;padding:0;box-shadow:none;color:var(--dr-ink-2)}
 #dayroom .dr-wp-headbtn>span{display:none}
 #dayroom .dr-wp-headbtn>svg.dr-i{display:block;width:19px;height:19px}
 #dayroom #dr-work-page .dr-wp-page .dr-page-body{padding:12px 16px calc(20px + env(safe-area-inset-bottom));gap:12px}
 /* To-dos: the add bar sits at the bottom, in reach of a thumb, above the safe area. */
 #dayroom #dr-work-page[data-wp="todos"] .dr-wp-page .dr-page-body{padding-bottom:0}
 #dayroom .dr-workspace-pages[data-wp="todos"] .dr-wp-content{padding-bottom:12px}
 #dayroom .dr-wp-quickadd{position:sticky;bottom:0;z-index:3;order:31;width:auto;max-width:none;margin:auto -16px 0;padding:8px 12px calc(8px + env(safe-area-inset-bottom));border-radius:0;background:var(--dr-panel);box-shadow:0 -1px 0 var(--dr-line-2),inset 0 0 0 0 transparent}
 #dayroom .dr-wp-quickadd:focus-within{background:var(--dr-panel);box-shadow:0 -1px 0 var(--dr-line-2)}
 /* The field and its + read as one pill inside the bar. */
 #dayroom .dr-wp-quickadd::before{content:'';position:absolute;z-index:-1;top:8px;left:12px;right:12px;height:48px;border-radius:12px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-line-2);pointer-events:none}
 #dayroom .dr-wp-quickadd:focus-within::before{background:var(--dr-panel);box-shadow:inset 0 0 0 1.5px var(--dr-accent)}
 #dayroom .dr-wp-quickadd-plus{margin-left:4px}
 #dayroom .dr-wp-quickadd-go{margin-right:2px}
 #dayroom .dr-page-body:has(>.dr-wp-undo:not(:empty)) .dr-wp-quickadd{margin-top:0}
 #dayroom .dr-wp-undo{bottom:calc(12px + env(safe-area-inset-bottom))}
 #dayroom .dr-workspace-pages[data-wp="todos"] .dr-wp-undo{bottom:calc(72px + env(safe-area-inset-bottom));padding-bottom:8px}
 #dayroom .dr-workspace-pages[data-wp="todos"] .dr-page-body:has(.dr-wp-quickadd:focus-within) .dr-wp-undo{display:none}
 #dayroom .dr-wp-undo-bar{width:100%}
 #dayroom .dr-wp-todo-fields{grid-template-columns:1fr}
}

/* Touch: every target at least 44px. */
@media (pointer:coarse){
 #dayroom .dr-wp-check::before{inset:-10px}
 #dayroom .dr-wp-todo{min-height:56px;padding-top:15px;padding-bottom:15px}
 #dayroom .dr-wp-more,#dayroom .dr-wp-item-act,#dayroom .dr-wp-file-chat,#dayroom .dr-wp-undo-x,#dayroom .dr-wp-headbtn{width:44px;height:44px;min-height:44px}
 #dayroom .dr-wp-more{margin:-10px -4px -10px 0}
 #dayroom .dr-wp-item-act{margin:-6px -8px -6px 0}
 #dayroom .dr-wp-search-toggle{width:44px;height:44px}
 #dayroom .dr-wp-filters .dr-seg.is-text>button{height:38px;line-height:38px}
 #dayroom .dr-wp-select select,#dayroom .dr-wp-toolbar.is-searching .dr-wp-search{height:44px;min-height:44px}
 #dayroom .dr-wp-quickadd-plus,#dayroom .dr-wp-quickadd-go{min-width:44px;height:44px;min-height:44px}
 #dayroom .dr-wp-quickadd input[type="text"]{height:44px}
 #dayroom .dr-wp-quickadd-field :is(input,select){height:44px;min-height:44px}
 #dayroom .dr-wp-done-toggle,#dayroom .dr-wp-done-head .dr-button,#dayroom .dr-wp-row-actions .dr-button,#dayroom .dr-wp-undo-go,#dayroom .dr-wp-footer .dr-button,#dayroom .dr-wp-notice .dr-button,#dayroom .dr-wp-todo-confirm .dr-button,#dayroom .dr-wp-todo-editor .dr-button{min-height:44px}
 #dayroom .dr-wp-chip{min-height:44px}
 #dayroom .dr-wp-attachment{min-height:44px}
 #dayroom button.dr-wp-src,#dayroom .dr-wp-more-text{min-height:44px;margin:-13px 0}
 #dayroom .dr-wp-item{min-height:64px}
 /* iOS zooms into fields under 16px. */
 #dayroom .dr-wp-page :is(input,select){font-size:16px}
}

@media (prefers-reduced-motion:reduce){
 #dayroom :is(.dr-wp-todo.is-fresh,.is-checking>.dr-wp-check,.dr-wp-undo-bar){animation:none}
 #dayroom .dr-wp-done-toggle svg.dr-i{transition:none}
}
@media (forced-colors:active){
 #dayroom .dr-wp-check[aria-checked="true"]{background:Highlight;color:HighlightText}
 #dayroom :is(.dr-wp-rows,.dr-wp-quickadd,.dr-wp-chip,.dr-wp-undo-bar){border:1px solid CanvasText}
}

/* Keep completion controls centered beside the complete title/source block. */
#dayroom .dr-wp-todo>.dr-wp-check{align-self:center}
#dayroom .dr-wp-todo-body{padding-top:0}

/* Personal tasks: roomy shared views, with the same actions and source links. */
#dayroom .dr-todo-viewbar{display:flex;flex-wrap:wrap;gap:12px;margin:8px 0 24px}
#dayroom .dr-todo-viewbar button{min-height:44px;padding:10px 20px}
#dayroom .dr-todo-viewbar [aria-pressed=true]{background:var(--dr-accent);color:var(--dr-accent-ink);border-color:var(--dr-accent)}
#dayroom .dr-todo-board{display:grid;grid-template-columns:repeat(3,minmax(250px,1fr));gap:20px;overflow:auto;padding:2px 2px 20px}
#dayroom .dr-todo-board>section{min-width:0;border:1px solid var(--dr-line);border-radius:14px;padding:16px;background:var(--dr-soft)}
#dayroom .dr-todo-board h3{display:flex;justify-content:space-between;gap:12px;margin:0 0 20px;font-size:15px}
#dayroom .dr-todo-board .dr-wp-rows{display:grid;gap:16px;background:transparent;box-shadow:none}
#dayroom .dr-todo-board .dr-wp-rows>li{border:1px solid var(--dr-line);border-radius:12px;background:var(--dr-panel);padding:16px}
#dayroom .dr-todo-empty{color:var(--dr-muted)}
#dayroom .dr-todo-month{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:20px}
#dayroom .dr-todo-month h3{flex:1 1 240px;margin:0;font-size:18px}
#dayroom .dr-todo-month button{min-height:44px}
#dayroom .dr-todo-week,#dayroom .dr-todo-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
#dayroom .dr-todo-week>span{padding:16px 10px;font-size:12px;color:var(--dr-muted)}
#dayroom .dr-todo-month-grid{border-top:1px solid var(--dr-line);border-left:1px solid var(--dr-line);margin-bottom:28px}
#dayroom .dr-todo-month-grid>section,#dayroom .dr-todo-month-grid>.is-outside{min-height:150px;padding:12px;border-right:1px solid var(--dr-line);border-bottom:1px solid var(--dr-line);min-width:0}
#dayroom .dr-todo-day h3{margin:0 0 14px;font-size:13px}
#dayroom .dr-todo-day.is-today{background:color-mix(in srgb,var(--dr-accent) 9%,var(--dr-panel))}
#dayroom .dr-todo-day .dr-wp-rows{background:transparent;box-shadow:none;display:grid;gap:12px}
#dayroom .dr-todo-day .dr-wp-todo{display:flex;flex-wrap:wrap;padding:10px;border:1px solid var(--dr-line);border-radius:10px;background:var(--dr-panel);gap:10px}
#dayroom .dr-todo-day .dr-wp-todo-body{flex:1 1 100px;min-width:0}
#dayroom .dr-todo-day .dr-wp-todo-title{font-size:12px}
#dayroom .dr-todo-day-long{display:none}
#dayroom .dr-todo-day .dr-wp-todo-actions{width:100%}
#dayroom .dr-wp-quickadd{gap:12px;padding:12px}
#dayroom .dr-wp-quickadd-field{flex:1 1 170px;gap:10px;min-width:0;flex-wrap:wrap}
#dayroom .dr-wp-quickadd-field :is(input,select){min-height:44px;height:44px;max-width:100%;min-width:0}
#dayroom .dr-wp-quickadd-title{min-height:44px}
#dayroom .dr-wp-quickadd-go{min-height:44px}
@media(max-width:1200px){
 #dayroom .dr-todo-week{display:none}
 #dayroom .dr-todo-month-grid{grid-template-columns:minmax(0,1fr);gap:16px;border:0}
 #dayroom .dr-todo-month-grid>.is-outside,#dayroom .dr-todo-day:not(.has-tasks):not(.is-today){display:none}
 #dayroom .dr-todo-month-grid>section{border:1px solid var(--dr-line);border-radius:12px;min-height:0;padding:16px}
 #dayroom .dr-todo-day-long{display:inline}
}
@media(max-width:600px){
 #dayroom .dr-todo-board{grid-template-columns:minmax(0,1fr);overflow:visible}
 #dayroom .dr-todo-viewbar button{flex:1 1 85px}
 #dayroom .dr-wp-quickadd-field{flex-basis:100%;padding:0}
 #dayroom .dr-wp-quickadd-field :is(input,select){flex:1;max-width:100%;width:auto}
 #dayroom .dr-wp-toolbar{flex-wrap:wrap;gap:16px}
}
#dayroom .dr-workspace-pages .dr-todo-viewbar button.dr-button[aria-pressed=true]{background:var(--dr-accent);color:var(--dr-accent-ink,#172017);border-color:var(--dr-accent)}
#dayroom .dr-todo-open{background:transparent;color:inherit;border:0;padding:0;text-align:left;font:inherit;cursor:pointer;min-height:44px}
#dayroom .dr-todo-open:focus-visible{outline:2px solid var(--dr-accent);outline-offset:3px;border-radius:4px}
/* Assignment boards preserve card width instead of compressing list rows. */
#dayroom .dr-todo-board{display:flex;gap:24px;overflow-x:auto;align-items:flex-start;padding-bottom:20px}
#dayroom .dr-todo-board>section{flex:0 0 340px;min-width:340px;padding:16px}
#dayroom .dr-todo-board .dr-wp-todo{padding:20px;gap:12px;grid-template-columns:24px minmax(0,1fr) auto}
#dayroom .dr-todo-board .dr-wp-todo-title{font-size:15px;line-height:1.5}
#dayroom .dr-todo-board .dr-wp-todo-meta{font-size:12px;margin-top:12px}
@media(max-width:600px){#dayroom .dr-todo-board>section{flex-basis:calc(100vw - 64px);min-width:calc(100vw - 64px)}}

/* Channel and DM conversation polish (UI refresh 2026-10-25). Loads after surfaces.css and before mobile.css; tokens only, so
   light, dark and personal palettes all follow. Sections: header, the message list (runs, dividers, start, earlier messages),
   imported WhatsApp bubbles, media, hover tools, the composer, the thread panel, and touch screens and phones last. */

/* ---------- Header: the title and one short line, then the pile, Gather and the conversation tools. The office layout and
   Ask Dayroom companion moved into … (product-app.js headerMenuItems); their buttons stay in the page for their handlers. ---------- */
#dayroom .dr-chathead{gap:6px;padding:0 10px 0 20px}
#dayroom .dr-chathead>.dr-office-views,#dayroom .dr-chathead #dr-ask-companion,#dayroom .dr-chat-back{display:none}
#dayroom .dr-chathead .dr-title{font-size:15.5px}
#dayroom .dr-chathead .dr-subt{font-size:12px;font-weight:600}
#dayroom .dr-title .dr-hash.is-lock{display:inline-grid;place-items:center;vertical-align:-2px}
#dayroom .dr-title .dr-hash.is-lock svg.dr-i{width:15px;height:15px}
#dayroom .dr-chathead #dr-member-pile{margin-right:4px}
#dayroom .dr-chathead #dr-member-pile canvas{width:28px;height:28px;border-radius:8px}
#dayroom .dr-chathead .dr-team-tools{gap:2px;margin-left:4px;padding-left:8px;box-shadow:inset 1px 0 0 var(--dr-line)}
#dayroom .dr-chathead .dr-team-tools .dr-iconbtn{width:34px;height:34px}
#dayroom .dr-chathead .dr-team-tools .dr-iconbtn svg.dr-i{width:18px;height:18px}
#dayroom .dr-chathead #dr-room-menu[aria-expanded="true"]{background:var(--dr-sel);color:var(--dr-ink)}
/* The layout choices in … are radio items: a tick marks the current one. */
#dayroom .dr-room-menu-item[role="menuitemradio"]{position:relative;padding-left:30px}
#dayroom .dr-room-menu-item[aria-checked="true"]::before{content:'';position:absolute;left:12px;top:50%;width:9px;height:5px;margin-top:-4px;border:solid currentColor;border-width:0 0 2px 2px;transform:rotate(-45deg)}

/* ---------- The message list ---------- */
#dayroom #dr-messages{padding:6px 12px 10px}
#dayroom .dr-message-body{overflow-wrap:anywhere}
#dayroom .dr-message-body :is(pre,table){max-width:100%;overflow:auto}
#dayroom .dr-message-body img{max-width:100%}
/* A run of messages from one author: the first row carries the portrait, name and time; .is-grouped rows only their content,
   with the time in the portrait's column while the row is hovered, focused or picked. */
#dayroom article.dr-message-row{margin-top:6px;padding:6px 12px 4px;border-radius:10px;line-height:1.5}
#dayroom article.dr-message-row.is-grouped{margin-top:0;padding-top:2px;padding-bottom:2px}
#dayroom .dr-message-row>.dr-message-gutter{height:18px;margin-top:0;background:none;box-shadow:none}
#dayroom .dr-msghead{gap:0 7px;line-height:1.35}
#dayroom .dr-msghead b{font-size:14px;letter-spacing:-.005em}
#dayroom .dr-msghead time{font-size:11.5px;font-weight:600;font-variant-numeric:tabular-nums}
#dayroom .dr-message-body{margin-top:1px;font-size:14px;line-height:1.5}
#dayroom .is-grouped:not([data-imported]) .dr-msghead{position:absolute;top:5px;left:6px;width:50px;display:block;text-align:center;line-height:1.2}
#dayroom .is-grouped:not([data-imported]) .dr-msghead>:not(time),#dayroom .dr-message-row.is-own[data-imported] .dr-msghead,#dayroom .is-grouped[data-imported] .dr-msghead{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#dayroom .is-grouped:not([data-imported]) .dr-msghead time{font-size:10.5px;color:var(--dr-muted);opacity:0}
#dayroom .is-grouped:is(:hover,:has(:focus-visible),.is-selected) .dr-msghead time{opacity:1}
#dayroom .dr-message-content .dr-replycontext{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:3px 0 3px;font-size:12.5px}
/* Day dividers are a quiet pill on a hairline; "New messages" marks where this visit's unread messages begin. */
#dayroom .dr-messages>.dr-day{margin:18px 4px 6px;gap:10px;color:var(--dr-muted);font-size:11.5px;font-weight:800;letter-spacing:.01em}
#dayroom .dr-messages>.dr-day>span{padding:2px 10px;border-radius:999px;background:var(--dr-panel);box-shadow:inset 0 0 0 1px var(--dr-line-2);line-height:18px}
#dayroom .dr-unread{flex:none;display:flex;align-items:center;gap:8px;margin:12px 4px 2px;color:var(--dr-accent-text);font-size:11.5px;font-weight:800}
#dayroom .dr-unread::before{content:'';flex:1;height:1px;background:currentColor;opacity:.55}
#dayroom .dr-unread+article.dr-message-row{margin-top:2px}
/* The start of a conversation, once all of it is here. */
#dayroom .dr-convo-start{flex:none;margin:28px 12px 14px}
#dayroom .dr-convo-start-mark{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-line);color:var(--dr-muted);font-size:22px;font-weight:800}
#dayroom .dr-convo-start-mark svg.dr-i{width:20px;height:20px}
#dayroom .dr-convo-start-dp canvas{display:block;width:56px;height:56px;border-radius:14px}
#dayroom .dr-convo-start-title{margin:12px 0 3px;color:var(--dr-ink);font-size:19px;font-weight:800;letter-spacing:-.015em;overflow-wrap:anywhere}
#dayroom .dr-convo-start-text{max-width:60ch;margin:0;color:var(--dr-muted);font-size:13.5px;line-height:1.5;overflow-wrap:anywhere}
/* Earlier messages load as you near the top. The button is the keyboard way in, shown on focus, and the spinner pill while
   a page arrives. */
#dayroom #dr-older{position:absolute;z-index:4;top:10px;left:50%;transform:translateX(-50%);min-height:32px;margin:0;padding:0 14px;border-radius:999px;background:var(--dr-panel);box-shadow:0 0 0 1px var(--dr-line-2),0 6px 16px -6px rgba(0,0,0,.28);color:var(--dr-ink-2);font-size:12.5px;font-weight:800;white-space:nowrap}
#dayroom #dr-older[hidden]{display:none}
#dayroom #dr-older:not(:focus-visible):not(.is-loading){opacity:0;pointer-events:none}
#dayroom #dr-older.is-loading{width:36px;height:36px;padding:0}
#dayroom #dr-older.is-loading .dr-older-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#dayroom .dr-older-spin{display:none;width:16px;height:16px;border-radius:50%;border:2px solid var(--dr-line-2);border-top-color:var(--dr-accent-text);animation:dr-chat-spin .8s linear infinite}
#dayroom #dr-older.is-loading .dr-older-spin{display:block}
@keyframes dr-chat-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){#dayroom .dr-older-spin{animation:dr-skel-pulse 1.6s ease-in-out infinite}}
/* A first visit's shape: portrait-and-lines rows sitting at the bottom like a conversation. */
#dayroom .dr-chat-skel{margin-top:auto;padding:0 12px 6px}
#dayroom .dr-chat-skel .dr-skel-row{align-items:flex-start;padding:10px 0;border:0}
#dayroom .dr-chat-skel .dr-skel-dot{width:38px;height:38px;border-radius:11px}
#dayroom .dr-chat-skel .dr-skel-text{gap:9px;padding-top:4px}

/* ---------- Imported WhatsApp history: bubbles, yours on the right (AGENTS.md). Others' bubbles sit on --dr-sunken, yours on a
   faint tint of the accent; a run keeps one portrait and name; the time and the Imported tag sit at the bubble's foot. ---------- */
#dayroom .dr-message-row[data-imported]{gap:8px;margin-top:8px;padding:1px 12px}
#dayroom .dr-message-row[data-imported].is-grouped{margin-top:2px}
#dayroom .dr-message-row[data-imported]:is(:hover,:has(:focus-visible)){background:transparent}
#dayroom .dr-message-row[data-imported]>.dr-message-avatar{width:32px;height:32px;margin-top:0;border-radius:10px}
#dayroom .dr-message-row[data-imported]>.dr-message-avatar canvas{width:32px;height:32px;border-radius:10px}
#dayroom .dr-message-row[data-imported]>.dr-message-gutter{height:1px}
#dayroom .dr-message-row[data-imported] .dr-message-content{position:relative;display:block;flex:0 1 auto;max-width:min(76%,62ch);padding:6px 11px 5px;border:0;border-radius:16px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-line)}
#dayroom .dr-message-row.is-own[data-imported] .dr-message-content{background:color-mix(in srgb,var(--dr-accent) 8%,var(--dr-panel));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--dr-accent) 14%,transparent)}
#dayroom .dr-message-row.is-peer[data-imported]:not(.is-grouped) .dr-message-content{border-top-left-radius:5px}
#dayroom .dr-message-row.is-own[data-imported]:not(.is-grouped) .dr-message-content{border-top-right-radius:5px}
#dayroom .dr-message-row[data-imported] .dr-message-body{margin-top:0}
/* A plain text bubble keeps its time on the last line when it fits, as WhatsApp does: the text ends in a spacer the width of
   the time and tag, and the time sits in that corner. Anything else in the bubble (media, reactions, a thread, an open tag)
   puts the time on its own line instead. */
#dayroom .dr-message-row[data-imported] .dr-message-content:not(:has(>:is(.dr-reacts,.dr-thread-line,.dr-import-image,.dr-attachment,.dr-shared-file,.dr-chat-media,.dr-photo-collection,.dr-drive-attachment,.dr-wa-missing,.dr-message-task,.dr-message-task-row,.dr-command-failed,.dr-action-card),.dr-wa-provenance[open]))>.dr-msgmeta{position:absolute;right:10px;bottom:4px;margin:0}
#dayroom .dr-message-row[data-imported] .dr-message-content:not(:has(>:is(.dr-reacts,.dr-thread-line,.dr-import-image,.dr-attachment,.dr-shared-file,.dr-chat-media,.dr-photo-collection,.dr-drive-attachment,.dr-wa-missing,.dr-message-task,.dr-message-task-row,.dr-command-failed,.dr-action-card),.dr-wa-provenance[open]))>.dr-message-body:not(:empty)::after{content:'';display:inline-block;width:var(--dr-meta-w,128px);height:1px}
#dayroom .dr-message-row[data-imported] .dr-message-content:has(.dr-msgmeta.is-synced){--dr-meta-w:160px}
#dayroom .dr-message-row[data-imported] .dr-message-content:has(.dr-wa-change){--dr-meta-w:260px}
#dayroom .dr-message-row[data-imported] .dr-msghead b{font-size:12.5px;color:var(--dr-accent-text)}
#dayroom .dr-msgmeta{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:2px 6px;margin-top:2px;color:var(--dr-muted);font-size:11px;font-weight:600;line-height:18px;font-variant-numeric:tabular-nums}
#dayroom .dr-msgmeta .dr-wa-provenance{font-size:10.5px;font-weight:700}
#dayroom .dr-msgmeta .dr-wa-provenance summary{padding:0 6px;border-radius:6px;background:color-mix(in srgb,var(--dr-ink) 6%,transparent);color:var(--dr-muted);text-decoration:none;line-height:17px}
#dayroom .dr-msgmeta .dr-wa-provenance summary:hover{color:var(--dr-ink)}
#dayroom .dr-msgmeta .dr-wa-provenance summary:focus-visible{outline:2px solid var(--dr-accent);outline-offset:1px}
#dayroom .dr-msgmeta .dr-wa-provenance[open]{flex-basis:100%;order:2}
#dayroom .dr-msgmeta .dr-wa-provenance[open] summary{width:fit-content;margin-left:auto}
#dayroom .dr-msgmeta .dr-wa-provenance span{padding:4px 0 2px;color:var(--dr-ink-2);font-weight:500;text-align:left}
#dayroom .dr-msgmeta .dr-wa-change{font-size:10.5px}
#dayroom .dr-message-row[data-imported] .dr-reacts{margin-top:4px}
/* A picture bubble is the picture: a thin margin of bubble, the name above it and the time below it. */
#dayroom .dr-message-row[data-imported] .dr-message-content:has(>.dr-import-image){padding:3px}
#dayroom .dr-message-row[data-imported] .dr-message-content:has(>.dr-import-image)>:is(.dr-msghead,.dr-message-body,.dr-msgmeta,.dr-reacts,.dr-wa-missing,.dr-replycontext){margin-inline:8px}
#dayroom .dr-message-row[data-imported] .dr-message-content:has(>.dr-import-image)>.dr-msghead{margin-top:3px}
#dayroom .dr-message-row[data-imported] .dr-message-content:has(>.dr-import-image)>.dr-msgmeta{margin-bottom:2px}
#dayroom .dr-message-content .dr-attachment.dr-import-image{display:block;width:fit-content;max-width:100%;margin:0;padding:0;border:0;border-radius:13px;background:none;box-shadow:none;overflow:hidden}
/* A pixel cap, not a percentage, so the bubble shrinks to the picture instead of stretching to its own maximum. */
#dayroom .dr-message-content .dr-attachment.dr-import-image img{display:block;width:auto;max-width:min(320px,70vw);max-height:min(340px,48vh);margin:0;border-radius:13px;object-fit:cover}
#dayroom .dr-message-row[data-imported] .dr-wa-missing{margin-top:4px}

/* ---------- Media: one frame, rounded, at most about 360px. A room's photo keeps a quiet caption with its name and size. ---------- */
#dayroom .dr-message-content .dr-attachment.dr-image-open:not(.dr-import-image){display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:fit-content;max-width:min(360px,100%);margin-top:6px;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:var(--dr-muted);font-size:11.5px;font-weight:600}
#dayroom .dr-message-content .dr-attachment.dr-image-open:not(.dr-import-image) img{display:block;width:auto;max-width:100%;max-height:360px;border-radius:12px;outline:1px solid var(--dr-line);outline-offset:-1px;object-fit:cover}
#dayroom .dr-message-content .dr-attachment.dr-image-open:not(.dr-import-image)>span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#dayroom .dr-message-content .dr-attachment.dr-image-open:hover{text-decoration:none}
#dayroom .dr-message-content .dr-attachment.dr-image-open:hover img{filter:brightness(.96)}
#dayroom .dr-message-content .dr-attachment.dr-image-open:focus-visible{outline:2px solid var(--dr-accent);outline-offset:3px;border-radius:12px}
#dayroom .dr-message-content .dr-shared-file{max-width:min(420px,100%);margin-top:6px;gap:8px;flex-wrap:nowrap}
#dayroom .dr-message-content .dr-shared-file .dr-attachment{margin-top:0;min-width:0;border:0}
#dayroom .dr-message-content .dr-chat-media{width:min(360px,100%);margin-top:6px}
#dayroom .dr-message-content .dr-chat-media.is-video video{max-height:320px}
#dayroom .dr-message-content :is(.dr-drive-attachment,.dr-message-task,.dr-action-card){max-width:min(420px,100%)}
/* A to-do chip and its Undo / Not a to-do button: one row, one line each. The chip's text ends in an ellipsis
   when space runs out; the button keeps its natural width and the chip's height. */
#dayroom .dr-message-content .dr-message-task-row{display:grid;grid-auto-flow:column;grid-template-columns:minmax(0,1fr);grid-auto-columns:auto;align-items:center;gap:6px;width:fit-content;max-width:min(420px,100%);margin-top:9px}
#dayroom .dr-message-content .dr-message-task-row>.dr-message-task{align-items:center;width:auto;max-width:100%;min-width:0;height:36px;margin:0;padding-block:0}
#dayroom .dr-message-task>span{flex:none}
#dayroom .dr-message-task>.dr-message-task-text{flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#dayroom .dr-message-task-remove{display:inline-flex;align-items:center;justify-content:center;height:36px;padding:0 14px;border:0;border-radius:12px;background:var(--dr-panel);box-shadow:inset 0 0 0 1px var(--dr-line-2);color:var(--dr-ink-2);font:inherit;font-size:13px;font-weight:700;white-space:nowrap;cursor:pointer}
@media (hover:hover){#dayroom .dr-message-task-remove:hover:not(:disabled){background:var(--dr-hover);color:var(--dr-ink)}}
#dayroom .dr-message-task-remove:focus-visible{outline:2px solid var(--dr-accent);outline-offset:2px}
#dayroom .dr-message-task-remove:disabled{opacity:.6;cursor:default}
@media (max-width:600px),(pointer:coarse){#dayroom .dr-message-content .dr-message-task-row>:is(.dr-message-task,.dr-message-task-remove){height:44px}}
/* Photo collections (several photos at once, or an imported run of them): the stack itself, without a card around it. */
#dayroom .dr-photo-collection{width:fit-content;max-width:min(440px,100%);margin:8px 0 0;padding:0;border:0;border-radius:0;background:none}
#dayroom .dr-messages>.dr-photo-collection{flex:none;margin:10px 12px 2px 62px}
#dayroom .dr-messages>.dr-photo-collection.is-own{margin-left:auto}
#dayroom .dr-messages>.dr-photo-collection:has(.dr-photo-heading){margin-left:12px}
#dayroom .dr-messages>.dr-photo-collection.is-own:has(.dr-photo-heading){margin-left:auto}
#dayroom .dr-photo-collection.is-own>summary{margin-left:auto}
#dayroom .dr-photo-heading{gap:8px;font-size:13px}
#dayroom .dr-photo-heading .dr-message-avatar{width:32px;height:32px;flex:0 0 32px;border-radius:10px;overflow:hidden}
#dayroom .dr-photo-heading .dr-message-avatar canvas{display:block;width:32px;height:32px}
#dayroom .dr-photo-heading time{font-size:11.5px;font-weight:600}
#dayroom .dr-photo-stack{width:min(240px,60vw);height:180px;margin:14px 14px 12px}
#dayroom .dr-photo-stack img{border:3px solid var(--dr-panel);border-radius:14px;box-shadow:0 1px 2px rgba(0,0,0,.12),0 8px 18px -8px rgba(0,0,0,.35)}
#dayroom .dr-photo-count{width:fit-content;padding:2px 10px;border-radius:999px;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-line);color:var(--dr-ink-2);font-size:12px;font-weight:700;line-height:20px}
#dayroom .dr-photo-collection.is-own .dr-photo-count{margin-left:auto}
#dayroom .dr-photo-collection>summary:hover .dr-photo-count{color:var(--dr-ink);box-shadow:inset 0 0 0 1px var(--dr-line-2)}
#dayroom .dr-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;width:min(440px,100%);margin-top:10px}
#dayroom .dr-photo-grid>.dr-message-row{position:relative;margin:0;padding:0;border-radius:12px}
#dayroom .dr-photo-grid>.dr-message-row>.dr-message-content{display:block;max-width:100%;width:100%;padding:0;border-radius:12px;background:none;box-shadow:none}
#dayroom .dr-photo-grid>.dr-message-row>.dr-message-content>:is(.dr-msghead,.dr-msgmeta,.dr-reacts,.dr-message-body){margin-inline:2px}
#dayroom .dr-photo-grid :is(.dr-import-image,.dr-image-open){width:100%;max-width:100%;margin:0}
#dayroom .dr-message-content .dr-photo-grid :is(.dr-import-image,.dr-image-open) img{width:100%;max-width:100%;height:auto;max-height:none;aspect-ratio:1;object-fit:cover;border-radius:12px}
#dayroom .dr-photo-grid .dr-msgmeta{justify-content:flex-start}
#dayroom .dr-photo-grid>.dr-message-row .dr-message-actions,#dayroom .dr-photo-grid>.dr-message-row[data-imported] .dr-message-actions{position:absolute;top:6px;right:6px;left:auto;margin:0;opacity:0;pointer-events:none}
/* The collection's heading already names who sent the photos. */
#dayroom .dr-photo-grid .dr-msghead{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#dayroom .dr-photo-grid>.dr-message-row:is(:hover,:has(:focus-visible)) .dr-message-actions,#dayroom .dr-photo-grid .dr-message-actions:has([aria-expanded="true"]){opacity:1;pointer-events:auto}

/* ---------- Hover tools: attached to the message they act on. A flat row's sit on its top right; a bubble's beside the
   bubble's top, on its open side, so they never cover its text. ---------- */
#dayroom .dr-message-actions{top:-14px;right:10px;padding:2px;border-radius:10px;gap:0}
#dayroom .dr-message-actions .dr-tool{width:30px;height:28px}
#dayroom .dr-message-row.is-peer[data-imported] .dr-message-actions{top:0;right:auto;left:calc(100% + 6px)}
#dayroom .dr-message-row.is-own[data-imported] .dr-message-actions{top:0;left:auto;right:calc(100% + 6px)}
#dayroom .dr-message-row.is-own[data-imported] .dr-menu{right:auto;left:-3px}
#dayroom .dr-sheet-open{display:none}

/* ---------- Composer: one calm card. Its toolbar keeps its markup and ids (the GIF picker adds a button there); only the
   look changes. A focused field rings the card in the accent, with a soft halo instead of a second outline. ---------- */
#dayroom .dr-composer{margin:2px 16px 14px;padding:10px 10px 8px 14px;border-radius:14px;box-shadow:inset 0 0 0 1px var(--dr-field-line),0 1px 2px rgba(0,0,0,.04)}
#dayroom .dr-composer:has(textarea:focus-visible){outline:none;box-shadow:inset 0 0 0 1.5px var(--dr-accent),0 0 0 4px color-mix(in srgb,var(--dr-accent) 12%,transparent)}
#dayroom #dr-message{font-weight:500}
#dayroom .dr-bar{gap:2px}
#dayroom .dr-bar .dr-tb{width:32px;height:32px}
#dayroom .dr-bar .dr-tb:focus-visible,#dayroom .dr-send:focus-visible{outline:2px solid var(--dr-accent);outline-offset:1px}
#dayroom .dr-send{width:34px;height:34px;border-radius:10px}
#dayroom .dr-send:disabled{opacity:.45}
#dayroom .dr-reply-chip{padding:6px 6px 6px 10px;border-radius:10px;box-shadow:inset 3px 0 0 var(--dr-accent)}
#dayroom .dr-reply-text{flex:1;min-width:0}
#dayroom #dr-typing{height:22px;padding:0 28px 2px}

/* ---------- Thread panel: Back on the left, the thread's room under its title, replies in runs like the room. ---------- */
#dayroom .dr-thread-head{gap:6px;padding:8px 16px 8px 8px}
#dayroom .dr-thread-head .dr-thread-back{width:36px;height:36px}
#dayroom .dr-thread-head .dr-page-sub{font-size:12px}
#dayroom .dr-thread-messages>.dr-thread-divider{margin:10px 4px 4px}
#dayroom .dr-thread-messages>.dr-thread-divider>span{padding:0 4px;background:none;box-shadow:none}
/* The reply box's GIF button (gif-picker.js attach), shown only while GIFs are on, like the composer's. */
#dayroom .dr-thread-gif{flex:none;display:grid;place-items:center;width:36px;height:36px;min-height:0;margin:0 0 0 auto;padding:0;border:0;border-radius:8px;background:transparent;color:var(--dr-muted)}
#dayroom .dr-thread-gif:is(:hover,[aria-expanded="true"]){background:color-mix(in srgb,var(--dr-ink) 6%,transparent);color:var(--dr-ink)}
#dayroom .dr-thread-gif:focus-visible{outline:2px solid var(--dr-accent);outline-offset:1px}

/* ---------- Touch screens: no hover, so the tools leave the screen (screen readers keep them, and a keyboard brings them back)
   and a long press or a picked row's … opens the actions sheet. Rows don't start text selection on a long press. ---------- */
@media (hover:none),(pointer:coarse){
 #dayroom .dr-message-actions,#dayroom .dr-photo-grid>.dr-message-row[data-imported] .dr-message-actions{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);opacity:1;pointer-events:none;box-shadow:none}
 #dayroom .dr-message-actions:has(:focus-visible){width:auto;height:auto;margin:0;padding:2px;overflow:visible;clip-path:none;pointer-events:auto;box-shadow:0 8px 20px -4px rgba(0,0,0,.18),0 0 0 1px var(--dr-line-2)}
 #dayroom article.dr-message-row{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
 #dayroom article.dr-message-row:hover:not(.is-selected):not(:has(:focus-visible)){background:transparent}
 #dayroom .is-grouped:hover:not(.is-selected):not(:has(:focus-visible)) .dr-msghead time{opacity:0}
 #dayroom article.dr-message-row.is-selected{background:var(--dr-hover)}
 #dayroom .dr-message-row.is-selected .dr-sheet-open{position:absolute;z-index:2;top:0;right:4px;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:12px;background:var(--dr-panel);box-shadow:0 0 0 1px var(--dr-line-2),0 6px 16px -6px rgba(0,0,0,.3);color:var(--dr-ink)}
 #dayroom .dr-message-row.is-peer[data-imported].is-selected .dr-sheet-open{top:-4px;right:auto;left:calc(100% + 4px)}
 #dayroom .dr-message-row.is-own[data-imported].is-selected .dr-sheet-open{top:-4px;right:calc(100% + 4px)}
 #dayroom .dr-reacts .dr-re{height:32px;padding:0 11px}
}
#dayroom .dr-sheet-layer{position:fixed;inset:0;z-index:60;display:flex;flex-direction:column;justify-content:flex-end}
#dayroom .dr-sheet-backdrop{position:absolute;inset:0;background:light-dark(rgba(15,23,19,.38),rgba(2,6,4,.6))}
#dayroom .dr-msg-sheet{position:relative;max-height:min(80dvh,560px);overflow:auto;margin:0 8px calc(8px + env(safe-area-inset-bottom));padding:8px;border-radius:18px;background:var(--dr-panel);box-shadow:var(--dr-shadow);animation:dr-sheet-in .18s ease-out}
#dayroom .dr-sheet-quote{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:6px 10px 8px;color:var(--dr-muted);font-size:13px;line-height:1.45;overflow-wrap:anywhere}
#dayroom .dr-sheet-quote b{color:var(--dr-ink)}
#dayroom .dr-sheet-reacts{display:flex;gap:2px;margin:0 0 6px;padding:2px 2px 8px;overflow-x:auto;scrollbar-width:none;box-shadow:inset 0 -1px 0 var(--dr-line)}
#dayroom .dr-sheet-reacts::-webkit-scrollbar{display:none}
#dayroom .dr-sheet-emoji{flex:none;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:12px;background:transparent;font-size:24px;line-height:1}
#dayroom .dr-sheet-emoji[aria-pressed="true"]{background:var(--dr-accent-soft);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--dr-accent) 40%,transparent)}
#dayroom .dr-sheet-actions{display:flex;flex-direction:column}
#dayroom .dr-sheet-item{min-height:48px;padding:0 12px;border:0;border-radius:12px;background:transparent;color:var(--dr-ink);font-size:15px;font-weight:700;text-align:left}
#dayroom .dr-sheet-item:active,#dayroom .dr-sheet-emoji:active{background:var(--dr-hover)}
@media(hover:hover){#dayroom .dr-sheet-item:hover,#dayroom .dr-sheet-emoji:hover{background:var(--dr-hover)}}
#dayroom :is(.dr-sheet-item,.dr-sheet-emoji):focus-visible{outline:2px solid var(--dr-accent);outline-offset:-2px}
#dayroom .dr-sheet-cancel{width:100%;margin-top:6px;background:var(--dr-sunken);text-align:center}
@media(min-width:600px){#dayroom .dr-msg-sheet{width:420px;margin:0 auto 24px}}
@keyframes dr-sheet-in{from{opacity:0;transform:translateY(16px)}}
@media(prefers-reduced-motion:reduce){#dayroom .dr-msg-sheet{animation:none}}

/* ---------- Phones and narrow windows (mobile.css's 899px breakpoint): one header row (Back, the title, Gather and …, which
   takes search, notifications, details and the team), full-width rows, a full-screen thread and touch-size controls. ---------- */
@media(max-width:899px){
 #dayroom .dr-chathead{height:auto;min-height:56px;flex-wrap:nowrap;gap:2px;padding:4px 6px 4px 4px}
 #dayroom .dr-chathead>.dr-chat-back{display:grid;flex:none}
 #dayroom .dr-chathead>div:has(>#dr-chat-title){flex:1 1 auto;min-width:0;padding-left:2px}
 #dayroom .dr-chathead .dr-title{font-size:16px}
 #dayroom .dr-chathead :is(#dr-member-pile,#dr-search-messages,#dr-notifications){display:none}
 /* Details stays a visible conversation action beside Gather, before … (AGENTS.md). */
 #dayroom .dr-chathead #dr-channel-settings{order:-1}
 #dayroom .dr-chathead .dr-team-tools{margin:0;padding:0;box-shadow:none}
 #dayroom .dr-chathead .dr-pillbtn{width:44px;padding:0;justify-content:center;box-shadow:none}
 #dayroom .dr-chathead .dr-pillbtn.is-live{width:auto;padding:0 10px}
 #dayroom .dr-chathead .dr-pillbtn>span:not(.dr-huddle-count){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 #dayroom .dr-chathead :is(.dr-iconbtn,.dr-pillbtn),#dayroom .dr-chathead .dr-team-tools .dr-iconbtn{width:44px;min-width:44px;height:44px;border-radius:12px}
 #dayroom .dr-chathead .dr-pillbtn svg.dr-i,#dayroom .dr-chathead .dr-iconbtn svg.dr-i{width:20px;height:20px}
 /* New notifications fold into …, so … carries their dot. */
 #dayroom .dr-chathead #dr-room-menu{position:relative}
 #dayroom .dr-chathead:has(#dr-notification-count:not(:empty)) #dr-room-menu::after{content:'';position:absolute;top:10px;right:10px;width:8px;height:8px;border-radius:50%;background:var(--st-dnd);box-shadow:0 0 0 2px var(--dr-panel)}
 #dayroom #dr-messages{padding:4px 4px 8px}
 #dayroom article.dr-message-row{gap:10px;margin-top:6px;padding:6px 8px 4px}
 #dayroom article.dr-message-row.is-grouped{margin-top:0;padding-top:2px;padding-bottom:2px}
 #dayroom .dr-message-row>.dr-message-avatar,#dayroom .dr-message-row>.dr-message-avatar canvas{width:34px;height:34px}
 #dayroom .dr-message-row>.dr-message-gutter{height:14px}
 #dayroom .is-grouped:not([data-imported]) .dr-msghead{left:0;width:50px}
 #dayroom .dr-message-body{font-size:15px;line-height:1.5}
 #dayroom .dr-message-row[data-imported]{padding:1px 6px}
 #dayroom .dr-message-row[data-imported] .dr-message-content{max-width:calc(100% - 52px)}
 #dayroom .dr-message-row[data-imported]>.dr-message-avatar,#dayroom .dr-message-row[data-imported]>.dr-message-avatar canvas{width:28px;height:28px}
 #dayroom .dr-message-row[data-imported]>.dr-message-gutter{width:28px}
 #dayroom .dr-messages>.dr-photo-collection{margin-left:8px}
 #dayroom .dr-messages>.dr-day{margin:14px 4px 4px}
 #dayroom .dr-convo-start{margin:20px 8px 10px}
 /* The composer sits above the keyboard (mobile-shell.js sizes the app to the visual viewport) and the home indicator
    (mobile.css pads #dr-product by the safe area); its tools keep 44px targets. */
 #dayroom .dr-composer{margin:2px 8px 8px;padding:6px 6px 4px 12px}
 #dayroom .dr-bar{gap:0;margin-left:-8px}
 #dayroom .dr-bar .dr-tb{width:44px;height:44px}
 #dayroom .dr-send{width:44px;height:44px;border-radius:12px}
 /* A thread is its own screen: the room header steps aside and the thread's Back leads. */
 #dayroom .dr-main:has(.dr-chat[data-thread-open])>.dr-head{display:none}
 #dayroom .dr-chatcol:has(>.dr-chat[data-thread-open]),#dayroom .dr-chat[data-thread-open]{margin-top:0}
 #dayroom .dr-thread-head{min-height:56px;padding:4px 12px 4px 4px}
 #dayroom .dr-thread-head .dr-thread-back{width:44px;height:44px}
 #dayroom .dr-thread-messages{padding-inline:4px}
 #dayroom .dr-thread-compose{margin:2px 8px 8px}
 #dayroom #dr-thread-send,#dayroom .dr-thread-foot :is(button,select){min-height:44px}
 #dayroom .dr-thread-foot .dr-thread-gif{width:44px;height:44px}
}
/* The narrowest phones: the toolbar shares its row evenly rather than wrapping a tool onto its own line. */
@media(max-width:380px){
 #dayroom .dr-composer{margin-inline:6px}
 #dayroom #dr-compose .dr-bar{flex-wrap:nowrap}
 #dayroom #dr-compose .dr-bar .dr-tb{flex:1 1 0;min-width:0;max-width:44px;width:auto}
}

/* Thread quote preview: author and excerpt, without an instructional label. */
#dayroom .dr-thread-quote-text{display:grid;gap:2px;flex:1;min-width:0;line-height:18px}
#dayroom .dr-thread-quote-text strong{color:var(--dr-ink);font-size:12px}
#dayroom .dr-thread-quote-text>span,#dayroom .dr-thread-quote-text strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#dayroom #dr-thread-reply{padding-block:6px}
#dayroom #dr-thread-reply [data-cancel-reply]{width:36px;height:36px;min-height:36px;font-size:22px}

/* Membership notices are room events, not messages sent by the new teammate. */
#dayroom .dr-room-join{display:flex;align-items:center;gap:12px;flex:none;margin:18px 12px;padding:16px 0;border-block:1px solid var(--dr-line);color:var(--dr-muted)}
#dayroom .dr-room-join-icon{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:10px;background:var(--dr-sunken)}
#dayroom .dr-room-join>div{min-width:0;flex:1}
#dayroom .dr-room-join p{margin:0;font-size:14px;line-height:1.6;overflow-wrap:anywhere;color:var(--dr-ink-2)}
#dayroom .dr-room-join time{font-size:11px}
#dayroom .dr-room-join>.dr-button{flex:none}
@media(max-width:480px){#dayroom .dr-room-join{flex-wrap:wrap;margin-inline:4px}#dayroom .dr-room-join>.dr-button{margin-left:48px}}

/* GIFs (gif-picker.js): the composer's GIF button and picker, sent and uploaded GIFs, and their reduced-motion controls.
   Loads after surfaces.css and chat-refresh.css; phone rules (600px and narrower) are at the end. */
#dayroom .dr-bar .dr-tb[hidden]{display:none}
#dayroom .dr-gif-glyph{display:grid;place-items:center;min-width:24px;height:16px;padding:0 3px;box-sizing:border-box;border:1.7px solid currentColor;border-radius:5px;font:800 8.5px/1 'Manrope',system-ui,sans-serif;letter-spacing:.04em}
#dayroom #dr-gif[aria-expanded="true"]{background:color-mix(in srgb,var(--dr-ink) 6%,transparent);color:var(--dr-ink)}

/* The picker: a popover by its button. Its size and place come from gif-picker.js. */
#dayroom .dr-gif-picker{position:fixed;z-index:9;display:flex;flex-direction:column;min-height:0;box-sizing:border-box;padding:10px 10px 8px;border-radius:14px;background:var(--dr-panel);color:var(--dr-ink);box-shadow:0 14px 36px -10px rgba(0,0,0,.28),0 0 0 1px var(--dr-line-2);animation:dr-gif-pop .14s ease-out}
#dayroom .dr-gif-picker:focus{outline:none}
#dayroom .dr-gif-grip{display:none}
#dayroom .dr-gif-scrim{position:fixed;inset:0;z-index:9;background:light-dark(rgba(15,23,19,.32),rgba(2,6,4,.55))}
#dayroom .dr-gif-scrim[hidden]{display:none}
#dayroom .dr-gif-head{display:flex;align-items:center;gap:6px;flex:none}
#dayroom .dr-gif-search{flex:1;min-width:0;display:flex;align-items:center;gap:8px;height:36px;padding:0 10px;box-sizing:border-box;border-radius:10px;background:var(--dr-field);box-shadow:inset 0 0 0 1px var(--dr-field-line);color:var(--dr-muted);cursor:text}
#dayroom .dr-gif-search svg.dr-i{width:16px;height:16px}
#dayroom .dr-gif-search:focus-within{box-shadow:inset 0 0 0 1.5px var(--dr-accent),0 0 0 3px var(--dr-accent-soft)}
#dayroom .dr-gif-search input{flex:1;min-width:0;width:100%;height:34px;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--dr-ink);font:600 13.5px/1.2 'Manrope',system-ui,sans-serif;outline:none}
#dayroom .dr-gif-search input::placeholder{color:var(--dr-muted);opacity:1}
#dayroom .dr-gif-close{flex:none;width:36px;height:36px;min-height:0;display:grid;place-items:center;margin:0;padding:0;border:0;border-radius:10px;background:transparent;box-shadow:none;color:var(--dr-muted)}
#dayroom .dr-gif-close:hover{background:color-mix(in srgb,var(--dr-ink) 6%,transparent);color:var(--dr-ink)}
#dayroom .dr-gif-label{flex:none;margin:10px 2px 8px;color:var(--dr-muted);font-size:12px;font-weight:800;line-height:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#dayroom .dr-gif-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;margin:0 -4px;padding:2px 4px 4px;scrollbar-width:thin;scrollbar-color:var(--dr-line-2) transparent}
/* Masonry in the provider's order: gif-picker.js gives each result a row span for its height plus the 8px gap. */
#dayroom .dr-gif-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:2px;column-gap:8px;row-gap:0;align-items:start}
#dayroom .dr-gif-item{position:relative;display:block;width:100%;min-height:0;margin:0;padding:0;border:0;border-radius:8px;overflow:hidden;background:var(--dr-sunken);box-shadow:none;cursor:pointer}
#dayroom .dr-gif-item img{display:block;width:100%;height:100%;object-fit:cover}
@media(hover:hover){#dayroom .dr-gif-item:hover{box-shadow:0 0 0 2px var(--dr-line-2)}}
#dayroom .dr-gif-item:focus-visible{outline:2.5px solid var(--dr-accent);outline-offset:1px}
#dayroom .dr-gif-item.is-broken img{visibility:hidden}
#dayroom .dr-gif-skel{display:block;aspect-ratio:1/var(--r,1);border-radius:8px;background:var(--dr-sunken);animation:dr-gif-pulse 1.2s ease-in-out infinite alternate}
#dayroom .dr-gif-more{display:grid;place-items:center;min-height:8px;padding:4px 0}
#dayroom .dr-gif-more:empty{padding:0}
#dayroom .dr-gif-spinner{width:16px;height:16px;border-radius:50%;border:2px solid var(--dr-line-2);border-top-color:var(--dr-accent);animation:dr-gif-spin .8s linear infinite}
#dayroom .dr-gif-retry{min-height:32px}
#dayroom .dr-gif-attribution{flex:none;margin:8px 2px 0;color:var(--dr-muted);font-size:11px;font-weight:700;line-height:14px;text-align:right}
#dayroom .dr-gif-attribution b{color:var(--dr-ink);font-weight:800;letter-spacing:.03em}
@keyframes dr-gif-pop{from{opacity:0;transform:translateY(3px) scale(.985)}to{opacity:1;transform:none}}
@keyframes dr-gif-pulse{from{opacity:.55}to{opacity:1}}
@keyframes dr-gif-spin{to{transform:rotate(1turn)}}

/* A sent GIF: its own aspect ratio, never wider than the message column. */
#dayroom .dr-gif-sent{position:relative;display:block;width:min(var(--dr-gif-w,240px),100%);max-width:100%;aspect-ratio:var(--dr-gif-ar,4/3);margin:9px 0 0;border-radius:12px;overflow:hidden;background:var(--dr-sunken);box-shadow:inset 0 0 0 1px var(--dr-line)}
#dayroom .dr-gif-sent.is-compact{margin-top:6px}
#dayroom .dr-gif-sent img{display:block;width:100%;height:100%;object-fit:cover}
#dayroom .dr-gif-sent.is-broken{display:grid;place-items:center;aspect-ratio:auto;width:fit-content;min-width:160px;min-height:52px;padding:0 14px}
#dayroom .dr-gif-sent.is-broken img{display:none}
#dayroom .dr-gif-missing{color:var(--dr-muted);font-size:12.5px;font-weight:700}
/* The small GIF tag, on sent and uploaded GIFs alike. */
#dayroom .dr-gif-tag{position:absolute;top:6px;left:6px;z-index:1;padding:2px 5px;border-radius:5px;background:rgba(12,16,14,.62);color:#fff;font:800 9.5px/12px 'Manrope',system-ui,sans-serif;letter-spacing:.06em;pointer-events:none;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
#dayroom .dr-gif-sent.is-broken .dr-gif-tag{display:none}
/* An uploaded GIF keeps chat-media.js's own image button; only the tag sits on its picture. */
#dayroom .dr-image-open.is-gif{position:relative}
#dayroom .dr-message-content .dr-attachment.is-gif .dr-gif-tag{top:14px;left:14px}
#dayroom .dr-message-content .dr-import-image.is-gif .dr-gif-tag{top:6px;left:6px}

/* Reduced motion: a held GIF shows a still frame with Play over its centre, and Pause in its corner once playing.
   gif-picker.js measures the picture inside its holder (--dr-gif-px/py/pw/ph) for uploaded GIFs and the viewer. */
#dayroom .dr-gif-hold{position:relative;display:block;width:fit-content;max-width:100%}
#dayroom .dr-gif-stage{position:relative}
#dayroom .dr-gif-toggle{position:absolute;z-index:2;left:calc(var(--dr-gif-px,0px) + var(--dr-gif-pw,100%) / 2);top:calc(var(--dr-gif-py,0px) + var(--dr-gif-ph,100%) / 2);transform:translate(-50%,-50%);width:44px;height:44px;min-height:0;display:grid;place-items:center;margin:0;padding:0;border:0;border-radius:50%;background:rgba(12,16,14,.66);box-shadow:0 0 0 1.5px rgba(255,255,255,.7);color:#fff;cursor:pointer;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
#dayroom .dr-gif-sent .dr-gif-toggle{left:50%;top:50%}
#dayroom .dr-gif-toggle svg.dr-i{width:18px;height:18px;fill:currentColor;stroke:currentColor;stroke-width:2.4}
@media(hover:hover){#dayroom .dr-gif-toggle:hover{background:rgba(12,16,14,.8)}}
#dayroom .dr-gif-toggle:focus-visible{outline:2.5px solid var(--dr-accent);outline-offset:2px}
#dayroom :is(.dr-gif-sent,.dr-gif-hold,.dr-gif-stage):not(.is-paused) .dr-gif-toggle{left:calc(var(--dr-gif-px,0px) + var(--dr-gif-pw,100%) - 6px);top:calc(var(--dr-gif-py,0px) + var(--dr-gif-ph,100%) - 6px);transform:translate(-100%,-100%);width:36px;height:36px}
#dayroom .dr-gif-sent:not(.is-paused) .dr-gif-toggle{left:calc(100% - 6px);top:calc(100% - 6px)}
#dayroom .dr-gif-stage>.dr-gif-toggle{width:52px;height:52px}
#dayroom .dr-gif-stage:not(.is-paused)>.dr-gif-toggle{width:40px;height:40px}
@media(forced-colors:active){#dayroom .dr-gif-toggle,#dayroom .dr-gif-tag{forced-color-adjust:none;background:Canvas;color:CanvasText;box-shadow:0 0 0 2px CanvasText}}
@media(prefers-reduced-motion:reduce){#dayroom .dr-gif-picker{animation:none}#dayroom .dr-gif-skel{animation:none}#dayroom .dr-gif-spinner{animation:none;border-top-color:var(--dr-line-2)}}

/* Tight phone bars: seven touch-size tools plus Send need 352px. From 381px the bar borrows 4px of the composer's padding
   on each side so they share one row; at 380px and below, where mobile.css already gives Send its own row, the seven
   tools share the first row evenly (each still 44px or wider) instead of leaving the GIF button alone on the second. */
@media(max-width:420px){#dayroom .dr-bar:has(#dr-gif:not([hidden])){column-gap:0;margin-inline:-4px}}
@media(max-width:380px){#dayroom .dr-bar:has(#dr-gif:not([hidden])) .dr-tb{flex:0 0 calc(100% / 7)}}
/* Phones: the picker is a bottom sheet over a scrim. It rises above the on-screen keyboard (--dr-gif-kb) and is never
   taller than the visible viewport (--dr-gif-vh), so the search field stays in view; the home indicator keeps its inset. */
@media(max-width:600px){
 #dayroom .dr-gif-picker.is-sheet{left:0;right:0;top:auto;bottom:var(--dr-gif-kb,0px);width:auto;height:min(76dvh,calc(var(--dr-gif-vh,100dvh) - 12px));max-height:none;padding:6px 12px calc(10px + env(safe-area-inset-bottom));border-radius:18px 18px 0 0;box-shadow:0 -10px 30px -8px rgba(0,0,0,.3),0 0 0 1px var(--dr-line-2);animation:dr-gif-rise .2s ease-out}
 #dayroom .dr-gif-picker.is-sheet .dr-gif-grip{display:block;flex:none;height:18px;margin:-6px -12px 0;touch-action:none;cursor:grab;background:linear-gradient(var(--dr-line-2),var(--dr-line-2)) center 6px/40px 4px no-repeat}
 #dayroom .dr-gif-picker.is-sheet .dr-gif-search{height:44px;border-radius:12px}
 #dayroom .dr-gif-picker.is-sheet .dr-gif-search input{height:42px;font-size:16px}
 #dayroom .dr-gif-picker.is-sheet .dr-gif-close{width:44px;height:44px}
 #dayroom .dr-gif-picker.is-sheet .dr-gif-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 #dayroom .dr-gif-picker.is-sheet .dr-gif-item{min-height:44px}
 #dayroom .dr-gif-picker.is-sheet .dr-gif-attribution{text-align:center}
 #dayroom .dr-gif-toggle{width:48px;height:48px}
 #dayroom :is(.dr-gif-sent,.dr-gif-hold,.dr-gif-stage):not(.is-paused) .dr-gif-toggle{width:44px;height:44px}
}
@keyframes dr-gif-rise{from{transform:translateY(24px);opacity:.6}to{transform:none;opacity:1}}
@media(max-width:600px) and (prefers-reduced-motion:reduce){#dayroom .dr-gif-picker.is-sheet{animation:none}}

/* A phone shows the conversation, office or navigation at full width. */
#dayroom .dr-mobile-bar{display:none}
@media(max-width:899px){
 #dayroom:not([data-screen]){height:var(--dr-mobile-height,100dvh);padding-top:env(safe-area-inset-top);padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
 #dayroom #dr-product{flex-direction:column;overflow:hidden;padding-bottom:env(safe-area-inset-bottom)}
 #dayroom .dr-mobile-bar{flex:none;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:52px;padding:4px 12px;border-bottom:1px solid var(--dr-line)}
 #dayroom .dr-mobile-bar button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 10px;border:0;border-radius:10px;background:transparent;color:var(--dr-ink);font:inherit;font-weight:800}
 #dayroom .dr-mobile-bar button[aria-pressed=true]{background:var(--dr-sel)}
 /* An open conversation leads with its own Back (chat-refresh.css), so the bar steps aside there; the drawer, the office
    and the rail pages keep it. The rail's unread total rides on Rooms & DMs while the rail is hidden. */
 #dayroom:not([data-mobile-nav],[data-office-expanded],[data-work-page],[data-tools-page]) .dr-mobile-bar{display:none}
 #dayroom #dr-mobile-rooms>.dr-mobile-badge{position:static;margin-left:-2px}
 #dayroom[data-mobile-nav] #dr-mobile-rooms>:is(.dr-mobile-badge,.dr-mobile-badge-sr){display:none}
 #dayroom #dr-chat-back{position:relative}
 #dayroom #dr-chat-back>.dr-mobile-badge{top:3px;right:1px}
 #dayroom .dr-rail,#dayroom .dr-sidebar{display:none}
 #dayroom .dr-layout{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
 #dayroom .dr-main,#dayroom :is(#dr-work-page,#dr-tools-page):not([hidden]){flex:1;min-height:0;margin:0;border-radius:0;box-shadow:none}
 /* The chat header's phone row (Back, title, Gather, …) is drawn in chat-refresh.css. */
 #dayroom .dr-head>.dr-grow,#dayroom .dr-head>[aria-label="Office view"]{display:none}
 #dayroom .dr-head>.dr-seg{display:none}
 #dayroom .dr-team-tools{gap:0}
 #dayroom #dr-member-pile{margin-left:0;margin-right:auto;min-height:44px}
 #dayroom .dr-head :is(.dr-iconbtn,.dr-pillbtn){min-width:44px;height:44px}
 #dayroom:not([data-office-expanded]) .dr-window{display:none}
 #dayroom[data-office-expanded] .dr-window{display:block;flex:1;min-height:0;margin:8px}
 #dayroom[data-office-expanded] .dr-head{display:none}
 #dayroom .dr-chatcol{margin:0;min-height:0;overflow:hidden}
 #dayroom .dr-messages{min-height:0;padding:12px 8px;overscroll-behavior:contain}
 #dayroom .dr-message-body{font-size:15px;line-height:1.6;overflow-wrap:anywhere}
 /* Only the field scrolls, so a reply chip or a long draft never pushes Send and the tools out of view. */
 #dayroom .dr-composer{max-height:none;overflow:visible}
 #dayroom #dr-message{font-size:16px;line-height:24px;max-height:min(120px,18dvh)}
 #dayroom .dr-reply-chip{padding-block:0;min-height:44px}
 #dayroom .dr-reply-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #dayroom .dr-bar{flex-wrap:wrap}
 #dayroom .dr-bar .dr-tb,#dayroom .dr-send{flex:none;width:44px;height:44px}
 #dayroom .dr-bar .dr-div{display:none}
 #dayroom .dr-bar .dr-grow{display:none}
 #dayroom .dr-send{margin-left:auto}
 #dayroom #dr-typing{padding-inline:16px}
 #dayroom :is(input:not([type=checkbox],[type=radio],[type=range],[type=color]),select,textarea){font-size:16px}
 #dayroom :is(.dr-page-head,.dr-page-body){padding:16px}
 #dayroom .dr-page-head{flex-wrap:wrap}
 #dayroom .dr-page-actions{max-width:100%;flex-wrap:wrap}
 #dayroom :is(#dr-work-page,#dr-tools-page) .dr-page-body{padding:16px}
 /* Dialogs keep clear of the notch, rounded corners and home indicator in either orientation. */
 #dayroom .dr-overlay{padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));align-items:center}
 #dayroom .dr-modal,#dayroom .dr-modal:has(>#dr-modal-body>.dr-page),#dayroom .dr-modal:has(>#dr-modal-body>.dr-page[data-size="wide"]){width:100%;max-width:100%;max-height:calc(var(--dr-mobile-height,100dvh) - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
 #dayroom .dr-modal .dr-close{width:44px;height:44px}
 #dayroom .dr-modal:has(>#dr-modal-body>.dr-page)>.dr-modalhead{top:6px;right:8px}
 #dayroom .dr-modal:has(.dr-image-viewer){max-width:100%;max-height:100%}
 #dayroom .dr-image-controls .dr-button{min-width:44px}
 #dayroom :is(.dr-button,.dr-room-menu-item){min-height:44px}
 /* Menus scroll rather than run off a short screen; their rows never squash. */
 #dayroom .dr-room-menu{max-height:calc(var(--dr-mobile-height,100dvh) - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain}
 #dayroom .dr-room-menu>*{flex-shrink:0}
 #dayroom .dr-workspace-menu{overflow-y:auto;overscroll-behavior:contain}
 /* The toast: centred at its own width, long words wrap inside it, and taps pass through to what's beneath (it never holds a
    control). Over the drawer or a dialog it docks at the bottom, clear of rows, titles and close buttons. */
 #dayroom #dr-live{left:12px;right:12px;width:fit-content;max-width:none;margin-inline:auto;overflow-wrap:anywhere;transform:translateY(6px)}
 #dayroom #dr-live.is-shown{transform:none;pointer-events:none}
 #dayroom:is([data-mobile-nav],:has(#dr-overlay:not([hidden]))) #dr-live{top:auto;bottom:calc(12px + env(safe-area-inset-bottom));transform:translateY(6px)}
 #dayroom:is([data-mobile-nav],:has(#dr-overlay:not([hidden]))) #dr-live.is-shown{transform:none}
 #dayroom #dr-connection{top:56px}
 /* The rail and room list share a dedicated navigation view, leaving chat full width. */
 #dayroom[data-mobile-nav] .dr-rail{position:absolute;display:flex;left:0;top:52px;bottom:env(safe-area-inset-bottom);width:64px;z-index:8;padding:8px 0}
 #dayroom[data-mobile-nav] .dr-rbtn{width:60px;min-height:52px}
 /* The whole drawer scrolls, so a short screen (landscape, the keyboard) still reaches every room and DM; the user panel
    sits at the bottom whenever there's room to spare. */
 #dayroom[data-mobile-nav] .dr-sidebar{position:absolute;display:flex;left:64px;right:0;top:52px;bottom:env(safe-area-inset-bottom);z-index:8;padding:8px;background:var(--dr-bg);overflow-y:auto;overscroll-behavior:contain}
 #dayroom[data-mobile-nav] .dr-sidebar-scroll{flex:none;max-height:none;overflow:visible}
 #dayroom[data-mobile-nav][data-mobile-short] .dr-sidebar:has(#dr-people-search:not([hidden])) :is(.dr-side-foot,#dr-daybar,#dr-catchup){display:none}
 #dayroom[data-mobile-nav] .dr-side-foot{margin-top:auto;padding:8px 0 0}
 #dayroom[data-mobile-nav] .dr-layout> :is(.dr-main,#dr-work-page,#dr-tools-page){visibility:hidden}
 #dayroom[data-mobile-nav] #dr-mobile-office,#dayroom[data-work-page] #dr-mobile-office,#dayroom[data-tools-page] #dr-mobile-office{display:none}
 #dayroom .dr-sidebar .dr-row{height:auto;min-height:44px;margin-left:0;padding-block:8px}
 #dayroom .dr-sidebar .dr-search{height:44px;margin-inline:0}
 #dayroom .dr-sidebar .dr-kbd{display:none}
 #dayroom .dr-sidebar .dr-sec{padding:14px 4px 6px}
 #dayroom .dr-sidebar .dr-plus{width:44px;height:44px;margin:-8px -4px -8px auto}
 #dayroom .dr-sidebar .dr-iconbtn{width:44px;height:44px}
 #dayroom .dr-row-more{width:40px;height:40px}
 #dayroom .dr-row-wrap>.dr-row{padding-right:48px}
 #dayroom .dr-row-more{opacity:1}
 #dayroom .dr-upanel{flex-wrap:wrap;gap:8px}
 #dayroom .dr-upanel .dr-hud-id{min-width:64px}
 /* Touch-size targets for the drawer's small controls, without moving anything: the tap areas grow, the layout doesn't. */
 #dayroom #dr-status{min-height:44px;margin:-10px 0}
 #dayroom .dr-workspace-menu-trigger{position:relative}
 #dayroom .dr-workspace-menu-trigger::after{content:'';position:absolute;inset:-11px -6px}
 #dayroom #dr-workspace-deck{border:6px solid transparent;margin:-6px -2px -6px -6px}
 #dayroom .dr-upanel #dr-editavatar{box-sizing:content-box;border:5px solid transparent;margin:-5px}
 #dayroom .dr-feedback-entry{min-height:44px}
 #dayroom[data-mobile-nav] .dr-side-foot{padding-top:0}
 #dayroom .dr-office-zoom>.dr-chip{min-width:44px;height:44px}
 #dayroom .dr-hud{left:8px;right:8px;bottom:72px;gap:4px;flex-wrap:wrap;width:fit-content;max-width:calc(100% - 16px)}
 #dayroom .dr-hbtn{min-height:44px;min-width:44px}
 #dayroom .dr-window #dr-desk-customize{bottom:132px;max-width:calc(100% - 24px)}
 #dayroom #dr-where{max-width:calc(100% - 150px);overflow:hidden}
 #dayroom #dr-location{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 #dayroom #dr-where-other{display:none}
}

/* The narrowest phones: every composer tool keeps a 44px target. Send stays at the row's end and the tools scroll beside it. */
@media(max-width:380px){
 #dayroom #dr-compose{position:relative}
 #dayroom #dr-compose .dr-bar.dr-chattools{display:flex;gap:2px;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;margin-right:46px}
 #dayroom #dr-compose .dr-bar.dr-chattools::-webkit-scrollbar{display:none}
 #dayroom #dr-compose .dr-bar.dr-chattools .dr-tb{flex:0 0 44px;width:44px;max-width:none}
 #dayroom #dr-compose .dr-bar.dr-chattools .dr-send{position:absolute;right:6px;bottom:4px;width:44px;height:44px}
}

@media(max-width:600px){
 /* Text actions move below descriptive rows instead of squeezing their copy. */
 #dayroom .dr-li:has(>.dr-li-trail .dr-button){flex-wrap:wrap;align-items:flex-start}
 #dayroom .dr-li:has(>.dr-li-trail .dr-button)>.dr-li-body{flex-basis:calc(100% - var(--dr-lead,32px) - 12px)}
 #dayroom .dr-li:has(>.dr-li-trail .dr-button)>.dr-li-trail{margin-left:calc(var(--dr-lead,32px) + 12px);max-width:calc(100% - var(--dr-lead,32px) - 12px);flex-wrap:wrap}
 #dayroom .dr-li:not(:has(>.dr-li-lead)):has(>.dr-li-trail .dr-button)>.dr-li-trail{margin-left:0;max-width:100%}
}

@media(max-width:600px){
 #dayroom .dr-card-head:has(>.dr-card-actions){flex-wrap:wrap}
 #dayroom .dr-card-head:has(>.dr-card-actions)>div:first-child:not(.dr-card-actions){flex:1 1 180px}
 #dayroom .dr-card-actions{max-width:100%;flex-wrap:wrap}
}
@media(max-width:899px) and (max-height:500px){
 /* The thread already names its room; leave room for replies above the keyboard. */
 #dayroom .dr-main:has(.dr-chat[data-thread-open])>.dr-head{display:none}
 /* While writing, the room header steps aside too, so messages keep their space; it returns (with Back) when you leave the field. */
 #dayroom .dr-main:has(#dr-compose:focus-within)>.dr-head{display:none}
}

/* History controls (navigation-history.js) and phone fit-ups. Page heads and the workspace-page toolbar keep their own phone layout (pages.css). */
#dayroom .dr-history-controls{display:flex;gap:4px;align-items:center}
#dayroom .dr-history-controls button{width:44px;height:44px;border:0;background:transparent;color:var(--dr-ink);font:inherit;font-size:24px;border-radius:8px}
#dayroom .dr-history-controls button:disabled{opacity:.35}
#dayroom .dr-history-controls button:focus-visible{outline:2px solid var(--dr-accent)}
@media(max-width:899px){
 #dayroom .dr-sidebar>.dr-history-controls{display:none}
 #dayroom .dr-mobile-bar{gap:2px;padding-inline:4px}
 #dayroom .dr-mobile-bar>button{padding-inline:6px;gap:4px;font-size:13px}
 #dayroom #dr-modal-body{min-width:0;grid-template-columns:minmax(0,1fr)}
 #dayroom .dr-seg.dr-help-nav{min-width:0;display:flex;flex-flow:row nowrap;width:100%;max-width:100%;margin-inline:0;justify-content:flex-start;overflow-x:auto;flex-shrink:0}
 #dayroom .dr-seg.dr-help-nav>button{min-height:44px;flex:none;white-space:nowrap}
 #dayroom .dr-page-body,#dayroom .dr-card-body{min-width:0;overflow-wrap:anywhere}
 #dayroom[data-mobile-nav] .dr-rail{overflow-y:auto;overscroll-behavior:contain;top:calc(52px + env(safe-area-inset-top))}
 #dayroom[data-mobile-nav] .dr-sidebar{top:calc(52px + env(safe-area-inset-top))}
 #dayroom[data-keyboard-open] .dr-sidebar{overflow-y:auto}
 #dayroom[data-keyboard-open] .dr-sidebar-scroll{flex:1 0 120px}
 #dayroom[data-keyboard-open] .dr-sidebar-footer{flex:none}
 #dayroom[data-keyboard-open] .dr-sidebar-footer :is(.dr-feedback-entry,#dr-billing-banner,#dr-import-dock){display:none}
 #dayroom[data-keyboard-open] .dr-upanel{padding:4px;gap:4px}
 #dayroom[data-keyboard-open] .dr-composer{max-height:50%;margin-bottom:4px}
}

/* Conversation navigation belongs to Chats, not every destination. */
#dayroom:is([data-work-page],[data-tools-page],[data-office-expanded]) .dr-sidebar{display:none}
@media(min-width:900px){
 #dayroom:is([data-work-page],[data-tools-page],[data-office-expanded]) .dr-layout{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:899px){
 #dayroom:is([data-work-page],[data-tools-page],[data-office-expanded])[data-mobile-nav] .dr-rail{width:100%;align-items:stretch;padding:12px}
 #dayroom:is([data-work-page],[data-tools-page],[data-office-expanded])[data-mobile-nav] .dr-rbtn{width:100%;flex-direction:row;justify-content:flex-start;gap:12px;padding:8px 12px;font-size:14px}
 #dayroom:is([data-work-page],[data-tools-page],[data-office-expanded])[data-mobile-nav] .dr-rail-main,#dayroom:is([data-work-page],[data-tools-page],[data-office-expanded])[data-mobile-nav] .dr-rail-bottom{align-items:stretch}
}

/* Shared phone entry layout. Native previews import this file as a pinned snapshot. */
@media (max-width:600px) {
 #dayroom {--dr-entry-top:calc(env(safe-area-inset-top,0px) + 88px);--dr-entry-bottom:calc(env(safe-area-inset-bottom,0px) + 16px)}
 #dayroom .dr-door-top {top:calc(env(safe-area-inset-top,0px) + 12px);left:24px;right:24px}
 #dayroom .dr-door-logo {height:26px}
 #dayroom .dr-door-card:not(.is-wide) {
  left:16px;right:16px;top:var(--dr-entry-top);transform:none;
  width:auto;max-height:calc(var(--dr-mobile-height,100dvh) - var(--dr-entry-top) - var(--dr-entry-bottom));
  padding:24px 20px;border-radius:20px;overscroll-behavior:contain;
  scroll-padding-block:20px;-webkit-overflow-scrolling:touch;
 }
 #dayroom[data-has-workspaces] {--dr-entry-top:calc(env(safe-area-inset-top,0px) + 16px)}
 #dayroom .dr-door-card:not(.is-wide) .dr-door-h1 {font-size:27px;line-height:1.15;letter-spacing:-.025em}
 #dayroom .dr-door-card:not(.is-wide) .dr-door-eyebrow {margin-bottom:12px}
 #dayroom .dr-door-card:not(.is-wide) .dr-door-lede {font-size:14px;line-height:1.5;margin-top:10px}
 #dayroom .dr-door-google-wrap {margin-top:22px}
 #dayroom .dr-door-google,#dayroom .dr-door-input {min-height:48px;height:48px}
 #dayroom .dr-door-or {margin:16px 0}
 #dayroom .dr-door-note {overflow-wrap:anywhere}
 /* Provider fallback links can wrap; use one readable underline, not fragmented focus boxes. */
 #dayroom .dr-door-note .dr-entry-link {display:inline;box-shadow:none;border:0;outline-offset:3px}
}
@media (max-width:600px) and (max-height:500px) {
 #dayroom {--dr-entry-top:calc(env(safe-area-inset-top,0px) + 60px)}
 #dayroom .dr-door-logo {height:20px}
 #dayroom .dr-door-top {top:calc(env(safe-area-inset-top,0px) + 8px)}
}

/* Formatting shares the composer's palette and standard, smooth formatting controls. */
#dayroom .dr-composer:has(.dr-format-editor){overflow:hidden}
#dayroom .dr-format-editor{flex:1 1 auto;min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--dr-line-2) transparent;padding:2px}
#dayroom .dr-format-toolbar{display:flex;align-items:center;gap:2px;padding:0 0 5px;margin-bottom:2px;border-bottom:1px solid var(--dr-line);min-width:0}
#dayroom .dr-format-button{display:grid;place-items:center;flex:0 1 34px;min-width:24px;height:32px;min-height:32px;padding:0;margin:0;border:0;border-radius:6px;background:transparent;color:var(--dr-muted);font:inherit;font-size:18px;line-height:1;cursor:pointer}
#dayroom .dr-format-button svg{width:20px;height:20px;shape-rendering:auto}
#dayroom .dr-format-button:hover:not(:disabled){color:var(--dr-ink);background:color-mix(in srgb,var(--dr-ink) 7%,transparent)}
#dayroom .dr-format-button:focus-visible,#dayroom .dr-format-preview-toggle:focus-visible{outline:2px solid var(--dr-accent);outline-offset:1px}
#dayroom .dr-format-button:disabled{opacity:.4;cursor:default}
#dayroom .dr-format-bold{font-weight:800}#dayroom .dr-format-italic{font-family:Georgia,serif;font-style:italic}#dayroom .dr-format-underline{text-decoration:underline;text-underline-offset:4px}#dayroom .dr-format-strike{text-decoration:line-through}
#dayroom .dr-format-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;margin:0 0 2px;color:var(--dr-muted);font-size:11px}
#dayroom .dr-format-preview-toggle{flex:none;min-height:28px;padding:4px 6px;border:0;border-radius:5px;background:transparent;color:var(--dr-muted);font:inherit;font-weight:700;cursor:pointer}
#dayroom .dr-format-preview-toggle:disabled{opacity:.5;cursor:default}
#dayroom .dr-format-source-hidden{display:none!important}
#dayroom .dr-format-preview{min-height:38px;max-height:200px;overflow:auto;padding:8px 2px;font-size:14px;color:var(--dr-ink)}
#dayroom .dr-format-link{padding:10px;margin:2px 0 6px;border:1px solid var(--dr-field-line);border-radius:8px;background:var(--dr-panel);min-width:0}
#dayroom .dr-format-link label{display:flex;flex-direction:column;gap:5px;margin:0 0 10px;font-size:12px;font-weight:700;color:var(--dr-ink)}
#dayroom .dr-format-link input{width:100%;min-width:0;margin:0}
#dayroom .dr-format-link>div{display:flex;flex-wrap:wrap;gap:8px}
#dayroom .dr-format-link .dr-error:empty{display:none}
#dayroom .dr-message-body>.dr-answer-text{min-width:0}
#dayroom .dr-answer-text u{text-underline-offset:3px}
@media(max-width:850px){#dayroom .dr-format-button{flex:1 1 28px;height:36px;min-height:36px}#dayroom .dr-format-preview-toggle{min-height:32px}#dayroom .dr-format-preview{max-height:120px}}
@media(max-height:600px){#dayroom .dr-format-preview{max-height:80px}#dayroom .dr-format-toolbar{padding-bottom:2px}}

@media(max-width:899px){
 #dayroom .dr-composer:has(.dr-format-editor){max-height:55%}
 #dayroom #dr-compose .dr-chattools{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}
 #dayroom #dr-compose .dr-chattools :is(.dr-tb,.dr-send){width:100%;min-width:0;margin:0;height:44px}
 #dayroom #dr-compose .dr-chattools :is(.dr-div,.dr-grow){display:none}
}
/* Touch: every formatting control stays a full 44px target; the row scrolls sideways instead of shrinking them. */
@media(pointer:coarse){#dayroom .dr-format-toolbar{overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none}#dayroom .dr-format-toolbar::-webkit-scrollbar{display:none}#dayroom .dr-format-button{flex:0 0 44px;width:44px;height:44px;min-height:44px}#dayroom .dr-format-preview-toggle{min-height:44px}}

/* People use the same readable controls and portraits as workspace settings. */
#dayroom .dr-company{--company-line:var(--dr-line)}
#dayroom .dr-company .dr-page-body{padding:24px;min-width:0}
#dayroom .dr-company-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,.55fr);gap:16px;margin-bottom:24px}
#dayroom .dr-company-filters .dr-field{min-width:0}
#dayroom .dr-company input[type=search],#dayroom .dr-company input[type=text],#dayroom .dr-company input:not([type]),#dayroom .dr-company select{width:100%;min-height:44px;box-sizing:border-box}
#dayroom .dr-company-people{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}
#dayroom .dr-company-person{display:flex;align-items:flex-start;text-align:left;width:100%;gap:14px;padding:20px 0;background:none;border:0;border-bottom:1px solid var(--company-line);color:inherit;cursor:pointer;font:inherit;min-width:0}
#dayroom .dr-company-person:hover{background:var(--dr-hover)}
#dayroom .dr-company-person:focus-visible{outline:2px solid var(--dr-accent);outline-offset:3px;border-radius:6px}
#dayroom .dr-company-person canvas,#dayroom .dr-company-profile canvas{flex:0 0 64px;width:64px;height:64px;image-rendering:pixelated;border-radius:12px}
#dayroom .dr-company-person-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:6px;overflow-wrap:anywhere;font-size:14px}
#dayroom .dr-company-person-copy strong{font-size:17px;font-weight:650;line-height:1.35}
#dayroom .dr-company-person-copy strong small{font-size:12px;font-weight:400}
#dayroom .dr-company-person>.dr-i{flex-shrink:0;margin-top:22px;width:14px;height:14px;transform:rotate(-90deg)}
#dayroom .dr-company-tags{display:flex;flex-wrap:wrap;gap:4px 6px;margin:3px 0}
#dayroom .dr-company-tag{border:1px solid var(--company-line);padding:3px 7px;border-radius:5px;font-size:12px;line-height:1.4;max-width:100%;overflow-wrap:anywhere}
#dayroom .dr-company-manager,#dayroom .dr-company-unset{font-size:12px;color:var(--dr-muted)}
#dayroom .dr-company-status{min-height:1.5em;margin:16px 0 0}
#dayroom .dr-company-editor{width:100%;max-width:580px;margin:0 auto;box-sizing:border-box}
#dayroom .dr-company-profile{display:flex;align-items:center;gap:16px;max-width:580px;margin:0 auto 24px;overflow-wrap:anywhere}
#dayroom .dr-company-profile-name{font-size:21px;font-weight:650;margin:0 0 4px}
#dayroom .dr-company-profile p:last-child{margin-bottom:0}
#dayroom .dr-company-team-options{padding:0;border:0;min-width:0;margin:24px 0}
#dayroom .dr-company-team-options legend{font-weight:600;margin-bottom:12px}
#dayroom .dr-company-team-options label{display:flex;align-items:center;gap:10px;padding:10px 0;min-height:24px;overflow-wrap:anywhere}
#dayroom .dr-company-team-options input{width:18px;height:18px;flex-shrink:0;accent-color:var(--dr-accent)}
#dayroom .dr-company-team-options label span{min-width:0}
#dayroom .dr-company-facts{display:grid;grid-template-columns:100px minmax(0,1fr);gap:16px;max-width:580px;margin:0 auto 24px}
#dayroom .dr-company-facts dt{font-size:13px;color:var(--dr-muted)}
#dayroom .dr-company-facts dd{margin:0;overflow-wrap:anywhere}
#dayroom .dr-company-team-list{list-style:none;margin:0;padding:0}
#dayroom .dr-company-team-list li{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 0;border-bottom:1px solid var(--company-line)}
#dayroom .dr-company-team-list li>span:first-child{min-width:0;display:flex;flex-direction:column;gap:5px;overflow-wrap:anywhere}
#dayroom .dr-company-team-list small{color:var(--dr-muted);font-size:12px}
#dayroom .dr-company-team-actions{display:flex;gap:8px;flex-shrink:0}
@media(max-width:620px){#dayroom .dr-company .dr-page-body{padding:16px}#dayroom .dr-company-people{grid-template-columns:minmax(0,1fr)}#dayroom .dr-company-filters{grid-template-columns:minmax(0,1fr);gap:12px}#dayroom .dr-company .dr-page-actions{width:100%;flex-wrap:wrap}#dayroom .dr-company .dr-page-head{flex-wrap:wrap;gap:12px}#dayroom .dr-company-team-list li{flex-wrap:wrap}#dayroom .dr-company-person{padding:16px 0}#dayroom .dr-company .dr-form-actions{flex-wrap:wrap}}

#dayroom .dr-company label.dr-field{margin:0}

@media(max-width:360px){#dayroom .dr-company .dr-page-actions>.dr-button{padding-inline:8px;font-size:12px}}

#dayroom .dr-setup-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px}
#dayroom .dr-company-setup section{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:14px;overflow-wrap:anywhere}
#dayroom .dr-company-setup h3{font-size:18px;line-height:1.4;font-weight:700}
#dayroom .dr-company-setup p{line-height:1.6}
#dayroom .dr-setup-facts{display:grid;grid-template-columns:100px minmax(0,1fr);gap:12px;margin:0;width:100%}
#dayroom .dr-setup-facts dt{color:var(--dr-muted);font-size:13px}
#dayroom .dr-setup-facts dd{margin:0;overflow-wrap:anywhere}
#dayroom .dr-setup-tasks{list-style:none;padding:0;margin:0;width:100%}
#dayroom .dr-setup-tasks small{display:block;color:var(--dr-muted);margin-top:6px}
#dayroom .dr-setup-tasks .dr-company-person{justify-content:space-between;gap:12px}
#dayroom .dr-setup-hosting{display:flex;flex-direction:column;gap:32px;max-width:680px}
@media(max-width:620px){#dayroom .dr-setup-grid{grid-template-columns:minmax(0,1fr);gap:32px}#dayroom .dr-setup-facts{grid-template-columns:85px minmax(0,1fr)}}
#dayroom .dr-company-setup section>p{font-size:14px}
#dayroom .dr-company-setup p.dr-setup-address{font-size:16px;font-weight:600;color:var(--dr-ink)}

/* Optional database connection review stays readable for long RDS endpoints. */
#dayroom .dr-db-destination{display:grid;grid-template-columns:minmax(100px,1fr) minmax(0,3fr);gap:10px 20px;margin:20px 0;padding:18px;border:1px solid var(--dr-line);border-radius:12px}
#dayroom .dr-db-destination dt{color:var(--dr-muted)}
#dayroom .dr-db-destination dd{margin:0;overflow-wrap:anywhere}
#dayroom #dr-db-review{margin-top:24px}
#dayroom #dr-db-review .dr-check{align-items:flex-start;line-height:1.6}
#dayroom #dr-db-review input[type=checkbox]{flex-shrink:0;margin-top:5px}
#dayroom #dr-db-connect{margin-top:12px}
@media(max-width:560px){#dayroom .dr-db-destination{grid-template-columns:1fr;gap:4px}#dayroom .dr-db-destination dd{margin-bottom:12px}}

#dayroom .dr-db-actions{display:flex;flex-wrap:wrap;align-items:stretch;gap:12px;margin-top:24px;margin-bottom:8px;padding-top:20px;border-top:1px solid var(--dr-line)}
#dayroom .dr-db-actions>.dr-button{min-height:44px;margin:0;padding:12px 18px;white-space:normal}
#dayroom .dr-db-actions>#dr-db-cancel{margin-inline-start:auto}
@media(max-width:620px){#dayroom .dr-db-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}#dayroom .dr-db-actions>.dr-button{width:100%;min-height:48px}#dayroom .dr-db-actions>#dr-db-cancel{margin-inline-start:0}}
/* Private database preparation follows the full-page organization settings. */
.dr-private-database {display:grid;gap:24px;max-width:760px}
.dr-private-database p {margin:0;line-height:1.6}
.dr-private-intro {display:grid;gap:10px}
.dr-private-intro h3 {margin:0;font-size:24px}
.dr-private-destination {display:grid;grid-template-columns:120px minmax(0,1fr);gap:12px 20px;margin:0;padding:22px 0;border-block:1px solid var(--dr-line)}
.dr-private-destination dt {color:var(--dr-muted)}
.dr-private-destination dd {margin:0;overflow-wrap:anywhere;font-weight:650}
.dr-private-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.dr-private-database .dr-field {margin:0;min-width:0}
.dr-private-database input,.dr-private-database select {width:100%;min-width:0;box-sizing:border-box}
.dr-private-checks {margin:0;padding-left:22px;display:grid;gap:10px;line-height:1.5}
.dr-private-error {padding:14px 18px;border-left:3px solid currentColor}
.dr-private-database .dr-hosting-details p+p {margin-top:10px}
.dr-private-database .dr-form-actions {flex-wrap:wrap;gap:12px}
@media(max-width:520px){.dr-private-fields{grid-template-columns:1fr}.dr-private-destination{grid-template-columns:1fr;gap:5px}.dr-private-destination dd+dt{margin-top:10px}.dr-private-intro h3{font-size:21px}}

/* Private migration keeps operator commands inside a disclosure. */
.dr-move{max-width:46rem;margin-inline:auto}.dr-move>.dr-button{margin-block:.6rem}.dr-move .dr-private-destination dd{overflow-wrap:anywhere}.dr-move textarea{width:100%;min-height:7rem;resize:vertical;font:inherit}.dr-move-command{white-space:pre-wrap;overflow-wrap:anywhere;padding:1rem;border:1px solid var(--dr-line);border-radius:8px;font-size:.85rem;line-height:1.6}.dr-move .dr-form-actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.5rem}

.dr-move h3{overflow-wrap:anywhere}.dr-move-error:empty,#dr-move-error:empty{display:none}

.dr-move-delete-check{display:flex;gap:12px;align-items:flex-start;margin:24px 0;line-height:1.6}.dr-move-delete-check input{flex:none;margin-top:6px;width:18px;height:18px}
/* Company-domain setup uses the same cards and fields as the directory. */
#dayroom .dr-mail-setup{display:grid;gap:24px}
#dayroom .dr-mail-domain{margin-top:24px;padding-top:20px;border-top:1px solid var(--dr-line)}
#dayroom .dr-mail-domain dl{display:grid;grid-template-columns:60px minmax(0,1fr);gap:12px}
#dayroom .dr-mail-domain dd{margin:0;overflow-wrap:anywhere;user-select:all}
#dayroom .dr-mail-domain summary{cursor:pointer;font-weight:600}
#dayroom .dr-mail-domain .dr-button{margin-top:14px}
#dayroom .dr-mail-addresses{list-style:none;padding:0;margin:24px 0 0}
#dayroom .dr-mail-addresses li{display:grid;gap:6px;padding:16px 0;border-top:1px solid var(--dr-line);overflow-wrap:anywhere}
#dayroom .dr-mail-addresses span{font-size:13px;color:var(--dr-muted)}

#dayroom .dr-mail-folders,#dayroom .dr-mail-messages{list-style:none;padding:0;margin:0}
#dayroom .dr-mail-folders{display:flex;flex-wrap:wrap;gap:12px}
#dayroom .dr-mail-messages li{border-bottom:1px solid var(--dr-line)}
#dayroom .dr-mail-row{display:flex;flex-direction:column;gap:8px;width:100%;padding:20px 0;border:0;background:transparent;color:var(--dr-ink);text-align:left;font:inherit;cursor:pointer;overflow-wrap:anywhere}
#dayroom .dr-mail-row:hover{background:var(--dr-panel)}
#dayroom .dr-mail-row:focus-visible{outline:2px solid var(--dr-accent);outline-offset:3px}
#dayroom .dr-mail-row-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;width:100%;font-size:13px}
#dayroom .dr-mail-row time,#dayroom .dr-mail-preview{color:var(--dr-muted)}
#dayroom .dr-mail-preview{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px}
#dayroom .dr-mail-unread{color:var(--dr-accent)}
#dayroom .dr-mail-message{overflow-wrap:anywhere}
#dayroom .dr-mail-message dl{display:grid;grid-template-columns:80px minmax(0,1fr);gap:12px;margin:0 0 28px}
#dayroom .dr-mail-message dt{color:var(--dr-muted)}
#dayroom .dr-mail-message dd{margin:0}
#dayroom .dr-mail-text{white-space:pre-wrap;line-height:1.7;margin-bottom:28px}

#dayroom .dr-mail-message section ul{padding:0;list-style:none;width:100%}
#dayroom .dr-mail-message section li{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--dr-line);flex-wrap:wrap}

/* Keep connection actions clear and comfortable on smaller screens. */
#dayroom .dr-dns-actions{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}
#dayroom .dr-dns-actions .dr-button{margin:0}
@media(max-width:480px){#dayroom .dr-dns-actions{flex-direction:column;align-items:stretch}}

/* Domain acquisition and existing-domain setup are distinct customer paths. */
#dayroom .dr-domain-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:24px 0 32px}
#dayroom .dr-domain-choices>div{border:1px solid var(--dr-line);border-radius:12px;padding:24px}
#dayroom .dr-domain-choices h3{margin-top:0}
#dayroom .dr-domain-choices .dr-button{margin-top:12px}
#dayroom .dr-domain-store{max-width:660px}
#dayroom .dr-domain-store li{margin:14px 0;line-height:1.6}
#dayroom .dr-domain-store>p{margin:24px 0;line-height:1.6}
#dayroom .dr-domain-store>.dr-button{margin:0 12px 12px 0}
@media(max-width:620px){#dayroom .dr-domain-choices{grid-template-columns:minmax(0,1fr)}#dayroom .dr-domain-store>.dr-button{width:100%;margin-right:0}}

#dayroom .dr-company-setup .dr-dns-manual{display:block;max-width:780px;width:100%}
#dayroom .dr-company-setup .dr-dns-record{display:block;width:100%;padding:24px 0;border-top:1px solid var(--dr-line)}
#dayroom .dr-dns-field{display:grid;width:100%;grid-template-columns:100px minmax(0,1fr) auto;gap:12px;align-items:start;margin:16px 0}
#dayroom .dr-dns-field code{min-width:0;white-space:pre-wrap;overflow-wrap:anywhere;user-select:text}
#dayroom .dr-dns-manual .dr-dns-actions{display:flex;flex-wrap:wrap;gap:16px;margin-top:24px}
@media(max-width:620px){#dayroom .dr-dns-field{grid-template-columns:minmax(0,1fr) auto}#dayroom .dr-dns-field>span{grid-column:1/-1}#dayroom .dr-dns-field .dr-button{min-height:44px;max-width:140px}#dayroom .dr-company-setup .dr-dns-record{padding:20px 0}}

/* Full-page settings: the navigation stays put while the selected page scrolls. */
#dayroom .dr-overlay.dr-settings-screen{padding:0;background:var(--dr-bg);backdrop-filter:none}
#dayroom #dr-overlay.dr-settings-screen .dr-modal.dr-modal{width:100%;max-width:none;height:100dvh;max-height:100dvh;border:0;border-radius:0;padding:0;box-shadow:none;display:flex;flex-direction:column}
#dayroom #dr-overlay.dr-settings-screen .dr-modalhead{position:absolute;right:16px;top:16px;z-index:4;background:none;border:0;padding:0;margin:0}
#dayroom #dr-overlay.dr-settings-screen #dr-modal-title{display:none}
#dayroom #dr-overlay.dr-settings-screen .dr-modal.dr-modal #dr-modal-body{flex:1;min-height:0;display:grid;grid-template-columns:250px minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr);grid-template-areas:"nav head" "nav error" "nav body";overflow:hidden;padding:0}
#dayroom .dr-settings-nav{grid-area:nav;background:var(--dr-bg);border-right:1px solid var(--dr-line-2);padding:24px 16px;overflow:auto;min-height:0}
#dayroom .dr-settings-nav .dr-settings-return{width:100%;font-size:13px;justify-content:flex-start;margin-bottom:24px}
#dayroom .dr-settings-nav .dr-settings-workspace-name{font-size:16px;font-weight:800;color:var(--dr-ink);overflow-wrap:anywhere;margin:0 10px 24px}
#dayroom .dr-settings-nav h2{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--dr-muted);margin:24px 10px 8px}
#dayroom .dr-settings-nav nav button{display:block;width:100%;border:0;background:transparent;color:var(--dr-ink-2);text-align:left;padding:10px 12px;border-radius:6px;line-height:1.4;font:inherit;cursor:pointer}
#dayroom .dr-settings-nav nav button:hover{background:var(--dr-hover)}
#dayroom .dr-settings-nav nav button[aria-current]{background:var(--dr-sel);color:var(--dr-ink);font-weight:800}
#dayroom .dr-settings-mobile-nav{display:none}
#dayroom #dr-overlay.dr-settings-screen #dr-modal-body>.dr-page>.dr-page-head{padding:32px 64px 24px 40px;min-height:108px;gap:16px}
#dayroom #dr-overlay.dr-settings-screen .dr-page-title{font-size:26px}
#dayroom #dr-overlay.dr-settings-screen .dr-page-sub{font-size:14px;margin-top:8px}
#dayroom #dr-overlay.dr-settings-screen #dr-modal-body>.dr-page>.dr-page-body{padding:32px 40px 60px;gap:24px}
#dayroom #dr-overlay.dr-settings-screen .dr-page-body>*{width:100%;max-width:1000px;box-sizing:border-box}
#dayroom #dr-overlay.dr-settings-screen #dr-modal-error{grid-area:error;margin:0 40px}
#dayroom #dr-overlay.dr-settings-screen .dr-settings-account .dr-page-body>.dr-card[hidden]{display:none}
#dayroom .dr-role-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:12px;list-style:none;padding:0}
#dayroom .dr-role-choice{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:20px;width:100%;height:100%;text-align:left;border:1px solid var(--dr-line-2);border-radius:10px;background:var(--dr-panel);color:var(--dr-ink);font:inherit;cursor:pointer;white-space:normal}
#dayroom .dr-role-choice:hover,#dayroom .dr-role-choice[aria-pressed="true"]{border-color:var(--dr-accent);background:var(--dr-hover)}
#dayroom .dr-role-choice span{font-size:13px;color:var(--dr-muted);line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
#dayroom .dr-role-guidance{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}
#dayroom .dr-role-editor textarea{min-height:160px}
#dayroom .dr-workspace-menu [data-settings-moved]{display:none!important}
@media(max-width:760px){
 #dayroom #dr-overlay.dr-settings-screen .dr-modal.dr-modal #dr-modal-body{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto minmax(0,1fr);grid-template-areas:"nav" "head" "error" "body"}
 #dayroom .dr-settings-nav{padding:12px 16px;border-right:0;border-bottom:1px solid var(--dr-line-2);overflow:visible;display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
 #dayroom .dr-settings-nav .dr-settings-return{width:max-content;margin:0;max-width:calc(100% - 40px)}
 #dayroom .dr-settings-nav nav,#dayroom .dr-settings-workspace-name{display:none}
 #dayroom .dr-settings-mobile-nav{display:block;width:100%;min-height:44px}
 #dayroom #dr-overlay.dr-settings-screen #dr-modal-body>.dr-page>.dr-page-head{padding:20px 16px;min-height:0;align-items:flex-start;flex-wrap:wrap}
 #dayroom #dr-overlay.dr-settings-screen .dr-page-title{font-size:22px}
 #dayroom #dr-overlay.dr-settings-screen #dr-modal-body>.dr-page>.dr-page-body{padding:20px 16px 40px}
 #dayroom #dr-overlay.dr-settings-screen #dr-modal-error{margin:0 16px}
}

#dayroom #dr-overlay .dr-onboarding-role .dr-card-body{display:flex;flex-direction:column;align-items:flex-start;padding:32px;gap:0}
#dayroom #dr-overlay .dr-onboarding-role h3{font-size:21px;line-height:1.4;margin:0}
#dayroom #dr-overlay .dr-onboarding-role .dr-hint{margin:10px 0 0;font-size:14px}
#dayroom #dr-overlay .dr-onboarding-role .dr-role-guidance{margin:24px 0 0;max-width:66ch;font-size:15px;line-height:1.85;color:var(--dr-ink)}
#dayroom #dr-overlay .dr-onboarding-role-actions{margin-top:28px}
@media(max-width:760px){#dayroom #dr-overlay .dr-onboarding-role .dr-card-body{padding:24px}#dayroom #dr-overlay .dr-onboarding-role h3{font-size:19px}#dayroom #dr-overlay .dr-onboarding-role .dr-role-guidance{margin-top:20px}}

#dayroom #dr-overlay[data-settings-section="members"] .dr-settings-workspace .dr-page-body>:not(#dr-workspace-people):not(#dr-workspace-invitations):not(.dr-settings-footer){display:none}
#dayroom #dr-overlay[data-settings-section="general"] .dr-settings-workspace :is(#dr-workspace-people,#dr-workspace-invitations){display:none}

#dayroom #dr-overlay.dr-settings-screen .dr-modal #dr-modal-error:not(:empty){margin:0;padding:16px 40px;border-bottom:1px solid var(--dr-line);background:var(--dr-panel)}
@media(max-width:760px){#dayroom #dr-overlay.dr-settings-screen .dr-modal #dr-modal-error:not(:empty){padding:12px 16px}}

/* Settings rhythm: compact navigation, readable sections and bounded form widths. */
#dayroom #dr-overlay.dr-settings-screen .dr-settings-nav nav button{padding:9px 12px;font-size:13px}
#dayroom #dr-overlay.dr-settings-screen .dr-settings-nav h2{margin-top:22px;font-size:10px}
#dayroom #dr-overlay.dr-settings-screen .dr-card-head{padding:22px 24px}
#dayroom #dr-overlay.dr-settings-screen .dr-card-body{padding:24px}
#dayroom #dr-overlay.dr-settings-screen .dr-card-title{font-size:16px;line-height:1.4}
#dayroom #dr-overlay.dr-settings-screen .dr-card-sub{line-height:1.6;margin-top:6px}
#dayroom #dr-overlay.dr-settings-screen .dr-form{gap:16px}
#dayroom #dr-overlay.dr-settings-screen #dr-account-profile-card{max-width:900px;border:0;box-shadow:none;background:transparent}
#dayroom #dr-overlay.dr-settings-screen .dr-account-profile{display:grid;grid-template-columns:200px minmax(0,1fr);gap:48px;padding:0;align-items:start}
#dayroom #dr-overlay.dr-settings-screen .dr-account-figure{width:100%;margin:0;padding:24px;border-radius:16px;background:var(--dr-sunken);box-sizing:border-box}
#dayroom #dr-overlay.dr-settings-screen #dr-account-avatar{width:144px;height:144px;max-width:100%;border-radius:16px}
#dayroom #dr-overlay.dr-settings-screen .dr-account-figure figcaption{display:flex;flex-direction:column;gap:12px;margin-top:18px;text-align:left}
#dayroom #dr-overlay.dr-settings-screen .dr-account-figure figcaption>span{color:var(--dr-muted);font-size:12px;line-height:1.5}
#dayroom #dr-overlay.dr-settings-screen .dr-account-figure .dr-button{font-size:12px;min-height:36px;width:100%}
#dayroom #dr-overlay.dr-settings-screen .dr-profile-editor{padding-top:8px;max-width:520px}
#dayroom #dr-overlay.dr-settings-screen .dr-profile-editor h3{font-size:20px;margin:0 0 8px}
#dayroom #dr-overlay.dr-settings-screen #dr-profile-name{display:flex;flex-direction:column;align-items:stretch;margin-top:32px;gap:10px}
#dayroom #dr-overlay.dr-settings-screen .dr-profile-email{margin-top:20px;padding-top:24px;border-top:1px solid var(--dr-line)}
#dayroom #dr-overlay.dr-settings-screen .dr-profile-email>span{font-weight:700;font-size:13px}
#dayroom #dr-overlay.dr-settings-screen .dr-profile-email p{margin:10px 0 6px;overflow-wrap:anywhere}
#dayroom #dr-overlay.dr-settings-screen .dr-profile-email small{color:var(--dr-muted)}
#dayroom #dr-overlay.dr-settings-screen .dr-profile-save{display:flex;align-items:center;gap:16px;margin-top:30px}
#dayroom .dr-plan-toolbar{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:12px}
#dayroom .dr-plan-toolbar strong{font-size:18px}
#dayroom .dr-plan-toolbar .dr-hint{margin-top:10px}
#dayroom .dr-plan-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
#dayroom .dr-plan-card{padding:32px;border:1px solid var(--dr-line);border-radius:16px;background:var(--dr-sunken);display:flex;flex-direction:column;gap:16px}
#dayroom .dr-plan-card.is-featured{border-color:var(--dr-line-2);background:var(--dr-panel)}
#dayroom .dr-plan-label{font-size:12px;color:var(--dr-muted)}
#dayroom .dr-plan-card h3{font-size:24px;margin:0}
#dayroom .dr-plan-card p{margin:0;line-height:1.6}
#dayroom .dr-plan-card .dr-plan-price{font-size:36px;font-weight:700;line-height:1.3;min-height:80px}
#dayroom .dr-plan-price small{display:block;font-size:13px;font-weight:500;color:var(--dr-muted);margin-top:8px}
#dayroom .dr-plan-action{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;margin:12px 0;border-radius:9px;background:var(--dr-hover);font-size:14px;font-weight:700}
#dayroom .dr-plan-features{padding:0;list-style:none;display:flex;flex-direction:column;gap:16px;margin:8px 0 20px}
#dayroom .dr-plan-features li{display:flex;gap:12px;font-size:14px;line-height:1.5}
#dayroom .dr-plan-features+ .dr-hint{margin-top:auto}
#dayroom #dr-overlay.dr-settings-screen #dr-checkout-details{margin-top:16px}
#dayroom #dr-status{text-decoration:none;border-bottom:0;background-image:none}
@media(max-width:900px){#dayroom #dr-overlay.dr-settings-screen .dr-account-profile{grid-template-columns:170px minmax(0,1fr);gap:28px}#dayroom .dr-plan-card{padding:24px}}
@media(max-width:600px){#dayroom #dr-overlay.dr-settings-screen .dr-account-profile{grid-template-columns:minmax(0,1fr);gap:28px}#dayroom #dr-overlay.dr-settings-screen .dr-account-figure{max-width:240px}#dayroom .dr-plan-grid{grid-template-columns:1fr}#dayroom .dr-plan-toolbar{align-items:flex-start;flex-direction:column}#dayroom #dr-overlay.dr-settings-screen .dr-card-body{padding:20px}#dayroom #dr-overlay.dr-settings-screen .dr-account-profile{padding:0}}
#dayroom .dr-plan-period{display:inline-flex;gap:4px;padding:4px;border-radius:999px;background:var(--dr-sunken)}
#dayroom .dr-plan-period button{position:static;border:0;border-radius:999px;padding:9px 20px;min-width:88px;background:transparent;color:var(--dr-muted);font:inherit;font-size:13px;cursor:pointer}
#dayroom .dr-plan-period button[aria-pressed="true"]{background:var(--dr-sel);color:var(--dr-ink);font-weight:700}
#dayroom .dr-plan-card .dr-plan-action.dr-primary{background:var(--dr-accent);color:var(--dr-accent-ink,#14200d)}
#dayroom #dr-overlay.dr-settings-screen .dr-onboarding-role .dr-card-body{padding:32px}
@media(max-width:760px){#dayroom #dr-overlay.dr-settings-screen .dr-onboarding-role .dr-card-body{padding:24px}}
/* Landing-inspired navigation and a shared pixel cast, on the charcoal settings surface. */
#dayroom #dr-overlay.dr-settings-screen .dr-settings-return{display:inline-flex;align-items:center;gap:10px;width:auto;min-height:36px;padding:6px 8px;margin:0 0 24px;border:0;border-radius:4px;box-shadow:none;background:transparent;color:var(--dr-ink-2);font:inherit;font-size:13px;font-weight:700;cursor:pointer;text-align:left}
#dayroom #dr-overlay.dr-settings-screen .dr-settings-return:hover{color:var(--dr-ink);background:var(--dr-hover)}
#dayroom #dr-overlay.dr-settings-screen .dr-settings-return:focus-visible{outline:2px solid var(--dr-accent);outline-offset:3px}
#dayroom #dr-overlay.dr-settings-screen .dr-settings-return>span:first-child{font-size:20px;line-height:1}
#dayroom #dr-overlay.dr-settings-screen .dr-settings-footer{flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;margin-top:56px;padding:24px 16px 12px;text-align:center;color:var(--dr-muted)}
#dayroom #dr-overlay.dr-settings-screen .dr-settings-footer canvas{display:block;width:288px;max-width:100%;height:auto;image-rendering:pixelated}
#dayroom #dr-overlay.dr-settings-screen .dr-settings-footer p{margin:0;font-size:16px;font-weight:700;color:var(--dr-ink-2);line-height:1.5}
#dayroom #dr-overlay.dr-settings-screen .dr-settings-footer>span{font-size:12px;line-height:1.5}
@media(max-width:760px){#dayroom #dr-overlay.dr-settings-screen .dr-settings-return{margin:0;max-width:calc(100% - 40px)}#dayroom #dr-overlay.dr-settings-screen .dr-settings-footer{margin-top:36px}}

/* Native selects can report focus-visible after a mouse click; retain the ring only for keyboard use. */
#dayroom[data-focus-input=pointer] #dr-status:focus,#dayroom[data-focus-input=pointer] #dr-status:focus-visible{outline:none;box-shadow:none;text-decoration:none}

/* A focused welcome for existing conversations. */
#dayroom .dr-import-home{display:flex;flex-direction:column;gap:32px}
#dayroom .dr-import-hero{display:grid;grid-template-columns:1.35fr 1fr;align-items:center;gap:36px;padding:36px;border:1px solid var(--dr-line);border-radius:16px;background:var(--dr-sunken);overflow:hidden}
#dayroom .dr-import-brand{display:flex;align-items:center;gap:12px;font-size:10px;letter-spacing:.12em;font-weight:700;color:var(--dr-muted)}
#dayroom .dr-import-story h2{font-size:34px;line-height:1.15;letter-spacing:-.035em;margin:24px 0 16px}
#dayroom .dr-import-story p{font-size:14px;line-height:1.7;color:var(--dr-muted);max-width:360px;margin:0 0 26px}
#dayroom .dr-import-story .dr-button{min-height:44px;padding:10px 20px}
#dayroom .dr-import-note{display:block;margin-top:12px;font-size:11px;color:var(--dr-muted)}
#dayroom .dr-import-art{display:flex;flex-direction:column;align-items:flex-start;padding:16px 0;gap:14px}
#dayroom .dr-import-logo{align-self:center;margin-bottom:12px}
#dayroom .dr-import-bubble{position:relative;padding:18px 22px 26px;border-radius:14px 14px 14px 3px;background:var(--dr-panel);border:1px solid var(--dr-line);font-size:15px;font-weight:700;line-height:1.7;box-shadow:0 8px 20px #0000000c;transform:rotate(-3deg)}
#dayroom .dr-import-bubble span{display:block;font-size:12px;font-weight:400;color:var(--dr-muted)}
#dayroom .dr-import-bubble i{position:absolute;right:14px;bottom:6px;color:var(--dr-accent);font-style:normal;font-size:12px}
#dayroom .dr-import-bubble-reply{align-self:flex-end;transform:rotate(3deg);border-radius:14px 14px 3px 14px;padding-bottom:18px}
#dayroom .dr-import-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;list-style:none;margin:0;padding:0 4px}
#dayroom .dr-import-steps li{display:flex;align-items:flex-start;gap:12px}
#dayroom .dr-import-steps li>span{font-size:11px;font-weight:700;color:var(--dr-muted);border-bottom:2px solid var(--dr-accent);padding:4px 0 7px}
#dayroom .dr-import-steps h3{font-size:13px;margin:3px 0 8px}
#dayroom .dr-import-steps p{font-size:12px;line-height:1.6;color:var(--dr-muted);margin:0}
#dayroom .dr-import-secondary{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding-top:4px}
#dayroom .dr-import-secondary button{display:flex;align-items:center;gap:14px;padding:22px 20px;background:transparent;border:1px solid var(--dr-line);border-radius:12px;color:var(--dr-ink);font:inherit;text-align:left;cursor:pointer}
#dayroom .dr-import-secondary button:hover{background:var(--dr-hover);border-color:var(--dr-line-2)}
#dayroom .dr-import-secondary button>span:last-child{margin-left:auto;color:var(--dr-muted)}
#dayroom .dr-import-secondary strong{display:block;font-size:13px}
#dayroom .dr-import-secondary small{display:block;font-size:11px;line-height:1.5;color:var(--dr-muted);margin-top:7px}
#dayroom .dr-import-option-icon{display:flex;color:var(--dr-muted);flex:none}
#dayroom .dr-import-option-icon svg{width:22px;height:22px}
@media(max-width:1000px){#dayroom .dr-import-hero{gap:20px;padding:28px}#dayroom .dr-import-story h2{font-size:28px}#dayroom .dr-import-secondary{grid-template-columns:1fr}}
@media(max-width:600px){#dayroom .dr-import-hero{grid-template-columns:1fr;padding:24px}#dayroom .dr-import-art{display:none}#dayroom .dr-import-steps{grid-template-columns:1fr;gap:22px}#dayroom .dr-import-home{gap:28px}}
#dayroom .dr-import-home .dr-import-logo :is(svg,img){width:64px;height:64px;display:block}
#dayroom .dr-import-home .dr-import-brand :is(svg,img){width:28px;height:28px;flex:none}
#dayroom .dr-import-home .dr-import-story h2{margin:24px 0 16px;font-weight:700}
#dayroom .dr-import-home .dr-import-story p{margin:0 0 26px}
#dayroom .dr-import-home .dr-import-steps h3{margin:3px 0 8px;font-weight:700}

/* Consistent settings sections: comfortable reading widths and distinct actions. */
#dayroom #dr-overlay.dr-settings-screen .dr-card{border-radius:16px;overflow:hidden}
#dayroom #dr-overlay.dr-settings-screen .dr-card-head{background:var(--dr-sunken)}
#dayroom #dr-overlay.dr-settings-screen .dr-card-body>p{line-height:1.7;max-width:70ch}
#dayroom #dr-overlay.dr-settings-screen .dr-form-actions{gap:12px;margin-top:16px;flex-wrap:wrap}
#dayroom #dr-overlay.dr-settings-screen .dr-setup-grid{gap:24px}
#dayroom #dr-overlay.dr-settings-screen :is(.dr-setup-grid,.dr-setup-hosting)>section{padding:28px;border-radius:16px;background:var(--dr-sunken);border:1px solid var(--dr-line)}
#dayroom #dr-overlay.dr-settings-screen :is(.dr-setup-grid,.dr-setup-hosting)>section h3{font-size:18px;line-height:1.4;margin:0 0 18px}
#dayroom #dr-overlay.dr-settings-screen :is(.dr-setup-grid,.dr-setup-hosting)>section p{line-height:1.7;margin:12px 0 20px}
#dayroom #dr-overlay.dr-settings-screen .dr-role-list{gap:24px;margin:0 0 24px;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr))}
#dayroom #dr-overlay.dr-settings-screen .dr-role-choice{padding:28px;gap:24px;border-radius:16px;background:var(--dr-sunken)}
#dayroom #dr-overlay.dr-settings-screen .dr-role-choice strong{display:flex;align-items:center;gap:12px;font-size:20px;line-height:1.4}
#dayroom #dr-overlay.dr-settings-screen .dr-role-choice strong svg{width:24px;height:24px;color:var(--dr-accent)}
#dayroom #dr-overlay.dr-settings-screen .dr-role-choice>span{font-size:14px;line-height:1.85;max-width:65ch}
#dayroom #dr-overlay.dr-settings-screen .dr-role-choice>b{border-top:1px solid var(--dr-line);padding-top:18px;width:100%;font-size:13px;color:var(--dr-ink)}
#dayroom .dr-logo-brand{image-rendering:auto;object-fit:contain;flex-shrink:0}
@media(max-width:600px){#dayroom #dr-overlay.dr-settings-screen :is(.dr-setup-grid,.dr-setup-hosting)>section,#dayroom #dr-overlay.dr-settings-screen .dr-role-choice{padding:22px}}
/* Settings navigation has its own history, independent of the workspace. */
#dayroom .dr-settings-history{display:flex;align-items:center;gap:8px;margin-bottom:18px}
#dayroom .dr-settings-history button{width:34px;height:34px;border:1px solid var(--dr-line);border-radius:7px;background:transparent;color:var(--dr-ink);font-size:22px;cursor:pointer}
#dayroom .dr-settings-history button:disabled{opacity:.3;cursor:default}
#dayroom .dr-settings-history button:not(:disabled):hover{background:var(--dr-hover)}
#dayroom .dr-settings-history span{font-size:11px;color:var(--dr-muted);margin-left:6px}
#dayroom .dr-start-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(240px,1fr);gap:24px;align-items:start}
#dayroom .dr-start-main{display:grid;gap:28px}
#dayroom .dr-start-guide{padding:28px;border:1px solid var(--dr-line);border-radius:14px;background:var(--dr-sunken)}
#dayroom .dr-start-eyebrow{font-size:10px;font-weight:700;letter-spacing:.12em;color:var(--dr-muted)}
#dayroom .dr-start-role{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:16px 0 24px}
#dayroom .dr-start-layout h3{font-size:18px;line-height:1.4;margin:0;font-weight:700}
#dayroom .dr-start-role h3{font-size:26px;letter-spacing:-.02em}
#dayroom .dr-start-steps{list-style:none;padding:0;margin:0;display:grid;gap:0}
#dayroom .dr-start-steps li{display:flex;gap:16px;padding:18px 0;border-top:1px solid var(--dr-line);align-items:baseline}
#dayroom .dr-start-steps li:last-child{padding-bottom:0}
#dayroom .dr-start-steps li>span{font-size:11px;font-weight:700;color:var(--dr-accent);flex:none}
#dayroom .dr-start-layout .dr-start-steps p{margin:0;font-size:14px;line-height:1.7;white-space:pre-wrap}
#dayroom .dr-start-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}
#dayroom .dr-start-work{padding:0 4px}
#dayroom .dr-start-work .dr-setup-tasks{margin:0;border-top:1px solid var(--dr-line)}
#dayroom .dr-start-side{display:grid;gap:24px}
#dayroom .dr-start-side>section{padding:24px;border:1px solid var(--dr-line);border-radius:14px}
#dayroom .dr-start-icon{display:inline-flex;color:var(--dr-accent);margin-bottom:14px}
#dayroom .dr-start-icon svg{width:28px;height:28px}
#dayroom .dr-start-people{margin:24px 0;display:grid;gap:8px}
#dayroom .dr-start-people dt{font-size:10px;letter-spacing:.09em;color:var(--dr-muted)}
#dayroom .dr-start-people dt:not(:first-child){margin-top:12px}
#dayroom .dr-start-people dd{margin:0;font-size:14px;line-height:1.5}
#dayroom .dr-start-layout .dr-start-email h3{font-size:15px}
#dayroom .dr-start-email h3 small{font-size:10px;font-weight:400;color:var(--dr-muted);margin-left:6px}
#dayroom .dr-start-layout .dr-start-email p{margin:18px 0 6px;font-size:13px;overflow-wrap:anywhere}
#dayroom .dr-start-email .dr-hint{display:block;font-size:11px;line-height:1.5}
#dayroom .dr-start-email .dr-button{margin-top:18px}
#dayroom .dr-start-companion{grid-column:1/-1;display:flex;align-items:center;gap:20px;padding:24px 28px;background:var(--dr-sunken);border:1px solid var(--dr-line);border-radius:14px}
#dayroom .dr-start-companion>.dr-start-icon{margin:0}
#dayroom .dr-start-companion>div:first-of-type{flex:1}
#dayroom .dr-start-layout .dr-start-companion p{font-size:13px;margin:8px 0;line-height:1.5}
#dayroom .dr-start-companion small{font-size:11px;color:var(--dr-muted);line-height:1.5;display:block}
#dayroom .dr-start-companion-actions{display:grid;gap:10px;flex:none}
#dayroom .dr-members-toolbar{padding:24px;display:flex;align-items:end;justify-content:space-between;gap:20px;border-bottom:1px solid var(--dr-line)}
#dayroom .dr-members-toolbar label{display:grid;gap:10px;font-size:12px;font-weight:700;max-width:360px;flex:1}
#dayroom .dr-members-toolbar input{width:100%;min-height:40px;box-sizing:border-box}
#dayroom .dr-member-summary{font-size:12px;color:var(--dr-muted);padding-bottom:12px}
#dayroom #dr-overlay .dr-workspace-member{padding:20px 24px;gap:16px}
#dayroom #dr-overlay .dr-workspace-member[hidden]{display:none}
#dayroom #dr-overlay .dr-workspace-member canvas{border-radius:10px}
#dayroom #dr-overlay[data-settings-section=members] .dr-settings-workspace #dr-workspace-invitations{margin-top:8px;background:transparent}
#dayroom #dr-overlay[data-settings-section=members] #dr-workspace-invitations .dr-card-head{background:transparent;padding-bottom:0}
@media(max-width:760px){#dayroom .dr-settings-history{margin-bottom:0}#dayroom .dr-start-layout{grid-template-columns:1fr}#dayroom .dr-start-side{grid-template-columns:1fr 1fr}#dayroom .dr-start-companion{flex-wrap:wrap}#dayroom .dr-members-toolbar{align-items:stretch;flex-direction:column;gap:12px}}
@media(max-width:480px){#dayroom .dr-start-side{grid-template-columns:1fr}#dayroom .dr-start-guide{padding:22px}#dayroom .dr-start-role{align-items:flex-start;flex-direction:column}#dayroom .dr-start-companion-actions{width:100%}}
#dayroom .dr-company-setup .dr-start-layout section{display:block}
#dayroom .dr-company-setup .dr-start-layout .dr-start-companion{display:flex;flex-direction:row;align-items:center;gap:20px}
#dayroom .dr-start-role,#dayroom .dr-start-section-heading{width:100%}
/* Purpose-built account and data pages, rather than oversized generic cards. */
#dayroom .dr-section-kicker{display:block;font-size:10px;letter-spacing:.12em;font-weight:700;color:var(--dr-muted);margin-bottom:12px}
#dayroom .dr-setting-symbol{display:flex;width:56px;height:56px;align-items:center;justify-content:center;border:1px solid var(--dr-line);border-radius:12px;flex:none;color:var(--dr-accent)}
#dayroom .dr-setting-symbol svg{width:26px;height:26px}
#dayroom .dr-company-setup .dr-hosting-overview section{display:block}
#dayroom .dr-hosting-overview{display:grid;gap:24px}
#dayroom .dr-company-setup .dr-hosting-overview .dr-hosting-summary{display:flex;flex-direction:row;align-items:flex-start;gap:24px;padding:30px;border:1px solid var(--dr-line);border-radius:14px;background:var(--dr-sunken)}
#dayroom .dr-hosting-overview h3,#dayroom .dr-security-intro h3,#dayroom .dr-office-preference h3,#dayroom .dr-ai-intro h3,#dayroom .dr-connections-welcome h3{font-size:24px;line-height:1.35;margin:0 0 12px;font-weight:700;letter-spacing:-.02em}
#dayroom .dr-hosting-overview p{font-size:13px;line-height:1.65;margin:0;color:var(--dr-muted)}
#dayroom .dr-hosting-status{display:inline-block;font-size:12px;margin-top:20px;border-left:3px solid var(--dr-accent);padding:6px 12px;color:var(--dr-ink)}
#dayroom .dr-hosting-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;padding:8px 0}
#dayroom .dr-hosting-facts>section{border-left:1px solid var(--dr-line);padding:0 20px}
#dayroom .dr-hosting-facts h3{font-size:15px;letter-spacing:0}
#dayroom .dr-hosting-details{border-block:1px solid var(--dr-line);padding:18px 4px;font-size:13px}
#dayroom .dr-hosting-details summary{cursor:pointer;font-weight:700}
#dayroom .dr-hosting-details dl{display:grid;grid-template-columns:130px 1fr;gap:14px;margin:24px 0}
#dayroom .dr-hosting-details dd{margin:0}
#dayroom .dr-hosting-details dt{color:var(--dr-muted)}
#dayroom .dr-hosting-options{display:grid;gap:0}
#dayroom .dr-company-setup .dr-hosting-options>section{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:20px 0;gap:20px}
#dayroom .dr-hosting-options h3{font-size:16px;margin-bottom:6px}
#dayroom .dr-setting-status{font-size:11px;border:1px solid var(--dr-line);padding:7px 10px;border-radius:6px;color:var(--dr-muted);white-space:nowrap}
#dayroom #dr-overlay.dr-settings-screen :is(#dr-account-office,#dr-account-security){background:transparent;border:0;border-radius:0}
#dayroom .dr-office-preference{display:grid;grid-template-columns:220px 1fr;gap:40px;align-items:center;padding:36px;background:var(--dr-sunken);border:1px solid var(--dr-line);border-radius:14px}
#dayroom .dr-office-preference p,#dayroom .dr-security-intro p,#dayroom .dr-ai-intro p,#dayroom .dr-connections-welcome p{font-size:14px;line-height:1.7;color:var(--dr-muted);margin:0 0 24px;max-width:48ch}
#dayroom .dr-office-key-art{text-align:center;padding:20px 0}
#dayroom .dr-office-key-art kbd{display:inline-flex;width:48px;height:48px;align-items:center;justify-content:center;margin:4px;font:22px inherit;border:1px solid var(--dr-line-2);border-bottom-width:4px;border-radius:8px;background:var(--dr-panel);color:var(--dr-ink)}
#dayroom .dr-security-intro{display:flex;align-items:center;gap:24px;padding:28px 0 32px}
#dayroom .dr-security-intro p{margin:0}
#dayroom .dr-security-controls{border-top:1px solid var(--dr-line)}
#dayroom .dr-security-controls section{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px 0;border-bottom:1px solid var(--dr-line)}
#dayroom .dr-security-controls h3{font-size:16px;margin:0 0 10px}
#dayroom .dr-security-controls p{font-size:13px;color:var(--dr-muted);margin:0;line-height:1.6}
#dayroom .dr-connections-welcome{padding:36px 28px}
#dayroom .dr-connections-welcome[hidden]{display:none}
#dayroom .dr-connection-marks{display:flex;align-items:center;gap:20px;margin-bottom:28px}
#dayroom .dr-connection-marks img{width:36px;height:36px;object-fit:contain}
#dayroom .dr-ai-intro{display:flex;align-items:center;gap:32px;padding:28px}
#dayroom .dr-ai-intro .dr-connection-marks{margin:0;flex:none}
#dayroom .dr-ai-intro h3{font-size:20px}
#dayroom .dr-ai-intro p{margin:0;font-size:13px}
#dayroom #dr-overlay.dr-settings-screen .dr-account-ai-setup{background:var(--dr-sunken);border-top:1px solid var(--dr-line)}
#dayroom #dr-overlay.dr-settings-screen .dr-account-ai-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:12px 0}
#dayroom #dr-overlay.dr-settings-screen .dr-account-listening .dr-account-player{padding:28px;background:var(--dr-sunken);border-radius:14px;gap:24px}
#dayroom #dr-overlay.dr-settings-screen .dr-account-player-logo{width:64px;height:64px}
#dayroom #dr-overlay.dr-settings-screen .dr-account-player-logo img{width:64px;height:64px}
@media(max-width:760px){#dayroom .dr-hosting-facts{grid-template-columns:1fr;gap:24px}#dayroom .dr-office-preference{grid-template-columns:1fr;gap:20px;padding:24px}#dayroom .dr-office-key-art{text-align:left}#dayroom .dr-ai-intro{align-items:flex-start;flex-direction:column;gap:20px}#dayroom #dr-overlay.dr-settings-screen .dr-account-ai-steps{grid-template-columns:1fr}#dayroom .dr-security-controls section{align-items:flex-start;flex-direction:column}#dayroom .dr-company-setup .dr-hosting-options>section{align-items:flex-start;flex-direction:column}#dayroom .dr-company-setup .dr-hosting-overview .dr-hosting-summary{flex-direction:column;padding:24px}}
#dayroom .dr-connection-marks img{box-sizing:content-box;padding:10px;background:#f4f4f3;border-radius:12px}
#dayroom #dr-overlay.dr-settings-screen :is(#dr-account-office,#dr-account-security){box-shadow:none}
#dayroom #dr-overlay .dr-security-controls h3{margin:0 0 10px;font-weight:700}
#dayroom #dr-overlay .dr-security-controls p{margin:0;line-height:1.6}
#dayroom #dr-overlay .dr-hosting-overview h3{margin:0 0 12px}
#dayroom #dr-overlay .dr-office-preference h3{margin:0 0 16px}
#dayroom #dr-overlay .dr-office-preference p{margin:0 0 24px}
#dayroom .dr-office-key-art kbd{font-family:inherit;font-size:22px}

/* Invitations and music have a single clear primary action. */
#dayroom #dr-overlay.dr-settings-screen .dr-invite-settings{display:grid;grid-template-columns:minmax(0,1fr);gap:28px;padding:28px}
#dayroom #dr-overlay.dr-settings-screen .dr-invite-settings h3{margin:0 0 10px;font-size:22px}
#dayroom #dr-overlay.dr-settings-screen .dr-invite-settings p{margin:10px 0 20px;line-height:1.6}
#dayroom #dr-overlay.dr-settings-screen .dr-invite-settings details{border-top:1px solid var(--dr-line);padding-top:20px}
#dayroom #dr-overlay.dr-settings-screen .dr-invite-settings summary{cursor:pointer}
#dayroom #dr-overlay .dr-account-listening.is-unavailable{max-width:760px}
#dayroom #dr-overlay .dr-account-listening.is-unavailable .dr-card-head{background:transparent;border:0;padding-bottom:0}
#dayroom #dr-overlay .dr-account-listening.is-unavailable .dr-account-player{background:transparent;padding:16px 0;gap:24px}
#dayroom #dr-overlay .dr-account-listening.is-unavailable .dr-form-actions{display:none}
#dayroom #dr-overlay .dr-account-player-logo{border:0;background:transparent;flex-shrink:0}

#dayroom #dr-overlay .dr-invite-settings details:not([open])>:not(summary){display:none}

/* Shared settings system: calm surfaces, clear hierarchy, and purpose-built pages. */
#dayroom #dr-overlay.dr-settings-screen{--settings-space:clamp(24px,3vw,48px)}
#dayroom #dr-overlay.dr-settings-screen #dr-modal-body>.dr-page>.dr-page-head{position:relative;flex-wrap:wrap;padding:28px 64px 26px var(--settings-space);gap:12px 24px}
#dayroom #dr-overlay.dr-settings-screen .dr-settings-context{flex-basis:100%;width:100%;font-size:11px;line-height:1.5;color:var(--dr-muted);letter-spacing:.035em;margin:0 0 4px;overflow-wrap:anywhere}
#dayroom #dr-overlay.dr-settings-screen .dr-page-title{font-size:28px;line-height:1.25;letter-spacing:-.025em}
#dayroom #dr-overlay.dr-settings-screen .dr-page-sub{max-width:65ch;line-height:1.6;margin-top:8px}
#dayroom #dr-overlay.dr-settings-screen #dr-modal-body>.dr-page>.dr-page-body{padding:32px var(--settings-space) 48px;gap:28px}
#dayroom #dr-overlay.dr-settings-screen .dr-page-body>.dr-card{background:var(--dr-panel);border:1px solid var(--dr-line);border-radius:12px;box-shadow:none}
#dayroom #dr-overlay.dr-settings-screen .dr-card-head{background:transparent;padding:24px 28px;border-bottom:1px solid var(--dr-line);gap:16px;align-items:center}
#dayroom #dr-overlay.dr-settings-screen .dr-card-title{font-size:16px;line-height:1.4;letter-spacing:-.01em}
#dayroom #dr-overlay.dr-settings-screen .dr-card-sub{font-size:13px;line-height:1.65;margin-top:6px;max-width:65ch}
#dayroom #dr-overlay.dr-settings-screen .dr-card-body{padding:28px}
#dayroom #dr-overlay.dr-settings-screen .dr-button{min-height:38px;border-radius:8px;line-height:1.35;padding:9px 15px;white-space:normal}
#dayroom #dr-overlay.dr-settings-screen .dr-field{font-size:13px;line-height:1.5;gap:9px}
#dayroom #dr-overlay.dr-settings-screen .dr-form{gap:18px}
#dayroom #dr-overlay.dr-settings-screen input:not([type=checkbox]):not([type=radio]):not([type=file]),#dayroom #dr-overlay.dr-settings-screen select{min-height:44px;border-radius:8px}
#dayroom #dr-overlay.dr-settings-screen :is(.dr-card-body,.dr-li-body) p{line-height:1.65}
#dayroom #dr-overlay.dr-settings-screen .dr-hint{font-size:12px;line-height:1.65}
#dayroom #dr-overlay.dr-settings-screen .dr-settings-footer{padding-top:40px;margin-top:20px;max-width:1000px}
#dayroom .dr-settings-nav nav button{padding:10px 12px;margin:2px 0;font-size:13px;border:1px solid transparent}
#dayroom .dr-settings-nav nav button[aria-current]{border-color:var(--dr-line-2);box-shadow:inset 3px 0 var(--dr-accent)}
#dayroom .dr-settings-nav h2{font-size:10px;letter-spacing:.1em;margin-top:28px}
/* Organization overview: the directory is a gallery, not a long settings form. */
#dayroom #dr-overlay .dr-directory-overview{display:flex;justify-content:space-between;align-items:center;gap:28px;padding:4px 0 28px;border-bottom:1px solid var(--dr-line)}
#dayroom #dr-overlay .dr-directory-overview h3,#dayroom #dr-overlay .dr-role-intro h3{font-size:25px;line-height:1.3;margin:12px 0;letter-spacing:-.025em}
#dayroom #dr-overlay .dr-directory-overview p,#dayroom #dr-overlay .dr-role-intro p{color:var(--dr-muted);font-size:14px;line-height:1.7;margin:0;max-width:52ch}
#dayroom #dr-overlay .dr-directory-overview dl{display:flex;gap:36px;margin:0;flex-shrink:0}
#dayroom #dr-overlay .dr-directory-overview dl>div{display:flex;flex-direction:column-reverse;gap:8px}
#dayroom #dr-overlay .dr-directory-overview dd{font-size:36px;font-weight:600;line-height:1;margin:0}
#dayroom #dr-overlay .dr-directory-overview dt{font-size:12px;color:var(--dr-muted)}
#dayroom #dr-overlay .dr-company-filters{padding:0;gap:20px}
#dayroom #dr-overlay .dr-company-people{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px}
#dayroom #dr-overlay .dr-company-person{padding:22px;border:1px solid var(--dr-line);border-radius:12px;background:var(--dr-panel);height:100%;gap:16px}
#dayroom #dr-overlay .dr-company-person:hover{border-color:var(--dr-line-2);background:var(--dr-hover)}
#dayroom #dr-overlay .dr-company-person-copy{gap:8px}
#dayroom #dr-overlay .dr-company-manager{padding-top:12px;margin-top:4px;border-top:1px solid var(--dr-line);line-height:1.5}
#dayroom #dr-overlay .dr-company-profile,#dayroom #dr-overlay .dr-company-editor{max-width:720px;margin-left:0;margin-right:0}
#dayroom #dr-overlay .dr-company-profile{padding:24px;border-radius:12px;background:var(--dr-sunken)}
/* Role guides read as ordered instructions, including when only one role exists. */
#dayroom #dr-overlay .dr-role-intro{padding:0 0 30px}
#dayroom #dr-overlay.dr-settings-screen .dr-role-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:20px}
#dayroom #dr-overlay.dr-settings-screen .dr-role-choice{padding:26px;gap:22px;background:var(--dr-panel);max-width:760px;border-radius:12px}
#dayroom #dr-overlay.dr-settings-screen .dr-role-choice>.dr-role-steps{display:grid;gap:18px;white-space:normal;width:100%}
#dayroom #dr-overlay.dr-settings-screen .dr-role-steps>span{display:flex;gap:14px;align-items:flex-start;font-size:13px;line-height:1.7}
#dayroom #dr-overlay.dr-settings-screen .dr-role-steps i{font-style:normal;display:grid;place-items:center;flex:0 0 26px;height:26px;border:1px solid var(--dr-line-2);border-radius:50%;font-size:11px;color:var(--dr-ink)}
#dayroom #dr-overlay.dr-settings-screen .dr-role-editor{max-width:720px;padding:28px;border:1px solid var(--dr-line);border-radius:12px;background:var(--dr-panel)}
/* General settings has a compact contents bar and real storage feedback. */
#dayroom #dr-overlay .dr-settings-outline{display:flex;flex-wrap:wrap;gap:8px;padding:0 0 6px}
#dayroom #dr-overlay .dr-settings-outline button{display:flex;align-items:center;gap:16px;background:var(--dr-sunken);border:1px solid var(--dr-line);border-radius:7px;color:var(--dr-ink-2);padding:10px 13px;font:inherit;font-size:12px;cursor:pointer}
#dayroom #dr-overlay .dr-settings-outline button:hover{border-color:var(--dr-line-2);color:var(--dr-ink)}
#dayroom #dr-overlay .dr-settings-outline span{color:var(--dr-muted)}
#dayroom #dr-overlay #dr-workspace-basics .dr-form{max-width:720px}
#dayroom #dr-overlay .dr-settings-workspace .dr-card{scroll-margin-top:20px}
#dayroom #dr-overlay .dr-storage-overview>p:first-child{font-size:26px;font-weight:650;letter-spacing:-.02em;margin:0 0 20px;color:var(--dr-ink)}
#dayroom #dr-overlay .dr-storage-overview meter{width:100%;height:12px;accent-color:var(--dr-accent)}
#dayroom #dr-overlay .dr-storage-overview meter::-webkit-meter-bar{background:var(--dr-sunken);border:0}
#dayroom #dr-overlay .dr-storage-overview meter::-webkit-meter-optimum-value{background:var(--dr-accent)}
#dayroom #dr-overlay #dr-workspace-deleted{border-style:dashed}
/* Appearance: large visual previews, with mode controls that are easy to hit. */
#dayroom #dr-overlay.dr-settings-screen .dr-appearance-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;background:transparent;padding:0;max-width:680px}
#dayroom #dr-overlay.dr-settings-screen .dr-appearance-modes>button{height:auto;min-height:76px;padding:18px;display:flex;align-items:center;justify-content:center;gap:10px;border:1px solid var(--dr-line-2);border-radius:10px;background:var(--dr-sunken);color:var(--dr-ink)}
#dayroom #dr-overlay.dr-settings-screen .dr-appearance-modes>button[aria-checked=true]{border-color:var(--dr-accent);box-shadow:inset 0 -3px var(--dr-accent)}
#dayroom #dr-overlay.dr-settings-screen .dr-appearance-hint{margin:18px 0 0}
#dayroom #dr-overlay.dr-settings-screen .dr-theme-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:20px}
#dayroom #dr-overlay.dr-settings-screen .dr-theme-choice{padding:12px;gap:12px;border-radius:10px;background:var(--dr-bg)}
#dayroom #dr-overlay.dr-settings-screen .dr-theme-preview{height:112px;padding:8px;gap:6px}
#dayroom #dr-overlay.dr-settings-screen .dr-theme-name{padding:0 4px}
#dayroom #dr-overlay.dr-settings-screen .dr-theme-caption{padding:0 4px 6px;line-height:1.5}
/* App directory and account connections share readable, properly spaced tiles. */
#dayroom #dr-overlay.dr-settings-screen .dr-settings-apps .dr-tiles{grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:18px}
#dayroom #dr-overlay.dr-settings-screen .dr-settings-apps .dr-tile{padding:22px;border:1px solid var(--dr-line);border-radius:10px;background:var(--dr-bg);box-shadow:none;gap:14px}
#dayroom #dr-overlay.dr-settings-screen .dr-settings-apps .dr-tile .dr-logo-brand{width:36px;height:36px}
#dayroom #dr-overlay.dr-settings-screen .dr-settings-apps .dr-tile p{line-height:1.65}
#dayroom #dr-overlay.dr-settings-screen .dr-account-profile{gap:40px;padding:32px}
#dayroom #dr-overlay.dr-settings-screen .dr-profile-editor{max-width:580px}
#dayroom #dr-overlay.dr-settings-screen .dr-account-profile .dr-account-figure{padding:20px;background:var(--dr-sunken);border-radius:12px}
#dayroom #dr-overlay.dr-settings-screen .dr-account-figure figcaption{gap:12px}
#dayroom #dr-overlay.dr-settings-screen .dr-ai-intro,#dayroom #dr-overlay.dr-settings-screen .dr-connections-welcome{padding:32px}
#dayroom #dr-overlay.dr-settings-screen .dr-security-controls>section{padding:26px 28px}
#dayroom #dr-overlay.dr-settings-screen .dr-hosting-overview{border-radius:12px}
#dayroom #dr-overlay.dr-settings-screen .dr-plan-grid{gap:20px}
#dayroom #dr-overlay.dr-settings-screen .dr-start-guide{background:var(--dr-panel);border-radius:12px}
/* Archive has a useful empty state rather than an isolated sentence. */
#dayroom #dr-overlay .dr-archive-intro{display:flex;gap:32px;align-items:center;padding:28px 0}
#dayroom #dr-overlay .dr-archive-intro h3{font-size:26px;letter-spacing:-.025em;line-height:1.3;margin:12px 0}
#dayroom #dr-overlay .dr-archive-intro p{font-size:14px;line-height:1.7;color:var(--dr-muted);max-width:48ch;margin:0}
#dayroom #dr-overlay .dr-archive-illustration{width:120px;height:120px;display:grid;place-items:center;position:relative;flex-shrink:0;border:1px solid var(--dr-line-2);border-radius:20px;background:var(--dr-sunken)}
#dayroom #dr-overlay .dr-archive-illustration svg{width:48px;height:48px;color:var(--dr-accent)}
#dayroom #dr-overlay .dr-archive-facts{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
#dayroom #dr-overlay .dr-archive-facts span{font-size:11px;border:1px solid var(--dr-line);border-radius:6px;padding:7px 10px;color:var(--dr-muted)}
@media(max-width:760px){
 #dayroom #dr-overlay.dr-settings-screen{--settings-space:20px}
 #dayroom #dr-overlay.dr-settings-screen #dr-modal-body>.dr-page>.dr-page-head{padding:20px;gap:10px}
 #dayroom #dr-overlay.dr-settings-screen .dr-page-title{font-size:24px}
 #dayroom #dr-overlay.dr-settings-screen .dr-card-head,#dayroom #dr-overlay.dr-settings-screen .dr-card-body{padding:20px}
 #dayroom #dr-overlay .dr-directory-overview{align-items:flex-start;flex-direction:column}
 #dayroom #dr-overlay .dr-directory-overview dl{gap:40px}
 #dayroom #dr-overlay .dr-archive-intro{align-items:flex-start;gap:20px;flex-direction:column;padding-top:0}
 #dayroom #dr-overlay .dr-archive-illustration{width:80px;height:80px;border-radius:14px}
 #dayroom #dr-overlay.dr-settings-screen .dr-appearance-modes{gap:8px}
 #dayroom #dr-overlay.dr-settings-screen .dr-appearance-modes>button{padding:12px 6px;flex-direction:column;font-size:12px}
 #dayroom #dr-overlay.dr-settings-screen .dr-account-profile{padding:20px;gap:24px}
 #dayroom #dr-overlay.dr-settings-screen .dr-settings-context{font-size:10px}
}

/* Personal onboarding progress stays with the instructions it confirms. */
#dayroom .dr-start-progress{display:flex;align-items:center;gap:20px;margin:4px 0 22px;font-size:12px;color:var(--dr-muted)}
#dayroom .dr-start-progress progress{flex:1;max-width:240px;height:6px;accent-color:var(--dr-accent)}
#dayroom .dr-start-check{display:flex;gap:14px;align-items:flex-start;cursor:pointer;font-size:14px;line-height:1.7;width:100%}
#dayroom .dr-start-check input{width:20px;height:20px;min-width:20px;margin:2px 0 0;accent-color:var(--dr-accent);cursor:pointer}
#dayroom .dr-start-check input:checked+span{color:var(--dr-muted);text-decoration:line-through}
#dayroom .dr-start-check input:disabled{cursor:wait}
#dayroom .dr-start-guide>.dr-hint:last-child{margin:20px 0 0;max-width:55ch}

/* Plan cards keep a readable width instead of squeezing three columns. */
#dayroom #dr-overlay.dr-settings-screen .dr-billing-page .dr-page-body>*{max-width:1200px}
#dayroom .dr-plan-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))}
#dayroom .dr-plan-card{min-width:0}
#dayroom .dr-plan-card .dr-plan-action{box-sizing:border-box;padding:12px 16px;white-space:normal;text-align:center}

/* Search stays available on both the full sidebar and compact phone navigation. */
#dayroom .dr-settings-search{margin:0 0 16px;min-width:0}
#dayroom .dr-settings-search label{display:block;font-size:12px;font-weight:700;margin-bottom:8px}
#dayroom .dr-settings-search-field{display:flex;align-items:center;gap:8px;border:1px solid var(--dr-line-2);border-radius:6px;background:var(--dr-panel);padding:0 10px}
#dayroom .dr-settings-search-field>span{display:flex;flex:none}
#dayroom .dr-settings-search-field input{width:100%;min-width:0;min-height:44px;padding:8px 0;border:0;background:transparent;color:var(--dr-ink);font:inherit;font-size:13px;box-shadow:none}
#dayroom .dr-settings-search-status{font-size:12px;color:var(--dr-muted);margin:10px 0}
#dayroom .dr-settings-search-status:empty{display:none}
#dayroom #dr-settings-search-results{display:grid;gap:8px;max-height:55dvh;overflow:auto}
#dayroom #dr-settings-search-results[hidden],#dayroom .dr-settings-nav nav[hidden]{display:none}
#dayroom #dr-settings-search-results button{display:grid;gap:5px;text-align:left;white-space:normal;width:100%;padding:12px;border:1px solid var(--dr-line-2);border-radius:6px;background:var(--dr-panel);color:var(--dr-ink);font:inherit;cursor:pointer}
#dayroom #dr-settings-search-results button:hover{background:var(--dr-hover)}
#dayroom #dr-settings-search-results span,#dayroom #dr-settings-search-results small{font-size:12px;line-height:1.5;color:var(--dr-muted)}
#dayroom .dr-settings-nav.is-searching .dr-settings-mobile-nav{display:none}
@media(max-width:760px){#dayroom .dr-settings-search{margin:0}#dayroom #dr-settings-search-results{max-height:30dvh}}

/* Agent pages use the roomy light developer-site treatment inside settings. */
#dayroom #dr-overlay.dr-settings-screen:has(.dr-agent-settings){color-scheme:light;--dr-bg:#f6f5ef;--dr-panel:#fff;--dr-ink:#343c36;--dr-ink-2:#465047;--dr-muted:#687067;--dr-line:#dce0d8;--dr-line-2:#dce0d8;--dr-soft:#edf0e8;--dr-sunken:#f0f1ec;--dr-hover:#e9ede4;--dr-sel:#e3eade;--dr-accent:#234332;--dr-field:#fff;--dr-field-line:#aeb9aa;background:#f6f5ef}
#dayroom #dr-overlay.dr-settings-screen:has(.dr-agent-settings) .dr-modal{background:#f6f5ef}
#dayroom #dr-overlay.dr-settings-screen .dr-agent-settings{background:#f6f5ef}
#dayroom #dr-overlay.dr-settings-screen #dr-modal-body>.dr-agent-settings>.dr-page-head{padding:56px 64px 32px;min-height:180px;border-bottom:0;align-items:center;background:#f6f5ef}
#dayroom #dr-overlay.dr-settings-screen .dr-agent-settings .dr-page-title{font-size:clamp(28px,3.4vw,46px);letter-spacing:-.035em;line-height:1.16}
#dayroom #dr-overlay.dr-settings-screen .dr-agent-settings .dr-page-sub{font-size:17px;line-height:1.5;margin-top:16px}
#dayroom #dr-overlay.dr-settings-screen #dr-modal-body>.dr-agent-settings>.dr-page-body{padding:16px 64px 64px;background:#f6f5ef;gap:28px}
#dayroom #dr-overlay.dr-settings-screen .dr-agent-settings .dr-page-body>*{max-width:1280px}
#dayroom #dr-overlay.dr-settings-screen .dr-agent-settings .dr-button{min-height:44px}
#dayroom #dr-overlay.dr-settings-screen .dr-agent-settings .dr-primary{background:#234332;color:#fff;border-color:#234332;box-shadow:none}
#dayroom #dr-overlay.dr-settings-screen .dr-agent-settings .dr-primary:hover{background:#31553e}
#dayroom #dr-overlay.dr-settings-screen .dr-agent-settings h3{font-size:22px;letter-spacing:-.02em}
#dayroom #dr-overlay.dr-settings-screen .dr-agent-settings .dr-agent-choice{min-height:240px;padding:32px;background:#fff;box-shadow:0 2px 2px #243c3405}
#dayroom #dr-overlay.dr-settings-screen .dr-agent-settings .dr-agent-choice-title{font-size:22px}
#dayroom #dr-overlay.dr-settings-screen .dr-agent-settings .dr-agent-choice>span:not(.dr-agent-choice-title){font-size:15px}
#dayroom #dr-overlay.dr-settings-screen .dr-agent-settings #agents-connect,#dayroom #dr-overlay.dr-settings-screen .dr-agent-settings #agent-approve{background:#fff;border:1px solid #dce0d8;border-radius:14px;padding:32px;box-shadow:0 2px 2px #243c3405}
#dayroom #dr-overlay.dr-settings-screen .dr-agent-settings .dr-agent-summary{padding:24px 28px;border:1px solid #dce0d8;border-radius:14px;background:#fff}
#dayroom #dr-overlay.dr-settings-screen .dr-agent-settings .dr-agent-dashboard{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:28px;align-items:start}
#dayroom #dr-overlay.dr-settings-screen .dr-agent-settings :is(.dr-agent-intro,.dr-agent-installed){display:flex;flex-direction:column;align-items:flex-start;gap:20px;border:1px solid #dce0d8;border-radius:14px;background:#fff;padding:32px;box-shadow:0 2px 2px #243c3405}
#dayroom #dr-overlay.dr-settings-screen .dr-agent-settings .dr-agent-installed .dr-agent-list{width:100%}
#dayroom #dr-overlay.dr-settings-screen .dr-agent-settings .dr-agent-row{flex-wrap:wrap;padding:16px;background:#fafbf8}
#dayroom #dr-overlay.dr-settings-screen .dr-agent-settings .dr-agent-row h3{font-size:16px}
#dayroom #dr-overlay.dr-settings-screen .dr-agent-settings .dr-agent-empty{background:#fff;border:1px solid #dce0d8;border-radius:14px;align-items:flex-start;text-align:left;padding:40px}
#dayroom #dr-overlay.dr-settings-screen:has(.dr-agent-settings) .dr-settings-footer{display:none}
@media(max-width:1050px){
 #dayroom #dr-overlay.dr-settings-screen #dr-modal-body>.dr-agent-settings>.dr-page-head{padding:32px 48px 24px 28px}
 #dayroom #dr-overlay.dr-settings-screen #dr-modal-body>.dr-agent-settings>.dr-page-body{padding:12px 28px 40px}
 #dayroom #dr-overlay.dr-settings-screen .dr-agent-settings .dr-agent-dashboard{grid-template-columns:1fr}
}
@media(max-width:760px){
 #dayroom #dr-overlay.dr-settings-screen #dr-modal-body>.dr-agent-settings>.dr-page-head{padding:24px 20px;min-height:0}
 #dayroom #dr-overlay.dr-settings-screen #dr-modal-body>.dr-agent-settings>.dr-page-body{padding:0 16px 32px}
 #dayroom #dr-overlay.dr-settings-screen .dr-agent-settings :is(#agents-connect,#agent-approve,.dr-agent-intro,.dr-agent-installed,.dr-agent-empty,.dr-agent-choice){padding:22px}
 #dayroom #dr-overlay.dr-settings-screen .dr-agent-settings .dr-agent-choice{min-height:0}
}

/* Person-to-person DMs: a generous conversation canvas, with the office still available from Home. */
#dayroom[data-person-dm]:not([data-office-expanded]) .dr-window{display:none}
#dayroom[data-person-dm] .dr-chatcol{max-width:none;margin:0}
#dayroom[data-person-dm] .dr-chathead{min-height:76px;padding:12px 24px;gap:12px}
#dayroom[data-person-dm] #dr-member-pile{display:none}
#dayroom .dr-dm-person{display:flex;align-items:center;gap:12px;border:0;padding:0;background:none;color:var(--dr-ink);font:inherit;font-size:20px;font-weight:800;text-align:left;cursor:pointer}
#dayroom .dr-dm-person canvas{width:40px;height:40px;border-radius:10px;flex:none}
#dayroom[data-person-dm] #dr-chat-subtitle{margin:3px 0 0 52px;font-size:12px}
#dayroom[data-person-dm] #dr-messages{padding:16px 24px 24px}
#dayroom[data-person-dm] .dr-convo-start.is-dm{display:grid;grid-template-columns:104px minmax(0,1fr);align-items:center;column-gap:20px;row-gap:24px;margin:48px 0 32px}
#dayroom[data-person-dm] .dr-convo-start-dp canvas{width:104px;height:104px;border-radius:20px}
#dayroom[data-person-dm] .dr-convo-start-title{margin:0;font-size:25px}
#dayroom[data-person-dm] .dr-convo-start-text{grid-column:1/-1;max-width:80ch;font-size:16px;line-height:1.7}
#dayroom[data-person-dm] .dr-dm-view-profile{grid-column:1/-1;justify-self:start;min-height:40px;padding:8px 16px}
#dayroom[data-person-dm] article.dr-message-row:not([data-imported]){padding:12px 0;margin-top:8px;border-radius:0}
#dayroom[data-person-dm] article.dr-message-row.is-grouped:not([data-imported]){padding-top:2px;padding-bottom:2px;margin-top:0}
#dayroom[data-person-dm] .dr-message-body{font-size:15px;line-height:1.65}
#dayroom[data-person-dm] #dr-compose{margin:0 24px 20px}
@media(max-width:700px){
 #dayroom[data-person-dm] .dr-chathead{padding:10px 12px;gap:6px}
 #dayroom .dr-dm-person{font-size:17px;gap:8px}
 #dayroom .dr-dm-person canvas{width:32px;height:32px}
 #dayroom[data-person-dm] #dr-chat-subtitle{margin-left:40px}
 #dayroom[data-person-dm] #dr-messages{padding:12px 16px 16px}
 #dayroom[data-person-dm] .dr-convo-start.is-dm{grid-template-columns:72px minmax(0,1fr);gap:18px;margin:28px 0}
 #dayroom[data-person-dm] .dr-convo-start-dp canvas{width:72px;height:72px;border-radius:16px}
 #dayroom[data-person-dm] .dr-convo-start-title{font-size:22px}
 #dayroom[data-person-dm] #dr-compose{margin:0 12px 12px}
}

/* On a narrow phone the title block is only ~100px wide beside the call buttons: the last-active line wraps instead of being cut. */
@media(max-width:360px){
 #dayroom[data-person-dm] #dr-chat-subtitle{margin-left:0;overflow:visible;white-space:normal;text-overflow:clip;line-height:1.3;overflow-wrap:anywhere}
}

/* A teammate profile stays alongside the conversation, with its own scroll area. */
#dayroom #dr-catchup{display:none}
#dayroom #dr-person-panel{flex:0 0 380px;min-width:0;display:flex;flex-direction:column;margin:8px 8px 8px 0;background:var(--dr-panel);border-left:1px solid var(--dr-line);border-radius:12px;overflow:hidden;color:var(--dr-ink)}
#dayroom .dr-person-panel-head{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid var(--dr-line);flex:none}
#dayroom .dr-person-panel-head h2{margin:0;font-size:20px}
#dayroom .dr-person-panel-content{overflow:auto;min-height:0;padding:24px}
#dayroom #dr-person-panel .dr-page-head{display:none}
#dayroom #dr-person-panel .dr-page,#dayroom #dr-person-panel .dr-page-body{display:block;padding:0;overflow:visible}
#dayroom #dr-person-panel .dr-profile-hero{display:flex;flex-direction:column;align-items:stretch;gap:24px;padding:0;border:0;background:none}
#dayroom #dr-person-panel #dr-profile-picture{width:100%;height:auto;max-width:280px;aspect-ratio:1;align-self:center;border-radius:18px}
#dayroom #dr-person-panel .dr-profile-main{width:100%;min-width:0}
#dayroom #dr-person-panel .dr-person-name{font-size:25px;margin:0 0 8px;overflow-wrap:anywhere}
#dayroom #dr-person-panel .dr-person-role{font-size:16px;margin:0 0 16px;color:var(--dr-muted)}
#dayroom #dr-person-panel .dr-profile-facts{display:grid;gap:20px;margin:24px 0}
#dayroom #dr-person-panel .dr-profile-fact{display:block}
#dayroom #dr-person-panel .dr-profile-fact dt{margin-bottom:6px;color:var(--dr-muted);font-size:12px}
#dayroom #dr-person-panel .dr-profile-fact dd{margin:0;line-height:1.6}
#dayroom #dr-person-panel .dr-profile-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
#dayroom #dr-person-panel .dr-profile-actions .dr-button{flex:1;min-height:40px}
@media(max-width:1100px){#dayroom #dr-person-panel{flex-basis:320px}}
@media(max-width:800px){#dayroom #dr-person-panel{position:fixed;z-index:80;inset:0;margin:0;border-radius:0;width:100%;border:0}}

/* The other person left or deleted their account: no portrait, so nothing is indented around one. */
#dayroom[data-former-dm] #dr-chat-subtitle{margin-left:0}
#dayroom[data-person-dm] .dr-convo-start.is-dm.is-former{display:block}
#dayroom[data-person-dm] .dr-convo-start.is-former .dr-convo-start-text{margin-top:12px}
/* A name longer than the header's room ends in an ellipsis instead of being cut mid-letter. */
#dayroom .dr-dm-person{max-width:100%;min-width:0}
#dayroom .dr-dm-person span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

#dayroom [data-wp="mail"]{padding:0;overflow:hidden}
#dayroom .dm-mail{height:100%;min-height:0;display:flex;flex-direction:column;position:relative;background:var(--dr-bg);color:var(--dr-ink)}
#dayroom .dm-header{display:flex;align-items:center;gap:24px;padding:18px 24px;flex-shrink:0}
#dayroom .dm-header h1{font-size:23px;margin:0;min-width:160px}
#dayroom #dm-search{flex:1;max-width:720px}
#dayroom .dm-search-field{display:flex;align-items:center;background:var(--dr-panel);border:1px solid var(--dr-line);border-radius:14px;overflow:hidden}
#dayroom .dm-search-field input{width:100%;min-width:0;background:transparent;border:0;color:inherit;padding:14px 18px;font:inherit;outline-offset:-3px}
#dayroom .dm-search-field button{border:0;background:transparent;color:inherit;font-size:24px;padding:8px 18px;cursor:pointer}
#dayroom .dm-layout{display:grid;grid-template-columns:200px minmax(0,1fr);flex:1;min-height:0;gap:12px;padding:0 16px 16px 0}
#dayroom .dm-sidebar{padding:8px 12px;overflow:auto}
#dayroom .dm-button{font:inherit;color:var(--dr-ink);background:transparent;border:1px solid var(--dr-line);border-radius:8px;padding:9px 14px;cursor:pointer;white-space:nowrap;font-size:13px}
#dayroom .dm-button:disabled{opacity:.5;cursor:default}
#dayroom .dm-button:hover:not(:disabled),#dayroom .dm-folder:hover{background:var(--dr-panel)}
#dayroom .dm-button:focus-visible,#dayroom .dm-folder:focus-visible,#dayroom .dm-message-row:focus-visible{outline:2px solid var(--dr-accent);outline-offset:-2px}
#dayroom .dm-compose-button{background:var(--dr-accent);color:var(--dr-bg);border-color:var(--dr-accent);font-weight:700}
#dayroom #dm-compose{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:18px 22px;border-radius:16px;margin-bottom:22px;font-size:15px}
#dayroom .dm-folder{border:0;border-radius:0 24px 24px 0;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:11px 16px;color:var(--dr-ink);background:transparent;text-align:left;font:inherit;cursor:pointer;font-size:14px}
#dayroom .dm-folder[aria-current]{background:var(--dr-panel);font-weight:700;border-left:3px solid var(--dr-accent)}
#dayroom .dm-pane{min-width:0;background:var(--dr-surface,var(--dr-bg));border:1px solid var(--dr-line);border-radius:18px;overflow:auto}
#dayroom #dm-error:empty{display:none}
#dayroom #dm-error{padding:16px;color:var(--dr-danger,var(--dr-ink));border-bottom:1px solid var(--dr-line)}
#dayroom .dm-toolbar{display:flex;align-items:center;gap:12px;min-height:64px;padding:12px 20px;border-bottom:1px solid var(--dr-line);flex-wrap:wrap}
#dayroom .dm-toolbar h2{font-size:15px;margin:0}
#dayroom .dm-page-count{margin-left:auto;font-size:12px;color:var(--dr-muted)}
#dayroom .dm-message-row{width:100%;min-height:48px;display:flex;align-items:center;gap:20px;padding:12px 22px;background:var(--dr-panel);border:0;border-bottom:1px solid var(--dr-line);color:var(--dr-ink);font:inherit;font-size:13px;text-align:left;cursor:pointer}
#dayroom .dm-message-row.dm-unread{background:var(--dr-bg)}
#dayroom .dm-message-row:hover{box-shadow:inset 0 0 0 1px var(--dr-muted)}
#dayroom .dm-sender{width:170px;flex-shrink:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#dayroom .dm-subject-preview{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#dayroom .dm-subject-preview strong{font-weight:400}
#dayroom .dm-subject-preview>span{color:var(--dr-muted)}
#dayroom .dm-unread .dm-sender,#dayroom .dm-unread strong,#dayroom .dm-unread time{font-weight:700}
#dayroom .dm-message-row time{font-size:12px;white-space:nowrap;margin-left:auto}
#dayroom .dm-reader{padding:28px 32px;overflow-wrap:anywhere}
#dayroom .dm-reader h2{font-size:24px;line-height:1.4;margin:0 0 28px}
#dayroom .dm-sender-detail{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
#dayroom .dm-sender-detail time,#dayroom .dm-recipients{font-size:12px;color:var(--dr-muted)}
#dayroom .dm-body{white-space:pre-wrap;line-height:1.7;margin:32px 0}
#dayroom .dm-attachments>div{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:12px 0;padding:16px;border:1px solid var(--dr-line);border-radius:10px}
#dayroom .dm-service-note{font-size:12px;color:var(--dr-muted);line-height:1.6;margin:20px 14px}
#dayroom .dm-empty{padding:48px 24px;text-align:center;color:var(--dr-muted)}
#dayroom .dm-compose-window{position:absolute;bottom:0;right:32px;width:min(560px,calc(100% - 40px));max-height:90%;display:flex;flex-direction:column;background:var(--dr-bg);border:1px solid var(--dr-line);border-radius:12px 12px 0 0;box-shadow:0 6px 32px #0005;z-index:4;overflow:auto}
#dayroom .dm-compose-window>header{display:flex;align-items:center;justify-content:space-between;background:var(--dr-panel);padding:12px 16px}
#dayroom .dm-compose-window form{padding:0 16px 16px}
#dayroom .dm-compose-window label{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--dr-line);font-size:13px}
#dayroom .dm-compose-window input{min-width:0;flex:1;border:0;background:transparent;color:var(--dr-ink);padding:12px 4px;font:inherit}
#dayroom .dm-compose-window summary{cursor:pointer;font-size:12px;color:var(--dr-muted);padding:8px 0}
#dayroom .dm-compose-window textarea{width:100%;box-sizing:border-box;resize:vertical;min-height:200px;border:0;background:transparent;color:var(--dr-ink);font:inherit;line-height:1.6;padding:16px 0}
#dayroom .dm-compose-window footer{display:flex;flex-direction:column;gap:12px}
#dayroom .dm-compose-window footer>div{display:flex;gap:10px}
#dayroom #dm-save-state,#dayroom .dm-compose-window small{font-size:12px;color:var(--dr-muted)}
@media(max-width:760px){#dayroom .dm-header{padding:12px;gap:12px;flex-wrap:wrap}#dayroom .dm-header h1{min-width:0}#dayroom #dm-search{order:3;flex-basis:100%;max-width:none}#dayroom #dm-exit{margin-left:auto}#dayroom .dm-layout{grid-template-columns:minmax(0,1fr);gap:8px;padding:0 8px 8px}#dayroom .dm-sidebar{padding:0 4px;display:flex;align-items:center;gap:12px;overflow:auto}#dayroom #dm-compose{margin:0;padding:12px;flex-shrink:0}#dayroom #dm-folders{display:flex;gap:4px}#dayroom .dm-folder{width:auto;white-space:nowrap;border-radius:20px}#dayroom .dm-sidebar .dm-service-note{display:none}#dayroom .dm-message-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;padding:14px}#dayroom .dm-sender{width:auto}#dayroom .dm-subject-preview{grid-row:2;grid-column:1/-1;width:100%}#dayroom .dm-message-row time{grid-column:2;grid-row:1}#dayroom .dm-reader{padding:20px}#dayroom .dm-compose-window{inset:0;width:100%;max-height:none;border-radius:0}#dayroom .dm-compose-window textarea{min-height:30vh}#dayroom .dm-compose-window footer{padding-bottom:env(safe-area-inset-bottom)}}

#dayroom .dm-search-field input,#dayroom .dm-compose-window input,#dayroom .dm-compose-window textarea{box-shadow:none;border-radius:0}
#dayroom .dm-compose-window input:focus-visible,#dayroom .dm-compose-window textarea:focus-visible{outline:2px solid var(--dr-accent);outline-offset:-2px;box-shadow:none}
#dayroom .dm-compose-window footer>div{flex-wrap:wrap}

#dayroom .dm-thread-message{border:1px solid var(--dr-line);border-radius:10px;margin:12px 0;overflow:hidden}
#dayroom .dm-thread-message summary{display:flex;align-items:center;gap:16px;padding:18px;cursor:pointer;list-style:none}
#dayroom .dm-thread-message summary::-webkit-details-marker{display:none}
#dayroom .dm-thread-message summary:before{content:'›';font-size:20px;color:var(--dr-muted)}
#dayroom .dm-thread-message[open] summary:before{content:'⌄'}
#dayroom .dm-thread-message summary:focus-visible{outline:2px solid var(--dr-accent);outline-offset:-2px}
#dayroom .dm-thread-sender{font-weight:700;flex-shrink:0;max-width:40%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#dayroom .dm-thread-preview{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--dr-muted);font-size:13px}
#dayroom .dm-thread-message[open] .dm-thread-preview{visibility:hidden}
#dayroom .dm-thread-message summary time{font-size:12px;white-space:nowrap}
#dayroom .dm-thread-content{padding:0 20px 16px}
@media(max-width:760px){#dayroom .dm-thread-message summary{gap:10px;padding:12px}#dayroom .dm-thread-preview{display:none}#dayroom .dm-thread-sender{flex:1;max-width:none}#dayroom .dm-thread-content{padding:0 12px 12px}}

#dayroom .dm-reply-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}
#dayroom .dm-compose-window>header{flex-shrink:0}
#dayroom .dm-compose-window form{display:flex;flex-direction:column;min-height:0;overflow:auto}
#dayroom .dm-compose-window label,#dayroom .dm-compose-window details,#dayroom .dm-compose-window footer{flex-shrink:0}
#dayroom .dm-compose-window textarea{flex:1;min-height:100px;resize:none}
#dayroom .dm-compose-window footer{position:sticky;bottom:-16px;background:var(--dr-bg);padding:12px 0 16px}
#dayroom .dm-compose-button:hover:not(:disabled){background:var(--dr-accent);filter:brightness(.94)}
/* Mail reading uses an open page, with compact dividers between messages. */
#dayroom .dm-thread-message{border:0;border-bottom:1px solid var(--dr-line);border-radius:0;margin:0}
#dayroom .dm-thread-message summary{padding:16px 0}
#dayroom .dm-thread-content{padding:0 0 24px 48px}
#dayroom .dm-thread-message summary:before{display:none}
#dayroom .dm-sender-avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;flex-shrink:0;background:var(--dr-accent);color:var(--dr-bg);font-weight:700}
#dayroom .dm-formatted-mail{margin:20px 0;background:#fff;border-radius:3px;overflow:hidden}
#dayroom .dm-formatted-mail iframe{display:block;width:100%;height:65vh;min-height:360px;border:0;background:#fff}
#dayroom .dm-formatted-mail small{display:block;background:var(--dr-bg);color:var(--dr-muted);padding:10px 0;font-size:12px}
#dayroom .dm-reply-actions{margin-top:24px}
#dayroom .dm-reply-actions button{border-radius:24px;padding:9px 20px}
/* Expanded composer keeps a generous body and a fixed bottom action row. */
#dayroom .dm-compose-overlay{position:absolute;inset:0;z-index:10;background:#0006;display:flex;align-items:center;justify-content:center;padding:24px 5%}
#dayroom .dm-compose-window.dm-expanded{position:relative;inset:auto;width:100%;height:100%;max-height:100%;border-radius:14px}
#dayroom .dm-compose-window form{flex:1}
#dayroom .dm-compose-window[role="dialog"] textarea{min-height:120px}
#dayroom .dm-window-controls{display:flex;align-items:center;gap:4px}
#dayroom .dm-window-controls button{border:0;padding:6px 8px;font-size:12px}
#dayroom .dm-compose-window.dm-minimized{height:auto;inset:auto 24px 0 auto;width:340px;max-width:calc(100% - 24px)}
#dayroom .dm-compose-window form[hidden]{display:none}
#dayroom .dm-compose-window textarea{padding:18px 2px}
@media(max-width:760px){#dayroom .dm-compose-overlay{padding:0}#dayroom .dm-compose-window.dm-expanded{border-radius:0}#dayroom .dm-thread-content{padding-left:0}#dayroom .dm-window-controls button{padding:6px;font-size:11px}}
#dayroom .dm-reader{padding:20px 24px}
#dayroom .dm-reader h2{font-size:22px;margin-bottom:14px}
#dayroom .dm-thread-message summary{padding:10px 0}
#dayroom .dm-recipients{margin:0 0 12px}
#dayroom .dm-formatted-mail{margin:12px 0}
#dayroom .dm-body{margin:20px 0}
#dayroom .dm-rich-body{flex:1;min-height:120px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;padding:18px 2px;line-height:1.6;outline-offset:-2px}
#dayroom .dm-rich-body:empty:before{content:attr(data-placeholder);color:var(--dr-muted);pointer-events:none}
#dayroom .dm-rich-body:focus-visible{outline:2px solid var(--dr-accent)}
#dayroom .dm-rich-body a{color:var(--dr-accent);text-decoration:underline}
#dayroom .dm-rich-body p,#dayroom .dm-rich-body div{margin:0}
#dayroom .dm-format-toolbar{display:flex;flex-wrap:wrap;gap:3px;border-radius:10px;background:var(--dr-panel);padding:5px;width:fit-content;max-width:100%}
#dayroom .dm-format-toolbar button{font:inherit;font-size:12px;background:transparent;border:0;border-radius:4px;color:var(--dr-ink);padding:6px 9px;cursor:pointer}
#dayroom .dm-format-toolbar button:hover{background:var(--dr-bg)}
#dayroom .dm-format-toolbar button:focus-visible{outline:2px solid var(--dr-accent)}
#dayroom .dm-format-toolbar button:disabled{opacity:.4;cursor:default}
#dayroom [data-command=bold]{font-weight:700}#dayroom [data-command=italic]{font-style:italic}#dayroom [data-command=underline]{text-decoration:underline}#dayroom [data-command=strikeThrough]{text-decoration:line-through}
#dayroom .dm-link-entry:not([hidden]){flex-basis:100%;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
#dayroom .dm-link-entry label{flex:1;min-width:160px}
#dayroom .dm-link-entry input{width:100%;font-size:12px}
#dayroom .dm-to-row{display:flex;align-items:center;border-bottom:1px solid var(--dr-line);flex-shrink:0}
#dayroom .dm-to-row>label{flex:1;min-width:0;border:0}
#dayroom .dm-recipient-actions{display:flex;gap:4px;padding-left:12px}
#dayroom .dm-recipient-actions button{border:0;color:var(--dr-muted);padding:6px 8px}
#dayroom .dm-recipient-actions button:hover{color:var(--dr-ink);text-decoration:underline;background:transparent}
#dayroom .dm-compose-window label[hidden],#dayroom .dm-recipient-actions button[hidden]{display:none}
#dayroom .dm-window-icon{width:30px;height:30px;display:grid;place-items:center;cursor:pointer;background:transparent;border:0;color:var(--dr-muted);border-radius:5px}
#dayroom .dm-window-icon svg{width:18px;height:18px}
#dayroom .dm-window-icon:hover{background:var(--dr-bg);color:var(--dr-ink)}
#dayroom .dm-drag-grip{cursor:grab;touch-action:none;user-select:none}
#dayroom .dm-drag-grip:active{cursor:grabbing}
#dayroom .dm-draft-files{flex-shrink:0;max-height:140px;overflow:auto;font-size:12px}
#dayroom .dm-draft-files>div{display:flex;align-items:center;gap:8px;border:1px solid var(--dr-line);border-radius:6px;padding:6px 10px;margin:6px 0}
#dayroom .dm-draft-files span{flex:1;min-width:0;overflow-wrap:anywhere}
#dayroom .dm-draft-files .dm-button{padding:5px 8px;font-size:11px}
#dayroom .dm-draft-files small{color:var(--dr-muted)}
#dayroom #dm-signatures{margin:20px 8px;font-size:12px}
#dayroom .dm-signature-settings{padding:24px;max-width:700px}
#dayroom .dm-signature-settings textarea{display:block;width:100%;margin-top:12px;font:inherit;color:var(--dr-ink);background:var(--dr-panel);border:1px solid var(--dr-line);padding:12px}
#dayroom .dm-signature-settings pre{white-space:pre-wrap;font:inherit;line-height:1.6;padding:16px;border:1px solid var(--dr-line)}
#dayroom .dm-signature-settings label{display:block;margin:16px 0}
#dayroom .dm-search-field button .dr-search-spectacles{display:block;width:24px;height:24px}
@media(min-width:761px){#dayroom .dm-compose-window>header{cursor:grab;touch-action:none}#dayroom .dm-compose-window>header:active{cursor:grabbing}}
/* Signature settings: separate editing, defaults, preview and save actions. */
#dayroom .dm-signatures{padding:32px 36px 40px;max-width:1140px;margin:0 auto;font-size:14px;line-height:1.5}
#dayroom .dm-signatures h2,#dayroom .dm-signatures h3,#dayroom .dm-signatures p{margin:0}
#dayroom .dm-signatures h2{font-size:23px;font-weight:600;line-height:1.3}
#dayroom .dm-signatures h3{font-size:14px;font-weight:600}
#dayroom .dm-signatures p,#dayroom .dm-signatures small{color:var(--dr-muted)}
#dayroom .dm-signatures p{margin-top:7px}
#dayroom .dm-signature-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:32px}
#dayroom .dm-signature-scope{font-size:11px;color:var(--dr-muted);border:1px solid var(--dr-line);padding:4px 10px;border-radius:20px}
#dayroom .dm-signature-workbench{display:grid;grid-template-columns:190px minmax(0,1fr);border:1px solid var(--dr-line);border-radius:12px;overflow:hidden}
#dayroom .dm-signature-library{padding:22px 14px;background:var(--dr-panel)}
#dayroom .dm-signature-library h3{padding:0 10px;margin-bottom:16px}
#dayroom .dm-signature-library [data-list]{display:grid;gap:6px;margin-bottom:20px}
#dayroom .dm-signature-library [data-select]{display:flex;flex-direction:column;gap:4px;align-items:flex-start;text-align:left;border:1px solid transparent;border-radius:7px;padding:10px;background:transparent;color:var(--dr-ink);font:inherit;cursor:pointer;overflow-wrap:anywhere;min-width:0}
#dayroom .dm-signature-library [aria-pressed=true]{background:var(--dr-bg);border-color:var(--dr-line)}
#dayroom .dm-signature-library small{font-size:11px}
#dayroom .dm-signature-library>.dm-button{width:100%;margin:0}
#dayroom .dm-signature-compose{padding:24px;min-width:0;border-left:1px solid var(--dr-line)}
#dayroom .dm-signature-name{display:flex;align-items:flex-end;gap:20px;margin-bottom:20px}
#dayroom .dm-signatures label{display:grid;gap:8px;margin:0;font-size:12px;color:var(--dr-muted);min-width:0}
#dayroom .dm-signature-name label{flex:1}
#dayroom .dm-signatures input,#dayroom .dm-signatures select{box-sizing:border-box;width:100%;min-width:0;height:40px;padding:9px 12px;border:1px solid var(--dr-line);border-radius:6px;background:var(--dr-bg);color:var(--dr-ink);font:inherit;font-size:14px}
#dayroom .dm-signature-name>.dm-button{height:40px;color:var(--dr-muted)}
#dayroom .dm-signature-editor{border:1px solid var(--dr-line);border-radius:8px;overflow:hidden;background:var(--dr-bg)}
#dayroom .dm-signature-editor [data-body]{min-height:180px;max-height:340px;overflow:auto;padding:20px;font:14px/1.65 Arial,sans-serif;white-space:pre-wrap;overflow-wrap:anywhere;outline:none}
#dayroom .dm-signature-editor [data-body]:empty:before{content:attr(data-placeholder);color:var(--dr-muted);pointer-events:none}
#dayroom .dm-signature-editor .dm-format-toolbar{box-sizing:border-box;width:100%;border-top:1px solid var(--dr-line);border-radius:0;display:flex;flex-wrap:wrap;gap:4px;padding:10px;margin:0;background:var(--dr-panel)}
#dayroom .dm-signature-editor .dm-format-toolbar[hidden]{display:none}
#dayroom .dm-signature-fields{margin-top:20px;display:grid;gap:10px}
#dayroom .dm-signature-fields>span{font-size:12px;font-weight:500}
#dayroom .dm-signature-fields>div{display:flex;flex-wrap:wrap;gap:8px}
#dayroom .dm-signature-fields .dm-button{font-size:12px;padding:6px 10px}
#dayroom .dm-signature-fields small{font-size:12px}
#dayroom .dm-signature-token{display:inline-block;background:var(--dr-panel);border:1px solid var(--dr-line);border-radius:4px;padding:0 5px;font-size:12px;line-height:1.8;color:var(--dr-ink);white-space:nowrap}
#dayroom .dm-signature-bottom{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:40px;margin-top:36px}
#dayroom .dm-signature-defaults{display:grid;gap:18px;align-content:start}
#dayroom .dm-signature-defaults p{margin-top:-12px;font-size:12px}
#dayroom .dm-signature-defaults small{font-size:12px;line-height:1.6}
#dayroom .dm-signature-preview-section p{font-size:12px}
#dayroom .dm-signature-preview{margin-top:20px;padding:24px;min-height:180px;background:#fff;border:1px solid #ddd;border-radius:8px;color:#202124;font:14px/1.65 Arial,sans-serif;overflow-wrap:anywhere;white-space:pre-wrap}
#dayroom .dm-signature-preview a{color:#1558d6}
#dayroom .dm-signature-preview p{color:inherit;margin:0}
#dayroom .dm-signature-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px;margin-top:36px;padding-top:24px;border-top:1px solid var(--dr-line)}
#dayroom .dm-signature-actions [data-status]{margin-right:auto;color:var(--dr-muted);font-size:12px;flex-basis:150px;flex-grow:1}
#dayroom .dm-signature-save{background:var(--dr-ink);color:var(--dr-bg);border-color:var(--dr-ink)}
#dayroom .dm-signature-empty{padding:30px 0;min-height:200px}
#dayroom .dm-signature-picker{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:16px 0;border-top:1px solid var(--dr-line)}
#dayroom .dm-signature-picker strong{font-size:12px}
@media(max-width:1050px){#dayroom .dm-signatures{padding:24px}#dayroom .dm-signature-workbench{grid-template-columns:150px minmax(0,1fr)}#dayroom .dm-signature-compose{padding:18px}#dayroom .dm-signature-bottom{gap:24px}}
@media(max-width:650px){#dayroom .dm-signatures{padding:24px 18px}#dayroom .dm-signature-heading{margin-bottom:24px;gap:12px}#dayroom .dm-signature-workbench{grid-template-columns:1fr}#dayroom .dm-signature-compose{border-left:0;border-top:1px solid var(--dr-line);padding:18px}#dayroom .dm-signature-library{padding:18px}#dayroom .dm-signature-library [data-list]{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}#dayroom .dm-signature-bottom{grid-template-columns:1fr;gap:32px}#dayroom .dm-signature-name{gap:12px}#dayroom .dm-signature-heading h2{font-size:21px}#dayroom .dm-signature-actions{gap:10px}#dayroom .dm-signature-actions [data-status]{flex-basis:100%}#dayroom .dm-signature-editor [data-body]{min-height:160px}}
#dayroom .dm-signatures .dm-button.dm-signature-save:hover,#dayroom .dm-signatures .dm-button.dm-signature-save:focus-visible{background:var(--dr-ink);color:var(--dr-bg);filter:brightness(.94)}
#dayroom #dm-search-area{flex:1;max-width:720px;min-width:0;position:relative}
#dayroom #dm-search-area #dm-search{max-width:none}
#dayroom .dm-search-field button{flex-shrink:0;display:grid;place-items:center;padding:10px}
#dayroom #dm-filter-toggle{margin-right:8px}
#dayroom #dm-filter-toggle svg{width:21px;height:21px}
#dayroom #dm-filter-panel{position:absolute;top:calc(100% + 8px);right:0;width:min(570px,calc(100vw - 32px));max-height:calc(100dvh - 130px);overflow:auto;box-sizing:border-box;background:var(--dr-bg);border:1px solid var(--dr-line);border-radius:12px;box-shadow:0 12px 36px #0003;z-index:20;padding:22px 24px}
#dayroom #dm-filter-panel>header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}
#dayroom #dm-filter-panel h2{font-size:16px;margin:0;font-weight:600}
#dayroom .dm-filter-fields{display:grid;gap:16px}
#dayroom .dm-filter-fields label{display:grid;grid-template-columns:115px minmax(0,1fr);align-items:center;gap:14px;font-size:12px;margin:0;color:var(--dr-muted);min-width:0}
#dayroom .dm-filter-fields input:not([type=checkbox]),#dayroom .dm-filter-fields select{box-sizing:border-box;width:100%;min-width:0;border:1px solid var(--dr-line);border-radius:5px;background:var(--dr-panel);color:var(--dr-ink);padding:9px 11px;font:inherit;font-size:13px;height:38px}
#dayroom .dm-filter-pair{display:grid;grid-template-columns:1fr 1fr;gap:16px}
#dayroom .dm-filter-pair label{display:grid;grid-template-columns:1fr;gap:8px}
#dayroom .dm-filter-size{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,100px) 80px;gap:12px;align-items:end}
#dayroom .dm-filter-size label{grid-template-columns:1fr;gap:8px}
#dayroom .dm-filter-fields .dm-filter-check{display:flex;gap:10px;align-items:center;color:var(--dr-ink);padding:4px 0}
#dayroom .dm-filter-check input{width:16px;height:16px;margin:0;accent-color:var(--dr-ink)}
#dayroom #dm-filter-form footer{display:flex;justify-content:flex-end;gap:12px;padding-top:20px;margin-top:18px;border-top:1px solid var(--dr-line)}
#dayroom #dm-filter-form .dm-filter-search,#dayroom #dm-filter-form .dm-filter-search:hover{background:var(--dr-ink);color:var(--dr-bg);min-width:96px}
#dayroom #dm-filter-error{margin:14px 0 0;font-size:12px;line-height:1.5}
#dayroom #dm-filter-error:empty{display:none}
#dayroom .dm-applied-filters{display:flex;align-items:center;gap:16px;padding:12px 20px;border-bottom:1px solid var(--dr-line);font-size:12px;color:var(--dr-muted)}
#dayroom .dm-applied-filters>span{flex:1;overflow-wrap:anywhere}
#dayroom .dm-applied-filters .dm-button{font-size:12px}
@media(max-width:760px){#dayroom #dm-search-area{order:3;flex-basis:100%;max-width:none}#dayroom #dm-filter-panel{max-height:calc(100dvh - 140px);width:100%;padding:18px}#dayroom .dm-filter-fields label{grid-template-columns:1fr;gap:7px}#dayroom .dm-filter-size{grid-template-columns:minmax(0,1fr) minmax(0,80px) 70px;gap:8px}#dayroom .dm-filter-pair{gap:12px}#dayroom .dm-applied-filters{flex-wrap:wrap}}
#dayroom .dm-action-row{position:relative;gap:10px;padding:0 16px;cursor:default}
#dayroom .dm-open-message{display:flex;align-items:center;gap:20px;min-width:0;flex:1;align-self:stretch;border:0;background:transparent;color:inherit;font:inherit;text-align:left;padding:14px 0;cursor:pointer}
#dayroom .dm-open-message:focus-visible{outline:1px solid var(--dr-muted);outline-offset:-2px}
#dayroom .dm-select-label{display:flex;align-items:center}
#dayroom .dm-row-select,#dayroom #dm-select-all{width:16px;height:16px;margin:0;flex-shrink:0;accent-color:var(--dr-ink);cursor:pointer}
#dayroom .dm-mail-action{width:32px;height:32px;display:inline-grid;place-items:center;border:0;border-radius:5px;background:transparent;color:var(--dr-muted);padding:6px;cursor:pointer;flex-shrink:0}
#dayroom .dm-mail-action svg{width:20px;height:20px}
#dayroom .dm-mail-action:hover{background:var(--dr-soft);color:var(--dr-ink)}
#dayroom .dm-mail-action:focus-visible{outline:1px solid var(--dr-muted);outline-offset:-1px}
#dayroom .dm-starred{color:var(--dr-ink)}
#dayroom .dm-row-actions{display:none;align-items:center;gap:4px;position:absolute;right:12px;top:50%;transform:translateY(-50%);background:var(--dr-panel);padding-left:12px}
#dayroom .dm-unread .dm-row-actions{background:var(--dr-bg)}
#dayroom .dm-action-row:hover .dm-row-actions,#dayroom .dm-action-row:focus-within .dm-row-actions{display:flex}
#dayroom .dm-action-row:hover .dm-open-message,#dayroom .dm-action-row:focus-within .dm-open-message{padding-right:120px}
#dayroom .dm-action-row:hover time,#dayroom .dm-action-row:focus-within time{visibility:hidden}
#dayroom .dm-selected{box-shadow:inset 3px 0 var(--dr-muted)}
#dayroom .dm-selection-actions{display:flex;align-items:center;gap:12px;padding:10px 20px;border-bottom:1px solid var(--dr-line)}
#dayroom .dm-selection-actions[hidden]{display:none}
#dayroom #dm-selected-count{font-size:12px;margin-right:8px}
@media(hover:none){#dayroom .dm-row-actions{display:flex;position:static;transform:none;padding:0}#dayroom .dm-action-row{flex-wrap:wrap}#dayroom .dm-action-row .dm-open-message{padding-right:0}#dayroom .dm-action-row time{visibility:visible}}
@media(max-width:760px){#dayroom .dm-action-row{display:flex;flex-wrap:wrap;padding:8px 12px;gap:8px}#dayroom .dm-action-row .dm-open-message{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;flex-basis:calc(100% - 80px);padding:8px 0}#dayroom .dm-action-row .dm-row-actions{display:flex;position:static;transform:none;margin-left:auto;padding:0}#dayroom .dm-action-row time{visibility:visible}#dayroom .dm-selection-actions{gap:8px;flex-wrap:wrap}}
#dayroom .dm-mail-action.dm-discard-confirm{width:auto;padding:6px 12px;color:var(--dr-ink)}
#dayroom .dm-row-actions:has(.dm-discard-confirm){display:flex}
@media(max-width:760px){#dayroom .dm-action-row:hover .dm-open-message,#dayroom .dm-action-row:focus-within .dm-open-message{padding-right:0}#dayroom .dm-action-row:hover time,#dayroom .dm-action-row:focus-within time{visibility:visible}}
#dayroom .dm-review-overlay{position:absolute;inset:0;z-index:60;background:#0007;display:grid;place-items:center;padding:24px}
#dayroom .dm-send-review{width:min(720px,100%);max-height:100%;display:flex;flex-direction:column;overflow:hidden;background:var(--dr-bg);color:var(--dr-ink);border:1px solid var(--dr-line);border-radius:14px;box-shadow:0 16px 50px #0004}
#dayroom .dm-send-review>header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid var(--dr-line);gap:20px}
#dayroom .dm-send-review h2{font-size:20px;margin:0}
#dayroom .dm-send-review>header button{border:0;background:transparent;color:var(--dr-muted);font-size:24px;width:36px;height:36px;cursor:pointer}
#dayroom .dm-review-scroll{overflow:auto;padding:24px;min-height:0}
#dayroom .dm-send-review dl{display:grid;grid-template-columns:65px minmax(0,1fr);gap:14px 18px;margin:0;font-size:13px;line-height:1.5}
#dayroom .dm-send-review dt{color:var(--dr-muted)}
#dayroom .dm-send-review dd{margin:0;overflow-wrap:anywhere}
#dayroom .dm-review-body{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:26px;padding-top:24px;border-top:1px solid var(--dr-line);font-size:14px;line-height:1.7;min-height:100px}
#dayroom .dm-review-files{margin-top:24px;border-top:1px solid var(--dr-line);padding-top:20px}
#dayroom .dm-review-files h3{font-size:13px;margin:0 0 12px}
#dayroom .dm-review-files ul{list-style:none;margin:0;padding:0;display:grid;gap:10px}
#dayroom .dm-review-files li{display:flex;gap:20px;justify-content:space-between;font-size:13px}
#dayroom .dm-review-files li span{overflow-wrap:anywhere}
#dayroom .dm-review-files small,#dayroom .dm-review-note{color:var(--dr-muted);font-size:12px}
#dayroom .dm-send-review>footer{border-top:1px solid var(--dr-line);padding:20px 24px;display:flex;align-items:center;gap:20px;justify-content:space-between}
#dayroom .dm-send-review>footer p{font-size:12px;color:var(--dr-muted);margin:0}
@media(max-width:760px){#dayroom .dm-review-overlay{padding:12px}#dayroom .dm-review-scroll{padding:20px 16px}#dayroom .dm-send-review>header,#dayroom .dm-send-review>footer{padding:16px}#dayroom .dm-send-review>footer{flex-wrap:wrap}#dayroom .dm-send-review dl{grid-template-columns:45px minmax(0,1fr);gap:12px}}
#dayroom .dm-outbox-item{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px;border-bottom:1px solid var(--dr-line)}
#dayroom .dm-outbox-item>div{min-width:0;overflow-wrap:anywhere}
#dayroom .dm-outbox-item h3{font-size:15px;margin:0 0 10px}
#dayroom .dm-outbox-item strong{font-size:13px;font-weight:600}
#dayroom .dm-outbox-item p{font-size:12px;color:var(--dr-muted);margin:8px 0;line-height:1.5}
@media(max-width:760px){#dayroom .dm-outbox-item{align-items:flex-start;flex-direction:column;gap:12px;padding:20px 16px}}

/* Conversation reading and in-place replies share the message's content edge. */
#dayroom .dm-reader{padding:28px 32px 40px}
#dayroom .dm-reader h2{margin:8px 0 30px 56px;font-weight:500;font-size:24px}
#dayroom .dm-thread-message summary{gap:16px;padding:22px 0;align-items:flex-start}
#dayroom .dm-sender-avatar{width:40px;height:40px}
#dayroom .dm-thread-heading{display:flex;flex:1;min-width:0;flex-direction:column;gap:5px}
#dayroom .dm-thread-heading .dm-thread-sender{max-width:100%;font-size:14px}
#dayroom .dm-thread-heading .dm-thread-preview{display:block;visibility:visible;line-height:1.5}
#dayroom .dm-thread-address{display:none;color:var(--dr-muted);font-size:12px}
#dayroom .dm-thread-message[open] .dm-thread-preview{display:none}
#dayroom .dm-thread-message[open] .dm-thread-address{display:block}
#dayroom .dm-thread-message summary time{color:var(--dr-muted);padding-top:3px}
#dayroom .dm-thread-content{padding:0 0 28px 56px}
#dayroom .dm-recipients{font-size:12px;color:var(--dr-muted);line-height:1.6}
#dayroom .dm-body{line-height:1.8;margin:24px 0 32px}
#dayroom .dm-inline-reply-slot:not(:empty){margin-top:28px}
#dayroom .dm-inline-compose{position:relative;inset:auto;width:100%;max-height:none;box-shadow:0 2px 6px #0002,0 1px 2px #0001;border-radius:20px;overflow:visible}
#dayroom .dm-inline-compose>header{border-radius:20px 20px 0 0;background:transparent;padding:14px 18px;cursor:default;touch-action:auto}
#dayroom .dm-inline-compose .dm-rich-body{min-height:180px;max-height:420px}
#dayroom .dm-inline-compose form{overflow:visible;padding:0 18px 8px}
#dayroom .dm-inline-compose footer{position:static;padding-bottom:12px;border-radius:0 0 20px 20px}
#dayroom .dm-inline-compose #dm-compose-minimize{display:none}
@media(max-width:760px){#dayroom .dm-reader{padding:20px 16px}#dayroom .dm-reader h2{margin-left:0;font-size:20px}#dayroom .dm-thread-content{padding-left:0}#dayroom .dm-thread-message summary{gap:12px}#dayroom .dm-thread-message summary time{white-space:normal;text-align:right;max-width:100px}#dayroom .dm-inline-compose{width:100%;border-radius:20px;inset:auto}#dayroom .dm-inline-compose footer>div{gap:8px}}

#dayroom .dm-inline-compose .dm-compose-subject{display:none}

/* Keep the canonical Dayroom wordmark legible in every personal palette. */
#dayroom .dm-header .dm-mail-brand{display:flex;align-items:center;gap:10px;flex-shrink:0}
#dayroom .dm-brand-logo{display:block;width:112px;height:26px;background:url('/assets/lockup.svg') center/contain no-repeat}
/* Use the original two-colour kit assets; an alpha mask erases the green sun. */
#dayroom[data-scheme=dark] .dm-brand-logo{background-image:url('/assets/lockup-reverse.svg')}
@media(prefers-color-scheme:dark){#dayroom:not([data-scheme]) .dm-brand-logo{background-image:url('/assets/lockup-reverse.svg')}}
#dayroom .dm-brand-label{font-size:14px;line-height:1;font-weight:500;color:var(--dr-muted)}

/* Mail owns the workspace area; the app rail remains the way out. */
#dayroom[data-work-page="mail"] #dr-sidebar{display:none}
#dayroom[data-work-page="mail"] .dr-layout{grid-template-columns:minmax(0,1fr)}
#dayroom[data-work-page="mail"] #dr-work-page{grid-column:1/-1}
@media(max-width:899px){
 #dayroom[data-work-page="mail"] #dr-product{flex-direction:row}
 #dayroom[data-work-page="mail"] .dr-mobile-bar{display:none}
 #dayroom[data-work-page="mail"] .dr-rail{position:relative;display:flex;inset:auto;width:64px;flex:0 0 64px;z-index:1;overflow-y:auto}
 #dayroom[data-work-page="mail"] .dr-layout{min-width:0}
 #dayroom[data-work-page="mail"][data-mobile-nav] #dr-work-page{visibility:visible}
}

/* Keep setup useful without hiding the mail workspace. */
#dayroom .dm-setup-empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:20px;padding:64px 24px;max-width:600px;margin:0 auto}
#dayroom .dm-setup-empty h2,#dayroom .dm-setup-empty p{margin:0;line-height:1.6}
#dayroom .dm-setup-empty .dm-button{width:auto;max-width:100%;min-height:44px;padding:14px 24px;white-space:normal}
#dayroom .dm-setup-icon .dr-i{width:40px;height:40px;color:var(--dr-muted)}
@media(max-width:760px){#dayroom .dm-setup-empty{padding:40px 20px;gap:20px}}

#dayroom #dm-create-mailbox{margin-top:24px;width:100%;white-space:normal;line-height:1.4}
#dayroom .dm-create-mailbox-dialog{width:min(460px,calc(100vw - 32px));box-sizing:border-box;max-height:calc(100vh - 32px);overflow:auto;padding:28px;border:1px solid var(--dr-line);border-radius:16px;background:var(--dr-panel);color:var(--dr-ink)}
#dayroom .dm-create-mailbox-dialog::backdrop{background:rgba(0,0,0,.4)}
#dayroom .dm-create-mailbox-dialog header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}
#dayroom .dm-create-mailbox-dialog h2{font-size:22px;margin:0}
#dayroom .dm-create-mailbox-dialog .dr-form{display:grid;gap:20px}
#dayroom .dm-create-mailbox-dialog p{margin:0;line-height:1.6}
#dayroom .dm-create-mailbox-dialog #dm-create-error:empty{display:none}
#dayroom .dm-create-mailbox-dialog #dm-create-settings{margin-top:24px}
@media(max-width:760px){#dayroom #dm-create-mailbox{width:auto;min-width:130px;margin:0;flex-shrink:0}}

/* Account choice and personal organization use the existing Mail surfaces. */
.dm-account-label{display:flex;flex-direction:column;gap:8px;font-size:12px;margin-bottom:12px;color:var(--dr-muted)}
.dm-account-label select{width:100%;min-width:0;min-height:40px;padding:8px;border:1px solid var(--dr-line);border-radius:8px;background:var(--dr-surface);color:var(--dr-ink)}
#dm-account{display:grid;gap:8px;margin-bottom:18px;min-width:0}
.dm-connect-choices{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px;margin-bottom:20px;justify-content:center}
.dm-create-mailbox-dialog .dm-connect-choices{justify-content:flex-start;flex-direction:column;align-items:stretch}
.dm-label-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0 8px;padding:0 10px;font-size:13px}
.dm-label-heading h3{font:inherit;margin:0}
.dm-label-row{display:flex;align-items:center;gap:6px;min-width:0}
.dm-label-row .dm-folder{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dm-label-row>.dm-button{flex-shrink:0;padding:4px 8px;min-height:32px}
.dm-message-label{display:inline-block;margin-left:8px;padding:2px 6px;max-width:160px;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;border-radius:4px;background:var(--dr-panel);font-size:11px;font-weight:400}
.dm-create-mailbox-dialog{max-height:calc(100dvh - 40px);overflow:auto}
.dm-create-mailbox-dialog .dr-form{display:grid;gap:16px}
.dm-create-mailbox-dialog .dr-field{display:grid;gap:8px}
.dm-create-mailbox-dialog .dr-field input,.dm-create-mailbox-dialog .dr-field select{min-width:0;width:100%;min-height:42px;padding:10px 12px;box-sizing:border-box}
@media(max-width:760px){#dm-account{width:100%;margin-bottom:8px}.dm-account-label select{max-width:100%}.dm-connect-choices{align-items:stretch;flex-direction:column}.dm-label-heading{margin:12px 0 6px}.dm-message-label{max-width:90px}.dm-row-actions{flex-wrap:wrap}}
#dayroom .dm-account-label select{background:var(--dr-panel);color:var(--dr-ink);border:1px solid var(--dr-line);border-radius:8px}
@media(max-width:760px){
 #dayroom .dm-layout{grid-template-rows:auto minmax(0,1fr)}
 #dayroom .dm-sidebar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:end;gap:12px;overflow:visible;padding:0 4px 8px}
 #dayroom #dm-account{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;margin:0;gap:10px}
 #dayroom .dm-account-label{margin:0;min-width:0}
 #dayroom #dm-add-account{min-height:42px}
 #dayroom #dm-compose{grid-column:1;grid-row:2;min-height:44px}
 #dayroom #dm-create-mailbox{grid-column:2;grid-row:2;min-width:0;min-height:44px;padding:10px;font-size:12px}
 #dayroom #dm-folders{grid-column:1/-1;grid-row:3;overflow-x:auto;align-items:center;min-width:0;max-width:100%;padding-bottom:4px}
 #dayroom .dm-label-heading{margin:0;white-space:nowrap;gap:8px}
 #dayroom .dm-label-row{flex-shrink:0}
 #dayroom #dm-folders>.dm-folder{flex-shrink:0}
}
#dayroom .dm-create-mailbox-dialog .dr-field input,#dayroom .dm-create-mailbox-dialog .dr-field select{background:var(--dr-bg);color:var(--dr-ink);border:1px solid var(--dr-line);border-radius:8px}
#dayroom .dm-create-mailbox-dialog .dr-field input::placeholder{color:var(--dr-muted)}

#dayroom #dm-compose svg{width:20px;height:20px;flex:none}

/* Keep account management quieter than the primary Compose action. */
#dayroom #dm-account{display:flex;flex-direction:column;align-items:stretch;gap:4px;margin:0 0 24px;padding:0 0 18px;border-bottom:1px solid var(--dr-line)}
#dayroom .dm-account-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:40px;color:var(--dr-muted);font-size:12px;font-weight:600;padding-left:2px}
#dayroom .dm-account-add{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:44px;padding:8px;border:0;border-radius:7px;background:transparent;color:var(--dr-ink);font:inherit;font-size:12px;cursor:pointer}
#dayroom .dm-account-add svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7}
#dayroom .dm-account-add:hover:not(:disabled){background:var(--dr-panel)}
#dayroom .dm-account-add:focus-visible{outline:2px solid var(--dr-muted);outline-offset:1px}
#dayroom .dm-account-add:disabled{opacity:.5;cursor:default}
#dayroom .dm-account-label{display:flex;flex-direction:column;gap:8px;margin:0;min-width:0}
#dayroom .dm-account-picker{position:relative;display:block;min-width:0}
#dayroom .dm-account-picker>svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.5;color:var(--dr-muted);pointer-events:none}
#dayroom .dm-account-picker select{display:block;box-sizing:border-box;width:100%;min-width:0;min-height:48px;margin:0;padding:12px 10px 12px 38px;border:1px solid var(--dr-line);border-radius:10px;background:transparent;color:var(--dr-ink);font:inherit;font-size:13px;font-weight:600;appearance:none;text-overflow:ellipsis;cursor:pointer;box-shadow:none}
#dayroom .dm-account-picker select:hover{background:var(--dr-panel)}
#dayroom .dm-account-picker select:focus-visible{outline:2px solid var(--dr-muted);outline-offset:2px}
#dayroom .dm-account-hint{margin:0;padding:0 2px;color:var(--dr-muted);font-size:11px;line-height:1.5}
#dayroom #dm-disconnect-account{align-self:flex-start;padding:6px 2px;min-height:36px;border:0;border-radius:4px;font-size:11px;color:var(--dr-muted)}
@media(max-width:760px){
 #dayroom #dm-account{grid-column:1/-1;display:flex;gap:4px;padding:0 0 12px;margin:0}
 #dayroom .dm-account-heading{min-height:36px}
 #dayroom #dm-add-account{min-height:44px}
 #dayroom .dm-account-picker select{min-height:46px}
}

/* Sending stays in context; Outbox is for work still in progress. */
@media(min-width:761px){#dayroom .dm-layout{grid-template-columns:248px minmax(0,1fr)}}
#dayroom .dm-sync-hint{font-size:12px;color:var(--dr-muted)}
#dayroom #dm-send-notice{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 16px 12px;padding:14px 18px;border:1px solid var(--dr-line);border-radius:12px;background:var(--dr-panel);flex-shrink:0}
#dayroom #dm-send-notice[hidden]{display:none}
#dayroom #dm-send-notice [role=status]{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 14px;font-size:14px}
#dayroom #dm-send-notice [role=status] span{color:var(--dr-muted)}
#dayroom .dm-send-actions{display:flex;flex-wrap:wrap;gap:8px}
#dayroom .dm-outbox-list{max-width:900px;padding:20px}
#dayroom .dm-outbox-item{padding:20px;gap:20px;justify-content:flex-start;border:1px solid var(--dr-line);border-radius:12px;margin-bottom:12px;background:var(--dr-panel)}
#dayroom .dm-outbox-item>div{flex:1}
#dayroom .dm-outbox-item p{font-size:14px}
#dayroom .dm-outbox-item strong{font-size:14px}
#dayroom .dm-outbox-empty{padding:28px 20px;border:1px solid var(--dr-line);border-radius:12px;margin-bottom:20px}
#dayroom .dm-outbox-empty h3{font-size:18px;margin:0 0 8px}
#dayroom .dm-outbox-empty p{font-size:14px;color:var(--dr-muted);margin:0 0 18px}
@media(max-width:760px){#dayroom #dm-send-notice{align-items:flex-start;flex-direction:column;margin:0 8px 8px;padding:12px}#dayroom .dm-outbox-list{padding:12px}#dayroom .dm-send-actions .dm-button{min-height:42px}}

#dayroom .dm-send-progress{width:min(540px,100%)}
#dayroom .dm-send-progress>footer{flex-wrap:wrap;border-top:0}
#dayroom .dm-send-progress>footer p{flex-basis:100%;font-size:14px;line-height:1.5}

#dayroom .dr-shared-nav{padding:4px 0 12px}#dayroom .dr-shared-nav>.dr-button{margin:0 12px;width:calc(100% - 24px);white-space:normal;min-height:40px}#dayroom .dr-shared-navroom{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:10px 16px;background:transparent;color:inherit;border:0;text-align:left;cursor:pointer}#dayroom .dr-shared-navroom span{overflow-wrap:anywhere}#dayroom .dr-shared-overlay .dr-modal{width:min(880px,calc(100vw - 32px));max-width:880px}#dayroom .dr-shared{display:grid;gap:16px;min-width:0}#dayroom .dr-shared p{margin:0;line-height:1.55}#dayroom .dr-shared h3{margin:0 0 8px;overflow-wrap:anywhere}#dayroom .dr-shared form{display:grid;gap:16px}#dayroom .sr-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:8px 0}#dayroom .sr-actions .dr-button{min-height:42px}#dayroom .sr-people{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px 16px;border:1px solid var(--dr-line,#89918d);border-radius:12px;padding:16px;max-height:240px;overflow:auto;margin:0}#dayroom .sr-people legend{padding:0 6px;font-weight:600}#dayroom .sr-people label,#dayroom .sr-consent{display:flex;gap:10px;align-items:flex-start;line-height:1.5}#dayroom .sr-people input,#dayroom .sr-consent input{flex:0 0 auto;margin-top:4px}#dayroom .sr-room{display:grid;width:100%;gap:6px;padding:16px;margin:8px 0;border:1px solid var(--dr-line,#89918d);background:transparent;border-radius:12px;color:inherit;text-align:left;cursor:pointer}#dayroom .sr-room span{font-size:13px;opacity:.75}#dayroom .sr-orgs{list-style:none;margin:0;padding:0;display:grid;gap:12px}#dayroom .sr-orgs li{display:grid;gap:8px;padding:16px;border:1px solid var(--dr-line,#89918d);border-radius:12px;overflow-wrap:anywhere}#dayroom .sr-orgs .dr-button{justify-self:start}#dayroom .sr-heading{display:flex;align-items:start;justify-content:space-between;gap:16px}#dayroom .sr-heading>div{min-width:0}#dayroom .sr-messages{height:clamp(190px,37vh,430px);overflow:auto;overscroll-behavior:contain;padding:8px 4px;display:flex;flex-direction:column;gap:12px;border-top:1px solid var(--dr-line,#89918d);border-bottom:1px solid var(--dr-line,#89918d)}#dayroom .sr-message{padding:14px;border:1px solid var(--dr-line,#89918d);border-radius:12px;max-width:95%;flex-shrink:0;overflow-wrap:anywhere}#dayroom .sr-own{align-self:flex-end}#dayroom .sr-byline{display:flex;gap:6px 12px;flex-wrap:wrap;font-size:12px;align-items:baseline;margin-bottom:8px}#dayroom .sr-byline span,#dayroom .sr-byline time{opacity:.75}#dayroom .sr-message .sr-text{white-space:pre-wrap;font-size:14px}#dayroom .sr-message-actions{display:flex;flex-wrap:wrap;gap:16px;margin-top:10px}#dayroom .sr-message blockquote{margin:0 0 10px;padding-left:12px;border-left:2px solid currentColor;font-size:12px;opacity:.75}#dayroom .sr-search{grid-template-columns:1fr auto;align-items:end}#dayroom .sr-search .dr-button{min-height:42px}#dayroom .sr-search .dr-field{margin:0}#dayroom .dr-shared textarea{resize:vertical;min-height:80px;max-height:200px}#dayroom .dr-shared #sr-error:empty,#dayroom .dr-shared #sr-status:empty{display:none}#dayroom #sr-management,#dayroom #sr-preview{display:grid;gap:16px}#dayroom #sr-invitation{display:grid;gap:10px}#dayroom #sr-confirm:not(:empty){padding:16px;border:1px solid var(--dr-line,#89918d);border-radius:12px}#dayroom .dr-shared .dr-field input,#dayroom .dr-shared .dr-field textarea{width:100%;box-sizing:border-box;min-width:0}#dayroom .dr-shared [hidden]{display:none!important}@media(max-width:520px){#dayroom .dr-shared-overlay .dr-modal{width:calc(100vw - 16px)}#dayroom .sr-heading{display:block}#dayroom .sr-people{grid-template-columns:1fr}#dayroom .sr-actions{gap:10px}#dayroom .sr-message{max-width:100%}#dayroom .sr-byline time{width:100%}#dayroom .sr-search{grid-template-columns:1fr}#dayroom .sr-messages{height:250px}#dayroom .sr-actions .dr-button{flex:1 1 auto}}

#dayroom .dr-shared .dr-field{margin:0}#dayroom .dr-shared p{margin:0;color:inherit}#dayroom .sr-search input,#dayroom .sr-search .dr-button{height:42px;min-height:42px}#dayroom .dr-shared .dr-hint{color:var(--dr-muted)}

/* Shared conversations use the same workspace pane as ordinary chats. */
#dayroom[data-shared-room] .dr-main>:not(#dr-shared-panel){display:none!important}
#dayroom #dr-shared-panel{height:100%;min-height:0;display:flex;flex-direction:column;gap:0;background:var(--dr-panel);overflow:hidden}
#dayroom #dr-shared-panel[hidden]{display:none}
#dayroom #dr-shared-panel .sr-heading{padding:18px 16px;align-items:center;border-bottom:1px solid var(--dr-line);flex:none}
#dayroom #dr-shared-panel .sr-heading h3{font-size:20px;line-height:1.3;margin:0 0 6px;font-weight:750}
#dayroom #dr-shared-panel .sr-heading .dr-hint{font-size:12px}
#dayroom #dr-shared-panel .sr-heading .sr-actions{margin:0;gap:8px;flex-shrink:0}
#dayroom #dr-shared-panel .sr-messages{flex:1;height:auto;min-height:80px;border:0;padding:20px 16px;gap:18px}
#dayroom #dr-shared-panel .sr-message{border:0;border-radius:0;padding:0;max-width:100%;align-self:stretch}
#dayroom #dr-shared-panel .sr-byline{margin-bottom:5px;gap:8px;font-size:12px}
#dayroom #dr-shared-panel .sr-byline strong{font-size:14px}
#dayroom #dr-shared-panel .sr-byline span{background:var(--dr-sunken);padding:2px 7px;border-radius:5px;opacity:1;color:var(--dr-muted);font-size:11px}
#dayroom #dr-shared-panel .sr-text{font-size:15px;line-height:1.6}
#dayroom #dr-shared-panel .sr-message-actions{margin-top:6px;gap:14px}
#dayroom #dr-shared-panel #sr-compose{margin:12px 12px 12px;padding:12px 14px;border:1px solid var(--dr-line-2);border-radius:14px;gap:8px;flex:none;background:var(--dr-field)}
#dayroom #dr-shared-panel #sr-compose textarea{border:0;background:transparent;box-shadow:none;resize:vertical;height:60px;min-height:48px;max-height:130px;padding:4px;font:inherit;line-height:1.5;color:inherit}
#dayroom #dr-shared-panel #sr-compose .sr-actions{margin:0;flex-direction:row-reverse;justify-content:space-between}
#dayroom .sr-compose-hint{font-size:11px;color:var(--dr-muted)}
#dayroom #dr-shared-panel #sr-send{min-height:36px;height:36px;padding:0 18px}
#dayroom #dr-shared-panel .sr-search{margin:16px 16px 0;flex:none}
#dayroom #dr-shared-panel>#sr-status:not(:empty),#dayroom #dr-shared-panel>#sr-error:not(:empty){margin:12px 16px;flex:none}
#dayroom #dr-shared-panel>.sr-actions{margin:8px 16px;flex:none}
#dayroom #dr-shared-panel>.sr-actions:has(#sr-older[hidden]){display:none}
#dayroom #dr-shared-panel>#sr-main{align-self:start;margin:12px 16px 0;flex:none}
#dayroom .dr-shared-navroom{border-radius:9px;width:calc(100% - 8px);margin:2px 4px;gap:10px;min-height:36px;padding:6px 8px;font:inherit;font-size:13px}
#dayroom .dr-shared-navroom:hover{background:var(--dr-hover)}
#dayroom .dr-shared-navroom[aria-current]{background:var(--dr-sel);font-weight:700}
#dayroom .dr-shared-navroom .sr-room-hash{flex:none;color:var(--dr-muted);font-size:18px;font-weight:500}
#dayroom .dr-shared-navroom>span:nth-child(2){flex:1;min-width:0}
#dayroom .dr-shared-navroom .sr-unread{position:static;flex:none;box-shadow:none;min-width:20px;height:20px;line-height:20px;font-size:11px;border-radius:50%;padding:0 5px}
#dayroom[data-shared-room] #dr-roomnav .is-active,#dayroom[data-shared-room] #dr-dmnav .is-active{background:transparent}
#dayroom .dr-shared-overlay .dr-modal{width:min(560px,calc(100vw - 32px))}
#dayroom .dr-shared details{border-top:1px solid var(--dr-line);padding-top:12px}
#dayroom .dr-shared summary{cursor:pointer;font-weight:650;padding:8px 0;list-style:none}
#dayroom .dr-shared summary::-webkit-details-marker{display:none}
#dayroom .dr-shared details[open]>summary{margin-bottom:12px}
#dayroom .sr-orgs li{border:0;border-radius:0;padding:12px 0}
/* Separate companies internally; the following section owns its divider. */
#dayroom .sr-orgs li+li{border-top:1px solid var(--dr-line)}
#dayroom .sr-orgs li>span{color:var(--dr-muted);font-size:13px}
@media(max-width:899px){
 #dayroom #dr-shared-panel .sr-heading{padding:16px;align-items:flex-start;flex-wrap:wrap;gap:12px}
 #dayroom #dr-shared-panel .sr-heading h3{font-size:18px}
 #dayroom #dr-shared-panel .sr-messages{padding:20px 16px}
 #dayroom #dr-shared-panel #sr-compose{margin:8px 12px 12px;padding:10px}
 #dayroom #dr-shared-panel .sr-compose-hint{display:none}
 #dayroom #dr-shared-panel #sr-compose .sr-actions{justify-content:flex-start}
 #dayroom #dr-shared-panel #sr-compose .dr-button{flex:none}
 #dayroom #dr-shared-panel .sr-heading .sr-actions{margin:0}
 #dayroom #dr-shared-panel .sr-byline time{width:auto}
 #dayroom #dr-shared-panel .sr-search{margin:12px 16px 0}
}
#dayroom[data-shared-room] .dr-office-hint-targets{display:none!important}
#dayroom #sr-nav-back{display:none}
#dayroom[data-shared-room] #dr-roomnav .is-on,#dayroom[data-shared-room] #dr-dmnav .is-on{background:transparent}
@media(max-width:899px){#dayroom #dr-shared-panel .sr-heading{display:flex}#dayroom #sr-nav-back{display:block;flex-basis:100%;text-align:left;border:0;padding:0;min-height:30px;background:transparent;color:var(--dr-muted)}#dayroom #dr-shared-panel .sr-heading>.sr-actions{gap:8px;flex-wrap:wrap}#dayroom #dr-shared-panel .sr-heading>.sr-actions .dr-button{flex:none}}

/* Room details: a short overview, a people list, and separate administration. */
#dayroom .sr-details-overlay .dr-modal{width:min(600px,calc(100vw - 32px));max-height:calc(100dvh - 32px)}
#dayroom .sr-details-overlay #dr-modal-title{font-size:21px;line-height:1.3;overflow-wrap:anywhere}
#dayroom .sr-details-overlay #dr-modal-body{padding:0;overflow:auto}
#dayroom .sr-details-overlay .dr-shared,#dayroom #sr-management{gap:0}
#dayroom .sr-details-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;padding:4px 24px 18px;color:var(--dr-muted);font-size:12px}
#dayroom .sr-shared-label{background:var(--dr-sunken);padding:4px 8px;border-radius:6px;color:var(--dr-ink-2);font-weight:650}
#dayroom .sr-detail-tabs{display:flex;gap:24px;padding:0 24px;border-bottom:1px solid var(--dr-line-2)}
#dayroom .sr-detail-tabs [role=tab]{position:relative;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;color:var(--dr-muted);font:inherit;font-weight:650;padding:12px 0;min-height:44px;cursor:pointer}
#dayroom .sr-detail-tabs [aria-selected=true]{color:var(--dr-ink);border-bottom-color:var(--dr-ink)}
#dayroom .sr-detail-tabs [role=tab] span{font-size:11px;padding:2px 6px;border-radius:6px;background:var(--dr-sunken);margin-left:4px}
#dayroom .sr-detail-panel{padding:4px 24px 20px;max-height:360px;min-height:280px;overflow:auto;overscroll-behavior:contain}
#dayroom .sr-detail-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0}
#dayroom .sr-detail-row~.sr-detail-row{border-top:1px solid var(--dr-line)}
#dayroom .sr-detail-row>div{min-width:0}
#dayroom .sr-detail-row .dr-button{flex:none;min-height:36px;height:auto;padding:7px 12px}
#dayroom .sr-detail-row h3{font-size:13px;margin:0 0 6px;font-weight:750}
#dayroom .sr-detail-row p{font-size:13px;overflow-wrap:anywhere}
#dayroom .sr-detail-row p+p{margin-top:5px}
#dayroom .sr-feature-note{font-size:11px;color:var(--dr-muted)!important;padding-top:8px}
#dayroom .sr-member-toolbar{display:flex;flex-wrap:wrap;gap:10px;padding:16px 0}
#dayroom .sr-member-toolbar .dr-button{min-height:38px}
#dayroom .sr-member-list{padding:0;margin:0;list-style:none}
#dayroom .sr-member-list li{display:flex;align-items:center;gap:12px;padding:12px 0}
#dayroom .sr-member-list li>div{display:grid;gap:3px;min-width:0;overflow-wrap:anywhere}
#dayroom .sr-member-list strong{font-size:14px;font-weight:650}
#dayroom .sr-member-list li>div>span{font-size:12px;color:var(--dr-muted)}
#dayroom .sr-person-initials{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:10px;background:var(--dr-sunken);color:var(--dr-ink-2);font-size:12px;font-weight:750}
#dayroom .sr-details-overlay #sr-members-form,#dayroom .sr-details-overlay #sr-rename-form{padding:16px 0}
#dayroom .sr-details-overlay #sr-invitation:empty,#dayroom .sr-details-overlay #sr-confirm:empty,#dayroom .sr-details-overlay #sr-settings-notice:empty{display:none}
#dayroom .sr-details-overlay #sr-invitation:not(:empty){padding:12px;border-radius:10px;background:var(--dr-sunken);margin-bottom:12px}
#dayroom .sr-details-overlay #sr-error:not(:empty){margin:12px 24px}
#dayroom .sr-details-overlay #sr-loading{padding:24px}
#dayroom .sr-danger{color:var(--dr-error-text)}
@media(max-width:520px){#dayroom .sr-details-overlay .dr-modal{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}#dayroom .sr-details-meta{padding-inline:16px}#dayroom .sr-detail-tabs{padding-inline:16px;gap:20px}#dayroom .sr-detail-panel{padding-inline:16px;max-height:calc(100dvh - 230px);min-height:180px}#dayroom .sr-detail-row{gap:12px}#dayroom .sr-detail-row .dr-button{max-width:120px}#dayroom .sr-member-toolbar .dr-button{flex:1} }

/* Message actions share the quiet hover treatment used by ordinary chats. */
#dayroom .sr-message,#dayroom .dw-chat-message{position:relative}
#dayroom .dr-inline-message-tools{position:absolute;z-index:2;right:0;top:0;display:flex;gap:2px;padding:3px;border:1px solid var(--dr-line-2);border-radius:10px;background:var(--dr-panel);opacity:0;pointer-events:none}
#dayroom :is(.sr-message,.dw-chat-message):is(:hover,:focus-within) .dr-inline-message-tools{opacity:1;pointer-events:auto}
#dayroom .dr-message-icon{display:grid;place-items:center;width:32px;height:32px;min-width:32px;padding:0;border:0;border-radius:7px;background:transparent;color:var(--dr-muted);cursor:pointer}
#dayroom .dr-message-icon:hover{color:var(--dr-ink);background:var(--dr-hover)}
#dayroom .dr-message-icon .dr-i{width:17px;height:17px}
#dayroom .sr-delete-confirm{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:12px;font-size:13px}
#dayroom #dr-shared-panel .sr-message-actions:empty{display:none}
#dayroom #dr-shared-panel .sr-byline{padding-right:116px}
#dayroom .dw-chat-message header{padding-right:42px}
@media(hover:none),(pointer:coarse),(max-width:899px){#dayroom .dr-inline-message-tools{position:static;align-self:flex-end;width:fit-content;margin-top:8px;opacity:1;pointer-events:auto}#dayroom .dr-message-icon{width:44px;height:44px}#dayroom #dr-shared-panel .sr-byline,#dayroom .dw-chat-message header{padding-right:0}}

/* A persistent, labelled layout choice, separate from conversation actions. */
#dayroom .dr-layout-switch{display:flex;flex:none;align-self:flex-start;gap:4px;margin:10px 16px 0;padding:4px;border:1px solid var(--dr-line-2);border-radius:12px;background:var(--dr-sunken);max-width:calc(100% - 32px)}
#dayroom .dr-layout-switch button{min-height:36px;padding:6px 14px;border:0;border-radius:8px;background:transparent;color:var(--dr-muted);font:700 13px/1.3 Manrope,sans-serif;cursor:pointer}
#dayroom .dr-layout-switch button:hover{background:var(--dr-hover);color:var(--dr-ink)}
#dayroom .dr-layout-switch button[aria-pressed=true]{background:var(--dr-panel);color:var(--dr-ink);box-shadow:0 1px 3px #0002}
#dayroom .dr-layout-switch button:focus-visible{outline:2px solid var(--dr-muted);outline-offset:2px}
#dayroom[data-office-view=full]:not([data-office-expanded]) .dr-window{display:block}
@media(max-width:899px){
 #dayroom .dr-layout-switch{align-self:stretch;margin:8px 8px 0;max-width:none}
 #dayroom .dr-layout-switch button{flex:1;min-width:0;min-height:40px;padding:6px 4px;font-size:12px}
 #dayroom[data-office-view=full]:not([data-office-expanded]) .dr-window{height:clamp(100px,22dvh,180px);min-height:100px;margin:8px 8px 0}
}
@media(max-height:500px){#dayroom[data-office-view=full]:not([data-office-expanded]) .dr-window{height:100px;min-height:100px}}

/* Short windows scroll the combined view instead of squeezing out the composer. */
@media(max-height:600px){
 #dayroom[data-office-view=full]:not([data-office-expanded]) .dr-main{overflow-y:auto}
 #dayroom[data-office-view=full]:not([data-office-expanded]) .dr-chatcol{flex:none;min-height:320px;height:65dvh}
}

/* Account closure: spacious review, deliberate confirmation, no workspace controls. */
#dayroom .dr-deletion{width:100%;max-width:760px;margin:0 auto;padding:clamp(20px,4vw,40px);color:var(--dr-ink);box-sizing:border-box}
#dayroom .dr-deletion header{margin-bottom:28px}
#dayroom .dr-deletion #dr-deletion-title{scroll-margin-top:clamp(20px,4vw,40px)}
#dayroom .dr-deletion h1{margin:0 0 12px;font-size:clamp(24px,4vw,32px);line-height:1.2;letter-spacing:-.035em}
#dayroom .dr-deletion h2{margin:0 0 8px;font-size:17px;line-height:1.4}
#dayroom .dr-deletion p{margin:8px 0;line-height:1.6;font-size:14px}
#dayroom .dr-deletion-lede{color:var(--dr-muted)}
#dayroom .dr-deletion-outcomes{display:grid;grid-template-columns:1fr 1fr;gap:24px;padding:0 0 24px;border-bottom:1px solid var(--dr-line)}
#dayroom .dr-deletion-outcomes p{color:var(--dr-muted)}
#dayroom .dr-deletion-export{display:flex;gap:24px;justify-content:space-between;align-items:flex-start;padding:24px 0;border-bottom:1px solid var(--dr-line)}
#dayroom .dr-deletion-export>div:last-child{max-width:240px;flex-shrink:0;display:flex;flex-direction:column;align-items:flex-end;text-align:right}
#dayroom .dr-deletion-export p{color:var(--dr-muted)}
#dayroom .dr-deletion-export [role=status]{font-size:12px;max-width:240px}
#dayroom .dr-deletion-workspaces{padding:24px 0;border-bottom:1px solid var(--dr-line)}
#dayroom .dr-deletion-workspaces ul{padding:0;margin:16px 0 0;list-style:none;display:grid;gap:16px}
#dayroom .dr-deletion-workspaces li{display:flex;align-items:center;justify-content:space-between;gap:20px}
#dayroom .dr-deletion-workspaces li>div{min-width:0}
#dayroom .dr-deletion-workspaces strong{display:block;font-size:14px;overflow-wrap:anywhere}
#dayroom .dr-deletion-workspaces span{display:block;margin-top:6px;color:var(--dr-muted);font-size:12px;line-height:1.5}
#dayroom .dr-deletion-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px;align-items:center}
#dayroom .dr-deletion .dr-button{min-height:42px;height:auto;white-space:normal;line-height:1.35;padding:11px 17px;flex-shrink:0}
#dayroom .dr-deletion .dr-button[aria-disabled=true]{opacity:.65;cursor:wait}
#dayroom .dr-deletion .dr-form{margin-top:24px;display:grid;gap:16px}
#dayroom .dr-deletion .dr-form .dr-deletion-actions{margin-top:12px}
#dayroom .dr-deletion .dr-field{display:grid;gap:9px;font-size:14px;line-height:1.5}
#dayroom .dr-deletion input,#dayroom .dr-deletion select{width:100%;max-width:400px;box-sizing:border-box;min-height:44px}
#dayroom .dr-deletion #dr-deletion-confirm{text-transform:uppercase}
#dayroom .dr-deletion-details{padding-top:22px;font-size:13px}
#dayroom .dr-deletion-details summary{cursor:pointer;list-style:none;font-weight:600;width:fit-content;min-height:32px}
#dayroom .dr-deletion-details summary::-webkit-details-marker{display:none}
#dayroom .dr-deletion-details div{padding:4px 0 8px;color:var(--dr-muted)}
#dayroom .dr-deletion-details p{font-size:13px}
#dayroom .dr-deletion-details a{color:inherit;text-decoration:underline;text-underline-offset:3px}
#dayroom .dr-deletion .dr-deletion-error{margin:16px 0 0;color:var(--dr-error-text);font-weight:600;overflow-wrap:anywhere}
#dayroom .dr-deletion .dr-deletion-error:focus{outline:none}
#dayroom .dr-deletion-error:empty{display:none}
#dayroom .dr-deletion-date{display:grid;gap:8px;border-block:1px solid var(--dr-line);padding:24px 0;margin-bottom:24px}
#dayroom .dr-deletion-date span,#dayroom .dr-deletion-date small{font-size:12px;color:var(--dr-muted)}
#dayroom .dr-deletion-date strong{font-size:21px;line-height:1.4}
#dayroom .dr-deletion-pending-card{width:min(760px,100%);max-width:760px;text-align:left;padding:0}
#dayroom .dr-deletion-google-progress p{overflow-wrap:anywhere}
@media(max-width:560px){
 #dayroom .dr-deletion-outcomes{grid-template-columns:1fr;gap:22px}
 #dayroom .dr-deletion-export{display:grid;gap:14px}
 #dayroom .dr-deletion-export>div:last-child{align-items:flex-start;text-align:left}
 #dayroom .dr-deletion-workspaces li{align-items:flex-start;flex-direction:column;gap:12px}
 #dayroom .dr-deletion-actions{flex-direction:column;align-items:stretch}
 #dayroom .dr-deletion-actions .dr-button{width:100%}
 #dayroom .dr-deletion .dr-form{gap:14px}
}

#dayroom .dr-deletion [hidden]{display:none!important}
#dayroom .dr-deletion-pending-card{left:50%;right:auto;top:50%;transform:translate(-50%,-50%);width:min(760px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto}

#dayroom .dr-deletion #dr-deletion-title:focus{outline:none!important;box-shadow:none!important}
#dayroom .dr-modal:has(.dr-deletion){width:min(760px,100%)}
#dayroom #dr-modal-body:has(>.dr-error+.dr-deletion),#dayroom #dr-modal-body:has(>#dr-account-deletion-flow){padding:0}

#dayroom .dr-space-account-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:flex-end}

#dayroom .dr-deletion-blockers{padding:24px 0 0}
#dayroom .dr-deletion-blockers ul{padding-left:20px;display:grid;gap:10px;line-height:1.6;font-size:14px;overflow-wrap:anywhere}

#dayroom .dr-door-card.dr-deletion-pending-card{padding:0}
@media(max-width:560px){#dayroom .dr-settings-screen .dr-deletion{padding:20px 0}}

/* Product rule, 6 November 2026: plain disclosure controls and quiet keyboard focus.
   Loaded last so legacy component-specific accent rings cannot restore green boxes. */
#dayroom{--dr-focus:color-mix(in srgb,var(--dr-ink) 65%,var(--dr-bg))}
#dayroom summary{list-style:none!important;cursor:pointer}
#dayroom summary::marker{content:''}
#dayroom summary::-webkit-details-marker{display:none}
#dayroom svg:has(use[href="#i-chev"]),#dayroom .dr-section-chevron,#dayroom .dr-hub-picker-chev{display:none!important}
#dayroom .dr-companion-transcript>summary::after,#dayroom .dm-thread-message summary::before{display:none!important}
#dayroom select:not([multiple]){appearance:none!important;-webkit-appearance:none!important;background-image:none!important;padding-right:14px}
#dayroom :focus-visible{outline:1px solid var(--dr-focus)!important;outline-offset:2px!important;box-shadow:none!important}
/* Step headings receive focus for screen-reader announcements, not interaction. */
#dayroom .dr-door-h1[tabindex="-1"]:focus{outline:none!important;box-shadow:none!important}
#dayroom :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=image]),textarea,select,[contenteditable=true]):focus{
 outline:none!important;box-shadow:none!important;
}
#dayroom :is(.dr-composer,.dr-app-search,.dr-drive-search .dr-form-row,.dr-gif-search,.dr-inv-field,.dr-inv-copyrow,.dw-chat-composer,.dr-hub-picker,.dr-wp-quickadd,.dr-tile,.dr-door-input,.dr-picture-file):focus-within{
 outline:none!important;box-shadow:none!important;border-color:var(--dr-line)!important;
}
#dayroom .dr-wp-quickadd:focus-within::before{box-shadow:none!important}
#dayroom :is(.dp-custom,.dr-wa-person-check,.dr-import-source,.dr-import-filebox,.dr-wa-drop):has(input:focus-visible){outline:1px solid var(--dr-focus)!important;box-shadow:none!important}
#dayroom summary:focus-visible{text-decoration:underline;text-underline-offset:4px;outline:none!important}
@media(forced-colors:active){
 #dayroom :focus-visible,#dayroom :is(input,textarea,select,[contenteditable=true]):focus{outline:2px solid Highlight!important;outline-offset:2px!important;box-shadow:none!important}
}

/* Layout variables also power the isolated preview without changing saved chats. */
[data-conversation-layout="bubbles"]{--conv-own-direction:row-reverse;--conv-width:min(78%,64ch);--conv-flex:0 1 auto;--conv-bg:var(--dr-sunken);--conv-own-bg:color-mix(in srgb,var(--dr-accent) 8%,var(--dr-panel));--conv-padding:8px 12px;--conv-radius:16px;--conv-shadow:inset 0 0 0 1px var(--dr-line);--conv-own-margin:auto;--conv-peer-margin:auto}
[data-conversation-layout="classic"]{--conv-own-direction:row;--conv-width:100%;--conv-flex:1;--conv-bg:transparent;--conv-own-bg:transparent;--conv-padding:2px 0;--conv-radius:0;--conv-shadow:none;--conv-own-margin:0;--conv-peer-margin:0}
[data-conversation-spacing="comfortable"]{--conv-gap:12px;--conv-row-gap:10px}
[data-conversation-spacing="compact"]{--conv-gap:5px;--conv-row-gap:3px}
[data-conversation-size="small"]{--conv-font:13px}
[data-conversation-size="medium"]{--conv-font:15px}
[data-conversation-size="large"]{--conv-font:18px}
#dayroom[data-conversation-layout] .dr-message-row:not(.dr-photo-grid > *){display:flex;flex-direction:row;gap:10px;margin-top:var(--conv-row-gap);padding:2px 8px}
#dayroom[data-conversation-layout] .dr-message-row.is-own:not(.dr-photo-grid > *){flex-direction:var(--conv-own-direction)}
#dayroom[data-conversation-layout] .dr-message-row:not(.dr-photo-grid > *)>.dr-message-content{flex:var(--conv-flex);max-width:var(--conv-width);padding:var(--conv-padding);border-radius:var(--conv-radius);background:var(--conv-bg);box-shadow:var(--conv-shadow)}
#dayroom[data-conversation-layout] .dr-message-row.is-own:not(.dr-photo-grid > *)>.dr-message-content{background:var(--conv-own-bg)}
#dayroom[data-conversation-layout] .dr-message-row .dr-msghead{position:static;width:auto;height:auto;margin:0 0 3px;padding:0;clip-path:none;overflow:visible;white-space:normal;display:flex;text-align:start}
#dayroom[data-conversation-layout] .dr-message-row .dr-msghead>*{position:static;width:auto;height:auto;margin:0;clip-path:none;overflow:visible;opacity:1}
#dayroom[data-conversation-layout] .dr-message-row .dr-msgmeta{position:static;margin-top:4px}
#dayroom[data-conversation-layout] .dr-message-row .dr-message-body::after{display:none}
#dayroom[data-conversation-layout] :is(.dr-message-body,.dw-chat-message>p,.dr-call-chat-body,.dr-call-chat-body p){font-size:var(--conv-font);line-height:1.55}
#dayroom[data-conversation-layout] :is(.dw-chat-messages,.dr-call-chat-messages){gap:var(--conv-gap)}
#dayroom[data-conversation-layout] :is(.dw-chat-message,.dr-call-chat-msg){max-width:var(--conv-width);padding:var(--conv-padding);border-radius:var(--conv-radius);background:var(--conv-bg);box-shadow:var(--conv-shadow);margin-top:var(--conv-row-gap);margin-left:0;margin-right:var(--conv-peer-margin)}
#dayroom[data-conversation-layout] :is(.dw-chat-message,.dr-call-chat-msg).is-own{margin-left:var(--conv-own-margin);margin-right:0;background:var(--conv-own-bg)}
#dayroom .dr-conversation-options{display:grid;gap:22px}
#dayroom .dr-conversation-options fieldset{border:0;padding:0;margin:0;min-width:0}
#dayroom .dr-conversation-options legend{font-weight:600;margin-bottom:10px}
#dayroom .dr-conversation-choices{display:flex;flex-wrap:wrap;gap:10px}
#dayroom .dr-conversation-choices label{display:flex;align-items:center;gap:8px;padding:10px 14px;border:1px solid var(--dr-line);border-radius:10px;cursor:pointer}
#dayroom .dr-conversation-choices label:has(:checked){background:var(--dr-soft);border-color:var(--dr-muted)}
#dayroom .dr-conversation-choices input{margin:0;width:16px;height:16px;accent-color:var(--dr-accent)}
#dayroom .dr-conversation-preview{border:1px solid var(--dr-line);border-radius:14px;padding:16px;background:var(--dr-panel)}
#dayroom .dr-conversation-options .dr-form-actions{display:flex;gap:12px;flex-wrap:wrap}
@media(max-width:600px){[data-conversation-layout="bubbles"]{--conv-width:86%}#dayroom .dr-conversation-preview{padding:10px}}
#dayroom[data-conversation-layout] :is(.dw-chat-message,.dr-call-chat-msg){align-items:flex-start}
#dayroom[data-conversation-layout] :is(.dw-chat-message>header,.dr-call-chat-head){max-width:100%;justify-content:flex-start}
#dayroom[data-conversation-layout] :is(.dw-chat-message>p,.dr-call-chat-body){max-width:100%;padding:0;border-radius:0;background:none;color:var(--dr-ink);box-shadow:none}
#dayroom .dr-chat-preview-caption{display:grid;gap:5px;margin-bottom:12px}
#dayroom .dr-chat-preview-caption h4{font-size:15px;margin:0}
#dayroom .dr-chat-preview-section .dr-conversation-preview{padding:0;overflow:hidden}
#dayroom .dr-chat-preview-header{display:flex;align-items:center;gap:12px;padding:16px 18px;border-bottom:1px solid var(--dr-line);background:var(--dr-soft)}
#dayroom .dr-chat-preview-header>div{display:grid;gap:4px}
#dayroom .dr-chat-preview-header span{font-size:12px;color:var(--dr-muted)}
#dayroom .dr-chat-preview-messages{padding:12px 10px 20px}
#dayroom .dr-chat-preview-day{text-align:center;color:var(--dr-muted);font-size:12px;margin:0 0 12px}
#dayroom .dr-chat-preview-composer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 18px 18px;padding:12px 14px;border:1px solid var(--dr-line);border-radius:12px;color:var(--dr-muted);font-size:13px}
#dayroom .dr-chat-preview-header>.dr-i,#dayroom .dr-chat-preview-composer>.dr-i{width:20px;height:20px;flex:none}
@media(min-width:1100px){#dayroom .dr-conversation-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 18px}#dayroom .dr-conversation-options>:not(fieldset){grid-column:1/-1}#dayroom .dr-conversation-choices{gap:8px}#dayroom .dr-conversation-choices label{padding:10px}}

/* Seen receipts: one small, quiet line under your latest message, right-aligned. A room's line opens a short list. */
#dayroom .dr-receipt{display:flex;flex-direction:column;align-items:flex-end;margin:0 12px 6px;color:var(--dr-muted);font-size:11px;font-weight:600;line-height:16px;font-variant-numeric:tabular-nums}
#dayroom .dr-receipt-line{max-width:100%;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:right;overflow-wrap:anywhere}
#dayroom button.dr-receipt-line{margin:-4px -6px;padding:4px 6px;border-radius:6px;cursor:pointer}
#dayroom button.dr-receipt-line:hover{color:var(--dr-ink);background:var(--dr-soft)}
#dayroom button.dr-receipt-line:focus-visible{outline:2px solid var(--dr-accent-text);outline-offset:1px}
#dayroom .dr-receipt-list{display:flex;flex-direction:column;gap:6px;width:max-content;min-width:140px;max-width:min(100%,260px);max-height:min(40vh,240px);margin:6px 0 2px;padding:8px 10px;overflow-y:auto;list-style:none;border-radius:10px;background:var(--dr-panel);box-shadow:inset 0 0 0 1px var(--dr-line);color:var(--dr-ink);font-size:12px;font-weight:700;text-align:left}
#dayroom .dr-receipt-list[hidden]{display:none}
#dayroom .dr-receipt-list li{display:flex;align-items:center;gap:8px;min-width:0}
#dayroom .dr-receipt-dp{flex:none;display:block;width:24px;height:24px}
#dayroom .dr-receipt-dp canvas{display:block;width:24px;height:24px;border-radius:6px}
#dayroom .dr-receipt-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:480px){#dayroom .dr-receipt{margin-inline:8px}#dayroom .dr-receipt-list{max-width:100%}}
/* Classic layout puts your own messages on the left too: the line sits under the message text (row padding + portrait + gap), not at the far edge. A photo collection stays right-aligned in classic, so its line does too. */
#dayroom[data-conversation-layout="classic"] .dr-message-row+.dr-receipt{align-items:flex-start;margin-left:56px}#dayroom[data-conversation-layout="classic"][data-person-dm] .dr-message-row+.dr-receipt{margin-left:48px}#dayroom[data-conversation-layout="classic"] .dr-message-row+.dr-receipt .dr-receipt-line{text-align:left}/* Message portraits shrink to 34px at 899px and below (chat-refresh.css). */
@media (max-width:899px){#dayroom[data-conversation-layout="classic"] .dr-message-row+.dr-receipt{margin-left:52px}#dayroom[data-conversation-layout="classic"][data-person-dm] .dr-message-row+.dr-receipt{margin-left:44px}}

/* The switch row in Account settings: the whole row is the click target, and the line under it wraps. */
#dayroom .dr-account-receipts{cursor:pointer}
#dayroom .dr-account-receipts .dr-li-sub{overflow-wrap:anywhere}
/* In the settings screen the card title is inset by the card head's padding; the switch row starts at the same edge. */
#dayroom #dr-overlay.dr-settings-screen #dr-account-receipts-card .dr-li{padding-inline:28px}
@media (max-width:760px){#dayroom #dr-overlay.dr-settings-screen #dr-account-receipts-card .dr-li{padding-inline:20px}}
