@font-face {
  font-family: 'Iroko Sans';
  src: url('/fonts/regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Iroko Sans';
  src: url('/fonts/bold.ttf') format('truetype');
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --bg: #f7f8f7;
  --paper: #fff;
  --text: #202b25;
  --muted: #647068;
  --border: #e0e5e1;
  --green: #244b39;
  --hover: #edf2ee;
  --danger: #a33030;
  --radius: 7px;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  font: 14px/1.5 'Iroko Sans', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .6; }
svg { width: 18px; height: 18px; flex: 0 0 auto; vertical-align: middle; }
img, iframe { max-width: 100%; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { color: var(--text); font-weight: 700; }
h1 { font-size: 28px; line-height: 1.25; letter-spacing: -.7px; }
h2 { font-size: 16px; line-height: 1.4; letter-spacing: -.15px; }
h3 { font-size: 14px; line-height: 1.45; }
p + p { margin-top: 10px; }
strong { font-weight: 700; }
small, .small { font-size: 12px; line-height: 1.5; }
.muted { color: var(--muted); }
.tabular { font-variant-numeric: tabular-nums; }
.full { width: 100%; }
:focus-visible { outline: 2px solid #2a6f4c; outline-offset: 3px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -70px;
  left: 16px;
  z-index: 100;
  padding: 12px 16px;
  border: 1px solid var(--green);
  border-radius: 5px;
  background: #fff;
  color: var(--green);
}
.skip-link:focus { top: 12px; }
.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  width: 208px;
  padding: 26px 14px 16px;
  background: var(--paper);
  border-right: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0 10px 28px;
  color: var(--green);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -1px;
}
.brand:hover { text-decoration: none; }
.brand-symbol { font-size: 38px; line-height: 1; }
.brand-symbol span { margin-left: -5px; font-size: 23px; }
.brand-product {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 1.4px;
}
.workspace-label, .account-label {
  margin: 0 10px 8px;
  color: var(--muted);
  font-size: 11px;
}
.sidebar nav { display: grid; gap: 3px; }
.navlink {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px;
  border-radius: 5px;
  color: #536158;
  font-size: 12px;
  white-space: nowrap;
}
.navlink:hover { background: var(--bg); text-decoration: none; }
.navlink.active { background: var(--hover); color: var(--green); font-weight: 700; }
.navdot { width: 4px; height: 4px; margin-left: auto; border-radius: 50%; background: currentColor; }
.sidebar-bottom { margin-top: auto; padding: 18px 10px 0; }
.profile { display: flex; gap: 8px; align-items: center; min-width: 0; }
.profile > div:last-child { min-width: 0; }
.profile strong { display: block; font-size: 12px; }
.profile small { display: block; font-size: 10px; overflow-wrap: anywhere; color: var(--muted); }
.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--green);
  background: var(--hover);
  font-size: 12px;
}
.logout {
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-size: 11px;
}
.logout:hover { color: var(--green); text-decoration: underline; }
.app-main { min-width: 0; margin-left: 208px; }
.content { width: 100%; max-width: 1440px; margin: 0 auto; padding: 28px 30px 40px; }
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 22px;
}
.page-heading > div { min-width: 0; }
.page-heading h1 { overflow-wrap: anywhere; }
.page-heading .small { overflow-wrap: anywhere; }
.page-heading p { margin-top: 7px; max-width: 750px; color: var(--muted); }
.page-heading > .button { margin-top: 1px; }
.page-meta, .dossier-context {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.page-meta strong, .dossier-context strong { color: var(--green); }
.back-link { display: inline-flex; align-items: center; min-height: 44px; margin: -8px 0 8px; color: var(--muted); font-size: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid var(--green);
  border-radius: 5px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}
.button:hover { border-color: #173e2a; background: #173e2a; color: #fff; text-decoration: none; }
.button.secondary { border-color: #d4ddd6; background: #fff; color: var(--green); }
.button.secondary:hover { border-color: #98ac9e; background: var(--bg); }
.button.danger { border-color: #dbc0c0; color: var(--danger); background: #fff; }
.button.danger:hover { background: #fbf1f1; border-color: var(--danger); }
.small-button { min-height: 44px; padding: 7px 10px; font-size: 11px; }
.text-link, .text-button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 12px; color: var(--green); }
.text-link svg { width: 15px; height: 15px; }
.text-button { border: 0; padding: 5px; background: transparent; }
.text-button:hover { text-decoration: underline; }
.panel { min-width: 0; margin-bottom: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--paper); }
.panel-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--border); }
.panel-top h2 { font-size: 14px; }
.panel-top .text-link { min-height: 28px; }
.count { display: inline-grid; place-items: center; min-width: 24px; min-height: 24px; padding: 0 6px; border-radius: 4px; background: var(--bg); color: var(--muted); font-size: 11px; }
.alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; margin-bottom: 16px; border: 1px solid #cfddd3; border-radius: 5px; background: #f0f6f1; color: #325341; font-size: 13px; overflow-wrap: anywhere; }
.alert > svg { margin-top: 1px; }
.alert.error { border-color: #e2c5c5; background: #fcf3f3; color: #8c3030; }
.alert.warning { border-color: #e3d8bb; background: #fcf8ee; color: #725b22; }
.alert.success { border-color: #cbded0; background: #eff7f1; color: #2b5c3a; }
.alert p { margin-top: 4px; }
.badge { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 4px 8px; border: 1px solid #e0e5e1; border-radius: 4px; background: #f6f7f6; color: #536159; font-size: 10px; line-height: 1.5; white-space: nowrap; }
.badge i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.badge.submitted, .badge.signing { border-color: #dedac7; background: #f9f7ed; color: #6e5e28; }
.badge.approved, .badge.signed, .badge.completed { border-color: #d5e3d8; background: #f0f6f1; color: #2c6240; }
.badge.changes_requested { border-color: #e8d6b6; background: #fbf5e9; color: #875b1f; }
.badge.rejected, .badge.cancelled { border-color: #e4d1d1; background: #fbf3f3; color: #8e4545; }
.fund-tabs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-bottom: 18px; }
.fund-tabs a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 13px; border: 1px solid transparent; border-radius: 5px; color: var(--muted); font-size: 12px; }
.fund-tabs a:hover { background: var(--hover); text-decoration: none; }
.fund-tabs .active { border-color: var(--border); background: var(--paper); color: var(--green); font-weight: 700; }
.dashboard-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.dashboard-toolbar .fund-tabs { margin: 0; }
.dashboard-stats{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-bottom: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.dashboard-stats > div{ min-width: 0; padding: 14px 18px; }
.dashboard-stats > div + div{ border-left: 1px solid var(--border); }
.dashboard-stats span{ display: block; color: var(--muted); font-size: 12px; }
.dashboard-stats strong{ display: block; margin-top: 3px; color: var(--text); font-size: 24px; font-weight: 400; line-height: 1.3; font-variant-numeric: tabular-nums; }
.dashboard-stats small{ display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.dashboard-stats svg{ width: 12px; height: 12px; margin-right: 4px; }
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 0 0 var(--radius) var(--radius); }
table { width: 100%; min-width: 740px; border-collapse: collapse; text-align: left; }
th { padding: 10px 16px; background: #fafbfa; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 10px; font-weight: 400; white-space: nowrap; }
td { height: 56px; padding: 6px 16px; border-bottom: 1px solid #ecf0ed; font-size: 12px; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbfa; }
td small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.table-primary { color: var(--text); font-weight: 700; }
.fund-label { font-size: 11px; }
.row-arrow { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 4px; color: var(--muted); }
.row-arrow:hover { background: var(--hover); color: var(--green); }
.filters { display: grid; grid-template-columns: minmax(115px, .8fr) minmax(140px, 1.6fr) minmax(130px, 1fr) minmax(145px, 1fr) auto; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.filters input, .filters select { font-size: 11px; }
.empty { padding: 30px 20px; text-align: center; }
.empty h3 { margin-bottom: 4px; }
.empty p { color: var(--muted); font-size: 13px; }
.empty .button { margin-top: 14px; }
.empty.compact { padding: 20px; }
.operation-options { max-width: 760px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.operation-option { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 72px; padding: 16px 20px; color: var(--text); }
.operation-option + .operation-option { border-top: 1px solid var(--border); }
.operation-option:hover { background: #fafbfa; text-decoration: none; }
.operation-option > div { min-width: 0; }
.operation-option h2, .operation-option h3 { font-size: 14px; }
.operation-option p, .operation-option small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.operation-option > svg { color: var(--muted); }
.operation-grid, .company-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.operation-grid { align-items: start; }
.fund-heading { display: flex; align-items: center; gap: 8px; margin: 20px 0 10px; }
.fund-heading h2 { font-size: 15px; }
.fund-choice { margin-bottom: 0; }
.fund-choice .fund-heading { flex-wrap: wrap; margin: 0; padding: 15px 18px; border-bottom: 1px solid var(--border); }
.fund-choice .fund-heading h2 { margin-right: auto; }
.fund-choice .fund-heading .small { font-size: 10px; }
.fund-choice .operation-options { max-width: none; border: 0; }
.fund-choice .operation-option { min-height: 55px; padding: 12px 18px; font-size: 12px; }
.fund-document-section + .fund-document-section { margin-top: 28px; }
.fund-document-section > .document-rows { border: 0; border-radius: 0; }
.fund-document-section > .section-details { margin: 0; border: 0; border-top: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); }
.fund-document-section .section-details > .operation-options { max-width: none; padding: 0; border: 0; }
.fund-document-section .section-details .operation-option { min-height: 50px; padding: 12px 18px; font-size: 12px; }
.landing-card { width: 100%; max-width: 480px; margin: 36px auto; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.landing-card h1 { font-size: 27px; }
.landing-funds { display: flex; gap: 8px; margin-bottom: 18px; color: var(--green); font-size: 11px; }
.landing-funds span { padding: 3px 8px; border: 1px solid var(--border); border-radius: 3px; background: var(--bg); }
.landing-card p { margin-top: 10px; color: var(--muted); }
.landing-card .button { margin-top: 20px; }
.landing-card > .small { display: block; margin-top: 8px; }
.landing-card > .text-link { margin-top: 12px; }
.section-details { margin-bottom: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.section-details > summary { padding: 13px 18px; font-weight: 700; }
.section-details[open] > summary { border-bottom: 1px solid var(--border); }
.section-details > :not(summary) { margin: 0; padding: 16px 18px; }
.document-rows { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.doc-row { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 12px 16px; color: var(--text); }
.doc-row + .doc-row { border-top: 1px solid var(--border); }
.doc-row:hover { background: #fafbfa; text-decoration: none; }
.doc-row > div, .doc-row > span { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.doc-row strong { font-size: 12px; }
.doc-row small { display: block; color: var(--muted); font-size: 11px; }
.doc-row > svg:last-child { margin-left: auto; color: var(--muted); }
.legal-text { max-width: 900px; padding: 24px; font-size: 13px; line-height: 1.7; }
.legal-text h2 { margin: 24px 0 10px; font-size: 15px; }
.legal-text h2:first-child { margin-top: 0; }
.legal-text p { overflow-wrap: anywhere; }
.wizard-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); align-items: start; gap: 20px; }
.step-nav { position: sticky; top: 20px; display: grid; gap: 2px; }
.step-nav a { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 10px; border-radius: 5px; color: var(--muted); font-size: 11px; }
.step-nav a:hover { background: #eef2ef; text-decoration: none; }
.step-nav a.current { background: #e9f0eb; color: var(--green); font-weight: 700; }
.step-nav a > span { display: inline-grid; place-items: center; flex: 0 0 21px; width: 21px; height: 21px; border: 1px solid #d8e1da; border-radius: 50%; font-size: 9px; }
.step-nav .current > span { border-color: var(--green); background: var(--green); color: #fff; }
.form-panel { padding: 20px 24px; }
.form-panel > h2 { margin: 15px 0 18px; font-size: 17px; }
.form-panel > .small { margin-top: 12px; }
.form-panel > form { margin-top: 20px; }
.consent-documents { margin: 16px 0; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.consent-documents > div { display: flex; align-items: center; gap: 0 14px; flex-wrap: wrap; }
.consent-documents .text-link { min-height: 44px; }
.step-counter { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 10px; }
progress.progress { display: block; appearance: none; width: 100%; height: 3px; margin-top: 9px; border: 0; border-radius: 0; background: #edf1ee; accent-color: var(--green); }
progress.progress::-webkit-progress-bar { background: #edf1ee; }
progress.progress::-webkit-progress-value { background: var(--green); }
progress.progress::-moz-progress-bar { background: var(--green); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 18px; }
.form-grid:has(> .form-field > .check-line) { row-gap: 4px; }
.form-field { min-width: 0; }
.form-field.wide { grid-column: 1 / -1; }
.form-field > label:not(.check-line) { display: block; margin-bottom: 6px; font-size: 12px; }
.required { margin-left: 4px; color: #7d3b35; }
.optional { margin-left: 6px; color: var(--muted); font-size: 10px; }
input:not([type='checkbox']):not([type='radio']), select, textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 11px;
  border: 1px solid #cfd8d1;
  border-radius: 5px;
  background: #fff;
  color: var(--text);
  outline-offset: 2px;
}
input::placeholder, textarea::placeholder { color: #818b84; opacity: 1; }
input[readonly] { background: #f6f8f6 !important; color: #536158; }
input:disabled, select:disabled, textarea:disabled { background: #f3f5f3; color: #707b73; }
input[aria-invalid='true'], select[aria-invalid='true'], textarea[aria-invalid='true'] { border-color: #b75050; }
textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
input[type='file'] { padding: 6px; font-size: 11px; }
input[type='file']::file-selector-button { min-height: 30px; margin-right: 10px; padding: 5px 10px; border: 0; border-radius: 3px; background: var(--hover); color: var(--green); font: inherit; cursor: pointer; }
input[type='checkbox'], input[type='radio'] { width: 17px; height: 17px; margin: 3px 0 0; accent-color: var(--green); flex: 0 0 auto; }
input[type='checkbox']:disabled { opacity: .5; }
.form-field > small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.field-help { margin-top: 4px; color: var(--muted); font-size: 11px; }
.field-help > summary { display: inline-flex; align-items: center; min-height: 36px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.field-help p { max-width: 560px; padding: 2px 0 8px; font-size: 11px; }
.field-error { color: var(--danger) !important; font-size: 11px; }
.error-fields { margin: 0 0 18px; padding: 14px 18px 14px 32px; border: 1px solid #e2c5c5; border-radius: 5px; background: #fcf3f3; color: #8c3030; font-size: 12px; }
.error-fields li + li { margin-top: 5px; }
.error-fields a { color: #8c3030; text-decoration: underline; }
.form-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); }
.stack { display: block; margin-bottom: 14px; font-size: 12px; }
.stack input, .stack select, .stack textarea { margin-top: 6px; }
.check-line { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 10px 0; color: var(--text); cursor: pointer; font-size: 12px; line-height: 1.5; }
.check-line > span { min-width: 0; overflow-wrap: anywhere; }
.check-line small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.upload-list { margin-bottom: 18px; }
.upload-row { padding: 14px 0; border-bottom: 1px solid var(--border); }
.upload-row:first-child { padding-top: 0; }
.upload-row > div:first-child { display: flex; align-items: flex-start; gap: 9px; }
.upload-row h3 { font-size: 12px; }
.upload-row .file-ok { color: #3c694b; font-size: 10px; }
.upload-row > form { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.upload-row > form input[type='file'] { flex: 1; }
.uploaded { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 0 0 27px; font-size: 11px; }
.uploaded > a { min-width: 0; overflow-wrap: anywhere; }
.uploaded form { flex: 0 0 auto; }
.file-input { min-width: 0; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); align-items: start; gap: 18px; }
.detail-layout > div, .detail-layout > aside { min-width: 0; }
.operation-summary { padding: 18px; }
.summary-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.summary-values > div { min-width: 0; }
.summary-values span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; }
.summary-values strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.operation-summary > .button { margin-top: 18px; }
.data-section { border-bottom: 1px solid var(--border); }
.data-section:last-child { border-bottom: 0; }
summary { min-height: 44px; padding: 12px 16px; cursor: pointer; font-size: 12px; }
summary:hover { background: #fafbfa; }
.data-section dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; padding: 0 18px 18px; }
.data-section dt { color: var(--muted); font-size: 10px; }
.data-section dd { margin-top: 3px; font-size: 12px; overflow-wrap: anywhere; }
.document-list { padding: 0 18px; }
.document-list > p { padding: 15px 0; font-size: 12px; }
.document-item { display: flex; align-items: center; gap: 10px; min-height: 62px; padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--text); }
.document-item:last-child { border-bottom: 0; }
.document-item > div { flex: 1; min-width: 0; }
.document-item strong { display: block; font-size: 12px; overflow-wrap: anywhere; }
.document-item small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.document-item > svg:last-child { color: var(--muted); }
.document-item > a { flex: 0 0 auto; min-height: 44px; padding: 12px 0; font-size: 11px; }
.audit { list-style: none; margin: 0; padding: 8px 18px 16px; }
.audit li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; }
.audit-dot { flex: 0 0 auto; width: 5px; height: 5px; margin-top: 6px; border-radius: 50%; background: #a4b3a9; }
.audit strong { display: block; font-size: 11px; font-weight: 400; }
.audit small { display: block; color: var(--muted); font-size: 10px; }
.messages { max-height: 420px; padding: 4px 18px; overflow-y: auto; }
.messages > .muted { padding: 14px 0; font-size: 12px; }
.message { padding: 12px 0; border-bottom: 1px solid #edf0ed; }
.message:last-child { border-bottom: 0; }
.message strong { display: block; font-size: 11px; color: var(--green); }
.message p { margin: 5px 0; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.message small { color: var(--muted); font-size: 10px; }
.message-form { display: grid; gap: 8px; padding: 12px 18px 18px; }
.message-form .button { justify-self: end; }
.review-form { padding: 6px 18px 16px; }
.review-panel > .section-details { margin: 0; border: 0; border-radius: inherit; }
.review-panel > .section-details > .review-form { padding: 6px 18px 16px; }
.review-panel > form { margin: 12px 18px; }
.history-link { margin: -4px 0 12px; }
.review-form .check-line { border-bottom: 1px solid #edf0ed; font-size: 11px; }
.review-form .stack:first-of-type { margin-top: 16px; }
.review-buttons { display: grid; gap: 8px; }
.review-buttons .button { width: 100%; font-size: 11px; }
.review-form + form, .review-form ~ form { margin: 0 18px 14px; }
.review-form ~ .alert { margin: 0 18px 14px; }
.review-form ~ form > small { display: block; margin-top: 6px; font-size: 10px; }
.financial { border-top: 1px solid var(--border); }
.financial > summary { padding: 14px 18px; font-size: 12px; }
.financial > p, .financial > form { margin: 0; padding: 0 18px 16px; }
.financial > p { font-size: 11px; }
.financial .button + .button { margin-top: 8px; }
.settings-panel { padding: 18px; }
.settings-panel h2, .settings-panel h3 { margin-bottom: 10px; }
.settings-panel > p { margin-bottom: 14px; color: var(--muted); font-size: 12px; }
.settings-panel form { margin-top: 16px; }
.settings-panel .section-details > form { margin-top: 0; }
.settings-panel .document-item + form { padding-top: 16px; border-top: 1px solid var(--border); }
.settings-list > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 11px; }
.settings-list dt { color: var(--muted); }
.settings-list dd { text-align: right; }
.settings-panel ol { padding-left: 20px; font-size: 12px; }
.settings-panel li + li { margin-top: 12px; }
code { padding: 2px 4px; background: var(--bg); border-radius: 3px; font-size: 11px; overflow-wrap: anywhere; }
.company-card { padding: 18px; }
.company-card h3 { margin-bottom: 5px; }
.company-card p { margin: 4px 0; color: var(--muted); font-size: 12px; }
.company-card > strong { display: block; margin-top: 14px; font-size: 17px; font-weight: 400; }
.signature-status { padding: 10px 14px; margin-bottom: 12px; border: 1px solid var(--border); border-radius: 5px; background: #fff; color: var(--muted); font-size: 12px; }
.signature-frame { width: 100%; margin-bottom: 14px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.signature-frame iframe { display: block; width: 100%; height: 760px; min-height: 65vh; border: 0; }
.error-page { max-width: 600px; margin: 32px auto; padding: 24px; }
.error-page h1 { margin-bottom: 10px; }
.error-page .button { margin-top: 16px; }
/* Native disclosures keep legal content available without filling the workspace. */
details[open] > summary { margin-bottom: 8px; }
.section-details[open] > summary, .data-section[open] > summary { margin-bottom: 0; }
details.section-details > .document-rows { margin: 14px 18px; padding: 0; }
@media (max-width: 1200px) {
  .content { padding: 24px; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters input[name='q'] { grid-column: auto; }
  .filters .button { justify-self: start; }
  .detail-layout { grid-template-columns: minmax(0, 1.4fr) minmax(290px, 1fr); gap: 14px; }
  .summary-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-layout > aside { display: block; }
  .wizard-layout { grid-template-columns: 175px minmax(0, 1fr); gap: 14px; }
  .form-panel { padding: 18px; }
  .step-nav a { padding: 7px; font-size: 10px; }
  .form-grid { gap: 15px 12px; }
  .dashboard-stats > div{ padding: 13px 14px; }
  .summary-values { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .sidebar { position: static; width: 100%; padding: 12px 16px 8px; border-right: 0; border-bottom: 1px solid var(--border); }
  .brand { width: fit-content; min-height: 34px; margin: 0 0 10px; font-size: 25px; }
  .brand-symbol { font-size: 33px; }
  .brand-product { font-size: 8px; }
  .workspace-label { margin: 0 0 6px; font-size: 10px; }
  .sidebar nav { display: flex; gap: 2px; overflow-x: auto; padding-bottom: 2px; }
  .navlink { flex: 0 0 auto; gap: 6px; min-height: 44px; padding: 9px 10px; font-size: 11px; }
  .navlink svg { width: 15px; height: 15px; }
  .navdot { margin-left: 3px; }
  .sidebar-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 6px 0 0; margin-top: 0; }
  .sidebar-bottom .profile { max-width: 100%; }
  .account-label { margin: 0; font-size: 10px; overflow-wrap: anywhere; }
  .logout { padding: 5px 0; font-size: 10px; }
  .app-main { margin-left: 0; }
  .content { padding: 20px 16px 30px; }
  h1 { font-size: 26px; letter-spacing: -.6px; }
  .page-heading { align-items: center; gap: 10px; margin-bottom: 18px; }
  .page-heading p { font-size: 12px; }
  .page-heading > .button { margin-top: 0; }
  .page-meta, .dossier-context { font-size: 11px; }
  .dashboard-toolbar { gap: 8px; }
  .fund-tabs { flex-wrap: nowrap; gap: 3px; max-width: 100%; overflow-x: auto; }
  .fund-tabs a { flex: 0 0 auto; min-height: 44px; padding: 9px 11px; font-size: 11px; }
  .dashboard-stats{ margin-bottom: 16px; }
  .dashboard-stats > div{ padding: 11px 10px; }
  .dashboard-stats span{ font-size: 10px; }
  .dashboard-stats strong{ font-size: 22px; }
  .dashboard-stats small{ font-size: 9px; }
  .panel-top { padding: 12px 14px; }
  .panel-top h2 { font-size: 13px; }
  .panel-top .text-link { min-height: 44px; font-size: 11px; }
  td, th { padding-left: 14px; padding-right: 14px; }
  .filters { padding: 12px 14px; gap: 8px; }
  .filters input[name='q'] { grid-column: 1 / -1; }
  .filters select[name='fund'] { grid-column: 1 / -1; }
  .filters .button { width: 100%; grid-column: 1 / -1; }
  .operation-grid, .company-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .operation-option { gap: 12px; min-height: 68px; padding: 14px 16px; }
  .operation-option p { font-size: 11px; }
  .landing-card { margin: 16px auto; padding: 22px; }
  .landing-card h1 { font-size: 25px; }
  .landing-card .button { width: 100%; }
  .section-details > summary { padding: 12px 14px; }
  .section-details > :not(summary) { padding: 14px; }
  .doc-row { padding: 12px 14px; gap: 9px; }
  .doc-row strong { font-size: 11px; }
  .doc-row small { font-size: 10px; }
  .legal-text { padding: 18px; font-size: 12px; }
  .legal-text h2 { font-size: 14px; }
  .wizard-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .step-nav { position: static; display: flex; gap: 4px; max-width: 100%; overflow-x: auto; padding-bottom: 5px; }
  .step-nav a { flex: 0 0 auto; min-height: 44px; max-width: 235px; padding: 8px 10px; font-size: 10px; }
  .step-nav a > span { width: 18px; height: 18px; flex-basis: 18px; font-size: 8px; }
  .form-panel { padding: 18px 16px; }
  .form-panel > h2 { margin: 13px 0 17px; font-size: 16px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  input:not([type='checkbox']):not([type='radio']), select, textarea { font-size: 16px; }
  .filters input, .filters select { font-size: 12px; }
  .form-field > label:not(.check-line) { font-size: 12px; }
  .field-help > summary { min-height: 44px; }
  .form-actions { gap: 8px; margin-top: 20px; padding-top: 16px; }
  .form-actions > .button { flex: 1; }
  .check-line { padding: 11px 0; }
  .upload-row > form { flex-wrap: wrap; }
  .upload-row > form input[type='file'] { flex-basis: 100%; }
  .uploaded { padding-left: 0; }
  .detail-layout > aside { display: block; }
  .detail-layout > aside > .panel { margin-bottom: 16px; }
  .summary-values { gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-values strong { font-size: 12px; }
  .data-section dl { grid-template-columns: minmax(0, 1fr); padding: 0 14px 14px; }
  .document-list { padding: 0 14px; }
  .document-item { gap: 8px; }
  .messages { padding: 3px 14px; }
  .message-form { padding: 12px 14px 14px; }
  .review-form { padding: 5px 14px 14px; }
  .review-form + form, .review-form ~ form { margin-left: 14px; margin-right: 14px; }
  .review-form ~ .alert { margin-left: 14px; margin-right: 14px; }
  .financial > summary { padding: 13px 14px; }
  .financial > p, .financial > form { padding-left: 14px; padding-right: 14px; }
  .settings-panel { padding: 16px; }
  .settings-list > div { flex-direction: column; gap: 4px; }
  .settings-list dd { text-align: left; }
  .signature-frame iframe { height: 720px; min-height: 70vh; }
}
@media (max-width: 380px) {
  .content { padding-left: 12px; padding-right: 12px; }
  .fund-tabs a { padding: 9px; font-size: 10px; }
  .dashboard-stats > div{ padding: 10px 8px; }
  .summary-values { grid-template-columns: minmax(0, 1fr); }
  .form-actions { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media print {
  .sidebar, .form-actions, .review-buttons, .message-form, .filters { display: none; }
  .app-main { margin-left: 0; }
  .content { max-width: none; padding: 0; }
  .detail-layout { display: block; }
  .panel { break-inside: avoid; border-color: #bbb; }
  body { background: #fff; font-size: 11px; }
  .table-scroll { overflow: visible; }
  table { min-width: 0; }
  a { color: #111; }
}
