*{box-sizing:border-box}body{margin:0;font:14px/1.5 var(--cai-font-sans);background:var(--background);color:var(--foreground)}[hidden]{display:none!important}.shell{min-height:100dvh;display:grid;grid-template-columns:var(--cai-sidebar-width) minmax(0,1fr)}aside{background:var(--card);border-right:1px solid var(--border)}.brand,header{height:var(--shell-header-height);border-bottom:1px solid var(--border);display:flex;align-items:center;padding:0 24px;gap:12px}.brand{font-size:20px;letter-spacing:-.045em}.brand img,.signin img{width:34px}.workspace{min-width:0}header{background:var(--card);gap:20px}header strong,header span{display:block}header strong{font-size:20px;line-height:1.15;letter-spacing:-.035em}header span,small,.meta{color:var(--muted);font-size:12px}.product{border-left:1px solid var(--border);padding-left:20px;font-weight:600}.account,.heading,.toolbar,.actions,.pager,.row,.tabs{display:flex;align-items:center;gap:12px}.account{margin-left:auto}#side{padding:20px 12px;display:grid;gap:4px}#side a{display:flex;gap:12px;align-items:center;border-radius:8px;padding:11px 14px;color:var(--foreground);font-weight:500}#side a[aria-current=page]{background:var(--muted-bg);box-shadow:inset 3px 0 var(--primary);font-weight:600}i svg{width:20px;height:20px;display:block;fill:currentColor}main{max-width:1240px;margin:0 auto;padding:32px clamp(16px,3vw,48px) 64px}h1,h2,p{margin:0}h1{font-size:30px;font-weight:600;letter-spacing:-.035em}h2{font-size:18px;line-height:1.4;font-weight:600;letter-spacing:-.015em}.heading,.row{justify-content:space-between}.heading{margin:0 0 18px}.surface,.signin{background:var(--card);border:1px solid var(--border);border-radius:12px}.surface{overflow:hidden}.pad,.form,.signin{padding:24px}.form{max-width:720px;margin-top:20px}.toolbar{flex-wrap:wrap;padding:16px;border-bottom:1px solid var(--border)}.toolbar input{width:min(100%,320px)}.toolbar small{margin-left:auto}.row,article,.empty{padding:16px 20px}.row{gap:20px}.row+.row,article+article{border-top:1px solid var(--border)}.row>div:first-child{min-width:0}.row p,.lead,.pad p{color:var(--muted)}.row strong{font-weight:500}.row p,article p,.lead,.pad dd{overflow-wrap:anywhere;white-space:pre-line}.actions,.row,.heading,.tabs{flex-wrap:wrap}.actions{gap:8px}button,.btn,input,textarea,select{font:inherit;color:inherit}button,.btn{background:var(--card);border:1px solid var(--border);border-radius:8px;min-height:40px;display:inline-flex;align-items:center;justify-content:center;padding:8px 14px;cursor:pointer;font-weight:400}.btn.primary,button.primary{background:var(--primary);border-color:var(--primary);color:var(--primary-foreground)}button:hover:not(:disabled),.btn:hover{background:var(--muted-bg)}
button.primary:hover:not(:disabled),.btn.primary:hover{background:color-mix(in srgb,var(--primary) 88%,var(--card))}button:disabled{opacity:.48;cursor:default}.quiet{border-color:transparent}.danger{color:var(--danger)}a{color:var(--primary-ink);text-decoration:none}.back{display:inline-block;margin-bottom:10px}.pager{justify-content:flex-end;padding:10px 16px;border-top:1px solid var(--border);font-size:12px}form,label{display:grid;gap:8px}form{gap:18px}label{font-weight:500}input,select,textarea{border:1px solid var(--border);background:var(--card);border-radius:8px;padding:9px 12px;min-height:42px;min-width:0}textarea{min-height:78px;resize:vertical}input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--ring);outline-offset:2px}.tabs{margin:18px 0 24px;gap:4px;border-bottom:1px solid var(--border)}.tabs button{border:0;background:transparent;border-radius:0}.tabs button[aria-current=page]{box-shadow:inset 0 -3px var(--primary)}.lead{max-width:90ch}dt{color:var(--muted);font-size:12px}dd{margin:4px 0 16px}dd:last-child{margin-bottom:0}.pad dl{margin:0}.signin{max-width:420px;margin:8vh auto}.signin h1{margin:12px 0 20px}.signin>button{margin-top:12px}#feedback:not(:empty){margin-bottom:14px;border-left:3px solid var(--primary);padding:8px 12px;background:var(--card)}#team{margin-top:24px}#access>h1{margin-bottom:16px}dialog{max-width:min(576px,94vw);max-height:92dvh;overflow-y:auto;width:100%;border:1px solid var(--border);border-radius:16px;background:var(--card);color:var(--foreground);padding:24px}dialog::backdrop{background:#0f172a66}#fields{display:grid;gap:12px}#dialogError{color:var(--danger)}#dialogError:empty{display:none}.sources button{font-size:12px;margin:5px 5px 0 0}details summary{cursor:pointer}details p{margin-top:8px}article p{margin:4px 0}
.back:hover,a.btn:focus-visible{text-decoration:underline}

/* CompanyAI lockup, PageHeader, SectionNav and ListingToolbar. */
.brand{gap:10px;font-size:17px;line-height:20px;letter-spacing:-.035em}
.brand img{width:32px;height:32px;object-fit:contain}
.brand b,header strong,.primary{font-weight:600}
header strong{line-height:24px}
h1{line-height:1.25;overflow-wrap:anywhere}
main>section>.heading,#access>h1{margin-bottom:24px}
.domainTitle { display: flex; align-items: center; gap: 12px; }
.domainIcon { width: 36px; height: 36px; padding: 3px; flex: none; fill: currentColor; }
#projects .domainIcon { color: var(--cai-brand-indigo); }
.dark #projects .domainIcon { color: #a5a4ff; }
#companies .domainIcon, #access .domainIcon { color: var(--cai-brand-green); }
#activity .domainIcon { color: var(--primary); }
#detail h1,#editor h1{font-size:28px}
#side i,.iconButton i,.listing i{display:flex}
.iconButton{padding:0;width:44px;height:44px;flex:none}
#closeNav,#openNav,#sectionSelect{display:none}
.listing{border:1px solid var(--border);border-radius:12px;padding:12px;background:var(--card);margin-bottom:16px}
.listing label{position:relative;min-width:0}
.searchBox{flex:1 1 220px}.filterBox{flex:0 1 192px}
.listing i{position:absolute;left:12px;top:50%;transform:translateY(-50%);pointer-events:none;opacity:.7}
.listing i svg{width:17px;height:17px}
.listing input,.listing select{background:var(--background);width:100%;min-height:40px;padding-left:38px}
.empty{margin:16px;border:1px dashed var(--border);border-radius:12px;text-align:center;color:var(--muted)}
.clearFilters{display:flex;margin:0 auto 16px}
button,.btn{transition:background-color var(--cai-duration-fast),border-color var(--cai-duration-fast)}
.tabs{gap:20px}.tabs button{min-height:44px;padding-inline:2px;color:var(--muted);font-weight:500}.tabs button[aria-current=page]{color:var(--foreground);box-shadow:inset 0 -2px var(--primary)}
form input,form select{min-height:44px}.primary{min-height:44px;padding:10px 16px;line-height:20px}
#feedback:not(:empty){position:fixed;z-index:4;bottom:max(env(safe-area-inset-bottom),16px);left:16px;margin:0;width:min(330px,calc(100vw - 32px));padding:14px;border:1px solid var(--border);border-radius:12px;box-shadow:var(--cai-surface-shadow);font-size:13px}

@media(max-width:1023px){#projectTabs{display:none}#sectionSelect{display:block;width:100%;margin:16px 0 24px}}
@media(max-width:767px){
 .shell{display:block}#openNav,#closeNav{display:inline-flex}#closeNav{margin-left:auto}
 #navDialog{position:fixed;inset:0 auto 0 0;margin:0;padding:0;width:min(320px,88vw);height:100dvh;max-height:100dvh;border:0;border-radius:0}
 #sidebar{height:100%}header{padding:0 12px;gap:10px}header strong{font-size:17px}
 .product{padding-left:10px}.account span{display:none}main{padding:24px 16px 64px}
 h1,#detail h1,#editor h1{font-size:24px}
 .form,.pad,.signin{padding:16px}.row{padding:14px}.row .actions{gap:6px}
 .listing{align-items:stretch}.filterBox{flex:1 1 140px}.listing small{align-self:center}
 button,.btn,select{min-height:44px}
 #dialog{position:fixed;inset:auto 0 0;width:100%;max-width:100%;max-height:92dvh;margin:0;border-radius:16px 16px 0 0;padding-bottom:max(24px,env(safe-area-inset-bottom))}
}

/* Shared console shell and data grid, matched to the desktop workspace. */
#sidebar{position:sticky;top:0;height:100dvh;display:flex;flex-direction:column;min-width:0}
.brand{padding-inline:16px;gap:10px;flex:none}
.shellIcon{border:0;background:transparent;width:36px;height:36px;min-height:36px;padding:0;color:var(--muted)}
.shellIcon i,.accountBadge i,.heading .btn i{display:flex}.shellIcon svg{width:17px;height:17px;opacity:.7}#collapseNav,#switchTheme{margin-left:auto}
header{background:var(--card);padding-inline:24px}
header strong{font-size:20px;font-weight:600;letter-spacing:-.035em}
header>div:first-of-type>span{text-transform:none;letter-spacing:normal;font-weight:400;font-size:12px;margin-top:0}
#side{padding:12px 8px;gap:1px;overflow:auto}.navGroup{font-size:10px;line-height:18px;text-transform:uppercase;letter-spacing:.11em;font-weight:600;color:var(--muted);padding:4px 12px 2px}.navGroup:not(:first-child){padding-top:16px}
#side a{min-height:32px;padding:5px 12px;gap:12px;font-size:14px;font-weight:400;border-radius:8px}
#side i svg{width:18px;height:18px}
#side a[aria-current=page]{background:color-mix(in srgb,var(--primary) 10%,var(--card));color:var(--foreground);box-shadow:inset 2px 0 var(--primary);font-weight:500}

#account{margin:auto 0 0;border-top:1px solid var(--border);padding:12px;min-height:68px;gap:8px}
.accountBadge{width:36px;height:36px;background:var(--muted-bg);border-radius:50%;display:grid;place-items:center;flex:none}
.accountBadge svg{color:var(--muted);width:22px;height:22px}.accountText{min-width:0;flex:1}.accountText strong,.accountText small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.accountText strong{font-size:13px;font-weight:500}.accountText small{font-size:11px}
main{max-width:1240px;padding:32px clamp(16px,3vw,40px) 64px}
.projectIntro p{max-width:768px;color:var(--muted);font-size:14px;line-height:24px;margin:6px 0 0 48px}
#projects>.heading{align-items:flex-end;margin-bottom:24px}.heading .btn{gap:8px}.heading .btn svg{width:16px;height:16px}
#projectTable{overflow:auto}.tableScroll table{border-collapse:collapse;text-align:left;width:100%;font-size:14px}.tableScroll th,.tableScroll td{padding:14px 16px;border-bottom:1px solid var(--border);vertical-align:top}
.tableScroll tbody tr:is(:hover,:focus-within){background:var(--muted-bg)}.tableScroll th{background:var(--muted-bg);color:var(--muted);font-size:12px;font-weight:500}.tableScroll tr:last-child td{border:0}.tableScroll td:first-child{width:55%}.tableScroll td:first-child a{color:var(--primary-ink);font-weight:500;overflow-wrap:anywhere}.tableScroll td p{font-size:12px;color:var(--muted);overflow-wrap:anywhere}.tableScroll td:nth-child(3){color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}.state{font-size:11px;padding:3px 8px;border-radius:20px;background:var(--muted-bg);white-space:nowrap}.state.active{background:color-mix(in srgb,var(--success) 10%,var(--card));color:var(--success)}
@media(min-width:768px){
 .shell.compact{grid-template-columns:72px minmax(0,1fr)}.compact .brand{padding:0;justify-content:center}.compact .brand b,.compact .navGroup,.compact .accountText,.compact .accountBadge{display:none}.compact .brand img{width:30px}.compact #collapseNav{width:20px;margin:0}.compact .brand{gap:2px}.compact #side a{justify-content:center;font-size:0;gap:0}.compact #account{justify-content:center}
}
@media(max-width:767px){#collapseNav{display:none}main,header{padding-inline:16px}.projectIntro p{margin-left:0}.tableScroll th,.tableScroll td{padding:8px}.tableScroll td:first-child{width:50%}.tableScroll td:nth-child(3),.tableScroll th:nth-child(3){display:none}#side a{min-height:44px}#projects>.heading{align-items:flex-start}}
#tenantPicker{font-size:20px;font-weight:600;letter-spacing:-.035em;min-height:32px;max-width:100%;border:0;background:transparent;padding:2px 4px 2px 0;cursor:pointer}
#tenantPicker option{color:var(--foreground);background:var(--card)}

.knowledgePreview{font:inherit;white-space:pre-wrap;overflow-wrap:anywhere;max-height:52vh;overflow:auto;padding:12px;background:var(--muted-bg)}

#dialog:has(.editorDesk){width:min(1120px,96vw);max-width:96vw;padding:0}
#dialog:has(.editorDesk) #modal{gap:0}
#dialog:has(.editorDesk) #dialogTitle,#dialog:has(.editorDesk) #modal>.actions,#dialog:has(.editorDesk) #dialogError:not(:empty){padding:14px 22px}
#dialog:has(.editorDesk) #fields{gap:0}
#dialog:has(.editorDesk) #fields>label,#dialog:has(.editorDesk) .editionSettings{padding:10px 22px}
#dialog:has(.editorDesk) #fields>button{justify-self:start;margin:8px 22px}
.editorDesk{display:grid;grid-template-columns:minmax(0,3fr) minmax(260px,2fr);border-block:1px solid var(--border);min-width:0}
.editorPage,.sourcePane{max-height:54vh;overflow:auto;min-width:0}
.editorDesk .sourcePane{width:auto;position:static;border:0;border-inline-start:1px solid var(--border);padding:20px;background:var(--muted-bg);color:var(--foreground)}
.sourcePane:focus-visible{outline:2px solid var(--ring);outline-offset:-2px}
.sourceHeading,.blockHeader{display:flex;align-items:center;justify-content:space-between;gap:12px}
.sourceHeading h3{font-size:16px;font-weight:600;margin:0}
.sourceMeta,.quoteStatus{font-size:12px;color:var(--muted);margin-block:6px 12px}
.originalPassage{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65}
.originalPassage mark{background:color-mix(in srgb,var(--primary) 25%,var(--card));color:inherit}
.interviewContext{margin:14px 0;border-block:1px solid var(--border);padding:10px 0}
.interviewContext summary{cursor:pointer;font-weight:500}
.interviewContext div>p{white-space:pre-wrap;overflow-wrap:anywhere;margin:4px 0 12px}
.interviewContext[open]>div{margin-top:12px}
.manuscriptBlock{padding:16px 22px;border-bottom:1px solid var(--border)}
.manuscriptBlock:last-child{border:0}
.structuredReview{margin-top:12px;font-size:.875rem}
.structuredReview summary{cursor:pointer;color:var(--muted)}
.structuredReview label,.structuredReview button{margin-top:8px}
.structuredReview .structureApproval{display:flex;align-items:center;gap:6px}
.structureApproval input{width:auto}
.relationRow{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:8px}
.relationRow select{min-width:0;max-width:100%}
.relationRow button{margin:0}
.manuscriptBlock.omitted .structuredReview{display:none}
.manuscriptBlock.omitted .richHost{opacity:.6}
.blockHeader select{min-height:30px;padding:2px 8px;font-size:12px}
.richTools{position:sticky;top:0;z-index:1;display:flex;align-items:center;gap:4px;padding:6px 16px;border-bottom:1px solid var(--border);background:var(--card)}
.richTools button{min-height:32px;min-width:32px;padding:2px 5px}
.richTools [aria-label=Bold]{font-weight:600}
.richTools [aria-label=Italic]{font-style:italic}
.ProseMirror{padding:8px 2px;min-height:44px;outline:none;line-height:1.65;overflow-wrap:anywhere;white-space:pre-wrap}
.ProseMirror:focus-visible{box-shadow:inset 0 -2px var(--ring)}
.ProseMirror p+p{margin-top:.4em}
.ProseMirror ul,.ProseMirror ol{padding-inline-start:24px}
.evidenceLinks{display:flex;gap:4px}
.evidenceLinks a{display:inline-block;padding:3px 6px;font-size:12px;font-weight:500;text-decoration:underline}
.evidenceLinks a[aria-current=true]{background:var(--muted-bg)}
.editionSettings label{margin-top:10px}
.knowledgePreview{margin:0 20px 8px}
@media(max-width:767px){
  #dialog:has(.editorDesk){width:100%;max-width:100%;overflow:auto}
  .editorDesk{grid-template-columns:minmax(0,1fr)}
  .editorPage{max-height:42dvh}
  .editorDesk .sourcePane{border-inline-start:0;border-top:1px solid var(--border);max-height:27dvh;padding:12px 16px}
  .manuscriptBlock{padding:10px 16px}
}

.collectionSection+.collectionSection{margin-top:16px}
.collectionSection>.heading{margin:0;padding:14px 20px;border-bottom:1px solid var(--border)}
.collectionSection h3{margin:0;font-size:16px;font-weight:600}
.memberCheck{display:flex;align-items:center;gap:8px;margin-block:6px}
.memberCheck input{min-height:0}


#briefingQuotes{margin-block:8px 16px}
#briefingQuotes summary{cursor:pointer}
#briefingQuotes>div{margin-block:12px;padding-inline-start:14px;border-inline-start:2px solid var(--border)}
#briefingQuotes blockquote{margin:4px 0;color:var(--muted)}

.diagnosticDetails dd{overflow-wrap:anywhere;margin:0 0 .65rem}
.iconDefs{position:absolute;pointer-events:none}

/* Working content and secondary actions */
h3 { font-size: 16px; font-weight: 600; }
input, textarea, select { font-weight: 400; }
body { color-scheme: light; }
.dark body { color-scheme: dark; }

form label { gap: 6px; }
.form :is(input:not([type=file]), textarea), #fields > label :is(input, select, textarea) {
  padding: 10px 14px;
  line-height: 22px;
}
.form textarea { min-height: 120px; }
:is(input, textarea)::placeholder { color: var(--muted); opacity: 1; }
:is(input, select, textarea):focus { border-color: var(--ring); }
:is(input, select, textarea)[aria-invalid=true] { border-color: var(--danger); }
input:is([type=checkbox], [type=radio]) { accent-color: var(--primary); }
#total, .pager span { font-variant-numeric: tabular-nums; }
.row > div:first-child { flex: 1 1 200px; }
.row .actions > button:not(.primary) { border-color: transparent; }
.row .actions > button.danger { color: var(--danger); }
.tableScroll td:first-child a:hover { text-decoration: underline; }
#side a:not([aria-current]):hover { background: var(--muted-bg); }

#detail > .heading { margin-bottom: 8px; }
.lead { max-width: 72ch; line-height: 1.65; }
#brief dl { max-width: 72ch; }

#brief dt { font-size: 13px; font-weight: 500; }
#brief dd { line-height: 1.65; }
#brief dd:not(:last-child) { margin-bottom: 20px; }

.form { margin-top: 0; min-width: 0; }
.form fieldset {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 12px 0 4px;
  border: 0;
  border-top: 1px solid var(--border);
}
.form legend { padding: 0 8px 0 0; font-weight: 500; }
.form legend small { margin-inline-start: 4px; }
input[type=file] { max-width: 100%; font-weight: 400; }
input::file-selector-button {
  margin-inline-end: 8px;
  border: 0;
  border-radius: var(--cai-radius-control);
  padding: 4px 8px;
  background: var(--muted-bg);
  color: var(--foreground);
  font: inherit;
  cursor: pointer;
}
.form fieldset > button { justify-self: start; }
.form fieldset > p:empty { display: none; }
.form .actions { border-top: 1px solid var(--border); padding-top: 16px; }

#result > p, #jobState:not(:empty) { padding: 12px 20px; color: var(--muted); }
#result > button { margin: 0 20px 12px; }
#result article:first-of-type, #knowledge .toolbar:last-child { border-top: 1px solid var(--border); }
#knowledge .toolbar:last-child { border-bottom: 0; }
.sources button { border-color: transparent; background: var(--muted-bg); color: var(--primary-ink); }

@media (max-width: 639px) {
  #tenantPicker { font-size: 17px; }
  header > div { min-width: 0; }
  header strong { overflow-wrap: anywhere; }
  .row .actions { width: 100%; }
}

/* Administration */
.projectTitle { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; min-width: 0; }
#detail > .heading { align-items: flex-start; }
#detail > .heading > .projectTitle { flex: 1 1 240px; }
#access .pad .heading { margin: 0; }
#passState { margin-top: 4px; overflow-wrap: anywhere; }
.activityOperations { margin-bottom: 24px; }
.activityOperations .meta { margin: 4px 0 12px; }
#eventsTitle { margin-bottom: 12px; }
.row .actions > span { color: var(--muted); overflow-wrap: anywhere; }
.row .actions { min-width: 0; }
#projectTable th:nth-child(2), #projectTable td:nth-child(2) { width: 20%; }
#projectTable td:first-child > a { display: inline-block; }
#sources details > summary { overflow-wrap: anywhere; }
#sources > p { padding: 12px 20px; background: var(--muted-bg); }
#sources details > button { margin-top: 12px; }
#result > p.empty { margin: 0; border: 0; padding: 24px 20px; }
.synthesisActions { justify-content: flex-end; }
#versionToolbar label { align-self: center; }
#modal > .actions { justify-content: flex-end; }
#accept.destructive { color: var(--danger); background: var(--card); border-color: var(--danger); }
#accept.destructive:hover:not(:disabled) { background: color-mix(in srgb,var(--danger) 10%,var(--card)); }
.inlineState { padding: 16px 20px; border: 1px solid var(--border); border-radius: var(--cai-radius-surface); background: var(--card); }
.inlineState button { margin-top: 8px; }
.routeStatus { color: var(--muted); margin-bottom: 12px; }
#collectionReport > p { color: var(--muted); }

@media (max-width: 639px) {
  #detail > .heading > .projectTitle { flex-basis: 100%; }
  .synthesisActions { justify-content: flex-start; }
}

/* Project workflow and actions */
.actionIcon { width: 17px; height: 17px; flex: none; fill: currentColor; }
button:has(> .actionIcon) { gap: 8px; }
.projectNavigation { margin: 24px 0; }
.flowNavigation { display: flex; flex-wrap: wrap; gap: 8px; }
.flowNavigation button { border-color: transparent; background: transparent; color: var(--muted); font-weight: 500; }
.flowNavigation button[aria-current=true] {
  background: color-mix(in srgb, var(--primary) 10%, var(--card));
  border-color: color-mix(in srgb, var(--primary) 32%, var(--border));
  color: var(--foreground);
}
.projectNavigation .tabs { margin: 12px 0 0; }
.projectNavigation #sectionSelect { margin: 0; }
.projectNavigation:has(#projectTabs[hidden]) { padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.controlSections > section + section, .reportSections > section + section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.controlSections h3, .reportSections h3 { margin: 0 0 8px; }
.controlSections .actions { margin-top: 12px; }
#detail .meta { line-height: 1.55; }
.projectMetrics { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 12px 0 16px; }
.projectMetrics dd { font-size: 24px; font-variant-numeric: tabular-nums; }
.synthesisActions:has(#reviewDraft[hidden]) { display: none; }

@media (max-width: 1023px) {
  .projectNavigation .flowNavigation { display: none; }
  .projectNavigation:has(#projectTabs[hidden]) { padding-bottom: 0; border-bottom: 0; }
}

/* Selects retain native keyboard navigation and form behavior. */
select {
  max-width: 100%;
  cursor: pointer;
}
select:disabled { cursor: default; }
#tenantPicker {
  border: 1px solid transparent;
  border-radius: var(--cai-radius-control);
  padding-inline: 8px;
  margin-inline-start: -8px;
}
#tenantPicker:hover, #tenantPicker:focus-visible { background-color: var(--muted-bg); }

@supports (appearance: base-select) and selector(select::picker(select)) {
  select, select::picker(select) { appearance: base-select; }
  select {
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-inline-end: 12px;
  }
  select:not(:disabled):hover {
    background-color: var(--muted-bg);
  }
  select::picker-icon {
    content: "";
    width: 7px;
    height: 7px;
    margin-inline-start: auto;
    margin-inline-end: 2px;
    border: solid var(--muted);
    border-width: 0 1.5px 1.5px 0;
    transform: translateY(-2px) rotate(45deg);
    flex: none;
  }
  select:open::picker-icon { transform: translateY(2px) rotate(225deg); }
  select::picker(select) {
    margin-block: 6px;
    max-width: calc(100vw - 24px);
    max-height: min(360px, 60dvh);
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: var(--cai-radius-surface);
    background: var(--card);
    color: var(--foreground);
    box-shadow: var(--cai-surface-shadow);
    font: 14px/20px var(--cai-font-sans);
  }
  select option {
    gap: 12px;
    min-height: 36px;
    padding: 8px 10px;
    border-radius: 6px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  select option:checked {
    background: color-mix(in srgb, var(--primary) 12%, var(--card));
    color: var(--primary-ink);
    font-weight: 500;
  }
  select option:not(:disabled):is(:hover, :focus-visible) {
    background: var(--muted-bg);
  }
  select option::checkmark { order: 1; margin-inline-start: auto; }
  select optgroup > legend {
    padding: 8px 10px 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
  }
}

#designFields > details { margin-block: 12px; }
#designFields details > :is(label,fieldset,.actions,button) { margin-top: 12px; }
.documentSection { padding: 20px; border-block-start: 1px solid var(--border); }
.documentSection h3 { margin: 0 0 8px; }
.documentSection details { margin: 12px 0; }
.documentSection article { padding-inline: 0; }
.readerManuscript section + section { margin-top: 24px; border-top: 1px solid var(--border); padding-top: 16px; }
.readerManuscript label { margin-top: 12px; }
.readerManuscript details { margin: 8px 0; }
.readerManuscript textarea { min-height: 100px; }
#dialog:has(.readerManuscript) { width: min(760px,96vw); max-width: 96vw; }
#designFields input[type=checkbox] { width: auto; min-height: 0; }

#briefSteps, #create.projectWizard { max-width: 1040px; }
#briefSteps { margin-bottom: 16px; }
#briefSteps ol {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  list-style: none;
  gap: 0;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--border);
}
#briefSteps button {
  width: 100%;
  min-height: 49px;
  justify-content: flex-start;
  gap: 9px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px 8px 0 0;
  color: var(--muted);
  background: transparent;
  text-align: left;
}
#briefSteps button:hover:not(:disabled) { background: var(--muted-bg); color: var(--foreground); }
#briefSteps button:disabled { opacity: 1; }
#briefSteps button:not(:disabled) span { border-color: var(--primary-ink); color: var(--primary-ink); }
#briefSteps button span {
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  height: 22px;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 12px;
}
#briefSteps button[aria-current=step] {
  box-shadow: inset 0 -2px var(--primary);
  color: var(--foreground);
  font-weight: 600;
}
#briefSteps button[aria-current=step] span {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}
.wizardPanel { display: grid; gap: 16px; min-width: 0; }
#create:not(.projectWizard) .wizardHeading { display: none; }
.wizardPanel h2:focus { outline: none; }
.wizardIntro { color: var(--muted); }
.briefPaths,.projectWizard .briefColumns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.briefPaths { margin-top: 16px; }
.briefPath {
  min-height: 104px;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: start;
  gap: 14px;
  padding: 20px 18px;
  text-align: left;
}
.briefPath strong,.briefPath span span { display: block; }
.briefPath strong { font-weight: 600; }
.briefPath span span { color: var(--muted); font-size: 13px; margin-top: 4px; }
.briefPath > .actionIcon { width: 22px; height: 22px; color: var(--primary-ink); }
.briefPath:hover .briefPathArrow { color: var(--foreground); }
.projectWizard .wizardPanel fieldset { align-content: start; }
.projectWizard .wizardPanel textarea { min-height: 85px; }
#create:not(.projectWizard) .briefColumns > * + * { margin-top: 12px; }
.briefDesignActions { display: flex; flex-wrap: wrap; gap: 8px; }
#briefInterview { display: grid; gap: 12px; }
.briefingRoom { display: block; width: 100%; height: clamp(310px,calc(100dvh - 480px),600px); border: 1px solid var(--border); border-radius: 8px; }
#briefInterviewStatus:empty { display: none; }
#briefInterviewStatus { color: var(--muted); }
#briefInterviewStatus.error,#briefStepError { color: var(--danger); }
.wizardActions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.wizardActions > button:first-child { margin-inline-end: auto; }
.wizardActions > button { gap: 8px; }
#briefReview > section { min-width: 0; border-top: 1px solid var(--border); padding-top: 12px; }
#briefReview h3 { margin: 0 0 12px; }
#briefReview dd { margin: 2px 0 12px; white-space: pre-line; overflow-wrap: anywhere; }
#briefReview dd:last-child { margin-bottom: 0; }
@media (max-width: 700px) {
  .briefPaths,.projectWizard .briefColumns { grid-template-columns: minmax(0,1fr); }
  #briefSteps button { padding-inline: 4px; flex-wrap: wrap; gap: 4px 8px; }
}
.collectionSection > details { padding: 12px 20px; border-bottom: 1px solid var(--border); }
.readerEdition { line-height: 1.6; }
.readerEdition h3 { margin: 1.4em 0 .4em; font-weight: 500; }
.readerEdition p { white-space: pre-line; }

/* Operator workspace */
.workflowDetails { border-top:1px solid var(--border); padding-block:14px; }
.workflowDetails > summary, .collectionSection > summary, .attentionGroup > summary { cursor:pointer; font-weight:500; }
.workflowDetails[open] > summary { margin-bottom:14px; }
#briefExtras fieldset { margin:14px 0; }
#dashboard { min-width:0; }
.overviewLayout { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.overviewHero,.overviewCard { padding:clamp(16px,2.5vw,28px); min-width:0; }
.overviewHero { grid-column:1/-1; }
.overviewHero h2,.overviewCard h3 { margin:0; }
.overviewHero > p { margin:4px 0 16px; }
.projectStages { list-style:none; margin:24px 0 0; padding:0; display:grid; grid-template-columns:repeat(4,1fr); }
.projectStages li { position:relative; padding-top:16px; min-width:0; }
.projectStages li::before { content:''; position:absolute; top:5px; left:6px; right:-6px; height:2px; background:var(--border); }
.projectStages li:last-child::before { display:none; }
.projectStages li::after { content:''; position:absolute; top:1px; left:2px; width:8px; height:8px; border-radius:50%; border:1px solid var(--muted); background:var(--card); }
.projectStages li.reached::after { background:var(--primary); border-color:var(--primary); }
.projectStages li[aria-current=step]::after { outline:2px solid var(--primary); outline-offset:2px; }
.projectStages button,.coverageMeter { background:transparent; border:0; border-radius:4px; text-align:left; padding:4px 2px; height:auto; }
.projectStages button { display:grid; justify-items:start; gap:1px; white-space:normal; }
.projectStages small,.collectionSection summary small { color:var(--muted); font-weight:400; }
.coverageMeter { margin-top:14px; width:100%; display:grid; grid-template-columns:1fr auto; gap:7px; }
.coverageMeter span { font-variant-numeric:tabular-nums; }
.coverageMeter progress { grid-column:1/-1; width:100%; height:7px; accent-color:var(--primary); appearance:none; background:var(--muted-bg); border:none; border-radius:5px; overflow:hidden; }
.coverageMeter progress::-webkit-progress-bar { background:var(--muted-bg); }
.coverageMeter progress::-webkit-progress-value { background:var(--primary); border-radius:5px; }
.coverageMeter progress::-moz-progress-bar { background:var(--primary); }
.attentionGroup,.collectionSection > summary { padding-block:12px; }
.attentionGroup + .attentionGroup { border-top:1px solid var(--border); }
.attentionGroup ul { padding-inline-start:20px; overflow-wrap:anywhere; }
.collectionSection > summary,.collectionSection > .actions { padding-inline:20px; }
.collectionSection summary small { margin-inline-start:10px; }
.reportSections > .workflowDetails:first-of-type { margin-top:24px; }
@media(max-width:1023px){
  .projectNavigation .flowNavigation { display:flex; }
  .projectNavigation #sectionSelect:not([hidden]) { margin-top:10px; }
}
@media(max-width:680px){
  .overviewLayout { grid-template-columns:1fr; }
  .projectStages { grid-template-columns:1fr; margin-top:18px; }
  .projectStages li { padding:0 0 0 20px; }
  .projectStages li::after { top:16px; }
  .projectStages li::before { left:6px; top:17px; bottom:-17px; right:auto; width:2px; height:auto; }
  .projectStages button { grid-template-columns:1fr auto; gap:12px; width:100%; align-items:center; min-height:40px; }
  .flowNavigation { gap:4px; }
  .flowNavigation button { padding:6px 8px; }
}
.attentionPreview { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; color:var(--muted); margin:5px 0 0 16px; font-weight:400; }
.attentionGroup[open] .attentionPreview { display:none; }

#dialog:has(.evidenceMapHost){width:min(1440px,97vw);max-width:97vw;max-height:96dvh}
.evidenceMapHost,.mapEntry{grid-column:1/-1;border-bottom:1px solid var(--border);min-width:0}
.mapEntry{display:flex;gap:12px;align-items:center;padding:12px 18px}
.mapEntry p{color:var(--muted)}
.editorDesk:has(.evidenceMapHost:not([hidden])) .editorPage,
.editorDesk:has(.evidenceMapHost:not([hidden])) .sourcePane{max-height:34dvh;min-height:154px}
.editorDesk:has(.evidenceMapHost:not([hidden])) .editionSettings{border-bottom:1px solid var(--border)}
.deliveryHeading{display:flex;align-items:baseline;flex-wrap:wrap;justify-content:space-between;gap:8px;margin-bottom:14px}
.deliveryHeading h3,.deliveryCard h4{margin:0;letter-spacing:-.02em}
.deliveryCards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:14px}
.deliveryCard{display:grid;align-content:start;gap:10px;padding:20px;border-radius:12px;border:1px solid var(--border);background:linear-gradient(160deg,color-mix(in srgb,var(--primary) 7%,var(--card)),var(--card) 62%)}
.deliveryCard h4{font-size:18px;font-weight:600}
.deliveryCard .actions{margin-top:6px}
.deliveryCards+.actions:not(:empty){margin-top:14px}
#dialog:has(.deliveryReader){width:min(1160px,96vw);max-width:96vw}
.deliveryReader,.readerLayout,.readerViewport{min-width:0}
.readerNavigation{display:flex;flex-wrap:wrap;gap:6px;padding-bottom:10px;border-bottom:1px solid var(--border)}
.readerNavigation button[aria-pressed=true]{color:var(--foreground);border-color:var(--border);background:var(--muted-bg);box-shadow:inset 0 -2px var(--primary)}
.readerNavigation .readerDownload{margin-inline-start:auto}
.readerLayout{display:grid;grid-template-columns:minmax(160px,22%) minmax(0,1fr)}
.readerLayout:has(.readerIndex[hidden]){grid-template-columns:minmax(0,1fr)}
.readerIndex{border-inline-end:1px solid var(--border);overflow:auto;max-height:58dvh;padding:14px 9px 14px 0}
.readerIndex p{padding:0 8px 6px;color:var(--muted);font-size:12px}
.readerIndex button{width:100%;justify-content:flex-start;text-align:left;min-height:34px;padding:4px 8px;overflow-wrap:anywhere}
.readerViewport{max-height:58dvh;overflow:auto;scrollbar-width:thin;background:var(--muted-bg);padding:12px}
.readerEdition{width:min(100%,var(--delivery-page-width));margin-inline:auto;padding:28px min(var(--delivery-page-side),8.095%) 32px;background:var(--card)}
.readerEdition h3{scroll-margin-top:12px}
.readerIssue{padding:12px 0;border-bottom:1px solid var(--border)}
.readerIssue button{margin-top:4px}
@media(max-width:760px){
  .editorDesk:has(.evidenceMapHost:not([hidden])){grid-template-columns:minmax(0,1fr)}
  .editorDesk:has(.evidenceMapHost:not([hidden])) .editorPage,
  .editorDesk:has(.evidenceMapHost:not([hidden])) .sourcePane{max-height:45dvh}
  .readerLayout{grid-template-columns:minmax(0,1fr)}
  .readerIndex{display:flex;align-items:center;gap:3px;max-width:100%;overflow:auto;border-inline-end:0;border-bottom:1px solid var(--border);padding:4px 0}
  .readerIndex p,.readerIndex button{flex:none;width:auto;max-width:200px}
  .readerIndex p{padding:0 6px}
  .readerNavigation .readerDownload{margin-inline-start:0}
}

/* Evidence review spans the project content area and keeps its tools within each pane. */
main:has(#detail:not([hidden]) #knowledge:not([hidden])){max-width:1680px;padding-inline:clamp(14px,2.2vw,36px)}
#detail:has(#knowledge:not([hidden])) #objective{display:none}
#detail:has(#knowledge:not([hidden])) .projectNavigation{margin-block:14px;padding-bottom:7px}
.reviewHeading,.reviewToolbar,.reviewSave,.statementDecisions{display:flex;align-items:center;gap:8px;min-width:0}
.reviewHeading{justify-content:space-between;margin-bottom:12px}
.reviewHeading h2{font-size:22px;letter-spacing:-.03em}
#jobState:empty{display:none}
.reviewWorkbench{border:1px solid var(--border);border-radius:12px;background:var(--card);min-width:0}
.reviewToolbar{padding:9px 12px;flex-wrap:wrap}
.reviewDraftInfo{display:grid;gap:0;margin-inline-end:auto;min-width:0}
.reviewDraftInfo strong{font-weight:550}
.reviewDraftInfo small{font-size:11px}
.reviewSave{flex-wrap:wrap}
.reviewSave small{font-size:11px}
.reviewToolbar button,.statementDecisions button{min-height:32px;padding:4px 9px}
.reviewFeedback,.reviewNotes{border-top:1px solid var(--border);padding:9px 12px}
.reviewNotes summary{cursor:pointer;color:var(--muted);width:fit-content}
.reviewNotes label{margin-top:8px}
#knowledge>.workflowDetails{margin-top:10px}
#reviewWorkspace>p{padding:14px;background:var(--card);border:1px solid var(--border);border-radius:10px}
.editorDeskInline:has(.evidenceMapHost:not([hidden])){
  display:grid;grid-template-columns:minmax(185px,.96fr) minmax(300px,2.25fr) minmax(205px,1.15fr);
  grid-template-rows:minmax(218px,28dvh) minmax(240px,31dvh);
  grid-template-areas:"queue map sources" "queue editor sources";
}
.editorDeskInline .editorPage{grid-area:editor;min-width:0;min-height:0}
.editorDeskInline .sourcePane{grid-area:sources;min-width:0;min-height:0}
.editorDeskInline:not(:has(.evidenceMapHost:not([hidden]))){grid-template-areas:"entry entry" "editor sources"}
.editorDeskInline .mapEntry{grid-area:entry}
.editorDeskInline:has(.evidenceMapHost:not([hidden])) .editorPage,
.editorDeskInline:has(.evidenceMapHost:not([hidden])) .sourcePane{max-height:none;min-height:0}
.editorDeskInline:has(.evidenceMapHost:not([hidden])) .editorPage{border-top:1px solid var(--border)}
.editorDeskInline .sourcePane{padding:12px;background:var(--muted-bg)}
.editorDeskInline .reviewPaneTitle{display:inline-flex;margin:0;padding:11px 12px 3px;font-size:15px;font-weight:600}
.editorDeskInline .richTools{padding:5px 10px}
.editorDeskInline .richTools{flex-wrap:wrap}
.editorDeskInline .manuscriptBlock{padding:10px 12px}
.editorDeskInline .blockHeader{flex-wrap:wrap}
.editorDeskInline .statementDecisions button[aria-pressed=true]{border-color:var(--primary);background:var(--muted-bg)}
.editorDeskInline .evidenceLinks{flex-wrap:wrap;gap:6px;margin-top:7px}
.editorDeskInline .evidenceLinks a{max-width:100%;border:1px solid var(--border);border-radius:6px;text-decoration:none;overflow-wrap:anywhere}
.editorDeskInline .evidenceLinks a[aria-current=true]{border-color:var(--primary)}
.editorDeskInline .editionSettings{padding:8px 12px;border-top:1px solid var(--border)}
.editorDeskInline .sourceHeading{align-items:baseline;flex-wrap:wrap;gap:4px}
.editorDeskInline .sourceHeading small{overflow-wrap:anywhere}
@media(max-width:1100px){
  .editorDeskInline:has(.evidenceMapHost:not([hidden])){
    grid-template-columns:repeat(12,minmax(0,1fr));
    grid-template-rows:300px minmax(255px,35dvh);
    grid-template-areas:
      "queue queue queue queue map map map map map map map map"
      "editor editor editor editor editor editor editor sources sources sources sources sources";
  }
  .editorDeskInline .sourcePane{border-top:1px solid var(--border)}
}
@media(max-width:700px){
  .reviewHeading h2{font-size:18px}
  .reviewToolbar{align-items:flex-start}
  .reviewDraftInfo{flex-basis:100%}
  .reviewSave{gap:5px;margin-inline-end:auto}
  .editorDeskInline:has(.evidenceMapHost:not([hidden])){
    grid-template-columns:minmax(0,1fr);grid-template-rows:auto;
    grid-template-areas:"queue" "editor" "sources" "map";
  }
  .editorDeskInline:not(:has(.evidenceMapHost:not([hidden]))){grid-template-areas:"entry" "editor" "sources"}
  .editorDeskInline:has(.evidenceMapHost:not([hidden])) .editorPage,
  .editorDeskInline:has(.evidenceMapHost:not([hidden])) .sourcePane{max-height:370px}
  .editorDeskInline .mapExplore{border-top:1px solid var(--border)}
  .editorDeskInline .sourcePane{border-inline-start:0}
}
.editorDeskInline .sourcePane button{min-height:33px;padding:5px 8px}
.editorDeskInline .sourcePane>.actions{gap:5px;margin-block:5px}
#reviewHeading{scroll-margin-top:14px}

header:has(#tenantPicker:not([hidden])) > div:has(#tenantPicker){
  display:grid;grid-template-columns:auto minmax(0,auto);align-items:center;gap:0 8px;min-width:0;
}
header:has(#tenantPicker:not([hidden])) > div > span{grid-column:1/-1}
#tenantPicker{margin-inline-start:0;max-width:min(36vw,330px);white-space:nowrap;text-overflow:ellipsis;min-width:0}
#knowledge>.workflowDetails>summary,#reporting .workflowDetails>summary{padding-inline:12px}
main:has(#detail:not([hidden]) #reporting:not([hidden])){max-width:1580px}
.deliveryDesk,.deliveryStage,.deliveryStageContent{min-width:0}
.deliverySteps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;list-style:none;margin:0 0 20px;padding:0;border:1px solid var(--border);border-radius:10px}
.deliverySteps li{display:flex;align-items:center;gap:10px;padding:12px;min-width:0}
.deliverySteps li+li{border-inline-start:1px solid var(--border)}
.deliverySteps li[aria-current=step]{background:var(--muted-bg);box-shadow:inset 0 -2px var(--primary)}
.deliverySteps li>span{display:grid;flex:none;place-items:center;border:1px solid var(--border);border-radius:50%;width:26px;height:26px;font-size:12px}
.deliverySteps li[aria-current=step]>span{background:var(--primary);color:var(--primary-foreground);border-color:var(--primary)}
.deliverySteps strong,.deliverySteps small{display:block;overflow-wrap:anywhere}
.deliveryStageHeading,.deliveryWorkbenchHeader,.deliveryReaderBar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.deliveryStageHeading{margin-bottom:12px}
.deliveryStageHeading h3,.deliveryWorkbenchHeader h3{margin:0;font-weight:600}
.deliveryStageHeading .actions,.deliveryWorkbenchHeader .actions{margin-inline-start:auto}
.deliveryReaderBar{padding-bottom:8px}
.deliveryStageContent .readerViewport,.deliveryStageContent .readerIndex{max-height:65dvh}
.deliveryWorkbench{border:1px solid var(--border);border-radius:10px;min-width:0}
.deliveryWorkbenchHeader{padding:10px 12px;border-bottom:1px solid var(--border);background:var(--card);position:sticky;top:0;z-index:3}
.deliveryWorkbench [role=alert]{padding:10px 14px;color:var(--danger)}
.deliveryDraftLayout{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(255px,1fr)}
.deliveryDraftLayout>section,.deliveryDraftLayout>aside{min-width:0;padding:14px}
.deliveryDraftLayout>aside{background:var(--muted-bg);border:0;border-inline-start:1px solid var(--border)}
.deliveryDraftLayout>section>h3,.deliveryDraftLayout>aside>h3{margin:0 0 10px;font-size:16px}
.deliveryDraftLayout details{margin-block:8px}
.deliveryDraftLayout summary{cursor:pointer}
.deliveryDraftLayout details[open]>summary{margin-bottom:8px}
.deliveryDraftLayout textarea{min-height:76px;width:100%}
.deliveryDraftLayout aside section+section{border-top:1px solid var(--border);margin-top:12px;padding-top:12px}
.deliveryDraftLayout aside h3{font-size:14px;margin:4px 0}
.deliveryWorkbench>.deliveryReader,.deliveryWorkbench>div:has(>.deliveryReader){border-top:1px solid var(--border);padding:12px;scroll-margin-top:64px}
.figureSettings{padding:8px 10px;border:1px solid var(--border);border-radius:8px}
.figureSettings fieldset{margin:8px 0;min-width:0}
.figureSettings label{align-items:flex-start;overflow-wrap:anywhere}
.documentVisual{margin:14px 0;padding:12px;background:var(--muted-bg)}
.documentVisual figcaption{font-weight:600;margin-bottom:8px}
.deliveryTable{overflow:auto;max-width:100%;margin-top:8px}
.deliveryTable table{width:100%;border-collapse:collapse;background:var(--card)}
.deliveryTable th,.deliveryTable td{padding:7px 9px;text-align:left;vertical-align:top}
.deliveryTable th+th,.deliveryTable td+td{border-inline-start:1px solid var(--border)}
.deliveryTable tbody tr{border-block-start:1px solid var(--border)}
.visualGraph{list-style:none;display:grid;gap:8px;padding:0;margin:0}
.visualGraph li{display:grid;grid-template-columns:minmax(0,1fr) minmax(74px,.5fr) minmax(0,1fr);align-items:center;gap:9px}
.visualGraph li>span:not(.visualRelation){border:1px solid var(--border);border-radius:6px;background:var(--card);padding:7px;overflow-wrap:anywhere}
.visualRelation{text-align:center;color:var(--muted);font-size:12px}
.visualRelation::after{content:'→';display:block;font-size:20px;color:var(--primary-ink)}
.visualTree ul{border-inline-start:1px solid var(--border);list-style:none;padding-inline-start:15px;margin-inline-start:8px}
.visualTree li{position:relative;margin-block:7px}
.visualTree li::before{content:'';position:absolute;inset-inline-start:-15px;top:.8em;width:10px;border-top:1px solid var(--border)}
@media(max-width:850px){
  .deliveryDraftLayout{grid-template-columns:minmax(0,1fr)}
  .deliveryDraftLayout>aside{border-top:1px solid var(--border);border-inline-start:0}
}
#reporting>.reportSections{overflow:visible}

#tenantPicker{padding-inline-start:0}
#detail:has(#reporting:not([hidden])) #objective{display:none}
#detail:has(#reporting:not([hidden])) .projectNavigation{margin-block:14px;padding-bottom:7px}
.readerEdition p{color:var(--foreground)}

.deliveryPrintFrame{position:fixed;inset:auto 0 0 auto;width:1px;height:1px;border:0;opacity:0;pointer-events:none}
.visualTree>strong{display:inline-block;padding:5px 9px;border:1px solid var(--border);border-radius:6px;background:var(--card)}
.visualTree li{display:grid;grid-template-columns:22px 1fr;gap:8px;align-items:start;padding:6px;background:var(--card);border:1px solid var(--border);border-radius:6px}
.treeNumber{text-align:center;color:var(--primary-ink);background:var(--muted-bg);border-radius:50%}

.signInCard{max-width:420px;margin:clamp(20px,8vh,100px) auto;padding:28px;display:grid;gap:16px}
.signInCard h1{font-size:25px}
.signInBrand{display:flex;align-items:center;gap:8px;font-weight:600}
.signInCard form{display:grid;gap:10px}
.signInCard button{width:100%;justify-content:center}
.signInCard form button{margin-top:2px}
.usersFilters select{min-width:180px}

.loginPage{max-width:none;min-height:100dvh;margin:0;padding:24px;display:grid;place-items:center;background:var(--background)}
.loginPage .signInCard{width:min(100%,420px);margin:0;padding:clamp(20px,4vw,34px)}
.loginPage .signInBrand img{width:34px;height:34px}
.loginPage #loginFeedback:not(:has(#feedback:not(:empty))){display:none}
.loginPage #feedback:not(:empty){position:static;width:auto;margin:0;padding:9px 11px;box-shadow:none}

.loginPage{position:relative;isolation:isolate;overflow:hidden;background:#fff;color-scheme:light}
.loginPage .loginGlass{position:absolute;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
.loginPage .loginGlass::before{
  content:"";position:absolute;top:44.5%;left:59%;translate:-50% -50%;height:131%;aspect-ratio:1;
  border-radius:51% 49% 54% 46% / 45% 54% 46% 55%;
  background:radial-gradient(ellipse at 45% 43%,#e4d3ef 10%,#aec4f7 42%,transparent 68%),
    conic-gradient(from 15deg,#272849,#5856d6,#01aeff,#273546,#29c750,#efb58f,#5856d6,#272849);
}
.loginPage .loginGlass canvas{position:absolute;inset:0;width:100%;height:100%}
.loginPage .signInCard{--card:#fff;--border:#e2e8f0;--foreground:#0f172a;--muted:#64748b;color:var(--foreground);box-shadow:0 20px 60px #18253c2b}
