.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-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:safe flex-end; min-width:0; gap:var(--ui-space-compact,10px); }
.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-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:1; flex-direction:column; text-align:start; 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-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,.annual-response) { min-width:0; }
.annual-question-input > :is(span,.annual-response) { flex:1 1 0; }
.annual-question-input:has(> [data-aa="retrieve-report"]) > .annual-response { flex:0 1 auto; }
.annual-question-input .system-standard-file-picker { flex:none; }
.annual-answer-actions:not(.system-standard-action-column) { 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-field > [data-aa="confirm-carried"] { justify-self:end; }
.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 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-period-pair {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--ui-space,25px);
  width:max(100%,var(--annual-min-row-width),calc(380px + 3 * var(--ui-space,25px)));
}
.annual-workspace .annual-period-pair > .annual-field {
  width:100%; min-width:0; --annual-form-columns:minmax(0,1fr) minmax(105px,1fr);
}
#clientInfoPanel #clientAnnualAccountsPane .annual-period-pair > .client-general-row {
  width:100%; min-width:0;
  --annual-staff-label-track:minmax(0,max-content);
  --annual-staff-field-track:minmax(105px,1fr);
}
.staging-sidebar-enabled .staging-client-editor-drawer #clientInfoPanel #clientAnnualAccountsPane .annual-period-pair {
  width:100%; row-gap:var(--ui-space,25px);
  grid-template-columns:repeat(auto-fit,minmax(min(100%,calc(var(--text-editor-label-width,150px) + 150px + var(--action-small-size) + 2 * var(--ui-space,25px))),1fr));
}
.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) [data-aa-setup-form] + .annual-main-categories:not(:empty) {
  border-top:1px solid var(--field-text,#000);
  margin-block-start:var(--ui-space,25px);
  padding-block-start:var(--ui-space,25px);
}
.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-choice-columns,var(--annual-form-columns));
  width:var(--text-editor-row-width,850px); min-width:var(--text-editor-row-width,850px);
  column-gap:var(--annual-label-control-gap,var(--ui-space,25px)); row-gap:var(--ui-space-compact,10px); align-items:start;
}
#clientInfoPanel #clientAnnualAccountsPane .client-general-row {
  --annual-staff-label-track:minmax(var(--text-editor-label-width,150px),max-content);
  --annual-staff-field-track:minmax(150px,1fr);
  --annual-form-columns:var(--annual-staff-label-track) var(--annual-staff-field-track);
}
.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:not(.annual-missing) { color:var(--field-text,#000); }
.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(--annual-staff-label-track) 25px var(--annual-staff-field-track);
}
#clientInfoPanel #clientAnnualAccountsPane .client-general-row:has(> .client-general-verify > :not([hidden]):not(.hidden)) {
  --annual-form-columns:var(--annual-staff-label-track) var(--annual-staff-field-track) 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(--annual-staff-label-track) 25px var(--annual-staff-field-track) 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; }

/* Answer controls move together as responsibility and upload controls reveal. */
.annual-question-input > .annual-choices { flex:0 1 auto; max-width:100%; }
.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:grid; gap:var(--form-grid-row-gap,var(--navigation-row-gap,10px));
  min-width:0; width:100%;
}
/* The approval flow still uses the shared flat field-and-button markup. */
.annual-repeatable-row:not([data-aa-row-id]) {
  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-repeatable-heading,
.annual-repeatable-row[data-aa-row-id] {
  --field-height:var(--form-grid-field-height,20px);
  --field-content-inset:var(--form-grid-field-inset,10px);
  display:grid; align-content:start; width:100%; min-width:0;
  grid-template-columns:minmax(0,1fr) max-content;
  column-gap:var(--ui-space,25px);
  min-block-size:var(--form-grid-row-height,var(--navigation-row-height,40px));
}
.annual-repeatable-heading {
  grid-template-rows:max-content minmax(var(--field-height),max-content);
  row-gap:var(--form-grid-label-gap,5px);
}
.annual-repeatable-heading > .annual-label { grid-area:1 / 1; }
.annual-repeatable-heading > .annual-repeatable-status { grid-area:2 / 1; line-height:var(--field-height); }
.annual-repeatable-heading > .system-standard-action-column { grid-area:1 / 2 / 3 / 3; }
.annual-repeatable-heading .annual-label,
.annual-repeatable-fields > label > span { line-height:var(--form-grid-label-line,15px); }
.annual-repeatable-fields {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr));
  align-items:end; gap:var(--form-grid-row-gap,var(--navigation-row-gap,10px));
}
.annual-repeatable-fields > label {
  display:grid; gap:var(--form-grid-label-gap,5px); min-width:0; margin:0;
  font:400 var(--ui-field-text-size,12px)/var(--form-grid-label-line,15px) Raleway,sans-serif; color:var(--field-text,#000);
}
.annual-workspace .annual-repeatable-fields > label > :is(input,select),
#clientInfoPanel .annual-repeatable-fields > label > :is(input,select) {
  block-size:var(--field-height); min-block-size:var(--field-height);
  padding-block:0; padding-inline-start:var(--field-content-inset);
}
.annual-repeatable-row > .system-standard-action-column { grid-column:2; }
.annual-repeatable-status > [role="status"] { display:block; overflow-wrap:anywhere; }
.annual-repeatable-rows .system-standard-action-column { justify-self:end; }
.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);
}
/* 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(--field-text,#000); font:400 12px/25px Raleway,sans-serif; padding-inline: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); } }

#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]:has(.annual-workspace) {
  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]:has(.annual-workspace) > #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:2; padding-block:var(--ui-space-compact,10px) var(--ui-space,25px);
  position:relative; z-index:auto; border:0; background:transparent; box-shadow:none;
}
#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;
}
#portalModuleDrawer[data-module=annual-accounts] .annual-scroll {
  padding-block-start:calc(var(--ui-space-compact) + var(--column-compact-row-inset));
}
#portalModuleDrawer[data-module=annual-accounts] .annual-question-category > h3 {
  display:flex; align-items:center; min-height:var(--action-small-size);
}

/* 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; margin-inline-start:auto; }

/* 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-field:has(.annual-choices),
#clientInfoPanel #clientAnnualAccountsPane .client-general-row.annual-field:has(.annual-choices) {
  --annual-choice-columns:minmax(var(--text-editor-label-width,150px),1fr) minmax(0,max-content);
  --annual-label-control-gap:100px;
  min-width:min-content;
}
.annual-workspace:not(.annual-workspace-staff) .annual-field:is([data-aa-question=articles],[data-aa-question=shareRegister]):has(.annual-single-choices) {
  --annual-choice-columns:minmax(var(--text-editor-label-width,150px),1fr) max-content;
  min-width:max-content;
}
.annual-workspace .annual-field:has(.annual-choices) > .annual-question-help,
.annual-workspace-staff .annual-field > .annual-question-help {
  position:relative; grid-column:1; grid-row:1; justify-self:end; left:auto; margin:0; transform:translateX(17.5px);
}
@container client-annual-responsive (max-width:409px) {
  #clientInfoPanel #clientAnnualAccountsPane .client-general-row.annual-field:has(.annual-choices) { --annual-label-control-gap:var(--ui-space,25px); }
  #clientInfoPanel #clientAnnualAccountsPane .client-general-row.annual-field:has(.annual-choices) > .client-general-field { grid-column:1 / -1; }
  .annual-workspace-staff .annual-field > .annual-question-help { grid-column:1 / -1; transform:none; }
  .annual-workspace-staff .annual-field:has(> .annual-question-help) > .annual-label { padding-inline-end:var(--ui-space,25px); }
}
.annual-workspace .annual-audit-category + .annual-main-categories { width:100%; }
.annual-current-year { display:flex; flex-wrap:wrap; align-items:center; gap:var(--ui-space-compact,10px); margin-top:auto; }
.annual-menu :is(.annual-current-year,.annual-retention) { padding-inline:var(--ui-space-compact); min-height:var(--navigation-row-height); }
.annual-menu .annual-retention { display:flex; align-items:center; }
.annual-current-year [data-aa-year-status] { flex-basis:100%; margin:0; }
.annual-current-year [data-aa-year-status]:empty { display:none; }
.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%; }


/* Portal help follows the label text on its final line. */
.annual-workspace:not(.annual-workspace-staff) .annual-field:is([data-aa-question],[data-aa-document-question]):not(:has(.annual-choices)) {
  --annual-form-columns:minmax(var(--text-editor-label-width,150px),max-content) minmax(250px,1fr);
}
.annual-workspace:not(.annual-workspace-staff) .annual-label > .annual-question-help {
  display:inline-flex; position:static; vertical-align:middle; margin:0 0 0 var(--ui-space-compact,10px);
}

.annual-workspace-staff .annual-actions > .annual-message:not(:empty) { flex:0 1 auto; max-width:40%; }
[data-client-edit-tab="annual"][data-annual-outstanding]:not(.is-navigation-selected) { color:var(--action-negative,#b73535); }

/* These rows use the same label, field and action tracks before and after upload. */
.annual-document-group:not([hidden]) { display:contents; }
.annual-workspace .annual-field.annual-document-row,
#clientInfoPanel #clientAnnualAccountsPane .client-general-row.annual-document-row,
.staging-sidebar-enabled .staging-client-editor-drawer #clientInfoPanel #clientAnnualAccountsPane .client-general-row.annual-document-row {
  --field-height:20px;
  --field-content-inset:10px;
  --annual-document-action-width:calc(3 * var(--action-small-size) + 2 * var(--ui-space-compact));
  grid-template-columns:minmax(0,1fr) minmax(var(--annual-document-action-width),max-content);
  grid-template-rows:minmax(15px,max-content) 20px;
  align-content:start;
  row-gap:5px;
  column-gap:var(--ui-space,25px);
  min-height:40px;
}
.annual-workspace .annual-field.annual-document-row { margin-block-end:var(--navigation-row-gap,10px); }
.annual-workspace-staff .annual-question-category:has(> :is(.annual-document-row,.annual-document-group)) { row-gap:var(--navigation-row-gap,10px); }
.annual-workspace-staff .annual-question-category .annual-field.annual-document-row { margin-block-end:0; }
/* Archived questionnaire choices may use the shared two-row action layout. */
.annual-workspace .annual-field.annual-document-row:has(.annual-document-actions > :nth-child(4 of :not([hidden],.hidden))) {
  grid-template-rows:minmax(15px,1fr) 20px;
  min-height:calc(2 * var(--action-small-size) + var(--ui-space-compact));
}
.annual-workspace .annual-field.annual-document-row > .annual-label,
#clientInfoPanel #clientAnnualAccountsPane .annual-document-row > .annual-label {
  grid-area:1 / 1;
  align-self:end;
  line-height:15px;
  min-height:15px;
  padding:0;
}
.annual-workspace .annual-document-row .annual-question-help {
  position:static;
  flex:none;
  margin:0 0 0 var(--ui-space-compact,10px);
}
.annual-workspace .annual-document-row > .annual-document-field,
#clientInfoPanel #clientAnnualAccountsPane .annual-document-row > .annual-document-field {
  grid-area:2 / 1;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  width:100%;
  min-width:0;
  height:var(--field-height);
  overflow:hidden;
}
.annual-workspace .annual-document-field > :is(.annual-document-summary,.system-standard-readonly-value),
#clientInfoPanel .annual-workspace-staff .annual-document-field > .system-standard-readonly-value {
  box-sizing:border-box;
  padding:0 var(--field-content-inset);
  width:100%;
  min-width:0;
  min-height:var(--field-height);
  line-height:var(--field-height);
  text-align:start;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.annual-document-field .annual-document-summary { display:flex; gap:var(--ui-space-compact,10px); }
.annual-document-summary > span {
  flex:0 1 auto;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
}
.annual-document-summary > .annual-filename { flex-shrink:0; max-width:55%; }
.annual-document-summary > .annual-document-status { color:var(--field-text,#000); }
.annual-document-summary > .annual-document-source { color:var(--field-muted,#636963); }
.annual-document-summary > .annual-document-transport {
  display:inline-flex;
  align-items:center;
  flex:none;
  color:var(--action-negative);
}
.annual-document-summary > .annual-document-transport[data-verification-state=verified] { color:var(--action-positive); }
.annual-document-transport svg { width:10px; height:10px; }
[data-aa-reviewed="false"] .annual-filename { color:var(--action-negative,#b73535); }
.annual-workspace .annual-document-field > select {
  height:var(--field-height);
  min-height:var(--field-height);
  padding-block:0;
  padding-inline-start:var(--field-content-inset);
}
.annual-document-actions {
  grid-area:1 / 2 / 3 / 3;
  justify-self:end;
}
.annual-document-actions > button[aria-pressed=true] {
  box-shadow:inset 2px 2px 4px #0007,2px 2px 10px #0003;
}

/* One owner supplies the gap between questions. The content height rounds up
   to a full navigation slot when a control needs additional lines. */
#clientInfoPanel .annual-workspace-staff [data-aa-question-grid] {
  row-gap:var(--form-grid-row-gap,10px);
}
.annual-workspace [data-aa-question-grid] .annual-field:not(.annual-document-row) {
  --field-height:var(--form-grid-field-height,20px);
  --field-content-inset:var(--form-grid-field-inset,10px);
  --field-padding-x:calc(var(--field-content-inset) - var(--field-border-width,1px));
  --field-padding-y:0px;
}
.annual-workspace [data-aa-question-grid] .annual-question-input > :is(input:not([type=file],[type=checkbox],[type=radio]),select) {
  block-size:var(--field-height); min-block-size:var(--field-height);
  padding-block:0; padding-inline-start:var(--field-content-inset);
}
.annual-workspace [data-aa-question-grid] :is(.annual-question-input,.client-general-field) > :is(.system-standard-readonly-value,.annual-answer-value,.annual-bookkeeping-value),
#clientInfoPanel .annual-workspace-staff [data-aa-question-grid] .client-general-field > :is(.system-standard-readonly-value,.annual-answer-value,.annual-bookkeeping-value) {
  min-block-size:var(--field-height); line-height:var(--field-height);
  padding:0 var(--field-content-inset);
}
.staging-sidebar-enabled #clientInfoPanel [data-aa-question-grid] .client-general-field > .annual-choices {
  /* Choice faces are 25px. Reserve the same 20px field baseline underneath. */
  margin-block-start:calc(var(--field-height) - var(--action-small-size));
}
.annual-workspace [data-aa-question-grid],
.annual-workspace [data-aa-question-grid] > .annual-question-category {
  display:grid; align-content:start;
  gap:var(--form-grid-row-gap,var(--navigation-row-gap,10px));
}
.annual-workspace [data-aa-question-grid] :is(.annual-question-category,.annual-field,.annual-repeatable-heading,.annual-repeatable-row) {
  margin-block:0;
}
.annual-workspace [data-aa-question-grid] :is(.annual-field,.annual-repeatable-heading,.annual-repeatable-row,.system-standard-category-heading) {
  --annual-grid-height:var(--form-grid-row-height,var(--navigation-row-height,40px));
  --annual-grid-gap:var(--form-grid-row-gap,var(--navigation-row-gap,10px));
  --annual-grid-pitch:calc(var(--annual-grid-height) + var(--annual-grid-gap));
  min-block-size:var(--annual-grid-height);
  block-size:calc-size(max-content, round(up, max(size, var(--annual-grid-height)) + var(--annual-grid-gap), var(--annual-grid-pitch)) - var(--annual-grid-gap));
}
.annual-workspace [data-aa-question-grid] .system-standard-category-heading { margin:0; align-content:start; }
.annual-workspace:not(.annual-workspace-staff) [data-aa-question-grid] > .annual-question-category + .annual-question-category {
  position:relative; border-block-start:0; padding-block-start:var(--form-grid-row-pitch,50px);
}
.annual-workspace:not(.annual-workspace-staff) [data-aa-question-grid] > .annual-question-category + .annual-question-category::before {
  content:""; position:absolute; inset-inline:0; inset-block-start:calc((var(--form-grid-row-height,40px) - 1px) / 2);
  block-size:1px; background:var(--sidebar-divider-color,#a6aaa6);
}

#clientInfoPanel .annual-workspace-staff [data-aa-holding-row] [data-aa-holding-value] {
  line-height:var(--form-grid-field-height,20px);
  padding-block:0;
}
