.case-workspace-dock{position:fixed;inset:auto 0 0;display:flex;justify-content:space-between;gap:.5rem;padding:.5rem max(.5rem,env(safe-area-inset-right)) max(.5rem,env(safe-area-inset-bottom));background:var(--rw-surface,#faf6ec);color:var(--rw-text,#202020);border-top:2px solid currentColor;z-index:80}
.rw-workspace-enabled{padding-bottom:calc(var(--rw-workspace-dock-height,5.5rem) + 2rem)}.rw-workspace-enabled #rw-comment{z-index:85}
.workspace-editor [hidden],.case-workspace-calendar[hidden]{display:none}
.workspace-editor{max-width:min(42rem,calc(100vw - 2rem));max-height:85dvh;overflow:auto;background:var(--rw-surface,#faf6ec);color:var(--rw-text,#202020)}.workspace-editor form{display:grid;gap:.65rem}.workspace-editor label{display:grid;gap:.25rem}.workspace-editor textarea{width:100%;box-sizing:border-box;font:inherit}.workspace-editor pre{white-space:pre-wrap;overflow-wrap:anywhere}.workspace-editor input,.workspace-editor select,.workspace-editor button{min-height:44px;font:inherit}.workspace-editor::backdrop{background:#0008}
.case-workspace-buttons{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.35rem}.case-workspace-dock button{min-height:44px;padding:.6rem;font:inherit}.case-workspace-surface{position:fixed;inset:8vh 2vw calc(var(--rw-workspace-dock-height,5.5rem) + 1rem);overflow:auto;padding:1rem;z-index:79;background:var(--rw-surface,#faf6ec);color:var(--rw-text,#202020);border:2px solid currentColor;scroll-padding:1rem}.case-workspace-surface[hidden]{display:none}.case-workspace-toolbar{display:flex;flex-wrap:wrap;gap:.5rem}.case-workspace-toolbar input{min-width:8rem}.case-workspace-calendar{display:grid;grid-template-columns:repeat(auto-fit,minmax(8rem,1fr));gap:.5rem;padding:0;list-style:none}.case-workspace-calendar button{width:100%;min-height:44px}.case-workspace-surface button:focus-visible,.case-workspace-dock button:focus-visible{outline:3px solid var(--rw-focus,#986318);outline-offset:3px}@media(max-width:38rem){.case-workspace-dock{display:grid;grid-template-columns:1fr}.case-workspace-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.case-workspace-buttons button{padding:.4rem .15rem;font-size:.875rem;overflow-wrap:normal;white-space:nowrap}.case-workspace-surface{inset:2vh .5rem calc(var(--rw-workspace-dock-height,8rem) + 1rem)}}
/* Stable legacy editor homes: visibility/layout only, never move their nodes. */
.rw-workspace-legacy{position:fixed!important;inset:calc(8vh + var(--rw-workspace-header-height,3rem) + 2rem) calc(2vw + 1rem) calc(var(--rw-workspace-dock-height,5.5rem) + 2rem)!important;width:auto!important;max-height:none!important;z-index:80!important;overflow:auto;background:var(--rw-surface,#faf6ec)}
.rw-workspace-legacy .rw-notebook-surface{height:100%;max-height:none}.rw-workspace-legacy .rw-notebook-columns{display:block}.rw-workspace-legacy [hidden]{display:none!important}
@media(max-width:38rem){.rw-workspace-legacy{inset:calc(2vh + var(--rw-workspace-header-height,3rem) + 2rem) 1.5rem calc(var(--rw-workspace-dock-height,8rem) + 2rem)!important}}
.case-workspace-calendar[hidden]{display:none!important}.calendar-resolution-year,.calendar-resolution-month{grid-template-columns:repeat(3,minmax(0,1fr))}.calendar-overview-period{display:flex;flex-direction:column;gap:.35rem;border:1px solid #888;padding:.5rem}.calendar-resolution-day,.calendar-resolution-week{display:block;overflow:auto}.calendar-weekdays,.calendar-week{display:grid;grid-template-columns:repeat(7,minmax(5rem,1fr));gap:.2rem}.calendar-week{border-top:1px solid #888;min-height:5rem;padding:.3rem 0}.calendar-weekdays{font-size:.85em}.calendar-date{grid-row:1}.calendar-date button{min-height:44px}.calendar-span{overflow-wrap:anywhere;border-left:3px solid #986318;background:#98631818;min-width:0}.calendar-span button{white-space:normal;text-align:left}.calendar-resolution-hour,.calendar-resolution-minute{display:block}.calendar-coarse-band{display:flex;flex-wrap:wrap;gap:.35rem;align-items:center}.calendar-coarse-band h3{flex-basis:100%}.calendar-time-grid{display:grid;grid-template-columns:9rem minmax(12rem,1fr);position:relative;min-width:22rem}.calendar-time-slots{display:grid}.calendar-time-slots button{box-sizing:border-box;height:100%;min-height:0;overflow:auto;text-align:left;border-top:1px solid #888}.calendar-timed-events{position:relative;background:repeating-linear-gradient(to bottom,transparent 0,transparent calc(var(--calendar-slot-px) - 1px),#8886 calc(var(--calendar-slot-px) - 1px),#8886 var(--calendar-slot-px))}.calendar-timed-event{position:absolute;box-sizing:border-box;padding:2px;border:1px solid #986318;background:var(--rw-surface,#faf6ec);overflow:auto;min-height:var(--calendar-card-min-px)}.calendar-timed-event button{min-height:0;text-align:left}.calendar-timed-event small{display:block;font-size:.75rem}@media(max-width:38rem){.calendar-resolution-year,.calendar-resolution-month{grid-template-columns:repeat(2,minmax(0,1fr))}}

.case-workspace-header{display:flex;align-items:center;justify-content:space-between;gap:1rem}.case-workspace-header h2{margin:0;min-width:0}.case-workspace-header button{flex:none;min-height:44px;font:inherit}

/* Compact tools retain accessible names; labels appear on hover or keyboard focus. */
.case-workspace-dock{display:flex;align-items:center;gap:.35rem}
.case-workspace-buttons{display:flex;flex-wrap:nowrap;width:auto;gap:.35rem}
.case-workspace-dock button{position:relative;display:grid;place-items:center;flex:none;box-sizing:border-box;width:44px;height:44px;min-width:44px;min-height:44px;padding:7px;font-size:0;white-space:nowrap}
.case-workspace-dock button svg{display:block;width:28px;height:28px}
.case-workspace-dock button::after{content:attr(aria-label);position:absolute;bottom:calc(100% + .6rem);left:50%;transform:translateX(-50%);padding:.35rem .5rem;font:500 .875rem/1.3 system-ui,sans-serif;white-space:nowrap;background:var(--rw-surface,#faf6ec);color:var(--rw-text,#202020);border:1px solid currentColor;border-radius:.2rem;opacity:0;pointer-events:none;z-index:1}
.case-workspace-dock button:hover::after,.case-workspace-dock button:focus-visible::after{opacity:1}
.case-workspace-dock>button::after{left:0;transform:none}.case-workspace-buttons>button:last-child::after{left:auto;right:0;transform:none}
.case-workspace-dock button[aria-expanded=true]{background:var(--rw-selected,#98631822)}
.case-workspace-dock button[aria-expanded=true] .rw-icon-active{opacity:1}

/* One nonmodal shell; the left source finder may coexist only when geometry permits. */
.case-workspace-surface{inset:auto var(--rw-overlay-right,8px) var(--rw-overlay-bottom,76px) auto;box-sizing:border-box;width:var(--rw-overlay-width,min(36rem,calc(100vw - 16px)));height:var(--rw-overlay-height,min(38rem,calc(100dvh - 96px)));padding:1rem;display:flex;flex-direction:column;overflow:hidden;gap:.6rem}
.case-workspace-surface[hidden]{display:none}.case-workspace-header{flex:none;gap:.5rem}.case-workspace-header h2{flex:1;overflow-wrap:anywhere}.case-workspace-header [hidden]{display:none}.case-workspace-body{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain}.case-workspace-surface>[role=status]:empty{display:none}
.workspace-editor-inline{box-sizing:border-box;width:100%;max-width:none;max-height:none;padding:0;border:0;overflow:visible}.workspace-editor-inline textarea{min-height:14rem;resize:vertical}.workspace-editor-inline .actions{display:flex;flex-wrap:wrap;gap:.4rem}
.rw-workspace-legacy,.rw-workspace-enabled #rw-comment{inset:auto var(--rw-overlay-right,8px) calc(var(--rw-overlay-bottom,76px) + 1rem) auto!important;box-sizing:border-box;width:calc(var(--rw-overlay-width,36rem) - 2rem)!important;height:calc(var(--rw-overlay-height,38rem) - var(--rw-workspace-header-height,3rem) - 2.6rem)!important;max-height:none!important;transform:translateX(-1rem);border:0!important;box-shadow:none!important;overflow:auto}
.rw-workspace-enabled #rw-comment{z-index:81}.rw-workspace-enabled #rw-comment>.rw-floating-header{display:none}.rw-workspace-comment-open .rw-workspace-legacy{visibility:hidden}.rw-workspace-enabled .cms-stage-source-index>summary{display:none}
.rw-workspace-enabled .cms-stage-source-index[open] nav{position:fixed;inset:auto auto var(--rw-overlay-bottom,76px) var(--rw-overlay-left,8px);box-sizing:border-box;width:var(--rw-evidence-width,24rem);max-height:var(--rw-overlay-height,38rem);overflow:auto;z-index:82;padding:1rem;background:var(--rw-surface,#faf6ec);color:var(--rw-text,#202020);border:2px solid currentColor}

.case-workspace-header .workspace-dismiss{box-sizing:border-box;flex:none;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:0;background:transparent;color:inherit;box-shadow:none;font:400 1rem/1 system-ui;cursor:pointer;position:relative}
.workspace-dismiss:focus-visible{outline:2px solid currentColor;outline-offset:-6px}.workspace-dismiss::after{content:attr(aria-label);position:absolute;right:0;top:100%;font:.8rem/1.3 system-ui;white-space:nowrap;padding:.3rem;background:var(--rw-surface,#faf6ec);color:inherit;border:1px solid currentColor;opacity:0;pointer-events:none;z-index:2}.workspace-dismiss:hover::after,.workspace-dismiss:focus-visible::after{opacity:1}

.case-workspace-header button[data-workspace-back]{box-sizing:border-box;width:44px;min-width:44px;height:44px;padding:0;border:0;background:transparent;color:inherit;font:400 1rem/1 system-ui;cursor:pointer}
.cms-stage-source-index nav>.case-workspace-header{position:sticky;top:-1rem;z-index:1;background:var(--rw-surface,#faf6ec);padding-block:.5rem}
.case-workspace-body:has(>.workspace-editor-inline){display:flex;flex-direction:column}.workspace-editor-inline{display:flex;flex-direction:column;flex:1;min-height:0}.workspace-editor-inline>div:first-of-type{display:flex;flex-direction:column;flex:1;min-height:0}.workspace-editor-inline textarea{flex:1;min-height:10rem;height:100%;resize:vertical}

/* Chronology first; the optional calendar is an interval picker, never an editor. */
.timeline-primary-actions,.timeline-period-navigation,.timeline-selection-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;margin-block:.5rem}
.timeline-primary-actions button,.timeline-primary-actions select,.timeline-period-navigation button,.timeline-selection-actions button,.timeline-period-strip button,.timeline-dates button,.timeline-agenda button{min-height:44px;min-width:44px}
.timeline-primary-actions select{margin-inline-start:auto;max-width:100%}
.timeline-period-navigation p{flex:1;margin:0;overflow-wrap:anywhere}
.timeline-period-strip{display:flex;gap:.4rem;overflow-x:auto;max-width:100%;padding:.3rem 0 .7rem;scrollbar-width:thin}
.timeline-period-strip button{flex:0 0 auto;white-space:nowrap}
.timeline-period-strip button[aria-pressed=true]{outline:2px solid currentColor;outline-offset:-3px;font-weight:700}
.timeline-agenda ul{padding-inline-start:0;list-style:none}
.timeline-agenda li{padding:.65rem .5rem;border-block-end:1px solid var(--line,#8886);overflow-wrap:anywhere}
.timeline-agenda li p{white-space:pre-wrap;margin:.3rem 0}
.timeline-dates form{display:grid;gap:.6rem}
.timeline-dates input,.timeline-dates select{box-sizing:border-box;width:100%;min-height:44px}
.workspace-editor [hidden]{display:none!important}

.timeline-agenda li small,.timeline-agenda li strong{display:block}
.timeline-primary-actions{display:grid;grid-template-columns:auto auto minmax(0,1fr);gap:.3rem}
.timeline-primary-actions button{padding-inline:.55rem;font-size:.85rem}
.timeline-primary-actions select{min-width:0;width:100%;max-width:9rem;justify-self:end;margin:0;padding-inline:.25rem;font-size:.85rem}

/* Focused visual polish: utility windows, leaving the authored Reader untouched. */
.case-workspace-surface,.rw-workspace-enabled .cms-stage-source-index[open] nav{--rw-overlay-pad:12px;background:var(--rw-surface,#fcfaf5);color:var(--rw-text,#25251f);border:1px solid #b5b3a8;border-radius:4px;box-shadow:0 6px 22px #00000014,0 1px 3px #00000012;font:400 16px/1.45 system-ui,sans-serif}
.case-workspace-surface{padding:var(--rw-overlay-pad);gap:8px}.case-workspace-header{min-height:44px;gap:4px}.case-workspace-header h2{font:600 22px/1.2 Georgia,serif;margin:0}.case-workspace-body{scroll-padding:8px}.case-workspace-header button,.workspace-editor .actions button{border-radius:4px;background:transparent;color:inherit;box-shadow:none;border:1px solid transparent;min-height:44px}
.case-workspace-header button:hover,.workspace-editor .actions button:hover{background:#79796a14}.case-workspace-header button:active,.workspace-editor .actions button:active{background:#79796a25}.case-workspace-header button:focus-visible,.workspace-editor button:focus-visible{outline:2px solid var(--rw-focus,#1a6272);outline-offset:-4px}
.case-workspace-dock{padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px));gap:4px;border-top:1px solid #b5b3a8;background:var(--rw-surface,#fcfaf5)}.case-workspace-buttons{gap:4px}.case-workspace-dock button{background:transparent;color:var(--rw-text,#25251f);border:1px solid transparent;border-radius:4px;opacity:1}.case-workspace-dock button:hover{background:#79796a14}.case-workspace-dock button[aria-expanded=true]{color:var(--rw-text,#174f5d);background:#42728118;border-color:#42728188;box-shadow:inset 0 -2px #427281}.case-workspace-dock button svg{opacity:1}
.case-workspace-dock button::after,.workspace-dismiss::after{font:400 12px/1.35 system-ui,sans-serif;padding:6px 8px;border:1px solid #b5b3a8;border-radius:3px;box-shadow:0 2px 6px #0001}
.case-workspace-header button[data-workspace-back]{font-size:18px}.case-workspace-header button[data-workspace-back]:focus-visible{outline:2px solid var(--rw-focus,#1a6272);outline-offset:-4px}
.case-workspace-body input,.case-workspace-body select,.workspace-editor input,.workspace-editor select,.workspace-editor textarea{font:400 16px/1.45 system-ui,sans-serif;border:1px solid #b5b3a8;border-radius:3px;box-sizing:border-box;background:var(--rw-surface,#fffdf9);color:inherit;padding:8px}.case-workspace-body input[type=search]{width:100%;min-height:44px;margin-bottom:8px}
.workspace-editor textarea{padding:10px;font-size:16px;line-height:1.5}.workspace-editor textarea:focus-visible,.case-workspace-body input:focus-visible,.case-workspace-body select:focus-visible{outline:2px solid var(--rw-focus,#1a6272);outline-offset:1px}.workspace-editor [role=status]{font:400 13px/1.4 system-ui,sans-serif;min-height:1.4em;margin:8px 0 0}.workspace-editor [role=status]:empty{min-height:0;margin:0}
.workspace-editor .actions{gap:4px;flex-wrap:wrap}.workspace-editor .actions button[data-symbol-action]{width:44px;min-width:44px;height:44px;padding:0;font:400 20px/1 system-ui,sans-serif;position:relative}.workspace-editor button svg{display:block;margin:auto}.workspace-editor .actions button[data-symbol-action]::after{content:attr(aria-label);position:absolute;left:0;bottom:100%;background:var(--rw-surface,#fcfaf5);border:1px solid #b5b3a8;padding:5px 7px;border-radius:3px;white-space:nowrap;font:12px/1.35 system-ui;opacity:0;pointer-events:none;z-index:2}.workspace-editor .actions button[data-symbol-action]:hover::after,.workspace-editor .actions button[data-symbol-action]:focus-visible::after{opacity:1}
.workspace-editor [data-confirm-private-action]{flex-basis:100%;padding:10px;border:1px solid #b5b3a8;border-radius:3px;background:#79796a0a}.workspace-editor [data-confirm-private-action] p{margin:0 0 8px}.workspace-editor [data-confirm-action]{width:auto!important;min-width:88px;padding:8px 12px!important;border-color:#b5b3a8!important;font:500 14px/1.3 system-ui!important}.workspace-editor [data-confirm-action]::after{display:none}
.case-workspace-body ul:has([data-character-id]){list-style:none;padding:0;margin:0}.case-workspace-body button[data-character-id]{width:100%;min-height:44px;padding:8px 10px;border:0;border-bottom:1px solid #b5b3a844;border-radius:0;background:transparent;color:inherit;font:400 16px/1.4 system-ui;text-align:left;display:flex;align-items:center;justify-content:space-between;gap:8px}.case-workspace-body button[data-character-id]::after{content:'›';font-size:20px;opacity:.65}.case-workspace-body button[data-character-id]:hover{background:#79796a10}
.rw-workspace-legacy,.rw-workspace-enabled #rw-comment{width:calc(var(--rw-overlay-width,36rem) - 24px)!important;height:calc(var(--rw-overlay-height,38rem) - var(--rw-workspace-header-height,44px) - 32px)!important;bottom:calc(var(--rw-overlay-bottom,76px) + 12px)!important;transform:translateX(-12px);background:var(--rw-surface,#fcfaf5)!important;font:16px/1.45 system-ui,sans-serif}
.rw-workspace-legacy .rw-notebook-surface{border:0;box-shadow:none;padding:0;display:flex;flex-direction:column;background:transparent}.rw-workspace-legacy .rw-notebook-columns{flex:1;min-height:0}.rw-workspace-legacy .rw-notebook-notes,.rw-workspace-legacy .rw-notebook-notes>div{height:100%;display:flex;flex-direction:column;flex:1;min-height:0}.rw-workspace-legacy .rw-notebook-notes label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.rw-workspace-legacy .rw-notebook-notes textarea{flex:1;min-height:12rem;max-height:none;width:100%;box-sizing:border-box;padding:10px;border:1px solid #b5b3a8;border-radius:3px;font:16px/1.5 system-ui,sans-serif;color:inherit;background:var(--rw-surface,#fffdf9)}.rw-workspace-legacy [role=status]{font:13px/1.4 system-ui,sans-serif;margin-block:8px}.rw-notebook-comments>h3:first-child{display:none}.rw-workspace-enabled #rw-comment blockquote{border-left:2px solid #b5b3a8;margin:8px 0;padding-left:10px;max-height:8rem;overflow:auto;font:14px/1.45 system-ui,sans-serif}
.rw-workspace-enabled .cms-stage-source-index[open] nav{padding:0;scroll-padding-top:60px}.cms-stage-source-index nav>.case-workspace-header{top:0;padding:8px 12px;background:var(--rw-surface,#fcfaf5);border-bottom:1px solid #b5b3a866}.cms-stage-source-index nav h3{font:600 14px/1.3 system-ui,sans-serif;margin:12px 12px 6px}.cms-stage-source-index nav ul{list-style:none;padding:0 6px 8px;margin:0}.cms-stage-source-index nav li{margin:0}.cms-stage-source-index nav a{display:block;box-sizing:border-box;min-height:44px;padding:10px 8px;border-radius:3px;font:400 15px/1.4 system-ui,sans-serif;color:var(--rw-link,#245b68);text-decoration:none}.cms-stage-source-index nav a:hover,.cms-stage-source-index nav a:focus-visible{background:#42728112;text-decoration:underline;text-underline-offset:3px}.cms-stage-source-index nav a:focus-visible{outline:2px solid var(--rw-focus,#1a6272);outline-offset:-2px}
.rw-workspace-enabled [data-workbook-panel=notes]{display:none}.timeline-primary-actions button,.timeline-period-navigation button,.timeline-selection-actions button,.timeline-period-strip button{background:transparent;color:inherit;border:1px solid #b5b3a8;border-radius:3px;font:14px/1.35 system-ui;padding:6px 10px}.timeline-agenda li{border-color:#b5b3a866;padding:10px 2px}.timeline-agenda li small{font:12px/1.4 system-ui;color:inherit;opacity:.75}.timeline-agenda li strong{font:600 15px/1.4 system-ui}.timeline-agenda li p{font:14px/1.45 system-ui;margin:4px 0}
.workspace-editor-inline:has(form){display:block}.workspace-editor-inline:has(form)>div:first-of-type{display:block}.workspace-editor-inline:has(form) textarea{height:10rem;min-height:8rem;flex:none}
@media(max-width:38rem){.case-workspace-surface{padding:8px}.case-workspace-header h2{font-size:20px}.rw-workspace-legacy,.rw-workspace-enabled #rw-comment{width:calc(var(--rw-overlay-width,36rem) - 16px)!important;height:calc(var(--rw-overlay-height,38rem) - var(--rw-workspace-header-height,44px) - 24px)!important;bottom:calc(var(--rw-overlay-bottom,76px) + 8px)!important;transform:translateX(-8px)}.cms-stage-source-index nav>.case-workspace-header{padding:6px 8px}}

/* Align actual retained editor/list wrappers with the shared shell. */
.rw-workspace-legacy .rw-notebook-notes form.workbook-note{display:flex;flex-direction:column;flex:1;min-height:0}.rw-workspace-legacy .rw-notebook-notes form.workbook-note textarea{flex:1;height:auto;min-height:12rem}.rw-workspace-legacy .rw-notebook-comments>.rw-comments-list>h3{display:none}.rw-workspace-legacy .rw-notebook-image-comments>summary{font:500 14px/1.4 system-ui,sans-serif;min-height:44px;padding-block:10px;box-sizing:border-box}
.rw-workspace-enabled .cms-stage-source-index nav>h3{margin:12px 12px 6px!important}.rw-workspace-enabled .cms-stage-source-index nav>a{margin-inline:6px;padding:10px 8px}
.case-workspace-body button[data-workspace-icon-action]{position:relative;width:44px;min-width:44px;height:44px;box-sizing:border-box;padding:0;font:20px/1 system-ui;display:inline-grid;place-items:center}.case-workspace-body button[data-workspace-icon-action] svg{width:20px;height:20px}.case-workspace-body button[data-workspace-icon-action]::after,.case-workspace-header button[data-workspace-back]::after{content:attr(aria-label);position:absolute;left:0;bottom:100%;padding:5px 7px;border:1px solid #b5b3a8;border-radius:3px;background:var(--rw-surface,#fcfaf5);color:inherit;font:12px/1.35 system-ui;white-space:nowrap;pointer-events:none;opacity:0;z-index:2}.case-workspace-body button[data-workspace-icon-action]:hover::after,.case-workspace-body button[data-workspace-icon-action]:focus-visible::after,.case-workspace-header button[data-workspace-back]:hover::after,.case-workspace-header button[data-workspace-back]:focus-visible::after{opacity:1}

.workspace-editor textarea:focus-visible,.rw-workspace-legacy textarea:focus-visible{outline:2px solid var(--rw-focus,#1a6272);outline-offset:-2px}.workspace-editor [data-confirm-cancel]{width:auto!important;min-width:88px;padding:8px 12px!important;border-color:#b5b3a8!important;font:500 14px/1.3 system-ui!important}.workspace-editor [data-confirm-cancel]::after{display:none}

.rw-delete-confirmation{padding:.75rem;border:1px solid currentColor;margin-top:.5rem}
.rw-delete-confirmation button{min-height:44px;margin:.25rem}

/* Keep first-row action labels inside the clipping boundary of the panel. */
.timeline-primary-actions button[data-workspace-icon-action]::after,.case-workspace-header button[data-workspace-back]::after{top:calc(100% + 4px);bottom:auto}

.case-workspace-header button[data-workspace-back]{position:relative}.workspace-editor textarea,.rw-workspace-legacy textarea,.case-workspace-body input,.case-workspace-body select{border-color:var(--rw-border,#77756c)}.case-workspace-dock button[aria-expanded=true]{border-color:var(--rw-focus,#176083);box-shadow:inset 0 -2px var(--rw-focus,#176083)}

/* Shared Reader layers: tools <=82, source preview90, short labels100. */
:root{--rw-layer-source-preview:90;--rw-layer-control-label:100}
.rw-source-tooltip{z-index:var(--rw-layer-source-preview)!important}
.workspace-floating-tooltip{position:fixed;z-index:var(--rw-layer-control-label);max-width:calc(100vw - 16px);padding:6px 8px;border:1px solid var(--rw-border);border-radius:3px;background:var(--rw-surface);color:var(--rw-text);font:12px/1.35 system-ui;box-shadow:0 2px 6px #0002}
.workspace-floating-tooltip[hidden],.workspace-label-portaled::after{display:none!important}
.workspace-editor [hidden]{display:none!important}
.timeline-simple-controls,.timeline-simple-navigation{display:flex;align-items:center;gap:6px;margin-bottom:10px;flex-wrap:wrap}.timeline-simple-navigation h3{flex:1;text-align:center;font:600 16px/1.3 system-ui;margin:0}.timeline-simple-controls button,.timeline-simple-navigation button{min-height:44px}.timeline-simple-controls button[aria-pressed=true]{border-color:var(--rw-focus);background:var(--rw-elevated)}
.timeline-simple-calendar{margin-bottom:14px}.timeline-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}.timeline-overview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.timeline-weekday{text-align:center;font:12px/1.5 system-ui;padding:4px}.timeline-day{min-width:0;min-height:70px;border:1px solid var(--rw-line);border-radius:3px;padding:2px}.timeline-day>button{width:100%;min-height:44px;padding:4px;text-align:left;background:transparent;color:inherit;border:0}.timeline-adjacent-day{opacity:.6}.timeline-day-notes button{display:block;max-width:100%;width:100%;min-height:32px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;font:12px/1.3 system-ui;padding:4px;border:0;border-left:2px solid var(--rw-focus);background:var(--rw-elevated);color:inherit;margin:2px 0}.timeline-empty-hint{font:14px/1.5 system-ui;color:var(--rw-muted)}.timeline-simple-date-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px}.timeline-simple-date-fields input{min-width:0;width:100%;box-sizing:border-box}.timeline-legacy-date{font:14px/1.45 system-ui}.timeline-legacy-date pre{white-space:pre-wrap}
@media(max-width:38rem){.timeline-day{min-height:52px;padding:0}.timeline-day>button{font-size:12px}.timeline-day-notes .timeline-event-preview{font-size:0;min-height:5px;height:5px;padding:0}.timeline-simple-date-fields{grid-template-columns:1fr}.timeline-simple-navigation h3{font-size:14px}}

.timeline-day:has([data-event-count]:not([data-event-count="0"])){border-color:var(--rw-focus);background:color-mix(in srgb,var(--rw-focus) 12%,var(--rw-surface))}.timeline-day-count{display:block;font:600 12px/1.3 system-ui;color:var(--rw-text);padding:0 5px 4px}.timeline-day>button:focus-visible{outline:2px solid var(--rw-focus);outline-offset:-3px}.timeline-day:focus-within{border-color:var(--rw-focus)}

.timeline-simple-controls button[aria-pressed=true]{color:var(--rw-text)}.timeline-simple-calendar[aria-busy=true]{opacity:.65}

.timeline-grid-row{display:contents}

/* R23: compact calendar views; list and recovery live in List only. */
.timeline-zoom{display:flex;align-items:center;justify-content:flex-end;gap:5px;margin-bottom:10px}.timeline-zoom button,[data-calendar-command]{min-width:44px;min-height:44px;font-size:18px}.timeline-zoom [data-calendar-resolution]{min-width:54px;text-align:center;font:600 14px/1.3 system-ui}.timeline-zoom [data-calendar-command=reset]{margin-left:5px}.timeline-simple-navigation button::after,.timeline-zoom button::after{display:none!important}.timeline-calendar-week .timeline-day{min-height:180px}.timeline-calendar-note{display:block;min-height:44px;max-width:100%;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;font:14px/1.4 system-ui;padding:8px;border:1px solid var(--rw-line);border-left:3px solid var(--rw-focus);border-radius:3px;background:var(--rw-elevated);color:var(--rw-text);margin:4px 0}.timeline-day-band{margin-bottom:18px}.timeline-day-band h4{font:600 14px/1.4 system-ui;margin:0 0 6px}.timeline-time-row{display:grid;grid-template-columns:58px minmax(0,1fr);gap:7px;align-items:center}.timeline-entry-time{font:14px/1.3 system-ui;color:var(--rw-muted)}.timeline-time-rail{border-left:1px solid var(--rw-line);padding-left:6px}.timeline-calendar-notice{font:14px/1.4 system-ui}.timeline-calendar-notice:empty{display:none}.timeline-calendar-week .timeline-day-notes .timeline-calendar-note{font-size:12px;padding:4px;min-height:32px}@media(max-width:38rem){.timeline-calendar-week .timeline-day{min-height:130px}.timeline-zoom{justify-content:flex-start}.timeline-calendar-week .timeline-day-notes .timeline-calendar-note{font-size:11px}.timeline-time-row{grid-template-columns:48px minmax(0,1fr)}}

/* Fit ordinary calendars without clipping notes or shrinking interactive targets. */
.case-workspace-body:has(>.timeline-simple-calendar){display:flex;flex-direction:column;gap:6px}
.case-workspace-body:has(>.timeline-simple-calendar)>.timeline-simple-controls,.case-workspace-body:has(>.timeline-simple-calendar)>.timeline-simple-navigation,.case-workspace-body:has(>.timeline-simple-calendar)>.timeline-zoom{flex:none;margin-bottom:0}
.timeline-simple-navigation{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;width:100%;gap:6px}
.timeline-zoom{display:grid;grid-template-columns:44px minmax(0,1fr) 44px 44px;width:100%;gap:6px;box-sizing:border-box}
.timeline-zoom [data-calendar-command=reset]{margin-left:0}
.timeline-simple-navigation button,.timeline-zoom button{box-sizing:border-box;width:44px;min-width:44px;padding:0}
.timeline-calendar-month,.timeline-calendar-year{flex:1;margin-bottom:0;min-height:calc(var(--timeline-rows)*46px)}
.timeline-calendar-month{grid-template-rows:26px repeat(var(--timeline-rows),minmax(44px,1fr));min-height:calc(26px + var(--timeline-rows)*46px)}
.timeline-calendar-year{grid-template-rows:repeat(var(--timeline-rows),minmax(44px,1fr))}
.timeline-calendar-month .timeline-day,.timeline-calendar-year .timeline-day{min-height:0;padding:0;position:relative}
.timeline-calendar-month .timeline-day>button,.timeline-calendar-year .timeline-day>button{height:100%;box-sizing:border-box;padding:5px;align-content:start}
.timeline-calendar-month .timeline-day-count,.timeline-calendar-year .timeline-day-count{position:absolute;right:4px;bottom:3px;padding:0;pointer-events:none}
.timeline-calendar-month .timeline-day-notes,.timeline-calendar-year .timeline-day-notes{height:0}
.timeline-calendar-week{margin-bottom:0}
.case-workspace-body>.timeline-simple-navigation,.case-workspace-body>.timeline-zoom{width:100%;align-self:stretch;background:rgba(121,121,106,.08)}
.timeline-simple-navigation h3{font-size:18px}.timeline-zoom [data-calendar-resolution]{font-size:16px}

/* R25: loading overlays never take layout space; List shares Day cards. */
.case-workspace-body:has(>.timeline-agenda){display:flex;flex-direction:column;gap:6px}.case-workspace-body:has(>.timeline-agenda)>.timeline-simple-controls{flex:none;margin-bottom:0}.timeline-agenda{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}.timeline-calendar-day{flex:1;min-height:80px}.timeline-list-day{margin:0 0 20px}.timeline-list-day>h4{font:600 17px/1.4 system-ui;margin:8px 0 10px}.timeline-list-day .timeline-day-band :is(h4,h5){font-size:13px;color:var(--rw-muted)}.timeline-grouped-list .timeline-calendar-note{margin-block:4px}
.timeline-entry-time{text-align:center}
.timeline-time-row{grid-template-columns:80px minmax(0,1fr)}.timeline-entry-time{white-space:nowrap}

/* Small interaction cues belong to controls, never to passive notebook text. */
.case-workspace-body :is(button,a[href],summary):not(:disabled):not([aria-disabled="true"]):focus-visible,
.rw-workspace-legacy :is(button,a[href],summary):not(:disabled):not([aria-disabled="true"]):focus-visible,
.rw-workspace-enabled #rw-comment :is(button,a[href],summary):not(:disabled):not([aria-disabled="true"]):focus-visible,
.rw-workspace-enabled .rw-notebook-surface :is(button,a[href],summary):not(:disabled):not([aria-disabled="true"]):focus-visible,
.rw-workspace-enabled button:is([data-panel],[data-workbook-panel]):not(:disabled):not([aria-disabled="true"]):focus-visible{
 outline:3px solid var(--rw-focus,#176083);outline-offset:-4px;
}
@media (hover:hover) and (pointer:fine){
 /* The transparent wash adds to event/today/selected tile state beneath it. */
 .timeline-day>button[data-timeline-day]:enabled:not([aria-disabled="true"]):hover{
  background-color:color-mix(in srgb,var(--rw-focus,#176083) 9%,transparent);
 }
 .timeline-day:has(>button[data-timeline-day]:enabled:not([aria-disabled="true"]):hover){
  border-color:var(--rw-focus,#176083);
 }
 :where(.case-workspace-surface,.rw-workspace-legacy,.rw-workspace-enabled #rw-comment,.rw-workspace-enabled .rw-notebook-surface) :is(button,a[href],summary):not(:disabled):not([aria-disabled="true"]):not([data-timeline-day]):not([aria-pressed="true"]):not([aria-selected="true"]):not([aria-current]):hover,
 .rw-workspace-enabled button:is([data-panel],[data-workbook-panel]):not(:disabled):not([aria-disabled="true"]):not([aria-pressed="true"]):not([aria-selected="true"]):not([aria-current]):hover{
  background-color:color-mix(in srgb,var(--rw-focus,#176083) 9%,var(--rw-surface,#fcfaf5));
 }
 /* Selected controls keep their fill; the inset cue does not change geometry. */
 :where(.case-workspace-surface,.rw-workspace-legacy,.rw-workspace-enabled #rw-comment,.rw-workspace-enabled .rw-notebook-surface) :is(button,a[href],summary):not(:disabled):not([aria-disabled="true"]):is([aria-pressed="true"],[aria-selected="true"],[aria-current]):hover:not(:focus-visible),
 .rw-workspace-enabled button:is([data-panel],[data-workbook-panel]):not(:disabled):not([aria-disabled="true"]):is([aria-pressed="true"],[aria-selected="true"],[aria-current]):hover:not(:focus-visible){
  outline:1px solid var(--rw-focus,#176083);outline-offset:-4px;
 }
}
