.annual-workspace { display:grid; grid-template-columns:var(--navigation-expanded-width,276px) minmax(0,1fr); gap:var(--ui-space,25px); min-width:0; min-height:0; height:100%; color:#000; font:400 12px Raleway,sans-serif; }
.annual-workspace * { box-sizing:border-box; }
.annual-workspace [hidden] { display:none !important; }
.annual-menu { display:flex; flex-direction:column; min-height:0; min-width:0; gap:var(--ui-space,25px); border-right:1px solid var(--sidebar-brass-color,#e1c16e); padding-inline:var(--navigation-column-padding,25px); overflow:auto; }
.annual-menu nav { display:grid; grid-template-columns:minmax(0,1fr); gap:var(--navigation-row-gap); }
.annual-menu nav button { display:flex; align-items:center; text-align:left; border:0; border-radius:3px; background:transparent; padding:0 var(--ui-space-compact,10px); height:var(--navigation-row-height); flex:none; font:var(--navigation-label-weight,400) var(--navigation-label-size,14px) Raleway,sans-serif; color:inherit; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.annual-menu nav button::before { content:none; }
.annual-navigation-label { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.annual-menu nav button:hover { background:var(--navigation-hover-background); }
.annual-menu nav button[aria-current]:not(.navigation-selection-item) { background:var(--navigation-selection-background,linear-gradient(90deg,#0d200e,#203220)); color:#fff; }
.annual-year-selector { margin-top:auto; }
.annual-year-selector [data-aa-year-status]:empty { display:none; }
.annual-main { display:flex; flex-direction:column; min-width:0; min-height:0; gap:var(--ui-space,25px); }
.annual-message { margin:0; overflow-wrap:anywhere; }
.annual-message:empty { display:none; }
.annual-workspace-staff .annual-actions > .annual-message { flex:1; min-width:0; line-height:25px; text-align:right; }
.annual-workspace-staff .annual-message-fading { opacity:0; transition:opacity 2s; }
.annual-scroll { min-height:0; overflow:auto; flex:1; container-type:inline-size; }
.annual-workspace :is(h2,h3):not(.client-editor-section-heading):not(.system-standard-category-heading):not(.annual-question-category > h3) { font:600 12px Raleway,sans-serif; margin:0 0 var(--ui-space,25px); }
.annual-workspace-staff .client-editor-section-heading { margin:0 0 var(--ui-space,25px); }
.annual-workspace p { line-height:1.5; }
.annual-workspace label { display:block; line-height:25px; }
.annual-field { display:grid; grid-template-columns:var(--text-editor-label-width,150px) minmax(0,1fr); gap:var(--ui-space,25px); margin-bottom:var(--ui-space,25px); align-items:start; }
.annual-workspace :is(input:not([type=checkbox]),select,textarea) { min-width:0; width:100%; padding:3px var(--ui-space-compact,10px); min-height:25px; border:0; border-radius:3px; background:#f2f2f2; font:inherit; color:inherit; }
.annual-workspace input[type=checkbox] { width:15px; height:15px; }
.annual-workspace textarea { resize:vertical; }
.annual-workspace .actions:not(.system-standard-content-actions) { display:flex; flex-wrap:wrap; gap:var(--ui-space,25px); align-items:center; justify-content:flex-end; padding:0; }
.annual-workspace .annual-actions { flex:none; padding:0 !important; }
.annual-muted { color:#636963; font-size:10px; }
.annual-document-group { padding:var(--ui-space,25px) 0; border-top:1px solid #a6aaa6; }
.annual-document-group article { padding:var(--ui-space,25px); background:#fff; margin-top:var(--ui-space,25px); border-radius:3px; overflow-wrap:anywhere; }
.annual-document-group article label { margin-top:var(--ui-space,25px); }
.annual-document-group article .actions { margin-top:var(--ui-space-compact,10px); }
.annual-review { margin-top:var(--ui-space,25px); display:flex; flex-direction:column; align-items:flex-start; gap:var(--ui-space,25px); }
.annual-period-suggestions { margin-bottom:var(--ui-space,25px); }
.annual-workspace [data-aa-new-form]>.system-standard-selection-button { margin:var(--ui-space,25px) 0; }
.annual-contributor { display:flex; align-items:center; justify-content:space-between; gap:var(--ui-space,25px); padding:12px 0; overflow-wrap:anywhere; }
#clientAnnualAccountsPane, #workspace.has-annual #content { container-type:inline-size; }
.annual-review .system-standard-action-label { max-width:calc(100% - var(--action-label-offset) - var(--action-end-padding)); overflow:hidden; text-overflow:ellipsis; }
.annual-workspace input[type=file] { height:auto; padding:0; background:transparent; }
.annual-workspace input[type=file]::file-selector-button { height:var(--crm-raised-control-face-height); padding:0 15px; margin-right:var(--ui-space-compact,10px); border:0; border-radius:3px; background:var(--action-neutral); color:white; font:400 var(--action-label-size) Raleway,sans-serif; cursor:pointer; }
#workspace.has-annual main { display:flex; flex-direction:column; min-height:0; overflow:hidden; }
#workspace.has-annual #content { display:flex; flex-direction:column; min-height:0; flex:1; overflow:hidden; }
#workspace.has-annual #content > .annual-workspace { flex:1; height:auto; }
#clientInfoPanel [data-client-edit-pane="annual"] { display:block; height:100%; overflow:hidden; grid-row:1/-1; }
#clientInfoPanel .client-edit-tabbody:has([data-client-edit-pane="annual"]:not(.hidden))>.client-edit-actions { display:none; }
.annual-choices { display:flex; flex-wrap:wrap; justify-content:flex-end; min-width:0; gap:var(--ui-space-compact,10px); }
.annual-choices:has([data-aa="answer-multiple"]) { flex-wrap:nowrap; flex:none; }
.annual-workspace:not(.annual-workspace-staff) .annual-field:has([data-aa="answer-multiple"]) { width:max-content; grid-template-columns:var(--text-editor-label-width,150px) max-content; }
.annual-single-choices { flex-wrap:wrap; }
.annual-document-response-status:empty { display:none; }
.annual-response { display:grid; gap:var(--ui-space-compact,10px); min-width:0; }
.annual-response > .annual-choices { justify-content:flex-start; }
.annual-question-input > .annual-response { flex:1 1 0; }
.annual-question-category + .annual-question-category { border-top:1px solid var(--sidebar-divider-color,#a6aaa6); padding-top:var(--ui-space,25px); }
.annual-bookkeeping-value { display:flex; flex-direction:column; gap:var(--ui-space-compact,10px); padding-inline:var(--field-content-inset,11px); padding-block:3.5px; line-height:18px; }
.annual-irrelevant { opacity:.45; }
.annual-filename { display:block; border:0; padding:0; background:transparent; color:inherit; font:inherit; text-align:left; text-decoration:underline; overflow-wrap:anywhere; cursor:pointer; }
.annual-filename:disabled { cursor:default; text-decoration:none; }
.annual-question-input { display:flex; min-width:0; align-items:center; justify-content:safe flex-end; gap:var(--ui-space,25px); }
.annual-question-input:has(> .annual-response) { align-items:flex-start; }
.annual-question-input > :is(input,select,textarea,span) { flex:1; min-width:0; }
.annual-question-input .system-standard-file-picker { flex:none; }
.annual-question-input > :is(.system-standard-file-picker,.annual-answer-actions) { margin-left:auto; }
.annual-answer-actions { display:flex; flex:none; justify-content:flex-end; align-items:center; gap:var(--ui-space-compact,10px); }
.annual-answer-actions:not(:has(> :not([hidden]))) { display:none; }
.annual-document-row { display:flex; align-items:center; justify-content:space-between; gap:var(--ui-space,25px); }
.annual-document-row .annual-filename { min-width:0; flex:1; }
.annual-document-group article .annual-document-row .actions { flex:none; flex-wrap:nowrap; gap:var(--ui-space-compact,10px); margin:0; }
.annual-document-inline { display:grid; gap:var(--ui-space,25px); padding:0; border:0; margin-left:calc(var(--text-editor-label-width,150px) + var(--ui-space,25px)); width:calc(var(--text-editor-row-width,850px) - var(--text-editor-label-width,150px) - var(--ui-space,25px)); }
.annual-document-actions { justify-content:flex-start !important; }
.annual-document-group.annual-document-inline article { padding:0; margin:0; }
.annual-document-inline article > p { margin:var(--ui-space-compact,10px) 0 0; }
.annual-workspace:not(.annual-workspace-staff) .annual-document-inline { margin-bottom:var(--ui-space,25px); }
#clientInfoPanel .annual-workspace-staff [data-aa-upload-question] > .client-general-field { grid-column:3 / -1; width:auto; }
#clientInfoPanel .annual-workspace-staff .annual-document-group.annual-document-inline { margin-top:0; }
#clientInfoPanel .annual-workspace-staff .annual-document-group.annual-document-inline::before { content:none; }
#clientInfoPanel .annual-workspace-staff .annual-document-group.annual-document-inline article { margin-top:0; }
.annual-preview { width:min(1000px,calc(100vw - 50px)); height:calc(100dvh - 50px); max-height:none; border:0; border-radius:3px; padding:var(--ui-space,25px); background:#fff; color:#000; }
.annual-preview[open] { display:flex; flex-direction:column; gap:var(--ui-space,25px); }
.annual-preview::backdrop { background:#0003; backdrop-filter:blur(5px); }
.annual-preview header { display:flex; justify-content:space-between; align-items:center; gap:var(--ui-space,25px); }
.annual-preview h2 { margin:0; font:600 14px Raleway,sans-serif; overflow-wrap:anywhere; }
.annual-pdf-canvas { flex:1; min-height:0; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.annual-pdf-canvas canvas { max-width:100%; max-height:100%; }
.annual-pdf-pages { display:flex; align-items:center; justify-content:space-between; gap:var(--ui-space,25px); font:400 12px Raleway,sans-serif; }
/* Portal forms use the same compact controls without leaking into staff review. */
.annual-workspace:not(.annual-workspace-staff) { --field-surface:#fff; --text-editor-row-width:100%; }
/* Portal status belongs to the page title, never to the form's flow. */
.annual-workspace:not(.annual-workspace-staff) .annual-main { gap:0; }
:is(.page-heading,.portal-module-heading).has-annual-status { display:grid; grid-template-columns:auto minmax(0,1fr); column-gap:var(--ui-space,25px); align-items:center; }
:is(.page-heading,.portal-module-heading).has-annual-status > .eyebrow { grid-column:1 / -1; }
:is(.page-heading,.portal-module-heading).has-annual-status > h1 { grid-column:1; grid-row:2; }
:is(.page-heading,.portal-module-heading).has-annual-status > .annual-header-message {
  display:block; grid-column:2; grid-row:2; min-width:0; margin:0; line-height:25px; text-align:right;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  font:400 12px/25px Raleway,sans-serif;
}
:is(.page-heading,.portal-module-heading).has-annual-status > .annual-header-message:empty { visibility:hidden; }
.annual-workspace:not(.annual-workspace-staff) .annual-help { grid-column:2; margin:0; padding-inline:var(--field-content-inset,11px); }
.annual-workspace .annual-question-category { margin:0 0 var(--ui-space,25px); }
.annual-workspace .annual-question-category > h3 { margin:0 0 var(--ui-space,25px); }
.annual-workspace-staff .annual-question-category { display:flex; flex-direction:column; gap:var(--ui-space,25px); margin:0; }
.annual-workspace-staff .annual-question-category > h3 { margin:0; }
.annual-workspace-staff .annual-main-categories { margin-top:var(--ui-section-gap,50px); }
.annual-workspace:not(.annual-workspace-staff) .annual-question-category > .annual-field:last-child { margin-bottom:0; }
.annual-workspace:not(.annual-workspace-staff) .annual-question-input { flex-wrap:nowrap; }
.annual-workspace:not(.annual-workspace-staff) .annual-scroll { overflow-x:auto; }
.annual-workspace .annual-missing,
#clientInfoPanel .annual-workspace-staff .annual-field > .annual-label > label.annual-missing { color:var(--action-negative,#b73535); }
.annual-workspace:not(.annual-workspace-staff) select.annual-uploaded { --field-surface:#f2f2f2; }
.annual-workspace:not(.annual-workspace-staff) .annual-actions:empty { display:none; }
.annual-menu nav button:disabled { color:#a6aaa6; cursor:default; background:transparent; }
.annual-retention { margin:0; }
.annual-workspace:not(.annual-workspace-staff) :is(input:not([type=file]),select,textarea) { background:#fff; }
.annual-workspace:not(.annual-workspace-staff) select.annual-uploaded { background:#f2f2f2; }
.annual-auditor-choice { width:100%; min-width:0; }
.annual-auditor-form { display:flex; flex-direction:column; gap:var(--ui-space,25px); }
.annual-auditor-form .client-general-verify { justify-content:flex-end; position:relative; }
.annual-auditor-form .client-general-verify:has(button:is(:hover,:focus-visible)) { z-index:1; }
.annual-auditor-form .actions { padding-top:var(--ui-space,25px); }
.annual-auditor-header { display:flex; gap:var(--ui-space,25px); align-items:center; justify-content:space-between; min-height:25px; margin-bottom:var(--ui-space,25px); }
.annual-auditor-header h2,.annual-auditor-header .client-editor-status { margin:0; }
.annual-auditor-header .client-editor-section-heading { margin:0; }
.annual-audit-category { position:relative; margin-top:var(--ui-section-gap,50px); }
.annual-audit-category::before { content:""; position:absolute; top:calc(-1 * var(--ui-space,25px)); left:0; right:0; height:1px; background:var(--sidebar-divider-color,#a6aaa6); }
.annual-history { position:relative; flex:none; min-width:0; margin-right:auto; order:-1; }
.annual-history > summary { min-height:25px; line-height:25px; text-align:left; cursor:pointer; }
.annual-history-panel { position:absolute; left:0; width:min(400px,calc(100vw - 2 * var(--ui-space,25px))); bottom:calc(100% + var(--ui-space-compact,10px)); z-index:20; overflow:hidden; max-height:min(320px,var(--annual-history-capacity,320px)); border-radius:3px; background:#fff; box-shadow:5px 5px 10px #0004; }
.annual-history-content { max-height:min(320px,var(--annual-history-capacity,320px)); overflow:auto; padding:var(--ui-panel-padding,25px); border:1px solid var(--sidebar-brass-color,#e1c16e); border-radius:3px; }
.annual-history-content ol { display:flex; flex-direction:column; gap:var(--ui-space-compact,10px); margin:0; padding-left:20px; }
.annual-history-content > .actions { margin-top:var(--ui-space,25px); }

/* Annual sections share the fixed form anchor; narrow panes scroll, never stack. */
.annual-workspace .annual-field,
#clientInfoPanel #clientAnnualAccountsPane .client-general-row {
  --annual-form-columns:var(--text-editor-label-width,150px) minmax(0,1fr);
  position:relative; display:grid; grid-template-columns:var(--annual-form-columns);
  width:var(--text-editor-row-width,850px); min-width:var(--text-editor-row-width,850px);
  column-gap:var(--ui-space,25px); row-gap:var(--ui-space-compact,10px); align-items:start;
}
.annual-workspace .annual-field > .annual-label,
#clientInfoPanel #clientAnnualAccountsPane .client-general-row > .annual-label,
#clientInfoPanel #clientAnnualAccountsPane .client-general-row > label {
  grid-column:1; grid-row:1; display:block; align-self:start; min-width:0;
  height:auto; min-height:25px; margin:0; padding:2.5px 0;
  font:var(--ui-form-label-weight,500) var(--ui-form-label-size,14px)/20px Raleway,sans-serif;
  white-space:normal; overflow:visible; overflow-wrap:anywhere; text-overflow:clip;
}
.annual-workspace .annual-label > label { display:inline; margin:0; padding:0; font:inherit; line-height:inherit; }
#clientInfoPanel #clientAnnualAccountsPane .client-general-row > :is(.client-general-active,.client-general-verify):not(:has(> :not([hidden]):not(.hidden))) { display:none; }
#clientInfoPanel #clientAnnualAccountsPane .client-general-row:has(> .client-general-active > :not([hidden]):not(.hidden)) {
  --annual-form-columns:var(--text-editor-label-width,150px) 25px minmax(0,1fr);
}
#clientInfoPanel #clientAnnualAccountsPane .client-general-row:has(> .client-general-verify > :not([hidden]):not(.hidden)) {
  --annual-form-columns:var(--text-editor-label-width,150px) minmax(0,1fr) max-content;
}
#clientInfoPanel #clientAnnualAccountsPane .client-general-row:has(> .client-general-active > :not([hidden]):not(.hidden)):has(> .client-general-verify > :not([hidden]):not(.hidden)) {
  --annual-form-columns:var(--text-editor-label-width,150px) 25px minmax(0,1fr) max-content;
}
.annual-workspace .annual-field > .annual-question-input,
#clientInfoPanel #clientAnnualAccountsPane .client-general-row > .client-general-field {
  grid-column:2; grid-row:1; width:100%; min-width:0; max-width:100%; justify-self:stretch; align-self:start;
}
#clientInfoPanel #clientAnnualAccountsPane .client-general-row > .client-general-active { grid-column:2; grid-row:1; }
#clientInfoPanel #clientAnnualAccountsPane .client-general-row:has(> .client-general-active > :not([hidden]):not(.hidden)) > .client-general-field { grid-column:3; }
#clientInfoPanel #clientAnnualAccountsPane .client-general-row > .client-general-verify {
  grid-column:3; grid-row:1; width:auto; justify-self:end; align-self:start;
}
#clientInfoPanel #clientAnnualAccountsPane .client-general-row:has(> .client-general-active > :not([hidden]):not(.hidden)) > .client-general-verify { grid-column:4; }
.annual-workspace :is(.annual-field,.annual-question-input) :is(input:not([type=file]):not([type=checkbox]),select,textarea) {
  width:100%; max-width:100%; min-width:0;
}
.annual-workspace .annual-question-input > :is(input,select,textarea) { flex:1 1 0; }
#clientInfoPanel #clientAnnualAccountsPane .annual-field textarea { min-height:75px; }
.annual-workspace .annual-main { min-width:0; }
.annual-workspace .annual-scroll { min-width:0; width:100%; overflow:auto; scroll-padding-inline:var(--ui-space,25px); }
.annual-workspace .annual-question-help {
  position:absolute; left:var(--text-editor-label-width,150px); top:7.5px;
  display:flex; align-items:center; justify-content:center;
  width:10px; height:10px; min-width:10px; padding:0; margin:0 0 0 calc((var(--ui-space,25px) - 10px) / 2);
  border:0; background:transparent; color:inherit; cursor:pointer;
}
.annual-question-help svg { width:10px; height:10px; overflow:visible; }
.annual-workspace .annual-question-help svg path { stroke-width:1px !important; vector-effect:non-scaling-stroke; }
.annual-question-help:focus-visible { outline:1px solid var(--sidebar-brass-color,#e1c16e); outline-offset:3px; }

/* Retrieved reports take the field anchor, not an empty availability row. */
.annual-workspace .annual-field[data-aa-retrieved-report] .annual-document-inline { margin:0; width:100%; min-width:0; }
.annual-workspace [data-aa-type="previous-report"] article { background:transparent; }

/* Answer controls move together as responsibility and upload controls reveal. */
.annual-question-input > .annual-choices { flex:none; }
.annual-question-input > .annual-single-choices { flex:0 1 auto; max-width:100%; }
.annual-document-source { margin:var(--ui-space-compact,10px) 0 0; }
[data-aa-reviewed="false"] .annual-filename { color:var(--error,#b73535); }
.annual-pdf-canvas > img { max-width:100%; max-height:100%; object-fit:contain; }
.annual-name-fields { display:flex; gap:var(--ui-space,25px); min-width:0; }
.annual-name-fields > input { flex:1 1 0; min-width:0; }
.annual-repeatable-rows { display:flex; flex-direction:column; gap:var(--ui-space,25px); min-width:0; width:100%; align-items:flex-end; }
.annual-workspace .annual-field:has(.annual-repeatable-rows) { width:100%; min-width:0; }
.annual-repeatable-row { display:flex; flex-wrap:wrap; align-items:flex-end; gap:var(--ui-space-compact,10px); width:100%; min-width:0; }
.annual-repeatable-row > label { flex:1 1 140px; min-width:0; font:400 12px/25px Raleway,sans-serif; }
.annual-repeatable-row > button { flex:none; }
.annual-audit-category + .annual-main-categories {
  position:relative; width:var(--text-editor-row-width,850px);
  border-top:1px solid var(--sidebar-divider-color,#a6aaa6); padding-top:var(--ui-space,25px);
}
.annual-workspace [data-aa-type="previous-report"] .annual-document-row { justify-content:flex-start; align-items:baseline; flex-wrap:wrap; column-gap:var(--ui-space-compact,10px); row-gap:0; }
.annual-workspace [data-aa-type="previous-report"] .annual-filename { flex:0 1 auto; font:inherit; line-height:20px; padding:2.5px 0; }
.annual-workspace [data-aa-type="previous-report"] .annual-document-status { flex:1 1 auto; min-width:0; margin:0; line-height:20px; overflow-wrap:anywhere; }

/* Agreement inspection opts into readable pages; Annual retains fit-to-window. */
.agreement-pdf-preview { box-sizing:border-box; overflow:hidden; }
.agreement-pdf-preview > header { flex:none; min-width:0; }
.agreement-pdf-preview > header h2 { min-width:0; }
.agreement-pdf-preview > header button { flex:none; }
.agreement-pdf-preview .annual-pdf-canvas { display:block; width:100%; min-width:0; overflow:auto; overscroll-behavior:contain; }
.agreement-pdf-preview .annual-pdf-canvas:focus-visible { outline:1px solid #e1c16e; outline-offset:-1px; }
.agreement-pdf-preview .annual-pdf-canvas canvas { display:block; max-width:none; max-height:none; margin-inline:auto; }
.agreement-pdf-preview .annual-pdf-pages { flex:none; min-width:0; display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); gap:var(--ui-space,25px); align-items:center; }
.agreement-pdf-preview .agreement-pdf-navigation { grid-column:2; display:grid; grid-template-columns:25px minmax(0,1fr) 25px; align-items:center; gap:var(--ui-space,25px); width:max-content; max-width:100%; min-width:0; justify-self:center; }
.agreement-pdf-preview [data-pdf-status] { min-width:0; text-align:center; overflow-wrap:anywhere; }
.agreement-pdf-preview [data-preview-download] { grid-column:3; justify-self:end; }
.agreement-pdf-preview .annual-pdf-pages.is-stacked { grid-template-columns:minmax(0,1fr); }
.agreement-pdf-preview .annual-pdf-pages.is-stacked .agreement-pdf-navigation { grid-column:1; }
.agreement-pdf-preview .annual-pdf-pages.is-stacked [data-preview-download] { grid-column:1; grid-row:2; }

/* Annual adapter only; Portal interaction and the primary rail remain shared owners. */
.annual-workspace:not(.annual-workspace-staff) { --annual-menu-width:var(--staging-client-column-width,clamp(225px,calc((100vw - var(--navigation-current,var(--navigation-expanded-width))) / 4),351px)); grid-template-columns:var(--annual-menu-width) minmax(0,1fr); }
.annual-workspace:not(.annual-workspace-staff) .annual-menu { position:relative; background:var(--canvas,#f2f2f2); box-shadow:var(--staging-navigation-shadow,5px 0 10px #0003); z-index:auto; }
.annual-workspace .annual-actions {  overflow:visible; }
.annual-workspace .annual-setup-information { display:block; min-height:25px; color:var(--muted,#636963); font:400 12px/25px Raleway,sans-serif; padding-inline:var(--field-content-inset,11px); }
.annual-workspace .annual-document-request { display:flex; flex-wrap:nowrap; align-items:center; gap:var(--ui-space,25px); min-width:0; }
.annual-workspace .annual-document-responsibility { gap:var(--ui-space-compact,10px); }
.annual-auditor-header:not(:has([data-audit-status]:not(:empty))) { display:none; }
@media(max-width:650px) { .annual-workspace:not(.annual-workspace-staff) { --annual-menu-width:var(--staging-client-column-width,175px); } }

.annual-workspace .annual-document-request > .annual-choices { flex:none; flex-wrap:nowrap; }
#content:has(> .annual-workspace:not(.annual-workspace-staff)) { margin-left:calc(-1 * var(--ui-space,25px)); width:calc(100% + var(--ui-space,25px)); }


/* Footer-module adapter: the existing menu is the only secondary column.
   Flatten wrappers rather than adding a duplicate rail or measuring the title. */
#portalModuleDrawer[data-module=annual-accounts] {
  display:grid; width:calc(var(--text-editor-width,900px) + var(--portal-module-rail-width));
  grid-template-columns:var(--portal-module-rail-width) minmax(calc(var(--text-editor-label-width,150px) + 250px + 3 * var(--ui-space,25px)),1fr);
  grid-template-rows:auto minmax(0,1fr); overflow:auto; overscroll-behavior:contain;
}
#portalModuleDrawer[data-module=annual-accounts] > .portal-module-heading { grid-column:2; grid-row:1; }
#portalModuleDrawer[data-module=annual-accounts] > #portalModuleContent,
#portalModuleDrawer[data-module=annual-accounts] > #portalModuleContent > .annual-workspace:not(.annual-workspace-staff) { display:contents; }
#portalModuleDrawer[data-module=annual-accounts] .annual-menu {
  grid-column:1; grid-row:1 / -1; padding-block:var(--ui-space,25px);
  position:relative; z-index:auto; background:var(--canvas,#f2f2f2);
  box-shadow:var(--staging-navigation-shadow,5px 0 10px #0003);
}
#portalModuleDrawer[data-module=annual-accounts] .annual-main {
  grid-column:2; grid-row:2; padding:0 var(--ui-space,25px) var(--ui-space,25px);
  min-height:0; min-width:0;
}

/* Setup document choices stay on one row without changing other question layouts. */
.annual-workspace .annual-field:is([data-aa-question=articles],[data-aa-question=shareRegister]) .annual-single-choices { flex-wrap:nowrap; flex:none; width:max-content; min-width:max-content; }
.annual-workspace:not(.annual-workspace-staff) .annual-field:is([data-aa-question=articles],[data-aa-question=shareRegister]) { width:max-content; grid-template-columns:var(--text-editor-label-width,150px) minmax(250px,max-content); }

/* Fill wide panes while keeping readable field tracks inside narrow scroll owners. */
.annual-workspace { --annual-min-row-width:425px; }
.annual-workspace-staff { --annual-min-row-width:850px; }
.annual-workspace .annual-field,
#clientInfoPanel #clientAnnualAccountsPane .client-general-row { width:max(100%,var(--annual-min-row-width)); min-width:var(--annual-min-row-width); }
.annual-workspace .annual-document-inline { width:max(calc(100% - var(--text-editor-label-width,150px) - var(--ui-space,25px)),calc(var(--annual-min-row-width) - var(--text-editor-label-width,150px) - var(--ui-space,25px))); min-width:0; }
.annual-workspace .annual-audit-category + .annual-main-categories { width:100%; }
.annual-workspace:not(.annual-workspace-staff) .annual-field:is([data-aa-question=articles],[data-aa-question=shareRegister]) { width:max(100%,var(--annual-min-row-width)); grid-template-columns:var(--text-editor-label-width,150px) minmax(0,1fr); }
.annual-current-year { display:flex; flex-wrap:wrap; justify-content:space-between; gap:var(--ui-space-compact,10px); margin-top:auto; }
.annual-feedback { margin-top:var(--ui-space,25px); }
.annual-feedback textarea { width:100%; min-width:0; }
.annual-feedback > div + div { margin-top:var(--ui-space,25px); }
.annual-completion { margin-left:auto; }
#portalModuleDrawer[data-module=annual-accounts] { width:100%; }
#portalModuleDrawer[data-module=annual-accounts] .annual-menu { padding-top:calc(var(--ui-space,25px) + var(--column-caption-height,0px) + var(--column-caption-gap,0px)); }
