/* styles.css */
@font-face{font-family:Manrope;src:url('/familum/fonts/manrope-latin.woff2') format('woff2');font-style:normal;font-weight:400 700;font-display:swap}

@font-face{font-family:Newsreader;src:url('/familum/fonts/newsreader-latin.woff2') format('woff2');font-style:normal;font-weight:400 600;font-display:swap}

:root{--paper:#f6f7f9;--surface:#ffffff;--ink:#18212f;--text:#263448;--muted:#626e80;--line:#edf0f4;--green:#263448;--green-soft:#f6f7f9;--amber:#626e80;--amber-soft:#edf0f4;--red:#626e80;--red-soft:#f6f7f9;--sidebar:#18212f;--sidebar-text:#dce1e8;--radius:10px;--side-width:228px;--shadow:0 5px 20px #18212f05;font-family:Manrope,sans-serif;font-size:13px;color:var(--text);background:var(--paper);font-synthesis:none}

*{box-sizing:border-box}
body{margin:0;min-width:320px}
button,input,select,textarea{font:inherit}
button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}
button,a{touch-action:manipulation}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.5}
a{color:inherit;text-decoration:none}
button{color:inherit}
svg{flex-shrink:0;vertical-align:middle}
h1,h2,h3,p{margin:0}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #626e80;outline-offset:3px}
::selection{background:#edf0f4}
button{border:0;background:none}
.skip-link{position:fixed;left:260px;top:-100px;z-index:1000;padding:12px;background:var(--surface);border:2px solid var(--green)}
.skip-link:focus{top:8px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.initial-loading{height:100vh;display:grid;place-content:center;text-align:center;gap:20px;color:var(--muted)}
.initial-mark{font-family:var(--font-ui);font-size:65px;color:var(--green)}

.sidebar{position:fixed;inset:0 auto 0 0;width:var(--side-width);background:var(--sidebar);color:var(--sidebar-text);padding:34px 16px 22px;display:flex;flex-direction:column;z-index:30}
.brand{display:flex;align-items:center;gap:11px;padding:0 15px;margin-bottom:47px;color:#f6f7f9}
.brand-mark{width:33px;height:35px;border:1px solid #18212f6b;display:grid;place-items:center;font:600 29px/1.3 var(--font-ui);border-radius:1px;box-shadow:3px 3px 0 -1px var(--sidebar),3px 3px 0 #18212f4a}
.brand-title{font:600 27px/1.3 var(--font-ui);letter-spacing:-.5px}
.brand-subtitle{font-size:12px;text-transform:uppercase;letter-spacing:2.2px;color:#626e80;margin-top:4px}
.nav-group-label{font-size:12px;text-transform:uppercase;letter-spacing:1.8px;color:#626e80;padding:0 16px;margin:0 0 12px}
.nav-group+.nav-group{margin-top:30px}
.nav-link{width:100%;display:flex;align-items:center;gap:12px;padding:12px 15px;border-radius:6px;font-size:12px;font-weight:500;text-align:left;margin-bottom:4px;transition:background .15s,color .15s}
.nav-link:hover{background:#18212f08;color:#edf0f4}
.nav-link.active{background:#263448;color:#f6f7f9;box-shadow:inset 2px 0 #dce1e8}
.nav-link.active svg{color:#dce1e8}
.nav-count{font-size:12px;margin-left:auto;background:#18212f3d;border-radius:4px;padding:1px 6px;color:#dce1e8;min-width:20px;text-align:center}
.sidebar-bottom{margin-top:auto;padding:24px 12px 0}
.provider-mini{display:flex;align-items:center;gap:10px;border-top:1px solid #18212f1c;padding-top:20px}
.provider-mini strong{display:block;font-size:13px;font-weight:600;color:#edf0f4}
.provider-mini small{display:block;font-size:12px;color:#626e80;margin-top:4px}
.provider-symbol{width:30px;height:32px;display:grid;place-items:center;border:1px solid #18212f50;border-radius:6px;color:#dce1e8}
.environment{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#626e80;letter-spacing:.35px;margin-top:25px}
.dot{display:inline-block;width:6px;height:6px;background:#626e80;border-radius:50%;flex-shrink:0}
.dot.good{background:#626e80}
.dot.warning{background:#626e80}
.dot.bad{background:#626e80}
.main{margin-left:var(--side-width);min-height:100vh}
.topbar{height:72px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 39px;background:#18212f80;gap:16px}
.breadcrumbs{font-size:13px;color:#626e80;display:flex;gap:12px;align-items:center}
.breadcrumbs strong{font-weight:500;color:#626e80}
.topbar-actions{display:flex;align-items:center;gap:22px}
.search-trigger{font-size:13px;color:#626e80;display:flex;align-items:center;gap:10px}
.key-hint{border:1px solid #edf0f4;border-radius:4px;padding:2px 5px;color:#626e80;font-size:12px;margin-left:20px;line-height:1.2}
.connection-indicator{font-size:12px;display:flex;align-items:center;gap:7px;padding-left:20px;border-left:1px solid var(--line)}
.avatar{height:29px;width:29px;border-radius:50%;background:#edf0f4;border:1px solid #dce1e8;display:grid;place-items:center;font-size:12px;font-weight:700;color:#626e80}
.mobile-menu{display:none}
.page{max-width:1550px;margin:0 auto;padding:38px 40px 28px;animation:enter .25s ease-out}
.page-heading{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:28px;gap:20px}
.eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:1.7px;font-weight:700;color:#626e80;margin-bottom:13px}
.display{font:600 30px/.98 var(--font-ui);letter-spacing:-1.1px;color:var(--ink);font-weight:400}
.lead{font-size:13px;line-height:1.8;color:var(--muted);margin-top:13px;max-width:680px}
.heading-actions{display:flex;gap:9px;flex-shrink:0;padding-bottom:2px}
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:37px;padding:0 14px;border:1px solid transparent;border-radius:6px;font-size:13px;font-weight:600;white-space:nowrap;transition:background .15s,transform .15s}
.button:active{transform:translateY(1px)}
.button.primary{background:var(--green);color:#f6f7f9;border-color:var(--green);box-shadow:0 2px 3px #18212f08}
.button.primary:hover{background:#263448}
.button.secondary{border-color:#edf0f4;background:#ffffff;color:#626e80}
.button.secondary:hover{background:#f6f7f9}
.button.ghost{color:#626e80;padding:0 6px;min-height:30px}
.button.ghost:hover{color:#263448;background:#f6f7f9}
.button.small{min-height:29px;font-size:12px;padding:0 10px}
.button.danger{background:var(--red-soft);border-color:#edf0f4;color:#626e80}
.button svg{width:14px;height:14px}
.icon-button{width:31px;height:31px;display:inline-grid;place-items:center;border:1px solid var(--line);border-radius:5px;background:var(--surface)}
.icon-button:hover{background:var(--green-soft)}
.status-strip{display:grid;grid-template-columns:repeat(4,1fr);margin-bottom:27px;border-block:1px solid #edf0f4;padding:22px 0 20px}
.status-item{padding:0 25px;border-right:1px solid #edf0f4;position:relative}
.status-item:first-child{padding-left:0}
.status-item:last-child{border:0}
.status-label{font-size:12px;color:#626e80;display:flex;align-items:center;gap:7px;margin-bottom:10px}
.status-number{font:600 30px/.95 var(--font-ui);color:#263448;font-variant-numeric:tabular-nums;letter-spacing:-.8px}
.status-note{font-size:12px;color:#626e80;margin-top:8px}
.status-item.warning .status-number{color:#626e80}
.status-arrow{position:absolute;right:24px;bottom:6px;color:#626e80}
.overview-grid{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(282px,1fr);gap:22px;align-items:start}
.stack{display:grid;gap:22px;min-width:0}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);min-width:0;overflow:hidden}
.panel-header{display:flex;align-items:center;justify-content:space-between;padding:21px 22px 17px;gap:14px}
.panel-title{font-size:12px;letter-spacing:-.15px;font-weight:700;color:var(--ink)}
.panel-description{font-size:12px;color:var(--muted);margin-top:5px;line-height:1.65}
.panel-body{padding:0 22px 21px}
.panel-footer{padding:12px 22px;border-top:1px solid #edf0f4;font-size:12px;color:#626e80;display:flex;justify-content:space-between;align-items:center;gap:10px}
.panel-footer .button{min-height:22px}
.badge{font-size:12px;line-height:1.3;display:inline-flex;align-items:center;gap:5px;padding:5px 7px;border-radius:4px;font-weight:600;white-space:nowrap;background:#f6f7f9;color:#626e80;max-width:100%}
.badge.good{background:var(--green-soft);color:#626e80}
.badge.warning{background:var(--amber-soft);color:#626e80}
.badge.bad{background:var(--red-soft);color:#626e80}
.badge.neutral{background:#f6f7f9;color:#626e80}
.attention-list{padding:0 22px 5px}
.attention-item{display:flex;align-items:center;width:100%;text-align:left;gap:13px;border-top:1px solid #edf0f4;padding:16px 0}
.attention-item:hover .attention-copy strong{color:#626e80}
.attention-index{font:600 16px/1.3 var(--font-ui);color:#626e80;min-width:21px}
.attention-copy{min-width:0;flex:1}
.attention-copy strong{font-size:13px;font-weight:600;display:block;line-height:1.5}
.attention-copy small{font-size:12px;line-height:1.7;color:#626e80;display:block;margin-top:4px}
.attention-meta{color:#626e80;display:flex;align-items:center;gap:10px}
.review-callout{display:flex;align-items:flex-start;gap:10px;background:#f6f7f9;border:1px solid #edf0f4;border-radius:7px;padding:14px 17px;font-size:12px;line-height:1.8;color:#626e80;margin-bottom:20px}
.review-callout strong{color:#626e80;font-weight:600}
.review-callout svg{color:#626e80;margin-top:2px}
.case-table{width:100%}
.table-row{display:grid;grid-template-columns:minmax(120px,1.5fr) .75fr 1fr 24px;align-items:center;gap:10px;min-height:62px;padding:10px 22px;border-top:1px solid #edf0f4;text-align:left;width:100%;font-size:12px}
.table-row:not(.header):hover{background:#f6f7f9}
.table-row.header{min-height:31px;border-top:0;background:#f6f7f9;color:#626e80;font-size:12px;text-transform:uppercase;letter-spacing:.65px;padding-block:8px}
.cell-title{display:flex;align-items:center;gap:10px;font-weight:600;font-size:13px;color:#263448}
.case-monogram{width:31px;height:34px;background:#edf0f4;border:1px solid #edf0f4;border-radius:5px;display:grid;place-items:center;font:600 17px/1.3 var(--font-ui);color:#626e80;flex-shrink:0}
.cell-subtitle{font-size:12px;color:#626e80;margin-top:3px;font-weight:400}
.subtle{color:#626e80}
.pipeline{padding:4px 0 0}
.pipeline-step{display:grid;grid-template-columns:28px 1fr;gap:12px;position:relative;min-height:58px}
.pipeline-step:not(:last-child):after{content:'';width:1px;background:#edf0f4;position:absolute;left:12px;top:26px;bottom:1px}
.step-circle{height:25px;width:25px;border:1px solid #edf0f4;border-radius:50%;font-size:12px;color:#626e80;display:grid;place-items:center;z-index:1;background:#ffffff}
.pipeline-step.complete .step-circle{background:#edf0f4;border-color:#dce1e8;color:#626e80}
.pipeline-step.review .step-circle{background:#edf0f4;border-color:#dce1e8;color:#626e80}
.pipeline-step strong{font-size:12px;color:#626e80;font-weight:600;display:block;margin:3px 0 5px}
.pipeline-step small{font-size:12px;color:#626e80;line-height:1.6}
.provider-label{font-size:12px;display:flex;align-items:center;gap:6px;color:#626e80}
.readiness-list{display:grid;gap:16px}
.readiness-item{display:flex;align-items:center;gap:11px}
.readiness-icon{width:27px;height:27px;border:1px solid #edf0f4;border-radius:6px;display:grid;place-items:center;color:#626e80;background:#f6f7f9}
.readiness-item strong{font-size:12px;font-weight:500;display:block;color:#626e80}
.readiness-item small{font-size:12px;color:#626e80;display:block;margin-top:3px}
.readiness-item .badge{margin-left:auto}
.activity-list{padding:0 22px 6px}
.activity-item{display:flex;align-items:flex-start;gap:10px;padding:12px 0;border-top:1px solid #edf0f4}
.activity-dot{margin-top:5px}
.activity-copy{min-width:0;flex:1}
.activity-copy strong{font-size:12px;color:#626e80;font-weight:500;display:block}
.activity-copy p{font-size:12px;color:#626e80;margin-top:4px}
.activity-time{font-size:12px;color:#626e80;white-space:nowrap}
.bottom-note{font-size:12px;line-height:1.7;color:#626e80;display:flex;gap:8px;align-items:center;justify-content:space-between;margin-top:25px}
.bottom-note span{display:inline-flex;gap:5px;align-items:center}
.section-label{font-size:12px;letter-spacing:.9px;text-transform:uppercase;color:#626e80;font-weight:500;margin:25px 0 14px}
.tabs{display:flex;align-items:center;gap:22px;border-bottom:1px solid #edf0f4;margin-bottom:24px;overflow-x:auto}
.tab{font-size:13px;padding:12px 0;color:#626e80;border-bottom:2px solid transparent;white-space:nowrap}
.tab.active{color:var(--green);border-color:var(--green);font-weight:700}
.filters{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.searchbox{position:relative;max-width:340px;flex:1}
.searchbox>svg{position:absolute;left:12px;top:11px;color:#626e80}
.input,.select,.textarea{border:1px solid #edf0f4;border-radius:6px;background:var(--surface);color:#626e80;min-height:36px;padding:8px 12px;width:100%;font-size:13px}
.searchbox .input{padding-left:35px}
.select{width:auto;min-width:140px;max-width:100%;cursor:pointer}
.textarea{resize:vertical;min-height:100px;line-height:1.8}
.input::placeholder,.textarea::placeholder{color:#626e80}
.field-label{display:block;margin-bottom:7px;color:#626e80;font-size:12px;font-weight:600}
.field-help{font-size:12px;line-height:1.8;color:#626e80;margin-top:6px}
.field{margin-bottom:20px}
.metric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:24px}
.metric-card{padding:23px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);min-height:188px;display:flex;flex-direction:column;align-items:flex-start}
.metric-label{font-size:13px;font-weight:600;line-height:1.7;color:#626e80;min-height:38px}
.metric-value{font:600 30px/1.3 var(--font-ui);line-height:1;margin-top:15px;color:#dce1e8}
.metric-empty{color:#626e80;font-size:12px;margin-top:6px}
.metric-description{font-size:12px;color:#626e80;line-height:1.8;margin-top:16px;flex:1}
.metric-card .button{margin-top:13px;font-size:12px}
.intro-panel{padding:24px;display:flex;gap:20px;align-items:center;margin-bottom:24px;border:1px solid #edf0f4;border-radius:var(--radius);background:#f6f7f9}
.intro-icon{width:49px;height:49px;background:#edf0f4;border:1px solid #dce1e8;border-radius:10px;display:grid;place-items:center;color:#626e80;flex-shrink:0}
.intro-panel h2{font:600 24px/1.3 var(--font-ui);color:#626e80;margin-bottom:7px}
.intro-panel p{font-size:13px;line-height:1.85;color:#626e80;max-width:730px}
.document-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.document-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:9px;min-height:190px;transition:border-color .15s,box-shadow .15s}
.document-card:hover{border-color:#626e80;box-shadow:0 6px 15px #18212f09}
.document-card-top{display:flex;align-items:center;justify-content:space-between;width:100%;margin-bottom:20px}
.document-icon{width:35px;height:39px;border:1px solid #edf0f4;border-radius:4px;background:#f6f7f9;color:#626e80;display:grid;place-items:center}
.document-card h3{font:600 23px/1.3 var(--font-ui);color:#626e80;line-height:1.2;margin-bottom:9px}
.document-preview{font-size:12px;line-height:1.9;color:#626e80;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:95%}
.document-card-bottom{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:auto;padding-top:19px;font-size:12px;color:#626e80}
.workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}
.workspace-case{display:flex;align-items:center;gap:12px}
.workspace-case h2{font:600 25px/1.3 var(--font-ui);color:#263448}
.workspace-case p{font-size:12px;color:#626e80;margin-top:5px}
.workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:18px;align-items:start}
.source-pane,.document-pane{border:1px solid var(--line);border-radius:9px;background:var(--surface);overflow:hidden;min-width:0}
.source-toolbar{padding:14px 16px;background:#f6f7f9;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:9px;justify-content:space-between;flex-wrap:wrap}
.source-toolbar .select{font-size:12px;max-width:200px;min-width:130px}
.pane-caption{display:flex;align-items:center;gap:7px;font-size:12px;color:#626e80}
.source-lines{padding:14px 0;max-height:700px;overflow:auto;scrollbar-width:thin;scrollbar-color:#dce1e8 transparent;background:#ffffff}
.source-line{display:grid;grid-template-columns:42px minmax(0,1fr);font-size:12px;line-height:1.85;min-height:20px;scroll-margin-top:20px}
.line-number{font-variant-numeric:tabular-nums;color:#626e80;text-align:right;padding-right:12px;font-size:12px;user-select:none;border-right:1px solid #f6f7f9;margin-right:10px}
.line-text{white-space:pre-wrap;overflow-wrap:anywhere;padding-right:12px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:#626e80}
.source-line.highlight{background:#edf0f4}
.source-line.highlight .line-number{color:#626e80}
.pagination{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 14px;border-top:1px solid var(--line);font-size:12px;color:#626e80}
.document-tabs{display:flex;gap:0;overflow-x:auto;border-bottom:1px solid var(--line);padding:0 13px;background:#f6f7f9}
.document-tab{white-space:nowrap;font-size:12px;color:#626e80;padding:15px 10px;border-bottom:2px solid transparent}
.document-tab.active{color:#626e80;border-color:#626e80;font-weight:600}
.document-actions{padding:11px 19px;border-bottom:1px solid #f6f7f9;display:flex;align-items:center;justify-content:space-between;gap:10px}
.document-body{padding:28px 30px;max-height:680px;overflow:auto;scrollbar-width:thin;scrollbar-color:#dce1e8 transparent;color:#626e80;font-size:12px;line-height:1.9;overflow-wrap:anywhere}
.document-body h1{font:600 29px/1.17 var(--font-ui);color:#263448;margin-bottom:22px}
.document-body h2{font:600 23px/1.25 var(--font-ui);color:#626e80;margin:25px 0 12px}
.document-body h3{font-size:13px;margin:20px 0 10px;color:#626e80}
.document-body h4{font-size:12px;margin:15px 0 7px}
.document-body p{margin:0 0 14px}
.document-body ul,.document-body ol{padding-left:20px;margin:8px 0 20px}
.document-body li{margin-bottom:8px}
.document-body pre{white-space:pre-wrap;font-size:12px;padding:15px;background:#f6f7f9;overflow-wrap:anywhere}
.document-body code{font-size:12px;background:#f6f7f9;border-radius:3px;padding:2px 3px}
.document-body blockquote{border-left:2px solid #dce1e8;padding-left:15px;color:#626e80;margin:18px 0}
.review-findings{margin-top:20px}
.finding{border-top:1px solid #edf0f4;padding:17px 22px}
.finding-header{display:flex;align-items:flex-start;gap:11px}
.finding-title{font-size:13px;font-weight:600;color:#626e80;line-height:1.7;flex:1}
.finding-number{font:600 19px/1.3 var(--font-ui);color:#626e80;line-height:1.2;min-width:20px}
.finding-body{font-size:12px;line-height:1.9;color:#626e80;margin:8px 0 10px 31px;max-width:850px}
.finding-actions{display:flex;gap:12px;margin-left:31px;align-items:center;flex-wrap:wrap}
.source-link{display:inline-flex;gap:5px;align-items:center;font-size:12px;color:#626e80;border-bottom:1px solid #dce1e8;padding:3px 0}
.source-link:hover{color:#626e80}
.finding.selected{background:#f6f7f9}
.note{font-size:12px;line-height:1.8;padding:13px 0;border-top:1px solid #edf0f4}
.note small{display:block;color:#626e80;font-size:12px;margin-top:6px}
.rules-list{display:grid;gap:14px}
.rule-card{border:1px solid var(--line);background:var(--surface);border-radius:8px;padding:21px;display:flex;gap:18px;align-items:flex-start}
.rule-number{font:600 26px/1.3 var(--font-ui);color:#dce1e8;min-width:27px}
.rule-copy{flex:1;min-width:0}
.rule-copy p{font-size:13px;color:#626e80;line-height:1.9}
.rule-copy small{font-size:12px;line-height:1.8;color:#626e80;display:block;margin-top:9px}
.rule-meta{display:flex;align-items:center;gap:11px;margin-bottom:11px;flex-wrap:wrap}
.rule-actions{display:flex;gap:8px;align-items:center;flex-shrink:0}
.run-table .table-row{grid-template-columns:minmax(125px,1.2fr) 1fr .8fr 1fr .6fr 20px}
.run-id{font-variant-numeric:tabular-nums;font-size:12px;color:#626e80}
.row-end{text-align:right}
.run-details{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:18px}
.detail-tile{padding:15px;background:#f6f7f9;border:1px solid #edf0f4;border-radius:7px;font-size:13px;color:#626e80}
.detail-tile small{display:block;color:#626e80;margin-bottom:7px;font-size:12px}
.detail-tile strong{font-size:18px;font-weight:500;color:#626e80}
.connection-list{display:grid;gap:14px}
.connection-card{background:var(--surface);border:1px solid var(--line);border-radius:9px;display:flex;align-items:center;gap:20px;padding:23px}
.connection-card .intro-icon{width:44px;height:44px;border-radius:8px}
.connection-copy{flex:1;min-width:0}
.connection-copy h2{font-size:12px;color:#626e80;font-weight:600}
.connection-copy p{font-size:12px;line-height:1.8;color:#626e80;margin-top:7px;max-width:720px}
.connection-actions{display:flex;gap:10px;align-items:center;flex-shrink:0}
.empty-state{padding:44px 22px;display:flex;flex-direction:column;align-items:center;text-align:center;color:#626e80;gap:10px}
.empty-icon{width:43px;height:43px;background:#f6f7f9;border:1px solid #edf0f4;display:grid;place-items:center;border-radius:9px;margin-bottom:5px;color:#626e80}
.empty-state h3{font:600 23px/1.3 var(--font-ui);color:#626e80}
.empty-state p{font-size:12px;line-height:1.85;max-width:390px}
.empty-state .button{margin-top:10px}
.jobs-bar{padding:13px 17px;background:#edf0f4;border:1px solid #dce1e8;border-radius:7px;display:flex;align-items:center;gap:11px;margin-bottom:20px;font-size:12px;color:#626e80}
.jobs-bar strong{font-weight:600}
.jobs-bar .button{margin-left:auto}
.running-indicator{display:inline-block;height:13px;width:13px;border:1.5px solid #dce1e8;border-top-color:#626e80;border-radius:50%;animation:spin 1s linear infinite;flex-shrink:0}
.toast{position:fixed;bottom:25px;left:calc(50% + 114px);transform:translateX(-50%);z-index:100;background:#263448;color:#f6f7f9;border:1px solid #626e80;border-radius:8px;padding:12px 19px;max-width:min(540px,90vw);box-shadow:0 8px 30px #18212f20;font-size:13px;line-height:1.7;animation:enter .15s ease}
.toast.error{background:#626e80;border-color:#626e80}
.modal-backdrop{position:fixed;inset:0;background:#18212f65;z-index:80;display:flex;align-items:center;justify-content:center;padding:24px;backdrop-filter:blur(3px)}
.modal{background:var(--surface);border:1px solid #dce1e8;border-radius:11px;width:540px;max-width:100%;max-height:90dvh;overflow:auto;box-shadow:0 18px 75px #18212f30;animation:enter .18s ease}
.modal.wide{width:770px}
.modal-header{padding:23px 25px 20px;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;border-bottom:1px solid #edf0f4}
.modal-header h2{font:600 28px/1.3 var(--font-ui);color:#626e80}
.modal-header p{font-size:12px;color:#626e80;line-height:1.8;margin-top:7px}
.modal-body{padding:24px 25px}
.modal-actions{border-top:1px solid #edf0f4;padding:15px 25px;display:flex;justify-content:flex-end;gap:10px}
.modal .review-callout{font-size:12px}
.modal-search-list{display:grid;gap:5px;margin-top:17px}
.modal-search-item{padding:13px 12px;display:flex;align-items:center;gap:12px;text-align:left;width:100%;border-radius:6px}
.modal-search-item:hover{background:#f6f7f9}
.modal-search-item strong{font-size:12px;font-weight:500;color:#626e80;display:block}
.modal-search-item small{font-size:12px;color:#626e80;display:block;margin-top:5px}
.modal-search-item svg:last-child{margin-left:auto;color:#626e80}
.search-results{border-bottom:1px solid #edf0f4;padding:12px;max-height:230px;overflow:auto;display:grid;gap:6px}
.search-result{background:#f6f7f9;border:1px solid #edf0f4;border-radius:5px;padding:10px;text-align:left;display:block;width:100%;font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.search-result small{display:block;font-size:12px;color:#626e80;margin-bottom:5px}
.snapshot-note{font-size:12px;color:#626e80;line-height:1.8;padding:18px 22px;background:#f6f7f9;border-top:1px solid #edf0f4}
.error-page{padding:12vh 8vw;max-width:850px;margin:auto}
.error-page h1{font:600 30px/1.3 var(--font-ui);color:#626e80;margin-bottom:20px}
.error-page p{font-size:13px;line-height:1.9;color:#626e80;margin-bottom:20px}
.spec-list{font-size:13px;line-height:1.9;color:#626e80;padding-left:19px}
.spec-list li{margin-bottom:10px}
.form-error{font-size:12px;color:#626e80;line-height:1.8;margin-top:9px}
.mobile-overlay{display:none}
.skeleton{height:120px;background:linear-gradient(90deg,#edf0f4 25%,#f6f7f9 50%,#edf0f4 75%);background-size:200% 100%;animation:shimmer 1.5s infinite;border-radius:8px}
.metric-definition{font-size:12px;line-height:1.9;color:#626e80}
.document-count{margin-left:auto;font-size:12px;color:#626e80}
.muted-divider{height:1px;background:var(--line);margin:22px 0}

@keyframes enter{from{opacity:0;translate:0 5px}
to{opacity:1;translate:0 0}
}
@keyframes spin{to{transform:rotate(360deg)}
}
@keyframes shimmer{to{background-position:-200% 0}
}

@media(min-width:1600px){.page{padding-top:45px}
.overview-grid{grid-template-columns:minmax(0,1.85fr) minmax(320px,1fr)}
.status-strip{padding-block:25px}
.attention-item{padding-block:19px}
.panel-header{padding-top:24px}
.display{font-size:48px}
}

@media(max-width:1180px){:root{--side-width:204px}
.sidebar{padding-inline:12px}
.brand{padding-inline:10px}
.nav-link{font-size:13px;padding-inline:13px}
.page{padding:30px 27px}
.topbar{padding-inline:27px}
.overview-grid{grid-template-columns:minmax(0,1.5fr) minmax(250px,1fr);gap:17px}
.stack{gap:17px}
.panel-header{padding-inline:18px}
.panel-body{padding-inline:18px}
.attention-list{padding-inline:18px}
.table-row{padding-inline:18px;grid-template-columns:minmax(100px,1.5fr) .7fr 1fr 16px;gap:7px}
.key-hint{margin-left:6px}
.topbar-actions{gap:13px}
.display{font-size:37px}
.status-item{padding-inline:20px}
.connection-indicator{padding-left:13px}
.document-body{padding-inline:23px}
.workspace{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.rule-card{gap:12px;padding:17px}
.rule-actions{flex-direction:column;align-items:stretch}
.connection-card{gap:15px;padding:20px}
}

@media(max-width:980px){.overview-grid{grid-template-columns:1fr}
.overview-grid>.stack:last-child{grid-template-columns:1fr 1fr}
.overview-grid>.stack:last-child>.panel:last-child{grid-column:1/-1}
.pipeline-step{min-height:56px}
.workspace{grid-template-columns:1fr}
.source-lines{max-height:300px}
.document-body{max-height:700px}
.run-table{overflow-x:auto}
.run-table .table-row{min-width:630px}
.search-trigger>span:not(.key-hint){display:none}
.connection-indicator{border-left:0;padding:0}
.page-heading{align-items:flex-start}
.heading-actions{padding-top:20px}
.status-note{font-size:12px}
.status-item{padding-inline:13px}
.status-arrow{right:8px}
.connection-card{flex-wrap:wrap}
.connection-actions{margin-left:64px}
.document-grid{gap:14px}
.lead{max-width:430px}
.case-table:not(.run-table) .table-row{grid-template-columns:minmax(120px,1.5fr) 1fr 1fr 20px}
}

@media(max-width:720px){:root{--side-width:0px}
.sidebar{width:244px;transform:translateX(-100%);transition:transform .2s}
.sidebar.open{transform:translateX(0)}
.mobile-overlay.open{display:block;position:fixed;inset:0;z-index:29;background:#18212f80;backdrop-filter:blur(2px)}
.main{margin-left:0}
.topbar{height:59px;padding:0 20px}
.mobile-menu{display:inline-grid;border:0;background:transparent;margin-left:-7px}
.breadcrumbs{margin-right:auto;font-size:12px;gap:7px}
.breadcrumbs .crumb-brand{display:none}
.topbar-actions{gap:13px}
.search-trigger{padding:4px}
.key-hint{display:none}
.connection-indicator{font-size:12px}
.avatar{width:27px;height:27px}
.page{padding:27px 20px 22px}
.page-heading{display:block;margin-bottom:21px}
.eyebrow{font-size:12px;letter-spacing:1.7px;margin-bottom:11px}
.display{font-size:38px;max-width:330px;line-height:1.04}
.lead{font-size:13px;line-height:1.85;max-width:100%;margin-top:12px}
.heading-actions{padding:18px 0 0}
.status-strip{grid-template-columns:1fr 1fr;padding:0;margin-bottom:23px}
.status-item{padding:18px 16px!important;border-bottom:1px solid #edf0f4}
.status-item:nth-child(2){border-right:0}
.status-item:nth-child(3){border-bottom:0}
.status-item:nth-child(4){border:0}
.status-number{font-size:32px}
.status-label{font-size:12px;margin-bottom:10px}
.status-note{font-size:12px}
.status-arrow{right:13px;bottom:20px}
.overview-grid>.stack:last-child{grid-template-columns:1fr}
.overview-grid>.stack:last-child>.panel:last-child{grid-column:auto}
.panel-header{padding:18px}
.panel-title{font-size:12px}
.panel-description{font-size:12px}
.panel-body{padding:0 18px 18px}
.attention-list{padding:0 18px 5px}
.attention-item{gap:9px;padding-block:15px}
.attention-copy strong{font-size:12px}
.attention-copy small{font-size:12px}
.attention-index{font-size:17px}
.attention-meta{gap:6px}
.attention-meta .badge{font-size:12px;padding:4px 5px}
.panel-footer{padding:12px 17px;font-size:12px}
.case-table:not(.run-table) .table-row{grid-template-columns:minmax(0,1fr) auto 16px;padding:13px 17px;gap:10px}
.case-table:not(.run-table) .table-row .case-file-count{display:none}
.case-table:not(.run-table) .table-row.header{min-height:30px;font-size:12px;padding-block:8px}
.cell-title{font-size:12px}
.cell-subtitle{font-size:12px}
.case-monogram{width:30px;height:33px}
.badge{font-size:12px;max-width:140px;white-space:normal}
.review-callout{padding:12px 14px;font-size:12px;gap:8px}
.bottom-note{align-items:flex-start;font-size:12px;gap:15px}
.bottom-note>span:last-child{white-space:nowrap}
.metric-grid{grid-template-columns:1fr;gap:12px}
.metric-card{min-height:auto;padding:20px}
.metric-label{min-height:0;font-size:13px}
.metric-value{margin-top:14px;font-size:31px}
.metric-description{margin-top:12px;font-size:12px}
.intro-panel{padding:19px;gap:14px;align-items:flex-start}
.intro-icon{width:38px;height:38px;border-radius:8px}
.intro-panel h2{font-size:22px}
.intro-panel p{font-size:12px}
.filters{align-items:stretch;gap:8px}
.filters .select{min-width:110px;font-size:12px}
.searchbox{max-width:none}
.document-grid{grid-template-columns:1fr}
.document-card{padding:22px;min-height:180px}
.document-card h3{font-size:25px}
.tabs{gap:20px;margin-bottom:20px}
.tab{font-size:12px}
.workspace-heading{align-items:flex-start;flex-wrap:wrap}
.workspace-heading>.heading-actions{padding:0;flex-wrap:wrap;width:100%}
.workspace-case h2{font-size:27px}
.document-body{padding:24px 22px;font-size:13px}
.document-body h1{font-size:28px}
.document-body h2{font-size:22px}
.source-line{font-size:12px;grid-template-columns:36px minmax(0,1fr)}
.source-lines{max-height:330px}
.source-toolbar{padding:11px 13px}
.source-toolbar .searchbox{min-width:100%}
.review-findings{margin-top:18px}
.finding{padding:17px}
.finding-body{margin-left:0;font-size:12px}
.finding-actions{margin-left:0}
.finding-title{font-size:13px}
.rule-card{padding:18px;gap:12px;flex-wrap:wrap}
.rule-number{font-size:26px;min-width:25px}
.rule-copy{width:calc(100% - 42px);flex:auto}
.rule-copy p{font-size:13px}
.rule-actions{margin-left:37px;flex-direction:row;align-items:center}
.rule-meta{gap:8px}
.connection-card{padding:18px;gap:13px}
.connection-copy{flex-basis:calc(100% - 61px)}
.connection-actions{margin-left:57px;gap:8px}
.connection-card .intro-icon{width:40px;height:40px}
.connection-copy p{font-size:12px}
.toast{left:50%;bottom:18px;width:calc(100% - 34px);font-size:12px}
.modal-backdrop{padding:14px}
.modal{max-height:92dvh}
.modal-header{padding:20px}
.modal-header h2{font-size:27px}
.modal-body{padding:20px}
.modal-actions{padding:14px 20px}
.jobs-bar{flex-wrap:wrap;font-size:12px}
.jobs-bar .button{margin-left:24px}
.skip-link{left:10px}
.run-details{gap:9px}
.detail-tile{padding:13px}
.detail-tile strong{font-size:16px}
.row-end{text-align:left}
}

@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}


/* Readability and responsive control refinements after browser review. */
.icon-button.mobile-menu{display:none}
.document-card h2{font:600 29px/1.3 var(--font-ui);letter-spacing:-.4px;color:var(--ink);margin:8px 0 12px}
.field-help,.snapshot-note,.metric-description,.note small,.rule-meta,.document-preview,.cell-subtitle{color:#626e80}
.metric-definition,.rule-copy p,.finding-body,.document-body{color:#263448}
.source-line{color:#626e80}
.metric-empty{color:#626e80}
.document-tabs{overflow-x:auto}
.document-tab{flex-shrink:0}
.note{padding:20px;margin-bottom:12px}
.note p{line-height:1.8;white-space:pre-wrap}
.note small{display:block;margin-top:10px}
.run-table button.table-row{width:100%;text-align:left}
.modal-search-item strong{color:var(--ink)}

@media(max-width:720px){.icon-button.mobile-menu{display:inline-grid}
.display{max-width:none}
.search-trigger{min-width:30px;min-height:30px}
}


.searchbox .input{padding-left:35px;padding-right:37px}
.searchbox>button{position:absolute;right:3px;top:3px;min-width:29px;height:30px;background:transparent;border:0}
.searchbox>button svg{position:static}
.workspace-case{flex-wrap:wrap}
.workspace-case .display{font-size:34px}
.source-toolbar>.searchbox{flex-basis:220px}
.source-toolbar>.select{max-width:none}
.pane-caption{padding:10px 15px}

/* Data refreshes should not flash or fade the entire working area. */
.page{animation:none}


/* Brain 0.2 keeps each review stage and its provenance visible. */
.workflow-panel{margin-bottom:24px}
.workflow-panel>.panel-header{gap:20px;flex-wrap:wrap}
.workflow-card{padding:23px 24px;border-top:1px solid var(--line)}
.workflow-card-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}
.workflow-card-heading .eyebrow{margin-bottom:9px}
.workflow-card h3{font:600 27px/1.1 var(--font-ui);color:var(--ink)}
.workflow-card-heading p{font-size:12px;color:var(--muted);line-height:1.8;margin-top:8px}
.workflow-stages{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:23px 0 19px}
.workflow-stage{display:flex;align-items:flex-start;gap:7px;font-size:12px;line-height:1.7;color:#626e80;border-top:1px solid #edf0f4;padding-top:12px}
.workflow-stage>span{font-size:12px;line-height:18px;background:#edf0f4;min-width:18px;text-align:center;border-radius:50%;color:#626e80}
.workflow-stage.current{border-color:var(--green);color:var(--green);font-weight:600}
.workflow-stage.current>span{background:var(--green);color:#ffffff}
.workflow-card-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;color:#626e80;font-size:12px;line-height:1.8}
.workflow-review-note{font-size:12px;color:#626e80;line-height:1.8;margin-top:13px}
.workflow-empty{padding:2px 24px 25px;color:#626e80;font-size:13px;line-height:1.9}
.workflow-empty>p{font-weight:600;color:#626e80;margin-bottom:5px}
.workflow-empty>span{display:block;max-width:730px}
.workflow-plan{list-style:none;counter-reset:workflow;padding:0;margin:22px 0;display:grid;gap:17px}
.workflow-plan>li{position:relative;counter-increment:workflow;padding-left:34px;font-size:13px;line-height:1.8}
.workflow-plan>li:before{content:counter(workflow);position:absolute;left:0;top:0;display:grid;place-items:center;width:23px;height:23px;border:1px solid #dce1e8;background:#f6f7f9;border-radius:50%;color:#626e80;font-size:12px}
.workflow-plan strong{display:block;font-weight:600;color:#626e80}
.workflow-plan>li>span{display:block;color:#626e80;font-size:12px;margin-top:2px}
.workflow-current{font:600 23px/1.3 var(--font-ui);margin:18px 0;color:var(--ink)}
.workflow-step-list{display:grid;margin:15px 0 25px}
.workflow-step-detail{display:flex;align-items:flex-start;gap:12px;padding:15px 0;border-top:1px solid var(--line)}
.workflow-step-index{font:600 22px/1.3 var(--font-ui);color:#626e80;min-width:24px}
.workflow-step-detail>div{flex:1;min-width:0}
.workflow-step-detail h3{font-size:13px;color:#626e80;font-weight:600;line-height:1.8}
.workflow-step-detail p{font-size:12px;color:#626e80;line-height:1.9;margin-top:4px}
.workflow-step-detail .badge{margin-top:2px}
.workflow-issues{padding:17px;background:#f6f7f9;border:1px solid #edf0f4;border-radius:7px;margin:18px 0}
.workflow-issues h3{font-size:13px;color:#626e80}
.workflow-issues .spec-list{color:#626e80;margin-bottom:0;overflow-wrap:anywhere}
.workflow-facts{margin:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.workflow-facts>summary{cursor:pointer;padding:16px 0;color:#626e80;font-size:13px;font-weight:600}
.workflow-facts>.field-help{padding-bottom:12px}
.workflow-facts .finding{padding-inline:0}
.workflow-output-links{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0}
.workflow-output-links>.section-label{width:100%;margin-bottom:5px}
.requirements-summary{display:flex;gap:30px;margin:26px 0 32px;padding-bottom:24px;border-bottom:1px solid #edf0f4}
.requirements-summary>div{display:flex;align-items:center;gap:11px}
.requirements-summary strong{font:600 30px/1.3 var(--font-ui);color:var(--ink);font-weight:400}
.requirements-summary span{font-size:12px;color:#626e80}
.requirements-area{margin-bottom:22px}
.requirement-row{padding:23px 24px;border-top:1px solid var(--line)}
.requirement-title{display:flex;align-items:flex-start;gap:12px}
.requirement-id{font-size:12px;line-height:1.9;color:#626e80;min-width:55px}
.requirement-title h3{flex:1;color:#263448;font-weight:600;font-size:12px;line-height:1.7}
.requirement-title .badge{flex-shrink:0}
.requirement-row dl{display:grid;gap:9px;margin:18px 0 0 67px}
.requirement-row dl>div{display:grid;grid-template-columns:100px minmax(0,1fr);gap:10px;align-items:baseline;font-size:12px;line-height:1.8}
.requirement-row dt{color:#626e80}
.requirement-row dd{color:#626e80;margin:0;overflow-wrap:anywhere}
.requirement-description{font-size:12px;line-height:1.9;color:#626e80;margin:10px 0 0 67px}
.heading-actions{flex-wrap:wrap}
.sidebar{overflow-y:auto}

@media(max-width:1180px){.workflow-stages{gap:8px}
.workflow-card{padding-inline:20px}
.requirements-summary{gap:20px;flex-wrap:wrap}
.workspace-heading{flex-wrap:wrap}
.workspace-heading .heading-actions{padding-top:0}
.workflow-stage{font-size:12px}
}

@media(max-width:720px){.workflow-panel>.panel-header{gap:14px}
.workflow-panel>.panel-header>.button{width:100%}
.workflow-card{padding:20px 18px}
.workflow-card-heading{gap:12px;flex-wrap:wrap}
.workflow-card h3{font-size:25px}
.workflow-card-heading>.badge{align-self:flex-start}
.workflow-stages{grid-template-columns:1fr;gap:0;margin:20px 0 12px}
.workflow-stage{padding:7px 0;border-top:0;font-size:12px;align-items:center}
.workflow-stage.current{border-top:0}
.workflow-card-footer{align-items:flex-start;flex-wrap:wrap;gap:8px}
.workflow-card-footer>.button{margin-left:-13px}
.workflow-empty{padding-inline:18px}
.workflow-step-detail{gap:9px;flex-wrap:wrap}
.workflow-step-detail>div{flex-basis:calc(100% - 33px)}
.workflow-step-detail>.badge{margin-left:33px}
.requirements-summary{display:grid;grid-template-columns:1fr 1fr;gap:19px 15px;margin:22px 0}
.requirements-summary>div{display:block}
.requirements-summary strong{display:block;margin-bottom:3px}
.requirements-summary span{font-size:12px}
.requirement-row{padding:20px 18px}
.requirement-title{flex-wrap:wrap;gap:8px}
.requirement-id{min-width:0;flex-basis:100%}
.requirement-title h3{flex-basis:100%;font-size:12px}
.requirement-row dl,.requirement-description{margin-left:0}
.requirement-row dl>div{grid-template-columns:1fr;gap:2px}
.requirement-row dl{gap:13px}
.requirement-row dt{font-size:12px}
}

.requirements-filters{flex-wrap:wrap;gap:12px}
.requirements-filters>.searchbox{flex:1;min-width:210px}
.requirements-filters>.select{width:auto;min-width:170px;max-width:250px}
.requirements-match-count{font-size:12px;color:#626e80;line-height:1.8;margin:0 0 16px}

@media(max-width:720px){.requirements-filters>.searchbox{flex-basis:100%}
.requirements-filters>.select{flex:1;min-width:135px;max-width:none;font-size:12px}
}


/* Operative casework uses the same paper surface and a restrained event ledger. */
.operations-context{display:flex;align-items:center;gap:15px;margin:0 0 21px}
.operations-context>.field-label{margin:0;white-space:nowrap}
.operations-context>.select{max-width:330px}
.operations-revision{margin-left:auto;color:#626e80;font-size:12px;white-space:nowrap}
.operations-intake{padding:30px;display:flex;gap:22px;align-items:flex-start}
.operations-intake h2{font:600 28px/1.3 var(--font-ui);color:var(--ink)}
.operations-intake p{color:#626e80;font-size:13px;line-height:1.9;max-width:600px;margin:10px 0 18px}
.operations-counts{display:grid;grid-template-columns:repeat(3,1fr);gap:25px;margin:27px 0 26px;padding:0 0 24px;border-bottom:1px solid var(--line)}
.operations-counts>div{border-right:1px solid var(--line)}
.operations-counts>div:last-child{border:0}
.operations-counts strong{font:600 30px/1.3 var(--font-ui);font-weight:400;display:block;color:var(--ink)}
.operations-counts span{color:#626e80;font-size:12px;display:block;margin-top:6px}
.operations-panel>.panel-header{gap:20px;flex-wrap:wrap}
.operation-row{padding:23px 24px;border-top:1px solid var(--line)}
.operation-row-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}
.operation-date{font-size:12px;font-variant-numeric:tabular-nums;color:#626e80;display:block;margin-bottom:9px}
.operation-row h3{color:#626e80;font-size:12px;line-height:1.8;font-weight:600}
.operation-row>p{color:#626e80;font-size:12px;line-height:1.9;margin-top:9px;overflow-wrap:anywhere}
.operation-row>.button{margin-top:14px}
.operation-row .operation-review{color:#626e80;padding-left:12px;border-left:2px solid #dce1e8}
.due-tasks{margin-bottom:25px}
.due-task{display:flex;align-items:flex-start;gap:18px;padding:15px 24px;border-top:1px solid var(--line)}
.due-task>span{min-width:73px;font-size:12px;line-height:1.9;color:#626e80;font-variant-numeric:tabular-nums}
.due-task strong{font-size:13px;color:#626e80;font-weight:600;line-height:1.8}
.due-task small{display:block;color:#626e80;font-size:12px;margin-top:5px}
.operation-timeline{list-style:none;margin:0;padding:3px 27px 28px}
.operation-timeline>li{position:relative;padding:0 0 25px 27px;border-left:1px solid #dce1e8}
.operation-timeline>li:last-child{padding-bottom:0}
.timeline-marker{position:absolute;left:-4px;top:4px;width:7px;height:7px;border-radius:50%;background:#626e80;box-shadow:0 0 0 4px var(--surface)}
.timeline-meta{font-size:12px;color:#626e80;margin-bottom:8px}
.operation-timeline h3{font-size:12px;line-height:1.8;color:#626e80;font-weight:600}
.operation-timeline p{font-size:12px;line-height:1.9;color:#626e80;margin:6px 0;overflow-wrap:anywhere}
.operation-timeline small{font-size:12px;color:#626e80}
.operation-input{width:100%;border:1px solid #edf0f4;border-radius:6px;background:#ffffff;color:#626e80;padding:10px 12px;min-height:38px}
.operation-source-choices{margin:20px 0;padding:0;border:0;display:grid;gap:10px}
.operation-source-choices legend{margin-bottom:12px}
.operation-source-choices label{display:flex;align-items:flex-start;gap:9px;color:#626e80;font-size:12px;line-height:1.8}
.operation-source-choices input{margin:3px 0 0;accent-color:var(--green);width:14px;height:14px}
.operation-source-choices span{overflow-wrap:anywhere}
.operation-review-context{padding:16px;background:#f6f7f9;border:1px solid #edf0f4;border-radius:7px;margin-bottom:21px}
.operation-review-context strong{font-size:13px;color:#626e80;line-height:1.8}
.operation-review-context p{font-size:12px;color:#626e80;line-height:1.9;margin-top:6px}
#operation-error:not(:empty){margin:17px 0;padding:12px 14px;background:#f6f7f9;border:1px solid #dce1e8;border-radius:6px;line-height:1.9}

@media(max-width:720px){.operations-context{flex-wrap:wrap;gap:9px}
.operations-context>.field-label{flex-basis:100%}
.operations-context>.select{flex:1;min-width:0;max-width:none}
.operations-revision{font-size:12px}
.operations-counts{gap:13px;margin:23px 0}
.operations-counts strong{font-size:31px}
.operations-counts span{font-size:12px;line-height:1.8;padding-right:8px}
.operations-intake{padding:23px 19px;gap:14px}
.operations-intake h2{font-size:25px}
.operations-intake p{font-size:12px}
.operations-tabs{gap:19px;overflow-x:auto}
.operations-tabs>.tab{flex-shrink:0}
.operations-panel>.panel-header{gap:14px}
.operations-panel>.panel-header>.button{width:100%}
.operation-row{padding:21px 18px}
.operation-row-heading{gap:11px;flex-wrap:wrap}
.operation-row-heading>div{flex:1;min-width:160px}
.operation-row h3{font-size:13px}
.due-task{padding:15px 18px;gap:12px}
.due-task>span{min-width:67px;font-size:12px}
.operation-timeline{padding-inline:22px}
.operation-timeline>li{padding-left:22px}
.operation-source-choices label{font-size:12px}
}


/* Quality numbers retain their denominator, review coverage and date. */
.metric-scope{font-size:12px;letter-spacing:.6px;text-transform:uppercase;color:#626e80;margin-top:15px}
.metric-observations{display:grid;gap:11px;margin:17px 0 0;width:100%}
.metric-observations>div{border-top:1px solid #edf0f4;padding-top:10px}
.metric-observations dt{color:#626e80;font-size:12px;line-height:1.8;margin-bottom:3px}
.metric-observations dd{color:#626e80;font-size:12px;line-height:1.9;margin:0;overflow-wrap:anywhere}
.metric-affected{margin-top:15px;font-size:12px;display:flex;flex-wrap:wrap;gap:7px;align-items:center}
.metric-affected>span{flex-basis:100%;font-size:12px;color:#626e80;margin-bottom:2px}
.metric-affected>a{color:#626e80;border-bottom:1px solid #dce1e8;padding:2px 0}
.metric-data-note{font-size:12px;color:#626e80;line-height:1.9;margin-top:15px}
.metric-asof{color:#626e80;font-size:12px;line-height:1.9;margin-top:13px}
.metric-actions{display:flex;align-items:center;flex-wrap:wrap;gap:3px;margin:13px -10px 0}
.metric-card .metric-actions .button{margin-top:0;padding-inline:10px;font-size:12px}


/* A continued workflow preserves its parent and separates reused work from new usage. */
.workflow-resume-intro{margin-bottom:21px}
.workflow-resume-intro h3{font:600 26px/1.15 var(--font-ui);color:var(--ink)}
.workflow-resume-intro p{font-size:13px;line-height:1.9;color:#626e80;margin-top:10px}
.workflow-lineage{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:16px 18px;margin:19px 0;background:#f6f7f9;border:1px solid #edf0f4;border-radius:7px}
.workflow-lineage strong{font-size:13px;color:#626e80;font-weight:600}
.workflow-lineage p{font-size:12px;color:#626e80;line-height:1.9;margin-top:7px}
.workflow-lineage>.button{padding-inline:0}
.workflow-step-detail .workflow-reused-label{color:#626e80;font-weight:600}
.workflow-card-parent{font-size:12px;color:#626e80;line-height:1.8;margin:0 0 12px}
.modal-actions{flex-wrap:wrap}


/* Unaccepted drafts remain readable as review material, without becoming document outputs. */
.workflow-candidates{margin:27px 0 24px}
.candidate-section-heading{margin-bottom:16px}
.candidate-section-heading h3{font:600 26px/1.15 var(--font-ui);color:var(--ink)}
.candidate-section-heading>p{font-size:12px;line-height:1.9;color:#626e80;margin-top:9px}
.workflow-candidate{border:1px solid #dce1e8;border-radius:8px;background:#ffffff;margin:12px 0;overflow:hidden}
.workflow-candidate>summary{display:flex;align-items:center;gap:10px;cursor:pointer;padding:17px 18px;background:#f6f7f9;list-style:none}
.workflow-candidate>summary::-webkit-details-marker{display:none}
.workflow-candidate>summary:before{content:'+';color:#626e80;font-size:17px;line-height:1;min-width:10px}
.workflow-candidate[open]>summary:before{content:'−'}
.workflow-candidate>summary>span:first-of-type{font:600 23px/1.2 var(--font-ui);color:#626e80;flex:1;overflow-wrap:anywhere}
.workflow-candidate>summary>.badge{flex-shrink:0}
.candidate-content{padding:20px 21px}
.candidate-source-review>header{padding-bottom:15px;border-bottom:1px solid #edf0f4}
.candidate-source-review h4{font-size:13px;color:#626e80;line-height:1.8}
.candidate-source-review>header>p{font-size:12px;color:#626e80;line-height:1.9;margin-top:5px}
.candidate-finding{padding:21px 0;border-bottom:1px solid #edf0f4}
.candidate-finding-title{display:flex;align-items:flex-start;gap:10px}
.candidate-finding-title>span{font:600 23px/1.3 var(--font-ui);line-height:1.2;color:#626e80;min-width:26px}
.candidate-finding-title h5{font-size:12px;line-height:1.8;color:#626e80;font-weight:600;margin:0}
.candidate-finding-explanation{font-size:12px;line-height:1.9;color:#626e80;margin:10px 0 14px;white-space:pre-wrap;overflow-wrap:anywhere}
.candidate-excerpt{padding:12px 14px;background:#f6f7f9;border-left:2px solid #626e80;border-radius:0 5px 5px 0}
.candidate-excerpt>p{font-size:12px;line-height:1.8;color:#626e80;margin-bottom:7px}
.candidate-excerpt>pre{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font:10px/1.9 Manrope,sans-serif;color:#626e80}
.candidate-evidence{margin-top:14px;display:grid;gap:12px}
.candidate-evidence figure{margin:0;background:#f6f7f9;border-left:2px solid #626e80;padding:12px 14px;border-radius:0 5px 5px 0}
.candidate-evidence figcaption{font-size:12px;line-height:1.9;color:#626e80;overflow-wrap:anywhere}
.candidate-evidence figcaption>span{display:block;margin-top:3px}
.candidate-evidence blockquote{font-size:12px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;color:#626e80;margin:8px 0 0}
.candidate-review-open{font-size:12px;line-height:1.9;color:#626e80;margin-bottom:17px}
.candidate-technical{margin:18px 0;padding:13px 15px;border:1px solid #dce1e8;border-radius:6px;background:#f6f7f9}
.candidate-technical>summary,.candidate-document>summary{cursor:pointer;font-size:12px;line-height:1.9;color:#626e80;font-weight:600}
.candidate-technical>.spec-list{color:#626e80;font-size:12px;overflow-wrap:anywhere;margin:12px 0 0;padding-left:18px}
.candidate-technical>.field-help{font-size:12px;margin-top:10px}
.candidate-document{margin-top:18px;border-top:1px solid #edf0f4;padding-top:14px}
.candidate-document-body{padding:22px 0 8px;max-height:none;overflow:visible;font-size:13px}
.candidate-document-body h1{font-size:27px}
.candidate-document-body h2{font-size:22px}
.candidate-trace{font-size:12px;line-height:1.9;color:#626e80;margin-top:17px;overflow-wrap:anywhere}
summary:focus-visible{outline:3px solid #626e80;outline-offset:3px}

@media(max-width:720px){.candidate-section-heading h3{font-size:24px}
.workflow-candidate>summary{padding:15px 14px;gap:8px;flex-wrap:wrap}
.workflow-candidate>summary>span:first-of-type{font-size:22px;min-width:150px}
.workflow-candidate>summary>.badge{margin-left:18px}
.candidate-content{padding:17px 14px}
.candidate-finding{padding:18px 0}
.candidate-finding-title{gap:8px}
.candidate-finding-title>span{min-width:23px;font-size:21px}
.candidate-finding-title h5{font-size:13px}
.candidate-finding-explanation{font-size:12px}
.candidate-excerpt,.candidate-evidence figure{padding:11px 12px}
.candidate-technical{padding:12px}
.candidate-document-body{font-size:12px}
.candidate-document-body h1{font-size:25px}
.candidate-document-body h2{font-size:21px}
}

.candidate-evidence figure.instruction-evidence{background:#f6f7f9;border-left-color:#626e80}
.candidate-evidence .instruction-evidence-note{font-size:12px;line-height:1.9;color:#626e80;margin-top:9px}


/* Quality workshop: a working notebook, with measurements kept beside their evidence. */
.lab-roadmap{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border-block:1px solid #dce1e8;margin:5px 0 20px;padding:23px 0 25px;gap:0}
.lab-roadmap>article{padding:0 18px;border-right:1px solid #edf0f4;min-width:0}
.lab-roadmap>article:first-child{padding-left:0}
.lab-roadmap>article:last-child{border-right:0;padding-right:0}
.lab-step-number{font:600 30px/1 var(--font-ui);color:#626e80;display:block;margin-bottom:18px}
.lab-roadmap h2{font:600 22px/1.14 var(--font-ui);color:#626e80;min-height:50px;margin-bottom:13px;overflow-wrap:anywhere}
.lab-roadmap .badge{font-size:12px;max-width:100%;white-space:normal;line-height:1.7}
.lab-roadmap p{font-size:12px;line-height:1.9;color:#626e80;margin-top:13px}
.lab-context-line{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px;font-size:12px;color:#626e80;line-height:1.8}
.lab-context-line>span{display:flex;align-items:center;gap:8px}
.lab-context-line>.button{font-size:12px;padding-right:0}
.lab-tabs{gap:26px;margin-bottom:25px}
.lab-benchmark-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:20px;align-items:start}
.lab-panel{margin-bottom:22px;min-width:0;overflow:hidden}
.lab-panel>.panel-header{align-items:flex-start;gap:15px}
.lab-panel>.panel-header>.button{flex-shrink:0;font-size:12px}
.lab-panel-body{padding:23px 25px}
.lab-panel-body>.review-callout:first-child{margin-top:0}
.lab-measurement-empty{padding:16px 0 26px}
.lab-measurement-empty>span{font-size:12px;letter-spacing:1px;text-transform:uppercase;color:#626e80}
.lab-measurement-empty>h3{font:600 30px/1.1 var(--font-ui);color:#626e80;margin:17px 0}
.lab-measurement-empty>p{font-size:12px;line-height:1.9;color:#626e80;max-width:360px}
.lab-calibration{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:21px 23px;margin-bottom:23px}
.lab-calibration-value{min-width:0;border-top:1px solid #edf0f4;padding-top:15px}
.lab-calibration-value>span{display:block;color:#626e80;font-size:12px;line-height:1.8}
.lab-calibration-value>strong{display:block;font:600 29px/1.15 var(--font-ui);color:#626e80;margin:13px 0 11px;overflow-wrap:anywhere}
.lab-calibration-value>p{font-size:12px;color:#626e80;line-height:1.8}
.lab-calibration-value>small{font-size:12px;line-height:1.8;display:block;color:#626e80;margin-top:11px}
.lab-test-cases{padding:0 24px;max-height:665px;overflow:auto;overscroll-behavior:contain}
.lab-test-cases>article{display:flex;gap:14px;padding:16px 0;border-top:1px solid #edf0f4}
.lab-test-cases>article:first-child{border-top:0}
.lab-test-cases>article>span{font:600 23px/1.3 var(--font-ui);color:#626e80;min-width:27px}
.lab-test-cases h3{font-size:12px;font-weight:600;color:#626e80;line-height:1.8}
.lab-test-cases p{font-size:12px;color:#626e80;line-height:1.8;margin-top:4px}
.lab-test-cases small{font-size:12px;color:#626e80;overflow-wrap:anywhere;display:block;margin-top:3px}
.lab-benchmark-run{border-top:1px solid #edf0f4}
.lab-benchmark-run:first-child{border-top:0}
.lab-benchmark-run>summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px 24px;list-style:none}
.lab-benchmark-run>summary>span{min-width:0}
.lab-benchmark-run>summary strong{font-size:13px;color:#626e80}
.lab-benchmark-run>summary small{display:block;font-size:12px;color:#626e80;margin-top:6px;overflow-wrap:anywhere}
.lab-benchmark-run>summary:before{content:'+';font-size:17px;color:#626e80}
.lab-benchmark-run[open]>summary:before{content:'−'}
.lab-benchmark-run>summary>span{flex:1}
.lab-issues{font-size:12px;line-height:1.9;color:#626e80;padding-left:18px;margin:17px 0;overflow-wrap:anywhere}
.lab-issues>li+li{margin-top:9px}
.lab-issues small{display:block;color:#626e80;font-size:12px}
.lab-style-list>article,.lab-comparison-row{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;padding:24px 0;border-bottom:1px solid #edf0f4}
.lab-style-list>article:last-child,.lab-comparison-row:last-child{border-bottom:0}
.lab-style-list>article>div:first-child,.lab-comparison-row>div:first-child{flex:1;min-width:0}
.lab-style-list h3,.lab-comparison-row h3{font-size:13px;font-weight:600;line-height:1.8;color:#626e80}
.lab-style-list p,.lab-comparison-row p{font-size:12px;line-height:1.9;color:#626e80;margin-top:7px;overflow-wrap:anywhere}
.lab-style-list .lab-style-excerpt{font:600 18px/1.4 var(--font-ui);color:#626e80;margin-top:16px;white-space:pre-wrap}
.lab-style-list>article>div:last-child,.lab-comparison-row>div:last-child{display:flex;align-items:flex-end;flex-direction:column;gap:14px}
.lab-pipeline-method{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:25px;padding:27px;background:#f6f7f9;border-bottom:1px solid #edf0f4}
.lab-pipeline-method span{font:600 23px/1.3 var(--font-ui);color:#626e80}
.lab-pipeline-method h3{font-size:13px;line-height:1.8;color:#626e80;margin-top:12px}
.lab-pipeline-method p{font-size:12px;line-height:1.9;color:#626e80;margin-top:6px}
.lab-pipeline-run{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 25px;border-bottom:1px solid #edf0f4}
.lab-pipeline-run:last-child{border-bottom:0}
.lab-pipeline-run>div:first-child{flex:1;min-width:0}
.lab-pipeline-run .eyebrow{font-size:12px;line-height:1.9;letter-spacing:.8px}
.lab-pipeline-run h3{font:600 24px/1.2 var(--font-ui);margin:8px 0;color:#626e80}
.lab-pipeline-run p{font-size:12px;line-height:1.9;color:#626e80}
.lab-pipeline-run small{display:block;font-size:12px;line-height:1.9;color:#626e80;margin-top:5px;overflow-wrap:anywhere}
.lab-pipeline-run>div:last-child{display:flex;flex-direction:column;align-items:flex-end;gap:12px}
.lab-scope-note{font-size:12px;color:#626e80;line-height:1.9;margin:20px 0}
.lab-comparison-method{display:flex;gap:23px;align-items:center;padding:2px 0 26px;border-bottom:1px solid #edf0f4}
.lab-comparison-method>strong{font:600 30px/1.3 var(--font-ui);color:#626e80;white-space:nowrap}
.lab-comparison-method>p{font-size:12px;line-height:1.9;color:#626e80;max-width:490px}
.lab-dialog-intro{font-size:13px;line-height:1.9;color:#626e80;margin:17px 0 23px}
.lab-blind-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:27px;margin-top:25px}
.lab-blind-variant{min-width:0}
.lab-blind-variant>h3{font:600 29px/1.2 var(--font-ui);color:#626e80;border-bottom:1px solid #edf0f4;padding-bottom:15px}
.lab-blind-text{margin:20px 0 26px;border-bottom:1px solid #edf0f4;padding-bottom:20px}
.lab-blind-text>summary{font-size:12px;line-height:1.8;color:#626e80;cursor:pointer}
.lab-blind-text .document-body{padding:18px 0 0;font-size:12px;max-height:none;overflow:visible}
.lab-blind-text .document-body h1{font-size:26px}
.lab-blind-text .document-body h2{font-size:22px}
.lab-blind-text .document-body h3{font-size:18px}
.lab-rating-form{border:0;margin:0;padding:0;min-width:0}
.lab-rating-form>legend{font-size:12px;font-weight:600;color:#626e80;padding:0}
.lab-rating-form>p{font-size:12px;line-height:1.9;color:#626e80;margin:10px 0 21px}
.lab-rating-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 13px}
.lab-rating-form .select{width:100%;min-width:0}
.lab-rating-form .field-label{line-height:1.8}
.lab-rating-result{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin:20px 0}
.lab-rating-result dt{font-size:12px;color:#626e80}
.lab-rating-result dd{font-size:12px;color:#626e80;margin:6px 0 0}
.lab-review-notes,.lab-style-notes>p{font-size:13px;color:#626e80;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;margin:13px 0}
.lab-style-notes{border-top:1px solid #edf0f4;padding-top:20px;margin-top:20px}
.lab-style-notes>h3{font-size:13px;color:#626e80}
.lab-artifacts{margin:24px 0}
.lab-artifacts>details{border:1px solid #edf0f4;border-radius:7px;background:#ffffff;margin-bottom:14px;overflow:hidden}
.lab-artifacts>details>summary{padding:16px 19px;cursor:pointer;font:600 22px/1.3 var(--font-ui);color:#626e80;background:#f6f7f9}
.lab-artifact{padding:20px;font-size:13px;max-height:none;overflow:visible}
.lab-artifact-fields{margin:0}
.lab-artifact-fields>div{border-top:1px solid #edf0f4;padding:13px 0}
.lab-artifact-fields>div:first-child{border-top:0}
.lab-artifact-fields dt{font-size:12px;font-weight:600;color:#626e80;line-height:1.8;overflow-wrap:anywhere}
.lab-artifact-fields dd{margin:7px 0 0;overflow-wrap:anywhere}
.lab-artifact-items>section{padding:10px 0;border-bottom:1px solid #edf0f4}
.lab-artifact-items>section:last-child{border-bottom:0}
.lab-artifact-items>section>small{font-size:12px;color:#626e80;display:block;margin-bottom:7px}
.lab-artifact .document-body,.lab-artifact dd p{margin-bottom:8px}
#lab-error:not(:empty){margin:17px 0;padding:12px 14px;background:#f6f7f9;border:1px solid #dce1e8;border-radius:6px;line-height:1.9}

@media(max-width:1100px){.lab-roadmap{grid-template-columns:repeat(3,minmax(0,1fr));gap:23px 0}
.lab-roadmap>article:nth-child(3){border-right:0;padding-right:0}
.lab-roadmap>article:nth-child(4){padding-left:0}
.lab-roadmap h2{min-height:0}
.lab-benchmark-grid{grid-template-columns:1fr}
.lab-test-cases{max-height:440px}
.lab-panel>.panel-header{flex-wrap:wrap}
}

@media(max-width:720px){.lab-roadmap{grid-template-columns:1fr;padding:0;margin-top:8px;gap:0}
.lab-roadmap>article,.lab-roadmap>article:first-child,.lab-roadmap>article:last-child{padding:18px 0;border-right:0;border-bottom:1px solid #edf0f4;display:grid;grid-template-columns:30px minmax(0,1fr);column-gap:14px}
.lab-roadmap>article:last-child{border-bottom:0}
.lab-step-number{font-size:25px;margin:0;grid-row:1/4}
.lab-roadmap h2{font-size:22px;margin:0 0 9px}
.lab-roadmap .badge{justify-self:start}
.lab-roadmap p{grid-column:2;font-size:12px;margin-top:9px}
.lab-context-line{align-items:flex-start;flex-direction:column;gap:7px;margin-bottom:17px}
.lab-context-line>.button{padding-left:0}
.lab-tabs{gap:22px;overflow-x:auto}
.lab-tabs>.tab{flex-shrink:0;font-size:12px}
.lab-panel-body{padding:20px 18px}
.lab-panel>.panel-header>.button{width:100%;justify-content:center}
.lab-calibration{gap:19px 17px}
.lab-calibration-value>strong{font-size:25px}
.lab-calibration-value>span{font-size:12px}
.lab-calibration-value>p,.lab-calibration-value>small{font-size:12px}
.lab-test-cases{padding-inline:18px;max-height:none;overflow:visible}
.lab-benchmark-run>summary{padding:18px;gap:10px;flex-wrap:wrap}
.lab-benchmark-run>summary>.badge{margin-left:20px}
.lab-style-list>article,.lab-comparison-row{flex-direction:column;gap:15px;padding:23px 0}
.lab-style-list>article>div:last-child,.lab-comparison-row>div:last-child{flex-direction:row;align-items:center;justify-content:space-between;width:100%;gap:8px}
.lab-style-list .lab-style-excerpt{font-size:17px}
.lab-pipeline-method{grid-template-columns:1fr;padding:22px 18px;gap:20px}
.lab-pipeline-method>div{display:grid;grid-template-columns:27px 1fr;column-gap:13px}
.lab-pipeline-method span{grid-row:1/3;font-size:22px}
.lab-pipeline-method h3{margin:0;font-size:12px}
.lab-pipeline-method p{margin:4px 0 0}
.lab-pipeline-run{padding:22px 18px;flex-direction:column;align-items:stretch;gap:16px}
.lab-pipeline-run h3{font-size:24px}
.lab-pipeline-run>div:last-child{flex-direction:row;align-items:center;justify-content:space-between;gap:10px}
.lab-comparison-method{gap:16px;align-items:flex-start}
.lab-comparison-method>strong{font-size:31px}
.lab-comparison-method>p{font-size:12px}
.lab-blind-columns{grid-template-columns:1fr;gap:33px}
.lab-blind-variant+section{border-top:2px solid #dce1e8;padding-top:28px}
.lab-blind-variant>h3{font-size:29px}
.lab-blind-text .document-body{font-size:12px}
.lab-artifact{padding:17px 14px}
.lab-artifacts>details>summary{font-size:21px;padding:15px}
.lab-dialog-intro{font-size:12px}
.lab-rating-form .input{min-height:40px}
.lab-rating-form .select{min-height:40px}
}


/* Sectioned work retains explicit progress and individual benchmark findings. */
.lab-run-progress{font-size:12px;line-height:1.9;color:#626e80;margin:9px 0;overflow-wrap:anywhere}
.workflow-step-detail .lab-step-error{font-size:12px;color:#626e80;line-height:1.9;margin-top:10px}
.lab-case-outcome{display:flex;flex-wrap:wrap;align-items:flex-start;gap:7px;margin-top:12px}
.lab-case-outcome .badge{font-size:12px;white-space:normal;line-height:1.7}
.lab-case-outcome>p,.lab-case-outcome>details{flex-basis:100%;margin-top:3px}
.lab-case-outcome>details>summary{font-size:12px;color:#626e80;cursor:pointer;line-height:1.8}
.lab-case-outcome>details>p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.9;color:#626e80;margin:9px 0 2px}
.lab-test-cases .lab-case-unmeasured{font-size:12px;color:#626e80;margin-top:10px}
.lab-test-cases>article>div{min-width:0}


/* Human-readable quality findings; exact diagnostics remain available on demand. */
.lab-issue-group{margin:17px 0;padding:13px 15px;border-left:2px solid #626e80;background:#f6f7f9;border-radius:0 5px 5px 0;min-width:0}
.lab-issue-summary{list-style:none;padding:0;margin:0;display:grid;gap:12px}
.lab-issue-summary>li>strong{display:block;font-size:12px;line-height:1.8;color:#626e80;font-weight:600}
.lab-issue-summary>li>span{display:block;font-size:12px;line-height:1.8;color:#626e80;margin-top:3px}
.lab-technical-issues{margin-top:12px}
.lab-technical-issues>summary{cursor:pointer;color:#626e80;font-size:12px;line-height:1.9}
.lab-technical-issues>.lab-issues{font-size:12px;margin:13px 0 0}
.workflow-step-detail .lab-issue-group{margin-bottom:2px;padding:10px 12px}
.workflow-step-detail .lab-issue-summary>li>strong{font-size:12px}
.workflow-step-detail .lab-issue-summary>li>span{font-size:12px}
@media(max-width:720px){.lab-issue-group{padding:12px}
.lab-technical-issues>summary{min-height:25px;padding-block:3px}
}


/* Spending is a test estimate, separate from legal or technical quality. */
.test-budget{display:grid;grid-template-columns:155px minmax(0,1fr);column-gap:22px;row-gap:12px;padding:18px 22px;margin:0 0 29px;background:#edf0f4;border:1px solid #edf0f4;border-radius:8px}
.test-budget-intro>span{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600;color:#626e80;line-height:1.8}
.test-budget-intro>p{font-size:12px;line-height:1.8;color:#626e80;margin-top:5px}
.test-budget-values{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin:0}
.test-budget-values>div{min-width:0}
.test-budget-values dt{font-size:12px;line-height:1.8;color:#626e80}
.test-budget-values dd{font:600 21px/1.15 var(--font-ui);color:#626e80;margin:6px 0 0;overflow-wrap:anywhere}
.test-budget-values .test-budget-remaining dd{color:#626e80;font-size:25px}
.test-budget-note{grid-column:1/-1;font-size:12px;line-height:1.8;color:#626e80;padding-top:10px;border-top:1px solid #edf0f4}
@media(max-width:1100px){.test-budget{grid-template-columns:1fr;gap:14px}
.test-budget-intro{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.test-budget-intro>p{margin-top:0}
}
@media(max-width:720px){.test-budget{padding:16px 17px;margin-bottom:23px}
.test-budget-values{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 22px}
.test-budget-values dd{font-size:23px}
.test-budget-values .test-budget-remaining dd{font-size:26px}
.test-budget-note{font-size:12px}
.test-budget-intro{gap:4px;align-items:flex-start;flex-direction:column}
}


/* The front office begins with an empty, real local registry. */
.intake-context{display:flex;gap:24px;align-items:center;flex-wrap:wrap;margin:-8px 0 20px;color:var(--muted);font-size:13px}
.intake-context>.button{margin-left:auto}
.intake-board{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:22px;align-items:start;margin:26px 0}
.intake-column{border:1px solid var(--line);border-radius:10px;background:#f6f7f9;min-width:0;padding:18px}
.intake-column>header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:0 2px 16px;border-bottom:1px solid #edf0f4;margin-bottom:17px}
.intake-column>header h2{font:600 23px/1.3 var(--font-ui);color:#626e80}
.intake-column>header>span{display:grid;place-items:center;min-width:25px;height:25px;border-radius:50%;background:#edf0f4;color:#626e80;font-size:12px}
.intake-cards{display:grid;gap:13px}
.intake-card{display:block;border:1px solid #edf0f4;background:var(--surface);border-radius:7px;padding:18px;box-shadow:0 2px 3px #18212f03;transition:border-color .15s,box-shadow .15s;min-width:0}
.intake-card:hover,.intake-card.selected{border-color:#626e80;box-shadow:0 4px 15px #18212f09}
.intake-card.selected{border-left:3px solid #626e80;padding-left:16px}
.intake-card-meta{display:flex;gap:10px;flex-wrap:wrap;justify-content:space-between;font-size:12px;letter-spacing:.3px;color:#626e80}
.intake-card h3{font:600 24px/1.2 var(--font-ui);margin:15px 0 8px;color:#626e80;overflow-wrap:anywhere}
.intake-card>p{font-size:13px;line-height:1.8;color:#626e80;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;overflow-wrap:anywhere}
.intake-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #f6f7f9;margin-top:17px;padding-top:12px;color:#626e80}
.intake-card-bottom .badge{white-space:normal;font-size:12px}
.intake-column-empty{padding:42px 16px;text-align:center;color:#626e80;font-size:13px;line-height:1.9}
.intake-start{display:flex;gap:26px;padding:37px 4px 44px;border-bottom:1px solid var(--line);max-width:670px}
.intake-start>span{font:600 30px/1 var(--font-ui);color:#626e80}
.intake-start h2{font:600 30px/1.3 var(--font-ui);color:#626e80}
.intake-start p{font-size:12px;line-height:1.9;color:#626e80;margin:12px 0 21px}
.intake-detail{margin-top:30px;scroll-margin-top:24px}
.intake-detail>.panel-header{gap:16px;flex-wrap:wrap}
.intake-detail-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:38px;padding:28px}
.intake-detail-grid>div{min-width:0}
.intake-detail-grid>div+div{border-left:1px solid var(--line);padding-left:32px}
.intake-concern{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.9;margin:12px 0 22px}
.intake-contact-data{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;margin:25px 0}
.intake-contact-data dt{font-size:12px;color:var(--muted)}
.intake-contact-data dd{margin:7px 0 0;overflow-wrap:anywhere;font-size:13px}
.intake-subhead{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:25px 0 11px}
.intake-subhead>h3{font-size:13px;font-weight:600}
.intake-subhead .button{font-size:12px;padding:8px}
.intake-note{padding:14px 0;border-top:1px solid var(--line)}
.intake-note>p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.9}
.intake-note>small{display:block;font-size:12px;color:var(--muted);margin-top:9px}
.intake-contact-name{font:600 28px/1.3 var(--font-ui);margin:14px 0;color:#626e80}
.intake-contact-actions{display:flex;gap:10px;flex-wrap:wrap;margin:19px 0 12px}
.intake-contact-actions .button{font-size:12px}
.intake-suggestions{border:1px solid #edf0f4;background:#f6f7f9;border-radius:7px;padding:15px 17px;margin:17px 0}
.intake-suggestions>strong{font-size:12px;color:#626e80}
.intake-suggestions>p{font-size:12px;line-height:1.8;margin-top:12px;overflow-wrap:anywhere}
.intake-suggestions small{display:block;font-size:12px;color:#626e80}
.intake-address{font-size:13px;line-height:1.8;font-style:normal;border-bottom:1px solid var(--line);padding:12px 0;overflow-wrap:anywhere}
.intake-history{padding:18px 28px;border-top:1px solid var(--line)}
.intake-history>summary{font-size:12px;color:#626e80;cursor:pointer;line-height:1.8}
.intake-history>div{display:flex;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid var(--line);font-size:12px}
.intake-history>div>span{color:var(--muted)}
.intake-hint{font-size:13px;color:var(--muted);margin:24px 0}
.intake-form-row{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.intake-check{display:flex;gap:12px;align-items:flex-start;font-size:13px;line-height:1.9;color:#626e80}
.intake-check input{margin-top:5px;accent-color:var(--green);width:17px;height:17px}
#intake-error:not(:empty){background:var(--amber-soft);padding:12px 15px;border-radius:6px;margin-top:15px;color:var(--amber)}

@media(max-width:1050px){.intake-detail-grid{grid-template-columns:1fr;gap:25px}
.intake-detail-grid>div+div{border-left:0;border-top:1px solid var(--line);padding:25px 0 0}
}
@media(max-width:720px){.intake-board{grid-template-columns:minmax(0,1fr);gap:16px}
.intake-column{padding:14px}
.intake-context{gap:12px;font-size:12px}
.intake-context>.button{margin-left:0}
.intake-detail-grid{padding:21px 18px}
.intake-detail .panel-header>.button{width:100%}
.intake-start{gap:18px;padding-top:26px}
.intake-start>span{font-size:40px}
.intake-start h2{font-size:27px}
.intake-history{padding:18px}
.intake-history>div{flex-direction:column;gap:7px}
.intake-form-row{grid-template-columns:1fr;gap:0}
.intake-contact-data{grid-template-columns:1fr}
.intake-contact-actions>.button{width:100%}
.intake-subhead{flex-wrap:wrap}
.intake-check{font-size:12px}
}

.text-quality-report>.document-body{padding:0;max-height:none}
.text-quality-report>details{border-top:1px solid var(--line);margin-top:28px;padding-top:21px}
.text-quality-report>details>summary{font-size:12px;line-height:1.9;color:var(--green);cursor:pointer}
.text-quality-report>details>.document-body{padding:22px 0 0;max-height:none}
.text-quality-report .document-body{overflow-wrap:anywhere}
.lab-context-line{flex-wrap:wrap}

.report-table{overflow-x:auto;margin:22px 0;border:1px solid var(--line);border-radius:7px;background:var(--surface)}
.report-table table{border-collapse:collapse;width:100%;min-width:450px;text-align:left}
.report-table th{background:#f6f7f9;font-size:13px;color:#626e80;font-weight:600;padding:14px 15px;vertical-align:top}
.report-table td{padding:14px 15px;font-size:13px;line-height:1.85;vertical-align:top;border-top:1px solid var(--line);min-width:135px}
.report-table td:first-child{color:#626e80}
.report-table td code{font-size:12px;white-space:normal;overflow-wrap:anywhere}
.text-quality-report .document-body>h1{font-size:33px}
.text-quality-report .document-body>h2{font-size:25px;margin-top:32px}
.text-quality-report .document-body p,.text-quality-report .document-body li{font-size:12px;line-height:1.9}

.intake-conversation{border:1px solid #edf0f4;background:#f6f7f9;padding:21px;border-radius:8px;margin:26px 0}
.intake-conversation>.intake-subhead{margin:0 0 14px;align-items:flex-start;flex-wrap:wrap}
.intake-conversation .eyebrow{font-size:12px;margin-bottom:8px}
.intake-conversation h3{font:600 27px/1.15 var(--font-ui);color:#626e80}
.intake-flow-actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}
.intake-flow-actions .button{font-size:12px;white-space:normal}
.intake-next-task{background:var(--surface);border-left:3px solid #626e80;padding:15px 17px;margin:17px 0}
.intake-next-task>strong,.intake-open-points>strong{font-size:12px;color:#626e80}
.intake-next-task>p{font-size:12px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;margin:7px 0}
.intake-next-task>small{font-size:12px;color:var(--muted)}
.intake-open-points ul,.intake-conversation-history ul{padding-left:17px;margin:10px 0;font-size:13px;line-height:1.85;overflow-wrap:anywhere}
.intake-decision{font-size:12px;line-height:1.85;color:#626e80;white-space:pre-wrap;overflow-wrap:anywhere;margin:17px 0}
.intake-conversation-history{border-top:1px solid #edf0f4;padding-top:16px}
.intake-conversation-history>summary{cursor:pointer;font-size:12px;color:#626e80}
.intake-conversation-history .intake-note>strong{font-size:12px}
.intake-flow-limit{border-top:1px solid #edf0f4;padding-top:13px;margin-top:18px!important;font-size:12px!important}
@media(max-width:720px){.intake-conversation{padding:17px 14px}
.intake-flow-actions>.button{width:100%;justify-content:center}
.intake-conversation>.intake-subhead>.badge{white-space:normal}
}

.intake-participants{border-top:1px solid var(--line);margin-top:25px;padding-top:2px}
.intake-participants>.intake-subhead{flex-wrap:wrap}
.intake-participant-list{border:1px solid var(--line);border-radius:8px;overflow:hidden}
.intake-participant{padding:16px}
.intake-participant+.intake-participant{border-top:1px solid var(--line)}
.intake-participant-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.intake-participant-heading>div{min-width:0}
.intake-participant h4{font-size:12px;font-weight:500;line-height:1.7;overflow-wrap:anywhere;margin:0}
.intake-participant-primary{display:block;font-size:12px;color:var(--muted);margin-top:3px}
.intake-participant-heading>.button{font-size:12px;padding:6px 8px;flex-shrink:0}
.intake-participant-roles{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0 9px}
.intake-participant-roles .badge{white-space:normal;overflow-wrap:anywhere}
.intake-participant-invoice{font-size:12px;color:#626e80;line-height:1.8;margin:0}
.intake-role-fields{border:0;padding:0;margin:7px 0 24px;min-width:0}
.intake-role-fields>legend{font-size:12px;color:var(--muted);padding:0;margin-bottom:12px}
.intake-role-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.intake-role-options .intake-check{border:1px solid var(--line);border-radius:6px;padding:11px;cursor:pointer;min-width:0}
.intake-role-options .intake-check:has(input:checked){border-color:#626e80;background:#f6f7f9}
.intake-role-options input,.intake-invoice-choice input{flex-shrink:0}
.intake-role-options span{overflow-wrap:anywhere}
.intake-invoice-choice{border-top:1px solid var(--line);padding-top:17px}
.intake-invoice-choice small{display:block;font-size:12px;color:var(--muted);margin-top:3px}
@media(max-width:480px){.intake-role-options{grid-template-columns:1fr}
.intake-role-options .intake-check{min-height:44px;align-items:center}
.intake-role-options input{margin-top:0}
.intake-participant{padding:13px}
.intake-participant-heading{flex-wrap:wrap}
}

.consultation-link{border-block:1px solid var(--line);padding:24px 0;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin:25px 0}
.consultation-link h3{font:600 28px/1.2 var(--font-ui);color:var(--green);margin:9px 0}
.consultation-link p{font-size:12px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}
.consultation-link small{font-size:12px;line-height:1.8;color:var(--muted)}
.consultation-link .button{flex-shrink:0;font-size:13px}
.consultation-summary{padding:27px 29px;margin-bottom:24px;border-top:3px solid #626e80}
.consultation-summary-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}
.consultation-summary h2{font:600 30px/1.15 var(--font-ui);margin:12px 0 18px;overflow-wrap:anywhere}
.consultation-stages{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:21px}
.consultation-sources{padding:0 26px 18px}
.consultation-sources details{padding:18px 0;border-top:1px solid var(--line)}
.consultation-sources summary{cursor:pointer;line-height:1.8;color:var(--green)}
.consultation-sources summary span{font-size:12px;color:var(--muted);margin-left:14px}
.consultation-sources pre{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.9 Manrope,sans-serif;background:var(--paper);padding:19px;border-radius:6px;margin:18px 0}
.consultation-sources small{display:block;font-size:12px;overflow-wrap:anywhere;color:var(--muted)}
@media(max-width:720px){.consultation-link{flex-direction:column}
.consultation-link .button{width:100%}
.consultation-summary{padding:20px 18px}
.consultation-summary-heading{flex-direction:column;gap:0}
.consultation-summary-heading .button{margin-bottom:18px}
.consultation-sources{padding:0 18px 18px}
.consultation-stages .badge{white-space:normal}
.operations-tabs{flex-wrap:wrap}
}


/* Fixed contract editions: a quiet register beside a readable paper preview. */
.contracts-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:28px;align-items:start;margin-top:27px}
.contracts-main,.contracts-layout>aside{min-width:0}
.contracts-case{padding:26px 28px;border-top:3px solid #626e80;margin-bottom:31px}
.contracts-case-heading,.contracts-section-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:23px}
.contracts-stand,.contracts-section-heading>span{font-size:12px;color:var(--muted)}
.contracts-case>.field-label{display:block;margin-bottom:11px}
.contracts-case>.select{width:100%;max-width:100%;text-overflow:ellipsis}
.contracts-case-state{margin:23px 0 17px}
.contracts-case-state>p{font-size:12px;line-height:1.9;margin-top:13px;color:var(--muted)}
.contracts-actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center}
.contracts-actions>.button{font-size:13px;white-space:normal}
.contracts-templates{padding:27px 23px}
.contracts-templates>h2{font:600 30px/1.15 var(--font-ui);color:var(--green);margin:13px 0}
.contracts-templates>p{font-size:13px;line-height:1.9;color:var(--muted);margin-bottom:21px}
.contracts-templates>.button{width:100%;justify-content:center}
.contract-template-list{margin-top:24px}
.contract-template-list>article{padding:22px 0;border-top:1px solid var(--line)}
.contract-template-list h3{font:600 23px/1.25 var(--font-ui);overflow-wrap:anywhere}
.contract-template-list article>p{font-size:12px;line-height:1.8;color:var(--muted);margin:11px 0}
.contract-template-list .button{padding:7px 9px;font-size:12px}
.contracts-template-empty{font-size:13px;line-height:1.9;color:var(--muted);padding:23px 0;border-top:1px solid var(--line)}
.contract-template-history>summary{font-size:12px;cursor:pointer;color:var(--muted);padding-top:9px}
.contract-template-history>.button{display:flex;margin-top:7px}
.contract-card{margin-bottom:21px;overflow:hidden}
.contract-card-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;padding:26px 27px 0}
.contract-card-heading>div{min-width:0}
.contract-card-heading small{font-size:12px;line-height:1.8;color:var(--muted);overflow-wrap:anywhere}
.contract-card-heading h2{font:600 30px/1.2 var(--font-ui);color:var(--green);margin-top:12px;overflow-wrap:anywhere}
.contract-card-heading>.badge{white-space:normal;flex-shrink:0;font-size:12px}
.contract-card-facts{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) auto;gap:23px;margin:25px 27px}
.contract-card-facts>div{min-width:0}
.contract-card-facts dt{font-size:12px;color:var(--muted);margin-bottom:9px}
.contract-card-facts dd{font-size:13px;line-height:1.8;overflow-wrap:anywhere;margin:0}
.contract-card-facts .contract-price{font:600 25px/1.25 var(--font-ui);color:var(--green)}
.contract-card-footer{padding:19px 27px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:15px}
.contract-card-footer>span{font-size:12px;color:var(--muted);line-height:1.9}
.contract-card-footer>div{display:flex;gap:8px;flex-wrap:wrap}
.contract-card-footer .button{font-size:12px}
.contract-history{background:#f6f7f9;border-top:1px solid var(--line);padding:16px 27px}
.contract-history>summary{font-size:12px;color:#626e80;cursor:pointer}
.contract-history>div{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid #edf0f4;padding:14px 0;margin-top:13px}
.contract-history strong{font-size:13px}
.contract-history small{display:block;font-size:12px;color:var(--muted);margin-top:7px;line-height:1.8}
.contract-history .button{font-size:12px}
.contract-preview-meta{display:flex;justify-content:space-between;gap:25px;align-items:baseline;margin-bottom:21px}
.contract-preview-meta>span{font:600 29px/1.2 var(--font-ui);color:var(--green);overflow-wrap:anywhere}
.contract-preview-meta>strong{font:600 29px/1.2 var(--font-ui);flex-shrink:0}
.contract-paper{font:600 16px/1.85 var(--font-ui);white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;background:#ffffff;color:#263448;border:1px solid #edf0f4;border-radius:2px;padding:37px 34px;margin:25px 0;box-shadow:0 7px 18px #18212f05;min-width:0;max-width:100%}
.contract-binding{border-top:1px solid var(--line);padding-top:18px}
.contract-binding>summary{font-size:13px;color:var(--muted);cursor:pointer}
.contract-binding dl>div{margin-top:20px}
.contract-binding dt{font-size:12px;color:var(--muted)}
.contract-binding dd{margin:7px 0 0;font-size:13px;line-height:1.9;overflow-wrap:anywhere}
.contract-hash{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.contract-form-context{font-size:12px;line-height:1.9;background:#f6f7f9;border-left:3px solid #626e80;padding:16px 19px;margin-bottom:26px;overflow-wrap:anywhere}
.contract-form-section{margin:9px 0 24px;padding-top:21px;border-top:1px solid var(--line)}
.contract-form-section>h3{font:600 27px/1.2 var(--font-ui);color:var(--green);margin:0 0 19px}
.contract-price-input{padding-top:22px;border-top:1px solid var(--line);display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:27px}
.contract-price-input>p{font-size:13px;color:var(--muted);line-height:1.9;padding-top:24px}
.contract-placeholder-help{margin:24px 0 8px;border-top:1px solid var(--line);padding-top:19px}
.contract-placeholder-help>summary,.contract-selected-template>summary{font-size:13px;cursor:pointer;color:var(--green)}
.contract-placeholder-help>p{font-size:13px;color:var(--muted);line-height:1.9;margin:15px 0}
.contract-placeholder-help>div{display:flex;flex-wrap:wrap;gap:8px}
.contract-placeholder-help code{font-size:13px;background:#f6f7f9;border:1px solid #edf0f4;border-radius:4px;padding:7px 10px;overflow-wrap:anywhere}
.contract-selected-template{margin:0 0 24px}
.contract-selected-template .contract-paper{font-size:15px;padding:23px}
.contract-conflict{padding:23px;background:#f6f7f9;border:1px solid #dce1e8;border-radius:8px;margin-top:24px}
.contract-conflict h3{font:600 26px/1.3 var(--font-ui);color:#626e80}
.contract-conflict p{font-size:13px;line-height:1.9;margin:12px 0;color:#626e80;overflow-wrap:anywhere}
.contract-conflict details{margin:19px 0}
.contract-conflict summary{font-size:13px;cursor:pointer;color:#626e80}
.contract-conflict>.button{white-space:normal;margin-top:7px}
.contract-conflict .contract-paper{font-size:15px;padding:20px}
#contract-fields .select{width:100%;max-width:100%;text-overflow:ellipsis}
#contract-text{min-height:280px;font-size:12px;line-height:1.9}
#contract-error:not(:empty){padding:14px 16px;background:var(--amber-soft);color:var(--amber);font-size:13px;line-height:1.9;border-radius:6px;margin-top:21px}
.consultation-link{flex-wrap:wrap}
.consultation-link>div{flex:1 1 200px}
.consultation-summary-heading{flex-wrap:wrap}
.consultation-summary-heading>div{flex:1 1 220px}

@media(max-width:1180px){.contracts-layout{grid-template-columns:minmax(0,1fr)}
.contracts-templates{max-width:none}
.contract-template-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 25px}
.contracts-templates>.button{width:auto}
}

@media(max-width:720px){.contracts-layout{gap:22px;margin-top:21px}
.contracts-case{padding:21px 18px}
.contracts-case-heading{align-items:flex-start;flex-direction:column;gap:9px}
.contracts-case-heading .eyebrow{font-size:12px}
.contracts-stand{font-size:12px}
.contracts-actions>.button{min-height:40px}
.contracts-case .contracts-actions{flex-direction:column;align-items:stretch}
.contracts-templates{padding:23px 18px}
.contract-template-list{grid-template-columns:1fr}
.contracts-section-heading{align-items:flex-start;flex-direction:column;gap:8px}
.contract-card-heading{padding:22px 18px 0;flex-direction:column;gap:13px}
.contract-card-heading h2{font-size:29px}
.contract-card-facts{grid-template-columns:1fr 1fr;gap:21px 18px;margin:22px 18px}
.contract-card-facts>div:first-child{grid-column:1/-1}
.contract-card-footer{padding:17px 18px;flex-direction:column;align-items:flex-start}
.contract-card-footer>div{width:100%;justify-content:space-between}
.contract-history{padding:16px 18px}
.contract-preview-meta{flex-direction:column;gap:11px}
.contract-preview-meta>span,.contract-preview-meta>strong{font-size:26px}
.contract-paper{font-size:16px;padding:24px 19px;margin:21px 0}
.contract-price-input{grid-template-columns:1fr;gap:0}
.contract-price-input>p{padding:0;margin-top:0}
.contract-conflict{padding:19px 15px}
.contract-conflict>.button{width:100%;font-size:13px}
.contract-form-context{padding:14px;font-size:13px}
.contract-form-section h3{font-size:25px}
.contract-placeholder-help code{font-size:12px}
.contract-history small{font-size:12px}
.contract-binding dd{font-size:12px}
}


/* Source-first observations remain readable without implying legal verification. */
.event-intake-variants{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:27px;margin-top:28px;align-items:start}
.event-intake-variant{min-width:0}
.event-intake-variant>header{padding:0 0 23px;border-bottom:2px solid #dce1e8;margin-bottom:23px}
.event-intake-variant>header>h2{font:600 30px/1.15 var(--font-ui);color:var(--green);margin:12px 0;overflow-wrap:anywhere}
.event-intake-variant>header>p{font-size:12px;line-height:1.9;color:var(--muted);margin:9px 0}
.event-intake-variant>header .event-intake-assessment{font-size:12px;color:#626e80;background:#edf0f4;border-radius:5px;padding:12px 14px;margin-top:17px}
.event-intake-row{border:1px solid var(--line);border-radius:8px;background:var(--surface);overflow:hidden;margin-bottom:23px;min-width:0}
.event-intake-row>header{padding:18px 20px;display:flex;justify-content:space-between;align-items:center;gap:13px;background:#f6f7f9;border-bottom:1px solid var(--line);flex-wrap:wrap}
.event-intake-row>header>h3{font:600 27px/1 var(--font-ui);color:var(--green)}
.event-intake-row>header .badge{font-size:12px;white-space:normal;line-height:1.8}
.event-intake-source{margin:20px;padding:14px 0;border-block:1px solid var(--line)}
.event-intake-source>summary{font-size:13px;line-height:1.8;cursor:pointer;color:var(--green)}
.event-intake-source>summary>span{display:block;font-size:12px;color:var(--muted);margin-left:14px}
.event-intake-source>small{display:block;margin-top:15px;font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.event-intake-source>pre{font:11px/1.9 Manrope,sans-serif;white-space:pre-wrap;overflow-wrap:anywhere;background:#f6f7f9;padding:17px 14px;border-radius:5px;margin:12px 0 0}
.event-intake-observations{margin:0 20px 23px}
.event-intake-observations>section{margin-bottom:22px}
.event-intake-row h4{font-size:13px;font-weight:600;line-height:1.8;color:#626e80;margin-bottom:12px}
.event-intake-observations article{border-bottom:1px solid var(--line);padding:14px 0}
.event-intake-observations article>small{font-size:12px;color:var(--muted);line-height:1.8}
.event-intake-observations article>p{font-size:12px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0 0}
.event-intake-facts{padding:0 20px}
.event-intake-fact{padding:19px 0;border-top:1px solid var(--line)}
.event-intake-fact-heading{display:flex;align-items:center;gap:11px}
.event-intake-fact-heading>span{font:600 23px/1 var(--font-ui);color:#626e80}
.event-intake-fact-heading>.badge{font-size:12px;white-space:normal}
.event-intake-statement{font:600 21px/1.45 var(--font-ui);white-space:pre-wrap;overflow-wrap:anywhere;color:#626e80;margin:15px 0}
.event-intake-bindings{margin:17px 0;padding:0 0 0 13px;border-left:2px solid #dce1e8}
.event-intake-bindings>div{margin:16px 0}
.event-intake-bindings dt{font-size:12px;color:var(--muted);line-height:1.8}
.event-intake-bindings dd{margin:6px 0 0;overflow-wrap:anywhere}
.event-intake-bindings dd>strong{font-size:13px;font-weight:500;line-height:1.8;white-space:pre-wrap}
.event-intake-bindings dd>span{display:block;color:#626e80;font-size:12px;line-height:1.8;margin:3px 0}
.event-intake-evidence{margin:11px 0 0}
.event-intake-evidence>summary{font-size:12px;line-height:1.9;cursor:pointer;color:#626e80}
.event-intake-evidence blockquote{margin:12px 0;padding:12px;background:#f6f7f9;border-left:2px solid #dce1e8;border-radius:0 4px 4px 0}
.event-intake-evidence blockquote>div{font-size:12px;line-height:1.8;color:#626e80;overflow-wrap:anywhere}
.event-intake-evidence pre{font:10px/1.85 Manrope,sans-serif;white-space:pre-wrap;overflow-wrap:anywhere;margin-top:9px;color:#626e80}
.event-intake-no-evidence{font-size:12px;line-height:1.8;color:#626e80;margin:8px 0}
.event-intake-unresolved{margin:0;padding:20px;border-top:1px solid #dce1e8;background:#f6f7f9}
.event-intake-unresolved>h4{color:#626e80}
.event-intake-unresolved>article+article{border-top:1px solid #edf0f4;padding-top:16px;margin-top:17px}
.event-intake-unresolved strong{font-size:12px;font-weight:600;color:#626e80}
.event-intake-unresolved p{font-size:13px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;color:#626e80;margin:9px 0}
.event-intake-wait{padding:0 20px 22px}
.event-intake-wait p,.event-intake-wait li{font-size:13px;line-height:1.9;color:var(--muted);overflow-wrap:anywhere}
.event-intake-wait ul{padding-left:17px;margin:15px 0}
.event-intake-wait li+li{margin-top:9px}
.event-intake-wait details{margin-top:18px}
.event-intake-wait summary{cursor:pointer;font-size:12px;color:var(--muted)}
.event-intake-wait code{display:block;font-size:12px;margin-top:9px;overflow-wrap:anywhere}
.event-intake-scope{font-size:13px;line-height:1.9;color:var(--muted);border-top:1px solid var(--line);padding-top:20px;margin-top:9px}

@media(max-width:900px){.event-intake-variants{grid-template-columns:minmax(0,1fr);gap:28px}
.event-intake-variant+.event-intake-variant{border-top:3px solid #dce1e8;padding-top:29px}
.event-intake-variant>header{margin-bottom:19px}
.event-intake-statement{font-size:22px}
}

@media(max-width:480px){.event-intake-variant>header>h2{font-size:28px}
.event-intake-row>header{padding:17px 15px}
.event-intake-source{margin:18px 15px}
.event-intake-source>pre{padding:14px 11px}
.event-intake-observations{margin-inline:15px}
.event-intake-facts{padding-inline:15px}
.event-intake-statement{font-size:21px}
.event-intake-unresolved{padding:18px 15px}
.event-intake-wait{padding:0 15px 18px}
.event-intake-evidence pre{font-size:12px}
.event-intake-evidence>summary,.event-intake-source>summary{min-height:32px;line-height:1.9}
.event-intake-fact-heading{align-items:flex-start}
.event-intake-fact-heading>.badge{line-height:1.8}
.event-intake-bindings{padding-left:11px}
.event-intake-variant>header .event-intake-assessment{padding:12px}
}

.event-intake-row-detail>summary{padding:17px 20px;cursor:pointer;font-size:13px;line-height:1.9;color:var(--green);background:#f6f7f9}
.event-intake-row-detail[open]>summary{border-bottom:1px solid var(--line)}
.event-intake-row-detail>summary:hover{background:#f6f7f9}
.event-intake-row-detail>summary:focus-visible{outline:2px solid #626e80;outline-offset:-4px}
.event-intake-row-detail[open]>.event-intake-wait{padding-top:18px}
@media(max-width:480px){.event-intake-row-detail>summary{padding:17px 15px;min-height:48px}
}


/* The original record and exact generated text remain equally readable. */
.event-meaning-list{display:grid;gap:14px;margin-top:20px}

.event-meaning-row{border:1px solid var(--line);border-radius:14px;padding:18px;background:var(--surface)}

.event-meaning-row>header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}

.event-meaning-row>details>summary{cursor:pointer;font-size:13px;font-weight:600;line-height:1.6}

.event-meaning-comparison{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:24px;margin-top:20px}

.event-meaning-comparison section{min-width:0}

.event-meaning-comparison h3{font-size:15px;margin:0 0 10px}

.event-meaning-source,.event-meaning-answer{white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;line-height:1.75;font-size:13px;margin:0}

.event-meaning-source{font-family:inherit;color:var(--muted)}

.event-meaning-answer{font-family:inherit}

@media(max-width:760px){.event-meaning-comparison{grid-template-columns:minmax(0,1fr);gap:24px}
.event-meaning-row{padding:14px}
}


/* Version-bound return work follows the original agreement, with an explicit manual record. */
.return-scope{padding:20px 23px;background:#f6f7f9;border-left:3px solid #626e80;margin-bottom:30px;overflow-wrap:anywhere}
.return-scope>strong{font:600 25px/1.35 var(--font-ui);color:var(--green)}
.return-scope p{font-size:13px;line-height:1.9;color:var(--muted);margin:11px 0 0}
.return-blocked{font-size:13px;line-height:1.8;color:#626e80;background:#f6f7f9;border-radius:5px;padding:12px 15px;margin:14px 0}
.return-section{padding-top:24px;margin-top:29px;border-top:1px solid var(--line);min-width:0}
.return-section>header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:19px}
.return-section .eyebrow{margin-bottom:8px;display:block}
.return-section h3{font:600 30px/1.1 var(--font-ui);color:var(--green);margin:0}
.return-current-list{display:grid;gap:15px}
.return-current-list>article{padding:19px 21px;border:1px solid var(--line);border-radius:7px;background:var(--surface);min-width:0}
.return-current-list strong{font-size:13px;color:#626e80}
.return-current-list p{font-size:13px;color:var(--muted);line-height:1.9;margin:8px 0}
.return-current-list small{font-size:12px;color:#626e80}
.return-current-list details{margin-top:14px}
.return-current-list summary,.return-history>summary,.return-evidence summary,.return-selection summary{cursor:pointer;font-size:13px;line-height:1.9;color:var(--green)}
.return-hash,.return-evidence code{display:block;font-size:12px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--muted);margin:12px 0}
.return-empty{font-size:13px;color:var(--muted);padding:22px 0;line-height:1.8}
.return-evidence{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;border:1px solid var(--line);border-radius:7px;padding:17px 19px;margin:14px 0;background:#f6f7f9;min-width:0}
.return-evidence>div{min-width:0}
.return-evidence strong{display:block;font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.return-evidence small{display:block;font-size:12px;line-height:1.8;color:var(--muted);margin-top:7px;overflow-wrap:anywhere}
.return-evidence p{font-size:13px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;margin:9px 0}
.return-evidence details{margin-top:11px}
.return-evidence>.button{flex-shrink:0}
.return-packet{border:1px solid #edf0f4;border-radius:8px;overflow:hidden;margin:22px 0;background:var(--surface)}
.return-packet>header{padding:21px 23px;background:#f6f7f9;display:flex;justify-content:space-between;align-items:center;gap:18px}
.return-packet h4{font:600 28px/1 var(--font-ui);color:var(--green);margin:0}
.return-packet>header p{font-size:12px;line-height:1.8;color:var(--muted);margin:9px 0 0}
.return-packet .badge{white-space:normal;line-height:1.8}
.return-packet-document{padding:23px;border-top:1px solid var(--line)}
.return-document-heading{display:flex;justify-content:space-between;align-items:baseline;gap:14px}
.return-document-heading h5{font-size:13px;line-height:1.7;margin:0;color:var(--green);overflow-wrap:anywhere}
.return-document-heading>span{font:600 23px/1.3 var(--font-ui);color:var(--green);flex-shrink:0}
.return-packet-document>.field-help{overflow-wrap:anywhere}
.return-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:19px}
.return-packet>footer{padding:13px 23px;border-top:1px solid var(--line)}
.return-history{padding-top:15px;border-top:1px solid var(--line);margin-top:16px}
.return-history-item{padding-top:21px}
.return-history h6{font-size:12px;line-height:1.8;margin:0;color:var(--green)}
.return-history small,.return-note small{font-size:12px;line-height:1.8;color:var(--muted)}
.return-manual-review{background:#f6f7f9;border-radius:6px;padding:20px;margin:17px 0}
.return-manual-review dl{margin:19px 0}
.return-manual-review dl>div{display:grid;grid-template-columns:80px minmax(0,1fr);gap:14px;padding:13px 0;border-top:1px solid var(--line)}
.return-manual-review dt{font-size:13px;color:var(--muted)}
.return-manual-review dd{margin:0;min-width:0}
.return-manual-review dd strong{font-size:13px;line-height:1.8}
.return-manual-review p,.return-note p{font-size:13px;line-height:1.9;margin:9px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.return-note{padding:19px 22px;background:#f6f7f9;border-top:1px solid #edf0f4}
.return-note>strong{font-size:13px;line-height:1.8;color:#626e80}
.return-fields{border:0;margin:0;padding:0;min-width:0}
.return-fields .select,.return-fields .input{width:100%;max-width:100%;min-width:0}
.return-selection{padding:21px;border:1px solid var(--line);border-radius:7px;background:#f6f7f9;margin:20px 0;min-width:0}
.return-check{display:flex;gap:12px;align-items:flex-start;font-size:12px;line-height:1.9;color:var(--green);cursor:pointer;margin:14px 0 20px}
.return-check input{margin-top:5px;flex-shrink:0;width:17px;height:17px;accent-color:var(--green)}
.return-check>span{min-width:0;overflow-wrap:anywhere}
.return-check strong{display:block;font-size:13px}
.return-check small{font-size:12px;color:var(--muted);display:block;line-height:1.9;margin-top:5px}
.return-upload{border:1px dashed #dce1e8;border-radius:7px;padding:20px;background:#f6f7f9;margin-bottom:24px}
.return-upload .input{margin-top:12px;padding:12px;font-size:13px;white-space:normal;height:auto}
.return-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin:25px 0}
.return-check-grid>section{min-width:0;border-top:2px solid #dce1e8;padding-top:20px}
.return-check-grid h3{font:600 29px/1.3 var(--font-ui);color:var(--green);margin:0 0 20px}
.return-check-grid textarea{min-height:120px}
.return-fields:disabled{opacity:.75}
#review-error:not(:empty){background:var(--amber-soft);border-radius:6px;padding:14px 16px;margin-top:20px;font-size:13px;line-height:1.8}
.contract-card-footer>div{flex-wrap:wrap;row-gap:10px}

@media(max-width:720px){.return-scope{padding:17px}
.return-section>header{align-items:flex-start;flex-direction:column;gap:15px}
.return-section h3{font-size:28px}
.return-evidence{flex-direction:column;padding:16px 14px}
.return-evidence>.button{min-height:39px;white-space:normal}
.return-packet>header{padding:19px 16px;align-items:flex-start;flex-direction:column;gap:12px}
.return-packet-document{padding:20px 16px}
.return-document-heading{flex-direction:column;gap:7px}
.return-packet>footer{padding:14px 16px}
.return-actions>.button{white-space:normal;min-height:40px}
.return-note{padding:17px 16px}
.return-manual-review{padding:17px 13px}
.return-manual-review dl>div{grid-template-columns:minmax(0,1fr);gap:7px}
.return-check-grid{grid-template-columns:minmax(0,1fr);gap:14px}
.return-selection{padding:16px 14px}
.return-upload{padding:16px 13px}
.return-check{font-size:13px}
.return-current-list>article{padding:17px 16px}
.return-fields .select{font-size:13px;text-overflow:ellipsis}
.return-packet footer>.button{white-space:normal;line-height:1.8}
.return-fields .contract-paper{font-size:15px}
}

.source-draft-variant + .source-draft-variant { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }

.source-draft-research { margin: 1.5rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: 8px; font-size: .86rem; line-height: 1.6; }

.source-draft-document { max-width: 72ch; margin: 2rem auto; overflow-wrap: anywhere; }

.source-draft-document p { line-height: 1.85; }

.source-working-draft-result .source-draft-research { overflow-wrap: anywhere; }


/* An explicit local agreement count precedes assignment; an empty slot stays visible. */
.requirements-scope-summary{margin:24px 0;padding:22px 24px;border:1px solid var(--line);border-radius:8px;background:#f6f7f9;min-width:0}
.requirements-scope-summary>strong{font:600 25px/1.3 var(--font-ui);color:var(--green)}
.requirements-scope-summary p{font-size:13px;line-height:1.9;color:var(--muted);margin:10px 0 0}
.requirements-scope-summary ol{list-style:none;padding:0;margin:20px 0 0}
.requirements-scope-summary li{display:grid;grid-template-columns:70px minmax(0,1fr);gap:8px 15px;border-top:1px solid var(--line);padding:14px 0;font-size:13px;line-height:1.8}
.requirements-scope-summary li>span{color:var(--muted)}
.requirements-scope-summary li>strong{font-weight:500;color:var(--green)}
.requirements-scope-summary code{grid-column:2;font-size:12px;line-height:1.8;overflow-wrap:anywhere;color:var(--muted)}
.requirements-scope-fields{padding:25px 0 0;margin:27px 0 0;border:0;border-top:1px solid var(--line);min-width:0}
.requirements-scope-fields:disabled{opacity:.75}
.requirements-scope-count{display:grid;grid-template-columns:180px minmax(0,1fr);gap:25px;align-items:center;margin-bottom:24px}
.requirements-scope-count .field{margin:0}
.requirements-scope-count input{font:600 28px/1.3 var(--font-ui);min-height:48px}
.requirements-scope-count p{font-size:13px;line-height:1.9;color:var(--muted);margin:20px 0 0}
.requirements-slots{display:grid;gap:15px;margin-bottom:26px}
.requirements-slot{border-left:3px solid #dce1e8;background:#f6f7f9;padding:18px 21px;min-width:0}
.requirements-slot .select{width:100%;min-width:0;max-width:100%;text-overflow:ellipsis;min-height:43px}
.requirements-slot .field-help{margin-top:10px}
.requirements-scope-history{margin:23px 0;font-size:13px}
.requirements-scope-history>summary{cursor:pointer;line-height:1.9;color:var(--green);min-height:35px}
.requirements-scope-history article{padding:20px 22px;margin-top:12px;border:1px solid var(--line);background:#ffffff;border-radius:6px;min-width:0}
.requirements-scope-history article>strong{display:block;font-size:12px;line-height:1.8}
.requirements-scope-history small{display:block;color:var(--muted);font-size:12px;line-height:1.8;margin-top:7px;overflow-wrap:anywhere}
.requirements-scope-history p{font-size:13px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;margin:13px 0}
.requirements-scope-history ol{padding-left:18px;line-height:1.9;color:var(--muted)}
.requirements-scope-history li{margin-top:12px;overflow-wrap:anywhere}
.requirements-scope-history code{display:block;font-size:12px;overflow-wrap:anywhere}
.readiness-requirements{padding:0 24px 22px;border-bottom:1px solid var(--line)}
.readiness-requirements .requirements-scope-summary{border:0;padding:0;background:transparent}
.readiness-requirements .requirements-scope-summary>strong{font-size:24px}
#requirements-error:not(:empty){font-size:13px;line-height:1.9;padding:15px 18px;background:var(--amber-soft);border-radius:6px;margin-top:20px}

@media(max-width:720px){.requirements-scope-summary{padding:19px 16px}
.requirements-scope-summary>strong{font-size:24px}
.requirements-scope-summary li{grid-template-columns:minmax(0,1fr);gap:5px}
.requirements-scope-summary code{grid-column:1}
.requirements-scope-count{grid-template-columns:minmax(0,1fr);gap:10px}
.requirements-scope-count input{max-width:180px}
.requirements-scope-count p{margin:0}
.requirements-slot{padding:17px 14px}
.requirements-slot .select{font-size:13px;min-height:46px}
.requirements-scope-history article{padding:17px 14px}
.requirements-scope-history summary{min-height:43px}
.readiness-requirements{padding:0 17px 20px}
.requirements-scope-fields .return-check{line-height:1.9}
}


/* One readable case list; recorded manual checks never imply release. */
.readiness-intro{max-width:580px;margin-bottom:28px}
.readiness-intro h2{font:600 30px/1.12 var(--font-ui);color:var(--green);margin:14px 0}
.readiness-intro p{font-size:12px;line-height:1.9;color:var(--muted);margin:0}
.readiness-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-block:1px solid var(--line);margin:25px 0}
.readiness-counts>div{padding:20px 12px 20px 0;min-width:0}
.readiness-counts>div+div{border-left:1px solid var(--line);padding-left:24px}
.readiness-counts strong{display:block;font:600 30px/1 var(--font-ui);color:var(--green)}
.readiness-counts span{display:block;font-size:12px;line-height:1.8;color:var(--muted);margin-top:10px}
.readiness-limit{padding:18px 21px;background:#f6f7f9;border-left:3px solid #626e80;margin:26px 0}
.readiness-limit strong{font-size:12px;color:#626e80}
.readiness-limit p,.readiness-access{font-size:13px;line-height:1.9;color:#626e80;margin:8px 0 0}
.readiness-access{padding:15px 18px;background:#f6f7f9;color:var(--green);border:1px solid var(--line);border-radius:6px;margin-bottom:25px}
.readiness-cases{display:grid;gap:26px;margin-top:30px}
.readiness-case{border:1px solid #edf0f4;background:var(--surface);border-radius:9px;overflow:hidden;min-width:0}
.readiness-case>header{display:flex;justify-content:space-between;align-items:center;gap:22px;background:#f6f7f9;padding:24px}
.readiness-case>header>div{min-width:0}
.readiness-case>header small{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.readiness-case h3{font:600 29px/1.2 var(--font-ui);color:var(--green);margin:9px 0 0;overflow-wrap:anywhere}
.readiness-case .badge{font-size:12px;white-space:normal;line-height:1.8;flex-shrink:0;max-width:220px}
.readiness-case-summary{padding:18px 24px;background:#f6f7f9;border-bottom:1px solid var(--line)}
.readiness-case-summary p{font-size:13px;line-height:1.9;color:var(--muted);margin:0}
.readiness-case-summary p+p{margin-top:7px}
.readiness-document{padding:23px 24px;min-width:0}
.readiness-document+.readiness-document{border-top:1px solid var(--line)}
.readiness-document-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.readiness-document-heading>div{min-width:0}
.readiness-document-heading strong{font-size:12px;line-height:1.8;color:var(--green)}
.readiness-document-heading small{display:block;font-size:12px;line-height:1.8;color:var(--muted);margin-top:7px;overflow-wrap:anywhere}
.readiness-document>p{font-size:13px;line-height:1.9;color:var(--muted);margin:14px 0 0}
.readiness-document .readiness-previous{padding:12px 15px;background:#f6f7f9;border-radius:4px;color:#626e80}
.readiness-binding{margin-top:17px}
.readiness-binding>summary{font-size:12px;line-height:1.9;color:var(--green);cursor:pointer;min-height:28px}
.readiness-binding>summary:focus-visible{outline:2px solid #626e80;outline-offset:4px}
.readiness-binding dl{margin:15px 0 0;padding:17px;background:#f6f7f9;border-radius:5px}
.readiness-binding dl>div+div{margin-top:17px}
.readiness-binding dt{font-size:12px;color:var(--muted)}
.readiness-binding dd{font-size:12px;line-height:1.9;margin:7px 0 0;overflow-wrap:anywhere;color:#626e80}
.readiness-check-notes{padding:0 0 0 16px;border-left:2px solid #dce1e8;margin:20px 0}
.readiness-check-notes>div+div{margin-top:16px}
.readiness-check-notes dt{font-size:12px;color:#626e80}
.readiness-check-notes dd{font-size:13px;line-height:1.85;margin:8px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--muted)}
.readiness-reason{background:#f6f7f9;padding:16px 18px;border-radius:5px;margin-top:18px}
.readiness-reason strong{font-size:12px;line-height:1.8;color:#626e80}
.readiness-reason p{font-size:13px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;margin:9px 0 0;color:#626e80}
.readiness-no-documents{padding:25px 24px}
.readiness-no-documents strong{font-size:12px;color:var(--green)}
.readiness-no-documents p{font-size:13px;line-height:1.9;color:var(--muted);margin:10px 0 0}
.readiness-case>footer{padding:17px 24px;display:flex;justify-content:space-between;align-items:center;gap:20px;border-top:1px solid var(--line)}
.readiness-case>footer>small{font-size:12px;line-height:1.9;color:var(--muted)}
.readiness-footer{font-size:12px;line-height:1.9;color:var(--muted);margin:23px 0 0}

@media(max-width:720px){.readiness-intro h2{font-size:33px}
.readiness-intro p{font-size:13px}
.readiness-counts>div{padding-block:17px}
.readiness-counts>div+div{padding-left:13px}
.readiness-counts strong{font-size:31px}
.readiness-counts span{font-size:12px}
.readiness-limit{padding:16px 17px}
.readiness-cases{gap:22px}
.readiness-case>header{padding:20px 17px;align-items:flex-start;flex-direction:column;gap:14px}
.readiness-case h3{font-size:27px}
.readiness-case-summary{padding:16px 17px}
.readiness-document{padding:21px 17px}
.readiness-document-heading{flex-direction:column;gap:12px}
.readiness-case .badge{max-width:100%;font-size:12px}
.readiness-binding>summary{min-height:36px;line-height:2}
.readiness-binding dl{padding:15px 12px}
.readiness-reason{padding:14px}
.readiness-no-documents{padding:23px 17px}
.readiness-case>footer{padding:17px;align-items:flex-start;flex-direction:column;gap:13px}
.readiness-case>footer>.button{width:100%;min-height:42px}
.readiness-access{padding:14px}
.readiness-check-notes{padding-left:12px}
}


.requirements-scope-proof { margin-top: 8px; color: var(--muted); font-size: 12px; }

.requirements-scope-proof summary { cursor: pointer; }

.requirements-scope-summary li > small { display: block; margin-top: 5px; }

.requirements-unassigned { margin-top: 16px; }

.requirements-unassigned ul { padding-left: 20px; }

.requirements-scope-summary li > small,
.requirements-scope-summary li > .requirements-scope-proof { grid-column: 2; margin-top: 0; }

.requirements-scope-proof code { display: block; margin-top: 6px; }

.requirements-unassigned li { display: block; }

@media(max-width:720px) {
  .requirements-scope-summary li > small,
  .requirements-scope-summary li > .requirements-scope-proof { grid-column: 1; }

}


.source-draft-status .eyebrow{margin-bottom:14px}
.source-draft-status h2{line-height:1.25;margin:0 0 12px}
.source-draft-status p{margin:12px 0;line-height:1.65;overflow-wrap:anywhere}
.source-draft-status .badge{margin:2px 0 3px}
.source-draft-status .lab-context-line{margin:18px 0 0;gap:10px}


/* Explicit local B.3 preparation, separate from any release. */
.start-status{padding:20px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}

.start-status>header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:12px}

.start-status h3,.start-contract-state h3{margin:6px 0 12px}

.start-status p,.start-next-steps p{color:var(--muted);line-height:1.65}

.start-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:24px}

.start-contract-state{padding:20px 0;border-bottom:1px solid var(--line);margin-bottom:20px}

.start-contract-state ol{padding-left:22px;line-height:1.8}

.start-contract-state code,.start-history code{display:block;font-size:13px;overflow-wrap:anywhere;white-space:normal;color:var(--muted)}

.start-checks{display:grid;gap:8px;margin:12px 0}

.start-checks p{margin:0;padding:12px;background:var(--surface);border-radius:8px}

.start-checks strong,.start-checks span{display:block;font-size:13px}

.start-checks span{margin-top:5px;color:var(--muted)}

.start-blockers,.start-no-lawyer{color:var(--amber);font-size:13px;line-height:1.65}

.start-next-steps{padding:16px 18px;background:var(--surface);border-radius:10px;margin:2px 0 20px;font-size:13px}

.start-next-steps p{margin:6px 0 0}

.start-history{margin:18px 0;font-size:13px;line-height:1.7}

.start-history>summary{cursor:pointer;font-weight:600}

.start-history article{padding:16px 0;border-bottom:1px solid var(--line)}

.start-history h4,.start-history p{margin:0 0 6px}

.start-history small{color:var(--muted)}

@media(max-width:600px){.start-choice-grid{grid-template-columns:1fr;gap:8px}
.start-status{padding:16px}
.start-status .contract-card-facts{grid-template-columns:1fr}
.start-contract-state{padding:16px 0}
.start-history{overflow-wrap:anywhere}
}


/* The local employee directory keeps identity declarations and case grants visible. */
.employee-scope{padding:18px 20px;border:1px solid var(--line);border-left:3px solid #626e80;border-radius:10px;background:#f6f7f9;margin-bottom:22px;line-height:1.6}

.employee-scope p{margin:5px 0 0;color:var(--muted)}

.employee-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}

.employee-card{padding:24px;min-width:0}
.employee-card>header{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}
.employee-card h2{margin:6px 0 0;font-size:23px;overflow-wrap:anywhere}

.employee-version-facts{display:grid;gap:14px;margin:20px 0}
.employee-version-facts div{min-width:0}
.employee-version-facts dt{font-size:13px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin-bottom:4px}
.employee-version-facts dd{margin:0;line-height:1.7;overflow-wrap:anywhere}

.employee-card-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding-top:16px}
.employee-card-footer small,.employee-footnote{color:var(--muted)}
.employee-footnote{margin-top:22px}

.employee-history{margin-top:20px;border-top:1px solid var(--line);padding-top:16px}
.employee-history summary{cursor:pointer;font-weight:600;font-size:13px}
.employee-history article{padding:18px 0;border-bottom:1px solid var(--line)}
.employee-history header{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.employee-history header span,.employee-history article>small{font-size:12px;color:var(--muted)}
.employee-reason{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.7}

.employee-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.employee-form-grid>.field:first-child{grid-column:1/-1}
.employee-form-section{margin-bottom:24px}
.employee-form-section h3{font-size:16px;margin:0 0 8px}
.employee-check{display:flex;align-items:flex-start;gap:12px;margin:12px 0;cursor:pointer;line-height:1.6}
.employee-check input{flex:0 0 auto;width:16px;height:16px;margin-top:4px;accent-color:var(--ink)}
.employee-check span{min-width:0;overflow-wrap:anywhere}
.employee-check small,.employee-check strong{display:block}
.employee-check small{font-size:12px;color:var(--muted)}
.employee-case-options{max-height:300px;overflow:auto;border:1px solid var(--line);border-radius:10px;padding:4px 14px}
.employee-confirm{border-top:1px solid var(--line);padding-top:18px;font-size:13px}

@media(max-width:900px){.employee-grid{grid-template-columns:1fr}
}
@media(max-width:520px){.employee-form-grid{grid-template-columns:1fr}
.employee-card{padding:18px}
.employee-scope{padding:15px}
.employee-card-footer{align-items:flex-start;flex-direction:column}
}

.default-lawyer-card{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 24px;margin-bottom:24px}
.default-lawyer-card>div{min-width:0}
.default-lawyer-card h2{font:600 25px/1.3 var(--font-ui);margin:7px 0}
.default-lawyer-card p{line-height:1.7;overflow-wrap:anywhere}
.default-lawyer-card small{display:block;color:var(--muted);font-size:12px;line-height:1.7;margin-top:8px}
.default-lawyer-card>.button{flex-shrink:0}
.start-default-suggestion{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;border:1px solid var(--line);border-radius:9px;background:var(--green-soft);margin:18px 0}
.start-default-suggestion strong{font-size:13px;overflow-wrap:anywhere}
.start-default-suggestion p{font-size:12px;line-height:1.7;margin-top:5px;color:var(--muted)}
.start-default-suggestion>.button{flex-shrink:0}
.start-default-unavailable{margin:18px 0}

@media(max-width:600px){.default-lawyer-card,.start-default-suggestion{flex-direction:column;align-items:flex-start;padding:18px}
.default-lawyer-card>.button,.start-default-suggestion>.button{width:100%}
}

/* Annual numbering shares the compact administrative cards and dialog rhythm. */
.numbering-card{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:18px 0;padding:24px}
.numbering-card h2{margin:6px 0}
.numbering-card p{margin:8px 0}
.numbering-card small{display:block;color:var(--muted);line-height:1.6}
.numbering-card>button{flex-shrink:0}
.numbering-summary{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0 10px}
.numbering-summary>div{padding:16px;border:1px solid var(--line);border-radius:12px;min-width:0}
.numbering-summary small{display:block;color:var(--muted);line-height:1.5}
.numbering-summary strong{display:block;margin-top:8px;font-size:18px;overflow-wrap:anywhere}
@media(max-width:600px){.numbering-card{align-items:stretch;flex-direction:column;padding:20px;gap:16px}
.numbering-summary{grid-template-columns:1fr}
}

.modal.form-editor-modal{width:min(1180px,calc(100vw - 48px));max-width:1180px}
.form-editor-status{display:flex;gap:20px;justify-content:space-between;align-items:center;margin-bottom:24px;padding-bottom:20px;border-bottom:1px solid var(--line)}
.form-editor-status>span{display:flex;gap:8px;flex-wrap:wrap}
.form-editor-status>p{font-size:13px;color:var(--muted);line-height:1.8;max-width:290px}
.form-editor-fieldset{border:0;padding:0;margin:0;min-width:0}
.form-editor-meta{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px}
.form-editor-meta>.field:last-child{grid-column:1/-1}
.form-editor-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.85fr);gap:30px;margin:16px 0 30px;align-items:start}
.form-editor-source,.form-editor-settings{min-width:0}
.form-editor-section-heading,.form-field-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:17px}
.form-editor-section-heading .eyebrow{font-size:12px}
.form-editor-section-heading>.button{font-size:12px;white-space:normal}
.form-editor-source>.field-label{font-size:12px;line-height:1.8}
#form-editor-source{display:block;width:100%;resize:vertical;min-height:340px;max-height:640px;margin:14px 0;padding:25px 23px;font-size:16px;line-height:1.9}
#form-editor-source::selection{background:#dce1e8;color:#18212f}
.form-editor-settings{background:#f6f7f9;border:1px solid #edf0f4;padding:23px;border-radius:6px}
.form-editor-settings .select,.form-editor-meta .select{width:100%;max-width:100%;text-overflow:ellipsis}
.form-field-heading .eyebrow{font-size:12px}
.form-field-heading .button{font-size:12px;padding:7px 9px}
.form-field-quote{border-left:2px solid #626e80;padding:9px 0 9px 13px;margin:0 0 23px;color:#626e80;font:600 18px/1.5 var(--font-ui);white-space:pre-wrap;overflow-wrap:anywhere;max-height:140px;overflow:auto}
.form-editor-check{display:flex;align-items:center;gap:10px;font-size:12px;line-height:1.7;margin:19px 0 24px}
.form-editor-check input{accent-color:var(--green);width:16px;height:16px;flex-shrink:0}
.form-editor-rules{border-top:1px solid #dce1e8;padding:16px 0;margin-top:15px}
.form-editor-rules>summary{font-size:13px;font-weight:600;cursor:pointer;margin-bottom:12px}
.form-editor-rules .field{margin-bottom:14px}
.form-rule-group{padding-left:10px;border-left:2px solid #dce1e8}
.form-rule-child{padding:10px 0 12px;border-bottom:1px solid #edf0f4;margin-bottom:14px}
.form-rule-child .button{font-size:12px;padding:6px 9px}
.form-rule-comparison{display:grid;grid-template-columns:minmax(0,1fr);gap:3px}
.form-options>div{display:flex;gap:8px;align-items:center}
.form-options .field{flex:1;min-width:0}
.form-options .button{font-size:12px;padding:6px}
.form-editor-field-list{border-top:1px solid var(--line);margin-top:23px}
.form-editor-field{display:grid;grid-template-columns:27px minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;padding:15px 12px;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);text-align:left;cursor:pointer}
.form-editor-field.selected{background:#edf0f4;box-shadow:inset 3px 0 #626e80}
.form-editor-field>span{font-size:12px;color:#626e80}
.form-editor-field>strong{font-size:13px;font-weight:500;overflow-wrap:anywhere}
.form-editor-field>small{font-size:12px;color:var(--muted)}
.form-editor-empty{padding:36px 7px;min-height:250px;color:#626e80}
.form-editor-empty h3{font:600 29px/1.2 var(--font-ui);color:var(--green);margin:23px 0 14px}
.form-editor-empty p{font-size:13px;line-height:1.9;color:var(--muted)}
.form-editor-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;border-top:1px solid var(--line);padding-top:22px;margin-top:24px}
.form-editor-actions>div{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.form-editor-actions .button{font-size:13px;white-space:normal}
.form-editor-preview{max-width:660px;margin:22px auto 35px;padding:30px 35px;background:#ffffff;border:1px solid var(--line);box-shadow:0 8px 24px #18212f08}
.form-editor-preview h3{font:600 30px/1.2 var(--font-ui);color:var(--green);margin:17px 0}
.form-preview-field{margin:25px 0}
.form-preview-field>.field-label{display:block;margin-bottom:10px}
.form-preview-field .select{width:100%}
.form-preview-field output{display:block;font:600 28px/1.3 var(--font-ui);color:var(--green);padding:14px;background:#f6f7f9}
.form-preview-result{font-size:12px;line-height:1.8;margin-top:23px;color:var(--muted)}
.form-preview-result ul{padding-left:18px;margin-top:15px}
#form-editor-error:not(:empty){padding:15px;background:var(--amber-soft);color:var(--amber);font-size:12px;line-height:1.8;border-radius:5px;margin-top:21px}
.form-editor-fieldset:disabled{opacity:.7}

@media(max-width:860px){.form-editor-layout{grid-template-columns:minmax(0,1fr);gap:24px}
.form-editor-meta{grid-template-columns:minmax(0,1fr);gap:8px}
.form-editor-status{align-items:flex-start;flex-direction:column;gap:12px}
.form-editor-status>p{max-width:none}
.form-editor-settings{padding:21px}
.form-editor-actions{align-items:flex-start}
.form-editor-preview{padding:25px}
.form-editor-field-list{max-height:260px;overflow:auto}
}

@media(max-width:720px){.modal.form-editor-modal{width:100%;max-width:100%}
.form-editor-actions{flex-direction:column}
.form-editor-actions>div{width:100%;flex-direction:column}
.form-editor-actions .button{min-height:42px}
.form-editor-section-heading{align-items:flex-start;flex-direction:column;gap:14px}
#form-editor-source{min-height:270px;padding:19px}
.form-editor-field{grid-template-columns:25px minmax(0,1fr);padding:14px 10px}
.form-editor-field>small{grid-column:2}
.form-editor-preview{padding:23px 19px}
.form-editor-settings{padding:18px}
.form-editor-status .badge{white-space:normal}
.form-rule-group{padding-left:6px}
}


.form-editor-history{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:0 18px;margin-bottom:24px}
.form-editor-history>.field{margin-bottom:0}
.form-editor-history .select{width:100%;max-width:100%;text-overflow:ellipsis}
.form-editor-history>.button{margin-bottom:2px}
.form-editor-history>.field-help{grid-column:1/-1;margin-top:11px}
@media(max-width:720px){.form-editor-history{grid-template-columns:minmax(0,1fr);gap:12px}
.form-editor-history>.button{justify-self:start}
.form-editor-history>.field-help{margin-top:0}
}


/* Form positions belong to the explicitly selected saved contract version. */
.form-binding-choice{display:flex;align-items:flex-end;gap:14px;margin:24px 0}
.form-binding-choice .field{flex:1;margin:0}
.form-binding-layout{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:24px;align-items:start}
.form-binding-layout>.contract-paper{margin:0;min-width:0}
.form-binding-mark{background:#edf0f4;color:inherit;box-shadow:0 2px 0 #626e80;padding:2px 0;box-decoration-break:clone}
.form-binding-fields{border-left:1px solid var(--line);padding-left:20px}
.form-binding-fields article{display:flex;gap:10px;padding:14px 0;border-bottom:1px solid var(--line);min-width:0}
.form-binding-fields article>span{font:11px ui-monospace,monospace;color:var(--muted);padding-top:3px}
.form-binding-fields article>div{min-width:0}
.form-binding-fields strong{font-size:13px}
.form-binding-fields p{font-size:13px;color:var(--muted);margin:4px 0}
.form-binding-fields blockquote{font-size:12px;margin:9px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--muted)}
.form-binding-summary{padding:8px 0 18px}
.form-binding-summary p{font-size:12px;color:var(--muted);margin:8px 0 0}

@media(max-width:720px){.form-binding-choice{flex-direction:column;align-items:stretch}
.form-binding-layout{grid-template-columns:minmax(0,1fr)}
.form-binding-fields{border-left:0;padding-left:0;border-top:1px solid var(--line)}
}


.quality-report-choice{padding-bottom:22px;margin-bottom:24px;border-bottom:1px solid var(--line)}
.quality-report-choice .select{width:100%;min-width:0;max-width:100%}
.quality-report-choice .field-help{margin-top:9px}


.recipient-create{padding:24px 0;border-bottom:1px solid var(--line)}
.recipient-create h3,.recipient-identity h3{font:600 25px/1.3 var(--font-ui);margin-bottom:8px}
.recipient-create .field-label{margin-top:16px}
.recipient-create .select{width:100%;margin-bottom:12px}
.recipient-list{margin:24px 0}
.recipient-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 0;border-bottom:1px solid var(--line)}
.recipient-row h3{font-size:14px;margin-bottom:6px}
.recipient-row p,.recipient-identity p{font-size:12px;overflow-wrap:anywhere}
.recipient-row small{display:block;color:var(--muted);margin-top:7px}
.recipient-access{padding:13px 16px;background:var(--amber-soft);color:var(--amber);font-size:12px;line-height:1.6;margin:15px 0}
.recipient-actions{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-top:24px}
.recipient-actions>div{display:flex;gap:8px;flex-wrap:wrap}
.recipient-identity{display:flex;align-items:start;justify-content:space-between;gap:15px;margin-bottom:16px}
.recipient-history{margin:22px 0}
.recipient-history .select{width:100%;margin-bottom:12px}
#recipient-form-root .form-preview-field{padding:12px 0}
#recipient-form-root .form-preview-field .input,#recipient-form-root .form-preview-field .select{width:100%}

@media(max-width:720px){.recipient-actions,.recipient-identity,.recipient-row{align-items:stretch;flex-direction:column}
.recipient-actions>div{flex-direction:column}
.recipient-actions .button{width:100%}
}

.signing-selection{margin-top:24px}
.signing-selection .select{width:100%;margin-bottom:18px}
.signing-history{margin-top:30px}
.signing-history ol{padding-left:20px;line-height:1.7}
.signing-history li{overflow-wrap:anywhere}


.signing-journal{margin-top:30px;padding-top:26px;border-top:1px solid var(--line)}
.signing-journal>h3{font:600 25px/1.3 var(--font-ui);margin:7px 0 12px}
.signing-journal-request{padding:20px 0;border-bottom:1px solid var(--line)}
.signing-journal-heading{display:flex;gap:14px;justify-content:space-between;align-items:center;flex-wrap:wrap}
.signing-journal-heading>strong{font-size:13px}
.signing-journal-request .field-help{margin-top:12px}
.signing-journal-attempt{padding:16px 0 4px}
.signing-journal-attempt summary{cursor:pointer;font-size:13px;line-height:1.6}
.signing-journal-attempt>p{font-size:12px;line-height:1.7;margin:12px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.signing-journal-meta{display:grid;grid-template-columns:1fr 1fr;gap:14px 24px;margin:16px 0}
.signing-journal-meta dt{font-size:13px;color:var(--muted);margin-bottom:5px}
.signing-journal-meta dd{font-size:12px;margin:0;overflow-wrap:anywhere}
.signing-journal-events{margin:12px 0;padding-left:20px}
.signing-journal-events li{font-size:12px;line-height:1.7;margin:12px 0}
.signing-journal-events span{display:block;color:var(--muted)}
.signing-journal-events p{white-space:pre-wrap;overflow-wrap:anywhere}
.signing-journal-warning{margin-top:18px}
@media(max-width:600px){.signing-journal-meta{grid-template-columns:1fr}
.signing-journal-heading{align-items:flex-start;flex-direction:column}
.signing-journal-heading .badge{white-space:normal;line-height:1.5}
.signing-journal-attempt summary{overflow-wrap:anywhere}
}


/* Regular working hours remain separate from the personnel and rights editor. */
.availability-section{margin:0 0 32px}
.availability-section .section-heading{margin-bottom:16px}
.availability-section .section-heading p{color:var(--muted);margin-top:6px}
.availability-readonly{padding:12px 16px;border-left:3px solid var(--line);font-size:12px;line-height:1.6;margin-bottom:16px;color:var(--muted)}
.availability-card{padding:22px;min-width:0}
.availability-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:18px}
.availability-card h3{margin:0 0 5px;font-size:17px;overflow-wrap:anywhere}
.availability-card header small,.availability-card footer small{color:var(--muted)}
.availability-card footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px}
.availability-hours{list-style:none;padding:0;margin:14px 0}
.availability-hours li{display:flex;justify-content:space-between;gap:16px;padding:7px 0;border-bottom:1px solid var(--line);font-size:13px}
.availability-hours strong{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:500}
.availability-substitute{display:flex;flex-direction:column;gap:5px;padding-top:8px;overflow-wrap:anywhere}
.availability-substitute small,.availability-substitute span{font-size:13px;color:var(--muted)}
.availability-substitute strong{font-size:13px;font-weight:500}
.availability-editor-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin:22px 0 14px}
.availability-editor-head h3{font-size:16px;margin:0}
.availability-editor-head span{font-size:13px;color:var(--muted)}
.availability-interval{display:grid;grid-template-columns:minmax(150px,1.5fr) minmax(90px,1fr) minmax(90px,1fr) auto;align-items:end;gap:12px;margin-bottom:14px}
.availability-interval .field{margin:0}
.availability-interval .button{min-height:38px}
.availability-interval input{font-variant-numeric:tabular-nums}
#availability-fields{margin-top:18px}
#availability-fields>.field{margin-top:22px}

@media(max-width:620px){.availability-card{padding:18px}
.availability-card header{flex-direction:column}
.availability-interval{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;padding-bottom:16px;border-bottom:1px solid var(--line)}
.availability-interval>.field:first-child{grid-column:1/-1}
.availability-interval>.button{grid-column:1/-1;justify-self:end}
.availability-editor-head{align-items:flex-start;flex-direction:column;gap:6px}
.availability-card footer{flex-wrap:wrap}
.availability-hours li{gap:10px}
}

/* Person-specific leave rights are distinct from weekly plans and substitutions. */
.rights-section{margin:0 0 34px}
.rights-section .section-heading{margin-bottom:16px}
.rights-section .section-heading p{margin-top:6px;color:var(--muted)}
.rights-recipient{padding:20px 22px;margin:18px 0 22px;border:1px solid var(--line);border-left:3px solid #626e80;border-radius:10px;background:#f6f7f9;overflow-wrap:anywhere}
.rights-recipient h3{font:600 25px/1.3 var(--font-ui);margin:8px 0}
.rights-recipient p{font-size:13px;line-height:1.7}
.rights-recipient small{display:block;font-size:13px;line-height:1.7;color:var(--muted);margin-top:8px}
.rights-recipient li{font-size:13px;line-height:1.7;margin:6px 0}
.rights-card{padding:22px;min-width:0}
.rights-card header,.rights-card footer{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.rights-card h3{margin:0 0 5px;overflow-wrap:anywhere;font-size:17px}
.rights-card small{color:var(--muted)}
.rights-card .badge{white-space:normal;line-height:1.5}
.rights-status{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:22px 0}
.rights-status dt{font-size:13px;color:var(--muted);margin-bottom:6px}
.rights-status dd{font-size:13px;line-height:1.6;margin:0;overflow-wrap:anywhere}
.rights-card footer{align-items:center;border-top:1px solid var(--line);padding-top:16px}
.rights-footnote{margin-top:18px}
#employee-rights-fields{margin-top:24px}

@media(max-width:600px){.rights-card,.rights-recipient{padding:18px}
.rights-card header,.rights-card footer{flex-direction:column;align-items:flex-start}
.rights-status{grid-template-columns:1fr}
.rights-card footer .button{width:100%}
}

/* Calendar dates and historical request recipients remain distinct from approvals. */
.leave-section{margin:0 0 34px}
.leave-section .section-heading{margin-bottom:16px}
.leave-section .section-heading p{color:var(--muted);margin-top:6px}
.leave-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:20px 0}
.leave-toolbar p{font-size:13px;line-height:1.7;color:var(--muted);max-width:620px}
.leave-toolbar>.button{flex-shrink:0}
.leave-card{padding:22px;min-width:0}
.leave-card header,.leave-card footer{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.leave-card h3{margin:0 0 10px;font-size:17px;overflow-wrap:anywhere}
.leave-card header span{font-variant-numeric:tabular-nums;font-size:15px}
.leave-card .badge{white-space:normal;line-height:1.5}
.leave-card footer{align-items:center;border-top:1px solid var(--line);padding-top:16px}
.leave-card footer small{color:var(--muted)}
.leave-context{padding-left:19px;font-size:12px;line-height:1.7;color:#626e80;margin:14px 0}
.leave-context li{margin:7px 0;overflow-wrap:anywhere}
.leave-date-fields>.field:first-child{grid-column:auto}
#employee-leave-fields{margin-top:24px}
#employee-leave-fields>.field{margin-top:22px}
.leave-date-fields input{min-width:0;width:100%;font-variant-numeric:tabular-nums}

@media(max-width:600px){.leave-toolbar,.leave-card header,.leave-card footer{flex-direction:column;align-items:flex-start}
.leave-toolbar>.button,.leave-card footer>.button{width:100%}
.leave-card{padding:18px}
.leave-date-fields{grid-template-columns:1fr}
}


/* Local leave decisions follow the existing employee ledger presentation. */
.leave-card footer{flex-wrap:wrap}
.leave-card footer small{flex:1 0 100%}
.leave-decision-facts{display:grid;grid-template-columns:1fr 1fr;gap:18px 24px;margin:24px 0}
.leave-decision-facts div{min-width:0}
.leave-decision-facts dt{color:var(--muted);font-size:12px;margin-bottom:7px}
.leave-decision-facts dd{margin:0;font-size:15px;line-height:1.6;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.leave-decision-effects{border-left:3px solid #626e80;background:#f6f7f9;padding:16px 18px;margin:18px 0}
.leave-decision-effects strong{font-size:13px;color:#263448}
.leave-decision-effects p{font-size:13px;line-height:1.7;margin:7px 0 0;overflow-wrap:anywhere}
.leave-approval-list{margin:22px 0;padding:20px;border:1px solid var(--line);border-radius:var(--radius)}
.leave-approval-list h3{font-size:14px;margin:0 0 15px}
.leave-approval-list p{padding:10px 0;border-top:1px solid var(--line);line-height:1.6;font-size:13px}
.leave-approval-list span{display:block;color:var(--muted)}
.leave-approval-list small{color:var(--muted);line-height:1.6}
.leave-decision-history article{overflow-wrap:anywhere}
#leave-decision-fields{margin-top:24px}
#leave-decision-fields>.field{margin-top:20px}
#leave-decision-fields .select{width:100%;min-width:0}

@media(max-width:600px){.leave-decision-facts{grid-template-columns:1fr;gap:15px}
.leave-card footer>.button{flex:1 0 100%;white-space:normal}
.leave-decision-history article header{align-items:flex-start;gap:10px;flex-direction:column}
.leave-approval-list{padding:16px}
}


/* Source corrections keep the original visibly separate from a proposed reading. */
.correction-entry{border-top:1px solid var(--line);padding-top:24px;margin:24px 0}
.correction-entry article{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:18px 0;border-bottom:1px solid var(--line)}
.correction-entry article>div{min-width:0}
.correction-entry article p{font-size:12px;line-height:1.7;margin:6px 0;overflow-wrap:anywhere}
.correction-entry .button{flex-shrink:0}

.correction-scope{border-left:3px solid #626e80;padding:14px 18px;background:#f6f7f9;margin-bottom:26px}
.correction-scope p{font-size:12px;line-height:1.8;margin:6px 0 0}
.correction-workspace{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:28px;align-items:start}
.correction-workspace>section{min-width:0}
.correction-workspace h3{font-size:23px;margin:10px 0 20px}
.correction-original{position:sticky;top:0}
.correction-source-scroll{max-height:440px;overflow:auto;border:1px solid var(--line);border-radius:7px;background:#f6f7f9}
.correction-source-scroll article{padding:11px 15px;border-bottom:1px solid var(--line)}
.correction-source-scroll article:last-child{border:0}
.correction-source-scroll small{font-size:12px;color:var(--muted)}
.correction-source-scroll pre{font-family:inherit;font-size:12px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0}
.correction-previous{padding:20px 0;overflow-wrap:anywhere}
.correction-previous p{font-size:13px;line-height:1.9}
.correction-previous details{font-size:12px}
.correction-editor fieldset{border:0;padding:0;margin:0;min-width:0}
.correction-editor input,.correction-editor select,.correction-editor textarea{max-width:100%;box-sizing:border-box}
.correction-editor .field{margin-bottom:15px}
.correction-editor textarea{min-height:96px;resize:vertical;line-height:1.7;width:100%}
.correction-editor section{padding:18px 0;border-top:1px solid var(--line);margin-top:18px}
.correction-evidence{font-size:13px;margin:10px 0 18px}
.correction-evidence summary{cursor:pointer;color:var(--green);padding:6px 0}
.correction-evidence>div{max-height:220px;overflow:auto;background:#f6f7f9;border:1px solid var(--line);border-radius:5px;padding:8px}
.correction-evidence label,.correction-refs label,.correction-confirm{display:flex;align-items:flex-start;gap:9px;line-height:1.7;padding:7px 2px;overflow-wrap:anywhere}
.correction-evidence label input,.correction-refs input,.correction-confirm input{flex-shrink:0;margin-top:4px;accent-color:var(--green)}
.correction-evidence label span{min-width:0}
.correction-evidence label strong{font-weight:600;margin-right:4px}
.correction-editor .correction-refs{border-top:1px solid var(--line);padding:18px 0;margin:18px 0;font-size:12px}
.correction-confirm{font-size:12px;border-top:1px solid var(--line);padding:18px 0;margin-top:20px}
.correction-history{margin:26px 0;border-top:1px solid var(--line);padding-top:20px}
.correction-history>summary{cursor:pointer;font-weight:600;font-size:13px}
.correction-history article{padding:20px 0;border-bottom:1px solid var(--line);font-size:12px;line-height:1.8;overflow-wrap:anywhere}
.correction-history small{display:block;color:var(--muted);margin:6px 0}
.correction-history article>details{margin-top:10px}
.correction-editor fieldset:disabled{opacity:.72}
#correction-error:empty,#correction-notice:empty{display:none}
#correction-notice{font-size:12px;line-height:1.8;color:var(--green)}

@media(max-width:760px){.correction-workspace{grid-template-columns:minmax(0,1fr);gap:18px}
.correction-original{position:static}
.correction-source-scroll{max-height:280px}
.correction-entry article{flex-direction:column;gap:10px}
.correction-workspace h3{font-size:22px}
.correction-editor .field-label{line-height:1.7}
.correction-previous{padding-bottom:0}
}

/* Source redaction: a quiet editorial desk with the original beside the reading. */
.editorial-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin:3px 0 20px}
.editorial-heading h2{font:600 30px/1.08 var(--font-ui);color:var(--green);margin:10px 0}
.editorial-heading p,.editorial-scope{font-size:13px;line-height:1.9;color:var(--muted)}
.editorial-scope{padding-bottom:18px;border-bottom:1px solid var(--line);color:var(--text)}
.editorial-notice{background:var(--amber-soft);border-left:3px solid #626e80;padding:15px 18px;margin:20px 0 27px}
.editorial-notice strong{font-size:13px;color:var(--amber)}
.editorial-notice p{font-size:13px;line-height:1.8;margin:7px 0 0}
.editorial-layout{display:grid;grid-template-columns:200px minmax(0,1fr);gap:27px;align-items:start}
.editorial-index{display:flex;flex-direction:column;gap:4px}
.editorial-index-item{display:flex;gap:11px;text-align:left;width:100%;background:transparent;border:0;border-left:2px solid transparent;padding:13px 11px;color:var(--text);font:11px/1.6 Manrope,sans-serif;cursor:pointer}
.editorial-index-item>span:first-child{color:var(--muted);font-size:12px;padding-top:1px}
.editorial-index-item>span:last-child{min-width:0;overflow-wrap:anywhere}
.editorial-index-item small{display:block;font-size:12px;color:var(--muted);margin-top:7px}
.editorial-index-item.active{background:var(--green-soft);border-left-color:var(--green)}
.editorial-index-item:hover{background:#f6f7f9}
.editorial-index-item:focus-visible,.editorial-history summary:focus-visible,.editorial-source summary:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.editorial-detail{min-width:0;padding-top:10px}
.editorial-detail h3,.editorial-render h3,.editorial-output h3{font:600 26px/1.2 var(--font-ui);color:var(--green);margin:10px 0 15px}
.editorial-statement{font-size:13px;line-height:1.95;white-space:pre-wrap;overflow-wrap:anywhere}
.editorial-source{margin:23px 0;border:1px solid var(--line);background:var(--paper);border-radius:6px;overflow:hidden}
.editorial-source summary{font-size:13px;font-weight:600;padding:13px 15px;cursor:pointer;color:var(--green)}
.editorial-source-line{display:grid;grid-template-columns:53px minmax(0,1fr);gap:10px;padding:8px 15px;border-top:1px solid var(--line)}
.editorial-source-line>span{font-size:12px;color:var(--muted);padding-top:2px}
.editorial-source-line pre,.editorial-context{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font:11px/1.8 Manrope,sans-serif}
.editorial-open{padding:0 0 15px;border-bottom:1px solid var(--line)}
.editorial-open h4{font-size:13px;color:var(--amber);font-weight:600}
.editorial-open p{font-size:12px;line-height:1.9}
.editorial-review-status{display:grid;grid-template-columns:1fr 1fr;gap:15px;padding:22px 0}
.editorial-review-status span{display:block;font-size:12px;letter-spacing:.04em;color:var(--muted)}
.editorial-review-status strong{display:block;font-size:12px;line-height:1.7;font-weight:500;margin-top:6px}
.editorial-textarea{font-size:12px;line-height:1.9;resize:vertical}
.editorial-review-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.editorial-actions{display:flex;flex-wrap:wrap;gap:10px}
.editorial-actions>.button{font-size:13px}
.editorial-history{border-top:1px solid var(--line);margin-top:24px;padding-top:18px}
.editorial-history summary{font-size:12px;color:var(--green);cursor:pointer}
.editorial-history article{padding:15px 0;border-bottom:1px solid var(--line)}
.editorial-history strong{font-size:13px;line-height:1.8}
.editorial-history p{font-size:13px;line-height:1.8;overflow-wrap:anywhere}
.editorial-history small{font-size:12px;line-height:1.8;color:var(--muted);overflow-wrap:anywhere}
.editorial-context{margin-top:14px}
.editorial-render{padding:24px 0 5px;margin-top:24px;display:flex;gap:20px;align-items:center;border-top:1px solid var(--line)}
.editorial-render h3{font-size:24px}
.editorial-render p{font-size:13px;line-height:1.8;margin:0}
.editorial-render>.button{flex-shrink:0;font-size:13px}
.editorial-output{background:var(--paper);margin-top:26px;padding:26px;border-top:3px solid #626e80}
.editorial-final-text{white-space:pre-wrap;overflow-wrap:anywhere;font:600 14px/2 var(--font-ui);margin-top:23px}
.editorial-workbench button:disabled{cursor:not-allowed;opacity:.5}

@media(max-width:760px){.editorial-heading{flex-direction:column;gap:5px}
.editorial-heading h2{font-size:32px}
.editorial-layout{grid-template-columns:1fr;gap:18px}
.editorial-index{flex-direction:row;overflow-x:auto;padding:0 0 9px;scroll-snap-type:x proximity}
.editorial-index-item{flex:0 0 172px;border-left:0;border-bottom:2px solid transparent;scroll-snap-align:start;padding:10px;min-height:100px}
.editorial-index-item.active{border-bottom-color:var(--green)}
.editorial-render{flex-direction:column;align-items:stretch}
.editorial-review-fields,.editorial-review-status{grid-template-columns:1fr;gap:12px}
.editorial-actions>.button{flex:1;justify-content:center}
.editorial-output{padding:19px}
.editorial-source-line{grid-template-columns:43px minmax(0,1fr);gap:6px;padding:8px 11px}
.editorial-notice{padding:13px}
.editorial-history summary{min-height:36px;line-height:1.8}
.editorial-final-text{font-size:16px}
}


.test-workspace-notice{display:flex;gap:12px;flex-wrap:wrap;padding:10px 14px;margin-bottom:20px;border:1px solid #d2d6c4;background:#f4f6e9;color:#353a27;font-size:13px}.test-workspace-notice strong{font-weight:700}
.form-placement-paper{white-space:pre-wrap;overflow-wrap:anywhere;min-height:360px;max-height:65dvh;overflow:auto;padding:32px!important;margin:16px 0;background:#fff;border:1px solid var(--line);font:17px/1.9 Georgia,serif;cursor:text;user-select:text;-webkit-user-select:text}.form-document-field{color:inherit;background:#eef5ce;border:1px solid #bccb83;border-radius:2px;padding:2px 0;cursor:pointer}.form-document-field.selected{background:#d9ef78;outline:2px solid #758337;outline-offset:2px}.form-placement-paper::selection,.form-placement-paper *::selection{background:#b8cc77}.form-placement-alternative summary{font-size:12px;cursor:pointer;color:var(--muted);padding:10px 0}.form-editor-source #form-editor-selection{min-height:22px;margin:0}@media(max-width:720px){.form-placement-paper{padding:20px!important;max-height:50dvh;min-height:260px}}
.form-preview-prose{white-space:pre-wrap;font:17px/1.9 Georgia,serif;overflow-wrap:anywhere}.form-editor-preview .form-preview-field{border-left:3px solid #c9df70;background:#f8faef;padding:14px;margin:14px 0}

.telephone-tools{color:#242725;max-width:1500px;font-size:14px;line-height:1.5}.telephone-tools *{box-sizing:border-box;min-width:0}.tt-header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding-bottom:24px;border-bottom:1px solid #dfe2dd}.tt-header h2{font-size:32px;letter-spacing:-1px;line-height:1.1;margin:8px 0 10px}.tt-header p{margin:0;color:#687069}.telephone-tools h3{font-size:20px;line-height:1.3;margin:0 0 16px}.telephone-tools h4{font-size:16px;margin:0 0 8px}.telephone-tools .button{min-height:42px;white-space:normal;line-height:1.3;box-shadow:none}.telephone-tools .button:not(.secondary){background:#252b27;color:#e2ff72;border-color:#252b27}.telephone-tools .button.secondary{background:#fff;color:#272e28;border:1px solid #cbd1c9}.telephone-tools .button:disabled{opacity:.48;cursor:not-allowed}.tt-tabs{display:flex;align-items:center;gap:24px;border-bottom:1px solid #dfe2dd;margin-bottom:24px}.tt-tabs button{background:none;border:0;border-bottom:3px solid transparent;padding:17px 0;font:inherit;font-weight:600;cursor:pointer;color:#646c65}.tt-tabs button[aria-selected=true]{color:#1f2720;border-color:#1f2720}.tt-tabs>span{font-size:12px;color:#747c73;margin-left:auto}.tt-state{display:inline-flex;background:#eef1e9;color:#4d5a46;padding:4px 8px;font-size:12px;line-height:1.4;border-radius:4px}.tt-state.live{background:#e5f6c1;color:#365007}.tt-notice,.tt-connection{padding:14px 18px;background:#f3f6ec;border-left:3px solid #a6bc62;margin:16px 0;overflow-wrap:anywhere}.tt-notice p,.tt-connection p{margin:6px 0}.tt-connection{display:flex;gap:16px;align-items:center;background:#f6f6f3;border-color:#d0d5c6}.tt-contacts{margin:0 0 24px;display:grid;gap:12px}.tt-contacts article{border:1px solid #dfe2dd;padding:16px 20px;background:#fff}.tt-contact-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.tt-contact-heading p{font-size:13px;color:#6c756d;margin:3px 0}.telephone-tools details summary{cursor:pointer;font-weight:600;padding:12px 0}.tt-contacts details{margin-top:8px;border-top:1px solid #edf0e8}.telephone-tools form{display:grid;gap:16px;margin:12px 0}.telephone-tools label{display:grid;gap:7px;font-size:13px;font-weight:600}.telephone-tools input,.telephone-tools select,.telephone-tools textarea{width:100%;font:inherit;color:#252b27;background:#fff;border:1px solid #cfd5cb;border-radius:4px;padding:10px 12px;min-height:42px}.telephone-tools textarea{resize:vertical;line-height:1.6}.telephone-tools .tt-checkbox{display:flex;align-items:center;gap:10px}.tt-checkbox input{width:18px;min-height:18px;accent-color:#637a2a}.tt-call-grid{display:grid;grid-template-columns:240px minmax(0,1fr);border:1px solid #dce0d6;background:#fff}.tt-call-list{border-right:1px solid #dce0d6;padding:20px 12px;background:#f7f8f4}.tt-call-list h3{padding:0 8px;font-size:15px}.tt-call-list button{display:flex;flex-direction:column;gap:4px;width:100%;text-align:left;font:inherit;font-size:13px;background:none;border:1px solid transparent;border-radius:4px;padding:13px 10px;margin-bottom:8px;cursor:pointer}.tt-call-list button.selected{background:#edf2de;border-color:#cbd6ab}.tt-call-list span,.tt-call-list small{color:#636d5d}.tt-call-detail{padding:28px;min-height:260px}.tt-detail-title{display:flex;justify-content:space-between;gap:16px;border-bottom:1px solid #e5e8e1;padding-bottom:20px;margin-bottom:24px;align-items:flex-start}.tt-detail-title h3{font-size:24px;letter-spacing:-.5px;margin:8px 0}.tt-detail-title p{margin:0;color:#636b60}.tt-caption{font-size:12px;line-height:1.6;color:#6d756c;margin:0}.tt-summary{white-space:pre-wrap;background:#f7f8f4;border-left:3px solid #d2eb86;padding:18px;margin:14px 0 18px}.tt-inline-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0}.tt-two{display:grid;grid-template-columns:1fr 1fr;gap:16px}.tt-proposals{border-top:1px solid #e2e5dd;margin-top:24px;padding-top:24px}.tt-proposals details{border-bottom:1px solid #e2e5dd}.tt-proposals blockquote{margin:8px 0;border-left:2px solid #b8c595;padding:8px 14px;color:#68725e;background:#f8f9f5}.tt-transcript{margin-top:24px;border-top:1px solid #e2e5dd}.tt-transcript>div{max-height:400px;overflow:auto}.tt-transcript p{display:flex;gap:16px}.tt-transcript time{color:#879275;font:12px monospace;flex:0 0 45px;padding-top:4px}.tt-orders{margin:24px 0;border:1px solid #e2e5dd;padding:4px 20px}.tt-orders>p{display:flex;gap:16px;flex-wrap:wrap;border-top:1px solid #eee;padding-top:12px}.tt-orders>p>span{flex:1}.tt-orders small{color:#737d6b}.tt-fax-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);gap:24px}.tt-fax-grid>section{padding:24px;border:1px solid #dce0d6;background:#fff}.tt-section-title{display:flex;justify-content:space-between;gap:12px;align-items:start}.tt-fax-row{border-top:1px solid #e3e6df;margin-top:20px;padding-top:20px}.tt-fax-row p{margin:5px 0;color:#6c7367}.tt-confirm{position:fixed;inset:0;z-index:2000;background:#111b;display:grid;place-items:center;padding:20px}.tt-confirm>section{background:#fff;padding:28px;max-width:520px;width:100%;border-radius:6px;box-shadow:0 20px 90px #0005}.telephone-history{margin:24px 0;border-top:1px solid #dce0d6;padding-top:12px}.telephone-history>summary{font-weight:600;cursor:pointer;padding:12px 0}.telephone-tools :focus-visible{outline:3px solid #8fa43b;outline-offset:3px}@media(max-width:760px){.tt-header{align-items:flex-start}.tt-header h2{font-size:27px}.tt-header .button{font-size:12px}.tt-tabs{gap:22px;flex-wrap:wrap}.tt-tabs>span{display:none}.tt-call-grid,.tt-fax-grid{grid-template-columns:1fr}.tt-call-list{border-right:0;border-bottom:1px solid #dce0d6;display:flex;gap:8px;overflow-x:auto;align-items:center}.tt-call-list h3{flex:0 0 90px;margin:0}.tt-call-list button{flex:0 0 185px;margin:0}.tt-call-detail{padding:20px 16px}.tt-contacts article{padding:14px}.tt-fax-grid>section{padding:20px 16px}.tt-two{grid-template-columns:1fr}.tt-connection{display:block}.tt-contact-heading{align-items:start}.tt-detail-title{display:block}.tt-detail-title .tt-state{margin-top:10px}.tt-inline-actions>.button{flex:1 1 180px}.tt-section-title{flex-wrap:wrap}.tt-confirm>section{padding:22px}.tt-orders{padding:4px 14px}.tt-orders>p{display:grid;gap:4px}}

/* court-hearings.css */
.ch-workspace{font-family:var(--font-ui,Manrope,Arial,sans-serif);color:#242a20;max-width:1600px;margin:auto;padding:24px}.ch-workspace *{box-sizing:border-box;min-width:0}.ch-heading{display:flex;gap:25px;justify-content:space-between;align-items:center;padding-bottom:24px;border-bottom:1px solid #daddd4}.ch-kicker{font-size:11px;letter-spacing:.13em;color:#6b7464}.ch-heading h2{font-size:36px;letter-spacing:-.05em;line-height:1.1;margin:10px 0}.ch-heading p{font-size:14px;color:#6b7464}.ch-workspace button,.ch-workspace input,.ch-workspace select,.ch-workspace textarea{font:inherit;color:#242a20;background:#fff;border:1px solid #daddd4;border-radius:3px;padding:10px 12px;max-width:100%}.ch-workspace button{cursor:pointer}.ch-workspace button:disabled{opacity:.5;cursor:wait}.ch-workspace .ch-primary{background:#252c20;border-color:#252c20;color:#e4f98b}.ch-layout{display:grid;grid-template-columns:minmax(0,1fr) 245px;gap:26px;margin-top:24px}.ch-card{padding:24px;border:1px solid #daddd4;margin-bottom:16px}.ch-status{font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:#6a735f}.ch-card h3{font-size:24px;letter-spacing:-.035em;line-height:1.2;margin:12px 0}.ch-card>p{font-size:14px;color:#69715f}.ch-card .ch-date{font-size:19px;color:#252c20}.ch-actions{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.ch-actions button{font-size:12px}.ch-preparation{padding:16px;background:#f5f7ef;border-left:3px solid #bdd85e;margin:20px 0}.ch-preparation h4{margin:0 0 8px;font-size:14px}.ch-preparation p,.ch-preparation a{font-size:13px}.ch-side{border-left:1px solid #daddd4;padding-left:23px}.ch-side h3{font-size:19px}.ch-side a{display:block;margin:20px 0;font-size:13px}.ch-side p{font-size:12px;color:#6a735f;line-height:1.6}.ch-card details{font-size:13px}.ch-task{display:grid;grid-template-columns:90px minmax(0,1fr) 50px;gap:10px;border-top:1px solid #e1e5da;align-items:start;margin-top:12px;padding-top:12px}.ch-task p{margin:0}.ch-task span,.ch-task small{color:#68715f;font-size:11px}.ch-notes{padding-left:18px;font-size:13px}.ch-notes li{margin:10px 0}.ch-urgent{border-left:4px solid #a8c944}.ch-urgent .ch-status{color:#506516}.ch-message{border-left:3px solid #a9ce44;background:#f2f6e9;padding:15px;margin:18px 0;font-size:13px}.ch-message[role=alert]{border-color:#ae492a;background:#fff5ef}.ch-message button{display:block;margin-top:10px}.ch-empty{padding:60px 25px;background:#f6f8f1;border:1px solid #daddd4}.ch-empty h3{font-size:23px;line-height:1.25}.ch-empty p{color:#6a735f;line-height:1.6}.ch-form{margin:24px 0;border:1px solid #c8cfbe;padding:24px;max-width:900px}.ch-form>header{display:flex;align-items:center;justify-content:space-between;gap:16px}.ch-form h3{font-size:24px}.ch-form form{display:grid;grid-template-columns:1fr 1fr;gap:18px}.ch-form label{font-size:12px;display:grid;gap:8px}.ch-form label:has(textarea),.ch-form p{grid-column:1/-1}.ch-form textarea{min-height:110px}.ch-form textarea[name=text]{min-height:260px}.ch-form input,.ch-form select,.ch-form textarea{width:100%}@media(max-width:800px){.ch-layout{grid-template-columns:1fr}.ch-side{border-left:0;border-top:1px solid #daddd4;padding:18px 0 0;display:flex;flex-wrap:wrap;gap:12px 20px}.ch-side h3,.ch-side p{width:100%}.ch-side a{margin:0}.ch-heading{display:block}.ch-heading>button{margin-top:16px}}@media(max-width:600px){.ch-workspace{padding:16px}.ch-heading h2{font-size:31px}.ch-card{padding:18px}.ch-card h3{font-size:22px}.ch-card .ch-date{font-size:16px}.ch-actions button{flex:1 1 150px}.ch-task{grid-template-columns:1fr}.ch-form{padding:18px}.ch-form form{grid-template-columns:1fr}.ch-form>header{align-items:start}.ch-form h3{font-size:22px;margin-top:0}.ch-form button{font-size:13px}}

/* case-workflow.css */
.case-workflow{--wf-border:var(--border,#dedfe3);--wf-ink:var(--text,#1e211f);--wf-muted:var(--muted,#62666e);color:var(--wf-ink);min-width:0;display:grid;gap:24px}.case-workflow *{box-sizing:border-box;min-width:0}.case-workflow .wf-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}.case-workflow .wf-head h2{font-size:clamp(1.7rem,3vw,2.7rem);letter-spacing:-.045em;line-height:1.08;margin:0 0 12px}.case-workflow .wf-head p{margin:0;color:var(--wf-muted);max-width:62ch}.case-workflow .wf-kicker{text-transform:uppercase;letter-spacing:.12em;font-size:.68rem;font-weight:700;margin-bottom:12px!important}.case-workflow .wf-links{display:flex;flex-wrap:wrap;gap:12px 24px;border-block:1px solid var(--wf-border);padding:16px 0}.case-workflow a{color:inherit;text-decoration:underline;text-underline-offset:4px}.case-workflow .wf-grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:24px;align-items:start}.case-workflow .wf-panel{border:1px solid var(--wf-border);padding:24px;background:var(--surface,#fff);border-radius:3px}.case-workflow h3{font-size:1.15rem;letter-spacing:-.025em;margin:0 0 10px}.case-workflow h4{font-size:1.08rem;line-height:1.45;margin:6px 0}.case-workflow p{font-size:.88rem;line-height:1.5;overflow-wrap:anywhere}.case-workflow .wf-panel-title{display:flex;gap:16px;margin-bottom:20px}.case-workflow .wf-panel-title p{color:var(--wf-muted);margin:0}.case-workflow .wf-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.case-workflow label{display:grid;gap:7px;font-size:.8rem;font-weight:600;line-height:1.5}.case-workflow input:not([type=checkbox]),.case-workflow textarea,.case-workflow select{display:block;width:100%;max-width:100%;padding:11px 12px;font:inherit;font-size:1rem;background:var(--surface,#fff);color:inherit;border:1px solid #bfc2c7;border-radius:3px}.case-workflow textarea{resize:vertical}.case-workflow .wf-wide{grid-column:1/-1}.case-workflow .wf-check{display:flex;align-items:flex-start;gap:10px;font-weight:400;margin:16px 0}.case-workflow input[type=checkbox]{flex:0 0 19px;width:19px;height:19px;margin:2px 0;accent-color:#222823}.case-workflow .wf-selection{max-height:340px;overflow:auto;overscroll-behavior:contain}.case-workflow .wf-inbox{display:flex;align-items:flex-start;gap:12px;padding:16px 0;border-bottom:1px solid var(--wf-border);font-weight:400}.case-workflow .wf-inbox strong,.case-workflow small{display:block;overflow-wrap:anywhere}.case-workflow small{font-size:.75rem;font-weight:400;color:var(--wf-muted);margin-top:3px}.case-workflow .wf-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid var(--wf-border)}.case-workflow .wf-row strong{display:block;margin-top:5px}.case-workflow .wf-row p{margin:6px 0;color:var(--wf-muted)}.case-workflow .wf-meta{font-size:.8rem;line-height:1.5;color:var(--wf-muted);overflow-wrap:anywhere}.case-workflow .wf-meta.wf-ack,.case-workflow .wf-meta.wf-auto,.case-workflow .wf-meta.wf-external{display:block;margin:4px 0 0}.case-workflow .wf-meta.wf-ack[data-state=completed]{color:#2f6b2a}.case-workflow .wf-meta.wf-ack[data-state=failed],.case-workflow .wf-meta.wf-ack[data-state=held]{color:#8a4a1c}.case-workflow .wf-row-title{display:block;font-size:1rem;line-height:1.4;margin-top:4px}.case-workflow .wf-row-actions{display:flex;flex-direction:column;gap:8px;align-items:flex-end}.case-workflow .wf-source{margin:6px 0 0}.case-workflow .wf-source summary{font-size:.8rem;color:var(--wf-muted)}.case-workflow .wf-source p{margin:6px 0 0}.case-workflow .wf-alert{padding:16px 18px;border-left:3px solid #aa741d;background:#fff8e8;line-height:1.6;margin:0;overflow-wrap:anywhere}.case-workflow .wf-notice{padding:14px 18px;background:#eaf0da}.case-workflow .wf-empty,.case-workflow .wf-help{color:var(--wf-muted)}.case-workflow .wf-help{font-size:.77rem}.case-workflow .wf-task{padding:10px 0 22px;border-bottom:1px solid var(--wf-border)}.case-workflow details{margin-top:18px}.case-workflow summary{cursor:pointer;font-size:.85rem;line-height:1.6;overflow-wrap:anywhere}.case-workflow details form{display:grid;gap:12px;margin-top:16px}.case-workflow blockquote{margin:12px 0;padding:12px 16px;border-left:3px solid #d6f16f;background:#f6f7f3;white-space:pre-wrap;overflow-wrap:anywhere}.case-workflow .wf-scan article{padding:16px 0}.case-workflow .button{min-height:44px;white-space:normal;text-align:center;overflow-wrap:anywhere;max-width:100%;flex-shrink:0}.case-workflow :focus-visible{outline:3px solid #799321;outline-offset:3px}.case-workflow [disabled]{opacity:.5;cursor:not-allowed}@media(max-width:850px){.case-workflow .wf-grid{grid-template-columns:1fr}.case-workflow .wf-panel{padding:20px}}@media(max-width:480px){.case-workflow{gap:16px}.case-workflow .wf-row-actions{align-items:stretch;width:100%}.case-workflow .wf-head{flex-direction:column;gap:16px}.case-workflow .wf-panel{padding:16px}.case-workflow .wf-fields{grid-template-columns:1fr}.case-workflow .wf-row{flex-direction:column;gap:10px}.case-workflow .wf-links{gap:12px 16px}.case-workflow .wf-panel-title{gap:12px}.case-workflow .button{width:100%}.case-workflow .wf-head .button{width:auto}.case-workflow .wf-wide{grid-column:auto}}

/* pleading-editor.css */
.pe-workspace{font-family:var(--font-ui,Manrope,Arial,sans-serif);--pe-ink:#242a20;--pe-line:#daddd4;color:var(--pe-ink);max-width:1600px;margin:auto;padding:24px}.pe-workspace *{box-sizing:border-box;min-width:0}.pe-heading{display:flex;justify-content:space-between;gap:24px;align-items:center;border-bottom:1px solid var(--pe-line);padding-bottom:22px}.pe-kicker{font-size:11px;letter-spacing:.13em;color:#68725f}.pe-heading h2{font-size:38px;letter-spacing:-.055em;line-height:1.1;margin:10px 0}.pe-heading p,.pe-note{color:#697260;font-size:13px}.pe-heading>div:last-child{display:flex;align-items:center;gap:16px}.pe-workspace button,.pe-workspace input,.pe-workspace select,.pe-workspace textarea,.pe-download{font:inherit;border:1px solid var(--pe-line);border-radius:3px;background:#fff;color:var(--pe-ink);padding:10px 12px;max-width:100%}.pe-workspace button{cursor:pointer}.pe-workspace button:disabled{opacity:.5;cursor:wait}.pe-message{min-height:48px;display:flex;gap:12px;align-items:center;font-size:13px;padding:10px 0}.pe-message [role=alert]{color:#9f3117}.pe-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:24px}.pe-sidebar{border-right:1px solid var(--pe-line);padding-right:20px}.pe-sidebar h3{font-size:13px;margin:20px 0 12px}.pe-sidebar button{display:block;width:100%;text-align:left;margin:8px 0;overflow-wrap:anywhere}.pe-sidebar small{display:block;color:#6b7463;font-size:11px;margin-top:5px}.pe-sidebar a{display:block;font-size:12px;margin:16px 0}.pe-sidebar p{font-size:12px;color:#6b7463}.pe-label{display:block;font-size:12px}.pe-label input{display:block;width:100%;font-weight:600;font-size:18px;margin:8px 0 12px}.pe-toolbar{display:flex;gap:5px;flex-wrap:wrap;padding:12px 0}.pe-toolbar button,.pe-toolbar select{font-size:12px;padding:8px 10px}.pe-letterhead{border:1px solid var(--pe-line);padding:12px;margin:0 0 14px;font-size:12px}.pe-letterhead label{display:block;margin:12px 0}.pe-letterhead textarea{display:block;width:100%;min-height:58px}.pe-paper{background:#fff;border:1px solid var(--pe-line);box-shadow:0 3px 15px #15200808;padding:42px clamp(20px,6vw,78px);min-height:700px;max-width:900px;margin:auto}.pe-paper-head{display:grid;gap:4px;white-space:pre-wrap;font-size:12px;margin-bottom:40px;min-height:36px}.pe-editor{min-height:380px;outline:none;overflow-wrap:anywhere;line-height:1.65;font-size:15px}.pe-editor h1{font-size:27px;line-height:1.25;margin:20px 0}.pe-editor h2{font-size:21px;margin:16px 0}.pe-editor p{margin:0 0 14px}.pe-editor blockquote{border-left:3px solid #d2d8c7;padding-left:18px;margin-left:0}.pe-paper footer{margin-top:50px;font-size:10px;white-space:pre-wrap;border-top:1px solid var(--pe-line);padding-top:10px}.pe-page-break{border-top:1px dashed #adb49f;color:#727a65;font-size:11px;padding:10px 0;margin:25px 0}.pe-actions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.pe-workspace .pe-primary{background:#252c20;border-color:#252c20;color:#ddf780}.pe-download{text-decoration:none;font-size:13px}.pe-empty{padding:90px 25px;background:#f7f8f4;border:1px solid var(--pe-line)}.pe-empty h3{font-size:23px}.pe-confirmed{padding:14px;border-left:3px solid #b9df48;background:#f2f6e8;font-size:13px}.pe-night .pe-paper{background:#252b22;color:#ecf0e7;border-color:#535e48}.pe-night .pe-editor :is(h1,h2,p,blockquote){color:#ecf0e7!important}.pe-workspace [hidden]{display:none!important}@media(max-width:900px){.pe-layout{grid-template-columns:180px minmax(0,1fr)}.pe-workspace{padding:18px}.pe-paper{padding:28px 22px}.pe-heading h2{font-size:32px}}@media(max-width:600px){.pe-workspace{padding:16px}.pe-heading{display:block}.pe-heading>div:last-child{margin-top:18px;flex-wrap:wrap}.pe-layout{display:flex;flex-direction:column}.pe-sidebar{border-right:0;border-bottom:1px solid var(--pe-line);padding:0 0 14px;display:flex;gap:8px;flex-wrap:wrap;align-items:center}.pe-sidebar h3{width:100%;margin:10px 0}.pe-sidebar button{width:auto;margin:0}.pe-sidebar>a{margin:6px 0}.pe-sidebar p{display:none}.pe-paper{padding:24px 18px;min-height:580px}.pe-editor{font-size:15px}.pe-actions>*{flex:1 1 130px;text-align:center}.pe-heading h2{font-size:31px}.pe-message{align-items:flex-start;flex-direction:column}.pe-toolbar{gap:4px}.pe-toolbar button{padding:9px}.pe-label input{font-size:16px}}

.pe-correspondence{border:1px solid var(--pe-line);padding:14px;margin-bottom:14px;font-size:12px}.pe-correspondence>summary{font-weight:650;cursor:pointer;padding:4px 0}.pe-recipient-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}.pe-recipient-grid label{display:grid;gap:6px}.pe-recipient-grid :is(input,textarea,select){width:100%;font-size:14px}.pe-addressee{white-space:pre-wrap;min-height:70px;margin-bottom:24px}.pe-reference-line{display:flex;flex-wrap:wrap;gap:8px 18px;font-size:11px;margin:20px 0}.pe-subject{font-weight:700;margin:24px 0}.pe-correspondence-paper{overflow-wrap:anywhere;font-size:14px;line-height:1.5}.pe-paper{color:#20282f}.pe-workspace .pe-paper{font-family:Georgia,'Times New Roman',serif}.pe-workspace .pe-paper-head,.pe-workspace .pe-reference-line{font-family:var(--font-ui,Manrope,sans-serif)}@media(max-width:600px){.pe-recipient-grid{grid-template-columns:minmax(0,1fr)}.pe-recipient-grid :is(input,textarea,select){font-size:16px}}

.cw-dialog{position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:#f0f2ef;color:#242a20;overflow:auto}.cw-bar{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:14px;padding:12px 22px;border-bottom:1px solid #ccd3d7;background:#f7f9f6}.cw-bar strong{font-size:14px}.cw-bar [role=status]{flex:1;font-size:12px}.cw-bar button{border:1px solid #bdc7cd;background:white;color:#24384d;border-radius:5px;padding:9px 12px;font:inherit;cursor:pointer}.cw-dialog::backdrop{background:#0b1b32bb}@media(max-width:600px){.cw-bar{gap:8px;padding:10px;flex-wrap:wrap}.cw-bar [role=status]{flex-basis:100%;order:4}.cw-bar [data-cw-save-close]{margin-left:auto;font-size:12px}.cw-bar strong{font-size:12px}}
.cw-dialog :is(.pe-kicker,.pe-heading p,.pe-note,.pe-sidebar small,.pe-sidebar p){color:#54614e}
html[data-familum-night=true] .cw-dialog{background:#15222c;color:#e5edf2}html[data-familum-night=true] .cw-bar{background:#1c2d39;border-color:#536575;color:#e5edf2}html[data-familum-night=true] .cw-bar button{background:#263c4c;color:#edf4f8;border-color:#647a8a}html[data-familum-night=true] .cw-dialog .pe-workspace{--pe-ink:#e5edf2;--pe-line:#536575}html[data-familum-night=true] .cw-dialog :is(.pe-kicker,.pe-heading p,.pe-note,.pe-sidebar small,.pe-sidebar p){color:#c2ced6}html[data-familum-night=true] .cw-dialog .pe-workspace :is(button,input,select,textarea,.pe-download){background:#203745;color:#eef4f8}html[data-familum-night=true] .cw-dialog .pe-paper{background:#20303a;color:#edf4f8}html[data-familum-night=true] .cw-dialog .pe-editor :is(p,h1,h2,blockquote){color:#edf4f8!important}html[data-familum-night=true] .cw-dialog .pe-empty{background:#20303a}html[data-familum-night=true] .cw-dialog .pe-message [role=alert]{color:#ffbda6}html[data-familum-night=true] .cw-dialog .pe-confirmed{background:#243c36;color:#e1f4dd}html[data-familum-night=true] .cw-dialog a{color:#b6d9ff}html[data-familum-night=true] .cw-dialog .pe-page-break{color:#ccd6de}html[data-familum-night=true] .cw-dialog .pe-reference-line{color:#cbd7dd}
.pe-template-dialog{width:min(760px,calc(100vw - 24px));max-height:90dvh;border:1px solid #cad3ce;border-radius:16px;padding:24px;color:#243b30;background:#f7f8f5;box-sizing:border-box;overflow:auto}.pe-template-dialog::backdrop{background:#16291dcc}.pe-template-dialog header,.pe-template-dialog .pe-actions{display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap}.pe-template-dialog label{display:grid;gap:8px;margin:16px 0}.pe-template-dialog input,.pe-template-dialog select,.pe-template-dialog button{font:inherit;font-size:16px;padding:10px;max-width:100%;box-sizing:border-box}.pe-template-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;font:16px/1.65 Georgia,serif;background:white;padding:20px}.pe-template-dialog details{border-top:1px solid #b4c1b9;padding-top:20px;margin-top:20px}.pe-template-dialog p{line-height:1.5}html[data-theme="dark"] .pe-template-dialog,body[data-theme="dark"] .pe-template-dialog{background:#18241f;color:#edf4ed}html[data-theme="dark"] .pe-template-dialog pre,body[data-theme="dark"] .pe-template-dialog pre{background:#26342b;color:#fff}

html[data-familum-night="true"] .pe-template-dialog{background:#18241f;color:#edf4ed}html[data-familum-night="true"] .pe-template-dialog pre{background:#26342b;color:#fff}
.cw-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,380px);gap:16px}.cw-ai{padding:20px;border-left:1px solid #b5c7bb;color:#294035;background:#f4f6f1;overflow-wrap:anywhere}.cw-ai label{display:grid;gap:8px;margin:16px 0}.cw-ai textarea,.cw-ai select,.cw-ai button{font:inherit;font-size:16px;max-width:100%;box-sizing:border-box;padding:10px}.cw-ai button{margin:5px 0}.cw-ai pre,.wa-reply{white-space:pre-wrap;overflow-wrap:anywhere}.cw-ai pre{padding:12px;border:1px solid #a6b9ac;font:15px/1.5 Georgia,serif}.cw-ai h2{font-size:21px}.cw-tabs{display:none}html[data-familum-night="true"] .cw-ai{background:#172820;color:#f2f6f1;border-color:#64816c}html[data-familum-night="true"] .cw-ai :is(button,input,select,textarea){background:#293c31;color:#fff;border:1px solid #829788}@media(max-width:1000px){.cw-columns{display:block}.cw-tabs{display:flex;gap:12px;padding:12px}.cw-tabs button{font:inherit;font-size:16px;padding:10px}.cw-ai{display:none;border-left:0}.cw-dialog[data-tab="ai"] .cw-ai{display:block}.cw-dialog[data-tab="ai"] [data-cw-editor]{display:none}} 

/* lawyer-week.css */
.lw-workspace{--lw-ink:#20251e;--lw-line:#dce0d6;--lw-lime:#ddfa82;color:var(--lw-ink);min-width:0}.lw-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;border-bottom:1px solid var(--lw-line);padding-bottom:24px;margin-bottom:24px}.lw-kicker{font-size:11px;letter-spacing:.15em;color:#747b6c}.lw-heading h2{font-size:38px;letter-spacing:-1.5px;line-height:1.05;margin:8px 0 12px}.lw-heading p,.lw-note{font-size:12px;color:#6d7665;line-height:1.6}.lw-controls{display:flex;flex-wrap:wrap;align-items:end;gap:6px}.lw-workspace button,.lw-workspace select,.lw-workspace input,.lw-workspace textarea{font:inherit;min-height:40px;border:1px solid var(--lw-line);border-radius:3px;background:#fff;padding:9px 12px;color:inherit;max-width:100%}.lw-controls label{font-size:11px;display:grid;gap:5px}.lw-workspace button{cursor:pointer}.lw-workspace button:hover{background:#f0f2ed}.lw-board{display:grid;grid-template-columns:1.1fr repeat(5,minmax(0,1fr)) 1.12fr 1.12fr;align-items:start;gap:10px}.lw-column{min-width:0;background:#f5f6f3;padding:10px 8px;border-top:2px solid #272e21;min-height:245px}.lw-column h3{font-size:12px;line-height:1.45;margin:2px 0 12px;display:flex;justify-content:space-between;gap:8px;overflow-wrap:anywhere}.lw-column h3 span{font-size:10px;color:#777f6d}.lw-column.lw-urgent{background:#262c21;color:#fff;border-color:var(--lw-lime)}body.studio-theme .lw-urgent h3{color:#fff}.lw-column.lw-urgent h3 span{color:var(--lw-lime)}.lw-card{display:grid;gap:7px;text-align:left;width:100%;margin-bottom:10px;padding:12px 10px!important;color:var(--lw-ink)!important;overflow-wrap:anywhere}.lw-card strong{font-size:12px;font-weight:700;line-height:1.45}.lw-card span,.lw-card small{font-size:10px;line-height:1.5;color:#6c7464}.lw-card .lw-kind{font-size:9px;text-transform:uppercase;letter-spacing:.04em;color:#525c46}.lw-date,.lw-empty{font-size:10px;color:#7f8877;margin:0 0 12px}.lw-empty{padding-top:24px}.lw-cases{border-top:1px solid var(--lw-line);margin-top:28px;padding-top:22px}.lw-cases h3{font-size:17px;margin:0}.lw-cases p{font-size:12px;color:#6d7665}.lw-cases>div{display:flex;gap:8px;flex-wrap:wrap}.lw-cases button{font-size:12px}.lw-detail{border:1px solid var(--lw-line);padding:24px;margin:24px 0;scroll-margin-top:80px}.lw-detail-head{display:flex;justify-content:space-between;align-items:start;gap:16px}.lw-detail-head h3{margin:0;font-size:22px}.lw-links{display:flex;flex-wrap:wrap;gap:16px;margin:20px 0;font-size:12px}.lw-links a{color:#353e27}.lw-existing{border-top:1px solid var(--lw-line);padding:18px 0}.lw-existing p{white-space:pre-wrap;font-size:12px}.lw-existing button{margin:0 6px 6px 0;font-size:12px}.lw-detail form{display:grid;gap:16px;max-width:650px}.lw-detail form label{font-size:12px;display:grid;gap:7px}.lw-detail textarea{min-height:100px;resize:vertical}.lw-detail .lw-check{display:flex;align-items:center}.lw-check input{min-height:auto}.lw-primary{background:#232a1e!important;color:var(--lw-lime)!important}.lw-message{padding:14px;border-left:3px solid #bed357;background:#f0f3e7;font-size:13px;margin:16px 0;line-height:1.6}.lw-message button{margin-left:16px}.lw-weekend{margin:24px 0}.lw-weekend .lw-card{max-width:350px}.lw-mobile-tabs{display:none}.lw-workspace :focus-visible{outline:2px solid #708d36;outline-offset:3px}.lw-workspace button:disabled{opacity:.55;cursor:wait}@media(max-width:1100px){.lw-heading{align-items:start;flex-direction:column}.lw-board{grid-template-columns:repeat(4,minmax(0,1fr))}.lw-column{min-height:220px}}@media(max-width:600px){.lw-heading h2{font-size:32px}.lw-controls{width:100%}.lw-controls label{width:100%;order:2}.lw-controls select{width:100%;font-size:16px}.lw-mobile-tabs{display:flex;gap:6px;overflow:auto;margin:0 0 16px;padding-bottom:5px}.lw-mobile-tabs button{white-space:nowrap;font-size:12px}.lw-mobile-tabs button[aria-pressed=true]{background:#252b21;color:var(--lw-lime)}.lw-board{display:block}.lw-column{display:none;min-height:130px;padding:14px}.lw-column.is-selected{display:block}.lw-column h3{font-size:16px}.lw-card strong{font-size:15px}.lw-card span,.lw-card small{font-size:12px}.lw-card .lw-kind{font-size:11px}.lw-date,.lw-empty{font-size:12px}.lw-detail{padding:16px}.lw-detail-head h3{font-size:18px}.lw-detail input,.lw-detail textarea,.lw-detail select{font-size:16px}.lw-cases>div{display:grid}.lw-cases button{display:flex;justify-content:space-between}.lw-message button{margin:8px 0 0}.lw-heading{gap:15px}.lw-note{font-size:11px}}

/* case-closure.css */
.case-closure{background:#fff;border:1px solid #dedfd8;border-radius:12px;padding:clamp(18px,3vw,36px);max-width:100%;overflow-wrap:anywhere}.case-closure h2{font-size:clamp(26px,4vw,40px);line-height:1.15;letter-spacing:-.035em}.case-closure header{margin-bottom:24px}.case-closure fieldset{display:grid;gap:16px;border:0;padding:18px 0}.case-closure label{display:grid;gap:7px}.case-closure label:has([type=checkbox]){display:flex;align-items:flex-start;gap:10px}.case-closure input:not([type=checkbox]),.case-closure textarea{box-sizing:border-box;width:100%;min-width:0;padding:11px;border:1px solid #cdd0c6;border-radius:7px;background:#fff;color:#171b16;font:inherit}.case-closure textarea{min-height:90px}.case-closure button{padding:11px 16px;border:1px solid #1a2116;border-radius:7px;background:#d8fc7a;color:#171b16;font:inherit;font-weight:600;cursor:pointer}.case-closure button:disabled{opacity:.5;cursor:default}.case-closure details{border-top:1px solid #e4e6df;margin-top:18px;padding-top:14px}.case-closure summary{cursor:pointer}.closure-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.closure-summary article{padding:16px;background:#f4f5f0;border-radius:8px}.closure-summary small,.closure-summary strong{display:block}.closure-summary strong{margin-top:8px;font-size:22px}.closure-warning{padding:14px;background:#fff4d9;border-radius:8px}.closure-footnote{color:#5b6554;font-size:13px;margin-top:24px}.billing-settlement{margin-block:24px}.billing-settlement article{padding:16px;border:1px solid #dfe2d8;border-radius:8px;margin-block:12px;overflow-wrap:anywhere}@media(max-width:600px){.closure-summary{grid-template-columns:1fr}.case-closure button{width:100%}.case-closure{padding:16px}}

.closure-readiness{padding:18px 20px;border:1px solid #dfe2d8;border-left:4px solid #d8fc7a;margin:20px 0;background:#fafbf7}.closure-readiness h3{margin:0 0 10px}.closure-readiness p{margin:0;line-height:1.55}.closure-readiness li{margin:8px 0}.closure-readiness a{display:inline-block;padding-block:12px;color:inherit;text-decoration:underline;text-underline-offset:3px}.closure-readiness ul{padding-left:20px;margin:8px 0}
@media(max-width:600px){.closure-readiness{padding:14px}.case-closure input[type=checkbox]{flex-shrink:0;min-width:20px;min-height:20px}.case-closure label:has([type=checkbox]){padding-block:10px;min-height:44px}}

.case-closure>button{margin:8px 8px 0 0}.case-closure>button[data-closure-action=reopen]{background:#fff}.case-closure a{color:inherit;text-underline-offset:3px}
@media(max-width:600px){.case-closure>button{margin-right:0;min-height:44px}}
.case-closure .closure-preview{margin:0 0 12px;font-size:13px;line-height:1.55;color:#4f5b52}.case-closure .closure-dispatch{margin:6px 0 0;font-size:13px;color:#4f5b52}.case-closure .closure-dispatch[data-dispatch-status=failed],.case-closure .closure-dispatch[data-dispatch-status=held]{color:#8a4a1c}.case-closure .closure-dispatch[data-dispatch-status=completed]{color:#2f6b2a}.case-closure .closure-final{margin-top:18px}

/* cloud-backup.css */
.backup-status{display:flex;justify-content:space-between;align-items:center;gap:24px;background:#232724;color:white;padding:28px;margin-bottom:22px}.backup-status h2{font-size:clamp(24px,3vw,36px);margin:6px 0 10px}.backup-status p{max-width:680px;color:#d9ddda}.backup-status .eyebrow{color:#defd72}.backup-warning{border-left:4px solid #d78f21}.backup-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:24px 0 32px}.backup-summary div{border-left:1px solid #dce0de;padding-left:16px;min-width:0}.backup-summary dt{color:#666b69;font-size:13px;margin-bottom:8px}.backup-summary dd{margin:0;font-weight:600;overflow-wrap:anywhere}.backup-history article{display:grid;grid-template-columns:1fr 1fr;gap:24px;padding:18px 0;border-top:1px solid #e0e4e1}.backup-history small{display:block;color:#68706b;margin-top:6px;overflow-wrap:anywhere}.backup-history p{margin:5px 0;color:#85520a}@media(max-width:600px){.backup-status{align-items:stretch;flex-direction:column;padding:20px}.backup-summary{grid-template-columns:1fr;gap:16px}.backup-history article{grid-template-columns:1fr;gap:12px}}

/* Match the accepted charcoal/lime workspace without losing text contrast. */
#cloud-backup-root > .panel{padding:24px;margin:0 0 22px}
#cloud-backup-root > .panel > h2{margin:0 0 12px;font-size:22px;line-height:1.3;letter-spacing:-.5px}
#cloud-backup-root > .panel > p{margin:6px 0;color:#596157}
body.studio-theme #cloud-backup-root .backup-status h2{color:#fff;line-height:1.2;letter-spacing:-.8px}
#cloud-backup-root .backup-status p{margin-bottom:0}
#cloud-backup-root .backup-status .button{flex-shrink:0}
#cloud-backup-root .backup-history article:last-child{padding-bottom:0}
#cloud-backup-root .field-help{line-height:1.75}
@media(max-width:600px){#cloud-backup-root > .panel{padding:20px}#cloud-backup-root .backup-status h2{font-size:26px}}

/* case-documents.css */
/* Case documents: application chrome stays sans serif; only source/draft text
   uses the document face. Wrapping changes presentation, never stored content. */
.case-documents {
  display: grid;
  grid-template-columns: minmax(236px, 280px) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  margin: 20px 0;
  min-width: 0;
  color: var(--text, #18212f);
  font: 400 14px/1.55 var(--font-ui, Manrope, sans-serif);
  overflow-wrap: anywhere;
}
.case-documents *, .case-documents *::before, .case-documents *::after { box-sizing: border-box; }
.case-documents :is(button, input, select, textarea) { font: inherit; min-width: 0; max-width: 100%; }
.case-documents :is(button, a, summary) { touch-action: manipulation; }
.case-documents :is(button, .cd-actions a) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line, #dce1e8);
  border-radius: 7px;
  background: var(--surface, #fff);
  color: var(--ink, #18212f);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  white-space: normal;
  text-decoration: none;
  cursor: pointer;
}
.case-documents :is(button, .cd-actions a):hover:not(:disabled) { background: var(--paper, #f5f6f8); border-color: var(--green, #245be6); }
.case-documents button:disabled { opacity: .5; cursor: not-allowed; }
.case-documents :is(input, select) {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  padding: 10px 11px;
  border: 1px solid var(--line, #dce1e8);
  border-radius: 6px;
  background: var(--surface, #fff);
  color: var(--ink, #18212f);
}
.case-documents :is(input, select):disabled { background: var(--paper, #f5f6f8); color: var(--muted, #5e6b7b); cursor: not-allowed; }
.case-documents input::placeholder { color: var(--muted, #5e6b7b); opacity: 1; }
.case-documents label { min-width: 0; font-size: 14px; font-weight: 500; }
.case-documents :focus-visible { outline: 2px solid var(--green, #245be6); outline-offset: 3px; }
.case-documents :is(h3, h4, p) { margin: 0; }
.cd-sidebar {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line, #dce1e8);
  border-radius: 9px;
  background: var(--surface, #fff);
}
.cd-sidebar-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.cd-sidebar-head h3 { font: 700 17px/1.4 var(--font-ui, Manrope, sans-serif); color: var(--ink, #18212f); }
.cd-sidebar-head button { padding-inline: 10px; font-size: 12px; }
.cd-document-list { min-width: 0; }
.cd-folder + .cd-folder { margin-top: 20px; }
.cd-folder h4 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; color: var(--muted, #5e6b7b); font-size: 12px; font-weight: 700; }
.cd-folder h4 span { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.case-documents .cd-document {
  display: block;
  width: 100%;
  padding: 11px 12px;
  margin-top: 5px;
  border-color: transparent;
  background: transparent;
  text-align: left;
  font-weight: 400;
}
.case-documents .cd-document:hover:not(:disabled) { background: var(--paper, #f5f6f8); border-color: var(--line, #dce1e8); }
.case-documents .cd-document.selected { background: #edf3ff; border-color: var(--green, #245be6); box-shadow: inset 3px 0 var(--green, #245be6); color: var(--ink, #18212f); }
.cd-document strong, .cd-document small { display: block; overflow-wrap: anywhere; }
.cd-document strong { font-size: 14px; font-weight: 600; line-height: 1.5; }
.cd-document small { margin-top: 4px; color: var(--muted, #5e6b7b); font-size: 12px; line-height: 1.5; }
.cd-tag { display: inline-block; margin-top: 8px; padding: 3px 7px; border: 1px solid #cbd9f7; border-radius: 5px; background: var(--surface, #fff); color: var(--green, #245be6); font-size: 12px; font-weight: 600; }
.cd-create { display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line, #dce1e8); }
.cd-create small { color: var(--muted, #5e6b7b); font-size: 12px; line-height: 1.65; }
.cd-upload input { padding: 5px; font-size: 12px; }
.cd-upload input::file-selector-button { min-height: 44px; margin-right: 8px; padding: 7px 9px; border: 0; border-radius: 4px; background: var(--paper, #f5f6f8); color: var(--ink, #18212f); font: 600 12px var(--font-ui, Manrope, sans-serif); cursor: pointer; }
.cd-main { min-width: 0; }
.cd-paper { min-width: 0; padding: clamp(20px, 3vw, 36px); border: 1px solid var(--line, #dce1e8); border-radius: 9px; background: var(--surface, #fff); color: var(--text, #18212f); }
.cd-paper-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 20px; margin-bottom: 18px; border-bottom: 1px solid var(--line, #dce1e8); }
.cd-paper-head > div { min-width: 0; }
.cd-paper-head > div:first-child { flex: 1 1 240px; }
.cd-paper h3 { margin: 6px 0 0; color: var(--ink, #18212f); font: 700 clamp(20px, 2.2vw, 25px)/1.35 var(--font-ui, Manrope, sans-serif); overflow-wrap: anywhere; }
.cd-eyebrow { color: var(--muted, #5e6b7b); font-size: 12px; font-weight: 600; line-height: 1.5; }
.cd-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.cd-muted, .cd-empty { color: var(--muted, #5e6b7b); font-size: 12px; line-height: 1.7; }
.cd-welcome { max-width: 540px; padding: 26px 0 52px; }
.cd-welcome h3 { margin-top: 16px; font-size: clamp(24px, 3vw, 30px); line-height: 1.3; }
.cd-welcome p { margin-top: 16px; color: var(--muted, #5e6b7b); font-size: 14px; line-height: 1.75; }
.cd-editor-label { display: block; margin: 24px 0 8px; color: var(--ink, #18212f); }
.case-documents .cd-editor {
  display: block;
  width: 100%;
  min-height: 420px;
  padding: 20px;
  border: 1px solid var(--line, #dce1e8);
  border-radius: 7px;
  background: var(--surface, #fff);
  color: var(--text, #18212f);
  font: 400 18px/1.7 var(--font-document, Newsreader, Georgia, serif);
  resize: vertical;
  tab-size: 4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.case-documents .cd-editor:read-only { background: var(--paper, #f5f6f8); }
.case-documents .cd-editor:focus-visible { border-color: var(--green, #245be6); outline-offset: 2px; }
.cd-editor-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; }
.cd-editor-foot span { color: var(--muted, #5e6b7b); font-size: 12px; font-variant-numeric: tabular-nums; }
.case-documents :is(.cd-editor-foot button, button[data-doc-action="create"]) { border-color: var(--green, #245be6); background: var(--green, #245be6); color: #fff; }
.case-documents :is(.cd-editor-foot button, button[data-doc-action="create"]):hover:not(:disabled) { background: #194bc6; border-color: #194bc6; }
.cd-review { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 10px; padding: 18px; border: 1px solid var(--line, #dce1e8); border-left: 3px solid var(--green, #245be6); border-radius: 7px; background: var(--paper, #f5f6f8); }
.cd-review > div { flex: 1 1 280px; min-width: 0; }
.cd-review strong { color: var(--ink, #18212f); font-size: 14px; font-weight: 600; }
.cd-review p { margin-top: 6px; color: var(--muted, #5e6b7b); font-size: 12px; line-height: 1.7; }
.cd-history, .cd-preview, .cd-comparison { margin-top: 24px; border-top: 1px solid var(--line, #dce1e8); font-size: 14px; }
.case-documents summary { min-height: 44px; padding: 12px 0; color: var(--ink, #18212f); font-size: 14px; font-weight: 600; line-height: 1.55; cursor: pointer; }
.case-documents summary::marker { color: var(--muted, #5e6b7b); }
.cd-version { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line, #dce1e8); }
.cd-version details { flex: 1; min-width: 0; }
.cd-version summary { font-size: 12px; font-weight: 500; }
.cd-version button { flex: 0 1 230px; }
.cd-version-text { margin: 12px 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 17px/1.7 var(--font-document, Newsreader, Georgia, serif); }
.cd-metadata { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: end; margin: 8px 0 20px; }
.cd-metadata > button { justify-self: start; grid-column: 1 / -1; }
.cd-preview iframe { display: block; width: 100%; height: 560px; border: 1px solid var(--line, #dce1e8); border-radius: 6px; background: #fff; }
.cd-preview img { display: block; max-width: 100%; height: auto; max-height: 680px; margin: 8px auto; object-fit: contain; }
.cd-case-text, .cd-comparison pre { margin: 20px 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 18px/1.75 var(--font-document, Newsreader, Georgia, serif); tab-size: 4; }
.cd-alert { margin-bottom: 16px; padding: 14px 16px; border: 1px solid #eccbd0; border-left: 3px solid #ab3143; border-radius: 7px; background: #fff5f6; color: #822536; font-size: 14px; line-height: 1.65; }
.cd-alert button { margin-top: 10px; }
.cd-notice { margin-bottom: 16px !important; padding: 14px 16px; border: 1px solid #cbd9f7; border-radius: 7px; background: #edf3ff; color: #214ea8; font-size: 14px; line-height: 1.65; }
/* Existing paper-mode action remains local to the document surface. */
.cd-dark .cd-paper { --surface: #202a39; --paper: #18212f; --ink: #f1f5fb; --text: #e3eaf4; --muted: #b7c3d4; --line: #455269; --green: #9abbff; color-scheme: dark; }
.cd-dark .cd-paper .cd-editor-foot button { background: #245be6; border-color: #245be6; color: #fff; }
@media (max-width: 1100px) {
  .case-documents { grid-template-columns: minmax(0, 1fr); }
  .cd-sidebar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 16px 24px; }
  .cd-sidebar-head, .cd-search, .cd-sidebar > button { grid-column: 1 / -1; }
  .cd-sidebar > button { justify-self: start; }
  .cd-document-list { max-height: 320px; overflow-y: auto; padding: 3px; }
  .cd-create { border-top: 0; padding-top: 0; }
}
@media (max-width: 640px) {
  .case-documents { gap: 16px; margin-top: 16px; }
  .cd-sidebar { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 16px; }
  .cd-create { border-top: 1px solid var(--line, #dce1e8); padding-top: 16px; }
  .cd-document-list { max-height: 250px; }
  .cd-sidebar > button, .cd-actions, .cd-actions > *, .cd-editor-foot button, .cd-review button { width: 100%; }
  .cd-paper { padding: 18px; }
  .cd-paper-head { gap: 14px; }
  .cd-paper-head > div:first-child { flex-basis: 100%; }
  .case-documents :is(input, select, textarea) { font-size: 16px; }
  .case-documents .cd-editor { min-height: 320px; padding: 16px; font-size: 18px; }
  .cd-editor-foot { align-items: stretch; }
  .cd-review { padding: 14px; }
  .cd-metadata { grid-template-columns: minmax(0, 1fr); }
  .cd-metadata > button { justify-self: stretch; }
  .cd-version { display: block; }
  .cd-version button { width: 100%; margin-top: 8px; }
  .cd-preview iframe { height: 440px; height: min(65dvh, 440px); }
  .cd-case-text, .cd-comparison pre { font-size: 18px; }
}
@media (forced-colors: active) {
  .case-documents .cd-document.selected { outline: 2px solid Highlight; outline-offset: -2px; }
  .case-documents :focus-visible { outline-color: Highlight; }
}
.case-documents :is(.cd-origins,.cd-container-summary,.cd-upload-selection) {
  min-width: 0; margin-block: 16px; padding: 16px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
  color: var(--text); font-family: var(--font-ui);
}
.case-documents :is(.cd-origins,.cd-container-summary) summary { min-height: 44px; padding-block: 10px; cursor: pointer; font: 600 13px/1.5 var(--font-ui); }
.case-documents :is(.cd-origins,.cd-container-summary) :is(h4,p,small,li) { font-family: var(--font-ui); font-size: 13px; line-height: 1.6; }
.case-documents :is(.cd-origins,.cd-container-summary) ul { list-style: none; padding: 0; margin: 0; max-height: 420px; overflow: auto; }
.case-documents :is(.cd-origins,.cd-container-summary) li { min-width: 0; padding-block: 10px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.case-documents :is(.cd-origins,.cd-container-summary) li:last-child { border-bottom: 0; }
.case-documents .cd-origins :is(code,small) { display: block; margin-block: 4px; white-space: normal; overflow-wrap: anywhere; }
.case-documents :is(.cd-origins,.cd-container-summary) pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; max-height: 240px; overflow: auto; }
.case-documents .cd-container-summary li button { width: 100%; min-width: 0; min-height: 44px; padding: 8px; text-align: left; display: grid; gap: 4px; white-space: normal; overflow-wrap: anywhere; }
.case-documents .cd-container-summary li button small { color: var(--muted); }
.case-documents .cd-upload-selection { display: grid; gap: 10px; padding: 12px; margin: 0; overflow-wrap: anywhere; }
.case-documents .cd-upload-selection :is(button,strong,small) { min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.case-documents .cd-upload-help{margin:8px 0;font-size:12px;line-height:1.6}.case-documents .cd-upload-help summary{cursor:pointer;padding:8px 0;font-weight:600}.case-documents .cd-upload-help small{display:block;margin-top:6px}.case-documents .cd-paper{scroll-margin-top:88px}

.cd-page-groups{margin-top:20px;padding-top:14px;border-top:1px solid #dfe2e7;min-width:0}.cd-page-groups h4{margin:0 0 8px}.cd-page-groups fieldset{border:0;padding:0;margin:8px 0;min-width:0}.cd-page-group{border:1px solid #dfe2e7;padding:10px;margin:10px 0;overflow-wrap:anywhere}.cd-page-groups form>label{display:grid;gap:6px}.cd-page-groups input:not([type=checkbox]){width:100%;min-width:0;box-sizing:border-box}.cd-page-options{max-height:220px;overflow:auto;margin:12px 0}.cd-page-options>label{display:flex;gap:8px;align-items:start;padding:6px 0}.cd-page-options small{display:block;font-size:11px;color:#697282;overflow-wrap:anywhere}.cd-page-groups [data-page-order]{padding-left:20px}.cd-page-groups [data-page-order] li{margin:8px 0;overflow-wrap:anywhere}.cd-page-groups [data-page-order] button{margin:4px;min-width:36px;min-height:36px}.cd-page-groups [role=alert]{font-size:12px;line-height:1.5}.cd-page-group li button{text-align:left;max-width:100%;overflow-wrap:anywhere}
@media(max-width:760px){.cd-page-groups button{min-height:44px}}

/* case-billing.css */
/* Operational time and billing UI: tabular numbers, visible status text and
   stacked mobile fields. No visual state substitutes for a saved confirmation. */
.case-billing {
  max-width: 1200px;
  min-width: 0;
  margin: 0 auto;
  color: var(--text, #18212f);
  font: 400 14px/1.6 var(--font-ui, Manrope, sans-serif);
  overflow-wrap: anywhere;
}
.case-billing *, .case-billing *::before, .case-billing *::after { box-sizing: border-box; }
.case-billing :is(h2, h3, p) { margin: 0; }
.case-billing h2 { color: var(--ink, #18212f); font: 700 clamp(22px, 2.4vw, 28px)/1.35 var(--font-ui, Manrope, sans-serif); }
.case-billing h3 { margin-bottom: 16px; color: var(--ink, #18212f); font: 700 18px/1.4 var(--font-ui, Manrope, sans-serif); }
.case-billing > header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 18px 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line, #dce1e8); }
.case-billing > header > div { flex: 1 1 300px; min-width: 0; }
.case-billing > header > div > p:last-child { margin-top: 8px; color: var(--muted, #5e6b7b); font-size: 14px; line-height: 1.65; }
.case-billing .eyebrow { margin: 0 0 8px; color: var(--muted, #5e6b7b); font-size: 12px; font-weight: 600; line-height: 1.5; letter-spacing: .03em; text-transform: none; }
.case-billing > section, .case-billing > details { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line, #dce1e8); }
.case-billing :is(button, input, select, textarea) { font: inherit; min-width: 0; max-width: 100%; }
.case-billing :is(button, a).button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line, #dce1e8);
  border-radius: 7px;
  background: var(--surface, #fff);
  color: var(--ink, #18212f);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  white-space: normal;
  cursor: pointer;
  touch-action: manipulation;
  text-decoration: none;
}
.case-billing button.button:hover:not(:disabled) { border-color: var(--green, #245be6); background: var(--paper, #f5f6f8); }
.case-billing button.button:disabled { opacity: .5; cursor: not-allowed; }
.case-billing button[data-billing-action="time"], .case-billing button[data-billing-action="save"] { background: var(--green, #245be6); border-color: var(--green, #245be6); color: #fff; }
.case-billing :is(button[data-billing-action="time"], button[data-billing-action="save"]):hover:not(:disabled) { background: #194bc6; border-color: #194bc6; }
.case-billing :is(button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--green, #245be6); outline-offset: 3px; }
.billing-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 24px 0 16px; border: 1px solid var(--line, #dce1e8); border-radius: 9px; background: var(--surface, #fff); }
.billing-totals > div { min-width: 0; padding: 22px 24px; }
.billing-totals > div + div { border-left: 1px solid var(--line, #dce1e8); }
.billing-totals span { display: block; margin-bottom: 10px; color: var(--muted, #5e6b7b); font-size: 12px; font-weight: 500; line-height: 1.5; }
.billing-totals strong { display: block; color: var(--ink, #18212f); font-size: clamp(23px, 2.5vw, 30px); font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; letter-spacing: -.025em; }
.billing-scope { max-width: 900px; color: var(--muted, #5e6b7b); font-size: 12px; line-height: 1.7; }
.billing-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.billing-editor { padding: 24px !important; border: 1px solid var(--line, #dce1e8) !important; border-radius: 9px; background: var(--paper, #f5f6f8); }
.billing-editor h3 { margin-bottom: 20px; }
.billing-editor fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; min-width: 0; margin: 0; padding: 0; border: 0; }
.billing-editor fieldset:disabled { color: var(--muted, #5e6b7b); }
.billing-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; color: var(--ink, #18212f); font-size: 14px; font-weight: 500; line-height: 1.55; }
.billing-field:has(textarea), .billing-editor fieldset > p, .billing-check, .billing-choices { grid-column: 1 / -1; }
.billing-editor fieldset > p { color: var(--muted, #5e6b7b); font-size: 12px; line-height: 1.7; }
.billing-field :is(input, select, textarea) { display: block; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line, #dce1e8); border-radius: 6px; background: var(--surface, #fff); color: var(--ink, #18212f); font-size: 14px; font-weight: 400; line-height: 1.6; }
.billing-field :is(input, select, textarea):disabled { color: var(--muted, #5e6b7b); background: var(--paper, #f5f6f8); cursor: not-allowed; }
.billing-field input::placeholder, .billing-field textarea::placeholder { color: var(--muted, #5e6b7b); opacity: 1; }
.billing-field textarea { resize: vertical; min-height: 110px; }
.billing-field :is(input[type="number"], input[inputmode="decimal"], input[type="date"], input[type="time"]) { font-variant-numeric: tabular-nums; }
.billing-check, .billing-choices label { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 10px 0; min-width: 0; color: var(--text, #18212f); font-size: 14px; font-weight: 400; line-height: 1.6; cursor: pointer; }
.billing-check { border-top: 1px solid var(--line, #dce1e8); padding-top: 16px; }
.billing-check input, .billing-choices input { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green, #245be6); }
.billing-choices { display: grid; gap: 0; max-height: 340px; overflow-y: auto; padding: 4px 16px; border: 1px solid var(--line, #dce1e8); border-radius: 7px; background: var(--surface, #fff); }
.billing-choices label + label { border-top: 1px solid var(--line, #dce1e8); }
.billing-choices label { padding-block: 14px; }
.billing-choices label > span { min-width: 0; }
.billing-choices small { display: block; margin-top: 5px; color: var(--muted, #5e6b7b); font-size: 12px; font-variant-numeric: tabular-nums; }
.billing-choices > p { padding-block: 14px; }
.billing-editor > .billing-actions { margin-bottom: 0; padding-top: 2px; }
.billing-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.billing-cards article { min-width: 0; padding: 20px; border: 1px solid var(--line, #dce1e8); border-radius: 8px; background: var(--surface, #fff); }
.billing-card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.billing-card-head strong { flex: 1 1 240px; min-width: 0; color: var(--ink, #18212f); font-size: 15px; font-weight: 600; line-height: 1.5; }
.billing-card-head span { flex: 0 1 auto; max-width: 100%; color: var(--muted, #5e6b7b); font-size: 12px; line-height: 1.65; }
.billing-cards article > p { margin-top: 10px; font-size: 14px; line-height: 1.65; font-variant-numeric: tabular-nums; }
.billing-cards article > .billing-actions { margin: 16px 0; }
.billing-cards article > button { margin-top: 16px; }
.case-billing details { min-width: 0; }
.case-billing details summary { min-height: 44px; padding-block: 12px; color: var(--ink, #18212f); font-size: 14px; font-weight: 600; line-height: 1.55; cursor: pointer; touch-action: manipulation; }
.case-billing details summary::marker { color: var(--muted, #5e6b7b); }
.case-billing details p { margin: 8px 0 12px; padding: 10px 14px; border-left: 2px solid var(--line, #dce1e8); background: var(--paper, #f5f6f8); font-size: 12px; line-height: 1.75; }
.billing-notice, .billing-error { margin: 16px 0 !important; padding: 14px 16px; border: 1px solid #cbd9f7; border-left: 3px solid var(--green, #245be6); border-radius: 7px; background: #edf3ff; color: #214ea8; font-size: 14px; line-height: 1.65; }
.billing-error { border-color: #eccbd0; border-left-color: #ab3143; background: #fff5f6; color: #822536; }
@media (max-width: 800px) {
  .billing-totals > div { padding: 18px; }
  .billing-editor { padding: 20px !important; }
}
@media (max-width: 640px) {
  .case-billing > header { display: block; }
  .case-billing > header > button { width: 100%; margin-top: 16px; }
  .billing-totals { grid-template-columns: minmax(0, 1fr); margin-top: 20px; }
  .billing-totals > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 16px; }
  .billing-totals > div + div { border-left: 0; border-top: 1px solid var(--line, #dce1e8); }
  .billing-totals span { flex: 1 1 130px; margin: 0; }
  .billing-totals strong { font-size: 25px; }
  .billing-editor { padding: 16px !important; }
  .billing-editor fieldset { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .billing-field :is(input, select, textarea) { font-size: 16px; }
  .billing-actions { align-items: stretch; }
  .billing-actions :is(button, a) { flex: 1 1 180px; }
  .billing-cards article { padding: 16px; }
  .billing-card-head { display: block; }
  .billing-card-head span { display: block; margin-top: 6px; }
  .billing-cards article > button { width: 100%; }
  .billing-choices { padding-inline: 12px; }
  .case-billing > section, .case-billing > details { margin-top: 24px; padding-top: 20px; }
}
@media (forced-colors: active) {
  .case-billing :focus-visible { outline-color: Highlight; }
  .billing-check input, .billing-choices input { forced-color-adjust: auto; }
}

.billing-account{min-width:0;padding:20px;border:1px solid var(--line,#ddd);border-radius:14px;background:var(--surface,#fff)}
.billing-account h4{margin-top:24px}.billing-account li{padding:5px 0;overflow-wrap:anywhere}.billing-finance-pause{border-left:4px solid #8a4b16;background:#fff8ed;color:#49290e;padding:14px 18px;margin:16px 0;border-radius:8px}.billing-account .billing-totals{grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr))}.billing-account article{min-width:0;overflow-wrap:anywhere}
@media(max-width:600px){.billing-account{padding:14px}.billing-account .billing-actions{display:grid;grid-template-columns:1fr}}

.billing-next-step{display:flex;align-items:center;gap:20px;padding:20px;margin:20px 0;background:var(--surface,#fff);border:1px solid var(--line,#ddd);border-left:4px solid #dfff80;min-width:0}
.billing-next-step>div{flex:1;min-width:0;overflow-wrap:anywhere}.billing-next-step strong{font-size:18px;color:var(--ink,#191c19)}.billing-next-step p{margin:8px 0 0;line-height:1.55}.billing-next-step button{flex-shrink:0;max-width:100%;white-space:normal;min-height:44px}
@media(max-width:700px){.billing-next-step{align-items:stretch;flex-direction:column;padding:16px;gap:14px}.billing-next-step button{width:100%}}
.case-billing .billing-dispatch{margin:6px 0 0;font-size:13px;color:#4f5b52}.case-billing .billing-dispatch[data-dispatch-status=failed],.case-billing .billing-dispatch[data-dispatch-status=held]{color:#8a4a1c}.case-billing .billing-dispatch[data-dispatch-status=completed]{color:#2f6b2a}

/* draft-dialogue.css */
/* Draft dialogue: explicit source/current comparison, persistent conversation,
   and a separate proposal. Exact prose remains selectable and untruncated. */
.draft-dialogue {
  max-width: 1400px;
  min-width: 0;
  margin: 0 auto;
  color: var(--text, #18212f);
  font: 400 14px/1.6 var(--font-ui, Manrope, sans-serif);
  overflow-wrap: anywhere;
}
.draft-dialogue *, .draft-dialogue *::before, .draft-dialogue *::after { box-sizing: border-box; }
.draft-dialogue :is(h2, h3, p) { margin: 0; }
.draft-dialogue :is(button, input, textarea) { min-width: 0; max-width: 100%; font: inherit; }
.draft-dialogue button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line, #dce1e8);
  border-radius: 7px;
  background: var(--surface, #fff);
  color: var(--ink, #18212f);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  white-space: normal;
  cursor: pointer;
  touch-action: manipulation;
}
.draft-dialogue button.button:hover:not(:disabled) { background: var(--paper, #f5f6f8); border-color: var(--green, #245be6); }
.draft-dialogue button.primary { border-color: var(--green, #245be6); background: var(--green, #245be6); color: #fff; }
.draft-dialogue button.primary:hover:not(:disabled) { background: #194bc6; border-color: #194bc6; }
.draft-dialogue button.button:disabled { opacity: .5; cursor: not-allowed; }
.draft-dialogue :is(button, textarea, input, summary):focus-visible { outline: 2px solid var(--green, #245be6); outline-offset: 3px; }
.dd-header { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 18px 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line, #dce1e8); }
.dd-header > div:first-child { flex: 1 1 320px; min-width: 0; }
.dd-eyebrow { margin-bottom: 8px !important; color: var(--muted, #5e6b7b); font-size: 12px; font-weight: 600; line-height: 1.5; letter-spacing: .03em; }
.dd-header h2 { color: var(--ink, #18212f); font: 700 clamp(22px, 2.4vw, 28px)/1.35 var(--font-ui, Manrope, sans-serif); }
.dd-subtitle { margin-top: 8px !important; color: var(--muted, #5e6b7b); font-size: 14px; line-height: 1.65; }
.dd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.dd-scope { margin: 18px 0 !important; padding: 12px 16px; border: 1px solid var(--line, #dce1e8); border-left: 3px solid #a8b4c6; border-radius: 7px; background: var(--paper, #f5f6f8); color: var(--muted, #5e6b7b); font-size: 12px; line-height: 1.75; }
.dd-notice, .dd-error { margin: 16px 0 !important; padding: 14px 16px; border: 1px solid #cbd9f7; border-left: 3px solid var(--green, #245be6); border-radius: 7px; background: #edf3ff; color: #214ea8; font-size: 14px; line-height: 1.65; }
.dd-error { border-color: #eccbd0; border-left-color: #ab3143; background: #fff5f6; color: #822536; }
.dd-pending { margin: 18px 0; padding: 18px; border: 1px solid var(--line, #dce1e8); border-left: 3px solid var(--green, #245be6); border-radius: 8px; background: var(--paper, #f5f6f8); font-size: 14px; line-height: 1.7; }
.dd-pending strong { color: var(--ink, #18212f); font-size: 14px; font-weight: 600; }
.dd-pending p { margin-top: 8px; color: var(--muted, #5e6b7b); }
.dd-pending .dd-actions, .dd-pending > button { margin-top: 14px; }
.dd-loading, .dd-empty { padding: 16px 0; color: var(--muted, #5e6b7b); font-size: 14px; line-height: 1.75; }
.dd-texts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 20px; margin: 24px 0; }
.dd-sheet { min-width: 0; border: 1px solid var(--line, #dce1e8); border-radius: 9px; background: var(--surface, #fff); }
.dd-sheet > header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding: 16px 20px; border-bottom: 1px solid var(--line, #dce1e8); }
.dd-sheet h3 { color: var(--ink, #18212f); font: 700 14px/1.5 var(--font-ui, Manrope, sans-serif); }
.dd-sheet > header span { color: var(--muted, #5e6b7b); font-size: 12px; line-height: 1.6; }
.dd-sheet-current { border-top: 3px solid var(--green, #245be6); }
.dd-sheet-tools { padding: 12px 20px 0; }
.dd-sheet-tools button { font-size: 12px; }
.dd-prose {
  min-width: 0;
  max-width: 100%;
  max-height: 640px;
  margin: 0;
  padding: 24px;
  overflow-y: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;
  color: var(--text, #18212f);
  font: 400 18px/1.7 var(--font-document, Newsreader, Georgia, serif);
  tab-size: 4;
}
.dd-placeholder { padding: 24px; color: var(--muted, #5e6b7b); font-size: 14px; line-height: 1.75; }
.draft-dialogue details { min-width: 0; }
.draft-dialogue summary { min-height: 44px; padding: 12px 0; color: var(--ink, #18212f); font-size: 14px; font-weight: 600; line-height: 1.55; cursor: pointer; touch-action: manipulation; }
.draft-dialogue summary::marker { color: var(--muted, #5e6b7b); }
.dd-history { margin-top: 20px; padding-top: 6px; border-top: 1px solid var(--line, #dce1e8); }
.dd-history article { margin-top: 12px; padding: 20px; border: 1px solid var(--line, #dce1e8); border-radius: 8px; background: var(--surface, #fff); }
.dd-history h4 { margin: 0 0 14px; color: var(--muted, #5e6b7b); font: 600 12px/1.65 var(--font-ui, Manrope, sans-serif); }
.dd-history pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 18px/1.7 var(--font-document, Newsreader, Georgia, serif); tab-size: 4; }
.dd-conversation { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line, #dce1e8); }
.dd-conversation > header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 18px; }
.dd-conversation h3 { color: var(--ink, #18212f); font: 700 20px/1.4 var(--font-ui, Manrope, sans-serif); }
.dd-conversation > header span { color: var(--muted, #5e6b7b); font-size: 12px; font-variant-numeric: tabular-nums; }
.dd-messages { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; max-height: 620px; overflow-y: auto; padding: 3px; }
.dd-message { width: calc(100% - 40px); min-width: 0; padding: 18px 20px; border: 1px solid var(--line, #dce1e8); border-radius: 8px; background: var(--surface, #fff); }
.dd-message-user { justify-self: end; border-color: #cbd9f7; background: #edf3ff; }
.dd-message > header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 16px; margin-bottom: 12px; color: var(--muted, #5e6b7b); font-size: 12px; line-height: 1.6; }
.dd-message > header strong { color: var(--ink, #18212f); font-weight: 600; }
.dd-message-user > header strong { color: #214ea8; }
.dd-message pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 14px/1.8 var(--font-ui, Manrope, sans-serif); tab-size: 4; }
.dd-message-status { margin-top: 12px !important; padding-top: 10px; border-top: 1px solid var(--line, #dce1e8); color: var(--muted, #5e6b7b); font-size: 12px; line-height: 1.7; }
.dd-proposal { margin: 24px 0; padding: 24px; border: 1px solid var(--line, #dce1e8); border-left: 3px solid var(--green, #245be6); border-radius: 9px; background: var(--paper, #f5f6f8); }
.dd-proposal h3 { margin-bottom: 10px; color: var(--ink, #18212f); font: 700 18px/1.45 var(--font-ui, Manrope, sans-serif); }
.dd-proposal p { color: var(--muted, #5e6b7b); font-size: 14px; line-height: 1.7; }
.dd-proposal .dd-prose { max-height: 480px; margin: 18px 0; border: 1px solid var(--line, #dce1e8); border-radius: 7px; background: var(--surface, #fff); }
.dd-confirm { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; margin: 16px 0; padding: 10px 0; color: var(--ink, #18212f); font-size: 14px; line-height: 1.65; cursor: pointer; }
.dd-confirm span { min-width: 0; }
.dd-confirm input { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green, #245be6); }
.dd-composer { margin-top: 24px; padding: 24px; border: 1px solid var(--line, #dce1e8); border-radius: 9px; background: var(--surface, #fff); }
.dd-modes { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; margin: 0 0 20px; padding: 0; border: 0; }
.dd-modes legend { margin-bottom: 10px; color: var(--ink, #18212f); font-size: 14px; font-weight: 600; line-height: 1.55; }
.dd-modes label { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line, #dce1e8); border-radius: 6px; background: var(--surface, #fff); color: var(--text, #18212f); font-size: 14px; line-height: 1.55; cursor: pointer; }
.dd-modes label:has(input:checked) { border-color: var(--green, #245be6); background: #edf3ff; color: #214ea8; }
.dd-modes input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--green, #245be6); }
.dd-modes:disabled label { color: var(--muted, #5e6b7b); cursor: not-allowed; }
.dd-composer > label { display: block; margin-bottom: 8px; color: var(--ink, #18212f); font-size: 14px; font-weight: 600; }
.dd-composer textarea { display: block; width: 100%; min-height: 144px; padding: 14px 16px; border: 1px solid var(--line, #dce1e8); border-radius: 7px; background: var(--surface, #fff); color: var(--ink, #18212f); font: 400 14px/1.75 var(--font-ui, Manrope, sans-serif); resize: vertical; }
.dd-composer textarea::placeholder { color: var(--muted, #5e6b7b); opacity: 1; }
.dd-composer textarea:read-only { background: var(--paper, #f5f6f8); color: var(--muted, #5e6b7b); }
.dd-composer-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 16px; }
.dd-composer-footer > p { flex: 1 1 340px; max-width: 720px; min-width: 0; color: var(--muted, #5e6b7b); font-size: 12px; line-height: 1.75; }
.dd-meta { margin-top: 24px; padding-top: 6px; border-top: 1px solid var(--line, #dce1e8); color: var(--muted, #5e6b7b); font-size: 12px; line-height: 1.75; }
.dd-meta dl { display: grid; grid-template-columns: minmax(120px, .3fr) minmax(0, 1fr); gap: 12px 20px; margin: 8px 0 0; padding: 16px; border: 1px solid var(--line, #dce1e8); border-radius: 7px; background: var(--paper, #f5f6f8); }
.dd-meta dt { min-width: 0; font-weight: 600; }
.dd-meta dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
@media (max-width: 1000px) {
  .dd-texts { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .dd-prose { max-height: 480px; }
}
@media (max-width: 640px) {
  .dd-header { gap: 16px; }
  .dd-header > .dd-actions { width: 100%; }
  .dd-actions { align-items: stretch; }
  .dd-actions button { flex: 1 1 160px; }
  .dd-sheet > header { padding: 14px 16px; }
  .dd-sheet-tools { padding: 12px 16px 0; }
  .dd-sheet-tools button { width: 100%; }
  .dd-prose { max-height: 440px; padding: 18px; font-size: 18px; }
  .dd-message { width: calc(100% - 12px); padding: 16px; }
  .dd-message > header { flex-direction: column; align-items: flex-start; }
  .dd-proposal, .dd-composer, .dd-history article { padding: 16px; }
  .dd-proposal > button { width: 100%; }
  .dd-proposal .dd-prose { padding: 16px; }
  .dd-modes label { flex: 1 1 160px; }
  .draft-dialogue textarea { font-size: 16px; }
  .dd-composer-footer { align-items: stretch; }
  .dd-composer-footer > p { flex-basis: 100%; }
  .dd-composer-footer > .dd-actions { width: 100%; }
  .dd-meta dl { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px; }
  .dd-meta dd + dt { margin-top: 10px; }
}
@media (forced-colors: active) {
  .draft-dialogue :focus-visible { outline-color: Highlight; }
  .dd-modes label:has(input:checked) { outline: 1px solid Highlight; }
}
@media (prefers-reduced-motion: reduce) {
  .draft-dialogue * { scroll-behavior: auto !important; }
}

.dd-source-review{min-width:0;margin:20px 0;padding:20px;border:1px solid var(--line,#dce4ef);border-left:3px solid var(--accent,#cadf56);background:var(--surface,#fff);overflow-wrap:anywhere}.dd-source-review h3{margin:0 0 12px}.dd-source-review p,.dd-source-review li{line-height:1.6}.dd-source-review details{margin:14px 0}.dd-source-review summary{cursor:pointer;font-weight:600}.dd-source-review .dd-prose{max-height:320px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}.dd-source-review>.button{white-space:normal;max-width:100%}@media(max-width:600px){.dd-source-review{padding:14px}.dd-source-review>.button{width:100%}}
/* Current result first; history stays available without burying the conversation. */
.draft-dialogue .dd-next-step{padding:12px 16px;background:#f4f6ef;border-left:3px solid #b9d754;font-size:13px;line-height:1.6}
.draft-dialogue .dd-proposal>header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}.draft-dialogue .dd-proposal>header h3{margin:0}.dd-version-label{font:600 11px/1.5 var(--font-ui,sans-serif);color:#52613e;background:#edf3df;padding:5px 9px;border-radius:3px}
.draft-dialogue>.dd-proposal{margin:22px 0 26px;border-color:#ced9bb;border-top:3px solid #cbe66b;background:#fff}.draft-dialogue>.dd-sheet-current{margin:20px 0 26px}
.draft-dialogue .dd-prose{font-family:var(--font-ui,sans-serif);font-size:15px;line-height:1.85;max-height:540px}.draft-dialogue .dd-latest-message{margin:14px 0}.dd-latest-message>.dd-message{width:100%;max-width:none;box-sizing:border-box}.dd-latest-message>.dd-message-user{background:#f4f6f0}.dd-latest-message>.dd-message pre{font-size:14px;line-height:1.7}
.draft-dialogue .dd-history{margin:16px 0;padding:14px 0;border-block:1px solid #e4e7df}.draft-dialogue .dd-history>summary{font-size:13px;cursor:pointer;min-height:28px;line-height:1.7;color:#50584a}.dd-technical{font-size:11px;color:#69715f;margin-top:14px}.dd-technical summary{cursor:pointer}.draft-dialogue .dd-modes label:has(input:checked){background:#eef4df;border-color:#879a5e;color:#28371a}
.draft-dialogue .dd-composer{background:#f8f9f5;border-color:#dce2d0}.draft-dialogue .dd-composer textarea{background:#fff}.draft-dialogue .dd-scope{font-size:12px;line-height:1.7;max-width:820px}
@media(max-width:640px){.draft-dialogue .dd-prose{font-size:15px;padding:16px;max-height:430px}.draft-dialogue .dd-proposal{padding:16px}.draft-dialogue .dd-proposal .dd-prose{padding:12px 0}.dd-version-label{font-size:10px}.draft-dialogue .dd-modes label{flex:1 1 120px;justify-content:center}.draft-dialogue .dd-composer textarea{font-size:16px}.dd-latest-message>.dd-message{margin-inline:0}}

/* Reader typography; never allow the source preformatted layout to overflow. */
.draft-dialogue .dd-prose.dd-formatted{white-space:normal;overflow-wrap:anywhere;word-break:normal;line-height:1.7;font-family:inherit;font-size:16px;padding:clamp(18px,3vw,36px);max-width:100%;min-width:0;text-align:left}
.dd-formatted p{margin:0 0 1em;max-width:78ch}.dd-formatted h2{font-size:clamp(22px,2.4vw,30px);line-height:1.25;margin:0 0 1em;letter-spacing:-.025em}.dd-formatted h3,.dd-formatted h4,.dd-formatted h5,.dd-formatted h6{font-size:18px;line-height:1.4;margin:1.6em 0 .6em;font-weight:700}.dd-formatted h2:first-child,.dd-formatted h3:first-child,.dd-formatted h4:first-child{margin-top:0}.dd-formatted ul,.dd-formatted ol{padding-left:1.5em;margin:0 0 1.2em}.dd-formatted li{margin:.35em 0}.dd-formatted blockquote{border-left:3px solid #d8ed81;padding:.2em 1em;margin:1em 0;color:#555}.dd-formatted pre{white-space:pre-wrap;overflow-wrap:anywhere;padding:12px;background:#f5f6f3}.dd-formatted code{font-size:.9em}.dd-formatted .formatted-table{max-width:100%;overflow:auto;margin:1.2em 0}.dd-formatted table{border-collapse:collapse;width:100%;font-size:14px}.dd-formatted th,.dd-formatted td{padding:10px 12px;text-align:left;border-bottom:1px solid #ddd;min-width:90px}.dd-formatted th{background:#f4f5f0;font-weight:600}.dd-formatted hr{border:0;border-top:1px solid #ddd;margin:1.5em 0}
@media(max-width:600px){.draft-dialogue .dd-prose.dd-formatted{font-size:15px;padding:16px}.dd-formatted h3,.dd-formatted h4{font-size:17px}}

.dd-quality-check{padding:20px;border-left:3px solid #aa6c11;background:#fff9ed;margin:18px 0;line-height:1.6}.dd-quality-check h3{margin:0 0 10px}.dd-quality-check p{font-size:13px;color:#686151}

/* operative-ai.css */
.operative-ai{min-width:0;background:#fff;border:1px solid var(--line,#dce4ef);border-radius:10px;overflow:hidden}.oa-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:26px;border-bottom:1px solid #e2e8f0}.oa-header h2{font-size:24px;letter-spacing:-.6px;margin:5px 0 8px}.oa-header p{color:#566a8c}.oa-content{padding:26px;min-width:0}.oa-status:empty{display:none}.oa-status{padding:0 26px}.oa-error,.oa-notice{padding:15px 18px;line-height:1.6;border-left:3px solid #df961c;background:#fff8eb;color:#70511d;overflow-wrap:anywhere}.oa-error{border-color:#be3a3a;background:#fff1f1;color:#842929}.oa-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(240px,1fr);gap:40px}.oa-form{display:flex;flex-direction:column;gap:12px;min-width:0}.oa-form h3,.oa-saved h3{font-size:18px;margin:0 0 10px}.oa-form label,.oa-publish label{font-weight:650;font-size:13px}.oa-form textarea{font:inherit;resize:vertical;width:100%;box-sizing:border-box;border:1px solid #cdd8ea;border-radius:6px;padding:13px;min-height:140px;line-height:1.6}.oa-form .button{align-self:flex-start;color:white;background:#0055ed;border-color:#0055ed}.oa-document-choice:not([hidden]){display:flex;flex-direction:column;gap:10px}.oa-help{font-size:13px;color:#607394;line-height:1.65}.oa-saved{border-left:1px solid #e3e9f2;padding-left:30px}.oa-draft{display:flex;flex-direction:column;gap:7px;text-align:left;background:white;border:0;border-bottom:1px solid #e3e9f2;width:100%;padding:16px 0;font:inherit;color:#17284c;cursor:pointer}.oa-draft span,.oa-draft small{color:#607394;font-size:13px}.oa-draft:hover strong{color:#0055ed}.oa-sources{margin-top:26px;border-top:1px solid #e3e9f2;padding-top:18px}.oa-sources details,.oa-preview>details{margin:12px 0}.oa-sources summary,.oa-preview summary{cursor:pointer;font-weight:650;overflow-wrap:anywhere}.oa-sources pre,.oa-preview pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:340px;overflow:auto;background:#f6f8fc;padding:18px;font-family:inherit;font-size:14px;line-height:1.7}.oa-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}.oa-publish{display:flex;flex-wrap:wrap;align-items:end;gap:14px;border-bottom:1px solid #e2e8f0;padding-bottom:24px;margin-bottom:20px}.oa-publish>div{display:flex;flex:1 1 240px;flex-direction:column;gap:8px}.oa-dialogue{min-width:0}.oa-dialogue .dd-scope{margin:12px 0}.operative-ai button:disabled{opacity:.5;cursor:not-allowed}@media(max-width:760px){.oa-header{align-items:flex-start;flex-direction:column;padding:18px}.oa-content{padding:18px}.oa-status{padding:0 18px}.oa-layout{grid-template-columns:minmax(0,1fr);gap:26px}.oa-saved{border-left:0;border-top:1px solid #e3e9f2;padding:22px 0 0}.oa-form .button,.oa-actions .button,.oa-publish>.button{width:100%;justify-content:center}.oa-header h2{font-size:22px}.oa-publish{align-items:stretch}.oa-publish>div{min-width:0}.oa-dialogue .dd-texts{grid-template-columns:minmax(0,1fr)}}
.operative-ai .oa-step-label{font-size:11px;line-height:1.5;text-transform:uppercase;letter-spacing:.07em;color:#6b765b;margin:0 0 12px;font-weight:650}.operative-ai .oa-form .button,.operative-ai [data-ai-action="generate"],.operative-ai [data-ai-action="publish"]{background:#252a24;border-color:#252a24;color:#e4fb88;min-height:46px}.operative-ai .oa-file-step{margin-top:28px;padding:24px;background:#f4f6ef;border:1px solid #dce3d1;border-radius:5px}.operative-ai .oa-file-step h3{margin:0 0 10px}.operative-ai .oa-publish{border:0;padding:0;margin:20px 0 12px}.operative-ai .oa-publish-hint{font-size:13px;line-height:1.7;color:#505f40}.operative-ai .oa-header{padding:22px 26px}.operative-ai .oa-header h2{font-size:22px}.operative-ai .oa-draft:hover{background:#f7f9f1}.operative-ai .oa-draft:hover strong{color:#344c14}.operative-ai .oa-draft{padding:18px 10px;border-color:#e1e6d8;border-radius:3px}.operative-ai .oa-help{color:#667158}.operative-ai .oa-saved{border-color:#e1e6d8}.operative-ai textarea:focus-visible,.operative-ai input:focus-visible{outline:2px solid #526331;outline-offset:2px}
@media(max-width:760px){.operative-ai .oa-header{padding:18px}.operative-ai .oa-file-step{padding:16px}.operative-ai .oa-publish>div{flex-basis:100%}.operative-ai .oa-file-step .button{width:100%;justify-content:center}.operative-ai .oa-form textarea{font-size:16px}}

/* Keep the task and its result near the top of the case workspace. */
#main-content:has(.oa-dialogue) .page-heading{padding-top:0;padding-bottom:14px;margin-bottom:14px;min-height:0}
#main-content:has(.oa-dialogue) .page-heading h1{font-size:clamp(25px,2.3vw,34px);line-height:1.2}
#main-content:has(.oa-dialogue) .office-case-context{margin:10px 0}
#main-content:has(.oa-dialogue) .office-case-context>summary{padding:10px 14px}
#main-content:has(.oa-dialogue) .workspace-case-navigation{margin:12px 0 18px}
.operative-ai:has(.oa-dialogue) .oa-header{padding:10px 24px;flex-direction:row;align-items:center;gap:12px}
.operative-ai:has(.oa-dialogue) .oa-step-label{margin:0}
.operative-ai:has(.oa-dialogue) .oa-content{padding-top:18px}
.oa-dialogue .dd-header{padding-bottom:12px;gap:10px}
.oa-dialogue .dd-eyebrow{display:none}
.oa-dialogue .dd-scope{padding:6px 0;border:0;background:none;margin:10px 0!important}
@media(max-width:760px){.operative-ai:has(.oa-dialogue) .oa-header{padding:10px 16px}.oa-dialogue .dd-header>.dd-actions{width:auto}.oa-dialogue .dd-header>div:first-child{flex-basis:100%}}

.oa-research-choice{border:1px solid var(--border,#dce0e5);padding:16px;margin:16px 0;border-radius:4px;min-width:0}.oa-research-choice label{display:flex;align-items:center;gap:10px;font-weight:650}.oa-research-choice input[type=checkbox]{width:18px;height:18px;flex:0 0 18px;accent-color:#242723}.oa-research-choice ul{padding-left:20px;overflow-wrap:anywhere}.oa-research-choice a{color:inherit;text-decoration:underline;text-underline-offset:3px}

/* bea.css */
.bea-workspace{color:var(--text,var(--ink));font-family:var(--font-ui,sans-serif);font-size:14px;line-height:1.5;min-width:0;display:grid;gap:24px}.bea-workspace *{box-sizing:border-box;min-width:0}.bea-heading,.bea-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.bea-workspace h2,.bea-workspace h3{font-family:var(--font-ui,sans-serif);font-weight:650;letter-spacing:-.02em;line-height:1.3;margin:0 0 8px}.bea-workspace h2{font-size:21px}.bea-workspace h3{font-size:17px}.bea-workspace p{margin:8px 0;color:var(--muted)}.bea-panel{border:1px solid var(--line);background:var(--surface,var(--paper));border-radius:8px;padding:20px}.bea-panel>summary,.bea-review>summary,.bea-limits>summary{min-height:44px;display:list-item;cursor:pointer;font-weight:600;line-height:1.5;padding:10px 0}.bea-panel>summary{margin:-8px 0}.bea-panel[open]>summary{margin-bottom:14px;border-bottom:1px solid var(--line)}.bea-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0}.bea-wide{grid-column:1/-1}.bea-workspace label{display:grid;gap:6px;font-weight:500}.bea-workspace input:not([type=checkbox]),.bea-workspace select{font:inherit;min-height:44px;width:100%;max-width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:6px;background:var(--paper,var(--surface));color:var(--text,var(--ink))}.bea-workspace input[type=checkbox]{width:18px;height:18px;flex:0 0 18px;accent-color:var(--green);margin:3px 0}.bea-workspace fieldset{border:1px solid var(--line);border-radius:6px;margin:16px 0;padding:12px 14px;min-width:0}.bea-workspace legend{font-weight:600;padding:0 4px}.bea-checks{display:grid;gap:6px;margin:16px 0}.bea-workspace .bea-check,.bea-checks label{display:flex;align-items:flex-start;gap:10px;min-height:44px;padding:9px 0;font-weight:400}.bea-workspace small{font-size:12px;color:var(--muted)}.bea-check small{display:block}.bea-workspace button,.bea-workspace .button{min-height:44px;white-space:normal;text-align:center;max-width:100%;align-items:center;justify-content:center}.bea-status{font-size:12px;line-height:1.4;max-width:220px;color:var(--green);border-left:2px solid var(--green);padding-left:10px}.bea-package ul{padding-left:20px}.bea-package li,.bea-entries li{overflow-wrap:anywhere}.bea-review{border-top:1px solid var(--line);padding-top:8px;margin-top:16px}.bea-review>.bea-check{margin:12px 0}.bea-entries{list-style:none;padding:0;margin:16px 0 0}.bea-entries li{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid var(--line)}.bea-entries a{min-height:32px;color:var(--green);overflow-wrap:anywhere}.bea-entries small{white-space:nowrap}.bea-error,.bea-warning{border:1px solid var(--line);border-left:3px solid var(--green);padding:12px 14px;border-radius:5px;background:var(--surface)}.bea-workspace :focus-visible{outline:2px solid var(--green);outline-offset:3px}.bea-workspace input:disabled,.bea-workspace select:disabled{opacity:.65}.bea-limits{font-size:12px;color:var(--muted)}@media(max-width:760px){.bea-heading,.bea-row{flex-direction:column;gap:10px}.bea-panel{padding:16px}.bea-form-grid{grid-template-columns:minmax(0,1fr)}.bea-workspace input:not([type=checkbox]),.bea-workspace select{font-size:16px}.bea-status{max-width:100%}.bea-heading>.button{width:100%}.bea-workspace{gap:18px}.bea-entries li{flex-wrap:wrap}.bea-entries a{flex:1 1 180px}}@media(max-width:360px){.bea-panel{padding:12px}.bea-workspace h2{font-size:19px}}

/* consultation-booking.css */
.booking-workspace{display:grid;gap:24px;min-width:0;color:var(--text,var(--ink));font:14px/1.55 var(--font-ui,sans-serif)}.booking-workspace *{box-sizing:border-box;min-width:0}.booking-heading,.booking-summary{display:flex;justify-content:space-between;align-items:start;gap:20px}.booking-workspace h1,.booking-workspace h2,.booking-workspace h3{letter-spacing:-.025em;line-height:1.2;margin:5px 0 12px;font-weight:650}.booking-workspace h2{font-size:26px}.booking-workspace h3{font-size:19px}.booking-workspace p{margin:8px 0;color:var(--muted)}.booking-eyebrow{text-transform:uppercase;letter-spacing:.12em;font-size:11px;font-weight:700}.booking-panel{padding:24px;border:1px solid var(--line);background:var(--surface,var(--paper));border-radius:8px}.booking-panel>summary,.booking-limits>summary{cursor:pointer;min-height:44px;padding:8px 0;font-weight:650}.booking-panel[open]>summary{margin-bottom:16px;border-bottom:1px solid var(--line)}.booking-state{border-left:3px solid var(--green,#bee56f);padding-left:14px;font-size:12px;flex:0 0 210px}.booking-money,.booking-slots{list-style:none;padding:0;margin:16px 0 0}.booking-money li,.booking-slots li{display:flex;justify-content:space-between;align-items:center;gap:16px;border-top:1px solid var(--line);padding:14px 0;overflow-wrap:anywhere}.booking-money{font-variant-numeric:tabular-nums}.booking-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0}.booking-wide{grid-column:1/-1}.booking-workspace label{display:grid;gap:6px;margin:12px 0;font-weight:500}.booking-workspace input:not([type=checkbox]),.booking-workspace select,.booking-workspace textarea{font:inherit;color:inherit;background:var(--paper,var(--surface));border:1px solid var(--line);border-radius:5px;width:100%;max-width:100%;padding:10px 12px;min-height:44px}.booking-workspace textarea{min-height:90px;resize:vertical}.booking-workspace .booking-check{display:flex;align-items:start;gap:10px;font-weight:400}.booking-workspace input[type=checkbox]{width:18px;height:18px;flex:0 0 18px;margin-top:3px;accent-color:var(--green,#bee56f)}.booking-workspace button{min-height:44px;max-width:100%;white-space:normal}.booking-workspace :focus-visible{outline:2px solid var(--green,#bee56f);outline-offset:3px}.booking-warning{border-left:3px solid var(--green,#bee56f);padding:14px 18px;background:var(--surface,var(--paper))}.booking-record{border-top:1px solid var(--line);padding:18px 0}.booking-record small,.booking-limits{color:var(--muted);font-size:12px}.booking-record p,.booking-limits li{overflow-wrap:anywhere}.booking-workspace :disabled{opacity:.55}.booking-workspace input[readonly]{font-size:12px}@media(max-width:760px){.booking-heading,.booking-summary{flex-direction:column}.booking-state{flex:auto}.booking-panel{padding:16px}.booking-grid{grid-template-columns:1fr}.booking-slots li{align-items:start;flex-direction:column}.booking-slots button{width:100%}.booking-workspace input:not([type=checkbox]),.booking-workspace select,.booking-workspace textarea{font-size:16px}.booking-heading>button{width:100%}.booking-workspace{gap:18px}.booking-workspace h2{font-size:23px}}

/* case-team.css */
.case-team-workspace{display:grid;gap:18px;max-width:1100px;margin:auto;color:var(--ink,#111);min-width:0}.case-team-workspace>header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.case-team-workspace h2{margin:4px 0;font-size:28px;letter-spacing:-.04em}.case-team-eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:.12em}.case-team-panel{border:1px solid var(--line,#ddd);border-radius:16px;background:var(--surface,#fff);padding:22px;min-width:0;overflow-wrap:anywhere}.case-team-panel h3{margin:0 0 14px}.case-team-panel dl{display:grid;grid-template-columns:minmax(120px,1fr) 2fr;gap:10px}.case-team-panel dd{margin:0}.case-team-panel dt,.case-team-note{color:var(--muted,#666);font-size:13px}.case-team-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:16px 0}.case-team-fields label{display:grid;gap:8px;min-width:0;font-size:13px}.case-team-fields select,.case-team-fields textarea{width:100%;min-width:0;box-sizing:border-box;border:1px solid var(--line,#ccc);border-radius:8px;background:#fff;padding:12px;font:inherit;color:#111}.case-team-fields textarea{min-height:90px;resize:vertical}.case-team-wide{grid-column:1/-1}.case-team-warning{padding:16px;border:1px solid #d4ad6e;background:#fff8e9;border-radius:10px}.case-team-panel summary{cursor:pointer;font-weight:600}.case-team-panel article+article{border-top:1px solid var(--line,#ddd);padding-top:14px;margin-top:14px}.case-team-inbox-item{display:flex;align-items:start;justify-content:space-between;gap:20px}.case-team-inbox-item>div{min-width:0}.case-team-preview{white-space:pre-wrap;color:var(--muted,#555);font-size:13px}.case-team-workspace button{min-height:44px}.case-team-workspace a{color:inherit;text-underline-offset:3px}.case-team-workspace :focus-visible{outline:3px solid #b7eb38;outline-offset:3px}@media(max-width:650px){.case-team-panel{padding:16px}.case-team-fields{grid-template-columns:1fr}.case-team-panel dl{grid-template-columns:1fr}.case-team-panel dd{margin-bottom:6px}.case-team-inbox-item{flex-direction:column}.case-team-workspace h2{font-size:24px}}

.case-team-task-links{display:flex;flex-wrap:wrap;gap:12px 18px;margin-block:18px}.case-team-task-links a{min-height:36px;display:inline-flex;align-items:center;overflow-wrap:anywhere}.case-team-panel h3{overflow-wrap:anywhere}

/* case-mail.css */
.case-mail-workspace{min-width:0;color:var(--text);font-family:var(--font-ui);font-size:14px;line-height:1.55}.case-mail-heading,.case-mail-message>header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.case-mail-heading{padding-bottom:20px;border-bottom:1px solid var(--line)}.case-mail-workspace :is(h2,h3,h4,p){margin:0 0 10px}.case-mail-workspace :is(h2,h3,h4){font-family:var(--font-ui);color:var(--ink);font-weight:650}.case-mail-heading h2{font-size:21px}.case-mail-workspace h3{font-size:17px}.case-mail-workspace h4{font-size:14px}.case-mail-heading p,.case-mail-meta,.case-mail-workspace small{color:var(--muted)}.case-mail-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.case-mail-workspace button,.case-mail-workspace summary{min-height:44px}.case-mail-editor,.case-mail-message{padding:24px 0;border-bottom:1px solid var(--line)}.case-mail-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.case-mail-wide{grid-column:1/-1}.case-mail-workspace label{display:grid;gap:7px;min-width:0;font-weight:550}.case-mail-workspace :is(input:not([type=checkbox]),select,textarea){width:100%;max-width:100%;min-width:0;box-sizing:border-box;background:var(--surface);border:1px solid var(--line);border-radius:7px;color:var(--text);padding:11px 12px;font:inherit}.case-mail-workspace textarea{resize:vertical;min-height:240px;line-height:1.65}.case-mail-workspace :is(input,select,textarea):focus-visible{outline:2px solid var(--green);outline-offset:2px}.case-mail-signature{padding:16px 0;margin:4px 0 14px}.case-mail-prose{font-family:var(--font-document,var(--font-ui));white-space:pre-wrap;overflow-wrap:anywhere;font-size:17px;line-height:1.7;color:var(--ink)}.case-mail-workspace fieldset{margin:16px 0;padding:16px;border:1px solid var(--line);border-radius:7px;min-width:0}.case-mail-workspace legend{padding:0 6px;font-size:12px;color:var(--muted)}.case-mail-workspace .case-mail-check{display:flex;align-items:flex-start;gap:10px;min-height:44px;padding:10px 0;font-weight:400;overflow-wrap:anywhere;box-sizing:border-box}.case-mail-check input{flex:0 0 18px;width:18px;height:18px;margin:3px 0 0;accent-color:var(--green)}.case-mail-check span{min-width:0}.case-mail-check small{display:block;font-size:12px}.case-mail-list{margin-top:28px}.case-mail-status{color:var(--muted);font-size:12px;line-height:1.4;max-width:230px;flex:0 1 auto;padding:5px 0;overflow-wrap:anywhere}.case-mail-message>header>div{min-width:0}.case-mail-message :is(h3,p,dd,a){overflow-wrap:anywhere}.case-mail-message details{margin:12px 0}.case-mail-workspace summary{padding:11px 0;cursor:pointer;font-weight:550;color:var(--text)}.case-mail-message dl{display:grid;grid-template-columns:60px minmax(0,1fr);gap:8px 14px;margin:10px 0 20px}.case-mail-message dt{font-size:12px;color:var(--muted)}.case-mail-message dd{margin:0}.case-mail-message ul{padding:0;list-style:none;margin:12px 0}.case-mail-message li{display:flex;justify-content:space-between;gap:12px;min-height:44px;align-items:center;border-top:1px solid var(--line)}.case-mail-message li a{min-width:0;color:var(--green);padding:10px 0}.case-mail-message li small{white-space:nowrap}.case-mail-message h4{margin-top:20px}.case-mail-review,.case-mail-send{padding:16px 0;border-top:1px solid var(--line)}.case-mail-meta{font-size:12px;margin-top:14px!important}.case-mail-warning,.case-mail-error{padding:14px 16px;border:1px solid var(--line);border-left:3px solid var(--green);background:var(--paper);margin:16px 0;overflow-wrap:anywhere}.case-mail-error{border-left-color:var(--red,#b42318)}.case-mail-empty{padding:24px 0;color:var(--muted)}.case-mail-limits{margin-top:20px;color:var(--muted);font-size:12px}.case-mail-limits li{margin:8px 0}.case-mail-workspace [disabled]{cursor:not-allowed;opacity:.5}@media(max-width:760px){.case-mail-heading,.case-mail-message>header{flex-direction:column;gap:12px}.case-mail-form-grid{grid-template-columns:minmax(0,1fr)}.case-mail-workspace :is(input:not([type=checkbox]),select,textarea){font-size:16px}.case-mail-status{max-width:none}.case-mail-heading .case-mail-actions{width:100%}.case-mail-actions button{flex:1 1 auto}.case-mail-workspace fieldset{padding:12px}.case-mail-prose{font-size:16px}.case-mail-message dl{grid-template-columns:45px minmax(0,1fr);gap:8px}.case-mail-send>.button{width:100%}.case-mail-editor,.case-mail-message{padding:20px 0}}@media(prefers-reduced-motion:reduce){.case-mail-workspace *{scroll-behavior:auto}}

.case-mail-response{margin-top:16px;padding:16px;border:1px solid var(--border,#dfe2da);border-radius:10px;background:var(--surface,#fff);overflow-wrap:anywhere}.case-mail-response>label{display:grid;gap:7px;margin-top:12px}.case-mail-response :is(select,textarea){box-sizing:border-box;width:100%;min-width:0;font:inherit}.case-mail-response fieldset{min-width:0}.case-mail-response summary{cursor:pointer;font-weight:650}.case-mail-response small{display:block}.case-mail-response .case-mail-check{display:flex;align-items:flex-start}.case-mail-response input[type=checkbox]{flex:0 0 auto}

/* calendar-sync.css */
.calendar-sync-workspace{--cal-line:#dfe1e3;color:var(--ink,#161918);min-width:0;max-width:1100px}.calendar-sync-workspace>header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin:12px 0 28px}.calendar-sync-workspace h2{font-size:30px;line-height:1.15;margin:8px 0}.calendar-sync-workspace h3{font-size:20px;margin:0 0 12px}.calendar-sync-workspace p{color:var(--muted,#62666d);line-height:1.55;margin:8px 0}.calendar-sync-eyebrow{font:12px ui-monospace,monospace;letter-spacing:.08em;text-transform:uppercase}.calendar-sync-connection{display:flex;gap:16px;padding:22px 0;border-block:1px solid var(--cal-line)}.calendar-sync-indicator{height:10px;width:10px;flex:0 0 10px;margin-top:6px;background:#858b92}.calendar-sync-indicator.ready{background:#c8e736}.calendar-sync-panel{padding:26px 0;border-bottom:1px solid var(--cal-line)}.calendar-sync-panel dl{display:flex;flex-wrap:wrap;gap:24px;margin:22px 0}.calendar-sync-panel dt{font-size:12px;color:#666}.calendar-sync-panel dd{margin:6px 0;overflow-wrap:anywhere}.calendar-sync-record{padding:20px 0;border-top:1px solid var(--cal-line)}.calendar-sync-request{margin-top:16px;padding:16px;border-left:3px solid #c8e736;background:#f6f7f5}.calendar-sync-confirm{display:flex;align-items:flex-start;gap:12px;line-height:1.5;margin:16px 0;max-width:75ch}.calendar-sync-confirm input{flex:0 0 18px;width:18px;height:18px;margin-top:3px;accent-color:#222}.calendar-sync-warning{padding:18px;background:#fff6df;border:1px solid #dac892;overflow-wrap:anywhere}.calendar-sync-note{margin-top:22px;padding:20px;background:#f4f5f3}.calendar-sync-workspace .button{min-height:44px;white-space:normal;margin:4px 8px 4px 0;max-width:100%}.calendar-sync-workspace a{color:inherit;text-underline-offset:4px}.calendar-sync-workspace button:focus-visible,.calendar-sync-workspace input:focus-visible{outline:2px solid #30382a;outline-offset:4px}@media(max-width:640px){.calendar-sync-workspace>header{flex-direction:column;gap:8px}.calendar-sync-workspace h2{font-size:26px}.calendar-sync-workspace .button{width:100%;margin:6px 0}.calendar-sync-panel dl{display:block}.calendar-sync-panel dl>div+div{margin-top:16px}.calendar-sync-connection{padding:18px 0}.calendar-sync-record strong{overflow-wrap:anywhere}}

/* onboarding.css */
/* Personal learning path and workspace overview. */
.welcome-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 28px}.welcome-heading>div{min-width:0}.welcome-heading h1{font:750 30px/1.3 var(--font-ui);letter-spacing:-.8px;margin:8px 0}.welcome-heading p{color:var(--muted);font-size:13px;line-height:1.7}
.guide-layout{display:grid;grid-template-columns:250px minmax(0,1fr);border:1px solid var(--line);border-radius:8px;background:var(--surface);overflow:hidden}.guide-rail{padding:26px 18px;background:#fafbfd;border-right:1px solid var(--line)}.guide-rail-heading{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:0 8px}.guide-rail-heading>span:first-child{font-size:11px;letter-spacing:.02em;color:var(--muted);font-weight:650}.guide-rail-heading>strong{margin-left:auto;color:var(--ink);font:700 18px var(--font-ui)}.guide-rail-heading strong small{font:500 13px var(--font-ui);color:var(--muted)}.guide-progress-caption{font-size:11px;color:var(--muted);flex-basis:100%}.guide-progress{height:3px;background:#e4eaf3;margin:15px 8px 22px;border-radius:2px;overflow:hidden}.guide-progress>span{display:block;height:100%;background:var(--green)}.guide-progress-0{width:0}.guide-progress-1{width:20%}.guide-progress-2{width:40%}.guide-progress-3{width:60%}.guide-progress-4{width:80%}.guide-progress-5{width:100%}
.guide-step{display:flex;width:100%;min-height:54px;align-items:center;gap:11px;padding:10px;text-align:left;border:1px solid transparent;border-radius:6px;color:var(--muted);margin:4px 0}.guide-step>span{width:27px;height:27px;display:grid;place-items:center;border:1px solid #cdd7e5;border-radius:6px;font-size:11px;flex-shrink:0;background:white}.guide-step strong{font-size:12px;font-weight:600;flex:1}.guide-step>svg{opacity:0}.guide-step:hover{background:#f0f4fa}.guide-step.selected{color:var(--green);background:var(--green-soft)}.guide-step.selected>span{color:white;background:var(--green);border-color:var(--green)}.guide-step.selected>svg{opacity:1}.guide-step.seen:not(.selected)>span{color:#2e7447;border-color:#bfdbc9;background:#f0f8f3}.guide-rail-note{font-size:12px;line-height:1.7;color:var(--muted);margin:28px 8px 0}
.guide-body{min-width:0;padding:36px 40px 26px;display:flex;flex-direction:column}.guide-topline{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:11px;letter-spacing:.03em;font-weight:600}.guide-section-symbol{display:grid;place-items:center;width:36px;height:36px;border:1px solid #dbe5f5;border-radius:7px;background:#f5f8fe;color:var(--green)}.guide-body h2{font:700 26px/1.35 var(--font-ui);letter-spacing:-.6px;margin:23px 0 13px;white-space:pre-line}.guide-intro{font-size:13px;line-height:1.85;color:var(--muted);max-width:620px}.guide-instructions{display:grid;list-style:none;padding:0;margin:25px 0;gap:0}.guide-instructions li{display:flex;gap:14px;align-items:flex-start;padding:15px 0;border-top:1px solid #edf0f4}.guide-instructions li>span{color:#8593a8;font-size:11px;min-width:17px;margin-top:3px}.guide-instructions p{font-size:13px;line-height:1.8}.guide-open{display:flex;align-items:center;gap:18px;justify-content:space-between;min-height:46px;width:fit-content;max-width:100%;border:1px solid #cdd9ec;color:var(--green);font-size:13px;padding:12px 16px;border-radius:6px;margin:0 0 30px}.guide-open:hover{background:var(--green-soft)}.guide-bottom{margin-top:auto;padding-top:22px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:18px}.guide-bottom>span{font-size:11px;color:var(--muted);line-height:1.7;max-width:210px}.guide-error{font-size:13px;line-height:1.75;padding:15px;background:var(--amber-soft);color:var(--amber);border-radius:6px;margin-bottom:20px}.guide-complete{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:24px;background:#eef5ff;border:1px solid #ccdcf5;border-radius:8px;margin-top:22px}.guide-complete h2{font:700 18px/1.5 var(--font-ui);margin-bottom:6px}.guide-complete p{font-size:13px;color:var(--muted);line-height:1.8}.office-sidebar-bottom{display:flex;align-items:center}.office-person-mark{display:grid;place-items:center}
.workspace-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:start}.workspace-grid>*{min-width:0}.workspace-cases{background:var(--surface);border:1px solid var(--line);border-radius:8px;overflow:hidden}.workspace-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 22px;border-bottom:1px solid var(--line)}.workspace-section-head h2{display:flex;align-items:center;gap:10px;font:700 14px var(--font-ui);margin:0}.workspace-count{padding:2px 7px;background:#f0f3f7;color:var(--muted);border:1px solid #e1e7ef;border-radius:5px;font-size:11px}.workspace-aside{display:grid;gap:22px}.workspace-help{padding:22px;background:var(--surface);border:1px solid var(--line);border-radius:8px}.workspace-help h2{font:700 14px/1.5 var(--font-ui);margin:0 0 9px}.workspace-help p{color:var(--muted);font-size:12px;line-height:1.8}.workspace-help .guide-progress{margin:18px 0}.workspace-help .button{margin-top:18px}.workspace-links{margin-top:16px}.workspace-links a{display:flex;align-items:center;gap:12px;font-size:13px;min-height:48px;border-top:1px solid var(--line)}.workspace-links a>svg:last-child{margin-left:auto;color:var(--muted)}.workspace-links a:hover{color:var(--green)}
.office-empty{padding:70px 28px;display:flex;align-items:center;text-align:center;flex-direction:column;background:var(--surface)}.office-empty-mark{display:grid;place-items:center;width:52px;height:52px;border:1px solid #d9e2f0;background:#f4f7fd;color:#7183a2;border-radius:9px;margin-bottom:21px}.office-empty .eyebrow{display:none}.office-empty h2{font:700 19px/1.4 var(--font-ui);letter-spacing:-.3px;margin:0 0 10px}.office-empty p{color:var(--muted);font-size:13px;line-height:1.8;max-width:390px}.office-empty>div:last-child{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:24px}.office-case-list>a{display:flex;align-items:center;gap:16px;padding:20px 22px;border-top:1px solid var(--line);min-height:90px}.office-case-list>a:first-child{border-top:0}.office-case-list>a>div{min-width:0;flex:1}.office-case-list strong{display:block;font-size:13px;font-weight:650;color:var(--ink);overflow-wrap:anywhere}.office-case-list small{display:block;font-size:12px;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}.office-case-list>a>span{padding:10px;background:#f4f7fb;border:1px solid #e0e6ef;border-radius:7px;color:#647999}.office-case-list>a:hover{background:#f7faff}
.session-verifying{visibility:hidden!important}.session-cover{position:fixed;inset:0;z-index:500;display:grid;align-content:center;justify-items:center;gap:22px;text-align:center}
@media(max-width:1180px){.workspace-grid{grid-template-columns:minmax(0,1fr)}.workspace-aside{grid-template-columns:repeat(2,minmax(0,1fr))}.guide-layout{grid-template-columns:220px minmax(0,1fr)}.guide-body{padding:28px}}
@media(max-width:700px){.welcome-heading{align-items:flex-start;flex-direction:column;gap:15px;margin-bottom:22px}.welcome-heading h1{font-size:25px}.guide-layout{display:block}.guide-rail{padding:20px 16px;border-right:0;border-bottom:1px solid var(--line)}.guide-rail-heading{padding:0;flex-wrap:nowrap}.guide-progress-caption,.guide-rail-note{display:none}.guide-progress{margin:14px 0}.guide-step{display:inline-flex;width:calc(50% - 4px);vertical-align:top;margin:2px 2px 2px 0;padding:7px;min-height:48px;gap:7px}.guide-step strong{font-size:11px}.guide-step>svg{display:none}.guide-body{padding:24px 20px}.guide-body h2{font-size:23px}.guide-bottom{flex-direction:column-reverse;align-items:stretch;gap:14px}.guide-bottom>span{max-width:none;text-align:center}.guide-open{width:100%}.guide-complete{align-items:stretch;flex-direction:column;padding:20px}.workspace-aside{grid-template-columns:minmax(0,1fr);gap:16px}.workspace-grid{gap:18px}.workspace-section-head{padding:17px 18px}.workspace-help{padding:20px}.office-empty{padding:38px 20px}.office-case-list>a{padding:18px;gap:12px}}

/* design-system.css */
/* Kanzlei workspace — shared interface foundation. Document text keeps its own typography. */
:root {
  --font-ui: Manrope, sans-serif;
  --font-document: Newsreader, Georgia, serif;
  --paper: #f5f6f8;
  --surface: #ffffff;
  --ink: #18212f;
  --text: #344054;
  --muted: #626e80;
  --line: #dce1e8;
  --green: #245be6;
  --green-soft: #edf3ff;
  --amber: #925600;
  --amber-soft: #fff6e5;
  --red: #b52c38;
  --red-soft: #fff0f1;
  --sidebar: #ffffff;
  --sidebar-text: #556176;
  --radius: 8px;
  --side-width: 224px;
  --shadow: none;
  font: 14px/1.5 var(--font-ui);
  color: var(--text);
  background: var(--paper);
}
html { scroll-padding-top: 92px; }
body { min-width: 320px; }
body.dialog-open, body.navigation-open { overflow: hidden; }
[hidden] { display: none !important; }
button, input, select, textarea { font-family: var(--font-ui); }
button, a, input, select, textarea, summary { outline-offset: 3px; }
:is(button, a, input, select, textarea, summary):focus-visible { outline: 2px solid var(--green); }
::selection { background: #cfddff; color: #102e7f; }
button:disabled { opacity: .55; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); overflow-wrap: anywhere; }
img, video { max-width: 100%; }
pre { max-width: 100%; }
fieldset { min-width: 0; }
code { overflow-wrap: anywhere; }
.sidebar {
  width: var(--side-width); padding: 24px 12px 16px;
  border-right: 1px solid var(--line); background: var(--surface);
  height: 100dvh; overflow-y: auto; overscroll-behavior: contain;
}
.brand { margin: 0 8px 32px; padding: 0; gap: 11px; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; border: 0; border-radius: 8px; background: var(--green); color: white; font: 700 23px/1 var(--font-ui); box-shadow: none; }
.brand-title { font: 750 19px/1.2 var(--font-ui); letter-spacing: -.7px; }
.brand-subtitle { color: var(--muted); font-size: 10px; letter-spacing: .1px; text-transform: none; margin-top: 3px; }
.nav-group-label { font-size: 11px; color: #687488; letter-spacing: .03em; font-weight: 600; text-transform: none; padding: 0 12px; margin-bottom: 8px; }
.nav-group + .nav-group { margin-top: 26px; }
.nav-link { min-height: 44px; padding: 10px 12px; margin: 2px 0; border-radius: 6px; font-size: 13px; gap: 11px; color: var(--sidebar-text); }
.nav-link span:not(.nav-count) { min-width: 0; overflow-wrap: anywhere; }
.nav-link:hover { background: #f4f6f9; color: var(--ink); }
.nav-link.active { background: var(--green-soft); color: #194dce; box-shadow: none; font-weight: 700; }
.nav-link.active svg { color: #245be6; }
.nav-count { color: #405271; background: #e8edf4; font-size: 11px; }
.sidebar-bottom { padding: 22px 8px 0; }
.office-sidebar-bottom { margin-top: auto; padding-top: 18px; border-color: var(--line); gap: 10px; }
.office-sidebar-bottom > div { min-width: 0; }
.office-sidebar-bottom strong { display: block; color: var(--ink); font-size: 12px; overflow-wrap: anywhere; }
.office-sidebar-bottom small { color: var(--muted); font-size: 11px; line-height: 1.5; margin-top: 3px; }
.office-person-mark, .avatar { width: 34px; height: 34px; flex-shrink: 0; background: #eef1f6; color: #3d4d65; border: 1px solid #dce1e8; border-radius: 8px; font: 650 13px var(--font-ui); }
.provider-mini { border-color: var(--line); }
.provider-mini strong { color: var(--ink); font-size: 12px; }
.provider-mini small, .environment { color: var(--muted); font-size: 11px; }
.provider-symbol { color: var(--green); border-color: var(--line); }
.main { margin-left: var(--side-width); min-width: 0; min-height: 100dvh; }
.topbar { position: sticky; top: 0; z-index: 20; height: 64px; padding: 0 32px; background: var(--surface); border-color: var(--line); gap: 20px; }
.breadcrumbs { min-width: 0; font-size: 12px; color: var(--muted); gap: 10px; }
.breadcrumbs strong { font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.topbar-actions { gap: 16px; min-width: 0; }
.search-trigger { color: var(--muted); border: 1px solid var(--line); background: #fafbfd; border-radius: 6px; padding: 0 12px; min-height: 38px; min-width: 210px; font-size: 12px; gap: 9px; }
.search-trigger:hover { border-color: #9cadc6; background: var(--surface); }
.key-hint { color: #7b8595; font-size: 10px; background: var(--surface); margin-left: auto; border-color: #dce1e8; }
.connection-indicator { color: var(--muted); font-size: 11px; padding-left: 0; border: 0; }
.page { padding: 32px; max-width: 1680px; animation: none; }
.page-heading { gap: 20px; align-items: center; margin-bottom: 28px; }
.page-heading > div:first-child { min-width: 0; }
.page-heading .eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: none; margin-bottom: 8px; color: var(--muted); }
.display { font: 750 clamp(25px,2.4vw,32px)/1.25 var(--font-ui); color: var(--ink); letter-spacing: -.9px; }
.lead { font-size: 13px; line-height: 1.75; max-width: 750px; margin-top: 9px; }
.eyebrow, .section-label { color: var(--muted); font-size: 11px; letter-spacing: .03em; }
.heading-actions { flex-wrap: wrap; justify-content: flex-end; min-width: 0; }
.button { min-height: 40px; max-width: 100%; padding: 9px 15px; border-radius: 6px; font-size: 13px; line-height: 1.4; font-weight: 650; white-space: normal; text-align: center; box-shadow: none; }
.button.primary { background: var(--green); border-color: var(--green); color: white; box-shadow: none; }
.button.primary:hover { background: #164ace; border-color: #164ace; }
.button.secondary { color: var(--text); border-color: #cfd6e0; background: white; }
.button.secondary:hover { color: var(--ink); background: #f5f7fb; border-color: #aebbcf; }
.button.ghost { color: #385076; min-height: 40px; padding: 8px 10px; }
.button.ghost:hover { background: #edf3ff; color: #194dce; }
.button.small { min-height: 36px; font-size: 12px; padding: 7px 11px; }
.button.danger { color: var(--red); border-color: #f0c9ce; background: var(--red-soft); }
.button svg { width: 16px; height: 16px; }
.icon-button { width: 40px; height: 40px; border-color: var(--line); border-radius: 6px; }
.panel, .metric-card, .document-card, .case-card, .workflow-card { box-shadow: none; border-color: var(--line); border-radius: 8px; }
.panel-header { padding: 19px 22px; flex-wrap: wrap; align-items: center; }
.panel-title { font-size: 14px; letter-spacing: -.15px; font-weight: 700; }
.panel-description { font-size: 12px; line-height: 1.7; color: var(--muted); }
.panel-body { padding: 0 22px 22px; }
.panel-footer { font-size: 12px; color: var(--muted); flex-wrap: wrap; padding: 12px 22px; border-color: var(--line); }
.badge { font-size: 11px; font-weight: 600; line-height: 1.5; padding: 4px 8px; border-radius: 5px; white-space: normal; overflow-wrap: anywhere; }
.badge.neutral { color: #536179; background: #eff2f6; }
.badge.good { color: #24633b; background: #edf7f0; }
.badge.warning { color: var(--amber); background: var(--amber-soft); }
.badge.bad { color: var(--red); background: var(--red-soft); }
.dot { background: #7b8798; }
.dot.good { background: #388557; }
.dot.warning { background: #ad701d; }
.dot.bad { background: #c44550; }
.review-callout { color: #80521a; background: #fff8ed; border-color: #ebd6b4; font-size: 12px; line-height: 1.7; border-radius: 6px; }
.review-callout strong { color: #73470f; }
.review-callout svg { color: #ad772e; }
.input, .select, .textarea { min-height: 42px; padding: 10px 12px; font-size: 14px; color: var(--ink); background: var(--surface); border: 1px solid #c9d2df; border-radius: 6px; min-width: 0; max-width: 100%; }
.textarea { line-height: 1.75; }
.input::placeholder, .textarea::placeholder { color: #758297; }
.field-label { color: #3b4960; font-size: 12px; line-height: 1.5; }
.field-help { color: var(--muted); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.searchbox { max-width: 420px; min-width: 0; }
.searchbox > svg { top: 13px; color: #7b889a; }
.filters { flex-wrap: wrap; align-items: center; }
.tabs { gap: 24px; border-color: var(--line); scrollbar-width: thin; overscroll-behavior-inline: contain; }
.tab { min-height: 44px; font-size: 13px; padding: 12px 1px; color: var(--muted); }
.tab.active { color: var(--green); border-color: var(--green); }
.table-row { font-size: 12px; min-height: 72px; gap: 16px; padding: 13px 22px; border-color: var(--line); }
.table-row.header { min-height: 40px; color: var(--muted); background: #f8f9fb; font-size: 11px; letter-spacing: .01em; text-transform: none; }
.table-row:not(.header):hover { background: #f6f9ff; }
.table-row > *, .cell-title > div { min-width: 0; overflow-wrap: anywhere; }
.cell-title { font-size: 13px; color: var(--ink); }
.cell-subtitle, .subtle { font-size: 12px; color: var(--muted); }
.case-monogram { border: 1px solid var(--line); background: #f3f6fa; color: #4b5f7e; font: 650 12px var(--font-ui); }
.status-number, .metric-value, .operation-stat strong { font-family: var(--font-ui); font-weight: 700; color: var(--ink); letter-spacing: -1px; }
.status-strip { border-color: var(--line); }
.status-item { border-color: var(--line); }
.status-label, .metric-label { font-size: 12px; color: var(--text); }
.status-note, .metric-description, .metric-empty { font-size: 12px; color: var(--muted); }
.metric-card { min-height: 210px; padding: 22px; }
.metric-label { min-height: 0; }
.metric-value { margin-top: 20px; font-size: 30px; }
.overview-grid { grid-template-columns: minmax(0,1.65fr) minmax(290px,1fr); gap: 24px; }
.stack { gap: 24px; }
.empty-state { padding: 48px 24px; }
.empty-state h3 { font: 700 18px/1.45 var(--font-ui); color: var(--ink); }
.empty-state p { color: var(--muted); font-size: 13px; line-height: 1.75; max-width: 470px; }
.empty-icon { background: #f0f4fa; color: #687c9d; border-color: var(--line); border-radius: 9px; }
.bottom-note { color: var(--muted); font-size: 11px; line-height: 1.6; margin-top: 32px; border-top: 1px solid var(--line); padding-top: 18px; gap: 14px; }
.modal-backdrop { padding: 32px; background: #13233d66; backdrop-filter: none; display: flex; align-items: center; justify-content: center; overflow-y: auto; }
.modal { width: min(620px,100%); max-height: calc(100dvh - 64px); display: flex; flex-direction: column; border: 1px solid #d8e0ec; border-radius: 12px; box-shadow: 0 20px 70px #12233e25; background: var(--surface); min-width: 0; }
.modal.wide { width: min(1060px,100%); }
.modal-header { flex-shrink: 0; padding: 23px 26px 20px; gap: 18px; border-color: var(--line); align-items: flex-start; }
.modal-header > div { min-width: 0; }
.modal-header h2 { font: 700 21px/1.4 var(--font-ui); letter-spacing: -.5px; color: var(--ink); overflow-wrap: anywhere; }
.modal-header p { font-size: 12px; line-height: 1.7; color: var(--muted); }
.modal-header .icon-button { flex-shrink: 0; }
.modal-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px 26px; }
.modal-actions { margin-top: auto; flex-shrink: 0; padding: 17px 26px; gap: 10px; background: #f8fafc; border-color: var(--line); flex-wrap: wrap; }
.modal-actions > .button { min-height: 42px; }
.toast { color: var(--text); font-size: 13px; border: 1px solid var(--line); background: white; border-radius: 8px; box-shadow: 0 8px 30px #18212f18; max-width: min(500px,calc(100vw - 32px)); overflow-wrap: anywhere; }
.toast.error { color: var(--red); background: #fff8f8; border-color: #e8b4bb; }
.initial-mark { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-inline: auto; border-radius: 10px; background: var(--green); color: white; font: 700 30px var(--font-ui); }
.initial-loading { font-size: 13px; }
.session-cover { background: var(--paper); }
.mobile-nav-close { display: none; }
/* Actual legal documents retain a quiet reading face rather than UI typography. */
.document-body, .contract-paper { font-family: var(--font-document); }
.document-body h1, .document-body h2, .document-body h3 { font-family: var(--font-document); }
@media (min-width: 1600px) { :root { --side-width: 240px; } .page { padding: 40px 48px; } .topbar { padding-inline: 48px; } }
@media (max-width: 1180px) { .overview-grid { grid-template-columns: minmax(0,1fr); } .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .page { padding: 28px; } .topbar { padding-inline: 28px; } .search-trigger { min-width: 170px; } }
@media (min-width: 961px) { .sidebar { transform: none; visibility: visible; } .mobile-overlay { display: none !important; } .mobile-menu { display: none; } }
@media (max-width: 960px) {
  :root { --side-width: 264px; }
  .sidebar { transform: translateX(-100%); visibility: hidden; transition: transform .18s ease, visibility .18s; z-index: 60; padding-top: 24px; }
  .sidebar.open { transform: translateX(0); visibility: visible; box-shadow: 10px 0 40px #18212f18; }
  .sidebar .brand { padding-right: 32px; }
  .mobile-nav-close { display: grid; position: absolute; right: 13px; top: 20px; border: 0; background: transparent; }
  .mobile-overlay.open { backdrop-filter: none; display: block; position: fixed; inset: 0; background: #13233d66; z-index: 50; }
  .mobile-menu { display: inline-grid; flex-shrink: 0; }
  .main { margin-left: 0; }
  .topbar { padding: 0 24px; gap: 14px; }
  .breadcrumbs { flex: 1; }
  .crumb-brand { display: none; }
  .page { padding: 28px 24px; }
  .nav-link { min-height: 46px; font-size: 14px; }
  .skip-link { left: 12px; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 76px; }
  .topbar { height: 62px; padding: 0 16px; gap: 8px; }
  .breadcrumbs { font-size: 12px; }
  .topbar-actions { gap: 4px; }
  .search-trigger { width: 44px; height: 44px; min-width: 44px; padding: 0; justify-content: center; border: 0; background: none; }
  .search-trigger > span, .key-hint, .connection-indicator { display: none; }
  .topbar-actions .button { font-size: 12px; padding-inline: 8px; }
  .page { padding: 24px 16px; }
  .page-heading { flex-direction: column; align-items: stretch; gap: 18px; margin-bottom: 22px; }
  .heading-actions { justify-content: flex-start; padding: 0; }
  .display { font-size: 26px; line-height: 1.3; letter-spacing: -.7px; }
  .lead { font-size: 13px; }
  .button, .button.small, .button.ghost, .icon-button { min-height: 44px; }
  .icon-button { width: 44px; height: 44px; }
  .button { font-size: 13px; }
  .input, .select, .textarea, .modal input:not([type=checkbox]):not([type=radio]), .modal textarea, .modal select { font-size: 16px; min-height: 44px; }
  .filters { align-items: stretch; gap: 10px; }
  .filters > .searchbox, .filters > .select { width: 100%; max-width: none; flex-basis: 100%; }
  .panel-header, .panel-body { padding: 18px; }
  .panel-footer { padding: 12px 18px; }
  .metric-grid, .document-grid { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .metric-card { min-height: 0; padding: 20px; }
  .metric-description { margin-top: 12px; }
  .tabs { gap: 20px; margin-bottom: 20px; }
  .table-row { padding: 14px 16px; gap: 12px; }
  .table-row .case-file-count { display: none; }
  .table-row { grid-template-columns: minmax(0,1fr) minmax(90px,.7fr) 20px; }
  .table-row .cell-title { gap: 8px; }
  .cell-title { font-size: 12px; }
  .status-strip { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 0; }
  .status-item { padding: 0 14px; }
  .status-item:nth-child(odd) { padding-left: 0; }
  .status-item:nth-child(even) { border-right: 0; }
  .status-number { font-size: 27px; }
  .status-arrow { display: none; }
  .review-callout { padding: 13px 14px; }
  .modal-backdrop { padding: 10px; align-items: center; }
  .modal, .modal.wide { max-height: calc(100dvh - 20px); border-radius: 10px; width: 100%; }
  .modal-header { padding: 18px; gap: 12px; }
  .modal-header h2 { font-size: 19px; }
  .modal-body { padding: 18px; }
  .modal-actions { padding: 14px 18px max(14px,env(safe-area-inset-bottom)); gap: 8px; }
  .modal-actions > .button { flex: 1 1 auto; }
  .bottom-note { align-items: flex-start; flex-direction: column; margin-top: 24px; }
  .empty-state { padding: 32px 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }

/* leitstand.css */
/* Approved mockup 04 — LEITSTAND.
   Include after design-system.css. The authenticated workspace owns this scope;
   legacy development views and stored document typography remain untouched. */
#app.office-app {
  --paper: #ffffff;
  --surface: #ffffff;
  --ink: #111e40;
  --text: #253858;
  --muted: #60708e;
  --line: #e1e7f0;
  --green: #0052ec;
  --green-soft: #edf4ff;
  --font-ui: Manrope, sans-serif;
  --font-document: Newsreader, Georgia, serif;
  --office-gutter: 32px;
  min-width: 0;
  min-height: 100dvh;
  color: var(--text);
  background: var(--surface);
  font: 400 14px/1.55 var(--font-ui);
}
#app.office-app *, #app.office-app *::before, #app.office-app *::after { box-sizing: border-box; }
#app.office-app .office-main { min-width: 0; min-height: 100dvh; margin-left: 0; background: var(--surface); }
#app.office-app .page.office-page { max-width: none; min-width: 0; margin: 0; padding: 32px; animation: none; }
#app.office-app .office-page:has(> .day-workspace) { padding: 0; }
#app.office-app .office-page:has(> .day-workspace) > .bottom-note { margin: 0; padding: 18px var(--office-gutter); }
#app.office-app :is(button, a, input, select, textarea, summary):focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
#app.office-app :is(button, a) { touch-action: manipulation; }
#app.office-app .button { min-height: 44px; font-family: var(--font-ui); }
#app.office-app .button.primary { color: #fff; background: var(--green); border-color: var(--green); }
#app.office-app .button.primary:hover:not(:disabled) { background: #0046c9; border-color: #0046c9; }
#app.office-app .office-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 76px;
  padding: 0 var(--office-gutter);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
#app.office-app .office-brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; min-height: 44px; padding: 0; margin: 0; color: var(--ink); }
#app.office-app .office-brand .brand-symbol { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 32px; color: var(--green); }
#app.office-app .office-brand .brand-symbol svg { display: block; width: 28px; height: 32px; }
#app.office-app .office-brand .brand-title { color: var(--ink); font: 700 22px/1.2 var(--font-ui); letter-spacing: -.65px; }
#app.office-app .office-primary-nav { display: flex; align-self: stretch; align-items: stretch; gap: 24px; min-width: 0; margin-left: 26px; }
#app.office-app .office-primary-nav a { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 3px; color: var(--text); font-size: 13px; font-weight: 500; white-space: nowrap; }
#app.office-app .office-primary-nav a:hover { color: var(--green); }
#app.office-app .office-primary-nav a.active { color: var(--green); font-weight: 700; }
#app.office-app .office-primary-nav a.active::after { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: var(--green); content: ''; }
#app.office-app .office-header-actions { display: flex; align-items: center; gap: 20px; min-width: 0; margin-left: auto; }
#app.office-app .office-header-actions .search-trigger { display: inline-flex; align-items: center; gap: 9px; width: clamp(180px, 18vw, 300px); min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #dce5f3; border-radius: 6px; background: #f5f8fd; color: var(--muted); font-size: 12px; white-space: nowrap; }
#app.office-app .office-header-actions .search-trigger > span:not(.key-hint) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#app.office-app .office-header-actions .search-trigger:hover { border-color: #a8bde2; background: #edf4ff; }
#app.office-app .office-header-actions .search-trigger .key-hint { display: none; }
#app.office-app .office-profile.mobile-menu { display: inline-flex; flex: 0 1 auto; align-items: center; justify-content: center; gap: 9px; min-width: 44px; min-height: 44px; max-width: 220px; margin: 0; padding: 4px 0 4px 4px; border: 0; border-radius: 6px; background: transparent; color: var(--text); font: 500 12px/1.5 var(--font-ui); }
#app.office-app .office-profile:hover { background: #f5f8fd; }
#app.office-app .office-profile .avatar { display: inline-grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border: 1px solid #2a4777; border-radius: 50%; background: #304d7e; color: #fff; font: 600 12px/1 var(--font-ui); }
#app.office-app .office-profile > span:not(.avatar) { min-width: 0; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#app.office-app .office-profile > svg { width: 14px; height: 14px; color: var(--muted); }
/* Selected revision: persistent navigation above 960px, drawer below it.
   JS owns inert, focus trapping, expanded state and closing on navigation. */
#app.office-app .sidebar.office-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
  display: flex;
  width: min(320px, calc(100vw - 32px));
  height: 100dvh;
  padding: 28px 18px 20px;
  border-right: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-100%);
  transition: transform .18s ease, visibility .18s ease;
}
#app.office-app .sidebar.office-drawer.open { visibility: visible; pointer-events: auto; transform: translateX(0); box-shadow: 12px 0 44px #10213f24; }
#app.office-app .office-drawer .brand { padding-right: 40px; margin-bottom: 28px; }
#app.office-app .office-drawer > .office-brand { align-self: flex-start; padding-right: 40px; margin-bottom: 28px; }
#app.office-app .office-drawer .mobile-nav-close { position: absolute; top: 22px; right: 12px; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid transparent; border-radius: 6px; background: #fff; color: var(--muted); }
#app.office-app .office-drawer .mobile-nav-close:hover { border-color: var(--line); background: #f5f8fd; }
#app.office-app .office-drawer .nav-link { min-height: 48px; font-size: 14px; }
#app.office-app .office-drawer .nav-link.active { color: var(--green); background: var(--green-soft); }
#app.office-app .office-drawer .nav-link.active svg { color: var(--green); }
#app.office-app .office-drawer .search-trigger {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: auto;
  min-height: 48px;
  margin: 0;
  padding: 10px 12px;
  border-color: transparent;
  background: transparent;
  color: var(--text);
  font: 500 14px/1.5 var(--font-ui);
  white-space: normal;
  text-align: left;
}
#app.office-app .office-drawer .search-trigger:hover { border-color: transparent; background: #f5f8fd; color: var(--green); }
#app.office-app .office-drawer .search-trigger > span:not(.key-hint) { display: inline; }
#app.office-app .office-drawer .office-sidebar-bottom { padding-top: 18px; border-top: 1px solid var(--line); }
#app.office-app .office-drawer .office-sidebar-bottom :is(strong, small) { font-size: 12px; }
#app.office-app > .mobile-overlay { display: none; }
/* design-system.css hides this overlay with !important on desktop. */
#app.office-app > .mobile-overlay.open { position: fixed; inset: 0; z-index: 90; display: block !important; background: #12244866; backdrop-filter: none; }
#app.office-app .office-bottom-nav { display: none; }
@media (min-width: 961px) {
  #app.office-app .office-main { margin-left: 224px; }
  #app.office-app .sidebar.office-drawer,
  #app.office-app .sidebar.office-drawer.open {
    width: 224px;
    padding: 28px 12px 20px;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
    box-shadow: none;
    z-index: 40;
  }
  #app.office-app .office-drawer > .office-brand { padding-right: 0; margin: 0 10px 30px; }
  #app.office-app .office-drawer .mobile-nav-close { display: none; }
  #app.office-app > .mobile-overlay.open { display: none !important; }
}
#app.office-app .day-workspace { min-width: 0; background: #fff; }
#app.office-app .day-hero { display: flex; align-items: center; justify-content: space-between; gap: 28px 40px; min-height: 150px; padding: 24px var(--office-gutter); background: var(--green); color: #fff; }
#app.office-app .day-heading { min-width: 0; }
#app.office-app .day-date { margin: 0 0 8px; color: #fff; font-size: 12px; font-weight: 700; line-height: 1.5; letter-spacing: .045em; text-transform: uppercase; }
#app.office-app .day-heading h1 { margin: 0; color: #fff; font: 700 clamp(28px, 2.8vw, 36px)/1.25 var(--font-ui); letter-spacing: -.7px; overflow-wrap: anywhere; }
#app.office-app .day-heading > p { margin: 7px 0 0; color: #fff; font-size: 14px; font-weight: 400; line-height: 1.6; }
#app.office-app .day-hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; flex: 0 1 auto; }
#app.office-app .day-hero-actions .button { min-height: 50px; padding: 12px 20px; border: 1px solid #fff; border-radius: 6px; font: 700 14px/1.5 var(--font-ui); white-space: normal; }
#app.office-app .day-hero-actions .day-create { min-width: 176px; color: var(--green); background: #fff; }
#app.office-app .day-hero-actions .day-create:hover { color: #0046c9; border-color: #e4edff; background: #edf4ff; }
#app.office-app .day-hero-actions .day-guide { min-width: 144px; color: #fff; background: transparent; }
#app.office-app .day-hero-actions .day-guide:hover { background: #0046c9; }
#app.office-app .day-hero-actions svg { width: 20px; height: 20px; }
#app.office-app .day-hero-actions :focus-visible { outline-color: #fff; outline-offset: 4px; }
#app.office-app .day-tabs { display: none; }
#app.office-app .day-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; border-bottom: 1px solid var(--line); }
#app.office-app .day-column { display: block; min-width: 0; padding: 24px 28px 28px; }
#app.office-app .day-column:first-child { padding-left: var(--office-gutter); }
#app.office-app .day-column:last-child { padding-right: var(--office-gutter); }
#app.office-app .day-column + .day-column { border-left: 1px solid var(--line); }
#app.office-app .day-section-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 44px; margin: 0 0 12px; }
#app.office-app .day-section-header h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; margin: 0; color: var(--ink); font: 700 20px/1.4 var(--font-ui); letter-spacing: -.45px; }
#app.office-app .day-count { display: inline-grid; place-items: center; min-width: 26px; min-height: 27px; padding: 2px 7px; border-radius: 5px; background: #edf2f9; color: var(--ink); font: 600 13px/1.4 var(--font-ui); font-variant-numeric: tabular-nums; letter-spacing: 0; }
#app.office-app .day-section-header > a { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 44px; max-width: 100%; color: var(--green); font-size: 12px; font-weight: 500; line-height: 1.5; }
#app.office-app .day-section-header > a:hover { text-decoration: underline; text-underline-offset: 3px; }
#app.office-app .day-section-header > a svg { width: 14px; height: 14px; }
#app.office-app .day-list, #app.office-app .day-schedule { min-width: 0; margin: 0; padding: 0; list-style: none; }
#app.office-app .day-task { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 100px; padding: 18px 10px 18px 12px; border-top: 1px solid var(--line); color: var(--text); }
#app.office-app .day-list > .day-task:first-child { border-top-color: transparent; border-left: 3px solid var(--green); padding-left: 9px; border-radius: 2px; background: #edf4ff; }
#app.office-app .day-task:hover { background: #f5f8fd; }
#app.office-app .day-list > .day-task:first-child:hover { background: #e6efff; }
#app.office-app .day-task-icon { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 30px; color: #567097; }
#app.office-app .day-task-icon svg { width: 22px; height: 22px; }
#app.office-app .day-list > .day-task:first-child .day-task-icon { color: var(--green); }
#app.office-app .day-task-copy { display: block; min-width: 0; }
#app.office-app .day-task-copy > small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; line-height: 1.5; text-transform: uppercase; letter-spacing: .015em; }
#app.office-app .day-task-copy > strong { display: block; color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
#app.office-app .day-task-copy > span { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
#app.office-app .day-task-status { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 5px; max-width: 86px; color: var(--muted); font-size: 12px; line-height: 1.5; text-align: right; overflow-wrap: anywhere; }
#app.office-app .day-task-status :is(.dot, svg) { flex-shrink: 0; }
#app.office-app .day-case { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto 18px; align-items: center; gap: 12px; min-height: 92px; padding: 17px 0; border-top: 1px solid var(--line); color: var(--text); }
#app.office-app .day-case:hover { background: #f7faff; }
#app.office-app .day-case-number { align-self: start; padding-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.6; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#app.office-app .day-case-copy { min-width: 0; }
#app.office-app .day-case-copy > strong { display: block; color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
#app.office-app .day-case-copy > span { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
#app.office-app .day-case > .badge { justify-self: end; max-width: 100px; margin: 0; padding: 3px 7px; font-size: 12px; font-weight: 500; line-height: 1.6; white-space: normal; overflow-wrap: anywhere; }
#app.office-app .day-case > svg { width: 17px; height: 17px; color: var(--muted); }
#app.office-app .day-case-copy .day-case-documents { display: flex; align-items: flex-start; gap: 10px; margin-top: 13px; padding: 10px 12px; border-radius: 6px; background: #f2f6fc; color: var(--text); font-size: 12px; line-height: 1.6; }
#app.office-app .day-case-documents svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; }
#app.office-app .day-case-documents :is(span, strong) { min-width: 0; overflow-wrap: anywhere; }
#app.office-app .day-case-documents small { display: block; color: var(--muted); font-size: 12px; }
#app.office-app .day-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; min-height: 220px; padding: 24px 0 16px; color: var(--muted); }
#app.office-app .day-empty > svg, #app.office-app .day-empty > .day-empty-icon { width: 30px; height: 30px; color: #7186a7; }
#app.office-app .day-empty h3 { margin: 0; color: var(--ink); font: 600 16px/1.5 var(--font-ui); }
#app.office-app .day-empty p { max-width: 340px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; overflow-wrap: anywhere; }
#app.office-app .day-empty .button { margin-top: 4px; font-size: 13px; }
/* Agenda rows describe only dates supplied by the application. No pseudo-time,
   current-time bar, invented grid entries or decorative appointment labels. */
#app.office-app .day-agenda-caption { margin: 0 0 12px; color: var(--muted); font-size: 12px; line-height: 1.6; }
#app.office-app .day-agenda-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 18px; align-items: center; gap: 12px; min-height: 84px; padding: 16px 0; border-top: 1px solid var(--line); color: var(--text); }
#app.office-app .day-agenda-row time { color: var(--muted); font-size: 12px; line-height: 1.6; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#app.office-app .day-agenda-row > div { min-width: 0; padding-left: 11px; border-left: 2px solid var(--green); }
#app.office-app .day-agenda-row strong { display: block; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
#app.office-app .day-agenda-row span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
#app.office-app .day-agenda-row > svg { width: 16px; height: 16px; color: var(--muted); }
#app.office-app a.day-agenda-row:hover { background: #f7faff; }
#app.office-app .day-inquiries { padding: 18px var(--office-gutter) 24px; min-width: 0; }
#app.office-app .day-inquiries .day-section-header { margin-bottom: 8px; }
#app.office-app .day-inquiry-table { min-width: 0; max-width: 100%; overflow-x: auto; }
#app.office-app .day-inquiry-table table { width: 100%; table-layout: fixed; border-collapse: collapse; color: var(--text); text-align: left; }
#app.office-app .day-inquiry-table :is(th, td) { padding: 14px 10px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; vertical-align: middle; }
#app.office-app .day-inquiry-table th { color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.5; text-transform: uppercase; }
#app.office-app .day-inquiry-table td { font-size: 13px; line-height: 1.65; }
#app.office-app .day-inquiry-table :is(th, td):first-child { width: 27%; padding-left: 0; }
#app.office-app .day-inquiry-table :is(th, td):nth-child(2) { width: 48%; }
#app.office-app .day-inquiry-table :is(th, td):nth-child(3) { width: 17%; font-variant-numeric: tabular-nums; }
#app.office-app .day-inquiry-table :is(th, td):last-child { width: 8%; padding-right: 0; text-align: center; }
#app.office-app .day-inquiry-table td strong { color: var(--ink); font-weight: 600; }
#app.office-app .day-inquiry-table td > svg { width: 18px; height: 18px; margin-right: 12px; color: var(--muted); }
#app.office-app .day-inquiry-table td > a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; max-width: 100%; color: inherit; }
#app.office-app .day-inquiry-table td:first-child > a { max-width: calc(100% - 34px); vertical-align: middle; }
#app.office-app .day-inquiry-table td > a:hover { color: var(--green); }
#app.office-app .day-inquiry-table td:last-child > a { justify-content: center; min-width: 44px; color: var(--muted); }
#app.office-app .day-inquiry-table td a svg { flex-shrink: 0; width: 17px; height: 17px; }
#app.office-app .day-inquiry-table tbody tr:hover { background: #f7faff; }
#app.office-app .day-mobile-guide { display: none; }
/* Keep the personal learning path in the same UI family; source and document
   paragraphs retain their separate font-document rules. */
#app.office-app .welcome-heading h1 { font: 700 30px/1.3 var(--font-ui); color: var(--ink); }
#app.office-app .welcome-heading p, #app.office-app .guide-intro, #app.office-app .guide-instructions p { font-size: 14px; }
#app.office-app .guide-layout { border-color: var(--line); border-radius: 8px; box-shadow: none; }
#app.office-app .guide-rail { border-color: var(--line); background: #f7f9fd; }
#app.office-app .guide-step { min-height: 52px; }
#app.office-app .guide-step strong { min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
#app.office-app .guide-step.selected { color: var(--green); background: #eaf2ff; }
#app.office-app .guide-step.selected > span { border-color: var(--green); background: var(--green); color: #fff; }
#app.office-app .guide-step.seen:not(.selected) > span { border-color: #ceddf5; background: #edf4ff; color: var(--green); }
#app.office-app .guide-body h2 { font: 700 26px/1.35 var(--font-ui); }
#app.office-app :is(.guide-topline, .guide-progress-caption, .guide-rail-heading > span:first-child, .guide-bottom > span) { font-size: 12px; }
#app.office-app .guide-open { min-height: 46px; border-color: #bfcfea; font-size: 14px; }
#app.office-app .guide-complete { border-color: #ccdcf7; background: #edf4ff; }
#app.office-app .guide-error { color: #943d27; background: #fff3ed; }
/* These overlay hosts intentionally live outside #app; keep them above both
   drawer and bottom navigation without changing the development-mode shell. */
body:has(#app.office-app) .modal-backdrop { z-index: 150; }
body:has(#app.office-app) .toast { z-index: 180; left: 50%; }
body:has(#app.office-app) .skip-link { left: 16px; }
@media (max-width: 1240px) {
  #app.office-app .office-header { gap: 24px; }
  #app.office-app .office-primary-nav { margin-left: 8px; gap: 20px; }
  #app.office-app .office-header-actions { gap: 12px; }
  #app.office-app .office-header-actions .search-trigger { width: 44px; min-width: 44px; height: 44px; justify-content: center; padding: 0; border-color: transparent; background: transparent; }
  #app.office-app .office-header-actions .search-trigger > span { display: none; }
  #app.office-app .day-column { padding-inline: 22px; }
  #app.office-app .day-case { grid-template-columns: 48px minmax(0, 1fr) 16px; gap: 10px; }
  #app.office-app .day-case > .badge { grid-column: 2; justify-self: start; }
  #app.office-app .day-case > svg { grid-column: 3; grid-row: 1 / span 2; }
  #app.office-app .day-task { grid-template-columns: 24px minmax(0, 1fr); gap: 8px 10px; }
  #app.office-app .day-task-status { grid-column: 2; justify-content: flex-start; max-width: none; text-align: left; }
}
@media (min-width: 961px) and (max-width: 1100px) {
  #app.office-app .office-header { gap: 18px; padding-inline: 24px; }
  #app.office-app .office-primary-nav { margin-left: 0; gap: 16px; }
  #app.office-app .office-profile.mobile-menu { max-width: 180px; }
  #app.office-app .office-profile > span:not(.avatar) { max-width: 100px; }
}
@media (max-width: 960px) {
  #app.office-app { --office-gutter: 24px; }
  #app.office-app .office-main { margin-left: 0; padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
  #app.office-app .office-bottom-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 60; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); min-height: 70px; padding: 4px 8px calc(4px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: #fff; }
  #app.office-app .office-bottom-nav > :is(a, button) { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 62px; margin: 0; padding: 6px 4px; border: 0; border-radius: 5px; background: transparent; color: var(--text); font: 500 12px/1.45 var(--font-ui); }
  #app.office-app .office-bottom-nav > :is(a, button).active { color: var(--green); font-weight: 700; }
  #app.office-app .office-bottom-nav > :is(a, button):hover { background: #f5f8fd; }
  #app.office-app .office-bottom-nav svg { width: 22px; height: 22px; }
  #app.office-app .office-bottom-nav span { max-width: 100%; overflow-wrap: anywhere; }
  #app.office-app .office-primary-nav { display: none; }
  #app.office-app .office-header { min-height: 68px; }
  #app.office-app .office-header-actions { margin-left: auto; }
  #app.office-app .day-hero { align-items: flex-start; gap: 24px; }
  #app.office-app .day-hero-actions { flex-direction: column; align-items: stretch; }
  #app.office-app .day-hero-actions .button { min-width: 160px; }
  #app.office-app .day-heading h1 { font-size: 36px; }
  #app.office-app .day-column { padding-inline: 18px; }
  #app.office-app .day-section-header { align-items: flex-start; }
  #app.office-app .day-section-header h2 { font-size: 18px; }
  #app.office-app .day-section-header > a { min-height: 44px; }
  #app.office-app .day-case { grid-template-columns: minmax(0, 1fr) 16px; }
  #app.office-app .day-case-number { grid-column: 1; padding-top: 0; }
  #app.office-app .day-case-copy { grid-column: 1; }
  #app.office-app .day-case > .badge { grid-column: 1; }
  #app.office-app .day-case > svg { grid-column: 2; grid-row: 1 / span 3; }
  #app.office-app .day-agenda-row { grid-template-columns: minmax(0, 1fr) 16px; gap: 8px; }
  #app.office-app .day-agenda-row time { grid-column: 1; }
  #app.office-app .day-agenda-row > div { grid-column: 1; }
  #app.office-app .day-agenda-row > svg { grid-column: 2; grid-row: 1 / span 2; }
  body:has(#app.office-app) .toast { bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 761px) and (max-width: 1279px) {
  #app.office-app .day-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #app.office-app .day-column[data-day-panel="schedule"] { grid-column: 1 / -1; padding-inline: var(--office-gutter); border-left: 0; border-top: 1px solid var(--line); }
  #app.office-app .day-schedule { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
  #app.office-app .day-agenda-row { grid-template-columns: 72px minmax(0, 1fr) 18px; gap: 12px; }
  #app.office-app .day-agenda-row time { grid-column: 1; grid-row: 1; }
  #app.office-app .day-agenda-row > div { grid-column: 2; grid-row: 1; }
  #app.office-app .day-agenda-row > svg { grid-column: 3; grid-row: 1; }
  #app.office-app .day-column[data-day-panel="schedule"] .day-empty { min-height: 160px; }
}
@media (max-width: 760px) {
  #app.office-app { --office-gutter: 18px; }
  #app.office-app .office-main { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
  #app.office-app .page.office-page { padding: 24px 18px; }
  #app.office-app .office-page:has(> .day-workspace) { padding: 0; }
  #app.office-app .office-header { min-height: 64px; padding-inline: 18px; gap: 16px; }
  #app.office-app .office-brand { gap: 8px; }
  #app.office-app .office-brand .brand-title { font-size: 20px; }
  #app.office-app .office-brand .brand-symbol, #app.office-app .office-brand .brand-symbol svg { width: 24px; height: 28px; }
  #app.office-app .office-header-actions { gap: 8px; }
  #app.office-app .office-profile.mobile-menu { padding: 0; width: 44px; min-width: 44px; }
  #app.office-app .office-profile > span:not(.avatar), #app.office-app .office-profile > svg { display: none; }
  #app.office-app .office-profile .avatar { width: 34px; height: 34px; flex-basis: 34px; }
  #app.office-app .day-hero { display: block; min-height: 0; padding: 22px 18px 16px; }
  #app.office-app .day-date { margin-bottom: 7px; font-size: 12px; }
  #app.office-app .day-heading h1 { font-size: clamp(28px, 6vw, 34px); line-height: 1.2; letter-spacing: -.6px; }
  #app.office-app .day-heading > p { margin-top: 5px; font-size: 14px; line-height: 1.55; }
  #app.office-app .day-hero-actions { display: flex; margin-top: 20px; }
  #app.office-app .day-hero-actions .day-create { width: 100%; min-height: 46px; }
  #app.office-app .day-hero-actions .day-guide { display: none; }
  #app.office-app .day-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 14px 18px 0; border: 1px solid var(--line); border-radius: 6px; background: #f3f6fb; }
  #app.office-app .day-tabs button { min-width: 0; min-height: 44px; padding: 10px 5px; border: 0; border-radius: 0; background: transparent; color: var(--text); font: 500 12px/1.5 var(--font-ui); overflow-wrap: anywhere; }
  #app.office-app .day-tabs button + button { border-left: 1px solid var(--line); }
  #app.office-app .day-tabs button:first-child { border-radius: 5px 0 0 5px; }
  #app.office-app .day-tabs button:last-child { border-radius: 0 5px 5px 0; }
  #app.office-app .day-tabs button:is(.active, .is-selected, [aria-selected="true"]) { border-color: var(--green); background: var(--green); color: #fff; font-weight: 600; }
  #app.office-app .day-columns { display: block; }
  #app.office-app .day-column { display: none; padding: 12px 18px 18px; border: 0; }
  #app.office-app .day-column.is-selected { display: block; }
  #app.office-app .day-column + .day-column { border-left: 0; }
  #app.office-app .day-column > .day-section-header { display: flex; min-height: 44px; margin: 0 0 6px; }
  #app.office-app .day-task { grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 96px; padding-block: 16px; }
  #app.office-app .day-task-status { grid-column: auto; justify-content: flex-end; max-width: 70px; font-size: 12px; text-align: right; }
  #app.office-app .day-task-copy > small { font-size: 12px; }
  #app.office-app .day-task-copy > strong { font-size: 14px; line-height: 1.45; }
  #app.office-app .day-task-copy > span { font-size: 12px; }
  #app.office-app .day-case { grid-template-columns: 52px minmax(0, 1fr) 16px; gap: 10px; }
  #app.office-app .day-case-number { grid-column: 1; grid-row: 1; }
  #app.office-app .day-case-copy { grid-column: 2; grid-row: 1; }
  #app.office-app .day-case > .badge { grid-column: 2; }
  #app.office-app .day-case > svg { grid-column: 3; grid-row: 1 / span 2; }
  #app.office-app .day-case-copy > strong { font-size: 15px; }
  #app.office-app .day-case-copy > span { font-size: 12px; }
  #app.office-app .day-empty { min-height: 190px; padding-top: 24px; }
  #app.office-app .day-agenda-row { grid-template-columns: 70px minmax(0, 1fr) 16px; gap: 10px; }
  #app.office-app .day-agenda-row time { grid-column: 1; grid-row: 1; }
  #app.office-app .day-agenda-row > div { grid-column: 2; grid-row: 1; }
  #app.office-app .day-agenda-row > svg { grid-column: 3; grid-row: 1; }
  #app.office-app .day-inquiries { padding: 14px 18px 4px; }
  #app.office-app .day-section-header { margin-bottom: 4px; }
  #app.office-app .day-section-header h2 { font-size: 17px; }
  #app.office-app .day-section-header > a { min-height: 44px; font-size: 12px; }
  #app.office-app .day-count { min-width: 24px; min-height: 25px; font-size: 12px; }
  #app.office-app .day-inquiry-table table { table-layout: auto; }
  #app.office-app .day-inquiry-table thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  #app.office-app .day-inquiry-table tbody { display: block; }
  #app.office-app .day-inquiry-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) 64px 44px; gap: 0 8px; min-width: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
  #app.office-app .day-inquiry-table td { display: block; width: auto !important; min-width: 0; padding: 0; border: 0; font-size: 12px; line-height: 1.6; }
  #app.office-app .day-inquiry-table td:first-child { grid-column: 1; grid-row: 1; font-weight: 600; color: var(--ink); }
  #app.office-app .day-inquiry-table td:nth-child(2) { grid-column: 1; grid-row: 2; color: var(--muted); }
  #app.office-app .day-inquiry-table td:nth-child(3) { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--muted); font-size: 12px; text-align: right; }
  #app.office-app .day-inquiry-table td:last-child { grid-column: 3; grid-row: 1 / span 2; align-self: center; text-align: right; }
  #app.office-app .day-inquiry-table td:last-child > a { min-width: 44px; min-height: 44px; }
  #app.office-app .day-inquiry-table td > svg { width: 16px; height: 16px; margin-right: 7px; }
  #app.office-app .day-inquiry-table td:first-child > a { max-width: calc(100% - 28px); min-height: 44px; }
  #app.office-app .day-mobile-guide { display: flex; align-items: center; gap: 12px; min-height: 58px; margin: 0 18px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--green); font-size: 13px; font-weight: 600; line-height: 1.5; }
  #app.office-app .day-mobile-guide > svg { width: 20px; height: 20px; }
  #app.office-app .day-mobile-guide > svg:last-child { width: 16px; height: 16px; margin-left: auto; color: var(--muted); }
  #app.office-app .office-bottom-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 60; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); min-height: 70px; padding: 4px 8px calc(4px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: #fff; }
  #app.office-app .office-bottom-nav > :is(a, button) { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 62px; margin: 0; padding: 6px 4px; border: 0; border-radius: 5px; background: transparent; color: var(--text); font: 500 12px/1.45 var(--font-ui); }
  #app.office-app .office-bottom-nav > :is(a, button).active { color: var(--green); font-weight: 700; }
  #app.office-app .office-bottom-nav > :is(a, button):hover { background: #f5f8fd; }
  #app.office-app .office-bottom-nav svg { width: 22px; height: 22px; }
  #app.office-app .office-bottom-nav span { max-width: 100%; overflow-wrap: anywhere; }
  #app.office-app .welcome-heading h1 { font-size: 25px; }
  #app.office-app .guide-body h2 { font-size: 23px; }
  #app.office-app .guide-step strong { font-size: 12px; }
  #app.office-app .guide-step { min-height: 52px; }
  body:has(#app.office-app) .toast { bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 380px) {
  #app.office-app .office-header { padding-inline: 14px; }
  #app.office-app .day-hero { padding-inline: 14px; }
  #app.office-app .day-tabs { margin-inline: 14px; }
  #app.office-app .day-column, #app.office-app .day-column:first-child, #app.office-app .day-column:last-child { padding-inline: 14px; }
  #app.office-app .day-task { grid-template-columns: 22px minmax(0, 1fr); gap: 7px 9px; }
  #app.office-app .day-task-status { grid-column: 2; justify-content: flex-start; max-width: none; text-align: left; }
  #app.office-app .day-inquiries { padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  #app.office-app .sidebar.office-drawer { transition: none; }
}
@media (forced-colors: active) {
  #app.office-app .day-tabs button[aria-selected="true"] { outline: 2px solid Highlight; outline-offset: -2px; }
  #app.office-app .office-primary-nav a.active { border-bottom: 3px solid Highlight; }
  #app.office-app .office-bottom-nav a.active { outline: 1px solid Highlight; }
}

/* The same Leitstand hierarchy throughout every office-framed work area.
   This is a page heading, not a second navigation/header bar. */
#app.office-app { --office-page-inset: 32px; --office-page-inset-y: 32px; }
#app.office-app .office-page:not(.office-page-today) > :is(.page-heading, .welcome-heading, .workspace-heading) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  min-height: 150px;
  margin: calc(-1 * var(--office-page-inset-y)) calc(-1 * var(--office-page-inset)) 28px;
  padding: 24px var(--office-page-inset);
  border: 0;
  background: var(--green);
  color: #fff;
}
#app.office-app .office-page:not(.office-page-today) > :is(.page-heading, .welcome-heading, .workspace-heading) > div:first-child { flex: 1 1 400px; min-width: 0; max-width: 900px; }
#app.office-app .office-page:not(.office-page-today) > :is(.page-heading, .welcome-heading, .workspace-heading) h1 { margin: 0; color: #fff; font: 700 clamp(27px, 2.8vw, 36px)/1.25 var(--font-ui); letter-spacing: -.7px; }
#app.office-app .office-page:not(.office-page-today) > :is(.page-heading, .welcome-heading, .workspace-heading) .eyebrow { display: block; margin: 0 0 8px; color: #fff; font-size: 12px; font-weight: 600; line-height: 1.5; letter-spacing: .025em; }
#app.office-app .office-page:not(.office-page-today) > :is(.page-heading, .welcome-heading, .workspace-heading) p { margin: 7px 0 0; color: #fff; font-size: 14px; line-height: 1.6; }
#app.office-app .office-page > :is(.page-heading, .welcome-heading, .workspace-heading) .heading-actions { flex: 0 1 auto; flex-wrap: wrap; gap: 8px; max-width: 100%; padding: 0; }
#app.office-app .office-page > :is(.page-heading, .welcome-heading, .workspace-heading) .button { min-height: 44px; padding: 10px 14px; border: 1px solid #fff; border-radius: 6px; background: transparent; color: #fff; font: 600 13px/1.5 var(--font-ui); }
#app.office-app .office-page > :is(.page-heading, .welcome-heading, .workspace-heading) .button:hover:not(:disabled) { background: #0046c9; border-color: #fff; color: #fff; }
#app.office-app .office-page > :is(.page-heading, .welcome-heading, .workspace-heading) .button.primary { background: #fff; color: var(--green); }
#app.office-app .office-page > :is(.page-heading, .welcome-heading, .workspace-heading) .button.primary:hover:not(:disabled) { background: #edf4ff; border-color: #edf4ff; color: #0046c9; }
#app.office-app .office-page > :is(.page-heading, .welcome-heading, .workspace-heading) :focus-visible { outline-color: #fff; }
#app.office-app .office-page > .workspace-heading > div:first-child { display: block; }
#app.office-app .office-page > .workspace-heading > div:first-child > .button.ghost { min-height: 44px; width: fit-content; margin: -8px 0 4px -10px; padding: 8px 10px; border-color: transparent; text-align: left; }
#app.office-app :is(.panel, .employee-card, .availability-card, .rights-card, .leave-card, .metric-card, .document-card) { border-color: var(--line); border-radius: 8px; box-shadow: none; background: #fff; }
#app.office-app :is(.panel-title, .section-heading h2) { color: var(--ink); font: 700 18px/1.45 var(--font-ui); }
#app.office-app :is(.panel-description, .section-heading > p, .field-help) { color: var(--muted); font-size: 12px; line-height: 1.7; }
#app.office-app .panel-header { align-items: center; gap: 14px 20px; }
#app.office-app .panel-header > div { min-width: 0; }
#app.office-app .review-callout { background: #f3f7ff; border: 1px solid #d7e4fb; border-left: 3px solid var(--green); border-radius: 6px; color: #37537c; font-size: 12px; }
#app.office-app .review-callout :is(strong, svg) { color: #234d90; }
#app.office-app :is(.input, .select, .textarea, .operation-input) { min-width: 0; max-width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #cdd8e9; border-radius: 6px; background: #fff; color: var(--ink); font: 400 14px/1.6 var(--font-ui); }
#app.office-app :is(.input, .select, .textarea, .operation-input):disabled { background: #f5f7fb; color: var(--muted); }
#app.office-app .field-label { color: var(--text); font-size: 13px; line-height: 1.6; }
#app.office-app .tabs { gap: 24px; border-color: var(--line); }
#app.office-app :is(.tab, .document-tab) { min-height: 44px; color: var(--muted); font: 500 13px/1.5 var(--font-ui); }
#app.office-app :is(.tab, .document-tab).active { color: var(--green); border-color: var(--green); font-weight: 700; }
#app.office-app :is(.tab, .document-tab):hover { color: var(--green); background: #f7faff; }
#app.office-app .empty-state { padding: 48px 24px; background: #fff; }
#app.office-app .empty-state h3 { color: var(--ink); font: 700 19px/1.45 var(--font-ui); }
#app.office-app .empty-state p { color: var(--muted); font-size: 14px; line-height: 1.75; }
#app.office-app .empty-icon { background: #edf4ff; border-color: #d7e4fb; color: var(--green); }
/* Casework: sober ledger rows, not display typography. */
#app.office-app .operations-context { flex-wrap: wrap; gap: 10px 16px; }
#app.office-app .operations-context > .select { flex: 1 1 260px; max-width: 520px; }
#app.office-app .operations-revision { color: var(--muted); font-size: 12px; }
#app.office-app .operations-counts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
#app.office-app .operations-counts > div { min-width: 0; padding-right: 12px; }
#app.office-app .operations-counts strong { color: var(--ink); font: 700 28px/1.25 var(--font-ui); font-variant-numeric: tabular-nums; }
#app.office-app .operations-counts span { color: var(--muted); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
#app.office-app :is(.operation-row h3, .operation-timeline h3, .due-task strong) { color: var(--ink); font: 600 15px/1.6 var(--font-ui); overflow-wrap: anywhere; }
#app.office-app :is(.operation-row > p, .operation-timeline p) { color: var(--text); font-size: 14px; line-height: 1.75; }
#app.office-app :is(.operation-date, .timeline-meta, .operation-timeline small, .due-task small) { color: var(--muted); font-size: 12px; }
#app.office-app .operation-review { border-left-color: #bfd3f5; }
#app.office-app .operation-review-context { background: #f5f8fd; border-color: var(--line); }
#app.office-app .operation-review-context strong { color: var(--ink); font-size: 14px; }
#app.office-app .operation-review-context p { color: var(--muted); font-size: 13px; }
#app.office-app .consultation-summary { border-top-color: var(--green); }
#app.office-app .consultation-summary h2 { color: var(--ink); font: 700 23px/1.4 var(--font-ui); }
#app.office-app .consultation-link h3 { color: var(--ink); font: 700 20px/1.45 var(--font-ui); }
#app.office-app .consultation-sources summary { min-height: 44px; color: var(--green); }
#app.office-app .consultation-sources pre { background: #f6f8fc; color: var(--text); font-size: 14px; }
#app.office-app :is(.office-case-context, details.due-tasks) { min-width: 0; margin: 0 0 20px; padding: 0; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
#app.office-app :is(.office-case-context, details.due-tasks) > summary { min-height: 48px; padding: 12px 16px; color: var(--ink); font: 600 14px/1.6 var(--font-ui); overflow-wrap: anywhere; cursor: pointer; touch-action: manipulation; }
#app.office-app :is(.office-case-context, details.due-tasks) > summary::marker { color: var(--green); }
#app.office-app :is(.office-case-context, details.due-tasks) > summary:hover { background: #f5f8fd; border-radius: 6px; }
#app.office-app :is(.office-case-context, details.due-tasks)[open] > summary { border-bottom: 1px solid var(--line); border-radius: 6px 6px 0 0; }
#app.office-app .office-case-context > .consultation-summary { margin: 0; border: 0; border-radius: 0 0 6px 6px; }
#app.office-app details.due-tasks > div { min-width: 0; padding: 0 16px 8px; }
#app.office-app details.due-tasks .due-task { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 15px 0; }
#app.office-app details.due-tasks .due-task > :is(span, div) { min-width: 0; overflow-wrap: anywhere; }
#app.office-app details.due-tasks .due-task:first-child { border-top: 0; }
#app.office-app .calendar-agenda { padding: 8px 24px 20px; }
#app.office-app .calendar-agenda .day-empty { min-height: 220px; }
/* Inbox and inquiry records share the blue selection treatment. */
#app.office-app .intake-board { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 20px; }
#app.office-app .intake-column { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #f5f8fd; }
#app.office-app .intake-column > header { border-color: var(--line); }
#app.office-app .intake-column > header h2 { color: var(--ink); font: 700 18px/1.45 var(--font-ui); overflow-wrap: anywhere; }
#app.office-app .intake-column > header > span { flex-shrink: 0; border-radius: 5px; background: #e8eef8; color: var(--text); font-size: 12px; }
#app.office-app .intake-card { padding: 18px; border-color: var(--line); background: #fff; box-shadow: none; }
#app.office-app .intake-card:hover, #app.office-app .intake-card.selected { border-color: var(--green); background: #fff; box-shadow: none; }
#app.office-app .intake-card.selected { border-left: 3px solid var(--green); }
#app.office-app .intake-card h3 { margin: 12px 0 8px; color: var(--ink); font: 700 18px/1.45 var(--font-ui); }
#app.office-app .intake-card > p { color: var(--text); font-size: 14px; line-height: 1.7; }
#app.office-app :is(.intake-card-meta, .intake-card-bottom, .intake-column-empty) { color: var(--muted); font-size: 12px; }
#app.office-app .intake-start h2 { color: var(--ink); font: 700 23px/1.4 var(--font-ui); }
#app.office-app .intake-start > span { color: var(--green); font: 700 28px/1.2 var(--font-ui); }
#app.office-app .intake-start p { color: var(--muted); font-size: 14px; }
#app.office-app .intake-contact-name { color: var(--ink); font: 700 23px/1.4 var(--font-ui); }
#app.office-app :is(.intake-concern, .intake-note > p, .intake-contact-data dd, .intake-address) { color: var(--text); font-size: 14px; line-height: 1.75; }
#app.office-app :is(.intake-subhead h3, .intake-conversation h3) { color: var(--ink); font: 700 18px/1.5 var(--font-ui); }
#app.office-app :is(.intake-suggestions, .intake-conversation) { border-color: var(--line); background: #f5f8fd; }
#app.office-app .intake-next-task { border-left-color: var(--green); }
#app.office-app :is(.intake-next-task > strong, .intake-open-points > strong, .intake-participant h4) { color: var(--ink); font-size: 14px; }
#app.office-app :is(.intake-next-task > p, .intake-decision, .intake-suggestions > p) { color: var(--text); font-size: 14px; }
#app.office-app .intake-participant-heading { flex-wrap: wrap; }
#app.office-app .intake-participant-heading > div { flex: 1 1 220px; }
#app.office-app :is(.intake-history > summary, .intake-conversation-history > summary) { min-height: 44px; padding-block: 12px; color: var(--green); font-size: 13px; }
/* Contracts and personnel retain their real status badges and historical text. */
#app.office-app .contracts-case { border-top-color: var(--green); }
#app.office-app .contracts-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; }
#app.office-app :is(.contracts-templates > h2, .contract-card-heading h2, .employee-card h2) { color: var(--ink); font: 700 22px/1.4 var(--font-ui); }
#app.office-app :is(.contract-template-list h3, .contract-form-section > h3, .signing-journal > h3, .rights-recipient h3) { color: var(--ink); font: 700 18px/1.5 var(--font-ui); }
#app.office-app .contract-card-facts .contract-price { color: var(--ink); font: 700 24px/1.35 var(--font-ui); font-variant-numeric: tabular-nums; }
#app.office-app :is(.contracts-templates > p, .contracts-case-state > p, .contract-card-facts dd) { color: var(--text); font-size: 14px; line-height: 1.7; }
#app.office-app :is(.contract-history, .contract-form-context) { background: #f5f8fd; border-color: var(--line); }
#app.office-app :is(.employee-scope, .rights-recipient, .leave-decision-effects) { border-color: var(--line); border-left-color: var(--green); border-radius: 7px; background: #f5f8fd; }
#app.office-app :is(.employee-scope > strong, .leave-decision-effects strong) { color: var(--ink); font-size: 14px; }
#app.office-app :is(.rights-card h3, .availability-card h3, .leave-card h3) { color: var(--ink); font: 700 17px/1.5 var(--font-ui); }
#app.office-app .employee-version-facts dt { color: var(--muted); font-size: 12px; text-transform: none; letter-spacing: 0; }
#app.office-app .employee-version-facts dd { color: var(--text); font-size: 14px; }
#app.office-app :is(.employee-check, .intake-check, .operation-source-choices label) { min-height: 44px; padding-block: 8px; color: var(--text); font-size: 14px; line-height: 1.6; }
#app.office-app :is(.employee-check, .intake-check, .operation-source-choices) input { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--green); }
#app.office-app .intake-role-options .intake-check:has(input:checked) { border-color: var(--green); background: #edf4ff; }
#app.office-app :is(.employee-history summary, .availability-card summary, .rights-card summary, .leave-card summary) { min-height: 44px; padding-block: 12px; color: var(--green); font-size: 13px; }
#app.office-app :is(.metric-label, .metric-description, .metric-empty) { color: var(--muted); font-size: 13px; line-height: 1.65; }
#app.office-app .metric-value { color: var(--ink); font: 700 30px/1.3 var(--font-ui); font-variant-numeric: tabular-nums; }
#app.office-app .office-case-list > a > span { border-color: #d7e4fb; background: #edf4ff; color: var(--green); }
#app.office-app .office-case-list strong { color: var(--ink); font-size: 15px; }
#app.office-app .office-case-list small { color: var(--muted); font-size: 13px; }
/* Dialogs mount beside #app. Give that host the same tokens without applying
   interface typography to the original/source text inside reading surfaces. */
body:has(#app.office-app) #overlay-root { --paper: #f5f8fd; --surface: #fff; --ink: #111e40; --text: #253858; --muted: #60708e; --line: #e1e7f0; --green: #0052ec; --green-soft: #edf4ff; font: 400 14px/1.6 var(--font-ui); color: var(--text); }
body:has(#app.office-app) #overlay-root .modal { border-color: var(--line); border-radius: 8px; background: #fff; }
body:has(#app.office-app) #overlay-root .modal-header { padding: 22px 26px; border-bottom: 0; border-radius: 7px 7px 0 0; background: var(--green); color: #fff; }
body:has(#app.office-app) #overlay-root .modal-header h2 { color: #fff; font: 700 22px/1.4 var(--font-ui); }
body:has(#app.office-app) #overlay-root .modal-header p { color: #fff; font-size: 13px; line-height: 1.7; }
body:has(#app.office-app) #overlay-root .modal-header .icon-button { width: 44px; height: 44px; background: transparent; border-color: #89afff; color: #fff; }
body:has(#app.office-app) #overlay-root .modal-header :focus-visible { outline-color: #fff; }
body:has(#app.office-app) #overlay-root .modal-body { background: #fff; }
body:has(#app.office-app) #overlay-root .modal-actions { background: #f5f8fd; border-color: var(--line); }
body:has(#app.office-app) #overlay-root :is(.button, .button.small, .button.ghost) { min-height: 44px; font-size: 13px; }
body:has(#app.office-app) #overlay-root .button.primary { border-color: var(--green); background: var(--green); color: #fff; }
body:has(#app.office-app) #overlay-root .button.primary:hover:not(:disabled) { border-color: #0046c9; background: #0046c9; }
body:has(#app.office-app) #overlay-root :is(.input, .select, .textarea, .operation-input) { min-width: 0; max-width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #cdd8e9; border-radius: 6px; background: #fff; color: var(--ink); font: 400 14px/1.65 var(--font-ui); }
body:has(#app.office-app) #overlay-root .field-label { color: var(--text); font-size: 13px; }
body:has(#app.office-app) #overlay-root :is(.field-help, .contract-form-context, .form-binding-note, .form-editor-status p) { color: var(--muted); font-size: 12px; line-height: 1.7; }
body:has(#app.office-app) #overlay-root :is(.contract-form-section > h3, .employee-form-section h3, .start-status h3, .start-contract-state h3, .availability-editor-head h3) { color: var(--ink); font: 700 18px/1.5 var(--font-ui); }
body:has(#app.office-app) #overlay-root :is(.employee-check, .intake-check, .operation-source-choices label, .form-editor-check) { min-height: 44px; padding-block: 8px; color: var(--text); font-size: 14px; line-height: 1.65; }
body:has(#app.office-app) #overlay-root :is(.employee-check, .intake-check, .operation-source-choices, .form-editor-check) input { width: 18px; height: 18px; accent-color: var(--green); }
body:has(#app.office-app) #overlay-root .intake-role-options .intake-check:has(input:checked) { border-color: var(--green); background: #edf4ff; }
body:has(#app.office-app) #overlay-root .contract-paper { font-family: var(--font-document); font-weight: 400; color: #253858; background: #fff; border-color: var(--line); box-shadow: none; }
/* Narrow navigation labels must never split the last letter onto a new row. */
#app.office-app .office-bottom-nav span { white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 1279px) {
  #app.office-app .contracts-layout { grid-template-columns: minmax(0, 1fr); }
  #app.office-app .intake-detail-grid { gap: 24px; }
}
@media (max-width: 1000px) {
  #app.office-app .employee-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  #app.office-app { --office-page-inset: 18px; --office-page-inset-y: 24px; }
  #app.office-app .office-page:not(.office-page-today) > :is(.page-heading, .welcome-heading, .workspace-heading) { min-height: 0; padding-block: 24px; gap: 18px; margin-bottom: 24px; }
  #app.office-app .office-page:not(.office-page-today) > :is(.page-heading, .welcome-heading, .workspace-heading) > div:first-child { flex-basis: 100%; }
  #app.office-app .office-page:not(.office-page-today) > :is(.page-heading, .welcome-heading, .workspace-heading) h1 { font-size: 28px; }
  #app.office-app .office-page > :is(.page-heading, .welcome-heading, .workspace-heading) .heading-actions { width: 100%; justify-content: flex-start; }
  #app.office-app .office-page > :is(.page-heading, .welcome-heading, .workspace-heading) .button { flex: 1 1 160px; }
  #app.office-app .office-page > .welcome-heading > .button { flex: 1 1 100%; }
  #app.office-app :is(.input, .select, .textarea, .operation-input) { font-size: 16px; }
  #app.office-app .operations-context > .select { max-width: 100%; }
  #app.office-app .operations-counts { gap: 12px; }
  #app.office-app .operations-counts strong { font-size: 25px; }
  #app.office-app .operations-tabs { gap: 12px 20px; }
  #app.office-app .intake-board { grid-template-columns: minmax(0, 1fr); }
  #app.office-app .intake-detail-grid { grid-template-columns: minmax(0, 1fr); }
  #app.office-app .intake-detail-grid > div + div { padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  #app.office-app .intake-start { padding-block: 26px; }
  #app.office-app .intake-start h2 { font-size: 21px; }
  #app.office-app .contract-card-facts { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  #app.office-app .contract-card-heading h2 { font-size: 21px; }
  #app.office-app .calendar-agenda { padding-inline: 16px; }
  body:has(#app.office-app) #overlay-root .modal-header { padding: 18px; }
  body:has(#app.office-app) #overlay-root .modal-header h2 { font-size: 20px; }
  body:has(#app.office-app) #overlay-root :is(.input, .select, .textarea, .operation-input) { font-size: 16px; }
}
@media (max-width: 360px) {
  #app.office-app .office-bottom-nav span { font-size: 11px; }
}

/* Capability summary: align all rows with this panel's heading and footer.
   Status words stay secondary; the whole row remains the navigation target. */
#app.office-app .capability-panel { --capability-inset: 22px; }
#app.office-app .capability-panel > :is(.panel-header, .panel-footer) { padding-inline: var(--capability-inset); }
#app.office-app .capability-panel .readiness-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 var(--capability-inset); }
#app.office-app .capability-panel .readiness-item { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; min-width: 0; min-height: 64px; padding: 14px 0; color: var(--text); text-decoration: none; touch-action: manipulation; }
#app.office-app .capability-panel .readiness-item + .readiness-item { border-top: 1px solid var(--line); }
#app.office-app .capability-panel .readiness-item:hover { background: #f7faff; color: var(--green); }
#app.office-app .capability-panel .readiness-item:focus-visible { outline-offset: -2px; }
#app.office-app .capability-panel .readiness-icon { display: grid; place-items: center; width: 28px; height: 28px; margin: 0; border: 1px solid #dce5f3; border-radius: 6px; background: #f5f8fd; color: #526b92; }
#app.office-app .capability-panel .readiness-icon svg { width: 15px; height: 15px; }
#app.office-app .capability-panel .readiness-item > :nth-child(2) { min-width: 0; color: inherit; font: 500 14px/1.55 var(--font-ui); overflow-wrap: anywhere; }
#app.office-app .capability-panel .readiness-item strong { color: var(--ink); font: 600 14px/1.55 var(--font-ui); }
#app.office-app .capability-panel .readiness-item small { color: var(--muted); font: 400 12px/1.6 var(--font-ui); }
#app.office-app .capability-panel .readiness-item > :is(.badge, .readiness-status, .capability-status) { justify-self: end; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--muted); font: 500 12px/1.5 var(--font-ui); white-space: nowrap; box-shadow: none; }
#app.office-app .capability-panel .readiness-item .badge .dot { display: none; }
@media (max-width: 600px) {
  #app.office-app .capability-panel { --capability-inset: 18px; }
}
@media (max-width: 420px) {
  #app.office-app .capability-panel .readiness-item { grid-template-columns: 28px minmax(0, 1fr); }
  #app.office-app .capability-panel .readiness-icon { grid-column: 1; grid-row: 1 / span 2; align-self: start; }
  #app.office-app .capability-panel .readiness-item > :nth-child(2) { grid-column: 2; }
  #app.office-app .capability-panel .readiness-item > :is(.badge, .readiness-status, .capability-status) { grid-column: 2; justify-self: start; white-space: normal; overflow-wrap: anywhere; }
}

/* Keep the reference overview's supporting cards on the same grid at tablet widths. */
@media (max-width: 1180px) {
  #app.office-app .overview-grid > .stack:last-child { grid-template-columns: minmax(0, 1fr); }
  #app.office-app .overview-grid > .stack:last-child > .panel:last-child { grid-column: auto; }
}

/* studio.css */
/* Approved studio reference: white canvas, black type, lime decisions.
   Loaded last. Layout and presentation only; all existing permission, focus,
   native hidden/inert and pending-command behavior remains application-owned. */
body.studio-theme,
body.studio-theme:has(#app.office-app.studio-shell),
body.studio-theme #app.office-app.studio-shell,
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root {
  --font-ui: Manrope, sans-serif;
  --font-document: Newsreader, Georgia, serif;
  --paper: #ffffff;
  --surface: #ffffff;
  --ink: #111212;
  --text: #303136;
  --muted: #676971;
  --line: #e2e3e5;
  --green: #202322;
  --green-soft: #f0f5d9;
  --amber: #705000;
  --amber-soft: #fff8de;
  --red: #a33534;
  --red-soft: #fff1ef;
  --sidebar: #ffffff;
  --sidebar-text: #33353b;
  --lime: #dfff70;
  --lime-soft: #f5fadf;
  --radius: 3px;
  --side-width: 84px;
  --shadow: none;
  --office-gutter: 24px;
  color: var(--text);
  background: var(--surface);
  font: 400 14px/1.5 var(--font-ui);
}
body.studio-theme { margin: 0; min-width: 320px; }
body.studio-theme *, body.studio-theme *::before, body.studio-theme *::after { box-sizing: border-box; }
body.studio-theme :is(button, input, textarea, select) { font-family: var(--font-ui); }
body.studio-theme :is(button, a, input, textarea, select, summary):focus-visible { outline: 2px solid #151615; outline-offset: 4px; }
body.studio-theme ::selection { color: #171a11; background: #e4fa9b; }
body.studio-theme :is(input[type=checkbox], input[type=radio], progress) { accent-color: #252923; }
body.studio-theme :is(h1,h2,h3,h4) { color: var(--ink); }
body.studio-theme [hidden] { display: none !important; }
body.studio-theme #app.office-app.studio-shell { min-width: 0; min-height: 100dvh; }

/* The common frame: a quiet horizontal bar and an actual icon navigation rail. */
body.studio-theme #app.office-app.studio-shell .studio-topbar {
  position: fixed; inset: 0 0 auto; z-index: 45; height: 62px;
  display: grid; grid-template-columns: minmax(170px,1fr) auto minmax(210px,1fr);
  align-items: center; gap: 24px; padding: 0 24px;
  background: #fff; border-bottom: 1px solid var(--line);
}
body.studio-theme #app.office-app.studio-shell .studio-brand {
  display: inline-flex; align-items: baseline; justify-self: start;
  min-width: 0; color: #080909; font-size: 29px; line-height: 1;
  font-weight: 750; letter-spacing: -1.7px; text-decoration: none;
}
body.studio-theme #app.office-app.studio-shell .studio-brand :is(span, i) { color: #c6f447; font-style: normal; }
body.studio-theme #app.office-app.studio-shell .studio-topnav { align-self: stretch; display: flex; align-items: stretch; gap: 33px; min-width: 0; }
body.studio-theme #app.office-app.studio-shell .studio-topnav :is(a,button) {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0; border: 0; border-radius: 0; background: transparent;
  color: #303039; white-space: nowrap; font-size: 13px; font-weight: 500;
}
body.studio-theme #app.office-app.studio-shell .studio-topnav :is(a,button):hover { color: #070808; }
body.studio-theme #app.office-app.studio-shell .studio-topnav :is(.active,[aria-current=page]) { color: #080909; font-weight: 750; }
body.studio-theme #app.office-app.studio-shell .studio-topnav :is(.active,[aria-current=page])::after { position: absolute; content: ''; height: 3px; background: #121413; inset: auto 0 -1px; }
body.studio-theme #app.office-app.studio-shell .studio-tools { display: flex; align-items: center; justify-content: flex-end; gap: 16px; min-width: 0; }
body.studio-theme #app.office-app.studio-shell .studio-tools .studio-search { display: inline-flex; align-items: center; gap: 10px; min-width: 152px; min-height: 38px; height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: #393a40; font-size: 12px; }
body.studio-theme #app.office-app.studio-shell .studio-tools .studio-search:hover { background: #f6f7f5; border-color: #c5c7c2; }
body.studio-theme #app.office-app.studio-shell .studio-tools :is(.studio-avatar,.office-person-mark) { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #eeeef0; color: #151716; font-size: 11px; font-weight: 750; }
body.studio-theme #app.office-app.studio-shell .studio-tools .icon-button { width: 36px; height: 40px; border: 0; background: none; color: #222528; }
body.studio-theme #app.office-app.studio-shell .studio-tools .key-hint { margin-left: auto; padding: 2px 5px; color: #707178; border: 0; border-radius: 2px; background: #f0f0f1; font-size: 10px; }
body.studio-theme #app.office-app.studio-shell .sidebar.studio-rail {
  position: fixed; inset: 62px auto 0 0; z-index: 40; display: flex;
  width: 84px; height: calc(100dvh - 62px); padding: 12px 11px 18px;
  background: #fff; color: #27292c; border-right: 1px solid var(--line);
  overflow-y: auto; overscroll-behavior: contain;
}
body.studio-theme #app.office-app.studio-shell .studio-rail :is(.brand,.nav-group-label,.provider-mini,.environment) { display: none; }
body.studio-theme #app.office-app.studio-shell .studio-rail .nav-group + .nav-group { margin-top: 12px; padding-top: 12px; border-top: 1px solid #eeefec; }
body.studio-theme #app.office-app.studio-shell .studio-rail .nav-link { position: relative; display: flex; align-items: center; justify-content: center; min-height: 50px; width: 60px; margin: 0 0 8px; padding: 12px; border-radius: 6px; background: transparent; color: #252830; box-shadow: none; }
body.studio-theme #app.office-app.studio-shell .studio-rail .nav-link > svg { width: 22px; height: 22px; stroke-width: 1.65; color: inherit; }
body.studio-theme #app.office-app.studio-shell .studio-rail .nav-link:hover { background: #f2f3f0; color: #121511; }
body.studio-theme #app.office-app.studio-shell .studio-rail .nav-link.active { color: #fff; background: #232623; box-shadow: none; }
body.studio-theme #app.office-app.studio-shell .studio-rail .nav-link.active::after { position: absolute; top: 11px; right: 14px; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); content: ''; }
body.studio-theme #app.office-app.studio-shell .studio-rail .nav-link > span:not(.nav-count) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
body.studio-theme #app.office-app.studio-shell .studio-rail .nav-count { position: absolute; top: 2px; right: 1px; min-width: 17px; padding: 1px 3px; background: #f0f2e9; color: #33362d; border: 1px solid white; font-size: 9px; }
body.studio-theme #app.office-app.studio-shell .studio-rail .studio-rail-bottom { margin-top: auto; padding: 16px 0 0; }
body.studio-theme #app.office-app.studio-shell .studio-rail .office-sidebar-bottom { display: flex; justify-content: center; gap: 0; }
body.studio-theme #app.office-app.studio-shell .studio-rail .office-sidebar-bottom > div { display: none; }
body.studio-theme #app.office-app.studio-shell .main.studio-main { min-width: 0; min-height: 100dvh; margin-left: 84px; padding-top: 62px; padding-bottom: 0; background: #fff; }
body.studio-theme #app.office-app.studio-shell .page.studio-page { max-width: none; min-width: 0; margin: 0; padding: 25px 24px 30px; background: #fff; animation: none; }
body.studio-theme #app.office-app.studio-shell .office-bottom-nav { display: none; }
body.studio-theme #app.office-app.studio-shell .studio-main > .topbar { display: none; }

/* Overview faithfully follows the reference hierarchy, without generated data. */
body.studio-theme #app.office-app.studio-shell .studio-overview { min-width: 0; }
body.studio-theme #app.office-app.studio-shell .studio-heading { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 103px; margin: 0 0 16px; padding: 0 24px 0; }
body.studio-theme #app.office-app.studio-shell .studio-heading > div:first-child { min-width: 0; }
body.studio-theme #app.office-app.studio-shell .studio-heading :is(.eyebrow,.studio-eyebrow) { display: block; margin-bottom: 4px; color: #62656c; font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
body.studio-theme #app.office-app.studio-shell .studio-heading h1 { margin: 0; color: #070808; font: 750 clamp(32px,3.4vw,48px)/1.12 var(--font-ui); letter-spacing: -1.8px; }
body.studio-theme #app.office-app.studio-shell .studio-heading p { margin: 6px 0 0; color: #64666d; font-size: 15px; line-height: 1.5; }
body.studio-theme #app.office-app.studio-shell .studio-kpis { display: flex; align-items: center; flex: 0 1 auto; gap: 0; min-width: 0; }
body.studio-theme #app.office-app.studio-shell .studio-kpis > :is(a,div,article) { min-width: 84px; padding: 0 23px; border-left: 1px solid #d9dadd; }
body.studio-theme #app.office-app.studio-shell .studio-kpis :is(strong,b) { display: block; font-size: 26px; line-height: 1.1; letter-spacing: -1px; color: #0c0d0d; font-weight: 750; font-variant-numeric: tabular-nums; }
body.studio-theme #app.office-app.studio-shell .studio-kpis :is(span,small) { display: block; margin-top: 4px; font-size: 11px; line-height: 1.5; color: #64666e; }
body.studio-theme #app.office-app.studio-shell .studio-kpis > .button { margin-right: 15px; padding-inline: 17px; color: var(--lime); background: #242724; border-color: #242724; }
body.studio-theme #app.office-app.studio-shell .studio-review-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: stretch; gap: 18px; }
body.studio-theme #app.office-app.studio-shell .studio-review-grid > * { min-width: 0; }
body.studio-theme #app.office-app.studio-shell :is(.studio-decision-column,.studio-review-column,.studio-review-stack) { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
body.studio-theme #app.office-app.studio-shell .studio-decision { min-height: 286px; padding: 25px; border: 1px solid #292e29; border-radius: 2px 2px 0 0; color: #fff; background: #242825; }
body.studio-theme #app.office-app.studio-shell .studio-decision :is(h1,h2,h3,strong) { color: #fff; }
body.studio-theme #app.office-app.studio-shell .studio-decision > :is(header,.studio-decision-top) { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; color: #f1f3ec; font-size: 11px; }
body.studio-theme #app.office-app.studio-shell .studio-decision .eyebrow { color: #e7ebe4; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
body.studio-theme #app.office-app.studio-shell .studio-decision h2 { max-width: 520px; margin: 18px 0 10px; font: 750 clamp(28px,2.55vw,41px)/1.12 var(--font-ui); letter-spacing: -1.35px; }
body.studio-theme #app.office-app.studio-shell .studio-decision > p { color: #c9cdc7; font-size: 15px; line-height: 1.6; }
body.studio-theme #app.office-app.studio-shell .studio-decision :is(.studio-decision-status,.studio-review-status) { display: inline-flex; align-items: center; gap: 9px; color: #f5f6f1; font-size: 12px; }
body.studio-theme #app.office-app.studio-shell .studio-decision :is(.studio-decision-status,.studio-review-status)::before { content: ''; width: 9px; height: 9px; flex: 0 0 auto; border-radius: 1px; background: var(--lime); }
body.studio-theme #app.office-app.studio-shell :is(.studio-next,.studio-decision-item,.studio-next-finding) { display: flex; align-items: center; gap: 22px; margin-top: 21px; padding-top: 22px; border-top: 1px solid #535752; }
body.studio-theme #app.office-app.studio-shell :is(.studio-next,.studio-decision-item,.studio-next-finding) > :is(strong,.studio-index) { font-size: 32px; font-weight: 700; line-height: 1; letter-spacing: -1px; }
body.studio-theme #app.office-app.studio-shell :is(.studio-next,.studio-decision-item,.studio-next-finding) > div { flex: 1; min-width: 0; }
body.studio-theme #app.office-app.studio-shell :is(.studio-next,.studio-decision-item,.studio-next-finding) h3 { font: 700 16px/1.4 var(--font-ui); letter-spacing: -.4px; }
body.studio-theme #app.office-app.studio-shell :is(.studio-next,.studio-decision-item,.studio-next-finding) :is(small,p) { display: block; margin: 6px 0 0; color: #e0e4dc; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
body.studio-theme #app.office-app.studio-shell .studio-decision .button { flex-shrink: 0; background: var(--lime); color: #14180c; border-color: var(--lime); padding: 11px 24px; min-width: 112px; font-weight: 750; }
body.studio-theme #app.office-app.studio-shell .studio-decision .button:hover:not(:disabled) { background: #e8ff91; border-color: #e8ff91; }
body.studio-theme #app.office-app.studio-shell .studio-findings { padding: 23px 25px 13px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 2px 2px; background: #fff; }
body.studio-theme #app.office-app.studio-shell .studio-findings > header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
body.studio-theme #app.office-app.studio-shell .studio-findings h2 { margin: 0; color: #111314; font: 750 18px/1.4 var(--font-ui); letter-spacing: -.45px; }
body.studio-theme #app.office-app.studio-shell .studio-findings > :is(a,article,.studio-finding-row) { display: flex; align-items: center; gap: 24px; min-height: 69px; padding: 14px 0; border-top: 1px solid #e8e9e8; }
body.studio-theme #app.office-app.studio-shell .studio-findings > :is(a,article,.studio-finding-row) > :is(span,strong):first-child { min-width: 34px; color: #5f6269; font-size: 25px; line-height: 1; font-variant-numeric: tabular-nums; }
body.studio-theme #app.office-app.studio-shell .studio-findings > :is(a,article,.studio-finding-row) > div { flex: 1; min-width: 0; }
body.studio-theme #app.office-app.studio-shell .studio-findings :is(h3,strong) { color: #252831; font-size: 13px; line-height: 1.45; font-weight: 750; }
body.studio-theme #app.office-app.studio-shell .studio-findings small { display: block; margin-top: 4px; color: #757780; font-size: 11px; }
body.studio-theme #app.office-app.studio-shell .studio-context { display: flex; flex-direction: column; padding: 18px 21px 8px; min-width: 0; border: 1px solid var(--line); border-radius: 2px; background: #fff; }
body.studio-theme #app.office-app.studio-shell .studio-context > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
body.studio-theme #app.office-app.studio-shell .studio-context > header h2 { margin: 0; font: 750 22px/1.4 var(--font-ui); letter-spacing: -.7px; }
body.studio-theme #app.office-app.studio-shell .studio-context > header > div { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
body.studio-theme #app.office-app.studio-shell .studio-context-tabs { display: flex; gap: 28px; margin-top: 5px; border-bottom: 1px solid var(--line); overflow-x: auto; }
body.studio-theme #app.office-app.studio-shell .studio-context-tabs :is(button,a) { flex-shrink: 0; min-height: 40px; padding: 10px 0; border-bottom: 3px solid transparent; color: #81848b; font-size: 12px; }
body.studio-theme #app.office-app.studio-shell .studio-context-tabs :is(.active,[aria-selected=true]) { border-bottom-color: #202320; color: #151815; font-weight: 700; }
body.studio-theme #app.office-app.studio-shell :is(.studio-document-meta,.studio-context-path) { margin: 9px 0; color: #91949c; font-size: 9px; letter-spacing: .075em; text-transform: uppercase; overflow-wrap: anywhere; }
body.studio-theme #app.office-app.studio-shell .studio-document-preview { flex: 1; min-width: 0; padding: 25px 34px; border: 1px solid #e2e3e6; background: #fff; color: #56585f; font: 400 13px/1.55 var(--font-ui); overflow-wrap: anywhere; }
body.studio-theme #app.office-app.studio-shell .studio-document-preview :is(h1,h2,h3) { font-family: var(--font-ui); color: #111413; }
body.studio-theme #app.office-app.studio-shell .studio-document-preview h3 { margin: 7px 0 11px; font-size: 27px; line-height: 1.2; font-weight: 750; letter-spacing: -.8px; }
body.studio-theme #app.office-app.studio-shell .studio-document-preview p + p { margin-top: 14px; }
body.studio-theme #app.office-app.studio-shell .studio-document-preview mark { padding: 0 2px; background: #edfaab; color: #262a1b; }
body.studio-theme #app.office-app.studio-shell .studio-document-preview :is(blockquote,.studio-context-callout,.studio-document-callout) { margin: 17px 0; padding: 12px 15px; border: 0; border-left: 4px solid var(--lime); background: #f6f7f4; font: inherit; }
body.studio-theme #app.office-app.studio-shell .studio-document-preview :is(blockquote,.studio-context-callout,.studio-document-callout) strong { display: block; color: #171a19; margin-bottom: 2px; }
body.studio-theme #app.office-app.studio-shell .studio-context > footer { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 9px 12px; color: #757780; font-size: 12px; }
body.studio-theme #app.office-app.studio-shell .studio-context > footer :is(a,button) { display: inline-flex; align-items: center; gap: 9px; margin-left: auto; color: #303440; }
body.studio-theme #app.office-app.studio-shell .studio-case-table { min-width: 0; margin-top: 29px; }
body.studio-theme #app.office-app.studio-shell .studio-case-table > header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
body.studio-theme #app.office-app.studio-shell .studio-case-table h2 { margin: 0; font: 750 18px/1.5 var(--font-ui); letter-spacing: -.45px; }
body.studio-theme #app.office-app.studio-shell .studio-case-table table { width: 100%; border-collapse: collapse; table-layout: fixed; }
body.studio-theme #app.office-app.studio-shell .studio-case-table :is(th,td) { padding: 7px 20px; border-top: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; }
body.studio-theme #app.office-app.studio-shell .studio-case-table th { color: #757781; font-size: 9px; font-weight: 550; text-transform: uppercase; letter-spacing: .06em; }
body.studio-theme #app.office-app.studio-shell .studio-case-table td { color: #34363e; font-size: 12px; line-height: 1.5; }
body.studio-theme #app.office-app.studio-shell .studio-case-table :is(th,td):first-child { width: 30%; color: #151719; font-weight: 700; }
body.studio-theme #app.office-app.studio-shell .studio-case-table :is(th,td):last-child { width: 18%; }
body.studio-theme #app.office-app.studio-shell .studio-case-table tbody tr:last-child { border-bottom: 1px solid var(--line); }
body.studio-theme #app.office-app.studio-shell .studio-case-table tbody tr:hover { background: #f1f2ef; }
body.studio-theme #app.office-app.studio-shell .studio-case-table > :is(p,footer) { margin-top: 9px; color: #898c93; font-size: 11px; }

/* Shared pages: remove the prior blue hero and carry the studio hierarchy
   through every existing operative and administrative route. */
body.studio-theme #app.office-app.studio-shell :is(.page-heading,.welcome-heading,.workspace-heading) { padding: 0 0 22px; margin: 0 0 24px; min-height: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: #fff; color: var(--ink); box-shadow: none; }
body.studio-theme #app.office-app.studio-shell :is(.page-heading,.welcome-heading,.workspace-heading)::before,
body.studio-theme #app.office-app.studio-shell :is(.page-heading,.welcome-heading,.workspace-heading)::after { display: none; }
body.studio-theme #app.office-app.studio-shell :is(.page-heading,.welcome-heading,.workspace-heading) :is(.display,h1) { color: #0c0f0d; font: 750 clamp(27px,2.8vw,39px)/1.2 var(--font-ui); letter-spacing: -1.2px; }
body.studio-theme #app.office-app.studio-shell :is(.page-heading,.welcome-heading,.workspace-heading) :is(.lead,p) { color: #666972; font-size: 13px; }
body.studio-theme #app.office-app.studio-shell :is(.page-heading,.welcome-heading,.workspace-heading) .eyebrow { color: #767981; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
body.studio-theme :is(.button,.case-billing .button,.draft-dialogue .button) { border-radius: 3px; box-shadow: none; }
body.studio-theme #app.office-app.studio-shell .button,
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .button { min-height: 40px; padding: 9px 14px; border: 1px solid #d9dcd6; border-radius: 3px; color: #30352e; background: #fff; font-size: 12px; font-weight: 650; }
body.studio-theme #app.office-app.studio-shell .button.primary,
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .button.primary,
body.studio-theme #app.office-app.studio-shell :is(.case-billing button[data-billing-action=time],.case-billing button[data-billing-action=save],.case-documents button[data-doc-action=create],.case-documents .cd-editor-foot button) { color: #f4f7eb; background: #242824; border-color: #242824; }
body.studio-theme #app.office-app.studio-shell .button.primary:hover:not(:disabled),
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .button.primary:hover:not(:disabled),
body.studio-theme #app.office-app.studio-shell :is(.case-billing button[data-billing-action=time],.case-billing button[data-billing-action=save],.case-documents button[data-doc-action=create],.case-documents .cd-editor-foot button):hover:not(:disabled) { color: #151b0e; background: var(--lime); border-color: #cce861; }
body.studio-theme #app.office-app.studio-shell .button.ghost,
body.studio-theme #app.office-app.studio-shell :is(.page-heading,.welcome-heading,.workspace-heading) .button.ghost,
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .button.ghost { background: transparent; border-color: transparent; color: #41453f; }
body.studio-theme #app.office-app.studio-shell .button:not(.primary):hover:not(:disabled),
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .button:not(.primary):hover:not(:disabled) { background: #f1f3ed; border-color: #c6cbc0; color: #20271b; }
body.studio-theme #app.office-app.studio-shell .button.danger,
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .button.danger { color: var(--red); background: var(--red-soft); border-color: #e8bdb7; }
body.studio-theme #app.office-app.studio-shell :is(.panel,.metric-card,.document-card,.case-card,.workflow-card,.workspace-cases,.workspace-help,.guide-layout,.guide-complete,.billing-card,.billing-form,.dd-sheet,.dd-proposal,.dd-composer,.cd-layout,.cd-paper) { border-color: var(--line); border-radius: 3px; box-shadow: none; }
body.studio-theme #app.office-app.studio-shell :is(.panel-title,.workspace-section-head h2,.billing-card-head strong,.case-documents h3,.case-billing h2,.case-billing h3) { color: #171b17; }
body.studio-theme #app.office-app.studio-shell :is(.panel-header,.panel-footer,.panel-body,.workspace-section-head,.table-row) { border-color: var(--line); }
body.studio-theme #app.office-app.studio-shell :is(.metric-value,.status-number,.operation-stat strong,.billing-totals strong) { color: #111711; }
body.studio-theme #app.office-app.studio-shell :is(.table-row.header,thead,.panel-footer,.modal-actions,.form-editor-preview,.guide-rail,.dd-scope,.dd-pending,.dd-meta dl) { background: #f7f8f5; color: var(--muted); }
body.studio-theme #app.office-app.studio-shell :is(.table-row,.office-case-list>a,.document-card,.intake-card):hover { background: #f4f6ed; border-color: #ccd2c1; }
body.studio-theme #app.office-app.studio-shell :is(.table-row.selected,.intake-card.selected,.case-documents .cd-document.selected) { background: #f0f4df; border-color: #b9c78c; color: #27311a; }
body.studio-theme #app.office-app.studio-shell .tab.active,
body.studio-theme #app.office-app.studio-shell [role=tab][aria-selected=true] { color: #171d14; border-bottom-color: #242a20; }
body.studio-theme #app.office-app.studio-shell :is(.tab,.tabs) { border-color: var(--line); }
body.studio-theme #app.office-app.studio-shell :is(.badge.neutral,.case-monogram,.workspace-count,.cd-tag) { color: #62685e; background: #f1f3ed; border-color: #e1e5d9; }
body.studio-theme #app.office-app.studio-shell :is(.badge.good,.guide-step.seen:not(.selected)>span) { color: #3e4c23; background: #f0f5df; border-color: #d3dfb2; }
body.studio-theme #app.office-app.studio-shell .badge.warning { color: #725a18; background: #faf4dc; }
body.studio-theme #app.office-app.studio-shell .badge.bad { color: #993e32; background: #fff1ed; }
body.studio-theme #app.office-app.studio-shell .dot { background: #737770; }
body.studio-theme #app.office-app.studio-shell .dot.good { background: #88a73b; }
body.studio-theme #app.office-app.studio-shell .dot.warning { background: #c6b72d; }
body.studio-theme #app.office-app.studio-shell .dot.bad { background: #d57043; }
body.studio-theme #app.office-app.studio-shell :is(.empty-icon,.office-empty-mark,.office-case-list>a>span,.guide-section-symbol,.guide-step>span) { color: #596350; background: #f6f8ef; border-color: #dbe1d0; box-shadow: none; }
body.studio-theme #app.office-app.studio-shell :is(.guide-complete,.guide-step.selected,.dd-message-user,.dd-modes label:has(input:checked),.intake-role-options .intake-check:has(input:checked)),
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .intake-role-options .intake-check:has(input:checked) { color: #2e391e; border-color: #d3dfb2; background: #f3f7e7; }
body.studio-theme #app.office-app.studio-shell .guide-step.selected>span { color: #fff; background: #252c21; border-color: #252c21; }
body.studio-theme #app.office-app.studio-shell :is(.guide-open,.dd-message-user>header strong) { color: #38462a; border-color: #cdd9b7; }
body.studio-theme #app.office-app.studio-shell :is(.dd-sheet-current,.dd-proposal,.dd-pending) { border-left-color: #a7c347; border-top-color: #a7c347; }
body.studio-theme #app.office-app.studio-shell :is(.dd-notice,.billing-notice,.cd-notice,.cd-review,.ai-notice) { background: #f5f7eb; border-color: #d8e2b9; border-left-color: #b4d456; color: #424d31; }
body.studio-theme #app.office-app.studio-shell :is(.dd-error,.billing-error,.cd-error) { color: #87382d; background: #fff2ed; border-color: #e7c5b9; }
body.studio-theme #app.office-app.studio-shell :is(.cd-review strong,.billing-notice strong,.dd-notice strong) { color: #2e3721; }
body.studio-theme #app.office-app.studio-shell :is(.cd-paper,.cd-paper h3,.case-documents .cd-editor,.document-body,.document-body h1) { color: #222622; }
body.studio-theme #app.office-app.studio-shell .cd-dark .cd-paper { background: #272d26; color: #e7ebdf; }
body.studio-theme #app.office-app.studio-shell .cd-dark .cd-paper :is(h1,h2,h3,.cd-editor) { color: #e7ebdf; }
body.studio-theme #app.office-app.studio-shell .bottom-note { margin-top: 24px; padding-top: 15px; color: #81867c; border-color: var(--line); font-size: 10px; }

/* Real inputs, full-length legal prose and scrolling data remain usable. */
body.studio-theme :is(.input,.select,.textarea,.billing-field input,.billing-field select,.billing-field textarea,.case-documents input,.case-documents select,.dd-composer textarea) { min-height: 42px; max-width: 100%; border: 1px solid #ccd0c5; border-radius: 3px; color: #20271c; background: #fff; box-shadow: none; }
body.studio-theme :is(input,textarea)::placeholder { color: #85897f; }
body.studio-theme :is(.field-label,.billing-field,.billing-check,.billing-choices label,.cd-editor-label) { color: #474e40; }
body.studio-theme :is(.field-help,.billing-hint) { color: #777e70; }
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .modal-backdrop { background: #171d1966; backdrop-filter: blur(2px); padding: 26px; }
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .modal { max-height: calc(100dvh - 52px); border: 1px solid #d6dbce; border-radius: 6px; box-shadow: 0 18px 70px #121b1724; background: #fff; }
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .modal-header { padding: 22px 26px; border-color: #e4e7dc; background: #fff; }
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .modal-header h2 { color: #151d13; font-family: var(--font-ui); letter-spacing: -.6px; }
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .modal-header p { color: #737b6c; }
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .modal-body { min-width: 0; min-height: 0; overflow-y: auto; padding: 24px 26px; }
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .modal-actions { padding: 16px 26px; background: #f7f8f2; border-color: #e4e7dc; }
body.studio-theme .toast { border-color: #dce2cf; border-radius: 4px; color: #303b28; box-shadow: 0 8px 25px #1a241415; }
body.studio-theme .session-cover { background: #fff; }
body.studio-theme .initial-mark { background: #252c21; color: var(--lime); border-radius: 4px; }


/* Actual shell controls retain native details navigation and application focus guards. */
body.studio-theme #app.office-app.studio-shell .studio-rail { flex-direction: column; }
body.studio-theme #app.office-app.studio-shell .studio-rail .nav-link.active > svg { color: #fff; }
body.studio-theme #app.office-app.studio-shell :is(.studio-drawer-heading,.studio-drawer-links) { display: none; }
body.studio-theme #app.office-app.studio-shell .studio-rail-main { display: grid; align-content: start; }
body.studio-theme #app.office-app.studio-shell .studio-rail-bottom { margin-top: auto; padding-top: 24px; }
body.studio-theme #app.office-app.studio-shell .studio-tools .studio-search { cursor: pointer; }
body.studio-theme #app.office-app.studio-shell .studio-search > svg { width: 15px; height: 15px; }
body.studio-theme #app.office-app.studio-shell .studio-search kbd { margin-left: auto; padding: 1px 4px; color: #777a81; background: #f4f4f5; font: 10px var(--font-ui); white-space: nowrap; }
body.studio-theme #app.office-app.studio-shell .studio-notifications { display: grid; place-items: center; width: 30px; height: 40px; color: #24282b; }
body.studio-theme #app.office-app.studio-shell .studio-notifications svg { width: 18px; height: 18px; }
body.studio-theme #app.office-app.studio-shell :is(.studio-more,.studio-account) { position: relative; }
body.studio-theme #app.office-app.studio-shell :is(.studio-more,.studio-account) > summary { display: grid; place-items: center; list-style: none; cursor: pointer; }
body.studio-theme #app.office-app.studio-shell :is(.studio-more,.studio-account) > summary::-webkit-details-marker { display: none; }
body.studio-theme #app.office-app.studio-shell .studio-more { display: flex; align-items: center; }
body.studio-theme #app.office-app.studio-shell .studio-more > summary { width: 32px; height: 61px; color: #4c4f55; }
body.studio-theme #app.office-app.studio-shell .studio-more > summary svg { width: 20px; height: 20px; }
body.studio-theme #app.office-app.studio-shell .studio-more > nav,
body.studio-theme #app.office-app.studio-shell .studio-account > div { position: absolute; top: calc(100% + 9px); right: 0; z-index: 60; width: min(270px,calc(100vw - 32px)); max-height: calc(100dvh - 95px); overflow-y: auto; padding: 9px; border: 1px solid #dedfdf; border-radius: 5px; background: white; box-shadow: 0 8px 28px #0d160f14; }
body.studio-theme #app.office-app.studio-shell .studio-more:not([open]) > nav,
body.studio-theme #app.office-app.studio-shell .studio-account:not([open]) > div { display: none; }
body.studio-theme #app.office-app.studio-shell .studio-more > nav > a,
body.studio-theme #app.office-app.studio-shell .studio-account > div > :is(a,button) { display: flex; justify-content: flex-start; align-items: center; gap: 11px; width: 100%; min-height: 42px; padding: 10px 12px; border: 0; border-radius: 3px; background: white; color: #383c36; text-align: left; font-size: 12px; white-space: normal; }
body.studio-theme #app.office-app.studio-shell .studio-more > nav > a:is(:hover,.active),
body.studio-theme #app.office-app.studio-shell .studio-account > div > :is(a,button):hover { background: #f3f5ee; color: #1b2117; }
body.studio-theme #app.office-app.studio-shell .studio-more > nav > a::after { display: none; }
body.studio-theme #app.office-app.studio-shell .studio-more > nav > a svg { width: 18px; height: 18px; }
body.studio-theme #app.office-app.studio-shell .studio-account > div > :is(strong,small) { display: block; padding: 3px 12px; overflow-wrap: anywhere; }
body.studio-theme #app.office-app.studio-shell .studio-account > div > strong { color: #21261d; font-size: 13px; }
body.studio-theme #app.office-app.studio-shell .studio-account > div > small { padding-bottom: 12px; margin-bottom: 5px; border-bottom: 1px solid #e8eae2; color: #777e70; font-size: 11px; }

body.studio-theme #app.office-app.studio-shell .studio-heading-actions { display: flex; align-items: center; flex-shrink: 0; gap: 22px; }
body.studio-theme #app.office-app.studio-shell .studio-heading-actions .button.studio-primary { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 11px 17px; border-color: #222622; color: var(--lime); background: #222622; }
body.studio-theme #app.office-app.studio-shell .studio-heading-actions .button.studio-primary:hover { background: #333b2d; border-color: #333b2d; color: #ebffb1; }
body.studio-theme #app.office-app.studio-shell .studio-kpis > a:hover strong { color: #667a25; }
body.studio-theme #app.office-app.studio-shell .studio-decision-column { border: 0; overflow: visible; }
body.studio-theme #app.office-app.studio-shell .studio-decision-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #ebeee7; font-size: 11px; }
body.studio-theme #app.office-app.studio-shell .studio-decision-meta > span:first-child { text-transform: uppercase; letter-spacing: .08em; font-size: 10px; }
body.studio-theme #app.office-app.studio-shell .studio-decision-meta > span:last-child { display: inline-flex; align-items: center; gap: 8px; }
body.studio-theme #app.office-app.studio-shell .studio-decision-meta i { width: 8px; height: 8px; background: var(--lime); }
body.studio-theme #app.office-app.studio-shell .studio-next > .studio-index { color: #f6f8ee; }
body.studio-theme #app.office-app.studio-shell .studio-next > div > strong { display: block; color: #f6f7f1; font-size: 15px; line-height: 1.35; font-weight: 700; overflow-wrap: anywhere; }
body.studio-theme #app.office-app.studio-shell .studio-findings > header > a,
body.studio-theme #app.office-app.studio-shell .studio-case-table > header > a { display: inline-flex; align-items: center; gap: 12px; color: #50545a; font-size: 11px; }
body.studio-theme #app.office-app.studio-shell .studio-finding-row { width: 100%; color: #30353a; background: #fff; text-align: left; border-right: 0; border-bottom: 0; border-left: 0; border-radius: 0; cursor: pointer; }
body.studio-theme #app.office-app.studio-shell .studio-finding-row:hover { background: #f7f8f3; }
body.studio-theme #app.office-app.studio-shell .studio-finding-row > svg { width: 17px; height: 17px; color: #454b4f; }
body.studio-theme #app.office-app.studio-shell .studio-context-nav { flex-shrink: 0; }
body.studio-theme #app.office-app.studio-shell .studio-context-nav > span { flex-shrink: 0; white-space: nowrap; }
body.studio-theme #app.office-app.studio-shell .studio-context-nav .icon-button { width: 25px; height: 30px; min-height: 30px; border: 0; background: none; color: #757a83; }
body.studio-theme #app.office-app.studio-shell .studio-context-nav .icon-button svg { width: 16px; height: 16px; }
body.studio-theme #app.office-app.studio-shell .studio-context-tabs button { background: white; border-top: 0; border-right: 0; border-left: 0; border-radius: 0; cursor: pointer; }
body.studio-theme #app.office-app.studio-shell .studio-document-kind { margin: 0; color: #676b73; font-size: 11px; }
body.studio-theme #app.office-app.studio-shell .studio-context-facts { display: flex; flex-wrap: wrap; gap: 17px 35px; padding-top: 7px; margin: 0; }
body.studio-theme #app.office-app.studio-shell .studio-context-facts > div { flex: 1; min-width: 95px; }
body.studio-theme #app.office-app.studio-shell .studio-context-facts dt { color: #8a8d94; font-size: 9px; }
body.studio-theme #app.office-app.studio-shell .studio-context-facts dd { margin: 4px 0 0; color: #5d6169; font-size: 10px; }
body.studio-theme #app.office-app.studio-shell .studio-context > footer > svg { width: 15px; height: 15px; }
body.studio-theme #app.office-app.studio-shell .studio-context > footer > span { min-width: 0; overflow-wrap: anywhere; }
body.studio-theme #app.office-app.studio-shell .studio-case-table a { color: inherit; }
body.studio-theme #app.office-app.studio-shell .studio-case-table tbody tr.is-selected { background: #f0f1ef; }
body.studio-theme #app.office-app.studio-shell .studio-case-table td:last-child > a { display: inline-flex; align-items: center; gap: 10px; }
body.studio-theme #app.office-app.studio-shell .studio-case-table td:last-child svg { width: 14px; height: 14px; }
body.studio-theme #app.office-app.studio-shell .studio-case-name { display: block; margin-top: 3px; color: #80858a; font-size: 10px; font-weight: 400; }
body.studio-theme #app.office-app.studio-shell .studio-state { display: inline-flex; align-items: center; gap: 9px; }
body.studio-theme #app.office-app.studio-shell .studio-state > i { width: 7px; height: 7px; border-radius: 50%; background: #c0c2c6; }
body.studio-theme #app.office-app.studio-shell .studio-state.needs-review > i { background: #ff9360; }
body.studio-theme #app.office-app.studio-shell .studio-state.available > i { background: #a8c34d; }
body.studio-theme #app.office-app.studio-shell .studio-table-empty { padding: 26px 20px; border-block: 1px solid var(--line); background: #fafbf8; }
body.studio-theme #app.office-app.studio-shell .studio-table-empty strong { display: block; color: #343a2d; font-size: 13px; }
body.studio-theme #app.office-app.studio-shell .studio-table-empty p { margin: 6px 0 0; color: #808575; font-size: 12px; }

/* Override every previous hero/modal selector, including high-specificity office rules. */
body.studio-theme #app.office-app.studio-shell .office-page > :is(.page-heading,.welcome-heading,.workspace-heading) { min-height: 0; padding: 0 0 22px; margin-bottom: 24px; background: #fff; }
body.studio-theme #app.office-app.studio-shell .office-page > :is(.page-heading,.welcome-heading,.workspace-heading) :is(h1,.display) { color: #111511; }
body.studio-theme #app.office-app.studio-shell .office-page > :is(.page-heading,.welcome-heading,.workspace-heading) :is(p,.eyebrow) { color: #70766a; }
body.studio-theme #app.office-app.studio-shell .office-page > :is(.page-heading,.welcome-heading,.workspace-heading) .button { color: #343b2d; border-color: #dce1d5; background: #fff; }
body.studio-theme #app.office-app.studio-shell .office-page > :is(.page-heading,.welcome-heading,.workspace-heading) .button.primary { color: #f3f8e8; border-color: #252c21; background: #252c21; }
body.studio-theme #app.office-app.studio-shell .office-page > :is(.page-heading,.welcome-heading,.workspace-heading) .button:hover:not(:disabled) { color: #243018; border-color: #d6e5aa; background: #f0f6de; }
body.studio-theme #app.office-app.studio-shell :is(a,button,input,select,textarea,summary):focus-visible { outline: 2px solid #20281a; outline-offset: 3px; }
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .modal-header { border-bottom: 1px solid #e2e5dc; background: #fff; color: #20261b; }
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .modal-header h2 { color: #171d13; }
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .modal-header p { color: #70796a; }
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .modal-header .icon-button { color: #4e5745; background: #fff; border-color: #dce2d1; }
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root :is(a,button,input,select,textarea,summary):focus-visible { outline: 2px solid #20281a; outline-offset: 3px; }
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .intake-role-options .intake-check:has(input:checked) { border-color: #a8bb7b; background: #f3f7e7; }
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root :is(.input,.select,.textarea,.operation-input) { border-color: #cbd2c0; border-radius: 3px; }
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .contract-paper { color: #252c21; }


/* The former office screens use the same neutral material and lime emphasis. */
body.studio-theme #app.office-app.studio-shell :is(.employee-card,.availability-card,.rights-card,.leave-card,.office-case-context,details.due-tasks,.contracts-case,.intake-column) { border-color: #e2e3df; border-radius: 3px; }
body.studio-theme #app.office-app.studio-shell :is(.review-callout,.operation-review-context,.consultation-sources pre,.intake-column,.intake-suggestions,.intake-conversation,.contract-history,.contract-form-context,.employee-scope,.rights-recipient,.leave-decision-effects) { border-color: #e0e4d6; background: #f7f8f3; color: #51594a; }
body.studio-theme #app.office-app.studio-shell .review-callout { border-left-color: #b6d557; border-radius: 3px; }
body.studio-theme #app.office-app.studio-shell .review-callout :is(strong,svg) { color: #404c2e; }
body.studio-theme #app.office-app.studio-shell :is(.operation-review,.employee-scope,.rights-recipient,.leave-decision-effects) { border-left-color: #c6d798; }
body.studio-theme #app.office-app.studio-shell :is(.input,.select,.textarea,.operation-input) { border-color: #cbd0c3; border-radius: 3px; }
body.studio-theme #app.office-app.studio-shell :is(.input,.select,.textarea,.operation-input):disabled { color: #878d81; background: #f5f6f2; }
body.studio-theme #app.office-app.studio-shell :is(.tab,.document-tab):hover { background: #f7f8f3; }
body.studio-theme #app.office-app.studio-shell :is(.office-case-context,details.due-tasks) > summary:hover { background: #f7f8f3; }
body.studio-theme #app.office-app.studio-shell .intake-column > header > span { color: #4d5545; background: #ecefe4; }
body.studio-theme #app.office-app.studio-shell .intake-card.selected { border-left-color: #97b342; background: #fcfdf7; }
body.studio-theme #app.office-app.studio-shell :is(.dd-sheet,.dd-composer,.dd-proposal,.cd-paper,.billing-card,.ai-card) { background-color: #fff; }
body.studio-theme #app.office-app.studio-shell .studio-reference { max-width: 100%; overflow-wrap: anywhere; }
body.studio-theme #app.office-app.studio-shell .studio-context-empty { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; }
body.studio-theme #app.office-app.studio-shell .studio-context-empty > svg { color: #9aa77d; margin-bottom: 10px; }

@media (max-width: 1250px) {
  body.studio-theme #app.office-app.studio-shell .studio-heading-actions { gap: 16px; }
  body.studio-theme #app.office-app.studio-shell .studio-topbar { gap: 18px; grid-template-columns: minmax(115px,1fr) auto minmax(175px,1fr); padding-inline: 18px; }
  body.studio-theme #app.office-app.studio-shell .studio-topnav { gap: 22px; }
  body.studio-theme #app.office-app.studio-shell .studio-tools { gap: 9px; }
  body.studio-theme #app.office-app.studio-shell .studio-tools .studio-search { min-width: 135px; }
  body.studio-theme #app.office-app.studio-shell .studio-heading { padding-inline: 8px; gap: 18px; }
  body.studio-theme #app.office-app.studio-shell .studio-kpis > :is(a,div,article) { min-width: 72px; padding-inline: 15px; }
  body.studio-theme #app.office-app.studio-shell .studio-heading h1 { font-size: 39px; }
  body.studio-theme #app.office-app.studio-shell .studio-decision h2 { font-size: 33px; }
  body.studio-theme #app.office-app.studio-shell .studio-document-preview { padding: 21px; }
  body.studio-theme #app.office-app.studio-shell .studio-document-preview h3 { font-size: 23px; }
}
@media (min-width: 961px) {
  body.studio-theme #app.office-app.studio-shell .sidebar.studio-rail { transform: none; visibility: visible; pointer-events: auto; }
  body.studio-theme #app.office-app.studio-shell .studio-rail .mobile-nav-close { display: none; }
  body.studio-theme #app.office-app.studio-shell .mobile-menu { display: none; }
}
@media (max-width: 960px) {
  body.studio-theme #app.office-app.studio-shell .studio-drawer-heading { display: flex; align-items: center; padding: 0 11px 26px; }
  body.studio-theme #app.office-app.studio-shell .studio-drawer-links { display: block; }
  body.studio-theme #app.office-app.studio-shell .studio-rail-main { display: none; }
  body.studio-theme #app.office-app.studio-shell .sidebar.studio-rail { padding-top: 26px; }
  body.studio-theme #app.office-app.studio-shell .studio-heading-actions { width: 100%; justify-content: space-between; }
  body.studio-theme #app.office-app.studio-shell .studio-heading-actions .studio-kpis { width: auto; }
  body.studio-theme #app.office-app.studio-shell .studio-topbar { grid-template-columns: minmax(0,1fr) auto; gap: 12px; padding-inline: 20px; }
  body.studio-theme #app.office-app.studio-shell .studio-topnav { display: none; }
  body.studio-theme #app.office-app.studio-shell .studio-tools { gap: 10px; }
  body.studio-theme #app.office-app.studio-shell .studio-tools .mobile-menu { display: inline-grid; width: 40px; min-width: 40px; min-height: 40px; color: #1f291a; }
  body.studio-theme #app.office-app.studio-shell .sidebar.studio-rail { inset: 0 auto 0 0; z-index: 75; width: min(300px,calc(100vw - 36px)); height: 100dvh; padding: 26px 18px 22px; transform: translateX(-100%); visibility: hidden; transition: transform .18s ease,visibility .18s; }
  body.studio-theme #app.office-app.studio-shell .sidebar.studio-rail.open { transform: translateX(0); visibility: visible; pointer-events: auto; box-shadow: 12px 0 35px #16200e20; }
  body.studio-theme #app.office-app.studio-shell .studio-rail .nav-link { justify-content: flex-start; gap: 15px; width: 100%; min-height: 46px; padding: 11px 14px; margin-bottom: 3px; font-size: 13px; }
  body.studio-theme #app.office-app.studio-shell .studio-rail .nav-link > span:not(.nav-count) { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; }
  body.studio-theme #app.office-app.studio-shell .studio-rail .nav-link.active::after { top: 20px; right: 11px; }
  body.studio-theme #app.office-app.studio-shell .studio-rail .nav-count { position: static; margin-left: auto; }
  body.studio-theme #app.office-app.studio-shell .studio-rail .nav-group-label { display: block; padding: 12px 13px 4px; color: #858d7a; font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
  body.studio-theme #app.office-app.studio-shell .studio-rail .mobile-nav-close { display: grid; position: absolute; top: 15px; right: 15px; color: #20291a; background: #f4f6ed; border: 1px solid #dce2d1; }
  body.studio-theme #app.office-app.studio-shell .studio-rail .office-sidebar-bottom { justify-content: flex-start; gap: 12px; padding-inline: 14px; }
  body.studio-theme #app.office-app.studio-shell .studio-rail .office-sidebar-bottom > div { display: block; }
  body.studio-theme #app.office-app.studio-shell .mobile-overlay.open { z-index: 70; background: #1a24166b; }
  body.studio-theme #app.office-app.studio-shell .main.studio-main { margin-left: 0; padding-top: 62px; }
  body.studio-theme #app.office-app.studio-shell .page.studio-page { padding: 23px 20px 30px; }
  body.studio-theme #app.office-app.studio-shell .studio-heading { align-items: flex-start; flex-direction: column; padding: 0; gap: 20px; margin-bottom: 22px; }
  body.studio-theme #app.office-app.studio-shell .studio-heading h1 { font-size: 38px; }
  body.studio-theme #app.office-app.studio-shell .studio-kpis { width: 100%; justify-content: flex-start; }
  body.studio-theme #app.office-app.studio-shell .studio-kpis > :is(a,div,article) { flex: 1; padding-inline: 17px; }
  body.studio-theme #app.office-app.studio-shell .studio-review-grid { grid-template-columns: minmax(0,1fr); gap: 20px; }
  body.studio-theme #app.office-app.studio-shell .studio-decision { padding: 21px; min-height: 290px; }
  body.studio-theme #app.office-app.studio-shell .studio-decision h2 { font-size: 30px; }
  body.studio-theme #app.office-app.studio-shell :is(.studio-next,.studio-decision-item,.studio-next-finding) { flex-wrap: wrap; gap: 15px; }
  body.studio-theme #app.office-app.studio-shell :is(.studio-next,.studio-decision-item,.studio-next-finding) > .button { margin-left: auto; }
  body.studio-theme #app.office-app.studio-shell .studio-findings { padding: 20px; }
  body.studio-theme #app.office-app.studio-shell .studio-context { padding: 17px 16px 6px; }
  body.studio-theme #app.office-app.studio-shell .studio-context > header h2 { font-size: 19px; }
  body.studio-theme #app.office-app.studio-shell .studio-document-preview { padding: 20px 16px; }
  body.studio-theme #app.office-app.studio-shell .studio-document-preview h3 { font-size: 22px; }
}
@media (max-width: 700px) {
  body.studio-theme #app.office-app.studio-shell .studio-topbar { padding-inline: 16px; }
  body.studio-theme #app.office-app.studio-shell .studio-account > div { position: fixed; top: 65px; right: 16px; }

  body.studio-theme #app.office-app.studio-shell .studio-heading-actions { flex-wrap: wrap; flex-direction: column; align-items: stretch; gap: 24px; }
  body.studio-theme #app.office-app.studio-shell .studio-heading-actions .button.studio-primary { justify-content: center; }
  body.studio-theme #app.office-app.studio-shell .studio-heading-actions .studio-kpis { width: 100%; }
  body.studio-theme #app.office-app.studio-shell .studio-heading-actions .studio-kpis > a:first-child { padding-left: 0; border-left: 0; }
  body.studio-theme #app.office-app.studio-shell .studio-next { gap: 15px; }
  body.studio-theme #app.office-app.studio-shell .studio-next > div { min-width: 120px; }
  body.studio-theme #app.office-app.studio-shell .studio-next .button { width: 100%; margin-top: 4px; }
  body.studio-theme #app.office-app.studio-shell .studio-context-nav .icon-button { width: 40px; height: 44px; }
  body.studio-theme #app.office-app.studio-shell .studio-context-tabs button { min-height: 44px; }
  body.studio-theme #app.office-app.studio-shell .studio-notifications { width: 35px; min-height: 44px; }

  body.studio-theme #app.office-app.studio-shell .studio-brand { font-size: 26px; }
  body.studio-theme #app.office-app.studio-shell .studio-tools { gap: 3px; }
  body.studio-theme #app.office-app.studio-shell .studio-tools .studio-search { min-width: 40px; width: 40px; padding: 0; justify-content: center; border: 0; }
  body.studio-theme #app.office-app.studio-shell .studio-tools .studio-search > :is(span,kbd),
  body.studio-theme #app.office-app.studio-shell .studio-tools .key-hint { display: none; }
  body.studio-theme #app.office-app.studio-shell .page.studio-page { padding: 22px 16px 26px; }
  body.studio-theme #app.office-app.studio-shell .studio-heading h1 { font-size: 35px; letter-spacing: -1.3px; }
  body.studio-theme #app.office-app.studio-shell .studio-heading p { font-size: 13px; }
  body.studio-theme #app.office-app.studio-shell .studio-kpis { flex-wrap: wrap; gap: 17px 0; }
  body.studio-theme #app.office-app.studio-shell .studio-kpis > .button { flex-basis: 100%; margin: 0; width: 100%; }
  body.studio-theme #app.office-app.studio-shell .studio-kpis > :is(a,div,article) { min-width: 0; flex: 1; padding-inline: 14px; }
  body.studio-theme #app.office-app.studio-shell .studio-kpis > :is(a,div,article):first-of-type { padding-left: 0; border-left: 0; }
  body.studio-theme #app.office-app.studio-shell .studio-kpis :is(strong,b) { font-size: 25px; }
  body.studio-theme #app.office-app.studio-shell .studio-kpis :is(span,small) { font-size: 10px; }
  body.studio-theme #app.office-app.studio-shell .studio-review-grid { grid-template-columns: minmax(0,1fr); gap: 20px; }
  body.studio-theme #app.office-app.studio-shell .studio-decision { min-height: 0; padding: 23px 21px; }
  body.studio-theme #app.office-app.studio-shell .studio-decision h2 { font-size: 33px; }
  body.studio-theme #app.office-app.studio-shell .studio-decision > p { font-size: 13px; }
  body.studio-theme #app.office-app.studio-shell .studio-findings { padding: 21px 20px 12px; }
  body.studio-theme #app.office-app.studio-shell .studio-context { min-height: 0; padding: 19px 17px 7px; }
  body.studio-theme #app.office-app.studio-shell .studio-context > header h2 { font-size: 21px; }
  body.studio-theme #app.office-app.studio-shell .studio-document-preview { padding: 23px 20px; }
  body.studio-theme #app.office-app.studio-shell .studio-document-preview h3 { font-size: 25px; }
  body.studio-theme #app.office-app.studio-shell .studio-case-table { margin-top: 26px; overflow-x: auto; }
  body.studio-theme #app.office-app.studio-shell .studio-case-table table { min-width: 550px; }
  body.studio-theme #app.office-app.studio-shell .studio-case-table :is(th,td) { padding: 10px 13px; }
  body.studio-theme #app.office-app.studio-shell :is(.button,.button.small,.icon-button) { min-height: 44px; }
  body.studio-theme #app.office-app.studio-shell :is(.page-heading,.welcome-heading,.workspace-heading) { margin-bottom: 20px; padding-bottom: 20px; }
  body.studio-theme #app.office-app.studio-shell :is(.input,.select,.textarea),
  body.studio-theme :is(.modal input:not([type=checkbox]):not([type=radio]),.modal select,.modal textarea,.billing-field input,.billing-field select,.billing-field textarea) { min-height: 44px; font-size: 16px; }
  body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .modal-backdrop { padding: 8px; }
  body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .modal { max-height: calc(100dvh - 16px); border-radius: 5px; }
  body.studio-theme :is(.modal-header,.modal-body) { padding: 19px; }
  body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .modal-actions { padding: 15px 19px max(15px,env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) {
  body.studio-theme #app.office-app.studio-shell .studio-topbar { padding-inline: 12px; }
  body.studio-theme #app.office-app.studio-shell .page.studio-page { padding-inline: 12px; }
  body.studio-theme #app.office-app.studio-shell .studio-brand { font-size: 25px; }
  body.studio-theme #app.office-app.studio-shell .studio-tools :is(.studio-avatar,.office-person-mark) { width: 30px; height: 30px; }
  body.studio-theme #app.office-app.studio-shell .studio-heading h1 { font-size: 32px; }
  body.studio-theme #app.office-app.studio-shell .studio-decision h2 { font-size: 29px; }
  body.studio-theme #app.office-app.studio-shell .studio-context > header { flex-wrap: wrap; }
  body.studio-theme #app.office-app.studio-shell .studio-context > header > div { margin-left: auto; }
}

/* Operative drafting, beA and onboarding share the same material system. */
body.studio-theme #app.office-app.studio-shell :is(.operative-ai,.bea-panel,.bea-workspace fieldset,.billing-editor,.billing-account,.case-team-panel,.case-team-warning,.billing-cards article,.billing-totals,.billing-choices,.cd-sidebar,.dd-history article,.dd-message,.dd-modes label) { border-radius: 3px; border-color: #e0e3db; }
body.studio-theme #app.office-app.studio-shell .operative-ai { overflow: visible; }
body.studio-theme #app.office-app.studio-shell :is(.oa-header,.oa-saved,.oa-sources,.oa-publish,.oa-draft) { border-color: #e2e5dc; }
body.studio-theme #app.office-app.studio-shell :is(.oa-header p,.oa-help,.oa-draft span,.oa-draft small) { color: #6a7362; }
body.studio-theme #app.office-app.studio-shell :is(.oa-header,.oa-header>div,.oa-saved,.oa-publish,.oa-draft,.bea-row>div,.bea-heading>div) { min-width: 0; }
body.studio-theme #app.office-app.studio-shell .oa-form textarea { border-color: #cbd2c0; border-radius: 3px; background: #fff; color: #27301f; }
body.studio-theme #app.office-app.studio-shell .oa-form .button { background: #242824; color: #f4f7eb; border-color: #242824; }
body.studio-theme #app.office-app.studio-shell .oa-form .button:hover:not(:disabled) { background: var(--lime); color: #1a2211; border-color: #cfeb6c; }
body.studio-theme #app.office-app.studio-shell .oa-draft { color: #252e20; overflow-wrap: anywhere; }
body.studio-theme #app.office-app.studio-shell .oa-draft:hover strong { color: #627632; }
body.studio-theme #app.office-app.studio-shell :is(.oa-sources pre,.oa-preview pre) { background: #f7f8f3; color: #555e4c; }
body.studio-theme #app.office-app.studio-shell .oa-notice { border-color: #c1c97e; background: #f8f8e9; color: #66602e; }
body.studio-theme #app.office-app.studio-shell .oa-error { border-color: #ca8c76; background: #fff2ed; color: #87382d; }
body.studio-theme #app.office-app.studio-shell .bea-workspace :is(input:not([type=checkbox]),select,fieldset) { border-color: #cfd5c7; border-radius: 3px; }
body.studio-theme #app.office-app.studio-shell .bea-warning { border-color: #e0dcae; border-left-color: #b5ad45; background: #fbfaed; color: #6c642e; }
body.studio-theme #app.office-app.studio-shell .bea-error { border-color: #e6c7bb; border-left-color: #ae6550; background: #fff3ee; color: #884836; }
body.studio-theme #app.office-app.studio-shell .bea-error :is(p,small) { color: #884836; }
body.studio-theme #app.office-app.studio-shell .bea-warning :is(p,small) { color: #6c642e; }
body.studio-theme #app.office-app.studio-shell .guide-progress { background: #e4e8dc; }
body.studio-theme #app.office-app.studio-shell .guide-progress>span { background: #9fb847; }
body.studio-theme #app.office-app.studio-shell .guide-step:hover { background: #f3f5ed; }
body.studio-theme #app.office-app.studio-shell .guide-step strong { min-width: 0; overflow-wrap: anywhere; }
body.studio-theme #app.office-app.studio-shell .guide-instructions li { border-color: #e5e8dd; }
body.studio-theme #app.office-app.studio-shell .guide-instructions li>span { color: #8a9280; }
body.studio-theme #app.office-app.studio-shell :is(.guide-step,.guide-open,.guide-complete) { border-radius: 3px; }
body.studio-theme #app.office-app.studio-shell :is(.source-pane,.document-pane,.document-tabs,.cd-sidebar,.cd-create,.cd-paper-head) { border-color: #e0e4d9; }
body.studio-theme #app.office-app.studio-shell .source-line.highlight { color: #313c23; background: #eff6d7; }
body.studio-theme #app.office-app.studio-shell :is(.dd-messages,.cd-source,.source-lines,.report-table,.run-table) { overscroll-behavior-inline: contain; }

body.studio-theme #app.office-app.studio-shell :is(.day-task-icon,.day-empty>svg,.day-empty>.day-empty-icon,.capability-panel .readiness-icon) { color: #768368; }
body.studio-theme #app.office-app.studio-shell .day-task-icon { background: #f3f5ed; border-color: #dde3d2; }

/* The separate password page receives studio-login from its server template. */
body.studio-theme.studio-login { min-height: 100dvh; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); background: #fff; color: #1b2018; }
body.studio-theme.studio-login main { width: 100%; max-width: 760px; margin: auto; padding: 64px clamp(28px,7vw,100px); }
body.studio-theme.studio-login .brand { color: #141811; margin-bottom: 64px; }
body.studio-theme.studio-login .brand.studio-brand { display: inline-flex; align-items: baseline; gap: 0; min-height: 0; font-size: 31px; line-height: 1; font-weight: 750; letter-spacing: -1.7px; }
body.studio-theme.studio-login .brand.studio-brand > span { display: inline; width: auto; height: auto; padding: 0; margin: 0; background: none; color: #b7df42; font: inherit; }
body.studio-theme.studio-login .brand:not(.studio-brand) span { border: 0; border-radius: 3px; background: #242a20; color: var(--lime); }
body.studio-theme.studio-login :is(.eyebrow,.intro,#status,.footnote) { color: #757c6e; }
body.studio-theme.studio-login h1 { color: #141912; font-weight: 750; font-size: 36px; letter-spacing: -1.2px; }
body.studio-theme.studio-login label { color: #424b38; }
body.studio-theme.studio-login input { border: 1px solid #ccd3c1; border-radius: 3px; background: #fff; color: #252e1c; }
body.studio-theme.studio-login .button { border-color: #252b21; border-radius: 3px; background: #252b21; color: #eff5e4; }
body.studio-theme.studio-login .button:hover:not(:disabled) { border-color: #d1e97a; background: var(--lime); color: #263117; }
body.studio-theme.studio-login .button.secondary { border-color: #d8dfcc; background: #fff; color: #4c5c36; }
body.studio-theme.studio-login :is(button,a,input):focus-visible { outline-color: #364327; }
body.studio-theme.studio-login #restart { color: #566c32; }
body.studio-theme.studio-login aside { background: #252a24; color: #f5f7ef; }
body.studio-theme.studio-login aside h2 { color: #f5f7ef; }
body.studio-theme.studio-login aside :is(.number,p,small) { color: #ced5c4; }
body.studio-theme.studio-login aside .number { color: var(--lime); }
body.studio-theme.studio-login aside .rule { background: #505a46; }
@media (max-width: 1000px) {
  body.studio-theme #app.office-app.studio-shell .oa-layout { grid-template-columns: minmax(0,1fr); gap: 28px; }
  body.studio-theme #app.office-app.studio-shell .oa-saved { padding: 22px 0 0; border-left: 0; border-top: 1px solid #e2e5dc; }
}
@media (max-width: 760px) {
  body.studio-theme #app.office-app.studio-shell .studio-next { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: start; gap: 15px; }
  body.studio-theme #app.office-app.studio-shell .studio-next > div { min-width: 0; }
  body.studio-theme #app.office-app.studio-shell .studio-next > .button { grid-column: 1 / -1; width: 100%; margin: 3px 0 0; }
}
@media (max-width: 800px) {
  body.studio-theme.studio-login { display: block; }
  body.studio-theme.studio-login main { padding: 40px 24px; max-width: 510px; }
  body.studio-theme.studio-login .brand { margin-bottom: 50px; }
  body.studio-theme.studio-login aside { display: none; }
}
@media (max-width: 700px) {
  body.studio-theme #app.office-app.studio-shell .oa-form textarea { font-size: 16px; }
  body.studio-theme #app.office-app.studio-shell .guide-body h2 { overflow-wrap: anywhere; }
  body.studio-theme #app.office-app.studio-shell .bea-status { overflow-wrap: anywhere; }
  body.studio-theme #app.office-app.studio-shell .bea-entries small { white-space: normal; }
}
@media (max-width: 380px) {
  body.studio-theme.studio-login main { padding: 28px 20px; }
  body.studio-theme #app.office-app.studio-shell .guide-step { display: flex; width: 100%; }
}


/* Overview only: retain table content and every action as labelled mobile cards. */
@media (max-width: 600px) {
  body.studio-theme #app.office-app.studio-shell .studio-case-table { overflow: visible; }
  body.studio-theme #app.office-app.studio-shell .studio-case-table table { display: block; min-width: 0; width: 100%; table-layout: auto; }
  body.studio-theme #app.office-app.studio-shell .studio-case-table thead { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); white-space: nowrap; border: 0; }
  body.studio-theme #app.office-app.studio-shell .studio-case-table tbody { display: grid; gap: 12px; width: 100%; margin-top: 12px; }
  body.studio-theme #app.office-app.studio-shell .studio-case-table tbody tr { display: grid; grid-template-columns: minmax(0,1fr); min-width: 0; border: 1px solid #e0e3db; border-radius: 3px; background: #fff; }
  body.studio-theme #app.office-app.studio-shell .studio-case-table tbody tr.is-selected { background: #f5f7ef; border-color: #d3dcc2; }
  body.studio-theme #app.office-app.studio-shell .studio-case-table td,
  body.studio-theme #app.office-app.studio-shell .studio-case-table :is(td:first-child,td:last-child) { display: grid; grid-template-columns: 80px minmax(0,1fr); align-items: start; gap: 12px; width: auto; min-width: 0; padding: 11px 14px; border: 0; color: #353b2e; font-size: 12px; line-height: 1.6; }
  body.studio-theme #app.office-app.studio-shell .studio-case-table td + td { border-top: 1px solid #e6e9df; }
  body.studio-theme #app.office-app.studio-shell .studio-case-table td::before { content: attr(data-label); color: #7a8270; font-size: 10px; font-weight: 500; line-height: 1.9; }
  body.studio-theme #app.office-app.studio-shell .studio-case-table td > * { min-width: 0; overflow-wrap: anywhere; }
  body.studio-theme #app.office-app.studio-shell .studio-case-table td:last-child > a { align-self: center; min-height: 34px; color: #2d3920; font-weight: 650; }
  body.studio-theme #app.office-app.studio-shell .studio-case-table .studio-case-name { font-size: 11px; line-height: 1.6; }
  body.studio-theme #app.office-app.studio-shell .studio-case-table .studio-state { align-items: baseline; }
  body.studio-theme #app.office-app.studio-shell .studio-case-table .studio-state > i { flex-shrink: 0; }
}

@media (prefers-reduced-motion: reduce) {
  body.studio-theme *,body.studio-theme *::before,body.studio-theme *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  body.studio-theme :is(a,button,input,textarea,select,summary):focus-visible { outline-color: Highlight; }
  body.studio-theme #app.office-app.studio-shell :is(.nav-link.active,.tab.active,.studio-topnav .active) { outline: 1px solid Highlight; }
}

/* Final browser checks: align search glyphs with the real input box. */
body.studio-theme .searchbox { display: block; min-width: 0; }
body.studio-theme .searchbox > svg { top: 50%; left: 13px; transform: translateY(-50%); pointer-events: none; }
body.studio-theme .searchbox .input,
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .searchbox .input { padding-left: 38px; }
body.studio-theme #app.office-app.studio-shell .tab:not(.active) { border-bottom-color: transparent; }
body.studio-theme #app.office-app.studio-shell a.studio-primary { flex-direction: row-reverse; }

/* Standalone recipient page shares the studio language without staff controls. */
body.studio-theme.booking-public { display:block; margin:0; min-width:320px; min-height:100dvh; }
body.studio-theme.booking-public .booking-public-header { display:flex; align-items:center; justify-content:space-between; gap:16px; border-bottom:1px solid var(--line); padding:20px 32px; }
body.studio-theme.booking-public main { width:min(100%,960px); min-width:0; margin:0 auto; padding:48px 32px; }
body.studio-theme.booking-public .booking-public-header > span:last-child { color:var(--muted); font-size:13px; }
@media(max-width:600px) { body.studio-theme.booking-public .booking-public-header { padding:18px 20px; } body.studio-theme.booking-public main { padding:30px 20px; } }
body.studio-theme .booking-workspace .booking-panel { border-radius:var(--radius); }
body.studio-theme .booking-workspace .button { border:1px solid var(--line); border-radius:var(--radius); padding:10px 14px; background:var(--paper); color:var(--ink); font-weight:650; }
body.studio-theme .booking-workspace :is([data-booking-action=invite],[data-booking-action=urgent],[data-invitation-slot]) { background:var(--lime); color:var(--ink); border-color:var(--lime); }

/* Operative V1 workspaces use the same restrained Studio controls. */
body.studio-theme :is(.case-team-workspace,.calendar-sync-workspace,.case-mail-workspace) .button { border:1px solid var(--line); border-radius:3px; padding:10px 14px; background:var(--paper); color:var(--ink); font-weight:650; }
body.studio-theme :is(.case-team-panel,.case-team-warning,.case-mail-workspace fieldset) { border-radius:3px; }
body.studio-theme :is(.case-team-fields,.case-mail-workspace) :is(input:not([type=checkbox]),select,textarea) { border-radius:3px; }
body.studio-theme :is(.case-team-workspace,.calendar-sync-workspace,.case-mail-workspace) .button:hover:not(:disabled) { background:#eef1e8; border-color:#adb49f; }
body.studio-theme :is(.case-team-workspace,.calendar-sync-workspace,.case-mail-workspace) .button:disabled { opacity:.5; cursor:not-allowed; }
body.studio-theme.booking-public .studio-brand { font-size:28px; font-weight:800; letter-spacing:-1.5px; line-height:1.1; color:var(--ink); }
body.studio-theme.booking-public .studio-brand > span { color:#c1e64c; }

/* Peter's working board: compact, independently scrollable lists and focused cards. */
body.studio-theme .intake-board{display:flex;gap:16px;overflow-x:auto;align-items:flex-start;padding:4px 0 20px;max-width:100%;scroll-snap-type:x proximity}
body.studio-theme .intake-column{flex:0 0 290px;min-width:0;background:#f2f3f0;border:1px solid #e0e3db;border-radius:10px;padding:10px}
body.studio-theme .intake-column>header{padding:6px 4px 12px;gap:8px;align-items:center}
body.studio-theme .intake-column>header h2{font:600 14px/1.35 var(--font-ui);color:#242722}
body.studio-theme .intake-cards{display:flex;flex-direction:column;gap:8px;max-height:calc(100dvh - 285px);min-height:120px;overflow-y:auto;overscroll-behavior:contain;padding:2px 3px 8px;scrollbar-width:thin}
body.studio-theme .intake-card{flex:none;padding:12px;border:1px solid #dde1d6;border-radius:6px;background:#fff;box-shadow:0 1px 2px #151a1010}
body.studio-theme .intake-card h3{font:600 14px/1.4 var(--font-ui);color:#1d2119;margin:0 0 5px}
body.studio-theme .intake-card>p{font-size:12px;line-height:1.5;-webkit-line-clamp:2;margin:0;color:#646a5f}
.intake-card-signals{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:10px;color:#62685c;font-size:11px}
.intake-card-signals>span{display:inline-flex;align-items:center;gap:4px}.intake-card-due{margin-left:auto}
.intake-area-label{display:inline-block;padding:3px 7px;background:#d8ebc0;color:#244813;border-radius:3px;font-size:11px;margin-bottom:7px}
.intake-live-status{font-size:12px;color:#697060}.intake-column.drop-target{outline:2px solid #91b341}.intake-card.dragging{opacity:.4}
body:has(.intake-card-dialog) .modal-backdrop{backdrop-filter:blur(5px);background:#20251c60}
.modal.intake-card-dialog{width:min(1100px,calc(100vw - 40px));max-height:calc(100dvh - 40px)}
.intake-card-dialog .modal-body{padding:0}.intake-card-dialog .intake-detail{border:0;margin:0;background:transparent}
.intake-card-dialog .intake-detail>.panel-header{padding:12px 24px;border-bottom:1px solid var(--line)}
.intake-card-dialog .intake-detail>.panel-header h2,.intake-card-dialog .intake-detail>.panel-header p{display:none}
.intake-card-dialog .intake-detail-grid{grid-template-columns:minmax(0,1.3fr) minmax(280px,1fr);gap:28px;padding:24px}
.intake-comment-stream{border-left:1px solid var(--line);padding-left:24px;min-width:0}
.intake-comment-stream>.intake-subhead{margin-top:0}.intake-note>p,.intake-mail-note details>p{font-size:13px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
.intake-mail-note>strong{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.05em;margin-bottom:8px;color:var(--muted)}.intake-mail-note summary{cursor:pointer;min-height:44px;display:flex;align-items:center;overflow-wrap:anywhere;font-weight:650}.intake-mail-note summary::before{content:'↳';margin-right:8px;flex:none}.intake-mail-note details{min-width:0}
.intake-contact-disclosure{border-top:1px solid var(--line);margin-top:24px;padding-top:16px}.intake-contact-disclosure>summary,.intake-card-documents summary{cursor:pointer;font-weight:600}
.intake-card-documents{border:1px solid var(--line);border-radius:6px;padding:16px;margin:20px 0}.intake-card-documents h3{font-size:14px}.intake-card-documents ul{list-style:none;padding:0}.intake-card-documents li{display:flex;gap:8px;margin-top:10px;font-size:13px}.intake-card-documents a{overflow-wrap:anywhere}
.intake-contact-suggestion{display:grid;grid-template-columns:1fr auto;width:100%;gap:5px 12px;text-align:left;border:1px solid var(--line);background:#fff;border-radius:6px;padding:12px;margin-top:8px;cursor:pointer;color:var(--text)}.intake-contact-suggestion small{grid-column:1;color:var(--muted)}.intake-contact-suggestion>span{grid-column:2;grid-row:1/3;align-self:center;font-size:12px}.intake-contact-suggestion:hover{background:#f3f7e9}.intake-contact-suggestion:disabled{opacity:.55;cursor:default}
@media(max-width:720px){body.studio-theme .intake-column{flex-basis:min(290px,84vw);scroll-snap-align:start}body.studio-theme .intake-cards{max-height:calc(100dvh - 310px)}.modal.intake-card-dialog{width:100%;max-height:100dvh;height:100dvh;border-radius:0}.intake-card-dialog .intake-detail-grid{grid-template-columns:1fr;padding:18px;gap:22px}.intake-comment-stream{border-left:0;border-top:1px solid var(--line);padding:20px 0 0}.intake-card-dialog .intake-detail>.panel-header{padding:12px 18px}.intake-context{gap:8px;flex-wrap:wrap}}

.intake-list-title{font:600 14px/1.35 var(--font-ui);color:#242722;background:transparent;border:1px solid transparent;border-radius:4px;padding:4px;min-width:0;width:100%}.intake-list-title:hover{border-color:#d0d6c8}.intake-list-title:focus{background:#fff;border-color:#7c9d38;outline:2px solid #d6eba8}
.intake-list-add{flex:0 0 260px;background:#f5f6f2;border:1px dashed #cbd0c1;border-radius:8px;padding:16px;display:grid;gap:12px}.intake-list-add label{font-size:13px;font-weight:600}
.intake-label-tools{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.intake-area-label{margin-right:4px}.label-green{background:#d7edc9;color:#27520c}.label-orange{background:#ffe2bd;color:#6f3e00}.label-blue{background:#d6e8ff;color:#163e77}.label-yellow{background:#fff0ac;color:#655700}.label-purple{background:#eadcf9;color:#53317b}.label-pink{background:#ffdfec;color:#732744}.label-red{background:#ffdbd7;color:#7a281e}.label-gray{background:#e6e8e3;color:#444a3d}.label-lime{background:#e3f6a5;color:#3a5000}

.intake-card-dialog .intake-detail>.panel-header{display:none}
@media(max-width:900px){.intake-card-dialog .intake-detail-grid{grid-template-columns:1fr}.intake-comment-stream{border-left:0;border-top:1px solid var(--line);padding:20px 0 0}}

.intake-process-disclosure{border-top:1px solid var(--line);margin-top:20px;padding:16px 0}.intake-process-disclosure>summary{font-weight:600;cursor:pointer;font-size:13px}

/* Card actions stay visually distinct from the document and activity text. */
.intake-card-actions{display:flex;flex-wrap:wrap;gap:10px;padding:18px 24px;background:#f5f6f2;border-bottom:1px solid #dce0d5}
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .intake-card-dialog .intake-card-actions .button,
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .intake-card-dialog .intake-subhead .button{min-height:44px;padding:10px 14px;gap:8px;border:1px solid #bdc5b4;border-radius:5px;background:#fff;color:#252a20;font-size:13px;font-weight:600;line-height:1.35;white-space:normal;box-shadow:0 1px 2px #17200f08}
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .intake-card-dialog .intake-card-actions .button.primary{background:#def585;border-color:#a8c54a;color:#202713}
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .intake-card-dialog .intake-card-actions .button.primary:hover:not(:disabled){background:#d0ee68;border-color:#809e29;color:#202713}
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .intake-card-dialog :is(.intake-card-actions,.intake-subhead) .button:focus-visible{outline:3px solid #303d20;outline-offset:3px}
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .intake-card-dialog :is(.intake-card-actions,.intake-subhead) .button:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}
.intake-card-actions .button svg,.intake-subhead .button svg{flex-shrink:0}
.intake-card-dialog .intake-comment-stream>.intake-subhead{flex-wrap:wrap;gap:12px;align-items:center;margin-bottom:18px}
@media(max-width:600px){.intake-card-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:16px 18px}.intake-card-actions .button.primary{grid-column:1/-1}.intake-card-actions .button{justify-content:flex-start;min-width:0}.intake-card-dialog .intake-comment-stream>.intake-subhead{align-items:flex-start}.intake-card-dialog .intake-comment-stream>.intake-subhead h3{flex-basis:100%}}

body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .intake-card-dialog .intake-detail{padding:0}
@media(max-width:380px){.intake-card-actions{grid-template-columns:minmax(0,1fr)}}

/* Personal boards retain the same cards and adapt controls to narrow screens. */
.personal-board-toolbar,.personal-board-add-card,.personal-mirror form{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:16px 0;min-width:0}
.personal-board-toolbar label,.personal-board-add-card label,.personal-mirror label{display:grid;gap:6px;flex:1 1 220px;min-width:0;font-size:13px;font-weight:600}
.personal-board-toolbar select,.personal-board-toolbar input,.personal-board-add-card select,.personal-mirror select{width:100%;max-width:100%;min-width:0}
.personal-board-toolbar [role=status]{flex-basis:100%;margin:0;font-size:13px;color:var(--muted)}
.personal-list-actions{display:flex;flex-wrap:wrap;gap:3px;padding:0 10px 8px}
.personal-card-move{display:flex;gap:6px;padding:0 4px 12px;min-width:0}.personal-card-move select{min-width:0;flex:1;width:0}.personal-card-move button{flex-shrink:0}
.personal-board [data-personal-card][hidden],.intake-card[hidden]{display:none!important}
.personal-mirror{margin:16px 0;border:1px solid var(--border);padding:12px;border-radius:4px}.personal-mirror summary{cursor:pointer;font-weight:600}.personal-mirror form{margin-bottom:8px}
@media(max-width:600px){.personal-board-add-card,.personal-mirror form{display:grid;grid-template-columns:minmax(0,1fr)}.personal-board-toolbar label{flex-basis:100%}.personal-board button,.personal-mirror button{min-height:44px}}

/* Peter's board: compact columns and a working card with a separate conversation. */
body.studio-theme #app.office-app.studio-shell .intake-board {align-items:flex-start;gap:14px;padding:8px 2px 24px;scroll-snap-type:x proximity;scrollbar-width:thin;}
body.studio-theme #app.office-app.studio-shell .intake-board .intake-column {flex:0 0 286px;min-width:0;padding:10px;background:#edf0ea;border:1px solid #dde2d8;border-radius:9px;scroll-snap-align:start;}
body.studio-theme #app.office-app.studio-shell .intake-board .intake-column>header {min-height:38px;gap:8px;padding:0 3px 9px;}
body.studio-theme #app.office-app.studio-shell .intake-board .intake-column>header>span {background:#dfe5d8;color:#3d4939;border-radius:5px;min-width:25px;text-align:center;}
body.studio-theme #app.office-app.studio-shell .intake-list-title {font-size:13px;font-weight:750;color:#253122;}
body.studio-theme #app.office-app.studio-shell .intake-cards {gap:8px;max-height:calc(100dvh - 335px);min-height:94px;padding:1px 2px 3px;scrollbar-width:thin;}
body.studio-theme #app.office-app.studio-shell .intake-card {border:1px solid #dce1d7;border-radius:6px;background:#fff;padding:12px;box-shadow:0 1px 1px #21321b09;transition:border-color .15s,box-shadow .15s;}
body.studio-theme #app.office-app.studio-shell .intake-card:hover {border-color:#798c65;box-shadow:0 2px 5px #21321b13;transform:none;}
body.studio-theme #app.office-app.studio-shell .intake-card:focus-visible {outline:3px solid #829933;outline-offset:2px;}
body.studio-theme #app.office-app.studio-shell .intake-card h3 {font-size:14px;line-height:1.4;margin:6px 0;color:#172019;}
body.studio-theme #app.office-app.studio-shell .intake-card p {font-size:12px;line-height:1.5;color:#5b6557;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
body.studio-theme #app.office-app.studio-shell .intake-card-signals {gap:13px;margin-top:10px;color:#67725f;font-size:11px;flex-wrap:wrap;}
body.studio-theme #app.office-app.studio-shell .intake-board .intake-column-empty {padding:20px 10px;color:#697561;font-size:12px;text-align:center;}
body.studio-theme #app.office-app.studio-shell .intake-list-add {background:#f3f5ee;border:1px dashed #c4cdbb;border-radius:8px;flex:0 0 240px;}
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .modal.intake-card-dialog {width:min(1200px,calc(100vw - 64px));max-width:none;max-height:calc(100dvh - 52px);border-radius:12px;border:1px solid #cfd6ca;box-shadow:0 22px 100px #10220f44;}
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .intake-card-dialog .modal-header {padding:25px 28px 21px;background:#f7f8f4;border-bottom:1px solid #e0e4db;align-items:flex-start;}
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .intake-card-dialog .modal-header h2 {font-size:24px;line-height:1.3;letter-spacing:-.6px;overflow-wrap:anywhere;}
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .intake-card-dialog .modal-header p {font-size:12px;color:#697361;margin-top:7px;}
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .intake-card-dialog .modal-body {padding:0;overscroll-behavior:contain;scrollbar-width:thin;}
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .intake-card-dialog .intake-detail {overflow:visible;padding:0;border:0;border-radius:0;box-shadow:none;}
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .intake-card-dialog .intake-card-actions {padding:16px 28px 10px;gap:8px;flex-wrap:wrap;border:0;background:#fff;}
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .intake-card-dialog .intake-card-actions .button {min-height:38px;padding:8px 12px;font-size:12px;border-radius:6px;}
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .intake-card-dialog .intake-card-meta {padding:4px 28px 20px;display:flex;gap:12px;align-items:center;flex-wrap:wrap;color:#6d7768;font-size:12px;border-bottom:1px solid #e4e8df;}
.intake-card-labels {display:flex;gap:5px;flex-wrap:wrap;}
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .intake-card-dialog .intake-detail-grid {display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:0;padding:0;}
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .intake-card-dialog .intake-card-main {padding:26px 28px;min-width:0;}
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .intake-card-dialog .intake-comment-stream {padding:26px 26px 28px;border-left:1px solid #e0e5da;background:#f6f7f3;min-width:0;}
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .intake-card-dialog h3 {font-size:15px;letter-spacing:-.2px;margin:0;}
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .intake-card-dialog .intake-concern {white-space:pre-wrap;font-size:14px;line-height:1.75;color:#3b4537;margin:13px 0 20px;overflow-wrap:anywhere;}
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .intake-card-dialog .intake-contact-data {background:#f6f7f3;border:1px solid #e4e8de;border-radius:6px;padding:12px 14px;font-size:12px;}
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .intake-card-dialog .intake-contact-data dd {overflow-wrap:anywhere;}
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .intake-card-dialog .intake-card-documents {margin:24px 0;}
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .intake-card-dialog .intake-card-documents li {display:flex;align-items:center;gap:12px;padding:10px 0;border:0;}
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .intake-card-dialog .intake-card-documents li>div {min-width:0;display:grid;gap:5px;}
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .intake-card-dialog .intake-card-documents li strong {font-size:13px;overflow-wrap:anywhere;}
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .intake-card-dialog .intake-card-documents li a {font-size:11px;color:#5b694e;text-decoration:underline;text-underline-offset:3px;}
.intake-file-tile {display:flex;align-items:center;justify-content:center;flex:0 0 52px;height:58px;background:#edf0e7;border:1px solid #dbe2d1;border-radius:5px;font-size:11px;font-weight:800;color:#566746;}
.intake-activity-count {font-size:11px;background:#e6eadf;padding:3px 7px;border-radius:4px;color:#526148;margin-left:5px;}
.intake-attachment-empty,.intake-activity-empty {font-size:13px;line-height:1.6;color:#707a68;padding:16px 0;}
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .intake-comment-composer {padding:0 0 22px;margin:12px 0 6px;border-bottom:1px solid #dfe4d7;}
.intake-comment-composer label {display:block;font-size:12px;color:#516047;margin-bottom:7px;}
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .intake-comment-composer textarea {resize:vertical;min-height:96px;width:100%;border:1px solid #c7d1bb;border-radius:7px;background:#fff;padding:12px;font-size:13px;line-height:1.6;}
.intake-comment-composer>div {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:9px;flex-wrap:wrap;}
.intake-comment-composer small {font-size:10px;color:#68765e;}
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .intake-comment-composer .button {min-height:38px;font-size:12px;border-radius:6px;padding:8px 12px;}
.intake-comment-composer #intake-error:empty {display:none;}
.intake-comment-composer #intake-error {font-size:12px;color:#a13d29;}
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .intake-comment-stream .intake-note {display:flex;gap:10px;border:0;padding:12px 0;margin:0;background:transparent;}
.intake-note-avatar {display:flex;align-items:center;justify-content:center;flex:0 0 30px;height:30px;border-radius:50%;background:#dfe7d4;color:#405630;font-size:10px;font-weight:750;}
.intake-note-content {flex:1;min-width:0;}
.intake-note-content header {display:flex;align-items:baseline;gap:7px;flex-wrap:wrap;margin:1px 0 7px;}
.intake-note-content header strong {font-size:12px;color:#33412b;overflow-wrap:anywhere;}
.intake-note-content time {font-size:10px;color:#7d8577;}
.intake-note-message {border:1px solid #e0e5d9;border-radius:7px;padding:11px 12px;background:#fff;overflow-wrap:anywhere;font-size:13px;line-height:1.65;}
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .intake-note-message p {font-size:13px;line-height:1.65;margin:0;white-space:pre-wrap;}
body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .intake-card-dialog .intake-history {padding:18px 28px;border-top:1px solid #e1e6d9;}
.intake-card-jumps {display:none;}
@media(max-width:760px){
 body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .modal-backdrop:has(.intake-card-dialog) {padding:8px;}
 body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .modal.intake-card-dialog {width:100%;max-height:calc(100dvh - 16px);border-radius:10px;}
 body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .intake-card-dialog .modal-header {padding:18px 16px 14px;gap:10px;}
 body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .intake-card-dialog .modal-header h2 {font-size:19px;}
 body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .intake-card-dialog .intake-card-actions {padding:14px 16px 8px;gap:6px;}
 body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .intake-card-dialog .intake-card-actions .button {min-height:44px;flex:1 1 auto;font-size:11px;}
 body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .intake-card-dialog .intake-card-meta {padding:4px 16px 14px;}
 body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .intake-card-dialog .intake-detail-grid {grid-template-columns:minmax(0,1fr);}
 body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .intake-card-dialog .intake-card-main {padding:22px 16px;}
 body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .intake-card-dialog .intake-comment-stream {padding:22px 16px;border-left:0;border-top:1px solid #e0e5da;}
 .intake-card-jumps {display:flex;position:sticky;top:0;z-index:2;background:#fff;border-bottom:1px solid #dfe5d7;padding:0 8px;}
 .intake-card-jumps button {flex:1;padding:14px 3px;min-height:44px;border:0;background:none;font-family:inherit;font-size:11px;font-weight:600;color:#465b36;}
 #intake-card-description,#intake-card-attachments,#intake-card-activity {scroll-margin-top:64px;}
 body.studio-theme #app.office-app.studio-shell .intake-board .intake-column {flex-basis:min(286px,calc(100vw - 60px));}
 body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .intake-card-dialog .intake-history {padding:18px 16px;}
 .intake-comment-composer>div {align-items:stretch;flex-direction:column;}
 body.studio-theme:has(#app.office-app.studio-shell) #overlay-root .intake-comment-composer .button {min-height:44px;}
}
body.studio-theme #app.office-app.studio-shell:has(.intake-board) .page-heading {padding-top:12px;padding-bottom:18px;margin-bottom:18px;}
body.studio-theme #app.office-app.studio-shell:has(.intake-board) .page-heading .display {font-size:36px;line-height:1.15;}
body.studio-theme #app.office-app.studio-shell:has(.intake-board) .page-heading .lead {margin-top:7px;font-size:13px;}
body.studio-theme #app.office-app.studio-shell:has(.intake-board) .personal-board-toolbar {grid-template-columns:minmax(180px,280px) minmax(200px,1fr);gap:12px;margin-bottom:12px;}
body.studio-theme #app.office-app.studio-shell:has(.intake-board) .personal-board-toolbar label {font-size:12px;}
body.studio-theme #app.office-app.studio-shell:has(.intake-board) .intake-context {margin:10px 0 8px;font-size:12px;}
body.studio-theme #app.office-app.studio-shell:has(.intake-board) .intake-board {margin-top:8px;}
body.studio-theme #app.office-app.studio-shell:has(.intake-board) .intake-column>header {margin-bottom:8px;}
@media(max-width:760px){
 body.studio-theme #app.office-app.studio-shell:has(.intake-board) .personal-board-toolbar {grid-template-columns:minmax(0,1fr);gap:10px;}
 body.studio-theme #app.office-app.studio-shell:has(.intake-board) .page-heading .display {font-size:30px;}
}

/* Shared card checklists: compact rows, quiet progress, no horizontal overflow. */
.intake-checklists{margin-top:24px;padding-top:20px;border-top:1px solid var(--line,#dce0e5);min-width:0}
.intake-checklist{padding:16px 0;border-bottom:1px solid var(--line,#dce0e5);min-width:0}
.intake-checklist header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.intake-checklist h4{font-size:16px;margin:0;overflow-wrap:anywhere}
.intake-checklist-progress{display:flex;align-items:center;gap:12px;margin:12px 0;color:var(--muted,#656b78);font-size:12px;font-variant-numeric:tabular-nums}
.intake-checklist-progress progress{width:100%;height:5px;appearance:none;border:0;background:#e7e9eb;accent-color:#202622}
.intake-checklist-progress progress::-webkit-progress-bar{background:#e7e9eb;border-radius:3px}
.intake-checklist-progress progress::-webkit-progress-value{background:#202622;border-radius:3px}
.intake-checklist-progress progress::-moz-progress-bar{background:#202622;border-radius:3px}
.intake-checklist ul{list-style:none;padding:0;margin:0 0 12px}
.intake-checklist li{display:flex;gap:10px;align-items:flex-start;padding:12px 0;border-bottom:1px solid #eceef0;min-width:0}
.intake-checklist li>div{flex:1;min-width:0;overflow-wrap:anywhere}
.intake-checklist li strong{display:block;font-size:14px;font-weight:500;line-height:1.4}
.intake-checklist li small{display:block;margin-top:4px;font-size:12px;color:var(--muted,#656b78);line-height:1.5}
.intake-checklist li.is-complete strong{text-decoration:line-through;color:#626969}
.intake-checklist-state{flex:none;padding-top:1px;color:#525d57}
.intake-checklists details{margin-top:14px}
.intake-checklists summary{cursor:pointer;font-size:13px;color:var(--muted,#656b78)}
.intake-card-jumps{flex-wrap:wrap}
@media(max-width:540px){.intake-checklist header{align-items:flex-start;flex-wrap:wrap}.intake-checklist li{flex-wrap:wrap}.intake-checklist li>div{flex-basis:calc(100% - 32px)}.intake-checklist li>button{margin-left:30px;min-height:40px}.intake-checklists .intake-subhead{flex-wrap:wrap}}

.intake-custom-fields{margin:20px 0;padding:16px 0;border-top:1px solid #e1e4e6;border-bottom:1px solid #e1e4e6;min-width:0}
.intake-custom-fields dl{margin:0}
.intake-custom-field{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:12px 0}
.intake-custom-field>div{min-width:0}
.intake-custom-field dt{font-size:12px;color:var(--muted,#656b78)}
.intake-custom-field dd{font-size:14px;margin:4px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.intake-custom-field-actions{display:flex;gap:6px;flex-shrink:0}
@media(max-width:700px){.intake-custom-field{flex-direction:column}.intake-custom-field-actions{flex-wrap:wrap}}

.intake-view-picker{display:inline-flex;align-self:flex-end;gap:2px;padding:3px;border:1px solid #dce0dc;border-radius:5px;background:#f4f5f2}
.intake-view-picker a{padding:9px 14px;color:#475044;text-decoration:none;border-radius:3px;font-size:13px;font-weight:600}
.intake-view-picker a[aria-current]{background:#202622;color:#e2fa82}
.intake-table-view{margin-top:20px;max-width:100%;overflow:auto;border:1px solid #e0e3df;border-radius:6px;background:white}
.intake-table-view table{width:100%;border-collapse:collapse;font-size:13px;text-align:left}
.intake-table-view th{font-weight:500;color:#606b5f;background:#f6f7f3;font-size:12px}
.intake-table-view th,.intake-table-view td{padding:14px 16px;border-bottom:1px solid #e7e9e5;vertical-align:top}
.intake-table-view tbody tr:hover{background:#f8f9f5}
.intake-table-view td:first-child{min-width:180px;max-width:350px;overflow-wrap:anywhere}
.intake-table-view td a{color:#202622;text-decoration:none}.intake-table-view td a:hover{text-decoration:underline}
.intake-table-view td small{display:block;margin-top:5px;color:#697065}
.intake-table-view tr[hidden]{display:none}
@media(max-width:700px){.intake-table-view{overflow:visible;border:0;background:transparent}.intake-table-view table,.intake-table-view tbody{display:block}.intake-table-view thead{display:none}.intake-table-view tr{display:grid;grid-template-columns:1fr 1fr;background:white;border:1px solid #e0e3df;border-radius:6px;padding:10px;margin-bottom:12px}.intake-table-view td{display:block;min-width:0;padding:8px;border:0;overflow-wrap:anywhere}.intake-table-view td:before{content:attr(data-label);display:block;font-size:11px;color:#697065;margin-bottom:5px}.intake-table-view td:first-child{grid-column:1/-1;min-width:0;max-width:none;font-size:16px}.intake-table-view td:first-child:before{display:none}}

/* Shared contact details stay readable in cards and on small screens. */
.contact-channels{border-top:1px solid var(--line,#e0e3e6);margin-top:16px;padding-top:12px;min-width:0}
.contact-channels h5{font-size:13px;margin:0}.contact-channels .intake-subhead{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between}
.contact-channels dl{margin:12px 0 20px;display:grid;gap:12px}.contact-channels dl>div{display:grid;grid-template-columns:70px minmax(0,1fr);gap:10px}.contact-channels dt{color:var(--muted,#6b7280);font-size:12px}.contact-channels dd{margin:0;font-size:13px;overflow-wrap:anywhere}.contact-channels dd span,.contact-person span,.contact-person small{display:block;overflow-wrap:anywhere}
.contact-person{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:12px;padding:12px 0;border-top:1px solid var(--line,#e0e3e6);font-size:13px}.contact-person>div{min-width:0;flex:1 1 140px}.contact-person.is-archived{color:var(--muted,#6b7280)}
@media(max-width:480px){.contact-channels .intake-subhead{align-items:flex-start;flex-direction:column}.contact-channels .button{white-space:normal;text-align:left;max-width:100%}}

.intake-view-picker{flex-wrap:wrap}.board-schedule{border:1px solid var(--line,#dce0e5);padding:20px;background:white;min-width:0}.board-schedule>header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}.board-schedule h2{margin:0;font-size:23px}.board-schedule>header nav{display:flex;gap:6px}.board-calendar-weekdays,.board-calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.board-calendar-weekdays{font-size:12px;color:var(--muted,#687080);text-align:center;margin-top:20px}.board-calendar-weekdays>span{padding:12px}.board-calendar-day,.board-calendar-spacer{border-top:1px solid #e2e5e8;border-left:1px solid #e2e5e8;min-height:115px;min-width:0;padding:7px}.board-calendar-day h3{font-size:13px;margin:0 0 8px;color:#687080}.board-calendar-day.is-today{background:#f4f7e8}.board-calendar-day.is-today h3{color:#151b0c}.board-calendar-day-full{display:none}.board-schedule-entry{display:block;border-left:3px solid #bdd748;background:#f5f6f1;margin:5px 0;padding:8px;text-decoration:none;color:#151b0c;overflow-wrap:anywhere;min-width:0}.board-schedule-entry:hover{background:#edf2d6}.board-schedule-entry strong,.board-schedule-entry span,.board-schedule-entry small{display:block}.board-schedule-entry strong{font-size:12px}.board-schedule-entry span,.board-schedule-entry small{font-size:11px;line-height:1.5;color:#596050}.board-schedule-undated{margin-top:20px;border-top:1px solid #e2e5e8;padding-top:15px}.board-schedule-undated a{display:block;padding:10px;border-bottom:1px solid #e2e5e8;color:inherit}.board-timeline{margin-top:20px}.board-timeline-scale{display:flex;justify-content:space-between;margin-left:35%;font-size:12px;color:#687080}.board-timeline-row{display:grid;grid-template-columns:minmax(0,35%) minmax(0,1fr);gap:16px;align-items:center;border-bottom:1px solid #e2e5e8}.board-timeline-track{position:relative;height:32px;background:repeating-linear-gradient(to right,#f2f3ef 0,#f2f3ef calc(100% / 31 - 1px),#e1e4db calc(100% / 31 - 1px),#e1e4db calc(100% / 31));border-radius:3px;overflow:hidden}.board-timeline-track span{position:absolute;height:20px;top:6px;background:#bbd941;border-radius:3px}.board-timeline-row .board-schedule-entry{background:transparent;border-left:0}
@media(max-width:700px){.board-schedule{padding:14px}.board-calendar-weekdays,.board-calendar-spacer,.board-calendar-day:not(.has-entries){display:none}.board-calendar-days{display:block}.board-calendar-day{border-left:0;min-height:0;padding:12px 0}.board-calendar-day-full{display:inline}.board-schedule-entry strong{font-size:14px}.board-schedule-entry span,.board-schedule-entry small{font-size:12px}.board-timeline-row{grid-template-columns:minmax(0,1fr);gap:0;padding:8px 0 14px}.board-timeline-scale{margin-left:0}.board-schedule>header{align-items:flex-start}.intake-view-picker>a{padding:9px 10px}}

.intake-card-schedule{border-top:1px solid var(--line,#e0e3e6);padding:20px 0;margin-top:16px;min-width:0}.intake-card-schedule .intake-subhead{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;align-items:center}

/* Per-case filing: source categories and text decisions stay independent. */
.cd-custom-folders{border-block:1px solid var(--line,#e3e5e8);padding:16px 0;margin:12px 0}.cd-custom-folders h4{margin:0 0 10px}.cd-folder-tree{display:grid;gap:3px;max-height:260px;overflow:auto}.cd-folder-tree button{display:flex;justify-content:space-between;gap:12px;text-align:left;min-width:0;width:100%;padding:9px 10px;background:transparent;border:0;border-radius:3px}.cd-folder-tree button span{overflow-wrap:anywhere;min-width:0}.cd-folder-tree button[aria-pressed=true]{background:#e5efb6;color:#171b16;font-weight:650}.cd-folder-tree small{flex:none}.cd-folder-manage{margin-top:12px}.cd-folder-manage summary{cursor:pointer;font-weight:600}.cd-folder-manage fieldset{display:grid;gap:10px;border:0;padding:12px 0 0;min-width:0}.cd-folder-manage label,.cd-custom-filing label{display:grid;gap:6px;min-width:0}.cd-folder-manage input,.cd-folder-manage select,.cd-custom-filing select{box-sizing:border-box;width:100%;min-width:0;max-width:100%;padding:10px;border:1px solid #d6d9de;border-radius:3px;background:#fff;color:#202420}.cd-folder-manage button,.cd-custom-filing button{padding:10px 14px;border:1px solid #cdd2c7;border-radius:3px;background:#f5f7ed;color:#202420}.cd-custom-filing{display:flex;align-items:end;gap:12px;border-top:1px solid #e3e5e8;padding-top:16px;margin-top:18px}.cd-custom-filing label{flex:1}.cd-custom-filing button{flex:none}.cd-dark .cd-custom-filing{color:#eef0e9}@media(max-width:600px){.cd-custom-filing{display:grid}.cd-folder-tree{max-height:190px}.cd-custom-filing button{width:100%}}

.contact-profile{padding-bottom:16px;margin-bottom:16px;border-bottom:1px solid #e0e3dc}.contact-profile dl{display:grid;gap:10px;margin:10px 0}.contact-profile dl>div{display:grid;grid-template-columns:minmax(100px,150px) minmax(0,1fr);gap:12px}.contact-profile dt{color:#656b60;font-size:12px}.contact-profile dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}.contact-profile-group{border-top:1px solid #e1e4dc;margin:14px 0;padding-top:12px}.contact-profile-group summary{font-weight:650;cursor:pointer;margin-bottom:12px}.contact-profile-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.contact-profile-fields .field{min-width:0;margin:0}@media(max-width:600px){.contact-profile-fields{grid-template-columns:minmax(0,1fr)}.contact-profile dl>div{grid-template-columns:minmax(0,1fr);gap:3px}}

.contact-bank-accounts{border-bottom:1px solid #e1e4dc;padding-bottom:16px;margin-bottom:16px}.contact-iban{font-variant-numeric:tabular-nums;overflow-wrap:anywhere;letter-spacing:.025em}

/* Aktenregister: Filter, Reihenfolge und weitergebbare Ansicht. */
.studio-theme .workspace-register-controls{display:grid;grid-template-columns:minmax(0,2fr) repeat(2,minmax(0,1fr));gap:16px;align-items:end;margin-bottom:16px}
body.studio-theme #app.office-app.studio-shell.workspace-friendly .workspace-register-controls .workspace-case-search{margin:0;max-width:none}
.studio-theme .workspace-register-controls label{display:grid;gap:7px;font-size:13px;color:var(--muted)}
.studio-theme .workspace-register-controls input,.studio-theme .workspace-register-controls select{width:100%;min-width:0;height:44px}
.studio-theme .workspace-register-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;color:var(--muted);font-size:13px}
.studio-theme .workspace-register-actions>div{display:flex;gap:8px;flex-wrap:wrap}
.studio-theme .workspace-register-facts{display:block;line-height:1.6;overflow-wrap:anywhere;margin-top:5px}
.studio-theme .workspace-register-share{padding:16px;margin-bottom:16px;background:var(--surface-muted,#f5f5f2);border:1px solid var(--border,#deded8)}
.studio-theme .workspace-register-share[hidden]{display:none}
.studio-theme .workspace-register-share label{display:block;font-weight:600;margin-bottom:8px}
.studio-theme .workspace-register-share input{width:100%;min-width:0}
.studio-theme .workspace-register-share p{font-size:13px;line-height:1.5;margin:8px 0 0;color:var(--muted)}
@media(max-width:700px){.studio-theme .workspace-register-controls{grid-template-columns:1fr}.studio-theme .workspace-register-actions{align-items:flex-start;flex-direction:column}.studio-theme .workspace-register-actions .button{min-height:44px}.studio-theme .workspace-register-facts{font-size:12px}}

.studio-theme .case-profile-summary{border-top:1px solid var(--border,#deded8);margin-top:20px;padding-top:18px}
.studio-theme .case-profile-summary .intake-subhead{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:center}
.studio-theme .case-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0 0}
.studio-theme .case-profile-grid dt{font-size:12px;color:var(--muted);margin-bottom:5px}.studio-theme .case-profile-grid dd{margin:0;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
@media(max-width:640px){.studio-theme .case-profile-grid{grid-template-columns:1fr}}

/* Trello work density: compact cards; descriptions remain inside the card. */
body.studio-theme #app.office-app.studio-shell .intake-board .intake-column{--list-bg:#f1f2f4;background:var(--list-bg);padding:8px;flex-basis:272px;border-color:#d9dce0;border-radius:10px}
body.studio-theme #app.office-app.studio-shell .intake-board .intake-column>header{margin:0 0 7px;padding:0 0 5px;min-height:32px;border:0;gap:5px}
body.studio-theme #app.office-app.studio-shell .intake-board .intake-column>header>.intake-list-title{min-width:0;flex:1}
body.studio-theme #app.office-app.studio-shell .intake-board .intake-cards{gap:7px;padding:0 1px 2px}
body.studio-theme #app.office-app.studio-shell .intake-board .intake-card{padding:9px 10px;border-color:#e2e4e8;min-height:0;border-radius:8px;box-shadow:0 1px 2px #091e4229}
body.studio-theme #app.office-app.studio-shell .intake-board .intake-card h3{font-size:14px;font-weight:450;line-height:1.4;margin:3px 0 6px;letter-spacing:0}
body.studio-theme #app.office-app.studio-shell .intake-board .intake-card>p{display:none}
body.studio-theme #app.office-app.studio-shell .intake-board .intake-card-signals{margin-top:5px;gap:10px;font-size:11px;line-height:16px}
body.studio-theme #app.office-app.studio-shell .intake-board .intake-card .intake-area-label{display:inline-block;min-width:38px;width:38px;height:7px;padding:0;margin:0 4px 4px 0;border:0;border-radius:3px;overflow:hidden;color:transparent;font-size:0;vertical-align:top}
body.studio-theme #app.office-app.studio-shell .intake-board .intake-card .label-green{background:#4bce97}body.studio-theme #app.office-app.studio-shell .intake-board .intake-card .label-yellow{background:#efd32b}body.studio-theme #app.office-app.studio-shell .intake-board .intake-card .label-orange{background:#faa53d}body.studio-theme #app.office-app.studio-shell .intake-board .intake-card .label-red{background:#f87168}body.studio-theme #app.office-app.studio-shell .intake-board .intake-card .label-blue{background:#579dff}body.studio-theme #app.office-app.studio-shell .intake-board .intake-card .label-purple{background:#b386e5}body.studio-theme #app.office-app.studio-shell .intake-board .intake-card .label-pink{background:#e774bb}body.studio-theme #app.office-app.studio-shell .intake-board .intake-card .label-gray{background:#8590a2}body.studio-theme #app.office-app.studio-shell .intake-board .intake-card .label-lime{background:#b3df72}
body.studio-theme #app.office-app.studio-shell .intake-board .intake-column[data-list-color="green"]{--list-bg:#d3f1df}body.studio-theme #app.office-app.studio-shell .intake-board .intake-column[data-list-color="orange"]{--list-bg:#ffe4c6}body.studio-theme #app.office-app.studio-shell .intake-board .intake-column[data-list-color="blue"]{--list-bg:#dbeafe}body.studio-theme #app.office-app.studio-shell .intake-board .intake-column[data-list-color="yellow"]{--list-bg:#fff3b5}body.studio-theme #app.office-app.studio-shell .intake-board .intake-column[data-list-color="purple"]{--list-bg:#e9def7}body.studio-theme #app.office-app.studio-shell .intake-board .intake-column[data-list-color="pink"]{--list-bg:#f9d6eb}body.studio-theme #app.office-app.studio-shell .intake-board .intake-column[data-list-color="red"]{--list-bg:#ffdeda}body.studio-theme #app.office-app.studio-shell .intake-board .intake-column[data-list-color="gray"]{--list-bg:#e0e3e8}body.studio-theme #app.office-app.studio-shell .intake-board .intake-column[data-list-color="lime"]{--list-bg:#e7f3c8}
.board-list-settings{position:relative;flex-shrink:0}.board-list-settings>summary{list-style:none;cursor:pointer;width:30px;height:30px;display:grid;place-items:center;border-radius:4px;font-size:20px;line-height:1;color:#44546f}.board-list-settings>summary::-webkit-details-marker{display:none}.board-list-settings>summary:hover{background:#091e4210}.board-list-settings>form{position:absolute;z-index:15;right:0;top:35px;width:190px;background:#fff;border:1px solid #dcdfe4;border-radius:8px;box-shadow:0 8px 18px #091e4226;padding:12px}.board-list-settings label{display:grid;gap:8px;font-size:12px;color:#44546f}.board-list-settings select{height:40px;width:100%;font:inherit;background:#fff;border:1px solid #b6c2cf;border-radius:4px;padding:5px}
@media(max-width:600px){body.studio-theme #app.office-app.studio-shell .intake-board .intake-column{flex-basis:min(300px,calc(100vw - 52px))}body.studio-theme #app.office-app.studio-shell .intake-board .intake-card{padding:8px 10px}body.studio-theme #app.office-app.studio-shell .intake-board .intake-card h3{font-size:14px}.board-list-settings>summary{width:36px;height:36px}}

/* Dense independent list scrolling and reachable per-card actions. */
body.studio-theme #app.office-app.studio-shell .intake-board .intake-cards{overflow-y:auto;overscroll-behavior:contain;max-height:max(180px,calc(100dvh - 335px));min-height:0;flex:0 1 auto}
body.studio-theme #app.office-app.studio-shell .intake-board .intake-card{flex-shrink:0}
.board-list-settings form button{margin-top:10px;width:100%}
[data-personal-card]{position:relative;flex-shrink:0}
.personal-card-menu{position:absolute;right:4px;top:4px;z-index:2}
.personal-card-menu>summary{display:grid;place-items:center;list-style:none;width:30px;height:28px;cursor:pointer;border-radius:4px;background:#fff;color:#44546f}
.personal-card-menu>summary::-webkit-details-marker{display:none}
.personal-card-menu[open]{z-index:5}
.personal-card-menu .personal-card-move{position:absolute;right:0;top:30px;width:230px;padding:12px;display:grid;gap:8px;background:white;border:1px solid #dcdfe4;border-radius:8px;box-shadow:0 5px 15px #091e4226}
.personal-card-menu .personal-card-move select{width:100%;height:40px}
body.studio-theme #app.office-app.studio-shell .personal-board .intake-card h3{padding-right:18px}
.intake-description-fold>summary{font-size:15px;font-weight:650;cursor:pointer;padding:12px 0}
.intake-description-fold .intake-concern{margin-top:4px}
.intake-card-image-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:12px 0}
.intake-card-image-grid a{display:block;min-width:0;border:1px solid #dcdfe4;border-radius:5px;overflow:hidden;background:#f1f2f4}
.intake-card-image-grid img{display:block;width:100%;height:88px;object-fit:cover}
.intake-card-image-grid a:focus-visible{outline:3px solid #0c66e4}
.intake-card-files-meta{font-size:12px;color:#626f86}
.intake-system-note .intake-note-message{background:transparent;font-size:12px;color:#626f86}
.intake-mobile-comment{display:none}
@media(max-width:700px){
 .intake-card-dialog .modal-body{padding-bottom:64px}
 .intake-mobile-comment{display:block;position:sticky;bottom:0;z-index:8;background:white;border-top:1px solid #dcdfe4;padding:10px 12px;margin-top:12px;width:100%;text-align:left;color:#44546f;min-height:44px}
 .intake-card-image-grid img{height:70px}
 .intake-card-dialog .intake-card-actions{gap:6px}
 .intake-card-dialog .intake-card-actions .button{font-size:12px;padding:7px 9px;min-height:36px}
}

@media(max-width:700px){
 body.studio-theme #app.office-app.studio-shell.intake-workspace .test-workspace-notice{padding:6px 10px;margin:0 0 10px;font-size:11px;line-height:1.4}
 body.studio-theme #app.office-app.studio-shell.intake-workspace .page-heading{display:flex;flex-direction:row;align-items:center;justify-content:space-between;text-align:left;gap:12px;margin:0;padding:10px 0 12px;min-height:0;background:none;border:0}
 body.studio-theme #app.office-app.studio-shell.intake-workspace .page-heading .eyebrow,body.studio-theme #app.office-app.studio-shell.intake-workspace .page-heading .lead{display:none}
 body.studio-theme #app.office-app.studio-shell.intake-workspace .page-heading .display{font-size:24px;line-height:1.2;margin:0;letter-spacing:-.6px}
 body.studio-theme #app.office-app.studio-shell.intake-workspace .heading-actions{width:auto;margin:0;flex-shrink:0}
 body.studio-theme #app.office-app.studio-shell.intake-workspace .heading-actions .button{min-height:38px;padding:8px 12px;font-size:12px;width:auto}
 body.studio-theme #app.office-app.studio-shell.intake-workspace .personal-board-toolbar{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 8px;padding:8px 0}
 body.studio-theme #app.office-app.studio-shell.intake-workspace .personal-board-toolbar>nav{grid-column:1/-1;width:max-content;max-width:100%}
 body.studio-theme #app.office-app.studio-shell.intake-workspace .personal-board-toolbar>label{min-width:0;width:100%;font-size:11px}
 body.studio-theme #app.office-app.studio-shell.intake-workspace .personal-board-toolbar .input{min-height:38px;height:38px;padding:7px 8px;font-size:12px}
 body.studio-theme #app.office-app.studio-shell.intake-workspace .personal-board-toolbar [data-board-search-status]:empty{display:none}
 body.studio-theme #app.office-app.studio-shell.intake-workspace .intake-context{font-size:11px;line-height:1.4;margin:0 0 10px;gap:4px;min-height:0}
 body.studio-theme #app.office-app.studio-shell.intake-workspace .intake-live-status{display:none}
 body.studio-theme #app.office-app.studio-shell.intake-workspace .personal-board-toolbar [data-board-search]{text-overflow:ellipsis}
}

@media(max-width:700px){body.studio-theme #app.office-app.studio-shell.intake-workspace .page-heading{flex-wrap:nowrap}body.studio-theme #app.office-app.studio-shell.intake-workspace .page-heading>div:first-child{flex:1 1 auto;min-width:0}body.studio-theme #app.office-app.studio-shell.intake-workspace .page-heading>.heading-actions{flex:0 0 auto;padding:0}}

/* Shared and personal boards use the same compact canvas and controls. */
body.studio-theme #app.office-app.studio-shell.intake-workspace .page-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:8px 0 12px;min-height:0;background:none;border:0}
body.studio-theme #app.office-app.studio-shell.intake-workspace .page-heading .eyebrow,
body.studio-theme #app.office-app.studio-shell.intake-workspace .page-heading .lead{display:none}
body.studio-theme #app.office-app.studio-shell.intake-workspace .page-heading .display{font-size:26px;line-height:1.2;letter-spacing:-.5px;margin:0}
body.studio-theme #app.office-app.studio-shell.intake-workspace .heading-actions{margin:0;width:auto;padding:0;flex-shrink:0}
body.studio-theme #app.office-app.studio-shell.intake-workspace .heading-actions .button{font-size:13px;min-height:36px;padding:8px 12px}
body.studio-theme #app.office-app.studio-shell.intake-workspace .personal-board-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 12px;margin:0;background:#f7f8f9;border:1px solid #dcdfe4;border-radius:9px 9px 0 0}
body.studio-theme #app.office-app.studio-shell.intake-workspace .personal-board-toolbar>label{display:flex;align-items:center;gap:7px;font-size:12px;min-width:0;width:auto}
body.studio-theme #app.office-app.studio-shell.intake-workspace .personal-board-toolbar>label:has([data-board-search]){font-size:0;flex:1;min-width:170px}
body.studio-theme #app.office-app.studio-shell.intake-workspace .personal-board-toolbar .input{font-size:12px;height:34px;min-height:34px;padding:5px 9px;background:#fff;border:1px solid #c5cbd3;border-radius:5px}
body.studio-theme #app.office-app.studio-shell.intake-workspace [data-board-search]{width:100%}
body.studio-theme #app.office-app.studio-shell.intake-workspace .intake-view-picker{padding:0;border:0;gap:0;margin:0;background:transparent;flex-shrink:0}
body.studio-theme #app.office-app.studio-shell.intake-workspace .intake-view-picker a{padding:8px 10px;min-height:34px;font-size:12px;line-height:18px;border-radius:5px;color:#44546f}
body.studio-theme #app.office-app.studio-shell.intake-workspace .intake-view-picker a[aria-current=page]{background:#dce7f5;color:#17375e;border:0}
body.studio-theme #app.office-app.studio-shell.intake-workspace .intake-context{margin:0;padding:7px 12px;min-height:30px;font-size:11px;line-height:16px;background:#f7f8f9;border-inline:1px solid #dcdfe4;gap:8px}
body.studio-theme #app.office-app.studio-shell.intake-workspace .personal-board-toolbar~.field-help{margin:0;padding:7px 12px;background:#f7f8f9;border-inline:1px solid #dcdfe4;font-size:11px}
[data-board-search-status]:empty{display:none}
body.studio-theme #app.office-app.studio-shell.intake-board-mode .intake-board{--canvas:#e8e9ed;display:flex;align-items:flex-start;gap:12px;padding:12px;margin:0;border:1px solid #d3d7de;border-radius:0 0 9px 9px;background:var(--canvas);height:var(--board-height,calc(100dvh - 300px));min-height:240px;max-height:none;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;scrollbar-gutter:stable;scrollbar-color:#8994a7 transparent}
body.studio-theme #app.office-app.studio-shell.intake-board-mode .intake-board[data-background=blue]{--canvas:#c9dbea}
body.studio-theme #app.office-app.studio-shell.intake-board-mode .intake-board[data-background=green]{--canvas:#d2e2da}
body.studio-theme #app.office-app.studio-shell.intake-board-mode .intake-board[data-background=pink]{--canvas:#ead5df}
body.studio-theme #app.office-app.studio-shell.intake-board-mode .intake-board[data-background=purple]{--canvas:#dfdaeb}
body.studio-theme #app.office-app.studio-shell.intake-board-mode .intake-board .intake-column{flex:0 0 272px;max-height:100%;min-height:0;display:flex;flex-direction:column;gap:0;padding:8px;border:0;border-radius:10px;box-shadow:0 1px 2px #091e4226}
body.studio-theme #app.office-app.studio-shell.intake-board-mode .intake-column>header{flex-shrink:0;margin:0 0 4px;padding:0;min-height:34px;gap:4px}
body.studio-theme #app.office-app.studio-shell.intake-board-mode .intake-column>header h2,
body.studio-theme #app.office-app.studio-shell.intake-board-mode .intake-list-title{font-size:14px;line-height:20px;font-weight:650;height:30px;min-height:30px;padding:4px 6px;border:1px solid transparent;background:transparent;color:#172b4d}
body.studio-theme #app.office-app.studio-shell.intake-board-mode .intake-list-title:focus{background:#fff;border-color:#0c66e4;outline:2px solid #0c66e433}
body.studio-theme #app.office-app.studio-shell.intake-board-mode .intake-column>header>span{font-size:12px;background:transparent;padding:0 4px;color:#626f86}
body.studio-theme #app.office-app.studio-shell.intake-board-mode .intake-board .intake-cards{flex:0 1 auto;min-height:0;max-height:none;overflow-y:auto;gap:7px;padding:1px 2px 3px;scrollbar-width:thin;scrollbar-color:#afb8c5 transparent;overscroll-behavior-y:contain}
body.studio-theme #app.office-app.studio-shell.intake-board-mode .intake-board .intake-card{padding:8px 10px;background:#fff;border:1px solid #dcdfe4;border-radius:8px;box-shadow:0 1px 1px #091e4226;outline-offset:-1px}
body.studio-theme #app.office-app.studio-shell.intake-board-mode .intake-card:hover,
body.studio-theme #app.office-app.studio-shell.intake-board-mode .intake-card:focus-visible{outline:2px solid #0c66e4;background:#fff}
body.studio-theme #app.office-app.studio-shell.intake-board-mode .intake-card.selected{background:#fff;border-color:#0c66e4}
body.studio-theme #app.office-app.studio-shell.intake-board-mode .intake-card h3{color:#172b4d;font-size:14px;font-weight:450;line-height:1.4;margin:2px 0 5px}
body.studio-theme #app.office-app.studio-shell.intake-board-mode .intake-column-empty{padding:9px 6px;min-height:0;font-size:12px;text-align:left;color:#626f86}
body.studio-theme #app.office-app.studio-shell.intake-board-mode .intake-board.board-label-names .intake-card .intake-area-label{font-size:10px;line-height:16px;height:auto;min-height:16px;width:auto;max-width:100%;padding:0 5px;color:#172b4d;font-weight:600;overflow-wrap:anywhere}
.board-add-list{flex:0 0 272px;border-radius:8px;background:#ffffff88;color:#172b4d;max-height:100%;overflow:auto}
.board-add-list>summary{list-style:none;padding:12px;cursor:pointer;font-size:14px;line-height:20px}
.board-add-list>summary::-webkit-details-marker{display:none}
.board-add-list>summary:hover{background:#ffffff66}
body.studio-theme #app.office-app.studio-shell .board-add-list .intake-list-add{width:auto;min-width:0;background:transparent;box-shadow:none;border:0;padding:0 12px 12px;gap:8px}
body.studio-theme #app.office-app.studio-shell .board-add-list .intake-list-add label{font-size:12px}
body.studio-theme #app.office-app.studio-shell .board-add-list .input{width:100%;min-width:0;height:36px;min-height:36px;font-size:14px;background:white;border:1px solid #8590a2;border-radius:4px}
.board-list-panel,.board-appearance-panel{position:fixed;z-index:1100;width:248px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;background:#fff;border:1px solid #dcdfe4;border-radius:9px;box-shadow:0 8px 24px #091e4233;padding:14px;color:#172b4d;text-align:left;font-size:12px}
.board-list-panel>strong,.board-appearance-panel>strong{display:block;text-align:center;margin:0 0 12px;font-size:13px}
.board-list-panel form{margin:0}
.board-list-panel label,.board-appearance-panel label{display:grid;gap:6px;font-size:12px;margin:0 0 10px}
.board-appearance-panel select{width:100%;height:36px;background:#fff;border:1px solid #b6c2cf;border-radius:4px;color:#172b4d;padding:5px}
.board-appearance-panel small{display:block;color:#626f86;font-size:11px;line-height:1.5}
.board-appearance-panel .board-label-toggle{display:flex;gap:8px;align-items:center;margin:14px 0}
.board-appearance>summary{list-style:none;padding:8px 10px;min-height:34px;font-size:12px;border:1px solid #c5cbd3;border-radius:5px;cursor:pointer;background:#fff;color:#44546f}
.board-appearance>summary::-webkit-details-marker{display:none}
.board-list-panel .board-color-swatches{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin:10px 0}
.board-list-panel .board-color-swatches button{--swatch:#f1f2f4;width:100%;height:30px;min-height:30px;padding:0;margin:0;border:2px solid transparent;border-radius:4px;background:var(--swatch);color:#172b4d}
.board-color-swatches [data-color=green]{--swatch:#4bce97!important}.board-color-swatches [data-color=yellow]{--swatch:#efd32b!important}.board-color-swatches [data-color=orange]{--swatch:#faa53d!important}.board-color-swatches [data-color=red]{--swatch:#f87168!important}.board-color-swatches [data-color=blue]{--swatch:#579dff!important}.board-color-swatches [data-color=purple]{--swatch:#b386e5!important}.board-color-swatches [data-color=pink]{--swatch:#e774bb!important}.board-color-swatches [data-color=gray]{--swatch:#8590a2!important}.board-color-swatches [data-color=lime]{--swatch:#b3df72!important}
.board-list-panel .board-color-swatches [aria-pressed=true]{border-color:#172b4d}
.board-list-panel .personal-list-actions,.shared-list-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px;padding-top:10px;border-top:1px solid #dcdfe4}
.shared-list-actions button{flex:1;padding:6px;font-size:12px;background:#f1f2f4;border:0;border-radius:4px;min-height:32px;color:#44546f;cursor:pointer}
.shared-list-actions button:disabled{opacity:.4;cursor:default}
[data-shared-card]{position:relative;flex-shrink:0}
[data-shared-card][hidden],[data-personal-card][hidden]{display:none!important}
.shared-card-menu{position:absolute;right:4px;top:4px;z-index:2}
.shared-card-menu>summary{display:grid;place-items:center;list-style:none;width:28px;height:26px;cursor:pointer;border-radius:4px;color:#44546f;background:#fff;opacity:0}
.shared-card-menu>summary::-webkit-details-marker{display:none}
[data-shared-card]:hover .shared-card-menu>summary,.shared-card-menu:focus-within>summary,.shared-card-menu[open]>summary{opacity:1}
.shared-card-menu[open]{z-index:6}
.shared-card-menu>div{position:absolute;right:0;top:28px;width:180px;padding:6px;background:#fff;border:1px solid #dcdfe4;box-shadow:0 5px 15px #091e4226;border-radius:6px}
.shared-card-menu .button{display:block;text-align:left;width:100%;font-size:12px}
body.studio-theme #app.office-app.studio-shell.intake-board-mode [data-shared-card] .intake-card h3{padding-right:16px}
@media(max-width:700px){
 body.studio-theme #app.office-app.studio-shell.intake-workspace .page-heading .display{font-size:22px}
 body.studio-theme #app.office-app.studio-shell.intake-workspace .personal-board-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:8px;gap:7px}
 body.studio-theme #app.office-app.studio-shell.intake-workspace .personal-board-toolbar>nav{grid-column:1/-1;max-width:100%;width:auto;overflow-x:auto}
 body.studio-theme #app.office-app.studio-shell.intake-workspace .personal-board-toolbar>label{font-size:0;min-width:0;width:100%}
 body.studio-theme #app.office-app.studio-shell.intake-workspace .personal-board-toolbar>label:has([data-board-picker]){grid-column:1}
 body.studio-theme #app.office-app.studio-shell.intake-workspace .personal-board-toolbar>label:has([data-board-search]){grid-column:1/-1;grid-row:3;min-width:0}
 body.studio-theme #app.office-app.studio-shell.intake-workspace .board-appearance{grid-column:2;grid-row:2}
 body.studio-theme #app.office-app.studio-shell.intake-workspace .personal-board-toolbar .input{font-size:16px;height:36px;min-height:36px}
 body.studio-theme #app.office-app.studio-shell.intake-workspace .personal-board-toolbar [data-board-search]{font-size:16px}
 body.studio-theme #app.office-app.studio-shell.intake-board-mode .intake-board{padding:9px;gap:10px;border-radius:0;scroll-padding-left:9px}
 body.studio-theme #app.office-app.studio-shell.intake-board-mode .intake-board .intake-column,.board-add-list{flex-basis:min(272px,calc(100vw - 66px))}
 body.studio-theme #app.office-app.studio-shell.intake-workspace .intake-context{padding:5px 9px;font-size:10px}
 .shared-card-menu>summary{opacity:1}
}
/* Top-layer menus remain reachable even beside the last card in a scrolling list. */
.board-list-panel[popover],.board-appearance-panel[popover],.personal-card-move[popover],.shared-card-menu>div[popover]{margin:0;inset:auto;max-height:calc(100dvh - 24px);overflow:auto}
.board-list-panel[popover]::backdrop,.board-appearance-panel[popover]::backdrop,.personal-card-move[popover]::backdrop,.shared-card-menu>div[popover]::backdrop{background:transparent}

/* Changing the view changes its contents, never the surrounding workspace. */
body.studio-theme #app.office-app.studio-shell.intake-workspace :is(.intake-board,.intake-table-view,.board-schedule){--canvas:#e8e9ed}
body.studio-theme #app.office-app.studio-shell.intake-workspace [data-background=blue]{--canvas:#c9dbea}
body.studio-theme #app.office-app.studio-shell.intake-workspace [data-background=green]{--canvas:#d2e2da}
body.studio-theme #app.office-app.studio-shell.intake-workspace [data-background=pink]{--canvas:#ead5df}
body.studio-theme #app.office-app.studio-shell.intake-workspace [data-background=purple]{--canvas:#dfdaeb}
body.studio-theme #app.office-app.studio-shell.intake-workspace :is(.intake-table-view,.board-schedule){box-sizing:border-box;min-width:0;max-width:100%;margin:0;padding:12px;border:1px solid #d3d7de;border-radius:0 0 9px 9px;background:var(--canvas);height:var(--board-height,calc(100dvh - 300px));min-height:240px;overflow:auto;scrollbar-color:#8994a7 transparent;color:#172b4d}
body.studio-theme #app.office-app.studio-shell.intake-workspace .intake-context .button{min-height:20px;padding:0 4px;font-size:11px;line-height:20px;color:#44546f}
body.studio-theme #app.office-app.studio-shell.intake-workspace .intake-table-view table{background:#fff;border-radius:7px;font-size:13px;color:#172b4d}
body.studio-theme #app.office-app.studio-shell.intake-workspace .intake-table-view th{position:sticky;top:-12px;z-index:1;background:#f7f8f9;color:#626f86;font-size:11px;font-weight:600;text-transform:none;border-color:#dcdfe4;padding:11px 12px}
body.studio-theme #app.office-app.studio-shell.intake-workspace .intake-table-view td{padding:11px 12px;border-color:#dcdfe4}
body.studio-theme #app.office-app.studio-shell.intake-workspace .intake-table-view a{color:#172b4d}
body.studio-theme #app.office-app.studio-shell.intake-workspace .intake-table-view a:hover{color:#0c66e4;text-decoration:underline}
body.studio-theme #app.office-app.studio-shell.intake-workspace .intake-table-view small{color:#626f86;font-size:11px}
body.studio-theme #app.office-app.studio-shell.intake-workspace .intake-table-view tr:hover{background:#f4f7fc}
body.studio-theme #app.office-app.studio-shell.intake-workspace .board-schedule>header{margin:0;padding:2px 0 10px;gap:8px}
body.studio-theme #app.office-app.studio-shell.intake-workspace .board-schedule h2{font-size:18px;line-height:24px;letter-spacing:-.2px;color:#172b4d}
body.studio-theme #app.office-app.studio-shell.intake-workspace .board-schedule>header .button{background:#fff;color:#44546f;border:1px solid #c5cbd3;border-radius:5px;min-height:32px;padding:5px 10px;font-size:12px}
body.studio-theme #app.office-app.studio-shell.intake-workspace .board-schedule>.field-help{font-size:11px;line-height:1.5;color:#44546f;margin:0 0 12px}
body.studio-theme #app.office-app.studio-shell.intake-workspace .board-calendar-weekdays{color:#44546f;font-size:11px}
body.studio-theme #app.office-app.studio-shell.intake-workspace .board-calendar-days{gap:1px;border:1px solid #c5cbd3;border-radius:6px;background:#c5cbd3;overflow:hidden}
body.studio-theme #app.office-app.studio-shell.intake-workspace .board-calendar-day{background:#fff;border:0;padding:8px}
body.studio-theme #app.office-app.studio-shell.intake-workspace .board-calendar-spacer{background:#f1f2f4}
body.studio-theme #app.office-app.studio-shell.intake-workspace .board-calendar-day.is-today{background:#edf4ff;outline:0;box-shadow:inset 0 3px #0c66e4}
body.studio-theme #app.office-app.studio-shell.intake-workspace .board-calendar-day h3{font-size:12px;color:#44546f}
body.studio-theme #app.office-app.studio-shell.intake-workspace .board-schedule-entry{border:1px solid #dcdfe4;border-left:3px solid #579dff;border-radius:5px;background:#f7f8f9;color:#172b4d;padding:8px;box-shadow:0 1px 1px #091e4210}
body.studio-theme #app.office-app.studio-shell.intake-workspace .board-schedule-entry:hover{background:#edf4ff;border-color:#0c66e4}
body.studio-theme #app.office-app.studio-shell.intake-workspace .board-schedule-entry strong{font-size:12px;font-weight:600}
body.studio-theme #app.office-app.studio-shell.intake-workspace .board-schedule-entry :is(span,small){color:#626f86;font-size:11px}
body.studio-theme #app.office-app.studio-shell.intake-workspace .board-timeline{background:#fff;border:1px solid #dcdfe4;border-radius:6px;padding:8px}
body.studio-theme #app.office-app.studio-shell.intake-workspace .board-timeline-scale{font-size:11px;color:#626f86}
body.studio-theme #app.office-app.studio-shell.intake-workspace .board-timeline-track{background:repeating-linear-gradient(to right,#f7f8f9 0,#f7f8f9 calc(100%/31 - 1px),#dcdfe4 calc(100%/31 - 1px),#dcdfe4 calc(100%/31))}
body.studio-theme #app.office-app.studio-shell.intake-workspace .board-timeline-track span{background:#85b8ff;border:1px solid #579dff;border-radius:4px}
body.studio-theme #app.office-app.studio-shell.intake-workspace .board-schedule-undated{background:#f7f8f9;border:1px solid #dcdfe4;border-radius:6px;padding:10px 12px;font-size:12px;color:#44546f}
body.studio-theme #app.office-app.studio-shell.intake-workspace .board-schedule-undated a{color:#172b4d;border-color:#dcdfe4}
@media(max-width:700px){
 body.studio-theme #app.office-app.studio-shell.intake-workspace :is(.intake-table-view,.board-schedule){padding:9px;border-radius:0}
 body.studio-theme #app.office-app.studio-shell.intake-workspace .intake-table-view table{background:transparent}
 body.studio-theme #app.office-app.studio-shell.intake-workspace .intake-table-view tr{margin:0 0 8px;border-color:#dcdfe4;border-radius:8px;box-shadow:0 1px 1px #091e4226;padding:10px;gap:8px}
 body.studio-theme #app.office-app.studio-shell.intake-workspace .intake-table-view td{padding:0;font-size:12px}
 body.studio-theme #app.office-app.studio-shell.intake-workspace .intake-table-view td::before{color:#626f86;font-size:10px}
 body.studio-theme #app.office-app.studio-shell.intake-workspace .intake-table-view td:first-child strong{font-size:14px;font-weight:600}
 body.studio-theme #app.office-app.studio-shell.intake-workspace .board-calendar-days{background:transparent;border:0;gap:8px}
 body.studio-theme #app.office-app.studio-shell.intake-workspace .board-calendar-day{border:1px solid #dcdfe4;border-radius:7px}
}

/* deadline-report.css */
.deadline-report{min-width:0}.deadline-report-filters{display:flex;align-items:end;gap:14px;flex-wrap:wrap;padding:20px 0;border-bottom:1px solid var(--line,#dfe1e4);margin-bottom:24px}.deadline-report-filters label{display:grid;gap:6px;font-size:12px;font-weight:650;min-width:140px}.deadline-report-filters input,.deadline-report-filters select{font:inherit;font-size:14px;background:#fff;color:#20231f;border:1px solid #d6d9d3;border-radius:4px;padding:11px;min-width:0;max-width:100%}.deadline-report-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.deadline-report-heading h2{font-size:30px;letter-spacing:-1px;margin:6px 0}.deadline-report-heading>strong{font-size:34px}.deadline-report-heading small{display:block;font-size:12px;font-weight:500}.deadline-report-heading p,.deadline-report-scope{color:#646966;font-size:13px;line-height:1.6}.deadline-report-table{margin:20px 0}.deadline-report table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:13px}.deadline-report th{text-align:left;text-transform:uppercase;letter-spacing:.04em;font-size:10px;color:#656b67;padding:12px;border-bottom:1px solid #afb6af}.deadline-report td{padding:16px 12px;vertical-align:top;overflow-wrap:anywhere;border-bottom:1px solid #e0e4df}.deadline-report td:first-child{width:30%}.deadline-report td p{margin:5px 0;line-height:1.5}.deadline-report td small{font-size:11px;color:#656b67}.deadline-state{display:inline-block;padding:3px 6px;background:#eff1ec;border-radius:3px;font-size:12px}.deadline-report [data-deadline-status=provisional] .deadline-state{background:#edfab3}.deadline-report-followups{margin:24px 0;padding:18px 20px;background:#f4f5f1;border-left:3px solid #cfed61}.deadline-report-followups h3{font-size:16px;margin:0}.deadline-report-followups p,.deadline-report-followups li{font-size:13px;line-height:1.7}.deadline-report-footnote{font-size:11px;color:#656b67;padding:12px 0}.deadline-report-error{padding:16px;border-left:3px solid #a54034;background:#fff1ed}.deadline-report a{color:inherit;text-underline-offset:3px}
@media(max-width:650px){.deadline-report-filters{display:grid;grid-template-columns:1fr 1fr;gap:10px}.deadline-report-filters label{min-width:0}.deadline-report-filters button:last-child{grid-column:1/-1}.deadline-report-heading h2{font-size:25px}.deadline-report table,.deadline-report tbody,.deadline-report tr,.deadline-report td{display:block;width:100%}.deadline-report thead{display:none}.deadline-report tr{border:1px solid #dce0d9;margin:14px 0;border-radius:4px;padding:4px 12px}.deadline-report td{border:0;padding:10px 0}.deadline-report td:first-child{width:100%}.deadline-report td::before{content:attr(data-label);display:block;text-transform:uppercase;font-size:10px;letter-spacing:.03em;color:#696e6a;margin-bottom:7px}.deadline-report td+td{border-top:1px solid #e4e7e1}}
@media print{@page{size:A4 landscape;margin:14mm}body.printing-deadlines{background:white!important;color:black!important}body.printing-deadlines .studio-topbar,body.printing-deadlines .sidebar,body.printing-deadlines .office-bottom-nav,body.printing-deadlines .skip-link,body.printing-deadlines .page-heading,body.printing-deadlines .workspace-heading,body.printing-deadlines .tabs,body.printing-deadlines .deadline-report-filters,body.printing-deadlines #toast-root,body.printing-deadlines #overlay-root,body.printing-deadlines .bottom-note,body.printing-deadlines .page-footer{display:none!important}body.printing-deadlines .studio-main,body.printing-deadlines .studio-page,body.printing-deadlines .main,body.printing-deadlines .page{margin:0!important;padding:0!important;max-width:none!important;width:100%!important}body.printing-deadlines .deadline-report-table{overflow:visible!important}body.printing-deadlines .deadline-report table{display:table;font-size:10px}body.printing-deadlines .deadline-report thead{display:table-header-group}body.printing-deadlines .deadline-report tbody{display:table-row-group}body.printing-deadlines .deadline-report tr{display:table-row;break-inside:avoid;border:none}body.printing-deadlines .deadline-report td,body.printing-deadlines .deadline-report th{display:table-cell;padding:10px 6px;width:auto!important;border-bottom:1px solid #aaa}body.printing-deadlines .deadline-report td::before{display:none}body.printing-deadlines a{text-decoration:none}body.printing-deadlines .deadline-report-followups{break-inside:avoid;background:none}body.printing-deadlines .deadline-report-footnote{color:#333}}
@media screen{html[data-familum-night=true] .deadline-report{color:#e8eef7}html[data-familum-night=true] .deadline-report-heading p,html[data-familum-night=true] .deadline-report-scope,html[data-familum-night=true] .deadline-report td small,html[data-familum-night=true] .deadline-report th,html[data-familum-night=true] .deadline-report td::before,html[data-familum-night=true] .deadline-report-footnote{color:#b8c8dc}html[data-familum-night=true] .deadline-report-filters input,html[data-familum-night=true] .deadline-report-filters select{background:#22354d;color:#eff4fb;border-color:#61738b;color-scheme:dark}html[data-familum-night=true] .deadline-report-filters .button.secondary{background:#22354d!important;color:#eff4fb!important;border-color:#61738b!important}html[data-familum-night=true] .deadline-report-followups{background:#203047;color:#e8eef7}html[data-familum-night=true] .deadline-state{background:#334864;color:#f3f7ff}html[data-familum-night=true] .deadline-report [data-deadline-status=provisional] .deadline-state{background:#4b4720;color:#fff4c4}html[data-familum-night=true] .deadline-report-error{background:#49272a;color:#ffe9e9}html[data-familum-night=true] .deadline-report tr,html[data-familum-night=true] .deadline-report td,html[data-familum-night=true] .deadline-report th{border-color:#52647b}}

/* representation-start.css */
.rp-workspace{color:var(--text,#141615);max-width:1160px;margin-inline:auto}.rp-top{display:flex;align-items:start;justify-content:space-between;gap:24px;margin-bottom:24px}.rp-top h2{font-size:clamp(24px,3vw,36px);letter-spacing:-.035em;margin:5px 0}.rp-kicker{font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--text-muted,#60626a)}.rp-muted{color:var(--text-muted,#60626a);font-size:13px;line-height:1.5}.rp-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr);gap:24px;align-items:start}.rp-workspace section{min-width:0}.rp-panel{border:1px solid var(--border,#dfe1e4);background:var(--surface,#fff);padding:24px}.rp-panel h3{font-size:20px;margin:0 0 18px;letter-spacing:-.025em}.rp-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.rp-field{display:flex;flex-direction:column;gap:7px;margin-bottom:16px;font-size:13px;font-weight:600;min-width:0}.rp-field input,.rp-field select,.rp-field textarea{box-sizing:border-box;max-width:100%;width:100%;min-height:42px;padding:10px 12px;font:inherit;font-weight:400;border:1px solid var(--border,#dfe1e4);border-radius:3px;background:var(--surface,#fff);color:var(--text,#141615)}.rp-field textarea{min-height:80px;resize:vertical}.rp-workspace fieldset{padding:0;border:0;min-width:0;margin:0}.rp-workspace button,.rp-workspace a.rp-button{min-height:42px;display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;border:1px solid var(--border,#cbd0d3);border-radius:3px;background:var(--surface,#fff);color:inherit;font:inherit;font-size:13px;font-weight:650;cursor:pointer;text-decoration:none;box-sizing:border-box}.rp-workspace button:disabled{opacity:.45;cursor:not-allowed}.rp-workspace .rp-primary{background:#dfff7a;color:#141615;border-color:#d4ee76}.rp-actions{display:flex;gap:10px;flex-wrap:wrap}.rp-step{display:flex;gap:16px;padding:16px 0;border-bottom:1px solid var(--border,#dfe1e4);font-size:14px;line-height:1.4}.rp-step>span{font-size:24px;font-weight:600;color:var(--text-muted,#60626a)}.rp-step strong{display:block}.rp-step small{display:block;margin-top:5px;color:var(--text-muted,#60626a)}.rp-release{background:#202522;color:#fff;padding:24px;margin-top:20px}.rp-release .rp-kicker{color:#d3ded4}.rp-release h3{margin:0 0 12px}.rp-release label{display:flex;align-items:start;gap:10px;line-height:1.5;font-size:13px;margin:16px 0}.rp-release input[type=checkbox]{width:18px;min-height:18px;flex:0 0 18px;margin-top:2px}.rp-alert{border-left:3px solid #b75123;background:#fff6ee;color:#713318;padding:14px 16px;margin-bottom:18px;line-height:1.5;font-size:13px}.rp-notice{border-left:3px solid #879e39;padding:14px 16px;margin-bottom:18px;line-height:1.5;font-size:13px;background:#f5f8e9}.rp-workspace ul{padding-left:20px}.rp-workspace li{margin-bottom:8px}.rp-value{font-size:30px;font-weight:700;letter-spacing:-.04em;overflow-wrap:anywhere}.rp-workspace :focus-visible{outline:2px solid #588021;outline-offset:3px}.rp-workspace [hidden]{display:none!important}@media(max-width:760px){.rp-grid{grid-template-columns:1fr;gap:16px}.rp-top{flex-direction:column;gap:12px}.rp-panel,.rp-release{padding:18px}.rp-fields{grid-template-columns:1fr;gap:0}.rp-actions>*{flex:1 1 100%}.rp-workspace{width:100%}}
body.studio-theme .rp-workspace .rp-release h3{color:#fff}
.rp-preview{font-size:13px;line-height:1.55;margin:0 0 14px;color:#d3ded4}.rp-step small[role=alert]{color:#b75123}

/* contract-portals.css */
.contract-portals{display:grid;gap:24px;max-width:1100px}.contract-portals header h2{font-size:clamp(24px,3vw,36px);line-height:1.12;margin:6px 0 14px}.contract-portals header p{max-width:74ch;line-height:1.6}.contract-portals form,.cp-admin-link,.cp-admin-pending{padding:22px;border:1px solid var(--line,#dedfd7);border-radius:14px;background:var(--surface,#fff)}.cp-admin-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:18px}.contract-portals label{display:grid;gap:7px;font-size:13px;font-weight:600}.contract-portals input,.contract-portals select{min-width:0;width:100%;box-sizing:border-box;font:inherit;color:#1a1d16;background:#fff;border:1px solid #d7d9cf;border-radius:7px;min-height:42px;padding:10px}.contract-portals .btn{white-space:normal;margin-top:12px}.cp-admin-list{display:grid;gap:14px}.cp-admin-list article{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;padding:22px;border:1px solid var(--line,#dedfd7);border-radius:14px;background:var(--surface,#fff)}.cp-admin-list h3{margin:14px 0 8px}.cp-admin-list p{overflow-wrap:anywhere}.cp-admin-list form{padding:12px 0 0;border:0}.cp-admin-actions{min-width:0}.cp-admin-message,.cp-admin-pending{background:#f0f6da;color:#2a3810;padding:16px;border-radius:10px}.cp-admin-link input{font-family:monospace;font-size:12px}.contract-portals .muted{font-size:13px;line-height:1.5;color:#68705f}.contract-portals :focus-visible{outline:3px solid #85a33b;outline-offset:2px}@media(max-width:720px){.cp-admin-grid,.cp-admin-list article{grid-template-columns:1fr}.contract-portals form,.cp-admin-list article,.cp-admin-link{padding:16px}.contract-portals .btn{width:100%}}
.cp-mail-dialog { border:1px solid var(--border,#dce0e5); border-radius:8px; width:min(680px,calc(100vw - 24px)); max-height:calc(100dvh - 32px); padding:0; color:inherit; background:var(--surface,#fff); overflow:auto; }
.cp-mail-dialog::backdrop { background:rgba(15,20,23,.5); }
.cp-mail-dialog select { display:block; width:100%; min-height:44px; margin-top:8px; }
.cp-mail-dialog .button { margin:8px 8px 0 0; white-space:normal; min-height:44px; }
.telephone-workspace .toolbar { display:flex; flex-wrap:wrap; gap:12px; }
.telephone-workspace .toolbar>div { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.cp-reminder-settings{border:1px solid var(--line,#dedfd7);padding:14px;margin-bottom:16px;border-radius:4px}.cp-reminder-settings summary{font-weight:700;cursor:pointer;min-height:32px}.contract-portals .cp-reminder-toggle{display:flex;align-items:center;gap:10px;margin-bottom:16px}.contract-portals .cp-reminder-toggle input{width:18px;min-height:18px;flex:none;accent-color:#61742a}.cp-reminder-settings form{padding:0}.cp-reminder-settings .cp-admin-grid{margin-bottom:14px}
/* Keep actions legible when this workspace is mounted independently. */
.contract-portals .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 14px;margin-right:8px;border:1px solid #cbd2c6;border-radius:5px;background:#fff;color:#242b26;font:600 13px/1.3 inherit;cursor:pointer;text-align:center}
.contract-portals .btn.primary,.contract-portals [data-reminder] button[type=submit]{background:#252d28;color:#e2fc77;border-color:#252d28}
.contract-portals .btn:hover:not(:disabled){border-color:#65724d;background:#f0f4e7;color:#222a23}
.contract-portals .btn:disabled{opacity:.5;cursor:default}
.contract-portals .cp-admin-actions>.btn{margin-bottom:4px}
@media(max-width:720px){.contract-portals .btn{margin-right:0}}

.cp-send-body{padding:24px;display:grid;gap:18px}.cp-send-body header p{line-height:1.5}.cp-send-body h2{margin:4px 0 10px}.cp-send-body label{display:grid;gap:8px}.cp-send-body input,.cp-send-body select{box-sizing:border-box;min-height:42px;width:100%;border:1px solid #cbd4e1;border-radius:6px;background:var(--surface,#fff);color:inherit;padding:10px;font:inherit}.cp-send-body fieldset{margin:16px 0;padding:16px;border:1px solid #dce0e5;border-radius:8px}.cp-send-body .cp-send-count{display:grid;grid-template-columns:minmax(0,1fr) 70px;align-items:center;margin-top:12px}.cp-send-count small{display:block;color:#68768a;font-size:12px;margin-top:4px}.cp-send-body .cp-send-check{display:flex;align-items:flex-start;margin:16px 0;font-size:13px}.cp-send-check input{width:20px;min-height:20px;flex:none}.cp-send-results{display:grid;gap:12px}.cp-send-results article{border:1px solid #dce0e5;border-radius:8px;padding:16px;overflow-wrap:anywhere}.cp-send-results p{font-size:13px}.cp-send-body [role=status]{padding:12px;background:#eaf2ff;border-radius:6px;color:#1c4479}

.cp-send-documents{margin:12px 0}.cp-send-documents article{padding:12px 0;border-top:1px solid #dce0e5}.cp-send-documents pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:230px;overflow:auto;font:12px/1.6 inherit;padding:12px;background:var(--surface-alt,#f2f5fa);border-radius:6px}

/* employee-sickness.css */
.sickness-workspace{max-width:1160px;margin-inline:auto;color:var(--text,#181b18)}.sickness-top{display:flex;justify-content:space-between;gap:20px;align-items:start;margin-bottom:24px}.sickness-top h2{font-size:clamp(24px,3vw,34px);letter-spacing:-.04em;margin:5px 0}.sickness-eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:.1em;font-weight:700;color:#626864}.sickness-grid{display:grid;grid-template-columns:minmax(260px,1fr) minmax(0,1.35fr);gap:24px;align-items:start}.sickness-grid>div:only-child{grid-column:1/-1}.sickness-panel{padding:24px;border:1px solid #dce0db;background:#fff;margin-bottom:20px;min-width:0}.sickness-panel h3{margin:4px 0 18px;letter-spacing:-.02em}.sickness-panel p{font-size:14px;line-height:1.5}.sickness-panel label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:600;margin-bottom:18px;min-width:0}.sickness-panel input,.sickness-panel select{width:100%;min-width:0;max-width:100%;box-sizing:border-box;min-height:42px;padding:9px 11px;border:1px solid #d3d9d1;border-radius:3px;background:#fff;color:#181b18;font:inherit;font-weight:400}.sickness-panel fieldset{border:0;padding:0;margin:0;min-width:0}.sickness-fields{display:grid;align-items:end;grid-template-columns:1fr 1fr;gap:16px}.sickness-context{padding:16px;background:#f4f6ef;margin:18px 0;line-height:1.5}.sickness-context strong{font-size:13px}.sickness-context p{margin:8px 0}.sickness-context small,.sickness-muted{color:#5f665e;font-size:13px;line-height:1.5}.sickness-panel label.sickness-confirm{display:flex;flex-direction:row;align-items:start;line-height:1.5}.sickness-confirm input{width:18px;min-height:18px;flex:0 0 18px;margin:2px 0 0}.sickness-workspace button{display:inline-flex;justify-content:center;align-items:center;min-height:42px;padding:10px 14px;box-sizing:border-box;background:#fff;color:#181b18;border:1px solid #cbd1c8;border-radius:3px;font:inherit;font-size:13px;font-weight:600;line-height:1.3;cursor:pointer}.sickness-workspace button:disabled{opacity:.45;cursor:not-allowed}.sickness-workspace .sickness-primary{background:#dfff7a;border-color:#cddd91}.sickness-actions{display:flex;flex-wrap:wrap;gap:10px}.sickness-alert{padding:14px 16px;background:#fff4ea;border-left:3px solid #bd692c;font-size:14px;line-height:1.5}.sickness-notice{padding:14px 16px;background:#f3f7e8;border-left:3px solid #91a54a;font-size:14px;line-height:1.5}.sickness-row{display:flex;gap:20px;justify-content:space-between;padding:15px 0;border-bottom:1px solid #e0e4dc}.sickness-row>div{min-width:0;overflow-wrap:anywhere}.sickness-status{display:inline-block;padding:4px 8px;background:#f2f2e8;font-size:12px}.sickness-record{padding:20px 0;border-top:1px solid #e0e4dc}.sickness-record header{display:flex;justify-content:space-between;gap:16px}.sickness-record details{margin-top:18px;font-size:13px;line-height:1.5}.sickness-record summary{cursor:pointer}.sickness-workspace :focus-visible{outline:2px solid #537b21;outline-offset:3px}@media(max-width:800px){.sickness-grid{grid-template-columns:1fr;gap:0}.sickness-top{flex-direction:column}.sickness-panel{padding:18px}.sickness-fields{grid-template-columns:1fr;gap:0}.sickness-row,.sickness-record header{flex-direction:column;gap:4px}.sickness-actions>*{flex:1 1 100%}.sickness-grid>div{min-width:0}.sickness-workspace{width:100%;min-width:0}}

/* feedback.css */

.feedback-dialog,.feedback-workspace{--fb-ink:#222623;--fb-muted:#686d68;--fb-line:#dadeda;--fb-lime:#ddfa79;font-family:var(--font-ui,Manrope,Arial,sans-serif);color:var(--fb-ink)}.feedback-dialog *,.feedback-workspace *{box-sizing:border-box;min-width:0}.feedback-dialog{padding:0;border:1px solid #343b32;border-radius:5px;width:min(640px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;background:#fff;box-shadow:0 26px 100px #0003}.feedback-dialog::backdrop{background:#111a16aa;backdrop-filter:blur(3px)}.feedback-dialog-head{padding:28px 30px;display:flex;align-items:flex-start;justify-content:space-between;gap:18px;background:#222623;color:#fff;border-bottom:4px solid var(--fb-lime)}.feedback-eyebrow{font-size:10px;font-weight:700;letter-spacing:.14em;line-height:1.5}.feedback-dialog-head .feedback-eyebrow{color:var(--fb-lime)}.feedback-dialog-head h2{color:#fff!important;font-size:31px;line-height:1.16;letter-spacing:-.045em;max-width:430px;margin:12px 0 0}.feedback-dialog button,.feedback-workspace button,.feedback-dialog a{font:inherit;cursor:pointer;border:1px solid var(--fb-line);background:#fff;color:var(--fb-ink);border-radius:3px;padding:11px 15px;font-size:13px;text-decoration:none;line-height:1.35}.feedback-dialog .feedback-close{background:transparent;color:#fff;border-color:#6a736b;padding:0;width:36px;height:36px;flex:0 0 36px;font-size:25px;line-height:1}.feedback-dialog :is(button,a):focus-visible,.feedback-workspace :is(button,select,a):focus-visible{outline:3px solid #839c28;outline-offset:3px}.feedback-dialog button:disabled,.feedback-workspace button:disabled{opacity:.45;cursor:default}.feedback-dialog .feedback-primary,.feedback-workspace .feedback-primary,.feedback-trigger{background:var(--fb-lime,#ddfa79);border-color:var(--fb-lime,#ddfa79);color:#20251c;font-weight:700}.feedback-form{padding:25px 30px}.feedback-form>p:first-child{font-size:14px;line-height:1.6;color:var(--fb-muted);margin:0 0 23px}.feedback-categories{margin:0 0 23px;padding:0;border:0;display:flex;gap:7px;flex-wrap:wrap}.feedback-categories legend,.feedback-message-label{font-size:12px;font-weight:700;padding:0;margin:0 0 10px;display:block}.feedback-categories label{position:relative;display:block;flex:1 1 140px}.feedback-categories input{position:absolute;opacity:0;width:1px;height:1px}.feedback-categories label span{display:flex;align-items:center;justify-content:center;height:100%;text-align:center;border:1px solid var(--fb-line);border-radius:3px;padding:11px 9px;font-size:12px;font-weight:600;cursor:pointer}.feedback-categories input:checked+span{background:#f3f8e7;border-color:#505e34;box-shadow:inset 0 -2px #a6c63e}.feedback-categories input:focus-visible+span{outline:3px solid #839c28;outline-offset:2px}.feedback-categories:disabled label span{cursor:default;opacity:.6}.feedback-form textarea{font:inherit;font-size:15px;line-height:1.6;display:block;resize:vertical;width:100%;min-height:160px;max-height:400px;padding:14px;border:1px solid #aeb5ad;border-radius:3px;background:#fff;color:var(--fb-ink)}.feedback-form textarea:focus{outline:2px solid #758931;outline-offset:2px}.feedback-form textarea[readonly]{background:#f5f6f3}.feedback-help{display:flex;justify-content:space-between;gap:15px;font-size:10px;color:var(--fb-muted);margin:9px 0 18px;line-height:1.5}.feedback-help [data-feedback-count]{flex-shrink:0;font-variant-numeric:tabular-nums}.feedback-context{font-size:12px;color:var(--fb-muted);display:flex;gap:8px;align-items:center;padding-top:14px;border-top:1px solid var(--fb-line)}.feedback-context:before{content:'↗';font-size:16px;color:var(--fb-ink)}.feedback-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.feedback-form>.feedback-actions{border-top:1px solid var(--fb-line);padding-top:18px;margin-top:22px}.feedback-actions>span{font-size:11px;color:var(--fb-muted);max-width:220px;line-height:1.6}.feedback-primary span{padding-left:10px}.feedback-alert{color:#852d1b;background:#fff4ef;border-left:3px solid #b55233;padding:12px 15px;font-size:13px;line-height:1.5;overflow-wrap:anywhere}.feedback-alert button{display:block;margin-top:12px}.feedback-pending{font-size:12px;line-height:1.6;color:#735021}.feedback-discard{padding:13px;background:#f6f6f2;border:1px solid var(--fb-line);font-size:12px;line-height:1.6}.feedback-discard p{margin:0 0 12px}.feedback-success{padding:32px 30px 30px;outline:none}.feedback-check{display:flex;align-items:center;justify-content:center;width:44px;height:44px;background:var(--fb-lime);border-radius:50%;font-size:24px}.feedback-success h3{font-size:23px;letter-spacing:-.035em;margin:20px 0 12px;color:var(--fb-ink)!important}.feedback-success p{font-size:13px;line-height:1.7;overflow-wrap:anywhere;color:var(--fb-muted)}.feedback-success .feedback-actions{margin-top:26px}.feedback-workspace{padding:24px;max-width:1200px;margin:auto}.feedback-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;padding-bottom:24px;border-bottom:1px solid var(--fb-line)}.feedback-heading h2{margin:9px 0;font-size:40px;line-height:1.1;letter-spacing:-.055em;color:var(--fb-ink)}.feedback-heading p{font-size:13px;line-height:1.6;color:var(--fb-muted);margin:0}.feedback-list{display:grid;gap:16px;margin-top:24px}.feedback-item{border:1px solid var(--fb-line);padding:23px 25px;background:#fff}.feedback-item>header{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.feedback-reference{font-size:10px;letter-spacing:.1em;font-weight:600;color:var(--fb-muted);overflow-wrap:anywhere}.feedback-item h3{font-size:19px;letter-spacing:-.025em;margin:7px 0 0;color:var(--fb-ink)}.feedback-status{font-size:11px;font-weight:700;line-height:1.4;padding:5px 9px;white-space:nowrap;background:#f0f1ed;border:1px solid #d9ddd4;border-radius:3px}.feedback-status-planned{background:#f0f5df;border-color:#c0d487}.feedback-status-resolved{background:#e9f2e6;border-color:#b9cfac;color:#315529}.feedback-original{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.75;margin:24px 0;color:#353d35}.feedback-item>footer{border-top:1px solid var(--fb-line);padding-top:16px;display:flex;justify-content:space-between;align-items:flex-end;gap:18px}.feedback-meta{display:grid;gap:5px;font-size:11px;color:var(--fb-muted);line-height:1.5;overflow-wrap:anywhere}.feedback-item form{display:flex;align-items:flex-end;gap:8px}.feedback-item form label{font-size:11px;font-weight:600;display:grid;gap:6px}.feedback-item select{font:inherit;font-size:13px;padding:10px 26px 10px 10px;border:1px solid var(--fb-line);border-radius:3px;background:#fff;max-width:100%;color:var(--fb-ink);height:40px}.feedback-item form button{height:40px;padding:9px 12px}.feedback-empty{margin-top:24px;background:#f6f7f3;padding:48px 28px;border:1px solid var(--fb-line);font-size:14px;line-height:1.6}.feedback-empty>span{font-size:28px}.feedback-empty h3{font-size:23px;letter-spacing:-.025em;margin:15px 0 8px}.feedback-empty p{color:var(--fb-muted);max-width:480px}.feedback-notice{padding:12px 15px;border-left:3px solid #9cb740;background:#f2f7e6;font-size:13px}.feedback-more{display:block;margin:24px auto}.feedback-sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.feedback-trigger{display:inline-flex;gap:8px;align-items:center;font:inherit;font-size:12px;border:1px solid #d4ec81;border-radius:3px;padding:9px 12px;cursor:pointer;white-space:nowrap}@media(max-width:600px){.feedback-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}.feedback-dialog-head{padding:21px 19px}.feedback-dialog-head h2{font-size:26px}.feedback-form,.feedback-success{padding:22px 19px}.feedback-categories{gap:6px}.feedback-categories label{flex:1 1 100%;}.feedback-categories label span{justify-content:flex-start;padding:10px 12px}.feedback-form textarea{min-height:140px;font-size:16px}.feedback-help{font-size:10px;gap:12px}.feedback-form>.feedback-actions{flex-direction:column;align-items:stretch}.feedback-form>.feedback-actions>span{max-width:none}.feedback-form>.feedback-actions>button{width:100%}.feedback-workspace{padding:16px}.feedback-heading{display:block}.feedback-heading h2{font-size:34px}.feedback-heading>.feedback-actions{margin-top:18px;justify-content:flex-start}.feedback-item{padding:19px 16px}.feedback-item>header{gap:12px}.feedback-item h3{font-size:18px}.feedback-item>footer{display:block}.feedback-item form{margin-top:16px;flex-wrap:wrap;align-items:flex-end}.feedback-item form label{flex:1 1 90px}.feedback-item form button{flex:1 1 100px}.feedback-success .feedback-actions>*{flex:1 1 120px;text-align:center}.feedback-heading .feedback-actions>*{flex:1 1 120px}.feedback-discard .feedback-actions>*{flex:1 1 130px}.feedback-empty{padding:30px 20px}}@media(prefers-reduced-motion:reduce){.feedback-dialog{scroll-behavior:auto}}
.feedback-dialog.is-covered .feedback-dialog-shell{visibility:hidden}.feedback-dialog.is-covered::after{content:'Sitzung wird geprüft …';position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#f7f8f4;color:#454e40;font-size:14px;padding:24px}.studio-tools .feedback-trigger{display:inline-flex;align-items:center;gap:7px;flex:0 0 auto;padding:8px 10px;background:#fff;color:#222623;border:1px solid #dce0da;height:36px}.studio-tools .feedback-trigger svg{width:19px;height:19px;flex:0 0 19px}.studio-tools .feedback-trigger:focus-visible{outline:3px solid #879e34;outline-offset:2px}@media(max-width:960px){.studio-tools .feedback-trigger{padding:0;width:32px;min-width:32px;height:36px;justify-content:center}.studio-tools .feedback-trigger span{display:none}}

/* workspace-home.css */

.workspace-home{overflow-wrap:anywhere}
.workspace-home-primary>span,.workspace-home-task-bottom>span{min-width:0}
.workspace-home{--wh-ink:#202522;--wh-muted:#686e68;--wh-line:#dee2da;--wh-lime:#dffa7d;font-family:var(--font-ui,Manrope,Arial,sans-serif);color:var(--wh-ink);max-width:1440px;padding:8px 20px 24px;margin:0 auto}.workspace-home *{box-sizing:border-box;min-width:0}.workspace-home a{color:inherit;text-decoration:none}.workspace-home svg{flex:0 0 auto}.workspace-home a:focus-visible{outline:3px solid #7c932d;outline-offset:4px;border-radius:2px}.workspace-home-heading{display:flex;align-items:center;justify-content:space-between;gap:36px;padding:10px 0 28px}.workspace-home-eyebrow{font-size:10px;line-height:1.5;font-weight:750;letter-spacing:.14em;text-transform:uppercase;color:var(--wh-muted);margin:0 0 9px}.workspace-home-heading h1{font-size:clamp(35px,4.2vw,58px);line-height:1.08;letter-spacing:-.055em;font-weight:750;margin:0;color:#101310;overflow-wrap:anywhere}.workspace-home-intro{font-size:14px;line-height:1.7;color:var(--wh-muted);max-width:680px;margin:13px 0 0}.workspace-home-guide{display:flex;align-items:center;gap:14px;border:1px solid var(--wh-line);border-radius:3px;padding:17px 18px;min-width:300px;max-width:370px;flex:0 0 330px;background:#fafbf8}.workspace-home-guide-icon{display:flex;align-items:center;justify-content:center;width:34px;height:38px;color:#596344}.workspace-home-guide>div:nth-child(2){flex:1}.workspace-home-guide strong{font-size:12px;font-weight:750;line-height:1.5;display:block}.workspace-home-guide p{font-size:11px;line-height:1.5;color:var(--wh-muted);margin:3px 0 0}.workspace-home-guide>a{padding:7px;display:flex;margin-right:-7px}.workspace-home-guide progress{appearance:none;border:0;border-radius:0;height:3px;width:100%;display:block;margin-top:11px;background:#e4e8db}.workspace-home-guide progress::-webkit-progress-bar{background:#e4e8db}.workspace-home-guide progress::-webkit-progress-value{background:#7a8c43}.workspace-home-guide progress::-moz-progress-bar{background:#7a8c43}.workspace-home-main{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:20px}.workspace-home-start{display:flex;flex-direction:column;justify-content:space-between;gap:34px;background:#232824;color:#fff;border-radius:3px;padding:29px 32px;min-height:315px}.workspace-home-start-label{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:10px;font-weight:650;letter-spacing:.12em;line-height:1.5;color:#e0e6dc}.workspace-home-start-label>span:last-child{width:9px;height:9px;background:var(--wh-lime);border-radius:1px;flex:0 0 9px}.workspace-home-start h2{color:#fff!important;font-size:clamp(26px,2.6vw,36px);letter-spacing:-.045em;line-height:1.16;font-weight:700;margin:0;max-width:470px;overflow-wrap:anywhere}.workspace-home-start p{font-size:14px;line-height:1.75;color:#c6cec3;max-width:470px;margin:17px 0 0}.workspace-home-start footer{display:flex;justify-content:flex-start}.workspace-home-primary{display:inline-flex;align-items:center;justify-content:space-between;gap:22px;background:var(--wh-lime);color:#202719!important;border:1px solid var(--wh-lime);padding:13px 17px;border-radius:3px;font-size:13px;font-weight:750;line-height:1.5;max-width:100%}.workspace-home-primary span{overflow-wrap:anywhere}.workspace-home-due{border:1px solid var(--wh-line);border-radius:3px;padding:25px 26px;background:#fff;display:flex;flex-direction:column}.workspace-home-due header{padding-bottom:15px}.workspace-home-due h2,.workspace-home-cases h2{font-size:21px;font-weight:750;letter-spacing:-.035em;line-height:1.25;margin:0;color:#171d18}.workspace-home-due ul,.workspace-home-cases ul{padding:0;margin:0;list-style:none}.workspace-home-due li+li{border-top:1px solid var(--wh-line)}.workspace-home-due li a{display:block;padding:12px 0}.workspace-home-task-top,.workspace-home-task-bottom{display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:11px;line-height:1.5;color:var(--wh-muted)}.workspace-home-task-top>span:first-child{font-size:10px;letter-spacing:.04em}.workspace-home-task-top>span:last-child{flex-shrink:0}.workspace-home-due li strong{display:block;font-size:14px;line-height:1.5;margin:5px 0 6px;letter-spacing:-.01em;overflow-wrap:anywhere}.workspace-home-task-bottom>span{overflow-wrap:anywhere}.workspace-home-task-bottom svg{color:#434e3d}.workspace-home-provisional{display:inline-block;font-size:10px;line-height:1.5;color:#72581d;margin-top:8px;background:#faf6e9;padding:3px 6px}.workspace-home-due-empty{display:flex;align-items:flex-start;justify-content:center;flex-direction:column;flex:1;padding:14px 0;color:#748166}.workspace-home-due-empty h3{font-size:16px;line-height:1.4;font-weight:650;color:#303a2f;letter-spacing:-.015em;margin:18px 0 7px}.workspace-home-due-empty p{font-size:12px;line-height:1.75;max-width:360px;color:var(--wh-muted);margin:0}.workspace-home-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:20px 0 32px;border:1px solid var(--wh-line);border-radius:3px;overflow:visible}.workspace-home-shortcuts>a{display:flex;align-items:center;gap:16px;padding:20px 22px;min-height:91px}.workspace-home-shortcuts>a+a{border-left:1px solid var(--wh-line)}.workspace-home-shortcuts>a:hover,.workspace-home-cases li a:hover{background:#fafbf6}.workspace-home-shortcut-icon{display:flex;color:#414d35}.workspace-home-shortcuts>a>div{flex:1}.workspace-home-shortcuts strong{display:block;font-size:13px;font-weight:750;line-height:1.5;overflow-wrap:anywhere}.workspace-home-shortcuts>a>div>span{display:block;font-size:11px;line-height:1.6;color:var(--wh-muted);margin-top:4px;overflow-wrap:anywhere}.workspace-home-shortcuts>a>svg{color:#59624f}.workspace-home-cases{margin-top:28px}.workspace-home-cases>header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.workspace-home-text-link{display:flex;align-items:center;gap:10px;font-size:12px;font-weight:650;line-height:1.5;white-space:nowrap}.workspace-home-cases ul{border-top:1px solid var(--wh-line)}.workspace-home-cases li{border-bottom:1px solid var(--wh-line)}.workspace-home-cases li a{display:flex;align-items:center;gap:18px;min-height:78px;padding:17px 14px}.workspace-home-case-icon{display:flex;align-items:center;justify-content:center;width:35px;flex:0 0 35px;color:#606c55}.workspace-home-cases li a>div{flex:1}.workspace-home-cases li strong{font-size:14px;line-height:1.5;font-weight:700;display:block;overflow-wrap:anywhere}.workspace-home-cases li a>div>span{font-size:11px;line-height:1.5;color:var(--wh-muted);display:block;margin-top:4px;overflow-wrap:anywhere}.workspace-home-case-open{font-size:12px;font-weight:650}.workspace-home-cases li a>svg{color:#4d5842}.workspace-home-cases-empty{display:flex;align-items:flex-start;gap:20px;background:#f6f8f1;padding:27px;border:1px solid #e2e7d9;color:#778266}.workspace-home-cases-empty h3{font-size:16px;font-weight:650;letter-spacing:-.02em;line-height:1.4;color:#394032;margin:0 0 8px}.workspace-home-cases-empty p{font-size:12px;line-height:1.75;color:var(--wh-muted);max-width:720px;margin:0}@media(max-width:1100px){.workspace-home{padding:8px 8px 20px}.workspace-home-heading{gap:24px}.workspace-home-guide{flex-basis:290px;min-width:270px;padding:14px}.workspace-home-main{gap:16px}.workspace-home-start{padding:25px}.workspace-home-due{padding:23px}.workspace-home-shortcuts>a{padding:18px 16px;gap:12px}.workspace-home-shortcut-icon{display:none}}@media(max-width:800px){.workspace-home-heading{display:block}.workspace-home-guide{margin-top:22px;max-width:none;min-width:0;width:100%;padding:15px 17px}.workspace-home-guide-icon{width:27px;height:32px}.workspace-home-guide progress{max-width:380px}.workspace-home-main{grid-template-columns:minmax(0,1fr)}.workspace-home-start{min-height:285px;gap:28px}.workspace-home-due{min-height:245px}.workspace-home-shortcuts{grid-template-columns:minmax(0,1fr)}.workspace-home-shortcuts>a+a{border-left:0;border-top:1px solid var(--wh-line)}.workspace-home-shortcuts>a{padding:18px;min-height:77px}.workspace-home-shortcut-icon{display:flex}.workspace-home-due-empty{padding:8px 0}.workspace-home-cases-empty{padding:22px 18px}}@media(max-width:420px){.workspace-home{padding:5px 0 20px}.workspace-home-heading{padding:7px 0 21px}.workspace-home-heading h1{font-size:35px;line-height:1.13;letter-spacing:-.045em}.workspace-home-intro{font-size:13px;line-height:1.75;margin-top:12px}.workspace-home-guide{padding:14px 13px;gap:10px}.workspace-home-guide strong{font-size:11px}.workspace-home-guide p{font-size:10px}.workspace-home-guide-icon{width:22px}.workspace-home-start{padding:23px 20px;min-height:275px}.workspace-home-start h2{font-size:28px}.workspace-home-start p{font-size:13px}.workspace-home-primary{width:100%;font-size:12px;padding:12px 14px;gap:12px}.workspace-home-due{padding:22px 19px}.workspace-home-due h2,.workspace-home-cases h2{font-size:20px}.workspace-home-task-top{font-size:10px}.workspace-home-shortcuts{margin-bottom:25px}.workspace-home-shortcuts>a{padding:17px 16px;gap:12px}.workspace-home-cases>header{gap:10px;align-items:flex-end}.workspace-home-text-link{font-size:11px;gap:5px}.workspace-home-cases li a{padding:16px 3px;gap:11px}.workspace-home-case-icon{width:26px;flex-basis:26px}.workspace-home-case-open{display:none}.workspace-home-cases li strong{font-size:13px}.workspace-home-cases-empty{padding:21px 16px;gap:13px}.workspace-home-cases-empty>svg{width:24px}.workspace-home-cases-empty h3{font-size:15px}.workspace-home-cases-empty p{font-size:12px}.workspace-home-provisional{max-width:100%;overflow-wrap:anywhere}}@media(prefers-reduced-motion:reduce){.workspace-home a{scroll-behavior:auto}}
.workspace-home-strategy{padding:24px 0;border-top:1px solid var(--line,#dce0d6);border-bottom:1px solid var(--line,#dce0d6);margin-bottom:28px;min-width:0}.workspace-home-queue-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.workspace-home-queue-heading h2{font-size:22px;line-height:1.2;margin:6px 0 8px}.workspace-home-queue-heading p{font-size:13px;line-height:1.5}.workspace-home-strategy h3{margin:0;display:flex;gap:12px;align-items:center}.workspace-home-strategy h3 span{font-size:13px;color:#5e6854}.workspace-home-strategy .workspace-home-main{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:0}.workspace-home-strategy .workspace-home-due:first-child{border-top:3px solid #b8d345}.workspace-home-strategy details{padding:16px}.workspace-home-queue-empty{padding:20px;font-size:13px;color:#66715d}.workspace-home-strategy .workspace-home-task-top{display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap}.workspace-home-strategy .workspace-home-task-bottom{display:block;margin-top:10px;font-size:12px}.workspace-home-strategy a strong{display:block;overflow-wrap:anywhere}@media(max-width:650px){.workspace-home-queue-heading{align-items:flex-start;flex-direction:column;gap:8px}.workspace-home-strategy .workspace-home-main{grid-template-columns:minmax(0,1fr)}.workspace-home-queue-heading h2{font-size:20px}}
.workspace-home-strategy .workspace-home-due{min-height:0}.workspace-home-queue-heading button{font:inherit;font-size:13px;min-height:40px;padding:8px 14px;border:1px solid #dce0d6;border-radius:3px;background:#fff;color:#222c20;cursor:pointer}

/* workspace-shell.css */
/* Legible navigation for the daily workspace. Development views keep their shell. */
body.studio-theme #app.office-app.studio-shell.workspace-friendly .workspace-role { display:flex; flex-direction:column; min-width:0; gap:1px; }
body.studio-theme #app.office-app.studio-shell.workspace-friendly .workspace-role span { font-size:10px; color:#75796f; }
body.studio-theme #app.office-app.studio-shell.workspace-friendly .workspace-role strong { font-size:13px; color:#232823; }
body.studio-theme #app.office-app.studio-shell.workspace-friendly .studio-topbar { grid-template-columns:196px minmax(0,1fr) auto; gap:24px; }
body.studio-theme #app.office-app.studio-shell.workspace-friendly .workspace-nav-role { margin:4px 12px 17px; font-size:10px; font-weight:700; letter-spacing:.07em; text-transform:uppercase; color:#71766d; overflow-wrap:anywhere; }
body.studio-theme #app.office-app.studio-shell.workspace-friendly .studio-rail-main { display:grid; gap:3px; }
body.studio-theme #app.office-app.studio-shell.workspace-friendly .studio-drawer-links { display:block; margin-top:14px; }
body.studio-theme #app.office-app.studio-shell.workspace-friendly .workspace-nav-group { padding-top:17px; margin-top:8px; border-top:1px solid #e9ece5; }
body.studio-theme #app.office-app.studio-shell.workspace-friendly .workspace-nav-group > p { margin:0 12px 10px; color:#797d75; font-size:10px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
body.studio-theme #app.office-app.studio-shell.workspace-friendly .studio-rail .nav-link { width:100%; min-height:44px; justify-content:flex-start; gap:11px; padding:10px 12px; margin:0 0 3px; border-radius:4px; font-size:12px; line-height:1.4; }
body.studio-theme #app.office-app.studio-shell.workspace-friendly .studio-rail .nav-link > svg { flex:0 0 18px; width:18px; height:18px; }
body.studio-theme #app.office-app.studio-shell.workspace-friendly .studio-rail .nav-link > span:not(.nav-count) { position:static; width:auto; height:auto; padding:0; margin:0; overflow:visible; clip:auto; white-space:normal; overflow-wrap:anywhere; }
body.studio-theme #app.office-app.studio-shell.workspace-friendly .studio-rail .nav-link.active { background:#edf1e6; color:#172014; font-weight:750; }
body.studio-theme #app.office-app.studio-shell.workspace-friendly .studio-rail .nav-link.active > svg { color:#172014; }
body.studio-theme #app.office-app.studio-shell.workspace-friendly .studio-rail .nav-link.active::after { display:none; }
body.studio-theme #app.office-app.studio-shell.workspace-friendly .studio-rail .nav-link:focus-visible { outline:2px solid #283721; outline-offset:2px; }
body.studio-theme #app.office-app.studio-shell.workspace-friendly .studio-drawer-links > button { margin:18px 12px 0; font-size:12px; }
body.studio-theme #app.office-app.studio-shell.workspace-friendly .test-workspace-notice { margin-bottom:24px; padding:10px 13px; font-size:12px; background:#f7f8f2; border-color:#e6e9dc; gap:12px; }
body.studio-theme #app.office-app.studio-shell.workspace-friendly .workspace-case-picker { max-width:1100px; }
body.studio-theme #app.office-app.studio-shell.workspace-friendly .workspace-case-search { display:grid; gap:7px; max-width:480px; margin:8px 0 28px; }
body.studio-theme #app.office-app.studio-shell.workspace-friendly .workspace-case-search label { color:#555d52; font-size:12px; font-weight:650; }
body.studio-theme #app.office-app.studio-shell.workspace-friendly .workspace-case-search input { width:100%; min-height:44px; border:1px solid #dce1d6; background:#fff; border-radius:4px; padding:10px 13px; font:inherit; font-size:14px; }
body.studio-theme #app.office-app.studio-shell.workspace-friendly .workspace-case-choices { list-style:none; padding:0; margin:0; border-top:1px solid #e2e6dc; }
body.studio-theme #app.office-app.studio-shell.workspace-friendly .workspace-case-choices li { border-bottom:1px solid #e2e6dc; }
body.studio-theme #app.office-app.studio-shell.workspace-friendly .workspace-case-choices a { display:flex; align-items:center; gap:18px; padding:20px 12px; min-height:76px; color:#22271f; }
body.studio-theme #app.office-app.studio-shell.workspace-friendly .workspace-case-choices a:hover { background:#f6f8f0; }
body.studio-theme #app.office-app.studio-shell.workspace-friendly .workspace-case-choices a > div { flex:1; min-width:0; }
body.studio-theme #app.office-app.studio-shell.workspace-friendly .workspace-case-choices strong { display:block; font-size:15px; overflow-wrap:anywhere; }
body.studio-theme #app.office-app.studio-shell.workspace-friendly .workspace-case-choices small { display:block; margin-top:5px; color:#71756b; font-size:12px; overflow-wrap:anywhere; }
body.studio-theme #app.office-app.studio-shell.workspace-friendly .workspace-case-choices a > span { font-size:12px; color:#5f6857; }
body.studio-theme #app.office-app.studio-shell.workspace-friendly .workspace-case-choices a > svg { flex:0 0 18px; }
body.studio-theme #app.office-app.studio-shell.workspace-friendly .workspace-empty { border-top:1px solid #e3e7dc; padding:34px 0; max-width:620px; }
body.studio-theme #app.office-app.studio-shell.workspace-friendly .workspace-empty h2 { font-size:23px; margin:0 0 12px; letter-spacing:-.5px; }
body.studio-theme #app.office-app.studio-shell.workspace-friendly .workspace-empty p { color:#6b7362; font-size:14px; line-height:1.7; margin:0 0 21px; }
body.studio-theme #app.office-app.studio-shell.workspace-friendly .workspace-area-hint { padding:13px 16px; background:#f5f7ef; border-left:3px solid #d6f872; margin:0 0 20px; font-size:13px; line-height:1.6; color:#46523c; }
body.studio-theme #app.office-app.studio-shell.workspace-friendly .workspace-case-back { display:inline-flex; gap:8px; align-items:center; margin:0 0 12px; font-size:12px; color:#66705d; }
body.studio-theme #app.office-app.studio-shell.workspace-friendly .operations-context { align-items:center; flex-wrap:wrap; }
body.studio-theme #app.office-app.studio-shell.workspace-friendly .operations-context > select { flex:1 1 260px; min-width:0; max-width:100%; }
body.studio-theme #app.office-app.studio-shell.workspace-friendly .workspace-area-select { display:grid; grid-template-columns: minmax(130px,1fr) minmax(210px,2fr); align-items:center; gap:16px; padding:15px 0; margin:10px 0 22px; border-block:1px solid #e2e6dc; }
body.studio-theme #app.office-app.studio-shell.workspace-friendly .workspace-area-select label { font-size:13px; font-weight:700; }
body.studio-theme #app.office-app.studio-shell.workspace-friendly .workspace-area-select select { min-width:0; width:100%; }
@media (min-width:961px) {
 body.studio-theme #app.office-app.studio-shell.workspace-friendly .sidebar.studio-rail { width:228px; padding:24px 12px; }
 body.studio-theme #app.office-app.studio-shell.workspace-friendly .main.studio-main { margin-left:228px; }
 body.studio-theme #app.office-app.studio-shell.workspace-friendly .page.studio-page { padding:30px 32px; }
}
@media (max-width:960px) {
 body.studio-theme #app.office-app.studio-shell.workspace-friendly .studio-topbar { grid-template-columns:minmax(0,1fr) auto; gap:12px; }
 body.studio-theme #app.office-app.studio-shell.workspace-friendly .workspace-role { display:none; }
 body.studio-theme #app.office-app.studio-shell.workspace-friendly .studio-rail .nav-link { min-height:46px; font-size:13px; }
 body.studio-theme #app.office-app.studio-shell.workspace-friendly .workspace-nav-role { margin-top:24px; }
 body.studio-theme #app.office-app.studio-shell.workspace-friendly .office-bottom-nav a { min-width:0; }
 body.studio-theme #app.office-app.studio-shell.workspace-friendly .office-bottom-nav a span { font-size:10px; line-height:1.3; white-space:normal; text-align:center; overflow-wrap:anywhere; }
}
@media (max-width:520px) {
 body.studio-theme #app.office-app.studio-shell.workspace-friendly .studio-tools { gap:6px; }
 body.studio-theme #app.office-app.studio-shell.workspace-friendly .test-workspace-notice { display:flex; flex-wrap:wrap; gap:3px 9px; font-size:11px; }
 body.studio-theme #app.office-app.studio-shell.workspace-friendly .workspace-area-select { grid-template-columns:minmax(0,1fr); gap:7px; }
 body.studio-theme #app.office-app.studio-shell.workspace-friendly .workspace-case-choices a { padding:17px 0; gap:11px; }
 body.studio-theme #app.office-app.studio-shell.workspace-friendly .workspace-case-choices a > span { display:none; }
}
/* Every case exposes its main work areas without requiring a menu search. */
.workspace-case-navigation{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:12px 0 28px;border-bottom:1px solid #dfe3d9;padding-bottom:12px;position:relative;min-width:0}
.workspace-case-tabs{display:flex;flex:1 1 400px;flex-wrap:wrap;gap:4px;min-width:0}
.workspace-case-navigation .workspace-case-tab{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 15px;line-height:1.4;font-size:13px;font-weight:650;color:#50584a;text-decoration:none;border-radius:4px}
.workspace-case-navigation .workspace-case-tab:hover{background:#f1f4eb;color:#172014}.workspace-case-navigation .workspace-case-tab.active{background:#252a24;color:#e4fb88}
.workspace-case-more{margin-left:auto}.workspace-case-more>summary{cursor:pointer;min-height:44px;padding:12px 10px;font-size:13px}.workspace-case-more>div{position:absolute;right:0;top:calc(100% - 6px);z-index:12;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:10px;max-width:min(460px,100%);background:#fff;border:1px solid #dfe3d9;box-shadow:0 12px 30px #17201412;border-radius:5px}.workspace-case-more .workspace-case-tab{justify-content:flex-start;overflow-wrap:anywhere}
.workspace-case-navigation :focus-visible{outline:2px solid #526331;outline-offset:3px}
@media(max-width:640px){.workspace-case-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));flex-basis:100%}.workspace-case-navigation .workspace-case-tab{padding:10px 7px;font-size:12px}.workspace-case-more{width:100%;margin:0}.workspace-case-more>summary{width:100%;text-align:right}.workspace-case-more>div{position:static;max-width:none;box-shadow:none;width:100%}}

/* Keep the mobile navigation balanced when only permitted destinations remain. */
@media (max-width:960px){
 body.studio-theme #app.office-app.studio-shell.workspace-friendly .office-bottom-nav{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}
}

.workspace-test-numbers{display:grid;gap:6px;margin:0 0 22px;padding:14px 16px;border:1px solid currentColor;border-radius:10px;max-width:100%;box-sizing:border-box}
.workspace-test-numbers [data-workspace-test-number]{display:block;line-height:1.6;overflow-wrap:anywhere}
body.studio-theme #app.office-app.studio-shell.workspace-friendly .workspace-case-choices [data-workspace-test-number]{color:inherit;line-height:1.6}
body.studio-theme #app.office-app.studio-shell.workspace-friendly .workspace-case-choices [data-workspace-test-number] strong{display:inline;font-size:inherit}

/* trello-import.css */
.trello-layout{display:grid;grid-template-columns:minmax(250px,340px) minmax(0,1fr);border:1px solid #dfe2db;background:white}.trello-select{padding:26px;border-right:1px solid #dfe2db}.trello-select h2,.trello-preview h2{letter-spacing:-.03em;line-height:1.15}.trello-select>p,.trello-commit p{color:#646861;line-height:1.6}.trello-select label,.trello-commit>label{display:grid;gap:8px;margin:24px 0 12px;font-weight:600}.trello-cards{max-height:65vh;overflow:auto;margin-top:18px}.trello-card{display:flex;flex-direction:column;gap:8px;text-align:left;width:100%;padding:16px 8px;background:none;border:0;border-bottom:1px solid #e6e8e1;font:inherit;cursor:pointer;overflow-wrap:anywhere}.trello-card:hover,.trello-card.selected{background:#f4f7e8}.trello-card small{color:#656d52}.trello-preview{padding:26px;min-width:0}.trello-preview .dd-formatted{line-height:1.65;overflow-wrap:anywhere;white-space:normal;max-height:65vh;overflow:auto;background:#fafbf8;padding:22px;border:1px solid #e6e8e1;margin:20px 0}.trello-confirm{display:flex!important;align-items:flex-start;font-weight:400!important}.trello-confirm input{margin-top:4px;flex:none}.trello-success{padding:18px;background:#f0f7d7;line-height:1.7}.trello-empty{padding:50px 12px;max-width:560px}.trello-commit .select,.trello-select .select{width:100%;min-width:0}.trello-select,.trello-preview{overflow-wrap:anywhere}.trello-commit .button{white-space:normal}
@media(max-width:760px){.trello-layout{grid-template-columns:1fr}.trello-select{border-right:0;border-bottom:1px solid #dfe2db}.trello-select,.trello-preview{padding:18px}.trello-cards{max-height:230px}.trello-preview .dd-formatted{padding:16px;max-height:55vh}}

/* familum.css */
/* Peter's working surface: paper, ink, soft olive and a precise lime accent.
   Existing domain components, dialogs, permissions and focus handling remain. */
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace {--fm-paper:#f8f9f5;--fm-ink:#25352e;--fm-line:#dfe5dc;--fm-muted:#728075;--fm-accent:#d9ef9f;background:var(--fm-paper);color:var(--fm-ink)}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-topbar {height:74px;grid-template-columns:188px minmax(260px,1fr) auto;padding:0 28px;gap:26px;background:#fff;border-bottom:1px solid var(--fm-line);z-index:45}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-brand {font:600 34px/1 Newsreader,Georgia,serif;letter-spacing:-1.5px;color:#293d31}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-brand span {color:#8aab4b}
.fm-primary-nav {display:flex;gap:32px;align-self:stretch;align-items:stretch}
.fm-primary-nav>a {display:inline-flex;gap:8px;align-items:center;font-size:13px;font-weight:650;text-decoration:none;color:#788178;position:relative;white-space:nowrap}
.fm-primary-nav>a[aria-current=page] {color:#273d2c}
.fm-primary-nav>span {display:inline-flex;align-items:center;font-size:13px;color:#8a9484}
.fm-primary-nav>a[aria-current=page]:after {content:'';position:absolute;bottom:0;height:3px;background:#aac36b;left:0;right:0}
.fm-nav-count {font-size:10px;padding:1px 5px;border-radius:4px;background:#eff4e7}
/* Board menus must clear the desktop sidebar (40), below the header (45)
   and the mobile navigation dialog (80). */
.fm-workbar {position:fixed;top:74px;left:0;right:0;z-index:42;min-height:49px;padding:0 28px;display:flex;gap:20px;align-items:center;background:#fff;border-bottom:1px solid var(--fm-line);font-size:11px}
.fm-workbar>div:last-child {margin-left:auto;display:flex;align-items:center;gap:24px}
.fm-workbar a {display:inline-flex;align-items:center;gap:8px;color:#495d4d;text-decoration:none;min-height:42px}
.fm-workbar-context {color:#819080;padding-left:20px;border-left:1px solid var(--fm-line)}
.fm-board-switch {position:relative}.fm-board-switch>summary {cursor:pointer;min-height:46px;display:flex;align-items:center;gap:20px;font-weight:650;list-style:none}
.fm-board-switch>div {position:absolute;top:100%;left:0;min-width:240px;max-height:60vh;overflow:auto;padding:9px;background:white;border:1px solid var(--fm-line);box-shadow:0 16px 40px #20382512}
.fm-board-switch>div>a {display:flex;padding:7px 12px;border-radius:3px}.fm-board-switch>div>a:hover{background:#f1f5e9}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-rail {top:123px;bottom:0;height:calc(100dvh - 123px);background:#f8f9f5;border-right:1px solid var(--fm-line)}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-main {padding-top:123px;background:#f8f9f5}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-page {padding:32px 36px 45px;max-width:none;background:transparent}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-rail .nav-link {font-size:11px;min-height:38px;padding:9px 11px;color:#637361}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-rail .nav-link.active {color:#263d28;background:#e8eeda}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .workspace-nav-group {padding-top:13px;margin-top:10px;border-color:#e4e9df}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .workspace-nav-group>p {font-size:9px;letter-spacing:.12em;color:#95a08f}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-search {border:1px solid var(--fm-line);border-radius:5px;min-height:35px;padding:7px 10px;background:#fafbf8}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-search span {font-size:11px}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .feedback-trigger span {display:none}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-avatar {background:#edf2e3;color:#384a31;border:1px solid #dfe6d4;width:34px;height:34px;font-size:11px}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .page-heading h1 {font-size:32px;letter-spacing:-1px;font-weight:650}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .page-heading {margin-bottom:22px}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .button {border-radius:5px;min-height:36px;font-size:11px;font-weight:650}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .button.primary {background:#2b4434;color:#fff;border-color:#2b4434}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .button.secondary {background:#fff;border-color:#d8dfd2;color:#3a4e37}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .button:hover {filter:brightness(.97)}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .bottom-note {font-size:10px;color:#87917f;border-color:#e2e7dd}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .intake-board {gap:14px;padding:15px 0 24px;background:var(--canvas,#eef1e9)}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .intake-column {background:#eef1e9;border:1px solid #e0e5da;border-radius:7px;padding:9px;min-width:258px}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .intake-column>header {padding:6px 4px 13px}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .intake-card {background:#fff;border:1px solid #dfe5da;border-radius:5px;box-shadow:0 2px 2px #243b2810;margin-bottom:9px}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .intake-card:hover {border-color:#9faf94;box-shadow:0 4px 10px #243b2810}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .workspace-case-navigation {border-color:var(--fm-line)}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .workspace-case-tab.active {background:#2b4434;color:#fff}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .pe-paper {box-shadow:0 4px 30px #2639280c}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .page-heading {background:transparent}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .pe-workspace {padding:12px 0}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .pe-heading h2 {font-size:26px;letter-spacing:-.7px}
.fm-heading {display:flex;gap:24px;justify-content:space-between;align-items:center;margin-bottom:26px}
.fm-eyebrow {font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:#7d8c72;font-weight:650;margin:0 0 9px}
.fm-heading h1 {font-size:32px;font-weight:650;letter-spacing:-1.25px;line-height:1.25;margin:0 0 9px;color:#273c2d}
.fm-heading p:not(.fm-eyebrow) {color:#7a8575;font-size:12px;margin:0}
.fm-count {display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;min-width:28px;height:28px;background:#e5edd7;color:#5a7046;border-radius:6px;font:600 12px Manrope,sans-serif;letter-spacing:0;margin-left:8px}
.fm-inbox-toolbar {display:flex;align-items:center;gap:14px;margin:24px 0 18px}
.fm-inbox-toolbar>div {display:flex;background:#e9eee2;padding:3px;border-radius:5px}
.fm-inbox-toolbar>div>button {border:0;background:transparent;padding:8px 13px;font-size:11px;color:#75816d;cursor:pointer;white-space:nowrap}
.fm-inbox-toolbar>div>button[aria-pressed=true] {background:#fff;border-radius:3px;color:#2c4530;box-shadow:0 1px 4px #283e2012}
.fm-inbox-toolbar>input {margin-left:auto;width:230px}
.fm-inbox input:not([type=checkbox]),.fm-inbox select,.fm-inbox textarea,.fm-bank input:not([type=checkbox]),.fm-bank select,.fm-search input {border:1px solid #dce3d5;background:#fff;border-radius:4px;min-height:38px;padding:9px 11px;font:12px/1.5 Manrope,sans-serif;color:#35492f;width:100%;min-width:0}
.fm-inbox textarea {min-height:70px;resize:vertical}
.fm-inbox-toolbar>input {max-width:230px}
.fm-mail-split {display:grid;grid-template-columns:minmax(250px,33%) minmax(0,1fr);border:1px solid var(--fm-line);border-radius:7px;background:#fff;min-height:590px;overflow:hidden}
.fm-mail-list {border-right:1px solid var(--fm-line);max-height:900px;overflow:auto;background:#fff}
.fm-mail-row {display:block;text-align:left;width:100%;padding:20px 22px;border:0;border-bottom:1px solid #e9ede4;background:white;cursor:pointer;color:#53624b;position:relative;font-family:Manrope,sans-serif}
.fm-mail-row.selected {background:#f2f6eb}.fm-mail-row.selected:before {content:'';position:absolute;left:0;top:0;bottom:0;width:3px;background:#94af5b}
.fm-mail-row:hover {background:#f7f9f2}.fm-mail-meta{display:flex;justify-content:space-between;gap:10px;font-size:9px;color:#6c7a60;margin-bottom:10px;text-transform:uppercase;letter-spacing:.03em}
.fm-mail-row>strong {display:block;font-size:12px;font-weight:750;margin-bottom:5px;overflow-wrap:anywhere}.fm-mail-subject{display:block;font-size:12px;margin-bottom:7px;overflow-wrap:anywhere}
.fm-mail-excerpt {display:block;color:#718065;font-size:11px;line-height:1.6;overflow-wrap:anywhere}.fm-mail-row>small{display:block;color:#819071;font-size:9px;margin-top:12px}
.fm-reader {padding:30px 32px;min-width:0}.fm-reader-header{border-bottom:1px solid #e8ecdf;padding-bottom:23px}.fm-reader-header h2{font-size:21px;line-height:1.4;letter-spacing:-.4px;margin:10px 0;color:#2c402f;overflow-wrap:anywhere}.fm-reader-header p{font-size:11px;color:#7c8973;overflow-wrap:anywhere}.fm-reader-header>a{margin-top:9px}
.fm-message-body {font:16px/1.8 Newsreader,Georgia,serif;color:#465540;white-space:pre-wrap;overflow-wrap:anywhere;padding:26px 0;max-height:440px;overflow:auto}
.fm-attachments {display:flex;gap:8px;flex-wrap:wrap;padding-bottom:22px}.fm-attachments>span{padding:7px 10px;border:1px solid #e3e8dc;border-radius:4px;font-size:10px;color:#6c7c5f;overflow-wrap:anywhere}
.fm-assign-form {border-top:1px solid #e4e9dd;padding-top:22px}.fm-assign-form h3{font-size:14px;margin:0 0 7px}.fm-assign-form>p{font-size:11px;color:#839079;line-height:1.6}
.fm-inbox form>label,.fm-bank form>label {display:grid;gap:7px;margin:15px 0;font-size:11px;font-weight:600;color:#66775b}
.fm-form-actions {display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.fm-review,.fm-assignment-result{padding:18px;background:#f1f6e8;border:1px solid #dfe8cf;margin-top:20px;border-radius:5px;font-size:12px}.fm-review p{font-size:11px}.fm-check{display:flex!important;align-items:flex-start;gap:9px!important;margin:16px 0;font-size:11px}.fm-check>input{flex:0 0 auto;margin-top:2px}
.fm-upload,.fm-existing {margin:22px 0;padding:17px 20px;border:1px solid #dfe5d7;border-radius:5px;background:#fff}.fm-upload summary,.fm-existing summary{font-size:12px;font-weight:600;cursor:pointer;color:#5a704a;min-height:24px}.fm-upload form{max-width:640px;margin-top:20px}.fm-upload p{font-size:11px;color:#859077;line-height:1.7}.fm-existing>div{padding:13px 0;border-bottom:1px solid #e6ecde;font-size:12px;display:flex;align-items:center;gap:16px}.fm-existing>div>span{flex:1;min-width:0;overflow-wrap:anywhere}
.fm-footnote {font-size:10px;line-height:1.7;color:#6f7d62}.fm-status{font-size:12px;color:#526d39;line-height:1.6;white-space:pre-wrap}.fm-status:not(:empty){padding:12px 15px;background:#edf4e1;border-radius:4px;margin:12px 0}.fm-status.fm-error{background:#fff1e9;color:#9e542f}
.fm-empty {padding:60px 24px;text-align:center;max-width:460px;margin:auto;color:#8a987c}.fm-empty>span{font-size:32px;color:#bbcaab}.fm-empty h3{font-size:14px;font-weight:600;line-height:1.5;color:#6c7e5b;margin:16px 0 8px}.fm-empty p{font-size:11px;line-height:1.8;max-width:290px;margin:auto}
.fm-hero {display:flex;justify-content:space-between;gap:30px;padding:25px 0 42px;align-items:center;border-bottom:1px solid #dfe7d7;margin-bottom:33px}.fm-hero h1{font-size:44px;letter-spacing:-1.5px;line-height:1.15;font-weight:600;color:#2a412d;margin:15px 0 22px}.fm-hero h1 em{font:italic 52px/1.12 Newsreader,Georgia,serif;letter-spacing:-1.5px}.fm-hero p:not(.fm-eyebrow){font-size:12px;color:#7b8b70}.fm-hero-note{width:180px;padding:20px;text-align:center;display:grid;gap:8px;color:#5f7a45}.fm-hero-note strong{font-size:12px}.fm-hero-note>span:last-child{font:italic 15px Newsreader,serif}.fm-orbit{font-size:76px;line-height:1.4;color:#a6ba78}
.fm-tool-group{margin:28px 0 36px}.fm-tool-group>h2{font-size:10px;text-transform:uppercase;letter-spacing:.12em;color:#88977c;margin:0 0 15px}.fm-tool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.fm-tool{display:flex;gap:17px;padding:22px;background:white;border:1px solid #e0e6d8;border-radius:6px;text-decoration:none;color:inherit;align-items:flex-start}.fm-tool:hover{border-color:#a5b68e;background:#fcfef8}.fm-tool-icon{font:500 20px/1 Newsreader,serif;display:flex;align-items:center;justify-content:center;width:38px;height:38px;border:1px solid #e1e8d6;background:#f6f9ef;border-radius:6px;flex-shrink:0;color:#799450}.fm-tool>div{flex:1}.fm-tool h3{font-size:13px;font-weight:700;margin:1px 0 8px;color:#384e2e}.fm-tool p{font-size:11px;line-height:1.7;color:#6d7b62;margin:0}.fm-arrow{color:#98a986;font-size:18px}.fm-ai-choice{border:1px solid #dee6d1;padding:25px 30px;display:flex;gap:24px;align-items:center;justify-content:space-between;background:#eff4e5;border-radius:6px}.fm-ai-choice h2{font:27px Newsreader,serif;margin:7px 0}.fm-ai-choice p{font-size:11px;color:#859371;margin:0}
.fm-launch-note{padding:15px 18px;border-left:3px solid #b1c786;background:#f0f4e7;font-size:12px;line-height:1.7;color:#758363;margin-bottom:27px}.fm-search{display:grid;gap:7px;font-size:11px;color:#72875c;max-width:450px;margin-bottom:28px}.fm-case-list{border-top:1px solid #dce4d2}.fm-case-list>div{display:flex;gap:18px;align-items:center;padding:23px 8px;border-bottom:1px solid #dce4d2}.fm-case-list strong{font-size:13px;flex:1;overflow-wrap:anywhere}.fm-case-list a:not(.button){font-size:11px;color:#819669}.fm-case-number{font-size:10px;color:#8e9d7e;min-width:95px}.fm-large-symbol{font:italic 55px Newsreader,serif;color:#a2b57e}
.fm-bank-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin:30px 0}.fm-bank-summary>div{display:grid;gap:12px;padding-left:17px;border-left:2px solid #dae5cb}.fm-bank-summary span{font-size:10px;color:#6a7a5b}.fm-bank-summary strong{font-size:22px;font-weight:500;letter-spacing:-.5px}.fm-bank-table{border-top:1px solid #dce4d2;margin:25px 0}.fm-bank-row{padding:24px 0;border-bottom:1px solid #dce4d2;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 24px}.fm-bank-row h3{font-size:13px;margin:7px 0}.fm-bank-row p,.fm-bank-row small{font-size:11px;color:#869574;overflow-wrap:anywhere}.fm-bank-row>details{grid-column:1/-1;background:#fff;padding:15px;border:1px solid #e3e9da;border-radius:4px}.fm-bank-row>details>summary{font-size:11px;cursor:pointer;color:#6c854e}.fm-bank-row form{max-width:600px}.fm-amount{display:grid;gap:6px;align-content:start;text-align:right}.fm-amount strong{font-size:17px}.fm-amount span{font-size:10px;color:#8c9a7b}.fm-bank-assigned{grid-column:1/-1}
@media(min-width:961px){body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .sidebar.studio-rail{width:205px;padding:23px 12px}body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .main.studio-main{margin-left:205px}}
@media(max-width:1200px){body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-topbar{grid-template-columns:155px 1fr auto;gap:18px;padding-inline:22px}.fm-primary-nav{gap:23px}body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-search kbd,body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-search span{display:none}.fm-reader{padding:25px 22px}.fm-mail-row{padding:18px}.fm-inbox-toolbar{flex-wrap:wrap}.fm-inbox-toolbar>input{flex:1}.fm-tool{padding:19px 16px}}
@media(max-width:960px){body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-topbar{grid-template-columns:1fr auto;height:110px;align-content:start;padding-top:15px;row-gap:10px}.fm-primary-nav{grid-row:2;grid-column:1/-1;justify-content:center;gap:44px;height:42px}.fm-workbar{top:110px;padding:0 20px}.fm-workbar-context{display:none}.fm-workbar>div:last-child{gap:14px}.fm-workbar a{font-size:10px}body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-main{padding-top:160px;margin-left:0}body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-rail{top:110px;z-index:80;height:calc(100dvh - 110px)}body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-page{padding:27px 22px 85px}.fm-mail-split{grid-template-columns:minmax(215px,35%) minmax(0,1fr)}.fm-heading h1{font-size:28px}.fm-tool-grid{gap:10px}.fm-hero h1{font-size:38px}.fm-hero h1 em{font-size:46px}}
@media(max-width:650px){body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-topbar{padding-inline:16px}.fm-workbar{padding:0 16px}.fm-workbar .fm-urgent{font-size:0;gap:0}.fm-workbar .fm-urgent svg{width:20px;height:20px}.fm-workbar .fm-outbox-link{font-size:10px}.fm-board-switch>summary{font-size:10px}.fm-primary-nav{gap:32px}.fm-primary-nav>a{font-size:12px}body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-page{padding:25px 16px 90px}.fm-heading{gap:12px;align-items:flex-start;flex-wrap:wrap}.fm-heading h1{font-size:27px}.fm-heading p:not(.fm-eyebrow){font-size:11px;line-height:1.6}.fm-inbox-toolbar{gap:10px}.fm-inbox-toolbar>div{flex:1;justify-content:space-between}.fm-inbox-toolbar>div>button{padding-inline:10px}.fm-inbox-toolbar>input{max-width:none;order:3;flex-basis:100%}.fm-mail-split{grid-template-columns:minmax(0,1fr)}.fm-mail-list{max-height:330px;border-right:0;border-bottom:1px solid #dfe5d8}.fm-mail-row{padding:16px 19px}.fm-mail-excerpt{display:none}.fm-reader{padding:23px 19px}.fm-reader-header h2{font-size:20px}.fm-message-body{font-size:16px}.fm-hero{padding-top:5px;gap:0}.fm-hero h1{font-size:33px}.fm-hero h1 em{font-size:40px}.fm-hero-note{display:none}.fm-tool-grid{grid-template-columns:minmax(0,1fr)}.fm-ai-choice{padding:22px;flex-wrap:wrap}.fm-tool-group{margin-bottom:28px}.fm-case-list>div{flex-wrap:wrap;gap:12px}.fm-case-number{min-width:0;flex-basis:100%}.fm-case-list strong{flex-basis:100%}.fm-bank-summary{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:24px}.fm-bank-row{gap:8px}.fm-amount strong{font-size:15px}.fm-existing>div{flex-wrap:wrap}.fm-existing>div>span{flex-basis:100%}.fm-form-actions{gap:7px}}
@media(max-width:650px){body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-tools .feedback-trigger,body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-notifications{display:none}body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-tools{gap:9px}.fm-primary-nav>span{font-size:12px}}

/* Compact shared case context remains above documents, mail and the assistant. */
#familum-case-status-root{position:sticky;top:130px;z-index:30;margin:0 0 20px}
.fm-case-status{background:#fcfdf8;border:1px solid #d6dfcf;border-radius:12px;box-shadow:0 3px 14px #2434220a;color:#304632;font-size:11px;overflow:hidden}
.fm-status-top{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:10px 15px;border-bottom:1px solid #e3e9dd;background:#edf2e8}
.fm-status-top>strong{font-size:12px}.fm-status-top button{font:inherit;background:none;border:0;color:#425b35;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.fm-status-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:#e3e9dd}
.fm-status-item{min-width:0;display:flex;flex-direction:column;gap:5px;padding:10px 14px;background:#fcfdf8;text-decoration:none;color:inherit}
.fm-status-item>span{font-size:9px;text-transform:uppercase;letter-spacing:.06em;color:#63715e}.fm-status-item strong{font-size:13px}.fm-status-item small{font-size:10px;line-height:1.4;overflow-wrap:anywhere}
.fm-status-followup small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fm-status-details{padding:8px 15px;font-size:10px}.fm-status-details summary{cursor:pointer}.fm-status-details p{margin:8px 0;line-height:1.5}.fm-status-details[open]{max-height:210px;overflow:auto}.fm-status-read-error{padding:10px 15px;color:#853c2f}.fm-time-yellow{background:#fff4c4}.fm-time-orange{background:#ffe0b8}.fm-time-red,.fm-finance-alert{background:#f9e3dd}
@media(min-width:1350px){.fm-status-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:960px){#familum-case-status-root{top:165px}}
@media(max-width:650px){.fm-status-grid{display:flex;overflow-x:auto;scroll-snap-type:x proximity}.fm-status-item{flex:0 0 155px;scroll-snap-align:start}.fm-status-top{padding:9px 12px}.fm-status-top>strong{font-size:11px}.fm-status-details{padding:8px 12px}}
.fm-outbox-compose{margin:20px 0 30px}.fm-outbox-compose>summary{font-size:13px;font-weight:650;cursor:pointer;margin:12px 0}.fm-outbox-compose>.fm-case-list{max-height:250px;overflow:auto}
.fm-outbox-book>h2{font-size:22px;margin:0 0 22px}.fm-outbox-filters{display:flex;align-items:end;gap:14px;margin-bottom:25px;flex-wrap:wrap}.fm-outbox-filters label{display:flex;flex-direction:column;gap:7px;font-size:11px}.fm-outbox-filters label:first-child{flex:1;min-width:210px}.fm-outbox-filters input,.fm-outbox-filters select{font:inherit;border:1px solid #d6decc;background:#fff;padding:12px;border-radius:6px;min-height:40px;color:#374334}
.fm-outbox-record{border:1px solid #dce3d4;background:#fff;border-radius:8px;margin:0 0 10px}.fm-outbox-record>summary{display:grid;grid-template-columns:105px minmax(0,1fr) 180px;gap:20px;padding:18px;cursor:pointer;list-style:none}.fm-outbox-record>summary strong{font-size:14px;overflow-wrap:anywhere}.fm-outbox-record small{display:block;font-size:11px;line-height:1.5;margin-top:4px;color:#6c7867}.fm-outbox-date{font-size:11px;color:#68725f;line-height:1.6}.fm-outbox-state{font-size:10px;color:#8a6232}.fm-outbox-state.confirmed{color:#3f693b}.fm-outbox-record>div{border-top:1px solid #e0e5dc;padding:20px 25px}.fm-outbox-record h3{font-size:12px}.fm-outbox-record ul{font-size:12px;line-height:1.8;padding-left:20px}.fm-outbox-record .fm-message-body{white-space:pre-wrap;font-family:inherit;font-size:13px;max-height:400px;overflow:auto}.fm-outbox-progress{display:flex;justify-content:space-between;align-items:center;font-size:11px;margin:20px 0;gap:15px}
@media(max-width:650px){.fm-outbox-record>summary{grid-template-columns:72px minmax(0,1fr);gap:12px;padding:15px}.fm-outbox-state{grid-column:2}.fm-outbox-record>div{padding:16px}.fm-outbox-filters label{flex:1}.fm-outbox-filters label:first-child{flex-basis:100%}.fm-outbox-progress{flex-wrap:wrap}.fm-outbox-record .button{font-size:11px}}

.fm-startboard-form{padding:20px;border:1px solid #dbe2d2;border-radius:6px;background:#fff;margin:24px 0}.fm-startboard-form h2{margin-top:0}.fm-startboard-form p{font-size:12px;line-height:1.7;color:#63715e}.fm-startboard-form label{display:block;font-size:12px;margin-bottom:8px}.fm-startboard-form select{max-width:100%;padding:10px;border:1px solid #cdd8c1;border-radius:4px;font:inherit;margin:0 12px 10px 0}

/* 15.09.2026 — Batu's blue board reference. Authenticated familum only. */
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace {
 --fm-paper:#f5f7fc;--fm-ink:#102452;--fm-line:#dce3f0;--fm-muted:#5e7298;--fm-accent:#0866ef;
 --primary:#0866ef;--text:#102452;--muted:#5e7298;color:#102452;background:#f5f7fc;
}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-topbar {
 height:74px;padding:0 28px;gap:24px;grid-template-columns:minmax(140px,1fr) auto minmax(230px,1fr);background:#fff;border-bottom:1px solid #e3e9f2;z-index:65;
}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-brand {display:flex;align-items:center;gap:11px;font:800 24px/1 Manrope,sans-serif;letter-spacing:-.7px;color:#102452;white-space:nowrap}
.fm-brand-mark{flex-shrink:0}.fm-primary-nav{gap:8px;align-items:center;justify-content:center;min-width:0}
.fm-primary-nav>a{font:650 13px/1.2 Manrope,sans-serif;gap:8px;padding:14px 13px;border-radius:10px;color:#1c3463;height:46px}
.fm-primary-nav>a:hover{background:#f0f5ff}.fm-primary-nav>a[aria-current=page]{background:#0665ef;color:#fff;box-shadow:0 4px 14px #0764f014}
.fm-primary-nav>a[aria-current=page]:after{display:none}.fm-nav-count{background:#e9f0fc;color:#244978;min-width:18px;text-align:center}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-tools{gap:15px;justify-content:flex-end;min-width:0}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-search{height:44px;border:1px solid #d9e1ee;border-radius:11px;background:#f6f8fc;color:#50658e;gap:10px;padding:10px 13px;min-width:0}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-search span{font-size:13px;white-space:nowrap}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-search kbd{background:#e5ebf5;border:0;border-radius:5px;color:#53698f;padding:3px 6px}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-avatar{background:#dce7f7;color:#102452;border:0;width:39px;height:39px;font-size:13px}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-notifications,body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .feedback-trigger{color:#4f658e}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-account>div{width:280px;max-height:calc(100dvh - 90px);overflow:auto;background:#fff;color:#17305c;border:1px solid #dce3f0;box-shadow:0 12px 38px #10245220;border-radius:12px}
.fm-account-links{display:grid;margin:10px 0;border-block:1px solid #e3e9f2;padding:8px 0}.fm-account-links>a{display:flex!important;align-items:center;gap:10px!important;padding:10px 8px!important;border-radius:6px;font-size:12px!important}.fm-account-links>a:hover{background:#eef4ff!important}.fm-account-links>a>svg{width:17px}
.fm-icon-rail{position:fixed;top:74px;left:0;bottom:0;width:74px;z-index:55;background:#fff;border-right:1px solid #dce3f0;display:flex;align-items:center;flex-direction:column;padding:18px 10px;gap:12px}
.fm-rail-link{display:flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:10px;color:#4e658f;text-decoration:none}.fm-rail-link>svg{width:25px;height:25px}.fm-rail-link>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.fm-rail-link:hover{background:#f0f5ff}.fm-rail-link.active{background:#eaf1ff;color:#0866ef}.fm-rail-bottom{margin-top:auto;display:grid;justify-items:center;gap:16px}.fm-rail-avatar{width:39px;height:39px;display:grid;place-items:center;background:#dce7f7;border-radius:50%;color:#17305c;text-decoration:none;font-size:13px;font-weight:650}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-main{margin-left:74px;padding-top:74px;background:#f5f7fc;min-height:100dvh}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-page{padding:30px 34px 45px;color:#102452;max-width:none}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .button{border-radius:8px;font-size:12px}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .button.primary{background:#0866ef;border-color:#0866ef;color:white}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .button.secondary{background:#fff;border-color:#d4deed;color:#1b3665}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .workspace-case-tab.active{background:#0866ef;color:white}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .page-heading h1,.fm-heading h1,.fm-hero h1,.fm-tool h3,.fm-reader-header h2{color:#102452}
.fm-inbox input:not([type=checkbox]),.fm-inbox select,.fm-inbox textarea,.fm-bank input:not([type=checkbox]),.fm-bank select,.fm-search input{border-color:#dce3f0;color:#17305c;border-radius:7px}
.fm-tool,.fm-mail-split,.fm-upload,.fm-existing{border-color:#dce3f0}.fm-tool:hover{background:#f4f8ff;border-color:#a9c8f5}.fm-tool-icon,.fm-count{background:#eaf2ff;color:#0866ef;border-color:#d9e8ff}.fm-mail-row.selected,.fm-review,.fm-assignment-result,.fm-ai-choice{background:#eff5ff;border-color:#d6e6ff}.fm-mail-row.selected:before{background:#0866ef}.fm-mail-row:hover{background:#f6f9fe}.fm-message-body{font:15px/1.8 Manrope,sans-serif;color:#354d76}.fm-case-status{background:#f1f6ff!important;border-color:#dce3f0!important}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-workspace .studio-main{background:#1968d8}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-workspace .studio-page{padding:0;min-height:calc(100dvh - 74px);background:linear-gradient(118deg,#1767da,#216edd 70%,#1763d3)}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-workspace .page-heading,body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-workspace .bottom-note{display:none}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-workspace .test-workspace-notice{margin:0;border:0;border-radius:0;padding:5px 22px;background:#e9f2ff;color:#43679b;font-size:10px;min-height:0}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-workspace .test-workspace-notice strong{font-size:10px}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-workspace .fm-board-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:20px;padding:18px 25px;margin:0;border:0;border-radius:0;background:#10458d;color:#fff;min-height:82px}
.fm-board-identity{display:flex;align-items:center;gap:18px;min-width:0}.fm-board-identity h1{font:700 24px/1.2 Manrope,sans-serif;letter-spacing:-.5px;color:#fff;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fm-board-icon{display:grid;place-items:center;background:none;border:0;color:#e4eeff;cursor:pointer;padding:5px;border-radius:5px}.fm-board-icon:hover{background:#ffffff1a}.fm-board-icon[aria-pressed=true]{color:#ffda6e}.fm-board-icon[aria-pressed=true] svg{fill:#ffda6e}.fm-board-lock{display:flex;color:#e4eeff}
.fm-board-controls{display:flex;gap:16px;align-items:center}.fm-board-members{display:flex;padding-right:20px;margin-right:2px;border-right:1px solid #ffffff45}.fm-board-members>span{height:40px;width:40px;border:2px solid #154b95;background:#e2ebfa;color:#123567;display:grid;place-items:center;border-radius:50%;font-size:13px;font-weight:650;margin-left:-7px}.fm-board-members>span:last-child:nth-child(4){background:#476fa8;color:white}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-workspace .fm-board-toolbar .fm-board-select{position:relative;display:flex;align-items:center;gap:8px;background:#ffffff14;border-radius:9px;padding:0 12px;height:46px;max-width:205px;color:white}
.fm-board-select>svg{pointer-events:none;flex-shrink:0}.fm-board-select select{appearance:none;border:0;background:transparent;color:#fff;cursor:pointer;font:650 14px Manrope,sans-serif;max-width:135px;min-width:0;width:100%;padding:10px 0}.fm-board-select option{background:white;color:#17305c}
.fm-board-controls>details>summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none;white-space:nowrap;height:46px;padding:10px;border-radius:9px;font-size:14px;font-weight:600;color:#fff}.fm-board-controls>details>summary::-webkit-details-marker{display:none}.fm-board-controls>details>summary:hover{background:#ffffff14}.fm-board-controls .fm-board-share>summary{background:#f0f6ff;color:#0752b5;padding:10px 20px}.fm-board-controls .fm-board-share>summary:hover{background:#fff}
.fm-board-panel{margin:0;inset:auto;width:290px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 40px);overflow:auto;padding:18px;border:1px solid #dce3f0;background:#fff;color:#17305c;border-radius:12px;box-shadow:0 12px 38px #0d2a552b;font:13px/1.6 Manrope,sans-serif}.fm-board-panel>strong{display:block;margin-bottom:8px}.fm-board-panel label{display:grid;gap:9px;color:#17305c;font-size:12px;font-weight:650}.fm-board-panel .input{color:#17305c;font:13px Manrope,sans-serif;width:100%;height:40px;border:1px solid #ccd7e8;border-radius:6px;padding:9px;background:white}.fm-board-panel>p{font-size:12px;color:#5e7298}.fm-board-panel>button{margin-top:12px;width:100%}.fm-board-panel>.board-appearance{margin-top:14px}.fm-board-panel>.board-appearance>summary,.fm-other-views>summary{font-size:13px;padding:9px;cursor:pointer;color:#17305c;border-radius:6px}.fm-board-panel>.board-appearance>summary:hover,.fm-other-views>summary:hover{background:#eef4ff}.fm-other-views .intake-view-picker{display:flex;flex-wrap:wrap;gap:7px;padding:8px 0}.fm-other-views .intake-view-picker a{color:#294779;padding:7px;border-radius:5px;background:#f3f6fc;text-decoration:none}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-workspace .intake-context{border:0;background:transparent;color:#dae8ff;padding:0 22px;font-size:10px;height:0;min-height:0;overflow:hidden;margin:0}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-board-mode .intake-board{padding:20px;gap:13px;border:0;border-radius:0;background:transparent;margin:0;min-height:240px;height:var(--board-height);scrollbar-color:#ffffff66 transparent}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-board-mode .intake-board[data-background=stone]{background:#dce3ed}body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-board-mode .intake-board[data-background=green]{background:#256c60}body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-board-mode .intake-board[data-background=pink]{background:#b76e98}body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-board-mode .intake-board[data-background=purple]{background:#7066b3}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-board-mode .intake-board .intake-column{flex:0 0 clamp(254px,17.6vw,296px);min-width:0;background:#edf2f9;padding:10px;border:1px solid #ffffffba;border-radius:12px;box-shadow:0 1px 2px #122c5510;max-height:100%}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-board-mode .intake-column>header{padding:2px 6px 11px;min-height:48px;margin:0;gap:7px;flex-shrink:0}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-board-mode .intake-column>header h2,body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-board-mode .intake-list-title{color:#122451;font:750 16px/1.4 Manrope,sans-serif;letter-spacing:-.35px;padding:4px 0;height:32px;flex:1;min-width:0;width:100%;text-overflow:ellipsis}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-board-mode .intake-column>header>span{font-size:14px;color:#4d6590}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-board-mode .intake-board .intake-cards{padding:0;gap:9px}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-board-mode .intake-board .intake-card{border:1px solid #d7dfeb;border-radius:9px;box-shadow:0 1px 1px #16325a30;padding:14px 13px;margin:0;min-height:49px;color:#132856;position:relative}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-board-mode .intake-card h3{font:550 15px/1.45 Manrope,sans-serif;color:#132856;margin:0;letter-spacing:-.25px}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-board-mode .intake-card>p{display:none}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-board-mode .intake-card-signals{color:#58709b;margin-top:8px;font-size:12px}.familum-workspace .intake-card-signals:empty{display:none}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-board-mode .intake-card .intake-area-label{margin:0 4px 6px 0;border-radius:5px}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-board-mode .intake-card.selected{outline:2px solid #1673ff;border-color:#1673ff}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-board-mode .board-add-list{flex:0 0 62px;min-width:62px;background:#ffffff1c;color:white;border:0;border-radius:11px;margin:0;overflow:visible}.familum-workspace .board-add-list>summary{color:white!important;padding:13px 8px!important;text-align:center;font-size:0!important;min-height:78px;cursor:pointer}.familum-workspace .board-add-list>summary:before{content:'＋';display:block;font-size:28px;line-height:1.2}.familum-workspace .board-add-list>summary:after{content:'Liste';display:block;font-size:13px;margin-top:5px}.familum-workspace .board-add-list[open]{flex-basis:260px;min-width:260px;background:#edf2f9;color:#17305c}.familum-workspace .board-add-list[open]>summary{color:#17305c!important}.familum-workspace .board-add-list[open]>form{padding:12px}
.fm-add-card{padding-top:10px;flex-shrink:0}.fm-add-card>summary{display:flex;align-items:center;gap:10px;cursor:pointer;color:#17305c;font-size:14px;font-weight:600;padding:9px 9px;list-style:none;border-radius:7px}.fm-add-card>summary:hover{background:#dce6f5}.fm-add-card>summary:before{content:'＋';font-size:24px;line-height:1;color:#4f6a96}.fm-add-card form{padding:10px;display:grid;gap:10px;font-size:12px}.fm-add-card form label{display:grid;gap:5px}.fm-add-card .input{width:100%;min-width:0}.fm-add-card form p{font-size:11px;line-height:1.5;color:#617799;margin:0}
@media(min-width:961px){body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .sidebar.studio-rail{display:none}}
@media(max-width:1520px){body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-topbar{grid-template-columns:auto 1fr auto;gap:18px;padding-inline:22px}.fm-primary-nav{gap:3px}.fm-primary-nav>a{font-size:12px;padding-inline:10px;gap:6px}.fm-primary-nav>a>svg{width:18px}body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-search span,body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-search kbd{display:none}body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-tools{gap:12px}}
@media(max-width:1200px){.fm-primary-nav>a{font-size:11px;padding-inline:8px;gap:5px}.fm-primary-nav>a>svg{display:none}body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-brand{font-size:21px}body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-tools{gap:8px}.fm-board-members{display:none}.fm-board-controls{gap:9px}.fm-board-identity{gap:12px}}
@media(max-width:960px){.fm-icon-rail{display:none}body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-topbar{height:112px;grid-template-columns:1fr auto;padding:12px 18px 0;gap:8px}.fm-primary-nav{grid-row:2;grid-column:1/-1;justify-content:flex-start;overflow-x:auto;height:46px;max-width:100%;gap:5px}.fm-primary-nav>a{font-size:12px;padding:10px 12px;height:39px;flex-shrink:0}.fm-primary-nav>a>svg{display:block;width:18px}.fm-primary-nav>a[aria-current=page]{box-shadow:none}body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-main{margin-left:0;padding-top:112px}body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-rail{top:112px;background:#fff;z-index:80;height:calc(100dvh - 112px)}body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-page{padding:24px 20px 80px}body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-workspace .fm-board-toolbar{padding:13px 17px;min-height:72px;gap:12px;flex-wrap:wrap}.fm-board-identity h1{font-size:21px}.fm-board-identity{flex:1}.fm-board-controls{gap:7px}.fm-board-lock{display:none}.fm-board-select{max-width:150px!important}.fm-board-select select{font-size:12px}.fm-board-controls>details>summary{font-size:12px;padding:8px}.fm-board-controls .fm-board-share>summary{padding-inline:12px}body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-board-mode .intake-board{padding:16px;gap:12px;height:var(--board-height)}body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-board-mode .intake-board .intake-column{flex-basis:280px}.familum-workspace .intake-board{scroll-padding-left:16px}}
@media(max-width:650px){body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-brand{font-size:22px}.fm-brand-mark{width:29px;height:29px}.fm-board-identity{flex-basis:100%;gap:10px}.fm-board-identity h1{font-size:20px}.fm-board-controls{width:100%;justify-content:space-between}.fm-board-select{max-width:155px!important;height:39px!important}.fm-board-controls>details>summary{height:39px;gap:6px}.fm-board-controls .fm-board-share>summary{padding:8px 10px}.fm-board-controls summary>svg{width:18px}.fm-board-controls .fm-board-more>summary{padding-inline:3px}body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-workspace .fm-board-toolbar{padding:12px;gap:9px}.fm-board-icon svg{width:20px}body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-board-mode .intake-board{padding:12px;gap:12px}body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-board-mode .intake-board .intake-column{flex-basis:min(280px,calc(100vw - 40px))}.fm-board-select>svg:last-child{display:none}.fm-board-select select{max-width:106px}.fm-board-panel{width:280px}.fm-account-links>a{min-height:38px}}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .main.studio-main{margin-left:74px}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .fm-board-identity h1{color:#fff}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .fm-board-panel .button{color:#17305c}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .fm-board-panel .button.primary{color:#fff}
@media(max-width:960px){body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .main.studio-main{margin-left:0}}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-board-mode .intake-card h3{font-size:16px}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-board-mode .intake-card-signals>span[aria-label="Beschreibung vorhanden"]{display:none}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-board-mode .intake-card-signals:not(:has(>span:not([aria-label="Beschreibung vorhanden"]))){display:none}
.fm-add-card>summary{font-size:15px}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-board-mode .intake-board .intake-column:not([data-list-color=none]){background:var(--list-bg,#edf2f9)}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-board-mode .intake-board{scroll-padding-left:20px}
.fm-board-panel>.button{display:flex;width:100%;margin:8px 0}
@media(max-width:960px){body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-board-mode .intake-board{scroll-padding-left:16px}}
@media(max-width:650px){body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-board-mode .intake-board{scroll-padding-left:12px}}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .intake-board .intake-card .label-blue{background:#d1e3ff;color:#0750b9}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .intake-board .intake-card .label-red{background:#ffd1d5;color:#ba2437}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .intake-board .intake-card .label-yellow{background:#ffebb1;color:#765014}
.fm-heading p:not(.fm-eyebrow),.fm-eyebrow,.fm-tool p,.fm-tool-group>h2,.fm-mail-meta,.fm-mail-row>small,.fm-mail-excerpt,.fm-reader-header p,.fm-bank-row p,.fm-bank-row small,.fm-amount span{color:#64779a}
.fm-hero h1 em{font-family:Manrope,sans-serif;font-style:normal;color:#0866ef}.fm-orbit,.fm-large-symbol,.fm-arrow{color:#659bee}.fm-hero,.fm-bank-table,.fm-bank-row,.fm-case-list,.fm-case-list>div{border-color:#dce3f0}.fm-bank-summary>div{border-color:#c3d9fa}.fm-inbox-toolbar>div{background:#e8eef8}.fm-inbox-toolbar>div>button{color:#627694}.fm-inbox-toolbar>div>button[aria-pressed=true]{color:#163563}.fm-tool-group>h2{font-weight:700}.fm-tool{border-radius:10px}

/* Direct development conversation, visible before opening its page. */
.developer-chat-trigger{display:flex;align-items:center;gap:7px;padding:8px 10px;border-radius:8px;background:#e6efff;color:#075bd1;font-weight:650;text-decoration:none;white-space:nowrap}.developer-chat-trigger svg{width:19px;height:19px}@media(max-width:1100px){.developer-chat-trigger span{display:none}}

/* Size the controls by their content: the extra chat entry must not squeeze
   the search label into the adjacent notification button. */
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-tools{flex-shrink:0}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-tools>*{flex-shrink:0}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-search>svg{flex-shrink:0}
@media(min-width:961px){
 body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-topbar{grid-template-columns:auto minmax(0,1fr) max-content}
}
@media(max-width:360px){
 body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-topbar{padding-inline:12px}
 body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-brand{font-size:18px;gap:6px}
 body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-tools{gap:6px}
 .fm-brand-mark{width:24px;height:24px}
}

/* Peters Chat, 16.09.: full-width workspace, settings beside the profile. */
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .main.studio-main{margin-left:0}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .fm-header-settings{display:inline-flex;align-items:center;justify-content:center;width:34px;height:39px;flex:0 0 34px;color:#50658e;border-radius:8px}
.fm-header-settings:hover{background:#edf3ff}
.tb-board-name{font-size:13px;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tb-toolbar .fm-board-identity{flex-wrap:wrap}

/* Mobile working pages share the viewport; wide boards keep their own scroll.
   Inputs stay at least 16px to avoid Safari's automatic focus zoom. Explicit
   pinch zoom remains enabled and the larger editable card title is preserved. */
@media(max-width:960px){
 body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace{width:100%;max-width:100%;min-width:0;overflow-wrap:anywhere}
 body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace :is(.main.studio-main,.page.studio-page,.page.studio-page>*,.fm-inbox,.fm-bank,.fm-tools,.dc-chat){min-width:0;max-width:100%}
 body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-topbar{grid-template-columns:minmax(0,1fr) auto}
 body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .page.studio-page .button{white-space:normal;max-width:100%;overflow-wrap:anywhere}
 body.studio-theme:has(#app.familum-workspace) :is(input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]):not([type=hidden]),select,textarea):not([data-tc-title] textarea){font-size:16px;min-width:0;max-width:100%}
}
@media(max-width:760px){
 body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace:not(.intake-workspace) .page.studio-page{padding:20px 12px 60px}
 body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .fm-heading{gap:12px;flex-wrap:wrap}
 body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .fm-heading>div{min-width:0}
}
@media(max-width:360px){
 body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-topbar{padding-inline:10px;gap:6px}
 body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-tools{gap:5px}
 body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-brand{font-size:16px;gap:5px}
 body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .fm-brand-mark{width:22px;height:22px}
 body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-tools :is(.developer-chat-trigger,.studio-search,.studio-notifications,.fm-header-settings,.studio-avatar,.mobile-menu){width:28px;min-width:28px;flex-basis:28px;padding-inline:0;justify-content:center}
}
/* A Trello board occupies the remaining screen; other pages keep page scrolling. */
html:has(body.studio-theme #app.familum-workspace #trello-board-root){overflow:hidden;overscroll-behavior:none}
body.studio-theme:has(#app.familum-workspace #trello-board-root){overflow:hidden}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace:has(#trello-board-root){position:fixed;inset:0;width:100%;height:var(--tb-page-height,100dvh);min-height:0;overflow:hidden}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace:has(#trello-board-root) .main.studio-main{height:100%;min-height:0;display:flex;flex-direction:column}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace:has(#trello-board-root) .page.studio-page{flex:1;min-height:0;display:flex;flex-direction:column;overflow:visible}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace:has(#trello-board-root) .test-workspace-notice{flex:none}
#trello-board-root{flex:1;min-height:0;min-width:0}
#trello-board-root>.tb-loading{max-height:100%;overflow:auto}
/* Mobile browsers may restore their visual viewport below a fixed board. Keep the
   mobile document scrollable so the app header is always reachable. */
@media(max-width:960px){
 html:has(body.studio-theme #app.familum-workspace #trello-board-root){overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:auto}
 body.studio-theme:has(#app.familum-workspace #trello-board-root){overflow-x:hidden;overflow-y:auto}
 body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace:has(#trello-board-root){position:relative;inset:auto;width:100%;height:auto;min-height:100dvh;overflow:visible}
 /* Size the board from the current header and toolbar, including compact
    mobile controls. Fixed offsets leave the blue page background exposed. */
 body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace:has(#trello-board-root) .main.studio-main{height:100dvh;min-height:0;display:flex;flex-direction:column}
 body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace:has(#trello-board-root) .page.studio-page{flex:1;display:flex;flex-direction:column;min-height:0;overflow:visible}
 #trello-board-root{flex:1;display:flex;flex-direction:column;min-height:0}
 #trello-board-root .tb-workspace{flex:1;height:auto;min-height:0}
 #trello-board-root .tb-workspace>.tb-lists:not([hidden]){flex:1;height:auto;min-height:0}
}

/* Keep access checks private while avoiding a full-page logo splash. */
.initial-loading {height:100dvh;align-content:start;justify-items:start;text-align:left;padding:24px;gap:8px;}
.session-cover {align-content:start!important;justify-items:start!important;gap:12px!important;padding:20px 24px!important;text-align:left!important;}
.session-cover p,.initial-loading p {font-size:14px;margin:0;color:var(--muted);}
.session-cover::before,.initial-loading::before {content:"";display:block;width:32px;height:3px;border-radius:4px;background:#0966ed;animation:fm-access-loading 1s ease-in-out infinite alternate;}
.session-cover .initial-mark,.initial-loading .initial-mark {display:none!important;}
/* A measured start state: only completed requests advance the three steps. */
.startup-screen{position:fixed;inset:0;z-index:950;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 86% 10%,#dceaff 0,transparent 34%),linear-gradient(155deg,#f7f9fc,#edf2f8);color:#172d4a}
.startup-screen[hidden]{display:none!important}
.startup-panel{width:min(100%,540px);overflow:hidden;border:1px solid #dce5f0;border-radius:20px;background:#fff;box-shadow:0 28px 90px #142a4d20}
.startup-brand{display:flex;align-items:center;gap:12px;padding:26px 32px;border-bottom:1px solid #e8edf4;font-size:22px;font-weight:800;letter-spacing:-.045em}
.startup-brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#0966ed;color:#fff;font-size:28px;line-height:1}
.startup-content{padding:36px 32px 30px}
.startup-kicker{margin:0 0 12px;color:#416fa8;font-size:11px!important;font-weight:800;letter-spacing:.16em}
.startup-content h1{margin:0;color:#172d4a;font-size:clamp(27px,5vw,35px);line-height:1.15;letter-spacing:-.045em}
.startup-message{margin:10px 0 28px!important;min-height:24px;color:#586c84!important;font-size:15px!important;line-height:1.5}
.startup-content progress{display:block;appearance:none;width:100%;height:7px;border:0;border-radius:999px;overflow:hidden;background:#e9eff6}
.startup-content progress::-webkit-progress-bar{background:#e9eff6;border-radius:999px}
.startup-content progress::-webkit-progress-value{background:#0966ed;border-radius:999px;transition:width .2s ease}
.startup-content progress::-moz-progress-bar{background:#0966ed;border-radius:999px}
.startup-progress-caption{display:flex;justify-content:space-between;gap:15px;margin:12px 0 27px;color:#60748d;font-size:12px}
.startup-progress-caption [data-startup-count]{font-weight:700;color:#28588f;white-space:nowrap}
.startup-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:0;padding:0;list-style:none}
.startup-steps li{display:flex;align-items:center;gap:7px;min-width:0;color:#8290a1;font-size:11px;font-weight:600;line-height:1.25}
.startup-step-dot{flex:none;width:13px;height:13px;border:2px solid #c6d1df;border-radius:50%}
.startup-steps li.is-current{color:#28588f}.startup-steps li.is-current .startup-step-dot{border-color:#0966ed;box-shadow:0 0 0 4px #e8f1ff}
.startup-steps li.is-done{color:#234f81}.startup-steps li.is-done .startup-step-dot{border-color:#0966ed;background:#0966ed}
.startup-slow{margin-top:28px;padding:15px 16px;border:1px solid #dbe6f4;border-radius:10px;background:#f5f8fd}.startup-slow[hidden]{display:none!important}.startup-slow p{margin:0 0 10px!important;color:#536982!important;font-size:12px!important}.startup-slow button{padding:8px 12px;border:1px solid #9bb8de;border-radius:8px;background:#fff;color:#14539c;font-size:12px;font-weight:700}
.startup-footnote{margin:0!important;padding:18px 32px 21px;border-top:1px solid #e8edf4;background:#f8fafd;color:#6d7d91!important;font-size:12px!important;line-height:1.55}
.startup-screen.is-complete{opacity:0;transition:opacity .2s ease;pointer-events:none}
@media(max-width:600px){.startup-screen{padding:18px}.startup-brand{padding:20px 22px}.startup-content{padding:29px 22px 27px}.startup-footnote{padding:17px 22px}.startup-steps{gap:4px}.startup-steps li{font-size:10px;align-items:flex-start}.startup-step-dot{margin-top:1px}}
@media(prefers-reduced-motion:reduce){.startup-screen.is-complete,.startup-content progress::-webkit-progress-value{transition:none}}
@keyframes fm-access-loading {to{opacity:.35;transform:scaleX(.55);transform-origin:left;}}
@media(prefers-reduced-motion:reduce){.session-cover::before,.initial-loading::before{animation:none;}}
.cm-settings fieldset{border:0;padding:16px 0;display:grid;gap:14px;max-width:640px;min-width:0}.cm-settings label{display:grid;gap:6px;font-weight:600}.cm-settings select{width:100%;min-width:0;padding:10px;border:1px solid #97a6b7;border-radius:8px;background:#fff;color:#172c42}.cm-settings .cm-confirm{display:flex;align-items:flex-start;gap:10px}.cm-settings .cm-confirm input{width:18px;height:18px;flex:0 0 auto}.cm-settings p{overflow-wrap:anywhere}.cm-settings .button{justify-self:start}html[data-familum-night=true] .cm-settings select{background:#172a40;color:#edf4ff;border-color:#7890aa}
.cm-settings fieldset,.cm-settings label{min-width:0;max-width:100%;box-sizing:border-box}.cm-settings select{max-width:100%;box-sizing:border-box}.cm-settings fieldset{width:100%}

.cm-settings fieldset{margin:0;max-width:min(640px,100%)}

.cm-settings select{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.ca-dialog .cd-card-content{padding:16px;box-sizing:border-box}.ca-dialog nav{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}.ca-dialog nav button{padding:8px;border:1px solid #8495a6;border-radius:6px}.ca-dialog nav button[aria-pressed=true]{font-weight:700;text-decoration:underline}.ca-dialog .calendar-sync-panel dt{color:#52647b}html[data-familum-night=true] .ca-dialog .calendar-sync-panel dt{color:#b2c4da}

.ch-dialog .cd-card-content{padding:18px;box-sizing:border-box}.ch-controls{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.ch-controls select,.ch-controls button,.ch-dialog [data-ch-more]{padding:10px;border:1px solid #8295ab;border-radius:6px}.ch-events{list-style:none;margin:20px 0;padding:0}.ch-events li{padding:16px 0;border-top:1px solid #8b9bae66}.ch-events h3{margin:0 0 8px}.ch-events p{margin:6px 0;overflow-wrap:anywhere}.ch-events details{font-size:12px;overflow-wrap:anywhere}html[data-familum-night=true] .ch-dialog select{background:#172a40;color:#edf4ff}

.ct-capture .cd-card-content{padding:16px;overflow-wrap:anywhere}.ct-capture ol{list-style:none;padding:0}.ct-capture li{border-top:1px solid var(--line,#627582);padding:16px 0}.ct-capture select{max-width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis}.ct-capture label{display:block;margin:16px 0}

/* microsoft365-inbox.css */
.ms-inbox-tabs{display:flex;gap:20px;margin:0 0 14px;border-bottom:1px solid #dce3ef;padding:0;overflow:auto}.ms-inbox-tabs button{border:0;border-bottom:3px solid transparent;background:transparent;color:#536582;padding:10px 2px;font:inherit;font-size:13px;white-space:nowrap;cursor:pointer}.ms-inbox-tabs button[aria-pressed=true]{border-color:#0866ef;color:#075bcc;font-weight:700}.ms-inbox{--mail-line:#e0e5ed;--mail-ink:#213552;--mail-muted:#69798e;color:var(--mail-ink)}.ms-inbox [hidden]{display:none!important}.ms-inbox svg{width:20px;height:20px;flex:none}.ms-inbox button,.ms-inbox input,.ms-inbox select{font-family:inherit}.ms-inbox button:focus-visible,.ms-inbox a:focus-visible,.ms-inbox summary:focus-visible{outline:2px solid #0866ef;outline-offset:2px}.ms-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.ms-inbox-toolbar{display:flex;align-items:center;gap:18px}.ms-inbox-toolbar h1{font-size:22px;font-weight:720;letter-spacing:-.4px;margin:0;white-space:nowrap}.ms-inbox-toolbar .fm-count{font-size:12px;margin-left:6px;padding:3px 7px;vertical-align:middle}.ms-inbox-search{margin-left:auto;display:flex;align-items:center;gap:8px;min-width:0;width:min(440px,55%)}.ms-inbox-search label{display:flex;align-items:center;gap:9px;flex:1;min-width:0;padding:9px 12px;background:#fff;border:1px solid #cdd8e9;border-radius:6px;color:#5b7090}.ms-inbox-search label:focus-within{border-color:#0866ef;box-shadow:0 0 0 1px #0866ef}.ms-inbox-search input{border:0;outline:0;background:transparent;width:100%;min-width:0;color:#213552;font-size:14px}.ms-search-submit{padding:8px 10px;border:0;background:transparent;color:#075bcc;font-size:13px;cursor:pointer}.ms-refresh{border:1px solid #cdd8e9;border-radius:6px;display:grid;place-items:center;background:white;color:#456180;width:38px;height:38px;cursor:pointer}.ms-inbox-summary{display:flex;justify-content:space-between;align-items:start;gap:14px;margin:11px 0 14px;font-size:11px;color:#738198;min-height:18px}.ms-inbox-state{line-height:1.5}.ms-inbox .fm-error{color:#a32828}.ms-inbox-mailboxes{position:relative;flex:none}.ms-inbox-mailboxes summary{cursor:pointer;color:#476185}.ms-status-panel{position:absolute;right:0;top:26px;width:min(420px,calc(100vw - 54px));background:white;border:1px solid #dce3ef;border-radius:8px;padding:16px;box-shadow:0 8px 30px #17355d1a;z-index:15;max-height:50vh;overflow:auto;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.ms-status-panel label{display:grid;gap:5px}.ms-status-panel select{width:100%;padding:8px;border:1px solid #cdd8e9;color:#213552;background:white;border-radius:4px}.ms-inbox-mailboxes [data-ms-mailbox-status]>div{padding:10px 0;border-bottom:1px solid #e5eaf2;display:grid;gap:4px}.ms-inbox .fm-mail-split{grid-template-columns:minmax(285px,34%) minmax(0,1fr);height:var(--ms-height,65vh);min-height:300px;border:1px solid #dce3ef;border-radius:7px;overflow:hidden;background:#fff}.ms-message-column{display:flex;flex-direction:column;min-width:0;min-height:0;border-right:1px solid var(--mail-line)}.ms-list-heading{padding:17px 18px 13px;border-bottom:1px solid var(--mail-line);display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12px;color:#233c61;background:#fafbfd}.ms-list-heading span{font-size:10px;color:#79869a}.ms-list-scroll{overflow:auto;min-height:0;flex:1;overscroll-behavior:contain}.ms-inbox .fm-mail-list{max-height:none;border:0;overflow:visible}.ms-inbox .fm-mail-row{display:flex;gap:12px;padding:17px 16px;width:100%;border:0;border-bottom:1px solid #edf0f5;border-radius:0;color:var(--mail-ink);text-align:left;background:#fff;cursor:pointer}.ms-inbox .fm-mail-row.selected{background:#eaf3ff}.ms-inbox .fm-mail-row.selected:before{width:3px;background:#0866ef}.ms-inbox .fm-mail-row:hover{background:#f3f7fc}.ms-sender-avatar{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:50%;background:#e9eef8;color:#476394;font-size:11px;font-weight:700}.ms-row-content{min-width:0;flex:1}.ms-inbox .fm-mail-meta{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:0 0 5px;text-transform:none;letter-spacing:0;color:#223857;font-size:12px}.ms-inbox .fm-mail-meta strong{font-size:13px;font-weight:650;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ms-inbox .fm-mail-meta time{font-size:10px;color:#768399;white-space:nowrap}.ms-inbox .fm-mail-subject{display:block;font-size:12px;color:#344967;line-height:1.5;margin:0 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ms-inbox .fm-mail-excerpt{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:11px;line-height:1.6;color:#7b8799;overflow-wrap:anywhere}.ms-row-content>small{display:flex;gap:5px;align-items:center;font-size:10px;color:#667c9a;margin-top:8px}.ms-row-content>small svg{width:13px;height:13px}.ms-inbox [data-ms-more]{margin:12px;font-size:12px}.ms-inbox .fm-reader{min-width:0;min-height:0;overflow:auto;padding:0;overscroll-behavior:contain;background:#fff;outline:none}.ms-reader-toolbar{position:sticky;top:0;display:flex;justify-content:flex-end;align-items:center;min-height:48px;box-sizing:border-box;padding:10px 26px;border-bottom:1px solid #edf0f5;background:#fff;z-index:2;font-size:11px;color:#7c899c}.ms-reader-toolbar [data-ms-back]{display:none}.ms-inbox .fm-reader-header{padding:25px 28px 0}.ms-inbox .fm-reader-header h2{margin:0 0 24px;font-size:22px;line-height:1.4;letter-spacing:-.35px;font-weight:650;color:#203858;overflow-wrap:anywhere}.ms-sender-line{display:flex;gap:12px;align-items:center;margin-bottom:14px}.ms-sender-line>div{display:grid;gap:4px;min-width:0;overflow-wrap:anywhere}.ms-sender-line strong{font-size:13px;color:#233958}.ms-sender-line>div>span{font-size:11px;color:#728099}.ms-sender-line .ms-sender-avatar{width:40px;height:40px;font-size:13px}.ms-mail-headers{display:grid;grid-template-columns:60px minmax(0,1fr);gap:5px 10px;margin:0;font-size:11px;line-height:1.6}.ms-mail-headers dt{color:#8090a5}.ms-mail-headers dd{margin:0;color:#5c6e89;overflow-wrap:anywhere}.ms-inbox .fm-message-body{padding:24px 28px 30px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75;font-size:14px;color:#293b53;min-height:170px}.ms-mail-attachments{padding:0 28px;font-size:12px;color:#758299}.ms-mail-attachments:empty{display:none}.ms-mail-attachments h3{font-size:11px;font-weight:500;margin:18px 0 9px;color:#73839b}.ms-attachment-grid{display:flex;flex-wrap:wrap;gap:8px}.ms-attachment{display:flex;align-items:center;border:1px solid #dce3ed;border-radius:5px;min-width:0;max-width:100%;width:255px;background:#fafbfd;box-sizing:border-box}.ms-attachment>button{display:flex;align-items:center;gap:10px;flex:1;min-width:0;padding:10px;border:0;background:transparent;text-align:left;cursor:pointer;color:#284365}.ms-attachment>button>span:last-child{min-width:0}.ms-file-icon{display:grid;place-items:center;width:31px;height:36px;border:1px solid #d0dcef;border-radius:3px;background:white;color:#1764c3;font-size:9px;font-weight:700;flex:none}.ms-attachment strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px;font-weight:550}.ms-attachment small{display:block;margin-top:3px;font-size:10px;color:#7b889b;overflow-wrap:anywhere}.ms-attachment>a{padding:10px 9px;color:#5c769d;line-height:0}.ms-attachment>a svg{width:16px;height:16px}.ms-attachment:hover{border-color:#98b9e6;background:#f1f6fd}.ms-mail-originals,.ms-filing-disclosure{margin:0 28px;padding:15px 0;border-top:1px solid #e4eaf3;overflow-wrap:anywhere;font-size:12px}.ms-mail-originals summary,.ms-filing-disclosure summary{cursor:pointer;color:#416996;font-size:12px}.ms-mail-originals>div{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:12px 0;font-size:11px}.ms-mail-originals a{color:#075bcc}.ms-filing-disclosure [data-ms-filing]{margin-top:12px}.ms-inbox .fm-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:210px;padding:35px 20px;color:#8290a5;box-sizing:border-box}.ms-inbox .fm-empty>svg{width:46px;height:46px;stroke-width:1;margin-bottom:12px;color:#9ab1cd}.ms-inbox .fm-empty h2{font-size:16px;font-weight:550;color:#526984;margin:5px 0}.ms-inbox .fm-empty p{font-size:12px;line-height:1.7;max-width:280px}.ms-mail-preview{min-height:calc(var(--ms-height,65vh) - 49px);display:flex;flex-direction:column}.ms-preview-toolbar{display:flex;align-items:center;gap:14px;padding:13px 20px;border-bottom:1px solid #dce3ef;position:sticky;top:48px;z-index:2;background:#f7f9fc;min-width:0}.ms-preview-toolbar button,.ms-reader-toolbar button{display:flex;align-items:center;gap:5px;border:0;background:transparent;color:#1263c7;font:inherit;font-size:12px;cursor:pointer;padding:3px 0;white-space:nowrap}.ms-preview-toolbar strong{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#4a607e}.ms-preview-toolbar>a{color:#326baa;line-height:0}.ms-preview-document{flex:1;min-height:300px;padding:12px;background:#f0f3f7;overflow:auto;box-sizing:border-box}.ms-preview-document>p{font-size:12px;color:#61728e;line-height:1.7}.ms-preview-document iframe{display:block;border:0;width:100%;height:calc(var(--ms-height,65vh) - 145px);min-height:280px;background:#fff}.ms-preview-document>img{display:block;max-width:100%;height:auto;max-height:calc(var(--ms-height,65vh) - 150px);object-fit:contain;margin:auto}.ms-preview-document pre{white-space:pre-wrap;overflow-wrap:anywhere;padding:20px;background:#fff;font:13px/1.7 ui-monospace,monospace;color:#283e59}
@media(max-width:1000px) and (min-width:761px){.ms-inbox .fm-mail-split{grid-template-columns:minmax(275px,38%) minmax(0,1fr)}.ms-inbox .fm-mail-row{padding:16px 12px;gap:8px}.ms-inbox .fm-mail-row .ms-sender-avatar{display:none}.ms-inbox .fm-reader-header{padding:20px 20px 0}.ms-inbox .fm-message-body{padding:20px}.ms-mail-attachments{padding:0 20px}.ms-mail-originals,.ms-filing-disclosure{margin-inline:20px}}
@media(max-width:760px){.ms-inbox-tabs{gap:18px;margin-bottom:13px}.ms-inbox-tabs button{font-size:12px;padding-top:4px}.ms-inbox-toolbar{gap:10px;flex-wrap:wrap}.ms-inbox-toolbar h1{font-size:24px;flex:1}.ms-refresh{width:35px;height:35px}.ms-inbox-search{order:3;width:100%;margin:0;gap:4px}.ms-inbox-search label{padding:9px 10px;background:#f5f7fb}.ms-inbox-search input{font-size:16px}.ms-search-submit{font-size:12px;padding-inline:8px}.ms-inbox-summary{font-size:10px;margin:10px 0}.ms-inbox .fm-mail-split{display:block;border-radius:6px;min-height:300px}.ms-message-column{height:100%;border:0}.ms-inbox .fm-mail-row{padding:16px 13px;gap:11px}.ms-inbox .fm-mail-meta strong{font-size:13px}.ms-inbox .fm-mail-meta time{font-size:10px}.ms-inbox .fm-mail-subject{font-size:12px}.ms-inbox .fm-mail-excerpt{font-size:11px}.ms-inbox .fm-reader{display:none;height:100%;border:0}.ms-reading .ms-message-column{display:none}.ms-reading .fm-reader{display:block}.ms-reading .ms-inbox-toolbar,.ms-reading .ms-inbox-summary{display:none}.ms-reading .fm-mail-split{height:var(--ms-height,75vh)}.ms-reader-toolbar{justify-content:space-between;padding:12px 16px;min-height:48px}.ms-reader-toolbar [data-ms-back]{display:flex}.ms-reader-toolbar>span{font-size:10px}.ms-inbox .fm-reader-header{padding:20px 17px 0}.ms-inbox .fm-reader-header h2{font-size:20px;margin-bottom:22px}.ms-inbox .fm-message-body{padding:24px 17px;font-size:15px;line-height:1.7}.ms-mail-attachments{padding-inline:17px}.ms-attachment{width:100%}.ms-attachment>button{padding:11px}.ms-mail-originals,.ms-filing-disclosure{margin-inline:17px}.ms-preview-toolbar{padding:12px;gap:8px}.ms-preview-toolbar button{font-size:11px}.ms-preview-toolbar strong{font-size:11px}.ms-preview-document{padding:7px}.ms-inbox .fm-mail-list{max-height:none}.ms-inbox .fm-empty{min-height:260px}}
/* Keep the compact mail search independent of legacy full-page form styling. */
.ms-inbox form.ms-inbox-search{margin-block:0;padding:0}.ms-inbox form.ms-inbox-search>label{display:flex;gap:9px;margin:0;font-weight:400;color:#5b7090}.ms-inbox form.ms-inbox-search input[type=search]{margin:0;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent;min-height:0;height:auto}
.ms-mail-tools{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 16px;min-width:0}.ms-mail-tools[hidden],.ms-mail-tools button[hidden]{display:none!important}.ms-mail-tools button{max-width:100%;border:1px solid transparent;border-radius:5px;padding:7px 10px;font:inherit;font-size:12px;line-height:1.4;background:transparent;color:#536582;cursor:pointer}.ms-mail-tools button[aria-pressed=true]{color:#075bcc;background:#eaf2ff;border-color:#cfdef7}.ms-mail-tools button:hover{background:#edf3fc}.ms-mail-tools button:focus-visible,.ms-inbox-tabs button:focus-visible{outline:2px solid #0866ef;outline-offset:2px}.ms-inbox-tabs{flex:none}.ms-inbox-tabs button{min-width:58px}
/* A single source heading; optional tools open without taking a permanent row. */
.ms-source-workspace{height:var(--ms-host-height,calc(100dvh - 170px));min-height:0;display:flex;flex-direction:column;gap:12px}.ms-source-heading{display:flex;gap:12px;align-items:center;flex:none;position:relative;z-index:4}.ms-source-heading .ms-inbox-tabs{margin:0;flex:1;min-width:0;gap:18px;border:0}.ms-source-actions{display:flex;gap:7px;align-items:center}.ms-source-actions>button,.ms-source-menu>summary{border:1px solid #d4deed;border-radius:8px;background:#fff;color:#496a94;width:36px;height:36px;padding:7px;display:flex;align-items:center;justify-content:center;cursor:pointer;list-style:none;box-sizing:border-box}.ms-source-actions svg{width:20px;height:20px}.ms-source-menu{position:relative}.ms-source-menu summary::-webkit-details-marker{display:none}.ms-source-menu .ms-mail-tools{position:absolute;right:0;top:calc(100% + 6px);z-index:6;display:grid;min-width:220px;max-width:calc(100vw - 30px);padding:8px;border:1px solid #d4deed;border-radius:10px;background:#fff;box-shadow:0 12px 36px #193d662b}.ms-source-menu .ms-mail-tools button{text-align:left}.ms-source-heading [data-ms-source-count]{font-size:10px;padding:1px 4px;border-radius:4px;background:#e5efff;color:#3164a6}.ms-source-heading [data-ms-source-count]:empty{display:none}.ms-source-workspace>[data-ms-content]{min-height:0;flex:1;overflow:auto}.ms-source-workspace[data-ms-mode=microsoft]>[data-ms-content]{overflow:hidden}.ms-source-workspace .ms-list-heading{display:none}.ms-source-workspace .fm-compact-inbox [data-fm-back]{display:none}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace:has(.ms-source-workspace) .page.studio-page{padding-bottom:8px}
@media(max-width:760px){
 body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace:has(.ms-source-workspace) .page.studio-page{padding:10px 10px 8px}
 .ms-source-workspace{gap:6px}.ms-source-heading{gap:5px}.ms-source-heading .ms-inbox-tabs{gap:8px;overflow:visible;justify-content:space-between}.ms-source-heading .ms-inbox-tabs button{min-width:0;font-size:13px;padding:10px 1px;display:flex;align-items:center;gap:3px;white-space:nowrap}.ms-source-actions{gap:4px}.ms-source-actions>button,.ms-source-menu>summary{width:30px;height:32px;padding:5px;border-radius:6px}.ms-source-heading [data-ms-source-count]{font-size:9px;padding:1px 3px}
 .ms-inbox-toolbar{margin:0;display:block}.ms-inbox-toolbar h1,.ms-inbox-toolbar>[data-ms-refresh]{display:none}.ms-inbox:not(.ms-search-open) .ms-inbox-search{display:none!important}.ms-inbox.ms-search-open .ms-inbox-search{display:flex;margin-bottom:8px!important}.ms-inbox-summary{margin:4px 0 7px;font-size:10px}.ms-inbox .fm-mail-split{min-height:96px}.ms-inbox .fm-mail-row{padding:13px 11px}.ms-inbox .fm-mail-excerpt{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.ms-inbox .fm-reader{min-height:0}.ms-reading .ms-inbox-toolbar{display:none}
 .fm-compact-inbox>.fm-heading{display:none}.fm-compact-inbox>.fm-inbox-toolbar{margin:0 0 8px}.fm-compact-inbox>.fm-inbox-toolbar>[data-fm-refresh]{display:none}.fm-compact-inbox:not(.fm-search-open) [data-fm-search]{display:none}.fm-compact-inbox .fm-mail-list{max-height:none;border:0}.fm-compact-inbox .fm-reader{display:none}.fm-compact-inbox.fm-reading .fm-mail-list{display:none}.fm-compact-inbox.fm-reading .fm-reader{display:block}.ms-source-workspace .fm-compact-inbox [data-fm-back]{display:inline-flex;margin-bottom:14px}.fm-compact-inbox .fm-mail-split{min-height:0}.fm-compact-inbox .fm-mail-row{padding:14px 12px}.fm-compact-inbox .fm-footnote{margin-bottom:0}
}
body.studio-theme #app.familum-workspace:has(.ms-source-workspace) .bottom-note{display:none}

.fm-source-note{font-size:11px;color:#657a96;margin:0 0 10px;line-height:1.5}
/* Peter164/165: the same compact source heading also applies on desktop. */
.ms-source-workspace .ms-inbox-toolbar{margin:0;display:block}.ms-source-workspace .ms-inbox-toolbar h1,.ms-source-workspace .ms-inbox-toolbar>[data-ms-refresh]{display:none}.ms-source-workspace .ms-inbox:not(.ms-search-open) .ms-inbox-search{display:none!important}.ms-source-workspace .ms-inbox.ms-search-open .ms-inbox-search{display:flex;margin-bottom:8px!important}.ms-source-workspace .ms-inbox-summary{margin:4px 0 7px}.ms-source-workspace .fm-compact-inbox>.fm-heading{display:none}.ms-source-workspace .fm-compact-inbox>.fm-inbox-toolbar>[data-fm-refresh]{display:none}.ms-source-workspace .fm-compact-inbox:not(.fm-search-open) [data-fm-search]{display:none}

/* Peter179/180: readable desktop split and a full-width mobile message. */
.ms-inbox .fm-mail-split{grid-template-columns:clamp(300px,32%,430px) minmax(0,1fr);border-radius:10px}
.ms-inbox .fm-mail-row{gap:12px;padding:16px 16px}.ms-inbox .fm-mail-meta{margin-bottom:4px;gap:10px}.ms-inbox .fm-mail-meta strong{font-size:16px;line-height:1.4;font-weight:700}.ms-inbox .fm-mail-meta time{font-size:12px;line-height:1.5}.ms-inbox .fm-mail-subject{font-size:15px;line-height:1.45;margin-bottom:4px;font-weight:550}.ms-inbox .fm-mail-excerpt{font-size:14px;line-height:1.45;color:#65758d}.ms-row-content>small{font-size:11px;margin-top:6px}.ms-sender-avatar{width:42px;height:42px;font-size:14px}
.ms-inbox .ms-reader-toolbar{display:none}.ms-inbox .fm-reader-header{padding:20px 28px 0}.ms-inbox .fm-reader-header h2{font-size:22px;line-height:1.35;margin:0 0 18px;letter-spacing:-.2px}.ms-sender-line{gap:12px;align-items:flex-start;margin:0}.ms-sender-line .ms-sender-avatar{width:44px;height:44px;font-size:15px}.ms-sender-line strong{font-size:16px;line-height:1.35}.ms-sender-line>.ms-sender-identity{flex:1;gap:3px}.ms-sender-line>.ms-sender-identity>span{font-size:13px;line-height:1.35}.ms-reader-date{margin-left:auto;flex:none;font-size:12px;line-height:1.5;color:#65758d;padding-top:2px}
.ms-message-details{margin:9px 0 0 56px;font-size:13px;color:#61718a}.ms-message-details>summary{display:flex;align-items:baseline;justify-content:space-between;gap:10px;list-style:none;cursor:pointer;line-height:1.5}.ms-message-details>summary::-webkit-details-marker{display:none}.ms-message-details>summary>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ms-header-toggle{flex:none;font-size:12px;color:#1764c3}.ms-message-details[open]>summary>span:first-child{white-space:normal;overflow-wrap:anywhere}.ms-message-details[open] .ms-header-toggle{font-weight:700}.ms-mail-headers{font-size:13px;gap:5px 10px;margin-top:12px;line-height:1.5}.ms-mail-headers dt,.ms-mail-headers dd{color:inherit}
.ms-inbox .fm-message-body{padding:26px 28px 32px;font-size:18px;line-height:1.55;letter-spacing:0;color:#26354a;min-height:180px;max-width:100%;box-sizing:border-box}.ms-mail-attachments{padding:0 28px}.ms-mail-attachments h3{font-size:13px}.ms-mail-attachments p{font-size:13px;line-height:1.5;margin:16px 0 0}.ms-attachment strong{font-size:13px}.ms-attachment small{font-size:11px}.ms-mail-originals,.ms-filing-disclosure,.ms-mail-originals summary,.ms-filing-disclosure summary{font-size:13px}.ms-mail-originals>div{font-size:12px}.ms-inbox .ms-preview-toolbar{top:0}
@media(min-width:761px) and (max-width:1000px){.ms-inbox .fm-mail-split{grid-template-columns:300px minmax(0,1fr)}.ms-inbox .fm-mail-row .ms-sender-avatar{display:grid;width:34px;height:34px;font-size:12px}.ms-inbox .fm-mail-row{padding:14px 10px;gap:9px}.ms-inbox .fm-mail-meta strong{font-size:15px}.ms-inbox .fm-mail-meta time{font-size:11px}.ms-inbox .fm-reader-header{padding:20px 20px 0}.ms-inbox .fm-message-body{padding:24px 20px}.ms-mail-attachments{padding-inline:20px}.ms-reader-date{max-width:70px;white-space:normal}.ms-sender-line strong{font-size:15px}}
@media(max-width:760px){
 .ms-inbox .fm-mail-split{border-radius:0;border-inline:0}.ms-inbox .fm-mail-row{padding:17px 12px;gap:12px}.ms-inbox .ms-sender-avatar{width:42px;height:42px;font-size:15px}.ms-inbox .fm-mail-meta strong{font-size:17px;line-height:1.4}.ms-inbox .fm-mail-meta time{font-size:11px}.ms-inbox .fm-mail-subject{font-size:16px;line-height:1.4;font-weight:500}.ms-inbox .fm-mail-excerpt{font-size:15px;line-height:1.45}.ms-row-content>small{font-size:11px}.ms-inbox .fm-reader{width:100%}.ms-inbox .ms-reader-toolbar{display:flex;gap:12px;padding:10px 12px;min-height:48px;justify-content:flex-start}.ms-reader-toolbar [data-ms-back]{flex:none;font-size:14px;min-height:28px}.ms-reader-toolbar>strong{font-size:15px;font-weight:650;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.ms-inbox .fm-reader-header{padding:18px 14px 0}.ms-inbox .fm-reader-header h2{font-size:20px;margin:0 0 16px;line-height:1.35}.ms-sender-line{gap:10px;flex-wrap:wrap}.ms-sender-line>.ms-sender-identity{flex-basis:calc(100% - 56px)}.ms-sender-line strong{font-size:17px}.ms-sender-line>.ms-sender-identity>span{font-size:13px}.ms-reader-date{font-size:12px;margin:-2px 0 0 54px;padding:0}.ms-message-details{margin:6px 0 0 54px;font-size:13px}.ms-message-details .ms-mail-headers{grid-template-columns:1fr;gap:2px;margin:12px 0 0}.ms-message-details .ms-mail-headers dd{margin-bottom:6px}.ms-inbox .fm-message-body{padding:22px 14px 28px;font-size:18px;line-height:1.55}.ms-mail-attachments{padding-inline:14px}.ms-mail-originals,.ms-filing-disclosure{margin-inline:14px}.ms-inbox .ms-preview-toolbar{top:48px}
}

/* Keep attachments in one accessible horizontal row so the message starts high. */
.ms-inbox .ms-attachment-grid{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-inline:contain;padding-bottom:5px}.ms-inbox .ms-attachment{flex:0 0 240px}.ms-inbox .ms-mail-attachments h3{font-size:12px;margin:12px 0 7px}.ms-inbox .ms-attachment strong{font-size:13px}.ms-inbox .ms-attachment small{font-size:11px}.ms-inbox .ms-attachment>button{padding:8px}.ms-inbox .ms-file-icon{width:25px;height:30px}.ms-inbox .ms-attachment-grid:focus-visible{outline:2px solid #0866ef;outline-offset:2px}

.ms-inbox .ma-actions .button{transition:none}

/* The mobile reader owns the visible window; the app remains behind the modal. */
.ms-inbox .ms-reader-modal{position:fixed;inset:0;width:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:#fff;color:var(--mail-ink);box-sizing:border-box;overflow:hidden;overscroll-behavior:contain}
.ms-reader-modal::backdrop{background:#11213c80}
body:has(.ms-reader-modal[open]){overflow:hidden}
.ms-inbox .ms-reader-modal .fm-reader{display:flex;flex-direction:column;width:100%;height:100%;max-height:100%;overflow:auto;border:0;box-sizing:border-box}
.ms-inbox .ms-reader-modal .ms-reader-toolbar{flex:none;min-height:50px;padding:calc(8px + env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 8px max(12px,env(safe-area-inset-left));gap:10px;position:sticky;top:0}
.ms-inbox .ms-reader-modal .ms-reader-toolbar>strong{white-space:normal;overflow-wrap:anywhere;font-size:15px;line-height:1.35}
.ms-inbox .ms-reader-modal .fm-reader-header{padding:14px max(14px,env(safe-area-inset-right)) 0 max(14px,env(safe-area-inset-left));border:0}
.ms-inbox .ms-reader-modal .fm-reader-header h2{display:none}
.ms-inbox .ms-reader-modal .ms-sender-line{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:8px;align-items:center}
.ms-inbox .ms-reader-modal .ms-sender-avatar{width:36px;height:36px;font-size:14px}
.ms-inbox .ms-reader-modal .ms-sender-line strong{font-size:16px;line-height:1.35}
.ms-inbox .ms-reader-modal .ms-sender-identity>span{display:none}
.ms-inbox .ms-reader-modal .ms-reader-date{font-size:11px;margin:0;max-width:72px;line-height:1.4;text-align:right}
.ms-inbox .ms-reader-modal .ms-message-details{margin:3px 0 0 44px;font-size:12px}
.ms-inbox .ms-reader-modal .ms-mail-attachments h3{display:none}
.ms-inbox .ms-reader-modal .ms-attachment-grid{margin-top:12px;padding-bottom:3px}
.ms-inbox .ms-reader-modal .ms-attachment{flex-basis:220px}
.ms-inbox .ms-reader-modal .fm-message-body{padding:18px max(14px,env(safe-area-inset-right)) 22px max(14px,env(safe-area-inset-left));font-size:18px;line-height:1.55}
.ms-inbox .ms-reader-modal [data-ms-message-content]{flex:1 0 auto}
.ms-inbox .ms-reader-modal [data-ms-actions]{flex:none;position:sticky;bottom:0;margin-top:auto}
.ms-inbox .ms-reader-modal .ma-actions{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:8px max(8px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}
.ms-inbox .ms-reader-modal .ma-actions .button{font-size:12px;line-height:1.3;padding:8px 3px;min-height:44px;overflow-wrap:anywhere}
.ms-inbox .ms-reader-modal .ms-mail-preview{flex:1 0 auto;min-height:calc(100dvh - 110px)}
.ms-inbox .ms-reader-modal .ms-preview-document iframe{height:calc(100dvh - 205px)}
.ms-inbox .ms-reader-modal .ms-preview-document>img{max-height:calc(100dvh - 205px)}
.ms-inbox .ms-reader-modal .ms-preview-toolbar{top:50px}
html[data-familum-night=true] .ms-inbox .ms-reader-modal{background:#1d293b;color:#e5edf9}

.ms-inbox .ms-reader-modal .fm-message-body{max-height:none;overflow:visible}
body.studio-theme #app.familum-workspace .ms-reader-modal .ma-actions .button{padding:8px 2px;font-size:12px;line-height:1.3;min-height:44px;letter-spacing:0;word-break:normal;overflow-wrap:normal}

/* Distinguish a finished security block from a check that is still pending. */
.ms-inbox .ms-security-notice{margin:20px 28px;padding:18px;border:1px solid #cbd9ed;border-radius:10px;background:#f1f5fc;color:#243d61;line-height:1.6;overflow-wrap:anywhere}
.ms-inbox .ms-security-notice h3{margin:0 0 10px;font-size:17px;line-height:1.4;color:inherit}
.ms-inbox .ms-security-notice p{margin:0 0 12px;font-size:15px;color:inherit}
.ms-inbox .ms-security-notice .ms-security-next{font-size:14px}
.ms-inbox .ms-security-notice .button{margin:0;min-height:40px}
html[data-familum-night=true] .ms-inbox .ms-security-notice{background:#26374f;border-color:#455f80;color:#e5edf9}
@media(max-width:760px){.ms-inbox .ms-security-notice{margin:16px 14px;padding:16px}.ms-inbox .ms-security-notice h3{font-size:17px}}
html[data-familum-night=true] .ms-inbox .ms-mail-originals{border-color:#455f80;color:#b8c8df}
html[data-familum-night=true] .ms-inbox .ms-mail-originals>summary,html[data-familum-night=true] .ms-inbox .ms-mail-originals a{color:#a4caff}
html[data-familum-night=true] .ms-inbox .ms-mail-originals>div{border-color:#455f80;color:#b8c8df}
html:not([data-familum-night=true]) .ms-inbox .ms-row-content>small{color:#536981}

/* Reading an attachment gets its own full-screen surface and one compact toolbar. */
.ms-inbox .ms-pdf-modal{position:fixed;inset:0;width:100%;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:#e9edf3;color:#213552;overflow:hidden}
.ms-pdf-modal::backdrop{background:#142136bb}
.ms-inbox .ms-pdf-modal .ms-mail-preview{height:100%;min-height:0;display:flex;flex-direction:column}
.ms-inbox .ms-pdf-modal .ms-preview-toolbar{position:static;flex:none;gap:10px;padding:4px 12px;min-height:48px;box-sizing:border-box;background:#f7f9fc}
.ms-inbox .ms-pdf-modal .ms-preview-toolbar button,.ms-inbox .ms-pdf-modal .ms-preview-toolbar>a{min-width:36px;min-height:40px;display:flex;align-items:center;justify-content:center}
.ms-inbox .ms-pdf-modal .ms-preview-toolbar strong{font-size:13px;line-height:1.4;color:#344d6d}
.ms-inbox .ms-pdf-modal .ms-preview-document{position:relative;flex:1;min-height:0;padding:0;overflow:hidden}
.ms-inbox .ms-pdf-modal .ms-preview-document iframe{width:100%;height:100%;min-height:0;max-height:none}
.ms-inbox .ms-pdf-modal .ms-preview-document>p{position:absolute;z-index:1;left:12px;right:12px;top:4px;margin:0;padding:12px;background:#f1f5fc;color:#243d61;border-radius:6px}
html[data-familum-night=true] .ms-inbox .ms-pdf-modal .ms-preview-toolbar{background:#1d2b40;border-color:#40556d;color:#e5edf9}
html[data-familum-night=true] .ms-inbox .ms-pdf-modal .ms-preview-toolbar strong{color:#e5edf9}
html[data-familum-night=true] .ms-inbox .ms-pdf-modal .ms-preview-toolbar button,html[data-familum-night=true] .ms-inbox .ms-pdf-modal .ms-preview-toolbar>a{color:#a4caff}
@media(max-width:360px){.ms-inbox .ms-pdf-modal .ms-preview-toolbar{padding-inline:6px;gap:6px}.ms-inbox .ms-pdf-modal [data-ms-preview-back] span{display:none}}

/* Image attachments use the same reading window; rotation only changes the view. */
.ms-inbox .ms-pdf-modal .ms-image-document{position:relative;overflow:hidden}
.ms-inbox .ms-pdf-modal .ms-image-document>img{position:absolute;left:50%;top:50%;max-width:none;max-height:none;margin:0;object-fit:contain;transform-origin:center}
html[data-familum-night="true"] .ms-inbox .ms-pdf-modal .ms-image-document{background:#111c2c}

.ms-inbox .ms-pdf-modal .document-image-pane{display:block;overflow:auto;touch-action:pan-x pan-y;overscroll-behavior:contain}.ms-inbox .document-image-stage{position:relative;min-width:100%;min-height:100%}.ms-inbox .document-image-stage>img{position:absolute;left:50%;top:50%;max-width:none;max-height:none;margin:0;transform-origin:center;object-fit:contain}

/* Source selection stays distinct from search, refresh and optional tools. */
.ms-source-heading{gap:16px}
.ms-source-heading .ms-inbox-tabs{gap:8px;overflow:visible;justify-content:flex-start}
.ms-source-heading .ms-inbox-tabs button{display:flex;align-items:center;justify-content:center;gap:6px;min-width:76px;min-height:42px;padding:9px 14px;border:1px solid #b9c9df;border-radius:9px;background:#f5f8fc;color:#344c6d;line-height:1.3}
.ms-source-heading .ms-inbox-tabs button[aria-pressed=true]{background:#e5efff;border-color:#075bcc;color:#064fae;box-shadow:inset 0 -2px #075bcc}
.ms-source-heading .ms-inbox-tabs button:hover{background:#dce9fc}
.ms-source-actions{flex:none;gap:8px}
.ms-source-actions>button,.ms-source-menu>summary{width:42px;height:42px;padding:10px}
/* Keep all three sources and their tools in one compact mobile row. Counts remain accessible. */
@media(max-width:600px){
 .ms-source-heading{flex-wrap:nowrap;gap:6px}
 .ms-source-heading .ms-inbox-tabs{flex:1 1 0;display:grid;grid-template-columns:repeat(3,minmax(44px,1fr));gap:4px}
 .ms-source-heading .ms-inbox-tabs button{position:relative;min-width:44px;min-height:44px;padding:8px 4px;font-size:13px;gap:0}
 .ms-source-heading [data-ms-source-count]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
 .ms-source-actions{margin-left:0;gap:4px}
 .ms-source-actions>button,.ms-source-menu>summary{width:44px;height:44px;padding:10px}
}
/* Saved case suggestions stay separate from the original message text. */
.ms-inbox .ms-assignment{margin:20px 0;padding:18px;border:1px solid #cbd5e1;border-radius:12px;background:#f3f6fa;color:#26354a;overflow-wrap:anywhere}
.ms-inbox .ms-assignment-eyebrow{display:block;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#52647a;margin-bottom:5px}
.ms-inbox .ms-assignment h3{margin:0;font-size:17px;line-height:1.4}
.ms-inbox .ms-assignment p{margin:8px 0 12px;line-height:1.55}
.ms-inbox .ms-assignment ul{padding-left:20px;margin:8px 0 12px;line-height:1.55}
.ms-inbox .ms-assignment-candidate{padding:14px 0;border-top:1px solid #cbd5e1}
.ms-inbox .ms-assignment-title{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}
.ms-inbox .ms-assignment-title>span{font-size:12px;font-weight:700;color:#354f72}
.ms-inbox .ms-assignment .button{min-height:44px!important;max-width:100%;white-space:normal;text-align:left;margin:4px 6px 4px 0}
.ms-inbox .ms-assignment small{display:block;color:#52647a;line-height:1.5;margin:4px 0 10px}
.ms-inbox .ms-assignment-link{display:block;padding:8px 0;color:#205b9c}
html[data-familum-night=true] .ms-inbox .ms-assignment{background:#223249;border-color:#465c76;color:#e5edf9}
html[data-familum-night=true] .ms-inbox .ms-assignment-candidate{border-color:#465c76}
html[data-familum-night=true] .ms-inbox .ms-assignment-eyebrow,html[data-familum-night=true] .ms-inbox .ms-assignment small{color:#bfcee1}
html[data-familum-night=true] .ms-inbox .ms-assignment-title>span,html[data-familum-night=true] .ms-inbox .ms-assignment-link{color:#b3d3ff}
@media(max-width:440px){.ms-inbox .ms-assignment{padding:14px;margin:16px 0}.ms-inbox .ms-assignment .button{width:100%;margin-right:0}}

/* Filing and the optional fixed acknowledgement share one explicit decision. */
.ms-filing{--filing-paper:#fff;--filing-line:#cbd5e1;--filing-ink:#23364d;--filing-muted:#4b6078;color:var(--filing-ink);background:var(--filing-paper);padding:16px;border:1px solid var(--filing-line);border-radius:8px;box-sizing:border-box;font-size:14px;line-height:1.55;overflow-wrap:anywhere}
.ms-filing h3{font-size:17px;margin:0 0 8px}.ms-filing p{margin:8px 0 14px}.ms-filing small{color:var(--filing-muted)}
.ms-filing form,.ms-filing [data-ms-receipt]{display:grid;gap:14px;min-width:0}.ms-filing [hidden]{display:none!important}
.ms-filing label{display:grid;gap:5px;min-width:0}.ms-filing input:not([type=checkbox]),.ms-filing select{width:100%;max-width:100%;min-width:0;box-sizing:border-box;border:1px solid var(--filing-line);border-radius:5px;background:var(--filing-paper);color:var(--filing-ink);padding:10px;font:inherit}
.ms-filing .ms-filing-confirm{display:flex;align-items:flex-start;gap:10px}.ms-filing-confirm input[type=checkbox]{width:18px;height:18px;margin:3px 0 0;flex:none;accent-color:#0866ef}.ms-filing .ms-filing-search{display:flex;gap:10px;align-items:flex-end;min-width:0}.ms-filing-search label{flex:1}.ms-filing button{min-height:42px;max-width:100%;white-space:normal}.ms-filing button:disabled{opacity:.6}.ms-filing [data-ms-receipt]{border-top:1px solid var(--filing-line);padding-top:16px}.ms-filing [data-ms-receipt-preview]{background:#f1f5fb;border-radius:6px;padding:12px}.ms-filing pre{font:inherit;white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0 0}.ms-filing [type=submit]{justify-self:start}.ms-filing-job{display:grid;gap:6px;padding:12px 0;border-bottom:1px solid var(--filing-line)}.ms-filing a{color:#075bcc}.ms-filing :is(input,select,button,a):focus-visible{outline:2px solid #0866ef;outline-offset:2px}
html[data-familum-night=true] .ms-filing{--filing-paper:#172333;--filing-line:#52647a;--filing-ink:#e4edf8;--filing-muted:#bdcce0}html[data-familum-night=true] .ms-filing [data-ms-receipt-preview]{background:#213248}html[data-familum-night=true] .ms-filing a{color:#a4ceff}html[data-familum-night=true] .ms-filing .button.secondary{background:#213248;color:#e4edf8;border-color:#52647a}
@media(max-width:420px){.ms-filing{padding:12px}.ms-filing .ms-filing-search{display:grid;gap:8px}.ms-filing .ms-filing-search button{justify-self:start}}
html[data-familum-night=true] #app.familum-workspace .ms-filing .button{background:#2b3d57!important;background-image:none!important;color:#e5edf9!important;border-color:#526b8b!important}

/* microsoft365-mail-actions.css */
.ma-actions{position:sticky;bottom:0;z-index:3;background:#fff;border-top:1px solid #dce3ef;padding:12px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.ma-actions .button{font-size:13px;min-width:0;padding:10px 6px;white-space:normal}.ma-actions .button:first-child{background:#0964ed;border-color:#0964ed;color:#fff}[data-ma-history]{padding:8px 14px;font-size:13px}[data-ma-history] button{margin:6px 6px 0 0}.ma-dialog{width:min(690px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);margin:auto;border:1px solid #dce3ef;border-radius:16px;padding:0;background:#fff;color:#173660;box-shadow:0 20px 70px #001a4d45;overflow:auto}.ma-dialog::backdrop{background:#16325770}.ma-heading{position:sticky;top:0;display:flex;justify-content:space-between;align-items:center;gap:15px;background:#fff;padding:18px 22px;border-bottom:1px solid #e3e9f3;z-index:2}.ma-heading p{margin:0;color:#657a96;font-size:12px}.ma-heading h2{margin:4px 0;font-size:22px}[data-ma-body]{padding:20px 22px}[data-ma-body]>h3{margin-top:0}[data-ma-body] p{line-height:1.55;overflow-wrap:anywhere}[data-ma-body] label{display:grid;gap:6px;font-size:13px;font-weight:550;margin:13px 0}[data-ma-body] input,[data-ma-body] select,[data-ma-body] textarea{width:100%;min-width:0;box-sizing:border-box;border:1px solid #cdd8e8;background:#fff;border-radius:8px;padding:10px 12px;font:inherit;color:inherit}[data-ma-body] textarea{resize:vertical;line-height:1.6}[data-ma-body] pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.65;background:#f6f8fc;border-radius:8px;padding:14px}[data-ma-body] footer{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:20px}[data-ma-body] footer .button:last-child{background:#0964ed;color:white;border-color:#0964ed}[data-ma-body] small{display:block;color:#657a96;font-size:12px;line-height:1.5}.ma-dialog .ma-check{display:flex;align-items:flex-start;gap:9px;line-height:1.5}.ma-dialog .ma-check input{width:18px;height:18px;flex:none;margin-top:1px}.ma-addresses{display:grid;grid-template-columns:2fr 1fr 1fr;gap:9px}.ma-search{display:flex;align-items:flex-end;gap:8px}.ma-search label{flex:1}.ma-search button{margin-bottom:13px}.ma-suggestions{display:grid;gap:7px}.ma-suggestions button{text-align:left}.ma-aam-choice{display:flex;gap:10px}.ma-hint{border-left:3px solid #0964ed;padding-left:10px}.ma-ai{border-top:1px solid #e1e8f2;margin-top:16px;padding-top:6px}[data-ma-body] dl{display:grid;grid-template-columns:95px 1fr;gap:10px;font-size:14px}[data-ma-body] dd{margin:0;overflow-wrap:anywhere}[data-ma-notice]{margin:0;padding:0 22px 18px;font-size:14px;line-height:1.5}.ma-outgoing .mo-tabs,.ma-outgoing .mo-history,.ma-outgoing .mo-heading{display:none}.ma-outgoing .mo-layout{display:block}.ma-outgoing .mo-workspace,.ma-outgoing .mo-detail{padding:0;min-height:0}.ma-outgoing{margin-top:18px;min-width:0}.ma-outgoing .mo-target{margin-top:16px}@media(max-width:600px){.ma-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.ma-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:12px}.ma-heading{padding:14px}.ma-heading h2{font-size:20px}[data-ma-body]{padding:16px 14px}[data-ma-notice]{padding:0 14px 16px}.ma-addresses{grid-template-columns:1fr}.ma-addresses label{margin:5px 0}[data-ma-body] input,[data-ma-body] select,[data-ma-body] textarea{font-size:16px}.ma-search{flex-wrap:wrap}.ma-dialog button{min-height:40px}[data-ma-body] dl{grid-template-columns:1fr;gap:5px}[data-ma-body] dd{margin-bottom:9px}}

[data-ms-actions]{position:sticky;bottom:0;z-index:3;background:#fff;margin-top:auto}.ma-dialog *{box-sizing:border-box}.ma-outgoing [data-ma-body]{padding:0}
.ma-actions{display:flex;gap:8px;flex-wrap:wrap}.ma-actions [data-ma=automatic]{background:#38567b;color:#fff;border-color:#7799bf;font-weight:700}.ma-category-tags{display:flex;flex-wrap:wrap;gap:6px}.ma-category-tags span{padding:5px 9px;border:1px solid #7893b4;border-radius:14px}.ma-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere}
.ma-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) minmax(170px,1.35fr)}@media(max-width:700px){.ma-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.ma-actions [data-ma=automatic]{grid-column:1/-1}}
#app.familum-workspace .ma-actions .button[data-ma=automatic][data-ma]{background:#38567b!important;border-color:#7799bf!important;color:#fff!important}
html[data-familum-night=true] #app.familum-workspace .ma-actions .button[data-ma=automatic][data-ma]{background:#365a85!important;border-color:#8eb0d9!important;color:#fff!important}

.ms-inbox .ms-reader-modal .ma-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.ms-inbox .ms-reader-modal .ma-actions [data-ma=automatic]{grid-column:1/-1}

/* familum-night.css */
/* Automatic evening palette. Original documents and chosen board imagery retain their colours. */
html[data-familum-night=true]{color-scheme:dark;--surface:#1d293b;--surface-alt:#263348;--line:#3b4b62;--border:#3b4b62;--text:#e5edf9;--muted:#a5b5cc;--ink:#e5edf9}
html[data-familum-night=true] body{background:#141e2d;color:#e5edf9}
html[data-familum-night=true] #app.familum-workspace{--fm-paper:#141e2d;--fm-ink:#e5edf9;--fm-line:#3b4b62;--fm-muted:#a5b5cc;background:#141e2d!important;color:#e5edf9!important}
html[data-familum-night=true] #app.familum-workspace :is(.studio-topbar,.studio-rail,.fm-icon-rail,.studio-main,.studio-page,.fm-workbar){background:#141e2d!important;color:#e5edf9!important;border-color:#35445c!important}
html[data-familum-night=true] #app.familum-workspace :is(.studio-brand,.fm-primary-nav>a,.studio-search,.studio-avatar,.studio-topbar button,.fm-icon-rail a){color:#dae7fb!important}
html[data-familum-night=true] #app.familum-workspace .fm-primary-nav>a[aria-current=page]{background:#1c64cf!important;color:#fff!important}
html[data-familum-night=true] #app.familum-workspace :is(.studio-search,.studio-avatar,.fm-nav-count,.feedback-trigger,.studio-user-menu,.studio-rail,.fm-board-switch>div){background:#263348!important;border-color:#3b4b62!important}
html[data-familum-night=true] :is(.tb-list,.intake-column):not([style*="background-color"]){background:#202e42!important;border-color:#3b4b62!important;color:#e5edf9!important}
html[data-familum-night=true] :is(.tb-card,.intake-card){background:#2b3a51!important;color:#f0f5ff!important;border-color:#455772!important;box-shadow:0 1px 2px #0004!important}
html[data-familum-night=true] :is(.tb-card-title,.tb-list-title,.tb-list-count,.tb-add-card,.tb-card p,.tb-card span:not(.tb-label)){color:inherit}
html[data-familum-night=true] :is(.tc-dialog,.tb-appearance,.ma-dialog,.mso-dialog,.cp-mail-dialog,.studio-mobile-nav,.studio-feedback-dialog,.dc-image-dialog){background:#1d293b!important;color:#e5edf9!important;border-color:#46556c!important}
html[data-familum-night=true] :is(.tc-dialog,.tb-appearance,.ma-dialog,.mso-dialog,.cp-mail-dialog) :is(header,footer,section,form,.tc-sidebar,.tc-main,.tc-section,.tc-title,.ma-heading,.mso-heading){color:inherit;border-color:#3b4b62!important}
html[data-familum-night=true] :is(.tc-dialog,.ma-dialog,.mso-dialog,.tb-appearance,.cp-mail-dialog) :is(.ma-heading,.mso-heading,.tc-sidebar,.tc-contact-fields,.tc-activity,.tc-activity-item,.tc-comment,.mso-review,.mso-status){background:#223047!important;color:#e5edf9!important}
html[data-familum-night=true] :is(#app.familum-workspace,.tc-dialog,.tb-appearance,.ma-dialog,.mso-dialog,.cp-mail-dialog) :is(input:not([type=checkbox]):not([type=radio]):not([type=color]),select,textarea){background:#152235!important;color:#e5edf9!important;border-color:#51647e!important}
html[data-familum-night=true] :is(#app.familum-workspace,.tc-dialog,.tb-appearance,.ma-dialog,.mso-dialog,.cp-mail-dialog) :is(.button.secondary,.button.ghost,.btn:not(.primary)){background:#2b3b52!important;color:#e1ebfb!important;border-color:#4c607e!important}
html[data-familum-night=true] :is(.ms-inbox,.fm-inbox,.mso-workspace){--mail-line:#3b4b62;--mail-ink:#e5edf9;--mail-muted:#a5b5cc;color:#e5edf9!important}
html[data-familum-night=true] :is(.fm-mail-split,.fm-reader,.fm-mail-row,.ms-message-column,.ms-list-heading,.ms-reader-toolbar,.ma-actions,.ms-inbox-search label,.ms-status-panel,.fm-assign-form,.fm-upload,.fm-existing,.fm-assignment-result,.ms-mail-tools,.ms-source-menu,.mso-list,.mso-draft){background:#1d293b!important;color:#e5edf9!important;border-color:#3b4b62!important}
html[data-familum-night=true] :is(.fm-mail-row.selected,.fm-mail-row:hover,.ms-sender-avatar,.fm-count){background:#304565!important;color:#f0f6ff!important}
html[data-familum-night=true] :is(.fm-reader-header h2,.fm-mail-subject,.fm-mail-meta strong,.fm-message-body,.ms-sender-line strong,.ms-inbox-toolbar h1,.ms-inbox-tabs button,.ms-mail-tools button,.ms-inbox-search input){color:#e5edf9!important}
html[data-familum-night=true] :is(.fm-mail-meta time,.fm-mail-excerpt,.ms-inbox-state,.ms-mail-headers,.ms-sender-line span,.ms-inbox-mailboxes,.fm-eyebrow,.fm-footnote,.tc-dialog small,.ma-dialog small,.mso-dialog small){color:#b0bfd5!important}
html[data-familum-night=true] :is(.ms-inbox-tabs button[aria-pressed=true],.ms-mail-tools button[aria-pressed=true]){color:#9cc4ff!important;border-color:#78aeff!important}
html[data-familum-night=true] :is(.ma-dialog pre,.mso-dialog pre,.cp-admin-list article,.cp-admin-link,.cp-send-results article,.dc-message,.dc-compose){background:#223047!important;color:#e5edf9!important;border-color:#3b4b62!important}
html[data-familum-night=true] :is(.ms-refresh,.ms-source-actions button,.ms-source-menu summary){background:#263348!important;color:#c6daf6!important;border-color:#51647e!important}
html[data-familum-night=true] a:not(.button):not(.tb-card):not(.fm-primary-nav>a){color:#9ec7ff}
html[data-familum-night=true] :is(.ma-dialog,.tc-dialog,.tb-appearance,.cp-mail-dialog)::backdrop{background:#050b15b3}
html[data-familum-night=true] #app.familum-workspace .developer-chat-trigger{background:#294d7c!important;color:#bcd8ff!important;border-color:#41688e!important}
html[data-familum-night=true] :is(.tb-appearance,.tc-dialog,.ma-dialog,.mso-dialog,.cp-mail-dialog) :is(h1,h2,h3,h4,label,legend,strong,summary){color:#e5edf9!important}
html[data-familum-night=true] :is(.tb-appearance,.tc-dialog,.ma-dialog,.mso-dialog,.cp-mail-dialog) :is(p,small){color:#b8c8df!important}
html[data-familum-night=true] :is(.tb-appearance,.tc-dialog)>header{background:#223047!important;color:#e5edf9!important}
html[data-familum-night=true] :is(.tb-appearance,.tc-dialog) header button{background:#30435f!important;color:#e5edf9!important;border-color:#4f6380!important}
html[data-familum-night=true] .tb-wallpapers button{background:#293a53!important;color:#dceaff!important;border-color:#4e6585!important}
html[data-familum-night=true] #app.familum-workspace .studio-account>div{background:#223047!important;color:#e5edf9!important;border-color:#4b5e77!important}
html[data-familum-night=true] #app.familum-workspace :is(.studio-account>div>strong,.studio-account>div>small){color:inherit!important}
html[data-familum-night=true] #app.familum-workspace :is(h1,h2,h3,h4,label,legend,dt){color:#e5edf9!important}
html[data-familum-night=true] :is(#app.familum-workspace,.ca-delivery) :is(.panel,.card,.workspace-card,.fm-bank-table,.fm-bank-row,.fm-case-list,.fm-tool,.dc-chat,.dc-thread,.dc-message,.dc-compose,.mo-history,.mo-editor,.mo-history-row,.mo-detail-heading,.mo-review,.mo-signature,.mo-body,.mo-target-results,.mo-state){background:#1d293b!important;color:#e5edf9!important;border-color:#3b4b62!important}
html[data-familum-night=true] :is(#app.familum-workspace,.ca-delivery) :is(.mo-workspace,.dc-chat){color:#e5edf9!important}
html[data-familum-night=true] :is(#app.familum-workspace,.ca-delivery) :is(.mo-workspace,.dc-chat) :is(p,small,span,time,pre){color:inherit}
html[data-familum-night=true] .tb-list[style*="background-color"] :is(h1,h2,h3,h4,label){color:inherit!important}
html[data-familum-night=true] #app.familum-workspace .fm-error{color:#ffacaa!important}

/* Keep interaction states and the complete personal chat on dark surfaces. */
html[data-familum-night=true] #app.familum-workspace :is(.dc-messages,.dc-image-select,.dc-image-queue>div,.dc-image-gallery>a,.dc-older,.tb-status-line,.tb-status-line details p,.tb-list>header form,.tb-add form,.tb-add-list form,.fm-board-panel,.fm-other-views a){background:#223047!important;color:#e5edf9!important;border-color:#465873!important}
html[data-familum-night=true] #app.familum-workspace .dc-person{background:#254369!important;border-color:#42648d!important}
html[data-familum-night=true] #app.familum-workspace .dc-connection{background:#3c3021!important;color:#f3d7a2!important;border-color:#735b35!important}
html[data-familum-night=true] #app.familum-workspace .dc-connection.dc-online{background:#193c32!important;color:#b8e4d1!important;border-color:#3d6b59!important}
html[data-familum-night=true] #app.familum-workspace :is(.dc-heading p,.dc-message header,.dc-message header strong,.dc-message small,.dc-work,.dc-empty,.dc-compose small){color:#b7c9e1!important}
html[data-familum-night=true] #app.familum-workspace :is(.studio-topbar,.studio-rail,.fm-icon-rail,.dc-chat,.fm-board-panel,.tb-status-line) :is(button,.button,summary:not(.studio-avatar)){background:#26374f!important;color:#e5edf9!important;border-color:#50637f!important}
html[data-familum-night=true] #app.familum-workspace :is(.fm-primary-nav>a,.fm-account-links>a,.studio-rail a,.fm-icon-rail a,.fm-header-settings,.studio-topbar button,.studio-topbar summary,.studio-rail button,.dc-image-select,.dc-chat button,.fm-board-panel button,.fm-board-panel summary):is(:hover,:focus-visible,:active){background:#334a69!important;color:#f0f5ff!important;border-color:#7a9ac3!important}
html[data-familum-night=true] #app.familum-workspace :is(.fm-primary-nav>a[aria-current=page],.studio-rail a.active,.fm-icon-rail a.active,.dc-compose button[type=submit]){background:#205eb4!important;color:#f0f5ff!important;border-color:#6394d6!important}
html[data-familum-night=true] #app.familum-workspace :is(a,button,summary,.dc-image-select):focus-visible,html[data-familum-night=true] #app.familum-workspace .dc-image-select:focus-within{outline:2px solid #a1c5ff!important;outline-offset:2px}
html[data-familum-night=true] #app.familum-workspace :is(.dc-image-select,.dc-chat button):active{background:#3d5779!important}
html[data-familum-night=true] #app.office-app.studio-shell.workspace-friendly.familum-workspace .fm-board-select select{background:transparent!important;border-color:transparent!important;box-shadow:none!important;color:#e5edf9!important}
html[data-familum-night=true] #app.familum-workspace .fm-board-select select:focus-visible{outline:2px solid #a1c5ff!important;outline-offset:2px}
html[data-familum-night=true] #app.familum-workspace .fm-board-select option,html[data-familum-night=true] #app.familum-workspace .fm-board-select optgroup{background:#223047!important;color:#e5edf9!important}
html[data-familum-night=true] #app.familum-workspace .fm-board-toolbar{background:transparent!important;box-shadow:none!important}
html[data-familum-night=true] #app.familum-workspace .test-workspace-notice{background:#24364c!important;color:#bbcee6!important;border-color:#425974!important}

/* Card discussions, nested dialogs and their interaction states use the same palette. */
html[data-familum-night=true] :is(.tc-content,.tc-discussion,.tc-columns,.tc-bubble,.tc-menu>div,.tc-destination,.tc-reply-draft,.tc-bubble blockquote,.tc-contact-summary,.tc-attachment-options,.tc-filetype,.tc-comment-confirm,.tc-preview,.tc-preview>header){background:#1d293b!important;color:#e5edf9!important;border-color:#465873!important}
html[data-familum-night=true] :is(.tc-bubble,.tc-destination,.tc-reply-draft,.tc-bubble blockquote,.tc-filetype){background:#26374f!important}
html[data-familum-night=true] :is(.tc-dialog,.tc-preview,.tc-comment-confirm) :is(button,summary){background:#26374f!important;color:#dce9fb!important;border-color:#526985!important}
html[data-familum-night=true] :is(.tc-dialog,.tc-preview,.tc-comment-confirm) :is(button,summary):is(:hover,:focus-visible,:active){background:#354f70!important;color:#f2f6ff!important}
html[data-familum-night=true] :is(.tc-dialog,.tc-comment-confirm) :is(.button.primary,.primary){background:#205eb4!important;color:#f0f5ff!important;border-color:#6394d6!important}
html[data-familum-night=true] .tc-dialog :is(.tc-bubble p,.tc-comment strong,.tc-activity strong,.tc-description-text,.tc-rubrum,.tc-contact-summary dd){color:#e5edf9!important}
html[data-familum-night=true] .tc-dialog :is(.tc-comment time,.tc-activity time,.tc-muted,.tc-activity p,.tc-comment-actions button,.tc-drop-hint){color:#b4c5dc!important}
html[data-familum-night=true] .tc-dialog .tc-avatar{background:#38577e!important;color:#e4eeff!important}
html[data-familum-night=true] .tc-dialog :is(textarea,input)::placeholder{color:#acbfd9!important;opacity:1}
html[data-familum-night=true] .tc-status:not(:empty){background:#3c3021!important;color:#f3d7a2!important}
html[data-familum-night=true] #app.familum-workspace :is(.fm-mail-list,.fm-startboard-form,.fm-launch-note,.fm-tool-icon,.fm-bank table,.fm-bank thead,.fm-bank tbody,.fm-bank tr,.fm-bank th,.fm-bank td,.fm-bank>div,.fm-mail-list>header){background:#223047!important;color:#dbe8fa!important;border-color:#465873!important}
html[data-familum-night=true] #app.familum-workspace :is(.fm-startboard-form,.fm-launch-note,.fm-bank) :is(p,small,strong,span,th,td){color:#dbe8fa!important}
html[data-familum-night=true] #app.familum-workspace .fm-bank-row>details{background:#223047!important;color:#dbe8fa!important;border-color:#465873!important}
html[data-familum-night=true] .ms-source-heading [data-ms-source-count]{background:#304565!important;color:#c6defe!important}

html[data-familum-night=true] :is(.ms-reader-date,.ms-message-details,.ms-mail-headers dt,.ms-mail-headers dd,.ms-sender-identity>span,.ms-mail-attachments p){color:#b8c8df!important}html[data-familum-night=true] .ms-header-toggle{color:#9cc4ff!important}html[data-familum-night=true] .ms-reader-toolbar>strong{color:#e5edf9!important}

html[data-familum-night=true] #app.familum-workspace .ms-inbox :is(.ms-attachment,.ms-file-icon){background:#24354d!important;color:#e5edf9!important;border-color:#49617f!important}html[data-familum-night=true] #app.familum-workspace .ms-inbox :is(.ms-attachment strong,.ms-attachment button,.ms-attachment a,.ms-mail-attachments h3){color:#e5edf9!important}html[data-familum-night=true] #app.familum-workspace .ms-inbox :is(.ms-attachment small,.ms-row-content>small){color:#b8c8df!important}
html[data-familum-night=true] #app.familum-workspace .ma-actions .button{background:#2b3b52!important;color:#e5edf9!important;border-color:#526b8b!important}html[data-familum-night=true] #app.familum-workspace .ma-actions .button:first-child{background:#1761bd!important;color:#fff!important}html[data-familum-night=true] #app.familum-workspace .ma-actions .button:hover{background:#365479!important}html[data-familum-night=true] #app.familum-workspace .ma-actions .button:disabled{background:#2b3b52!important;color:#aebed5!important;opacity:1}html[data-familum-night=true] #app.familum-workspace [data-ms-actions]{background:#1d293b!important}

/* Screen-only contrast fixes: badges, full deadline report and shared workspace text. */
@media screen{
html[data-familum-night=true] #app.familum-workspace .fm-nav-count{background:#304565!important;color:#f0f6ff!important}
html[data-familum-night=true] #app.familum-workspace :is(.fm-heading p,.fm-tool p,.fm-hero-note span,.fm-hero-note strong,.fm-ai-choice p,.page-heading .lead,.eyebrow,.workspace-register-actions>span){color:#b8c8df!important}
html[data-familum-night=true] #app.familum-workspace :is(.ms-inbox-mailboxes summary,.fm-upload summary,.fm-bank summary){color:#c6defe!important}
html[data-familum-night=true] #app.familum-workspace .fm-ai-choice{background:#223047!important;border-color:#465873!important}
html[data-familum-night=true] #app.familum-workspace .workspace-case-picker :is(strong,span,small){color:#dbe8fa!important}
html[data-familum-night=true] .tc-dialog .tc-section-title span{color:#b8c8df!important}
html[data-familum-night=true] #app.familum-workspace .deadline-report{color:#e5edf9!important}
html[data-familum-night=true] #app.familum-workspace .deadline-report :is(thead,.deadline-report-followups){background:#223047!important;color:#e5edf9!important;border-color:#607b9f!important}
html[data-familum-night=true] #app.familum-workspace .deadline-report :is(th,td,tr){border-color:#465873!important}
html[data-familum-night=true] #app.familum-workspace .deadline-report :is(th,small,.deadline-report-heading p,.deadline-report-scope,.deadline-report-footnote){color:#b8c8df!important}
html[data-familum-night=true] #app.familum-workspace .deadline-report td::before{color:#b8c8df!important}
html[data-familum-night=true] #app.familum-workspace .deadline-report .deadline-state{background:#304565!important;color:#e5edf9!important}
html[data-familum-night=true] #app.familum-workspace .deadline-report [data-deadline-status=provisional] .deadline-state{background:#4b3a20!important;color:#ffe3a7!important}
html[data-familum-night=true] #app.familum-workspace .deadline-report-error{background:#482a30!important;color:#ffd2d0!important;border-color:#ee9996!important}
}
@media screen{
html[data-familum-night=true] #app.familum-workspace{--text:#e5edf9!important;--ink:#e5edf9!important;--muted:#b8c8df!important;--surface:#1d293b!important;--paper:#223047!important;--line:#465873!important}
html[data-familum-night=true] #app.familum-workspace :is(.workspace-case-choices a,.fm-case-status,.fm-status-top,.fm-status-item,.office-case-context,.office-case-context summary){background:#223047!important;color:#e5edf9!important;border-color:#465873!important}
html[data-familum-night=true] #app.familum-workspace :is(.workspace-case-choices a:hover,.workspace-case-choices a:focus-visible){background:#304565!important}
html[data-familum-night=true] #app.familum-workspace .fm-status-grid{background:#465873!important}
html[data-familum-night=true] #app.familum-workspace :is(.workspace-case-back,.panel-description,.field-help,.day-empty p,.fm-status-item>span,.fm-status-top button){color:#b8c8df!important}
html[data-familum-night=true] #app.familum-workspace .tabs .tab{background:#223047!important;color:#b8c8df!important;border-color:#465873!important}
html[data-familum-night=true] #app.familum-workspace .tabs .tab.active{background:#205eb4!important;color:#fff!important;border-color:#7bb2ff!important}
html[data-familum-night=true] #app.familum-workspace :is(.billing-error,.fm-status-read-error){background:#482a30!important;color:#ffd2d0!important;border-color:#ee9996!important}
html[data-familum-night=true] #app.familum-workspace :is(.billing-notice,.fm-time-yellow){background:#3c3021!important;color:#f3d7a2!important;border-color:#92703e!important}
html[data-familum-night=true] #app.familum-workspace :is(.billing-finance-pause,.fm-time-orange){background:#4c3321!important;color:#ffcf9e!important;border-color:#b78358!important}
html[data-familum-night=true] #app.familum-workspace :is(.fm-time-red,.fm-finance-alert){background:#482a30!important;color:#ffd2d0!important}
}
@media screen{
html[data-familum-night=true] #app.familum-workspace .fm-outbox-record{background:#223047!important;color:#e5edf9!important;border-color:#465873!important}
html[data-familum-night=true] #app.familum-workspace .fm-outbox-record :is(strong,small,span){color:#dbe8fa!important}
html[data-familum-night=true] #app.familum-workspace .fm-outbox-record .fm-outbox-state{color:#ffe3a7!important}
html[data-familum-night=true] #app.familum-workspace .fm-outbox-record .fm-outbox-state.confirmed{color:#b8e4d1!important}
html[data-familum-night=true] #app.familum-workspace :is(.billing-totals strong,.billing-card-head strong){color:#e5edf9!important}
}
@media screen{
html[data-familum-night=true] #app.familum-workspace :is(.fm-source-note,.fm-empty p){color:#b8c8df!important}
html[data-familum-night=true] #app.familum-workspace .fm-inbox-toolbar>div{background:#223047!important;border-color:#465873!important}
html[data-familum-night=true] #app.familum-workspace .fm-inbox-toolbar>div>button{background:transparent!important;color:#c6defe!important}
html[data-familum-night=true] #app.familum-workspace .fm-inbox-toolbar>div>button[aria-pressed=true]{background:#205eb4!important;color:#fff!important}
html[data-familum-night=true] #app.familum-workspace .fm-inbox-toolbar>div>button:is(:hover,:focus-visible){background:#354f70!important;color:#fff!important}
html[data-familum-night=true] .tb-list:not([style*="background-color"]) :is(.tb-empty,header>span){color:#b8c8df!important}
}
@media screen{
html[data-familum-night=true] #app.familum-workspace .deadline-report-heading>div{min-width:0}
html[data-familum-night=true] #app.familum-workspace .deadline-report-heading>strong{flex:0 0 auto;white-space:nowrap}
}
/* A printed deadline list stays a black-on-white document regardless of device time. */
@media screen{
/* Personal mail has its own composer and review surfaces, separate from the legacy outbox. */
html[data-familum-night=true] :is(#app.familum-workspace,.ca-delivery) .mo-workspace{--mo-line:#465873;--mo-muted:#b8c8df}
html[data-familum-night=true] :is(#app.familum-workspace,.ca-delivery) :is(.mo-detail,.mo-workspace fieldset,.mo-signature pre){background:#1d293b!important;color:#e5edf9!important;border-color:#465873!important}
html[data-familum-night=true] :is(#app.familum-workspace,.ca-delivery) .mo-workspace>[data-mo-setup]:not(:empty){background:#24364c!important;color:#d3e3fa!important;border-color:#526b8b!important}
html[data-familum-night=true] :is(#app.familum-workspace,.ca-delivery) :is(.mo-empty,.mo-heading p,.mo-eyebrow,.mo-workspace small,.mo-history-row time,.mo-muted,.mo-review-addresses dt,.mo-workspace [data-mo-expiry]){color:#b8c8df!important}
html[data-familum-night=true] :is(#app.familum-workspace,.ca-delivery) :is(.mo-signature,.mo-state>strong,.mo-history-row strong,.mo-history-row span){color:#d3e3fa!important}
html[data-familum-night=true] :is(#app.familum-workspace,.ca-delivery) .mo-mail-symbol{background:#304565!important;color:#bcd8ff!important}
html[data-familum-night=true] :is(#app.familum-workspace,.ca-delivery) .mo-tabs{border-color:#465873!important}
html[data-familum-night=true] :is(#app.familum-workspace,.ca-delivery) .mo-tabs button{color:#b8c8df!important}
html[data-familum-night=true] :is(#app.familum-workspace,.ca-delivery) .mo-tabs button[aria-pressed=true]{color:#bcd8ff!important;border-color:#8ab8ff!important}
html[data-familum-night=true] :is(#app.familum-workspace,.ca-delivery) :is(.mo-tabs button,.mo-history-row):is(:hover,:focus-visible,.selected){background:#304565!important;color:#f0f6ff!important}
html[data-familum-night=true] :is(#app.familum-workspace,.ca-delivery) .mo-history-row.selected{box-shadow:inset 3px 0 #8ab8ff!important}
html[data-familum-night=true] :is(#app.familum-workspace,.ca-delivery) .mo-workspace :is(.button.secondary,.button.ghost):is(:hover,:focus-visible,:active){background:#354f70!important;color:#f0f6ff!important;border-color:#8ab8ff!important}
html[data-familum-night=true] :is(#app.familum-workspace,.ca-delivery) .mo-workspace :is(button,input,select,textarea):focus-visible{outline:2px solid #a1c5ff!important;outline-offset:3px}
html[data-familum-night=true] :is(#app.familum-workspace,.ca-delivery) .mo-workspace :is(input,textarea)::placeholder{color:#acbfd9!important;opacity:1}
html[data-familum-night=true] :is(#app.familum-workspace,.ca-delivery) .mo-workspace :is(.mo-warning,.mo-pending){background:#3c3021!important;color:#ffe3a7!important;border-color:#92703e!important}
html[data-familum-night=true] :is(#app.familum-workspace,.ca-delivery) .mo-workspace :is(.mo-warning,.mo-pending) :is(p,small,strong){color:#ffe3a7!important}
html[data-familum-night=true] :is(#app.familum-workspace,.ca-delivery) .mo-workspace :is(.mo-file-choice,.mo-reviewed-files>div){border-color:#465873!important}
}
@media print{
html[data-familum-night=true]:has(body.printing-deadlines){color-scheme:light}
html[data-familum-night=true] body.printing-deadlines #app.familum-workspace,
html[data-familum-night=true] body.printing-deadlines #app.familum-workspace :is(.studio-main,.studio-page,.deadline-report,.deadline-print-content,.deadline-print-content *){background:#fff!important;color:#111!important;border-color:#aaa!important;box-shadow:none!important}
html[data-familum-night=true] body.printing-deadlines :is(.fm-primary-nav,.office-bottom-nav,.studio-rail,.test-workspace-notice){display:none!important}
}

/* Secondary workspaces share the night palette even when loaded after the shell. */
@media screen{
html[data-familum-night=true] #app.familum-workspace :is(.ms-setup,.trello-layout){color:#e5edf9!important}
html[data-familum-night=true] #app.familum-workspace :is(.ms-steps>li,.trello-layout,.trello-preview .dd-formatted){background:#1d293b!important;color:#e5edf9!important;border-color:#465873!important}
html[data-familum-night=true] #app.familum-workspace :is(.ms-state,.trello-card.selected,.trello-card:hover,.trello-card:focus-visible){background:#2b3d57!important;color:#e5edf9!important;border-color:#526b8b!important}
html[data-familum-night=true] #app.familum-workspace :is(.ms-eyebrow,.ms-note,.trello-select>p,.trello-commit p,.trello-card small){color:#b8c8df!important}
html[data-familum-night=true] #app.familum-workspace :is(.ms-error,.form-error){color:#ffb6b2!important}
html[data-familum-night=true] #app.familum-workspace :is(.ms-result,.trello-success){background:#193c32!important;color:#d3f1e4!important;border-color:#5b9f82!important}
html[data-familum-night=true] :is(.feedback-workspace,.feedback-dialog){--fb-ink:#e5edf9;--fb-muted:#b8c8df;--fb-line:#465873;--fb-lime:#b4d4ff;color:#e5edf9!important}
html[data-familum-night=true] :is(.feedback-dialog,.feedback-item,.feedback-empty,.feedback-discard,.feedback-form textarea[readonly]){background:#1d293b!important;color:#e5edf9!important;border-color:#465873!important}
html[data-familum-night=true] :is(.feedback-workspace,.feedback-dialog) :is(button,a.button,.feedback-status,.feedback-categories input:checked+span){background:#2b3d57!important;color:#e5edf9!important;border-color:#526b8b!important}
html[data-familum-night=true] :is(.feedback-workspace,.feedback-dialog) :is(.feedback-primary,.feedback-check){background:#205eb4!important;color:#fff!important;border-color:#6394d6!important}
html[data-familum-night=true] :is(.feedback-workspace,.feedback-dialog) :is(.feedback-original,.feedback-success h3,.feedback-message-label,.feedback-categories legend){color:#e5edf9!important}
html[data-familum-night=true] :is(.feedback-alert,.feedback-discard,.feedback-notice){background:#3c3021!important;color:#ffe3a7!important;border-color:#92703e!important}
html[data-familum-night=true] .feedback-pending{color:#ffe3a7!important}
html[data-familum-night=true] .feedback-status-resolved{background:#193c32!important;color:#c4eedc!important;border-color:#5b9f82!important}
html[data-familum-night=true] .feedback-dialog textarea{background:#152235!important;color:#e5edf9!important;border-color:#51647e!important}
html[data-familum-night=true] .feedback-dialog.is-covered::after{background:#223047!important;color:#e5edf9!important}
html[data-familum-night=true] :is(.feedback-dialog,.feedback-workspace) :is(button,a):is(:hover,:focus-visible){background:#354f70!important;color:#fff!important}
html[data-familum-night=true] :is(.feedback-dialog,.feedback-workspace) :is(button,a,textarea):focus-visible,
html[data-familum-night=true] .feedback-categories input:focus-visible+span{outline:2px solid #a1c5ff!important;outline-offset:3px}
}
@media screen{
html[data-familum-night=true] #app.familum-workspace .lw-workspace{--lw-ink:#e5edf9;--lw-line:#465873;--lw-lime:#b4d4ff;color:#e5edf9!important}
html[data-familum-night=true] #app.familum-workspace :is(.lw-column,.lw-detail,.lw-workspace button,.lw-message){background:#223047!important;color:#e5edf9!important;border-color:#465873!important}
html[data-familum-night=true] #app.familum-workspace :is(.lw-card,.lw-primary,.lw-mobile-tabs button[aria-pressed=true]){background:#304565!important;color:#e5edf9!important}
html[data-familum-night=true] #app.familum-workspace :is(.lw-kicker,.lw-heading p,.lw-note,.lw-card span,.lw-card small,.lw-date,.lw-empty,.lw-cases p,.lw-column h3 span){color:#b8c8df!important}
html[data-familum-night=true] #app.familum-workspace .lw-workspace button:is(:hover,:focus-visible){background:#354f70!important;color:#fff!important}
html[data-familum-night=true] #app.familum-workspace .lw-workspace :focus-visible{outline:2px solid #a1c5ff!important;outline-offset:3px}
html[data-familum-night=true] #app.familum-workspace :is(#cloud-backup-root>.panel>p,.backup-summary dt,.backup-history small){color:#b8c8df!important}
html[data-familum-night=true] #app.familum-workspace .backup-history p{color:#ffe3a7!important}
}
@media screen{
/* Reassert semantic colours at the application boundary: the day shell defines its own variables. */
html[data-familum-night=true] #app.familum-workspace{--surface:#1d293b;--surface-alt:#263348;--paper:#1d293b;--line:#465873;--border:#465873;--text:#e5edf9;--ink:#e5edf9;--muted:#b8c8df;--text-muted:#b8c8df;--green-soft:#2b3d57}
html[data-familum-night=true] #app.familum-workspace :is(.workspace-home-guide,.workspace-home-due,.workspace-home-cases-empty,.workspace-home-provisional,.welcome-heading,.guide-rail,.guide-section-symbol,.guide-step>span,.guide-step.selected,.guide-step:hover,.empty-state,.empty-icon,.rights-recipient,.case-closure,.closure-summary article,.closure-readiness,.cd-paper,.sickness-panel,.sickness-context,.sickness-status,.ch-preparation,.ch-empty,.case-workflow blockquote,.operative-ai,.oa-draft,.oa-sources pre,.oa-preview pre,.operative-ai .oa-file-step){background:#1d293b!important;color:#e5edf9!important;border-color:#465873!important}
html[data-familum-night=true] #app.familum-workspace :is(.workspace-home-eyebrow,.workspace-home-intro,.workspace-home-shortcuts span,.workspace-home-cases span,.page-heading>div>p,.sickness-eyebrow,.sickness-muted,.sickness-context small,.closure-footnote,.closure-preview,.closure-dispatch,.rp-kicker,.rp-muted){color:#b8c8df!important}
html[data-familum-night=true] #app.familum-workspace .guide-open{color:#b4d4ff!important}
html[data-familum-night=true] #app.familum-workspace :is(.badge,.guide-step.seen:not(.selected)>span){background:#2b3d57!important;color:#d3e3fa!important;border-color:#526b8b!important}
html[data-familum-night=true] #app.familum-workspace .badge.good{background:#193c32!important;color:#c4eedc!important}
html[data-familum-night=true] #app.familum-workspace :is(.button:not(.primary):not(.danger),.sickness-workspace button,.ch-workspace button,.case-closure button){background:#2b3d57!important;color:#e5edf9!important;border-color:#526b8b!important}
html[data-familum-night=true] #app.familum-workspace :is(.case-team-warning,.sickness-alert,.sickness-notice,.rp-alert,.rp-notice,.closure-warning,.bea-error,.cd-alert,.ch-message,.calendar-sync-warning,.calendar-sync-note,.calendar-sync-request,.case-workflow .wf-alert,.oa-error,.oa-notice,.cp-admin-message,.cp-admin-pending,.billing-error,.billing-finance-pause){background:#3c3021!important;color:#ffe3a7!important;border-color:#92703e!important}
}

@media screen {
 html[data-familum-night="true"] #app.familum-workspace .workspace-home { --wh-ink:#e5edf9;--wh-muted:#acbfd9;--wh-line:#40556f; }
 html[data-familum-night="true"] #app.familum-workspace :is(.welcome-heading p,.workspace-home-guide p,.workspace-home-due-empty p) { color:#acbfd9!important; }
 html[data-familum-night="true"] #app.familum-workspace :is(.office-case-list>a>span,.workspace-home-guide progress) { background:#2b405c!important;color:#e5edf9!important; }
 html[data-familum-night="true"] #app.familum-workspace .workspace-home-guide progress::-webkit-progress-bar { background:#2b405c; }
 html[data-familum-night="true"] #app.familum-workspace .workspace-home-guide progress::-webkit-progress-value { background:#89b8ff; }
}

@media screen {
html[data-familum-night=true] #app.familum-workspace :is(.review-callout,.employee-scope,.tt-connection,.tt-notice,.tt-contacts article,.tt-call-grid,.tt-call-list,.tt-summary,.tt-proposals blockquote,.tt-fax-grid>section,.tt-confirm>section,.consultation-sources pre){background:#1d293b!important;color:#e5edf9!important;border-color:#465873!important}
html[data-familum-night=true] #app.familum-workspace :is(.metric-value,.consultation-sources summary,.telephone-tools,.ch-workspace){color:#e5edf9!important}
html[data-familum-night=true] #app.familum-workspace :is(.metric-scope,.metric-observations dt,.metric-observations dd,.metric-asof,.metric-affected>span,.tt-header p,.tt-tabs>span,.tt-contact-heading p,.tt-call-list span,.tt-call-list small,.tt-detail-title p,.tt-caption,.tt-transcript time,.tt-orders small,.tt-fax-row p,.ch-kicker,.ch-heading p,.ch-status,.ch-card>p,.ch-side p,.ch-task span,.ch-task small,.ch-empty p,.oa-header p,.oa-step-label,.oa-help,.oa-publish-hint,.oa-draft span,.oa-draft small){color:#b8c8df!important}
html[data-familum-night=true] #app.familum-workspace :is(.tt-state,.tt-call-list button.selected,.tt-tabs button,.cd-folder-tree button[aria-current=true]){background:#2b3d57!important;color:#e5edf9!important;border-color:#526b8b!important}
html[data-familum-night=true] #app.familum-workspace .tt-tabs button[aria-selected=true]{color:#b4d4ff!important;border-bottom-color:#89b8ff!important}
html[data-familum-night=true] #app.familum-workspace .cd-folder-tree button{background:#263348!important;color:#e5edf9!important;border-color:#465873!important}
html[data-familum-night=true] #app.familum-workspace .cd-folder-tree button[aria-pressed=true]{background:#304565!important;border-color:#89b8ff!important}
html[data-familum-night=true] #app.familum-workspace .oa-draft:hover{background:#2b3d57!important}
html[data-familum-night=true] #app.familum-workspace .oa-draft:hover strong{color:#b4d4ff!important}
}

@media screen {
html[data-familum-night=true] #app.familum-workspace :is(.workspace-case-more>div,.pe-empty,.pe-confirmed){background:#1d293b!important;color:#e5edf9!important;border-color:#465873!important}
html[data-familum-night=true] #app.familum-workspace .pe-workspace{--pe-ink:#e5edf9;--pe-line:#465873;color:#e5edf9!important}
html[data-familum-night=true] #app.familum-workspace .pe-workspace :is(button,.pe-download){background:#2b3d57!important;color:#e5edf9!important;border-color:#526b8b!important}
html[data-familum-night=true] #app.familum-workspace :is(.pe-kicker,.pe-heading p,.pe-note,.pe-sidebar small,.pe-sidebar p){color:#b8c8df!important}
html[data-familum-night=true] #app.familum-workspace .pe-message [role=alert]{color:#ffb6b2!important}
/* The document paper has its own explicit day/night control. Keep its text readable in either mode. */
html[data-familum-night=true] #app.familum-workspace .pe-workspace:not(.pe-night) .pe-paper,
html[data-familum-night=true] #app.familum-workspace .pe-workspace:not(.pe-night) .pe-paper :is(h1,h2,h3,h4,strong,p,blockquote,span,footer){color:#242a20!important}
}

html[data-familum-night=true] .ms-source-heading .ms-inbox-tabs button{background:#24364e!important;border-color:#5f7695!important;color:#e5edf9!important}
html[data-familum-night=true] .ms-source-heading .ms-inbox-tabs button[aria-pressed=true]{background:#224e83!important;border-color:#9bc7ff!important;color:#fff!important;box-shadow:inset 0 -2px #9bc7ff}
html[data-familum-night=true] .ms-source-heading .ms-inbox-tabs button:hover{background:#354f70!important}
/* Keep the signed-out screen readable when night mode is remembered. */
body.studio-theme:has(#app > .error-page) { min-height: 100dvh; }
html[data-familum-night=true] body.studio-theme #app > .error-page h1 { color: #f2f6fd; }
html[data-familum-night=true] body.studio-theme #app > .error-page p { color: #c7d4e6; }
.ca-content{display:grid;gap:18px;overflow:auto;max-height:calc(100dvh - 90px)}.ca-paths{display:flex;gap:10px;flex-wrap:wrap}.ca-paths button,.ca-times button{min-height:44px;padding:9px 15px;border:1px solid var(--line,#ccd3df);border-radius:10px;background:var(--surface,#fff);color:var(--text,#172233);cursor:pointer}.ca-paths button[aria-pressed=true],.ca-times button[aria-pressed=true]{border-color:#315acd;background:#eaf0ff;color:#152e85}.ca-setup{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ca-setup label{display:grid;gap:6px}.ca-setup select{min-height:44px;font:inherit;padding:8px;border:1px solid var(--line,#ccd3df);border-radius:8px;background:var(--surface,#fff);color:var(--text,#172233)}.ca-setup p{grid-column:1/-1;margin:0}.ca-calendar,.ca-existing{border-top:1px solid var(--line,#ccd3df);padding-top:15px}.ca-calendar h2,.ca-existing h2{margin:0 0 12px;font-size:1.2rem}.ca-day{margin:12px 0}.ca-day h3{font-size:1rem;margin:0 0 6px}.ca-times{display:flex;flex-wrap:wrap;gap:8px}.ca-summary{font-weight:600}.ca-calendar .button{margin-top:14px}@media(max-width:640px){.ca-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0}.ca-content{max-height:calc(100dvh - 72px)}.ca-setup{grid-template-columns:1fr}.ca-setup select{font-size:16px}.ca-paths button{flex:1}.ca-calendar .button{width:100%}}
.ca-recipient{grid-column:1/-1;display:grid;gap:10px}.ca-recipient h2{margin:0;font-size:1.2rem}.ca-recipient p{margin:0}.ca-email-list{display:grid;gap:9px}.ca-email-row{display:flex;align-items:end;gap:8px}.ca-email-row label{flex:1;min-width:0}.ca-email-row button,.ca-recipient>[data-ca-add]{min-height:44px;justify-self:start;padding:8px 12px;border:1px solid var(--line,#ccd3df);border-radius:8px;background:var(--surface,#fff);color:var(--text,#172233)}.ca-setup input,.ca-lawyer select{width:100%;box-sizing:border-box;min-height:44px;padding:8px;border:1px solid var(--line,#ccd3df);border-radius:8px;background:var(--surface,#fff);color:var(--text,#172233);font:inherit}.ca-lawyer{display:grid;gap:6px;max-width:380px}html[data-familum-night=true] .ca-paths button[aria-pressed=true]{background:#304565;color:#f0f6ff;border-color:#8ab8ff}@media(max-width:640px){.ca-setup input,.ca-lawyer select{font-size:16px}.ca-email-row{align-items:stretch;flex-wrap:wrap}.ca-email-row button{width:100%}}
.ac-layout{display:grid;grid-template-columns:minmax(250px,1fr) minmax(180px,.7fr);gap:20px;align-items:start}.ac-month,.ac-slots{border:1px solid var(--line,#ccd3df);border-radius:14px;padding:14px;background:var(--surface,#fff)}.ac-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.ac-head button{width:42px;height:42px;border:1px solid var(--line,#ccd3df);border-radius:9px;background:transparent;color:inherit;font-size:26px;cursor:pointer}.ac-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;text-align:center}.ac-weekday{font-size:12px;color:var(--muted,#667085);padding:7px 0}.ac-grid button{aspect-ratio:1;min-height:36px;border:0;border-radius:9px;background:transparent;color:inherit;display:grid;place-content:center;cursor:pointer}.ac-grid button:disabled{opacity:.38;cursor:default}.ac-grid button[aria-pressed=true]{background:#315acd;color:#fff}.ac-grid button i{width:4px;height:4px;border-radius:50%;background:#315acd;margin:1px auto}.ac-grid button[aria-pressed=true] i{background:#fff}.ac-slots{display:grid;gap:8px}.ac-slots h3{font-size:16px;margin:0 0 4px}.ac-slots button{min-height:44px;border:1px solid #315acd;border-radius:9px;background:transparent;color:#315acd;font:inherit;cursor:pointer}.ac-slots button[aria-pressed=true]{background:#315acd;color:#fff}@media(max-width:700px){.ac-layout{grid-template-columns:1fr}.ac-month,.ac-slots{padding:12px}}

/* Card appointments: self-contained, readable on small screens and in night mode. */
.ca-dialog{--ca-bg:#f4f6f9;--ca-panel:#fff;--ca-ink:#17243a;--ca-muted:#65748b;--ca-line:#d9e0ea;--ca-accent:#2457b6;--ca-soft:#edf3ff;--ca-input:#fff;box-sizing:border-box;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:var(--ca-bg);color:var(--ca-ink);font:16px/1.5 var(--font-ui,system-ui,sans-serif);overflow:hidden;display:flex;flex-direction:column}
.ca-dialog :is(button,input){font:inherit}.ca-dialog button{cursor:pointer}.ca-dialog button:disabled{cursor:not-allowed;opacity:.55}.ca-topbar{flex:none;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:64px;padding:10px max(20px,calc((100vw - 900px)/2));box-sizing:border-box;border-bottom:1px solid var(--ca-line);background:var(--ca-panel)}.ca-brand{font-weight:750;font-size:20px;letter-spacing:-.04em;white-space:nowrap}.ca-brand span{font-weight:450;font-size:13px;letter-spacing:0;color:var(--ca-muted)}.ca-close{min-height:42px;padding:8px 12px;border:1px solid var(--ca-line);border-radius:10px;background:transparent;color:var(--ca-ink);font-size:13px!important}.ca-close span{font-size:20px;line-height:0;vertical-align:-2px;margin-left:4px}.ca-content{display:block;flex:1;min-height:0;max-height:none;overflow:auto;padding:28px 20px 64px;box-sizing:border-box;scrollbar-gutter:stable}.ca-content>*{max-width:860px;margin-left:auto;margin-right:auto}.ca-intro{margin-bottom:22px}.ca-eyebrow{font-size:11px;font-weight:750;letter-spacing:.14em;color:var(--ca-accent)}.ca-intro h1{margin:4px 0 7px;font-size:clamp(27px,3vw,36px);letter-spacing:-.035em;line-height:1.15;color:var(--ca-ink)}.ca-intro p{margin:0;color:var(--ca-muted);font-size:14px}.ca-panel{box-sizing:border-box;margin-top:14px;padding:22px;border:1px solid var(--ca-line);border-radius:16px;background:var(--ca-panel);box-shadow:0 5px 24px #16253d0a}.ca-section-head{display:flex;align-items:flex-start;gap:12px;margin-bottom:18px}.ca-step{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:50%;background:var(--ca-soft);color:var(--ca-accent);font-weight:750;font-size:13px}.ca-section-head>div{min-width:0}.ca-section-head h2{margin:0;color:var(--ca-ink);font-size:18px;line-height:1.25;letter-spacing:-.02em}.ca-section-head p{margin:4px 0 0;color:var(--ca-muted);font-size:13px;line-height:1.5}.ca-dialog label{display:grid;gap:6px;min-width:0;color:var(--ca-ink);font-size:13px;font-weight:650}.ca-dialog input{display:block;width:100%;min-width:0;min-height:46px;box-sizing:border-box;padding:9px 12px;border:1px solid var(--ca-line);border-radius:10px;background:var(--ca-input);color:var(--ca-ink);font-size:16px;line-height:1.35}.ca-dialog input:focus-visible,.ca-dialog button:focus-visible{outline:3px solid #86adf7;outline-offset:2px}.ca-email-list{display:grid;gap:10px}.ca-email-row{display:flex;align-items:end;gap:10px;min-width:0}.ca-email-row label{flex:1}.ca-email-row button,.ca-add,.ca-secondary{min-height:44px;padding:8px 12px;border:1px solid var(--ca-line);border-radius:10px;background:var(--ca-panel);color:var(--ca-accent);font-size:13px!important;font-weight:650!important}.ca-add{margin-top:12px}.ca-add span{font-size:18px;vertical-align:-1px}.ca-contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}.ca-paths,.ca-lawyers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ca-paths button,.ca-lawyers button{min-width:0;min-height:74px;box-sizing:border-box;border:1px solid var(--ca-line);border-radius:12px;background:var(--ca-panel);color:var(--ca-ink);text-align:left;box-shadow:none}.ca-paths button{display:grid;align-content:center;gap:2px;padding:14px 16px}.ca-paths button strong,.ca-lawyers button strong{display:block;font-size:15px;line-height:1.3}.ca-paths button span,.ca-lawyers button small{display:block;color:var(--ca-muted);font-size:12px;line-height:1.45}.ca-paths button[aria-pressed=true],.ca-lawyers button[aria-pressed=true]{border-color:var(--ca-accent);background:var(--ca-soft);box-shadow:0 0 0 1px var(--ca-accent)}.ca-lawyers button{display:flex;align-items:center;gap:12px;padding:12px}.ca-avatar{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:12px;background:var(--ca-soft);color:var(--ca-accent);font-size:12px;font-weight:800}.ca-lawyers button>span:nth-child(2){min-width:0;flex:1}.ca-check{display:none;color:var(--ca-accent);font-size:21px;font-weight:700}.ca-lawyers button[aria-pressed=true] .ca-check{display:block}.ca-calendar{padding-bottom:24px}.ca-empty,.ca-loading,.ca-note{padding:16px;border-radius:11px;background:var(--ca-soft);color:var(--ca-ink);font-size:14px}.ca-loading{color:var(--ca-muted)}.ca-alert{box-sizing:border-box;padding:15px 18px;border:1px solid #e6a59e;border-radius:12px;background:#fff3f1;color:#8a2923}.ca-alert strong{display:block}.ca-alert p{margin:4px 0 12px;font-size:14px}.ca-alert button{padding:8px 12px;border:1px solid currentColor;border-radius:8px;background:transparent;color:inherit;font-size:13px}.ca-message{box-sizing:border-box;padding:12px 16px;border:1px solid var(--ca-line);border-radius:10px;background:var(--ca-soft);color:var(--ca-ink);font-size:14px}.ca-summary{margin-top:18px;color:var(--ca-ink);font-size:14px}.ca-primary{min-height:48px;margin-top:16px;padding:10px 18px;border:1px solid var(--ca-accent);border-radius:10px;background:var(--ca-accent);color:#fff;font-weight:700!important}.ca-calendar .ca-primary{margin-top:16px}.ca-dialog .ac-month,.ca-dialog .ac-slots{border-color:var(--ca-line);background:var(--ca-panel);color:var(--ca-ink)}.ca-dialog .ac-head button,.ca-dialog .ac-grid button,.ca-dialog .ac-slots button{color:var(--ca-ink)}.ca-dialog .ac-slots button{border-color:var(--ca-accent);color:var(--ca-accent)}.ca-dialog .ac-grid button[aria-pressed=true],.ca-dialog .ac-slots button[aria-pressed=true]{background:var(--ca-accent);color:#fff}.ca-dialog .ac-weekday{color:var(--ca-muted)}
html[data-familum-night=true] .ca-dialog{--ca-bg:#101923;--ca-panel:#192534;--ca-ink:#eef3fa;--ca-muted:#b2c0d2;--ca-line:#405168;--ca-accent:#8db8ff;--ca-soft:#253a56;--ca-input:#14202e;background:var(--ca-bg);color:var(--ca-ink)}html[data-familum-night=true] .ca-dialog .ca-topbar{background:var(--ca-panel);border-color:var(--ca-line)}html[data-familum-night=true] .ca-dialog :is(h1,h2,strong,label){color:var(--ca-ink)}html[data-familum-night=true] .ca-dialog :is(.ca-intro p,.ca-section-head p,.ca-paths button span,.ca-lawyers button small){color:var(--ca-muted)}html[data-familum-night=true] .ca-dialog :is(input,.ca-close,.ca-add,.ca-email-row button,.ca-secondary,.ca-paths button,.ca-lawyers button){background:var(--ca-input);color:var(--ca-ink);border-color:var(--ca-line)}html[data-familum-night=true] .ca-dialog :is(.ca-paths button,.ca-lawyers button)[aria-pressed=true]{background:var(--ca-soft);border-color:var(--ca-accent)}html[data-familum-night=true] .ca-dialog .ca-primary{background:#356ac7;border-color:#356ac7;color:#fff}html[data-familum-night=true] .ca-dialog .ca-alert{background:#402824;border-color:#a65f55;color:#ffd6d1}html[data-familum-night=true] .ca-dialog .ca-panel{background:var(--ca-panel);border-color:var(--ca-line)}
@media(max-width:640px){.ca-dialog{height:100dvh;max-height:100dvh}.ca-topbar{min-height:58px;padding:9px 16px}.ca-brand{font-size:18px}.ca-brand span{font-size:11px}.ca-close{font-size:0!important;min-width:42px}.ca-close span{font-size:24px;margin:0}.ca-content{padding:20px 14px 36px}.ca-intro{margin-bottom:18px}.ca-intro p{font-size:13px}.ca-panel{padding:17px 15px;border-radius:14px}.ca-section-head{gap:10px}.ca-section-head h2{font-size:17px}.ca-contact-grid,.ca-paths,.ca-lawyers{grid-template-columns:minmax(0,1fr)}.ca-paths{gap:9px}.ca-paths button{min-height:64px}.ca-email-row{flex-wrap:wrap}.ca-email-row button{width:100%}.ca-dialog input{font-size:16px}.ca-primary{width:100%}.ca-dialog .ac-layout{grid-template-columns:minmax(0,1fr)}}

/* Put booked time first when entering the case from telephone billing. */
.case-billing>.billing-time-ledger{margin-top:20px;padding:0;border:1px solid var(--line,#dce1e8);border-radius:12px;background:var(--surface,#fff);overflow:hidden}
.billing-time-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px;border-bottom:1px solid var(--line,#dce1e8)}
.billing-time-heading h3{margin:0;font-size:19px}
.billing-time-heading .eyebrow{margin-bottom:2px;font-size:10px;font-weight:800;letter-spacing:.12em;color:var(--green,#245be6)}
.billing-time-count{border-radius:999px;padding:5px 10px;background:var(--paper,#f3f6fa);color:var(--muted,#5e6b7b);font-size:12px;font-weight:700;white-space:nowrap}
.billing-time-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-bottom:1px solid var(--line,#dce1e8)}
.billing-time-summary>div{display:grid;gap:3px;min-width:0;padding:18px 20px}
.billing-time-summary>div+div{border-left:1px solid var(--line,#dce1e8)}
.billing-time-summary span{color:var(--muted,#5e6b7b);font-size:12px}
.billing-time-summary strong{color:var(--ink,#18212f);font-size:22px;line-height:1.25;font-variant-numeric:tabular-nums}
.billing-time-entry{padding:18px 20px;border-top:1px solid var(--line,#dce1e8)}
.billing-time-entry:first-child{border-top:0}
.billing-time-entry-top{display:flex;align-items:start;justify-content:space-between;gap:12px}
.billing-time-entry-top strong{color:var(--ink,#18212f);font-size:14px;line-height:1.5}
.billing-time-entry-top span{font-size:14px;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}
.billing-time-entry>p{margin-top:6px;color:var(--muted,#5e6b7b);font-size:12px}
.billing-time-entry-bottom{display:flex;justify-content:space-between;flex-wrap:wrap;gap:5px 18px;margin-top:10px;font-size:12px;color:var(--muted,#5e6b7b)}
.billing-time-entry-bottom span:last-child{color:var(--green,#245be6);font-weight:700}
.billing-time-entry .billing-actions{margin:12px 0 0}
.billing-time-entry .billing-actions .button{min-height:36px;padding:6px 12px;font-size:12px}
.billing-time-entry details{margin-top:3px}.billing-time-entry details summary{min-height:36px;padding:8px 0;font-size:12px;color:var(--muted,#5e6b7b)}
.billing-time-empty{padding:22px 20px;color:var(--muted,#5e6b7b)}
@media(max-width:640px){.billing-time-heading{padding:16px}.billing-time-summary>div{padding:15px 16px}.billing-time-summary strong{font-size:18px}.billing-time-entry{padding:16px}.billing-time-entry-top{display:grid}.billing-time-entry-top span{white-space:normal}.billing-time-entry .billing-actions .button{width:auto;flex:0 0 auto}}

/* Telephone billing: one clear selection, review, and completion flow. */
.ct-capture{--ct-bg:#f3f6fa;--ct-card:#fff;--ct-ink:#10263f;--ct-muted:#50647b;--ct-border:#d6e0eb;--ct-accent:#075ccc;--ct-soft:#edf4ff;--ct-shadow:0 12px 32px #17375b0d}
html[data-familum-night=true] .ct-capture{--ct-bg:#101b2a;--ct-card:#19293b;--ct-ink:#f1f6fd;--ct-muted:#b5c6da;--ct-border:#38506b;--ct-accent:#92bdff;--ct-soft:#203a5d;--ct-shadow:0 12px 32px #0003}
.ct-capture .cd-card-content{padding:28px 22px 44px!important}
.ct-capture .cw-bar{display:flex;align-items:center;justify-content:space-between;gap:12px}
.ct-layout{max-width:960px}
.ct-heading{margin-bottom:24px}
.ct-heading h1{font-size:clamp(27px,3vw,36px);line-height:1.15;margin:6px 0 6px}
.ct-heading>p:not(.ct-eyebrow){font-size:14px;line-height:1.55}
.ct-progress{display:flex;gap:8px;flex-wrap:wrap;margin-top:23px;padding-bottom:22px;border-bottom:1px solid var(--ct-border)}
.ct-progress span{display:inline-flex;align-items:center;min-height:34px;padding:6px 12px;border:1px solid var(--ct-border);border-radius:999px;background:var(--ct-card);color:var(--ct-muted);font-size:12px;font-weight:700;white-space:nowrap}
.ct-progress span.is-current{border-color:var(--ct-accent);background:var(--ct-soft);color:var(--ct-accent)}
.ct-progress span.is-complete{border-color:transparent;background:var(--ct-soft);color:var(--ct-accent)}
.ct-toolbar{display:flex;align-items:end;justify-content:space-between;flex-wrap:wrap;gap:16px}
.ct-capture .ct-lawyer{margin:0;flex:1 1 280px;max-width:420px;font-size:13px}
.ct-capture .ct-lawyer select{min-height:50px;border-radius:10px;border-color:var(--ct-border);font-weight:600}
.ct-selection{min-height:42px;display:inline-flex;align-items:center;padding:9px 15px;font-size:13px;color:var(--ct-ink)}
.ct-section{margin-top:20px;padding:0 20px;border-radius:15px;box-shadow:var(--ct-shadow);overflow:hidden}
.ct-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 0 15px}
.ct-section-heading h2{margin:0;font-size:17px;line-height:1.3;letter-spacing:-.015em}
.ct-kicker,.ct-section .ct-kicker{margin:0 0 4px;color:var(--ct-accent);font-size:10px;font-weight:800;letter-spacing:.12em}
.ct-section-count{display:inline-flex;align-items:center;justify-content:center;min-width:30px;min-height:28px;padding:3px 8px;border-radius:8px;background:var(--ct-soft);color:var(--ct-accent);font-size:12px;font-weight:750;white-space:nowrap}
.ct-capture .ct-empty{margin:0;padding:18px 0 21px;border-top:1px solid var(--ct-border);font-size:13px;color:var(--ct-muted)}
.ct-call{margin:0 -20px;padding:0 20px;border-top:1px solid var(--ct-border);border-left:0;background:var(--ct-card)}
.ct-call:first-of-type{border-top:1px solid var(--ct-border)}
.ct-call:hover{background:var(--ct-soft)}
.ct-call:has(input:checked){background:var(--ct-soft);box-shadow:inset 3px 0 var(--ct-accent)}
.ct-capture .ct-call label{display:flex;align-items:center;gap:14px;min-height:76px;margin:0;padding:12px 0}
.ct-call input{width:21px;height:21px}
.ct-call-main{flex:1;min-width:0;gap:4px}
.ct-call-top{display:flex;align-items:center;flex-wrap:wrap;gap:7px 10px}
.ct-call-top em{display:inline-flex;padding:2px 8px;border-radius:999px;background:var(--ct-soft);color:var(--ct-accent);font-size:11px;font-style:normal;font-weight:700}
.ct-call-main strong{font-size:14px;font-variant-numeric:tabular-nums}
.ct-call-main span:not(.ct-call-top){font-size:13px;color:var(--ct-muted)}
.ct-call-duration{display:grid;gap:3px;text-align:right;color:var(--ct-ink);font-size:13px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.ct-call-duration small{font-size:11px;font-weight:500;color:var(--ct-muted)}
.ct-capture .ct-more{width:100%;margin:0 -20px;width:calc(100% + 40px);padding:15px;border:0;border-top:1px solid var(--ct-border);border-radius:0;background:var(--ct-card);font-size:13px}
.ct-capture .ct-more:hover{background:var(--ct-soft)}
.ct-capture .ct-actions{position:sticky;bottom:-44px;z-index:2;align-items:center;margin:24px 0 0;padding:15px 0 12px;background:var(--ct-bg);border-top:1px solid var(--ct-border)}
.ct-capture .ct-actions button{min-height:48px;border-radius:10px;padding:11px 18px}
.ct-capture .ct-actions .ct-primary{min-width:220px;background:#075ccc;border-color:#075ccc;color:#fff;box-shadow:0 6px 15px #075ccc28}
.ct-capture .ct-actions .ct-primary:hover:not(:disabled){background:#004daf}
.ct-capture .ct-actions .ct-primary span{margin-left:8px}
.ct-capture .ct-actions button:disabled{box-shadow:none}
.ct-capture .ct-combined{width:100%;margin:0;padding:16px 18px;background:var(--ct-card);border:1px solid var(--ct-border);border-radius:12px;cursor:pointer}
.ct-combined span{display:grid;gap:3px}.ct-combined strong{font-size:14px;color:var(--ct-ink)}.ct-combined small{font-size:12px;line-height:1.5;color:var(--ct-muted);font-weight:400}
.ct-review-entry{padding:16px 0}.ct-review-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px}.ct-review-row strong{font-size:14px;color:var(--ct-ink);font-variant-numeric:tabular-nums}.ct-review-entry p{font-size:14px;line-height:1.55}.ct-review-entry small{font-size:12px;line-height:1.5}
.ct-review-total{align-items:center;border-top:2px solid var(--ct-border);font-size:16px}.ct-review-total span{display:grid;gap:2px;font-weight:700}.ct-review-total small{font-size:12px;font-weight:400;color:var(--ct-muted)}.ct-review-total strong{font-size:20px;font-variant-numeric:tabular-nums}
.ct-capture .ct-rate{margin:0 0 18px;font-size:12px;color:var(--ct-muted)}
.ct-success{text-align:center;padding:34px 24px 30px}.ct-success-icon{display:inline-grid;place-items:center;width:56px;height:56px;margin-bottom:16px;border-radius:50%;background:#e4f5ec;color:#147d4b;font-size:28px;font-weight:700}.ct-success h2{font-size:24px;margin:6px auto 8px}.ct-success p:not(.ct-kicker){margin:0 0 22px;color:var(--ct-muted)}.ct-success-link{display:inline-flex;justify-content:center;align-items:center;gap:16px;min-height:48px;padding:10px 18px;border-radius:10px;background:#075ccc;color:#fff!important;text-decoration:none;font-weight:700}.ct-success-link:hover{background:#004daf}.ct-success-link:is(button){border:0;cursor:pointer;font:inherit;font-weight:700}.ct-success-link span{font-size:20px}
.ct-capture :is(button,a,input,select):focus-visible{outline:3px solid var(--ct-accent);outline-offset:3px}
@media(max-width:600px){.ct-capture .cd-card-content{padding:19px 14px 36px!important}.ct-progress{gap:5px;margin-top:18px}.ct-progress span{font-size:10px;padding:5px 7px}.ct-toolbar{display:grid;gap:13px}.ct-capture .ct-lawyer{max-width:none}.ct-selection{width:fit-content}.ct-section{padding:0 15px}.ct-call{margin:0 -15px;padding:0 15px}.ct-capture .ct-call label{min-height:74px;gap:10px}.ct-call-main strong{font-size:13px}.ct-call-duration{font-size:12px}.ct-capture .ct-more{margin:0 -15px;width:calc(100% + 30px)}.ct-capture .ct-actions{bottom:-36px}.ct-capture .ct-actions button{flex:1 1 100%}.ct-review-row{align-items:start}.ct-review-row strong:last-child{text-align:right;white-space:nowrap}.ct-review-total{display:flex;flex-wrap:wrap}.ct-success{padding:30px 14px}}

/* Focused Aktenkonto opened from the card's Abrechnung menu. */
.ca-account{--ca-bg:#f3f6fa;--ca-surface:#fff;--ca-ink:#10263f;--ca-muted:#53667e;--ca-line:#d6e0eb;--ca-accent:#075ccc;--ca-good:#116750;--ca-bad:#a34a37}
html[data-familum-night=true] .ca-account{--ca-bg:#101b2a;--ca-surface:#19293b;--ca-ink:#f1f6fd;--ca-muted:#b5c6da;--ca-line:#38506b;--ca-accent:#92bdff;--ca-good:#83d9b4;--ca-bad:#ffaf9a}
.ca-account .cd-card-content{background:var(--ca-bg)!important;color:var(--ca-ink)!important;padding:24px 18px 52px!important}
.ca-wrap{max-width:1060px;margin:0 auto}.ca-wrap *{box-sizing:border-box}.ca-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:4px 0 22px}.ca-heading h1{font-size:clamp(26px,3vw,36px);line-height:1.2;margin:3px 0 0;color:var(--ca-ink)}.ca-overline{font-size:12px;color:var(--ca-accent);font-weight:750;letter-spacing:.06em;margin:0}.ca-account button{font:inherit;cursor:pointer;border:1px solid var(--ca-line);background:var(--ca-surface);color:var(--ca-ink);border-radius:9px;padding:10px 14px}.ca-account button:hover:not(:disabled){border-color:var(--ca-accent)}.ca-account button:disabled{opacity:.55;cursor:default}
.ca-balance{display:grid;gap:5px;padding:22px 24px;background:var(--ca-surface);border:1px solid var(--ca-line);border-radius:14px}.ca-balance span{color:var(--ca-muted);font-size:13px;font-weight:650}.ca-balance strong{font-size:clamp(30px,4vw,43px);line-height:1.15;font-variant-numeric:tabular-nums;color:var(--ca-good)}.ca-balance.negativ strong{color:var(--ca-bad)}.ca-balance small{color:var(--ca-muted);font-size:12px}
.ca-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0 24px}.ca-summary>div{display:grid;gap:6px;padding:16px 18px;border:1px solid var(--ca-line);background:var(--ca-surface);border-radius:12px}.ca-summary span{color:var(--ca-muted);font-size:12px}.ca-summary strong{font-size:19px;font-variant-numeric:tabular-nums}.ca-table-scroll{overflow-x:auto;border:1px solid var(--ca-line);border-radius:13px;background:var(--ca-surface)}.ca-table{width:100%;border-collapse:collapse;font-size:14px;line-height:1.45}.ca-table th{text-align:left;background:var(--ca-bg);color:var(--ca-muted);font-size:11px;text-transform:uppercase;letter-spacing:.08em}.ca-table th,.ca-table td{padding:15px 17px;border-bottom:1px solid var(--ca-line);vertical-align:top}.ca-table tbody tr:last-child td{border-bottom:0}.ca-table td:nth-child(2){min-width:250px;overflow-wrap:anywhere}.ca-table td:nth-child(2) span,.ca-table td:nth-child(2) small{display:block}.ca-table td:nth-child(2) span{margin-top:3px}.ca-table td:nth-child(2) small{margin-top:4px;color:var(--ca-muted)}.ca-table .ca-amount{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:700}.ca-table .ca-amount.debit{color:var(--ca-bad)}.ca-table .ca-amount.credit{color:var(--ca-good)}.ca-state{display:inline-block;padding:5px 9px;border-radius:999px;background:var(--ca-bg);color:var(--ca-muted);font-size:12px;white-space:nowrap}.ca-state.is-paid{color:var(--ca-good)}.ca-state.is-open{color:var(--ca-bad)}.ca-table .ca-empty{text-align:center;color:var(--ca-muted);padding:30px}.ca-table button{white-space:nowrap;font-size:12px;min-height:38px}.ca-note{color:var(--ca-muted);font-size:12px;line-height:1.6;margin:14px 0}.ca-note a{color:var(--ca-accent)}.ca-error,.ca-pending{padding:12px 15px;border-radius:9px;background:var(--ca-surface);border:1px solid var(--ca-line);color:var(--ca-bad)}
.ca-payment{margin-top:20px;padding:22px;background:var(--ca-surface);border:1px solid var(--ca-line);border-radius:13px}.ca-payment h2{margin:0 0 5px;font-size:19px}.ca-payment p{margin:0 0 20px;color:var(--ca-muted);font-size:13px}.ca-payment-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.ca-payment label{display:grid;gap:7px;font-size:12px;font-weight:650}.ca-payment input{min-height:45px;width:100%;padding:10px 12px;border:1px solid var(--ca-line);border-radius:8px;background:var(--ca-bg);color:var(--ca-ink);font:inherit;font-size:16px}.ca-payment-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:19px}.ca-payment-actions button[type=submit]{background:#075ccc;color:#fff;border-color:#075ccc}.ca-payment-actions button[type=submit]:hover{background:#004daf}
.ca-time-edit .ca-payment-fields{grid-template-columns:minmax(0,1fr) 170px}.ca-time-edit textarea{width:100%;min-height:118px;padding:10px 12px;resize:vertical;border:1px solid var(--ca-line);border-radius:8px;background:var(--ca-bg);color:var(--ca-ink);font:inherit;font-size:16px;line-height:1.5}
@media(max-width:680px){.ca-account .cd-card-content{padding:18px 13px 35px!important}.ca-heading{align-items:start}.ca-heading button{font-size:12px}.ca-summary{grid-template-columns:1fr}.ca-table-scroll{overflow:visible}.ca-table,.ca-table tbody,.ca-table tr,.ca-table td{display:block;width:100%}.ca-table thead{display:none}.ca-table tr{padding:7px 14px;border-bottom:1px solid var(--ca-line)}.ca-table tr:last-child{border-bottom:0}.ca-table td{display:grid;grid-template-columns:78px minmax(0,1fr);gap:10px;min-width:0!important;padding:7px 0;border:0!important;overflow-wrap:anywhere}.ca-table td:before{content:attr(data-label);color:var(--ca-muted);font-size:11px;text-transform:uppercase;letter-spacing:.05em}.ca-table td.ca-amount{text-align:left;white-space:normal}.ca-payment-fields,.ca-time-edit .ca-payment-fields{grid-template-columns:1fr}.ca-payment{padding:16px}.ca-payment-actions{display:grid;grid-template-columns:1fr 1fr}}

/* Telephone selection: suggested calls first, full history disclosed on request. */
.ct-capture .cd-card-content{background:var(--ct-bg)!important;color:var(--ct-ink)!important}
.ct-capture .ct-layout{max-width:960px;margin:0 auto}
.ct-capture .ct-heading{margin-bottom:22px}
.ct-capture .ct-heading h1{margin:0 0 5px;color:var(--ct-ink)!important;font-size:clamp(27px,3vw,34px);line-height:1.2}
.ct-capture .ct-heading p{color:var(--ct-muted)!important}
.ct-capture .ct-toolbar{align-items:center;margin-bottom:22px}
.ct-capture label.ct-lawyer{display:grid!important;gap:7px;min-width:220px;color:var(--ct-ink)!important}
.ct-capture .ct-lawyer select{color:var(--ct-ink)!important;background:var(--ct-card)!important;border-color:var(--ct-border)!important}
.ct-capture .ct-selection{color:var(--ct-muted)!important}
.ct-capture .ct-section{margin-top:0;background:var(--ct-card);border-color:var(--ct-border)}
.ct-capture .ct-section-heading h2{color:var(--ct-ink)!important;font-size:18px}
.ct-capture .ct-section-count{color:var(--ct-accent)!important}
.ct-capture .ct-all{margin-top:14px;border:1px solid var(--ct-border);border-radius:15px;background:var(--ct-card);box-shadow:var(--ct-shadow);overflow:hidden;color:var(--ct-ink)}
.ct-capture .ct-all summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:62px;padding:16px 20px;list-style:none;cursor:pointer;font-size:15px;font-weight:700;color:var(--ct-ink)!important}
.ct-capture .ct-all summary::-webkit-details-marker{display:none}
.ct-capture .ct-all summary:hover{background:var(--ct-soft)}
.ct-capture .ct-all-meta{display:inline-flex;align-items:center;gap:10px;color:var(--ct-muted)!important;font-size:12px;font-weight:600;white-space:nowrap}
.ct-capture .ct-chevron{display:inline-block;color:var(--ct-accent);font-size:23px;line-height:1;transition:transform .15s ease}
.ct-capture .ct-all[open] .ct-chevron{transform:rotate(180deg)}
.ct-capture .ct-all-body{padding:0 20px}
.ct-capture .ct-all-body .ct-call:first-child{border-top:1px solid var(--ct-border)}
.ct-capture .ct-call{border-color:var(--ct-border)!important}
.ct-capture .ct-call label{display:grid;grid-template-columns:22px 40px minmax(0,1fr) auto;gap:14px;min-height:76px;padding:12px 0;align-items:center}
.ct-capture .ct-call input{margin:0;accent-color:#3679d6}
.ct-capture .ct-call-avatar{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--ct-soft);color:var(--ct-accent);font-size:22px;font-weight:700}
.ct-capture .ct-call-main{display:grid;gap:2px;min-width:0;color:var(--ct-ink)}
.ct-capture .ct-call-main strong{overflow-wrap:anywhere;color:var(--ct-ink)!important;font-size:15px;font-weight:700;line-height:1.3}
.ct-capture .ct-call-main small{color:var(--ct-muted)!important;font-size:12px;line-height:1.4}
.ct-capture .ct-call-date{display:grid;gap:1px;text-align:right;color:var(--ct-muted)!important;font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums}
.ct-capture .ct-call-date small{color:var(--ct-muted)!important;font-size:11px}
.ct-capture .ct-call:has(input:checked){background:var(--ct-soft)}
.ct-capture .ct-empty{color:var(--ct-muted)!important}
.ct-capture .ct-more{color:var(--ct-accent)!important}
.ct-capture .ct-actions{background:var(--ct-bg)!important}
@media(max-width:600px){.ct-capture .ct-heading{margin-bottom:18px}.ct-capture .ct-toolbar{gap:10px;margin-bottom:17px}.ct-capture .ct-section{padding:0 15px}.ct-capture .ct-all summary{padding:14px 15px}.ct-capture .ct-all-body{padding:0 15px}.ct-capture .ct-call label{grid-template-columns:21px 36px minmax(0,1fr) auto;gap:9px;min-height:72px}.ct-capture .ct-call-avatar{width:36px;height:36px;font-size:20px}.ct-capture .ct-call-main strong{font-size:13px}.ct-capture .ct-call-main small{font-size:11px}.ct-capture .ct-call-date{font-size:10px}.ct-capture .ct-call-date small{font-size:10px}.ct-capture .ct-all-meta{gap:5px;font-size:11px}}

.cai-dialog{--cai-bg:#f3f6fa;--cai-card:#fff;--cai-ink:#162c47;--cai-muted:#5c6f86;--cai-line:#d9e3ee;--cai-blue:#075ccc;--cai-soft:#e9f1fc;--cai-error:#b4353a}
html[data-familum-night=true] .cai-dialog{--cai-bg:#101b2a;--cai-card:#1b2d42;--cai-ink:#f2f6fc;--cai-muted:#b6c6d8;--cai-line:#39516e;--cai-blue:#a1c8ff;--cai-soft:#223d61;--cai-error:#ffb7b9}
.cai-dialog .cd-card-content{background:var(--cai-bg)!important;color:var(--cai-ink)!important;padding:28px 18px 56px!important}
.cai-wrap{max-width:790px;margin:0 auto}.cai-wrap *{box-sizing:border-box}
.cai-eyebrow,.cai-step{font-size:12px;line-height:1.3;font-weight:750;letter-spacing:.07em;text-transform:uppercase;color:var(--cai-blue)!important}
.cai-wrap h1{font-size:clamp(27px,4vw,38px);letter-spacing:-.03em;line-height:1.15;margin:7px 0 9px;color:var(--cai-ink)!important}
.cai-wrap h2{font-size:19px;line-height:1.25;margin:7px 0 5px;color:var(--cai-ink)!important}
.cai-intro,.cai-address,.cai-rate{color:var(--cai-muted)!important;line-height:1.5}
.cai-intro{margin:0 0 22px}.cai-panel{padding:22px 24px;margin:0 0 14px;border:1px solid var(--cai-line);border-radius:17px;background:var(--cai-card);box-shadow:0 5px 18px rgba(15,38,69,.05)}
.cai-panel label{display:grid;gap:8px;margin-top:18px;font-weight:650;color:var(--cai-ink)!important}
.cai-panel [hidden]{display:none}
.cai-panel input[type=email],.cai-panel input[type=text]{width:100%;min-height:48px;border:1px solid var(--cai-line);border-radius:10px;background:var(--cai-card);color:var(--cai-ink);font:inherit;font-size:16px;padding:11px 13px}
.cai-panel input:focus-visible{outline:3px solid var(--cai-soft);border-color:var(--cai-blue)}
.cai-modes{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0 4px}.cai-modes label{display:flex;align-items:center;gap:8px;margin:0;padding:10px 14px;border:1px solid var(--cai-line);border-radius:10px;cursor:pointer}.cai-modes label:has(input:checked){background:var(--cai-soft);border-color:var(--cai-blue)}.cai-modes input{accent-color:#075ccc}
.cai-summary dl{margin:18px 0 10px}.cai-summary dl>div{display:flex;justify-content:space-between;gap:15px;padding:9px 0;border-bottom:1px solid var(--cai-line)}.cai-summary dt{color:var(--cai-muted)}.cai-summary dd{margin:0;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}.cai-summary .cai-total{padding:15px 0;font-size:19px;color:var(--cai-ink)}.cai-summary .cai-total dt{font-weight:750;color:var(--cai-ink)}.cai-summary p{font-size:13px;line-height:1.45;color:var(--cai-muted)}
.cai-summary .cai-balance-value{display:grid;justify-items:end;gap:2px}.cai-balance-value small{font-size:13px;font-weight:500;color:var(--cai-muted)}.cai-balance-value small:empty{display:none}
.cai-submit,.cai-wrap button[data-cai-done]{width:100%;min-height:52px;padding:12px 18px;border:0;border-radius:11px;background:#075ccc;color:#fff;font:inherit;font-weight:750;cursor:pointer}.cai-submit:disabled{opacity:.5;cursor:default}
.cai-error{padding:13px 15px;border:1px solid var(--cai-error);border-radius:10px;color:var(--cai-error)!important;background:var(--cai-card)}
.cai-receipt{padding:16px 18px;border-radius:12px;background:var(--cai-soft);color:var(--cai-ink);line-height:1.5}
@media(max-width:600px){.cai-dialog .cd-card-content{padding:19px 12px 40px!important}.cai-panel{padding:18px 16px;border-radius:13px}.cai-summary .cai-total{font-size:17px}.cai-summary dl>div{gap:9px}.cai-summary dd{white-space:normal;text-align:right}}

/* Shared board filters for Frontoffice and personal placements. */
.kanban-filter-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding-top:10px;border-top:1px solid #dce4ee}
.kanban-filter-controls label{display:grid!important;gap:5px!important;min-width:0!important;width:auto!important;font-size:12px!important;font-weight:600;color:#43566f}
.kanban-filter-controls select{width:100%;min-height:38px;padding:7px 9px;border:1px solid #bfcbd9;border-radius:7px;background:#fff;color:#142b47;font:inherit;font-size:14px}
.kanban-filter-controls button{grid-column:1/-1;justify-self:start}
.fm-board-filter .fm-board-panel{min-width:min(340px,calc(100vw - 24px))}
html[data-familum-night=true] .kanban-filter-controls{border-color:#40526d}
html[data-familum-night=true] .kanban-filter-controls label{color:#cedaf0}
html[data-familum-night=true] .kanban-filter-controls select{background:#192a40;border-color:#40526d;color:#f2f6fc}
@media(max-width:600px){.kanban-filter-controls{grid-template-columns:1fr}.fm-board-filter .fm-board-panel{width:min(360px,calc(100vw - 24px))}}
.kanban-board-filter-bar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 20px;background:#eff5fb;border-bottom:1px solid #d5e1ed;color:#173657}
.kanban-board-filter-bar>label{flex:0 1 260px;min-width:160px}
.kanban-board-filter-bar input[type=search]{box-sizing:border-box;width:100%;min-height:38px;padding:7px 10px;border:1px solid #b8cbe0;border-radius:8px;background:#fff;color:#173657;font:inherit;font-size:13px}
.kanban-board-filter-bar .kanban-filter-controls{display:contents;border:0;padding:0}
.kanban-board-filter-bar .kanban-filter-controls label{display:flex!important;flex:0 1 150px;min-width:110px!important;color:#173657;font-size:0!important}
.kanban-board-filter-bar .kanban-filter-controls select{min-height:38px;padding:7px 10px;border-color:#b8cbe0;font-size:13px}
.kanban-board-filter-bar .kanban-filter-controls button{min-height:38px;margin:0;padding:7px 11px;border:1px solid #b8cbe0;border-radius:8px;background:#fff;color:#173657;font-size:12px;font-weight:600;line-height:1.2}
.kanban-board-filter-bar [data-board-search-status]{margin:0 0 0 auto;color:#526c88;font-size:12px;white-space:nowrap}
html[data-familum-night=true] .kanban-board-filter-bar{background:#1d2c3c;border-color:#405269;color:#e9f2fb}
html[data-familum-night=true] .kanban-board-filter-bar :is(input[type=search],select),html[data-familum-night=true] .kanban-board-filter-bar .kanban-filter-controls button{background:#26394b;color:#f2f6fb;border-color:#5e7288}
html[data-familum-night=true] .kanban-board-filter-bar .kanban-filter-controls label{color:#e9f2fb}
html[data-familum-night=true] .kanban-board-filter-bar [data-board-search-status]{color:#c0d0e4}
@media(max-width:700px){.kanban-board-filter-bar{padding:8px 12px;gap:7px}.kanban-board-filter-bar>label{flex:1 1 100%}.kanban-board-filter-bar .kanban-filter-controls label{flex:1 1 calc(50% - 7px);min-width:0!important}.kanban-board-filter-bar .kanban-filter-controls select{font-size:12px}.kanban-board-filter-bar [data-board-search-status]{margin-left:0}}

/* One board chrome for Frontoffice, personal and imported boards. */
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-workspace .kanban-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:68px;padding:12px 20px;margin:0;background:#123c70d9;color:#f3f8ff}
.kanban-toolbar .fm-board-identity{min-width:0;flex:1 1 auto}
.kanban-toolbar .fm-board-select{display:flex;align-items:center;min-width:0;max-width:min(440px,100%);width:100%;height:42px;padding:0 10px;background:#192c47;border:1px solid #ffffff55;border-radius:9px}
.kanban-toolbar .fm-board-select select{width:100%;max-width:none;min-width:0;padding:0 22px 0 0;background:transparent;color:#f4f8ff;font-size:15px;font-weight:650;border:0;outline-offset:4px}
.kanban-toolbar .fm-board-controls{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.kanban-toolbar .tb-view-switch{display:flex;gap:3px;padding:3px;border-radius:10px;background:#102b4dc9;border:1px solid #ffffff42}
.kanban-toolbar .tb-view-switch :is(button,a){display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 10px;border:0;border-radius:7px;background:transparent;color:#e8f1ff;text-decoration:none;font:inherit;font-size:13px;white-space:nowrap;cursor:pointer}
.kanban-toolbar .tb-view-switch :is(button[aria-pressed=true],a[aria-current=page]){background:#fff;color:#14375c;font-weight:700}
.kanban-toolbar :is(.tb-favorite,.tb-share,.tb-settings){display:inline-grid;place-items:center;min-height:40px;padding:6px 10px;border:1px solid #ffffff70;border-radius:8px;background:#163e6c;color:#f3f8ff;font:inherit;font-size:13px;cursor:pointer;white-space:nowrap}
.kanban-toolbar .kanban-new-card{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:7px 14px;border:1px solid #dbe9ff;border-radius:8px;background:#fff;color:#14375c;font:700 13px/1.2 var(--font-ui);cursor:pointer;white-space:nowrap}
.kanban-toolbar .kanban-new-card:hover{background:#e8f2ff}
.kanban-toolbar .tb-favorite{min-width:40px;font-size:21px;line-height:1}.kanban-toolbar .tb-favorite[aria-pressed=true]{color:#ffdd72}
.kanban-toolbar :is(select,button,summary,a):focus-visible{outline:3px solid #91bbff;outline-offset:2px}
.kanban-toolbar .fm-board-more{position:relative}.kanban-toolbar .fm-board-more>summary{display:grid;place-items:center;list-style:none;min-width:42px;font-size:22px}.kanban-toolbar .fm-board-more>summary::-webkit-details-marker{display:none}
.kanban-board-filter-bar [data-board-filter-clear][hidden]{display:none!important}
html[data-familum-night=true] body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-workspace .kanban-toolbar{background:#1c2a3c!important}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-board-mode .intake-board .intake-list-title:not(:focus){border-color:transparent!important;box-shadow:none!important}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-board-mode .intake-board.kanban-compact .intake-column{flex-basis:258px}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-board-mode .intake-board.kanban-compact .intake-card{min-height:38px;padding:8px 10px;border-radius:7px}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-board-mode .intake-board.kanban-compact .intake-card h3{font-size:13px;line-height:1.3}
body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-board-mode .intake-board.kanban-compact .intake-card-signals{font-size:11px;margin-top:4px}
html[data-familum-night=true] body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-board-mode .intake-board .intake-list-title:not(:focus){background:transparent!important;color:#eef5ff!important;border-color:transparent!important}
html[data-familum-night=true] .intake-board :is(.shared-card-menu,.personal-card-menu)>summary{background:#324660;color:#eef5ff;border:1px solid #5b708e;opacity:1}
html[data-familum-night=true] .intake-board :is(.shared-card-menu,.personal-card-menu)>summary:hover{background:#41618a}
html[data-familum-night=true] .intake-board :is(.shared-card-menu>div,.personal-card-move){background:#24354a;color:#edf5ff;border-color:#586d89}
.kanban-touch-ghost{position:fixed;left:0;top:0;z-index:10000;max-width:min(260px,70vw);padding:10px 13px;background:#f8fbff;color:#18385e;border:2px solid #3a83e7;border-radius:9px;box-shadow:0 14px 36px #07162970;pointer-events:none;transform:translate(-1000px,-1000px);font:600 14px/1.35 Manrope,sans-serif;overflow-wrap:anywhere}
.kanban-drop-marker{height:4px;margin:5px 3px;border-radius:4px;background:#64a0ff;box-shadow:0 0 0 2px #122748;pointer-events:none}
@media(max-width:700px){
 body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-workspace .kanban-toolbar{display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:8px;min-height:0;padding:9px 12px}
 .kanban-toolbar .fm-board-identity{grid-column:1;grid-row:1;min-width:0;flex-basis:auto}
 .kanban-toolbar .fm-board-select{width:100%;max-width:none!important;height:42px!important}
 .kanban-toolbar .fm-board-select select{max-width:none!important;font-size:15px}
 .kanban-toolbar .fm-board-controls{display:contents!important}
 .kanban-toolbar .tb-view-switch{grid-column:1 / -1;grid-row:2;justify-self:start;max-width:100%;overflow-x:auto}
 .kanban-toolbar .tb-view-switch :is(button,a){min-width:66px;padding:7px 9px;font-size:12px}
 .kanban-toolbar .fm-board-more,.kanban-toolbar .fm-board-controls>.tb-settings{grid-column:2;grid-row:1;align-self:center}
 .kanban-toolbar .tb-favorite{grid-column:1;grid-row:3;justify-self:start}
 .kanban-toolbar .tb-share{grid-column:1;grid-row:3;justify-self:start;margin-left:48px}
 .kanban-toolbar .kanban-new-card{grid-column:2;grid-row:3;justify-self:end;padding:7px 10px}
}

/* The table follows the board's list order and keeps each list visually together. */
body.studio-theme #app.office-app.studio-shell.intake-workspace .intake-table-view table{border-collapse:separate;border-spacing:0;background:transparent}
body.studio-theme #app.office-app.studio-shell.intake-workspace .intake-table-view .intake-table-group{background:#fff}
body.studio-theme #app.office-app.studio-shell.intake-workspace .intake-table-view .intake-table-heading th{position:static;padding:12px 16px;background:#e9f1fa;color:#173959;border-top:12px solid #e8e9ed;border-bottom:1px solid #d7e2ed;text-align:left;font-size:14px;letter-spacing:0;text-transform:none}
body.studio-theme #app.office-app.studio-shell.intake-workspace .intake-table-view .intake-table-group:first-of-type .intake-table-heading th{border-top:0}
body.studio-theme #app.office-app.studio-shell.intake-workspace .intake-table-view .intake-table-heading small{display:inline-block;margin:0 0 0 12px;padding:3px 9px;border-radius:999px;background:#fff;color:#57708c;font-size:11px;font-weight:650}
body.studio-theme #app.office-app.studio-shell.intake-workspace .intake-table-view .intake-table-empty td{color:#72849a}
html[data-familum-night=true] body.studio-theme #app.office-app.studio-shell.intake-workspace .intake-table-view .intake-table-heading th{background:#304963;color:#eff6ff;border-color:#1d2c3c}
html[data-familum-night=true] body.studio-theme #app.office-app.studio-shell.intake-workspace .intake-table-view .intake-table-heading small{background:#20364d;color:#d5e6f6}
@media(max-width:700px){
 body.studio-theme #app.office-app.studio-shell.intake-workspace .intake-table-view .intake-table-group{display:block;margin:0 0 14px;border:1px solid #d7e2ed;border-radius:10px;overflow:hidden;box-shadow:0 3px 12px #173b6410}
 body.studio-theme #app.office-app.studio-shell.intake-workspace .intake-table-view .intake-table-group tr{margin:0;border:0;border-radius:0;box-shadow:none}
 body.studio-theme #app.office-app.studio-shell.intake-workspace .intake-table-view .intake-table-group tr[data-intake-table-row]{border-top:1px solid #e7edf4}
 body.studio-theme #app.office-app.studio-shell.intake-workspace .intake-table-view .intake-table-heading{display:block;padding:0}
 body.studio-theme #app.office-app.studio-shell.intake-workspace .intake-table-view .intake-table-heading th{display:block;border:0;padding:13px 15px}
 body.studio-theme #app.office-app.studio-shell.intake-workspace .intake-table-view .intake-table-empty{display:block}
 body.studio-theme #app.office-app.studio-shell.intake-workspace .intake-table-view .intake-table-empty td{padding:16px}
}

/* Compact mobile chrome: primary navigation lives in the existing drawer. */
.fm-mobile-primary-nav{display:grid;gap:6px;padding:8px 0}
.fm-mobile-primary-nav>a{display:flex;align-items:center;gap:12px;min-height:46px;padding:10px 13px;border-radius:9px;color:#203858;text-decoration:none;font:650 15px/1.3 var(--font-ui)}
.fm-mobile-primary-nav>a>svg{flex:none;width:21px;height:21px}
.fm-mobile-primary-nav>a[aria-current=page]{background:#0866ef;color:#fff}
.fm-mobile-primary-nav .fm-nav-count{margin-left:auto}
.fm-mobile-primary-nav>a:focus-visible{outline:3px solid #68a4ff;outline-offset:2px}
html[data-familum-night=true] #app.familum-workspace .fm-mobile-primary-nav>a{color:#e3edfb}
html[data-familum-night=true] #app.familum-workspace .fm-mobile-primary-nav>a[aria-current=page]{background:#205eb4;color:#fff}
@media(max-width:960px){
 body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-topbar{height:56px;min-height:56px;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:1fr;align-content:center;padding:6px 10px;gap:6px}
 body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-topbar>.fm-primary-nav{display:none}
 body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-brand{min-width:0;font-size:20px;gap:6px;white-space:nowrap}
 body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .fm-brand-mark{width:28px;height:28px}
 body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-tools{gap:4px;min-width:0}
 body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-tools :is(.developer-chat-trigger,.studio-search,.fm-header-settings,.studio-avatar,.mobile-menu){display:inline-grid;place-items:center;width:34px;min-width:34px;flex-basis:34px;height:38px;min-height:38px;padding:0;border-radius:8px}
 body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-tools :is(.feedback-trigger,.studio-notifications){display:none}
 body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-search :is(span,kbd),body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .developer-chat-trigger>span{display:none}
 body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-avatar{font-size:12px}
 body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-topbar .mobile-menu{margin:0}
 body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .main.studio-main{padding-top:56px}
 body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .sidebar.studio-rail{top:56px;height:calc(100dvh - 56px);padding-top:16px;z-index:100}
 body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace .studio-drawer-heading{margin-bottom:18px}
}
/* Keep the same compact first row on native personal boards. */
@media(max-width:700px){
 body.studio-theme #app.office-app.studio-shell.workspace-friendly.familum-workspace.intake-workspace .kanban-toolbar{grid-template-columns:minmax(0,1fr) auto 38px;gap:6px;padding:8px;align-items:center}
 .kanban-toolbar .fm-board-identity{grid-column:1;grid-row:1}
 .kanban-toolbar .fm-board-select{box-sizing:border-box;height:40px!important;padding:0 8px}
 .kanban-toolbar .tb-view-switch{grid-column:2;grid-row:1;padding:2px;overflow:visible}
 .kanban-toolbar .tb-view-switch :is(button,a){min-width:0;min-height:34px;padding:7px 8px;font-size:12px}
 .kanban-toolbar .fm-board-more,.kanban-toolbar .fm-board-controls>.tb-settings{grid-column:3;grid-row:1;min-width:0;width:38px;min-height:40px;padding:0}
 .kanban-toolbar .tb-favorite,.kanban-toolbar .tb-share,.kanban-toolbar .kanban-new-card{grid-row:2}
}
