/* Framed sheet: 1440 - 228 sidebar - 8 inset - 48 padding = 1156 content.
   Four metrics: (1156 - 3 * 16) / 4 = 277px; all rows share the same edges. */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 64px; }
body { margin: 0; background: var(--tenant-ground); color: var(--ink); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, summary, select { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
p { margin: 0 0 16px; }
h1, h2, h3 { color: var(--ink); font-weight: 600; line-height: 1.3; margin: 0; text-wrap: balance; }
h1 { font-size: 26px; letter-spacing: -.7px; }
h2 { font-size: 17px; letter-spacing: -.25px; margin-bottom: 16px; }
h3 { font-size: 15px; margin-bottom: 8px; }
small { font-size: 12px; }
strong, b { font-weight: 600; }
svg.icon { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; fill: none; flex: 0 0 18px; }
:where(button, a, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.skip { position: fixed; z-index: 100; left: 16px; top: -80px; padding: 12px 18px; background: var(--white); border: 2px solid var(--focus); border-radius: var(--radius); }
.skip:focus { top: 12px; }
.muted, .field-help, .date-tag { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--sidebar-width); padding: 24px 16px 20px; display: flex; flex-direction: column; overflow-y: auto; background: var(--white); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 17px; letter-spacing: -.4px; }
.brand:hover { text-decoration: none; }
.brand small { display: block; color: var(--muted); font-size: 11px; letter-spacing: .3px; margin-top: 3px; }
.mark { display: grid; place-items: center; width: 32px; height: 36px; font-size: 28px; font-weight: 500; color: var(--green); letter-spacing: -7px; padding-right: 7px; }
.mark span { color: var(--gold); }
.sidebar nav { padding-top: 12px; }
.nav-label { margin: 24px 12px 8px; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .1px; }
.sidebar nav a { min-height: 40px; display: flex; gap: 11px; align-items: center; padding: 9px 11px; border-radius: 6px; color: #535d6e; margin: 3px 0; font-size: 13px; }
.sidebar nav a:hover { background: var(--surface-muted); color: var(--tenant-link); text-decoration: none; }
.sidebar nav a.nav-active { background: var(--tenant-surface-accent); color: var(--tenant-ink); font-weight: 600; }
.sidebar nav a.nav-active::after { content: ''; margin-left: auto; width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: currentColor; }
.sidebar-footer { margin-top: auto; padding: 30px 12px 0; color: var(--muted); font-size: 12px; }
.sidebar-footer small { display: block; margin-top: 4px; font-size: 11px; }
.dot { display: inline-block; width: 6px; height: 6px; background: var(--positive); border-radius: 50%; margin-right: 5px; }
.workspace { margin-left: var(--sidebar-width); min-width: 0; }
.topbar { min-height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 10px 28px; gap: 20px; background: var(--white); border-bottom: 1px solid var(--line); }
.org-switch { display: flex; align-items: center; gap: 12px; min-width: 0; }
.org-switch label { color: var(--muted); font-size: 12px; }
.org-switch > div { display: flex; gap: 6px; align-items: center; min-width: 0; }
.org-switch select { background: transparent; border: 0; padding: 5px 22px 5px 0; font-size: 13px; font-weight: 600; max-width: 280px; min-width: 0; }
.subtle, .text-button { border: 0; background: transparent; color: var(--muted); font-size: 12px; padding: 6px; border-radius: 5px; }
.user { display: flex; align-items: center; gap: 12px; font-size: 12px; min-width: 0; }
.user-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; background: #e2e7ee; border-radius: 50%; color: var(--ink); font-size: 12px; font-weight: 600; }
.notification-link { position: relative; display: flex; align-items: center; min-height: 32px; gap: 6px; }
.notification-dot { position: absolute; width: 7px; height: 7px; background: var(--negative); border-radius: 50%; top: 4px; right: 0; border: 1px solid var(--paper); }
.menu-toggle, .sidebar-close { display: none; }
main { min-width: 0; margin: 0; padding: 30px 28px 40px; background: var(--tenant-ground); border: 0; border-radius: 0; min-height: calc(100svh - 102px); }
.page-footer { padding: 4px 24px 14px; color: var(--muted); font-size: 11px; display: flex; justify-content: space-between; gap: 16px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.page-heading p { margin: 8px 0 0; font-size: 13px; }
.eyebrow { display: block; color: var(--tenant-link); font-size: 12px; font-weight: 500; letter-spacing: 0; margin-bottom: 7px; }
.date-tag { white-space: nowrap; font-size: 12px; padding-top: 5px; }
.actions, .filter-actions, .table-heading-tools, .validity-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; border: 1px solid var(--tenant-primary); border-radius: 6px; padding: 9px 14px; background: var(--tenant-primary); color: var(--tenant-primary-foreground); font-size: 13px; font-weight: 600; line-height: 1.4; transition: transform var(--motion-fast) var(--ease-out); white-space: normal; text-align: center; }
.button:hover { text-decoration: none; }
.button:active { transform: scale(.98); }
.button:disabled { opacity: .65; cursor: wait; }
.button.secondary, .button.outline-light { border-color: var(--control-line); color: var(--ink); background: var(--white); }
.button.cream { background: var(--green); color: var(--brand-on-primary); border-color: var(--green); }
.button.quiet-danger { color: var(--negative); background: var(--white); border-color: #e4c7ca; }
.small-button { padding: 5px 9px; min-height: 30px; }
.danger-link { color: var(--negative); }
.back-link { display: inline-flex; gap: 6px; color: var(--muted); font-size: 12px; margin-bottom: 18px; }
.hero { display: flex; gap: 24px; justify-content: space-between; align-items: center; background: var(--tenant-surface-accent); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.hero h2 { font-size: 19px; margin: 0 0 7px; }
.hero p { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.hero .eyebrow { display: none; }
.axis-art { display: none; }
.kpi-grid, .dash-kpis, .validity-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 24px; overflow: hidden; background: var(--white); }
.kpi-grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpi-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card, .dash-kpi, .validity-kpi { min-width: 0; padding: 18px 20px; border-right: 1px solid var(--line); background: var(--white); }
.card:last-child, .dash-kpi:last-child, .validity-kpi:last-child { border-right: 0; }
.card > span, .dash-kpi > span, .validity-kpi > span { font-size: 12px; color: var(--muted); }
.card > strong, .dash-kpi > strong, .validity-kpi > strong { display: block; font-size: 28px; line-height: 1.3; font-weight: 600; letter-spacing: -.6px; margin: 8px 0 4px; font-variant-numeric: tabular-nums; }
.card > small, .validity-kpi > small { color: var(--muted); font-size: 11px; }
a.card:hover { background: var(--surface-muted); text-decoration: none; }
.panel { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.panel > :last-child { margin-bottom: 0; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-heading h2 { margin: 0; }
.section-heading p { font-size: 13px; margin: 6px 0 0; }
.section-heading > a { font-size: 12px; flex-shrink: 0; }
.recent-row { display: flex; gap: 12px; align-items: center; padding: 13px 0; border-top: 1px solid #f0f1f3; }
.recent-row > div { flex: 1; min-width: 0; }
.recent-row strong { font-size: 13px; color: var(--tenant-link); font-variant-numeric: tabular-nums; }
.recent-row p { margin: 3px 0 0; color: var(--muted); font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.recent-row .company { font-size: 12px; max-width: 180px; }
.recent-row:hover { text-decoration: none; }
.request-icon { color: var(--muted); }
.badge { display: inline-flex; gap: 5px; align-items: center; width: max-content; max-width: 100%; flex: 0 0 auto; border-radius: 5px; padding: 3px 7px; background: #f0f2f5; color: #4d596b; font-size: 11px; font-weight: 500; white-space: nowrap; line-height: 1.4; }
.badge.APPROVED, .badge.INVOICED, .badge.COMPLETED, .badge.active { background: var(--positive-bg); color: var(--positive); }
.badge.IN_PROGRESS, .badge.ASSIGNED { background: var(--info-bg); color: var(--info); }
.badge.RETURNED, .badge.PENDING_APPROVAL, .badge.expiring { background: var(--warning-bg); color: var(--warning); }
.badge.REJECTED, .badge.CANCELLED, .badge.expired { background: var(--negative-bg); color: var(--negative); }
.tag-list { display: flex; flex-wrap: wrap; gap: 5px; }
.empty, .dash-empty { padding: 32px 20px; text-align: center; color: var(--muted); }
.empty h3 { color: var(--ink); }
.empty p { max-width: 430px; margin: 6px auto 0; font-size: 13px; }
.table-panel { padding: 0; overflow: hidden; }
.table-panel > .section-heading { padding: 20px 20px 0; }
.table-scroll, .dash-table-wrap { overflow: auto; max-width: 100%; overscroll-behavior-x: contain; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { color: var(--muted); font-size: 11px; font-weight: 500; white-space: nowrap; text-align: left; background: var(--white); position: sticky; top: 0; z-index: 1; }
th, td { padding: 13px 16px; border-bottom: 1px solid #eff1f4; vertical-align: middle; }
td small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
tbody tr:last-child td { border-bottom: 0; }
td a { font-weight: 600; color: var(--tenant-link); }
td:first-child { min-width: 145px; }
td:nth-child(2) { max-width: 300px; overflow-wrap: anywhere; }
td.numeric, th.numeric { text-align: right; font-variant-numeric: tabular-nums; }
.platform-table, .request-table { min-width: 720px; }
.table-actions { display: flex; flex-direction: column; gap: 6px; white-space: nowrap; font-size: 12px; }
.pagination { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.pagination a { color: var(--tenant-link); font-weight: 600; display: inline-flex; align-items: center; min-height: 34px; padding: 6px 12px; border-radius: 6px; background: var(--tenant-surface-accent); }
.pagination .actions { gap: 16px; }
.filters, .validity-filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; background: var(--surface-muted); padding: 16px; }
.filters > div, .validity-filters > div { flex: 1 1 140px; min-width: 0; }
.filters .filter-search, .filters .search-field, .validity-filters .validity-search { flex: 2 1 240px; }
.filters label, .validity-filters label { font-size: 11px; }
.inbox-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items:end; gap:16px; background:var(--white); padding:20px; }
.inbox-filters .filter-search { grid-column:span 2; }
.inbox-filters label { font-size:12px; margin-bottom:8px; }
.inbox-filters .more-filters { grid-column:1 / -1; border-top:1px solid var(--line); padding-top:12px; }
.inbox-filters .more-filters summary { display:flex; align-items:center; min-height:44px; font-size:13px; }
.inbox-filters .more-filters summary::after { content:'+'; margin-left:auto; font-size:18px; }
.inbox-filters .more-filters[open] summary::after { content:'−'; }
.inbox-filters .filter-actions { grid-column:1 / -1; display:flex; justify-content:flex-end; gap:12px; }
.inbox-filters [data-filter-status] { grid-column:1 / -1; }
.filter-actions, .validity-filter-actions { flex: 0 0 auto !important; }
.filters .more-filters { flex-basis: 100%; }
.more-filters summary { cursor: pointer; font-size: 12px; color: var(--muted); }
.extra-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 14px; }
label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 7px; }
input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea { width: 100%; min-height: 38px; padding: 9px 11px; border: 1px solid var(--control-line); border-radius: 6px; background: var(--white); color: var(--ink); line-height: 1.4; }
input::placeholder, textarea::placeholder { color: #6c7380; opacity: 1; }
textarea { resize: vertical; min-height: 86px; }
input[type=checkbox], input[type=radio] { width: 16px; height: 16px; accent-color: var(--green); flex-shrink: 0; }
input[type=color] { padding: 4px !important; cursor: pointer; }
input[aria-invalid=true], select[aria-invalid=true], textarea[aria-invalid=true] { border-color: var(--negative); }
:disabled { cursor: not-allowed; }
.form-panel { max-width: 100%; }
.platform-form { max-width: 960px; }
.form-grid, .data-grid, .company-information { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.form-grid .full-width, .form-grid .wide { grid-column: 1 / -1; }
.form-field, .field { min-width: 0; }
.form-field small, .field small, .field-help { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }
.field-help ul { padding-left: 17px; margin: 6px 0; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 24px; font-size: 12px; }
.roles-fieldset { padding: 0; border: 0; min-width: 0; margin: 0; }
.roles-fieldset legend { font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.roles-fieldset > div, .team-member-options > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.roles-fieldset label, .team-member-options label { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; margin: 0; min-height: 44px; }
.roles-fieldset label:has(input:checked) { border-color: #9ca9bb; background: var(--surface-muted); }
.roles-fieldset small { color: var(--muted); display: block; margin-top: 10px; }
.errorlist { color: var(--negative); font-size: 12px; padding-left: 18px; margin: 8px 0; }
.errorlist.nonfield { border: 1px solid #ebced1; background: var(--negative-bg); border-radius: 6px; padding: 12px 12px 12px 28px; margin: 0 0 20px; }
.message { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-left: 3px solid var(--info); background: var(--info-bg); padding: 12px 14px; border-radius: 6px; margin-bottom: 20px; font-size: 13px; }
.message.success { border-left-color: var(--positive); background: var(--positive-bg); color: var(--positive); }
.message.error { border-left-color: var(--negative); background: var(--negative-bg); color: var(--negative); }
.message.warning { border-left-color: var(--warning); background: var(--warning-bg); color: var(--warning); }
.message button { background: transparent; border: 0; color: inherit; padding: 5px; }
.company-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin: 0 0 24px; overflow: auto; }
.company-tabs a { padding: 12px 0; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; font-size: 13px; }
.company-tabs a.active { border-bottom-color: var(--green); color: var(--ink); font-weight: 600; }
.organization-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 10px; color: var(--muted); font-size: 12px; }
.company-information dt, .data-grid dt { font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.company-information dd, .data-grid dd { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.organization-state { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.organization-state p { font-size: 13px; margin: 0; }
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.module-card { margin: 0; }
.module-card p { font-size: 13px; color: var(--muted); }
.module-icon { color: var(--muted); font-size: 22px; }
.module-details { margin: 18px 0; }
.module-details > div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid #eff1f4; padding: 9px 0; font-size: 12px; }
.module-details dt { color: var(--muted); }
.module-details dd { margin: 0; text-align: right; }
.module-action { border-top: 1px solid var(--line); padding-top: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.module-placeholder { color: var(--muted); font-size: 12px; padding: 12px 0 20px; }
.confirmation-panel { max-width: 680px; }
.confirmation-symbol { color: var(--warning); margin-bottom: 16px; font-size: 24px; }
.confirmation-note { background: var(--warning-bg); border-radius: 6px; padding: 14px; color: var(--warning); }
.checkbox { display: flex; align-items: center; gap: 10px; }
.confirmation-note small { display: block; margin-top: 7px; }
.tenant-brand { gap: 10px; min-width: 0; }
.tenant-logo { width: 34px; height: 34px; flex: 0 0 34px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; display: grid; place-items: center; overflow: hidden; }
.tenant-logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.tenant-logo-fallback { background: var(--green); color: var(--brand-on-primary); border-color: transparent; font-size: 17px; }
.tenant-brand-copy { display: block; min-width: 0; }
.tenant-brand-copy b { display: block; max-width: 155px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; font-size: 12px; letter-spacing: 0; }
.tenant-brand-copy small { font-size: 11px; }
.current-logo { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 10px; }
.current-logo img { width: 64px; height: 42px; object-fit: contain; }
.current-logo span { color: var(--muted); font-size: 12px; }
.logo-preview { margin: 12px 0 0; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.logo-preview img { width: 90px; height: 64px; object-fit: contain; padding: 8px; border: 1px solid var(--line); border-radius: 6px; }
.brand-summary-grid { display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: center; }
.brand-logo-preview { min-height: 96px; display: grid; place-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.brand-logo-preview img { max-width: 100%; max-height: 64px; object-fit: contain; }
.brand-logo-placeholder { display: grid; place-items: center; width: 54px; height: 54px; background: var(--green); color: var(--brand-on-primary); border-radius: var(--radius); font-size: 25px; }
.brand-color-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.brand-color-list > div { display: grid; grid-template-columns: 30px 1fr; gap: 2px 10px; align-items: center; }
.brand-swatch { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 6px; grid-row: 1/3; }
.brand-color-list small { color: var(--muted); font-size: 11px; }
.brand-color-list strong { font-size: 11px; font-family: var(--mono); }
.user-membership + .user-membership { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.user-membership .tag-list { margin-top: 5px; }
.email-cell { overflow-wrap: anywhere; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
.detail-side { min-width: 0; }
.detail-side label { margin-top: 12px; }
.detail-side .button { margin-top: 12px; }
.detail-side .actions .button { margin-top: 0; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.data-grid { margin: 0; }
.data-grid > div { border-bottom: 1px solid #eff1f4; padding-bottom: 12px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li, .timeline > div { position: relative; border-left: 1px solid var(--line); padding: 0 0 20px 22px; margin-left: 4px; }
.timeline-dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #8998ae; left: -4px; top: 6px; }
.timeline small { color: var(--muted); display: block; }
.timeline p { font-size: 13px; margin: 6px 0 0; white-space: pre-wrap; }
.comment { padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment p { margin: 8px 0 0; white-space: pre-wrap; font-size: 13px; }
.document { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.approval { padding: 16px 0; border-top: 1px solid var(--line); }
.approval small { color: var(--muted); }
.pdf-preview { display: block; width: 100%; min-height: 480px; border: 1px solid var(--line); border-radius: 6px; margin: 14px 0; }
.return-panel { background: var(--warning-bg); border-color: #ede0bf; }
.notice { padding: 16px; border-radius: 6px; background: var(--surface-muted); font-size: 13px; }
.notice-list { padding: 0; margin: 0; list-style: none; }
.notice-list li { border-bottom: 1px solid var(--line); padding: 16px 0; }
.fenix-section { border: 0; border-top: 1px solid var(--line); margin: 24px 0 0; padding: 20px 0 0; min-width: 0; }
.fenix-section legend { padding-right: 12px; font-size: 14px; font-weight: 600; }
.fenix-section h2 { font-size: 15px; }
.fenix-section .form-grid { gap: 18px 24px; }
.field input[type=checkbox] + label { display: inline; }
.validity-heading { align-items: flex-start; }
.validity-heading h1 { font-size: 26px; }
.validity-heading p { max-width: 670px; }
.validity-source-status { font-size: 12px; color: var(--muted); }
.validity-source-status strong { color: var(--ink); }
.validity-toolbar { display: flex; flex-direction: column; gap: 12px; }
.validity-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 11px; color: var(--muted); }
.legend-dot, .status-indicator { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 5px; background: #8891a0; }
.legend-dot.active, .port-status.active .status-indicator { background: var(--positive); }
.legend-dot.expired, .port-status.expired .status-indicator { background: var(--negative); }
.legend-dot.expiring, .port-status.expiring .status-indicator { background: var(--warning); }
.legend-dot.review, .port-status.review .status-indicator { background: var(--info); }
.validity-results { display: grid; gap: 12px; }
.validity-client-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.validity-client-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.validity-client-head h2 { font-size: 14px; margin-bottom: 6px; }
.client-meta, .client-source { color: var(--muted); font-size: 12px; }
.client-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.port-status-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.port-status { min-width: 0; background: var(--surface-muted); border: 1px solid #eff1f4; border-radius: 6px; padding: 10px 12px; }
.port-status-title { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; }
.port-status strong { display: block; font-size: 13px; font-variant-numeric: tabular-nums; margin: 5px 0; }
.port-status .status-text { display: block; font-size: 11px; color: var(--muted); }
.port-status.expired .status-text { color: var(--negative); }
.port-status.expiring .status-text { color: var(--warning); }
.port-status.review .status-text { color: var(--info); }
.port-status.active .status-text { color: var(--positive); }
.validity-pagination { margin-top: 16px; }
.auth-main { max-width: none; margin: 0; min-height: 100svh; padding: 32px; background: var(--paper); border: 0; border-radius: 0; display: grid; place-items: center; }
.login-shell { width: min(100%, 1040px); min-height: 620px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius-sheet); overflow: hidden; background: var(--white); }
.login-story { padding: 48px; background: #e9edf3; display: flex; flex-direction: column; justify-content: center; }
.login-story .brand { margin-bottom: 64px; font-size: 19px; }
.login-story h1 { font-size: 34px; line-height: 1.2; margin: 0 0 20px; letter-spacing: -1px; }
.login-story p { color: #535e72; font-size: 14px; max-width: 320px; }
.login-story > small { color: #535e72; margin-top: 54px; font-size: 11px; }
.login-story > .eyebrow { display: none; }
.orb { display: none; }
.login-form { display: flex; flex-direction: column; justify-content: center; padding: 48px; }
.login-form h2 { font-size: 23px; margin-bottom: 10px; letter-spacing: -.6px; }
.login-form > p { font-size: 13px; margin-bottom: 28px; }
.login-form form p { margin-bottom: 18px; }
.login-form .button { width: 100%; margin: 6px 0 20px; }
.submit-overlay { position: fixed; z-index: 80; inset: auto 24px 24px auto; width: min(380px, calc(100% - 32px)); }
.submit-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: 0 8px 32px #131b2e14; }
.submit-card h2 { font-size: 15px; margin-bottom: 6px; }
.submit-card p, .submit-card small { font-size: 12px; color: var(--muted); }
.loading-ring { display: block; width: 18px; height: 18px; margin-bottom: 12px; border: 2px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: axis-spin .7s linear infinite; }
@keyframes axis-spin { to { transform: rotate(360deg); } }
@media (hover: hover) and (pointer: fine) {
  .button:hover { opacity: .88; }
  tbody tr:hover { background: #fafbfc; }
  .recent-row:hover { background: var(--surface-muted); }
}
@media (max-width: 1200px) {
  .org-switch label { display: none; }
  .detail-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; }
  .user-name { max-width: 110px; }
  .inbox-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .port-status-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .brand-color-list { grid-template-columns: 1fr; }
  .company-section-heading { flex-wrap: wrap; }
}
@media (max-width: 960px) {
  .detail-grid { grid-template-columns: 1fr; }
  .topbar { padding-inline: 18px; }
  .user-name, .notification-text { display: none; }
  .kpi-grid.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .module-grid { grid-template-columns: 1fr; }
  .login-story, .login-form { padding: 32px; }
}
@media (max-width: 767px) {
  body { background: var(--white); }
  .sidebar { width: min(300px, 86vw); box-shadow: 8px 0 32px #131b2e20; transform: translateX(-110%); visibility: hidden; transition: transform 200ms var(--ease-out); }
  body.nav-open .sidebar { transform: translateX(0); visibility: visible; }
  .sidebar-close { display: inline-flex; position: absolute; right: 8px; top: 8px; border: 0; background: transparent; padding: 8px; color: var(--muted); }
  .menu-toggle { display: inline-flex; border: 0; background: transparent; padding: 8px; color: var(--ink); }
  .nav-backdrop { position: fixed; z-index: 25; inset: 0; border: 0; background: #131b2e40; }
  .workspace { margin-left: 0; }
  .topbar { min-height: 56px; background: var(--paper); gap: 8px; padding: 8px 12px; }
  .org-switch { flex: 1; }
  .org-switch > div { width: 100%; }
  .org-switch select { max-width: 100%; width: 100%; font-size: 12px; }
  .org-switch .subtle { font-size: 11px; }
  .user { gap: 6px; }
  .user > .avatar { display: none; }
  main { padding: 24px 18px; border-radius: 0; border: 0; margin: 0; }
  .page-heading { flex-wrap: wrap; gap: 12px; }
  h1 { font-size: 24px; }
  .page-footer { padding-inline: 18px; font-size: 11px; }
  .page-footer span { max-width: 190px; text-align: right; }
  .hero { padding: 18px; }
  .kpi-grid, .kpi-grid.five, .kpi-grid.three, .dash-kpis, .validity-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card, .dash-kpi, .validity-kpi { padding: 16px; border-bottom: 1px solid var(--line); }
  .kpi-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .recent-row .company { display: none; }
  .recent-row { gap: 10px; }
  .recent-row .badge { font-size: 11px; }
  .panel { padding: 18px; }
  .table-panel { padding: 0; }
  .form-grid, .data-grid, .company-information, .two-col, .roles-fieldset > div, .team-member-options > div { grid-template-columns: 1fr; }
  .form-footer { flex-wrap: wrap; }
  .form-footer > .actions { width: 100%; justify-content: flex-end; }
  .filters, .validity-filters { display: grid; grid-template-columns: 1fr; }
  .extra-filters { grid-template-columns: 1fr; }
  .filters > div { min-width: 0; }
  .organization-state { flex-direction: column; align-items: flex-start; }
  .company-tabs { gap: 20px; }
  .brand-summary-grid { grid-template-columns: 1fr; }
  .validity-client-head { flex-wrap: wrap; }
  .port-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login-shell { grid-template-columns: 1fr; min-height: 0; }
  .login-story { padding: 28px; }
  .login-story .brand { margin-bottom: 24px; }
  .login-story h1 { font-size: 26px; margin-bottom: 10px; }
  .login-story h1 br { display: none; }
  .login-story > small { display: none; }
  .login-story p { margin-bottom: 0; }
  .login-form { padding: 28px; }
  .auth-main { padding: 16px; }
  input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea { font-size: 16px; min-height: 42px; }
  .org-switch select { min-height: 32px; }
  .button { min-height: 40px; }
  .auth-main > .message { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .button:active { transform: none; }
  .loading-ring { border-color: var(--muted); border-style: dotted; }
}
@media print {
  .sidebar, .topbar, .page-footer, .actions, .submit-overlay { display: none; }
  .workspace { margin-left: 0; }
  main { margin: 0; padding: 0; border: 0; }
  .panel { break-inside: avoid; }
}.profile-menu { position: relative; }
.profile-menu summary { display: flex; gap: 9px; align-items: center; cursor: pointer; list-style: none; min-height: 32px; }
.profile-menu summary::-webkit-details-marker { display: none; }
.profile-popover { position: absolute; z-index: 40; right: 0; top: calc(100% + 12px); width: 260px; padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px #131b2e12; }
.profile-popover > small { display: block; color: var(--muted); overflow-wrap: anywhere; margin: 4px 0 16px; }
.profile-popover > a { display: block; padding: 10px 0; border-top: 1px solid var(--line); }
.profile-popover .text-button { display: flex; align-items: center; gap: 8px; padding: 10px 0; }
@media(max-width:767px) { body.nav-open { overflow: hidden; } .profile-menu .avatar { display: grid; } .profile-popover { max-width: calc(100vw - 32px); } }.login-processes { display: grid; gap: 12px; margin-top: 24px; font-size: 12px; color: #46546b; }
.login-processes span { padding-left: 14px; border-left: 2px solid #a7b3c5; }
.port-status time { display: block; margin: 5px 0; font-variant-numeric: tabular-nums; font-size: 13px; }
.port-status small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.validity-legend { margin: 16px 0; gap: 6px; }
.validity-legend > span:not(.legend-dot) { margin-right: 12px; }
@media(max-width:767px) { .login-processes { display: none; } }.filter-disclosure > summary { display: none; }
@media(max-width:767px) {
  .filter-disclosure { margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--radius); }
  .filter-disclosure > summary { display: list-item; cursor: pointer; min-height: 44px; padding: 12px 16px; font-size: 13px; font-weight: 500; }
  .filter-disclosure .filters { margin: 0; border: 0; border-radius: 0 0 var(--radius) var(--radius); }
  .button, .sidebar nav a, .profile-menu summary, .notification-link, .menu-toggle, .sidebar-close { min-height: 44px; }
}/* Data-led layouts: five document metrics share one uninterrupted strip. */
.validity-kpis { grid-template-columns: repeat(5,minmax(0,1fr)); }
.stat-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 12px 0; border-bottom: 1px solid #eff1f4; font-size: 13px; }
.stat-row:last-child { border-bottom: 0; }
.stat-row strong { text-align: right; font-variant-numeric: tabular-nums; }
.stat-row small { display: block; color: var(--muted); font-size: 11px; }
.card strong em { font-size: 12px; color: var(--muted); font-style: normal; font-weight: 400; }
.request-table { min-width: 960px; }
.request-table td:nth-child(2) { min-width: 170px; overflow-wrap: normal; }
.validity-source-status { display: flex; flex-direction: column; gap: 3px; text-align: right; }
@media(max-width:767px) {
  .validity-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .validity-kpis > :last-child { grid-column: 1 / -1; }
  .validity-source-status { text-align: left; }
}/* Data and field labels stay at reading size; 11–12px is reserved for metadata. */
.card > span, .dash-kpi > span, .validity-kpi > span, .filters label, .validity-filters label { font-size: 13px; }
.button, .roles-fieldset label, .team-member-options label, .module-details > div, .port-status-title { font-size: 13px; }
.badge, .port-status .status-text, th { font-size: 12px; }

/* Refined Enterprise: one 240px navigation column; the remaining canvas shares
   a 28px gutter. Detail = available width - 304px action rail - 24px gap. */
.workspace-identity { display:flex; gap:10px; align-items:center; min-width:0; color:var(--tenant-link); font-weight:600; }
.workspace-identity > span:not(.tenant-logo) { max-width:280px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.workspace-identity .tenant-logo { width:28px; height:28px; flex-basis:28px; font-size:11px; }
.workspace-identity small { font-weight:400; color:var(--muted); }
.org-switch { margin-left:auto; padding-left:20px; border-left:1px solid var(--line); }
.org-switch label { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.org-switch select { max-width:220px; }
.tenant-logo { width:40px; height:40px; flex-basis:40px; border-radius:8px; }
.tenant-logo img { padding:4px; }
.tenant-logo-fallback { color:var(--tenant-ink); background:var(--tenant-surface-accent); border-color:var(--tenant-border); font-size:13px; }
.tenant-brand-copy b { max-width:148px; font-size:13px; }
.sidebar-footer strong { display:block; color:var(--ink); font-weight:500; margin:5px 0; overflow-wrap:anywhere; }
.workspace-caption { font-size:11px; color:var(--tenant-accent-ink); }
.page-heading { margin-bottom:24px; }
.panel .section-heading > a, .stat-row a { color:var(--tenant-link); }
.card:first-child { background:var(--tenant-surface-accent); }
.card:first-child > strong { color:var(--tenant-ink); }
.hero > div { width:100%; }
.hero h2 { font-size:22px; letter-spacing:-.5px; }
.hero .actions { margin-top:20px; }
.person-initial { display:inline-grid; place-items:center; width:26px; height:26px; flex:0 0 26px; border-radius:50%; font-size:11px; background:var(--surface-muted); color:var(--ink); }
.badge { border:1px solid transparent; }
.status-mark { width:5px; height:5px; flex:0 0 5px; border-radius:50%; background:currentColor; }
.icon-button { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; padding:5px; border:0; border-radius:5px; color:var(--muted); background:transparent; flex:0 0 30px; }
.icon-button .icon { width:16px; height:16px; flex-basis:16px; }
.request-breadcrumb, .detail-breadcrumb { display:flex; gap:12px; align-items:center; color:var(--muted); font-size:12px; margin-bottom:20px; }
.detail-breadcrumb a { color:var(--tenant-link); }
.request-header { padding:24px 26px 0; border:1px solid var(--tenant-border); border-radius:var(--radius); background:var(--white); border-top:3px solid var(--tenant-primary); }
.request-heading-line { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.request-number { display:flex; align-items:center; gap:10px; min-width:0; }
.request-number h1 { color:var(--tenant-link); font-size:28px; font-variant-numeric:tabular-nums; letter-spacing:-.6px; overflow-wrap:anywhere; }
.request-title { font-size:18px; color:var(--ink); font-weight:500; margin:8px 0 12px; }
.request-reference-line { display:flex; flex-wrap:wrap; gap:8px 24px; margin-bottom:24px; color:var(--muted); font-size:13px; }
.request-reference-line:not(:has(span)) { display:none; }
.request-reference-line > span { display:inline-flex; align-items:center; gap:8px; }
.request-reference-line strong { color:var(--ink); font-weight:500; }
.request-meta-strip { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; padding:18px 0; border-top:1px solid var(--line); }
.request-meta-strip > div { min-width:0; }
.request-meta-strip > div > span { display:block; color:var(--muted); font-size:12px; margin-bottom:6px; }
.request-meta-strip strong { display:flex; gap:8px; align-items:center; font-size:13px; font-weight:500; min-height:26px; overflow-wrap:anywhere; }
.priority-label.HIGH { color:var(--status-warning); }
.priority-label.URGENT { color:var(--status-danger); }
.request-priority { display:inline-flex; align-items:center; gap:5px; width:max-content; max-width:100%; padding:2px 7px; margin-top:7px; border-radius:4px; font-size:12px; font-weight:500; line-height:20px; color:var(--muted); background:var(--surface-muted); white-space:nowrap; }
.request-priority .icon { width:13px; height:13px; flex-basis:13px; }
.request-priority.HIGH { color:var(--status-warning); background:var(--status-warning-surface); }
.request-priority.URGENT { color:var(--status-danger); background:var(--status-danger-surface); }
.request-table .request-urgent td { background:var(--status-danger-surface); }
.request-table .request-urgent td:first-child { box-shadow:inset 3px 0 var(--status-danger); }
.priority-edit-link { display:inline-flex; align-items:center; min-height:32px; font-size:12px; color:var(--tenant-link); text-decoration:underline; }
.priority-editor { padding:0 0 20px; margin:0 0 20px; border-bottom:1px solid var(--line); scroll-margin-top:80px; }
.priority-editor .field-help { margin:10px 0 14px; }
.priority-editor .button { width:100%; }
.detail-section-nav { display:flex; flex-wrap:wrap; gap:24px; border-bottom:1px solid var(--line); margin:20px 0 24px; }
.detail-section-nav a { display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:500; color:var(--muted); padding:0 0 14px; }
.detail-section-nav a[aria-current='location'] { border-bottom:2px solid var(--tenant-primary); color:var(--tenant-link); }
.detail-section-nav a:last-child { margin-left:auto; color:var(--tenant-link); }
.detail-section-nav a .icon { width:14px; height:14px; }
.detail-section-nav span, .count-chip { font-size:11px; font-weight:500; padding:2px 7px; border-radius:4px; color:var(--muted); background:var(--surface-muted); white-space:nowrap; }
.request-layout { display:grid; grid-template-columns:minmax(0,1fr) 304px; gap:24px; align-items:start; }
.request-main { min-width:0; }
.data-section { padding:24px; margin-bottom:20px; background:var(--white); border:1px solid var(--line); border-radius:var(--radius); scroll-margin-top:24px; }
.data-section-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:20px; }
.data-section-heading h2 { font-size:16px; margin:0; letter-spacing:-.2px; }
.data-section-heading > span, .data-section-heading p { color:var(--muted); font-size:12px; }
.data-section-heading p { margin:4px 0 0; }
.data-section .data-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 28px; margin:0; }
.data-section .data-grid > div { min-width:0; border:0; padding:0; }
.data-section .data-grid .data-field-wide { grid-column:1 / -1; }
.data-field dt { color:var(--muted); font-size:12px; margin-bottom:6px; }
.data-field dd { display:flex; align-items:center; gap:8px; margin:0; min-height:24px; font-size:14px; overflow-wrap:anywhere; }
.data-field dd > span { min-width:0; }
.data-field a { display:inline-flex; gap:6px; align-items:center; color:var(--tenant-link); text-decoration:underline; text-underline-offset:3px; }
.data-field .icon { width:14px; height:14px; }
.data-field .amount-value { font-size:21px; font-weight:600; font-variant-numeric:tabular-nums; letter-spacing:-.4px; }
.amount-value small { font-size:12px; font-weight:400; color:var(--muted); }
.identifier-value { font-variant-numeric:tabular-nums; font-weight:500; }
.request-rail { min-width:0; }
.action-panel { border:1px solid var(--tenant-border); border-radius:var(--radius); background:var(--white); padding:20px; scroll-margin-top:24px; }
.action-panel > .data-section-heading { margin-bottom:8px; color:var(--tenant-link); }
.action-panel > p { margin-bottom:20px; }
.action-options { display:flex; flex-direction:column; gap:8px; }
.action-disclosure { border:1px solid var(--line); border-radius:6px; background:var(--white); overflow:hidden; }
.action-disclosure summary { display:flex; align-items:center; justify-content:space-between; gap:10px; list-style:none; padding:12px; cursor:pointer; font-size:13px; font-weight:500; }
.action-disclosure summary::-webkit-details-marker, .approval-document summary::-webkit-details-marker { display:none; }
.action-disclosure summary > span { display:flex; align-items:center; gap:8px; }
.action-disclosure summary > .icon { width:14px; height:14px; transition:transform 160ms var(--ease-out); }
.action-disclosure[open] summary > .icon { transform:rotate(90deg); }
.action-disclosure[open] summary { background:var(--surface-muted); }
.action-disclosure form { padding:0 12px 12px; }
.action-disclosure label, .approval-decision label { margin-top:14px; font-size:12px; }
.action-disclosure form .button { margin-top:16px; width:100%; }
.action-featured { border-color:var(--tenant-border); }
.action-featured summary { background:var(--tenant-surface-accent); color:var(--tenant-ink); }
.action-destructive { border-color:#efd7dc; }
.action-destructive summary { color:var(--status-danger); }
.request-scope { padding:24px 4px; }
.request-scope h2 { font-size:13px; margin-bottom:16px; }
.request-scope dl { margin:0; }
.request-scope dl > div { margin-bottom:14px; }
.request-scope dt { color:var(--muted); font-size:12px; }
.request-scope dd { margin:3px 0 0; font-size:13px; }
.request-scope > a { display:inline-flex; gap:8px; align-items:center; color:var(--tenant-link); font-size:12px; }
.request-scope .icon { width:14px; height:14px; }
.section-empty { display:flex; align-items:center; gap:12px; padding:16px; border-radius:6px; background:var(--surface-muted); color:var(--muted); font-size:13px; }
.section-empty > .icon { width:22px; height:22px; flex-basis:22px; }
.section-empty strong { color:var(--ink); font-weight:500; }
.section-empty p { font-size:12px; margin:4px 0 0; }
.document-row { display:flex; gap:12px; align-items:center; padding:14px 0; border-bottom:1px solid var(--line); }
.document-row:last-child { border-bottom:0; }
.file-symbol { color:var(--tenant-link); padding:8px; background:var(--surface-muted); border-radius:6px; display:flex; }
.document-name { flex:1; min-width:0; }
.document-name strong { display:block; overflow-wrap:anywhere; font-size:13px; font-weight:500; }
.document-name small { color:var(--muted); display:block; margin-top:4px; }
.document-download { display:flex; gap:6px; align-items:center; font-size:12px; color:var(--tenant-link); }
.document-download .icon { width:16px; height:16px; }
.document-upload { margin-top:20px; }
.upload-zone { display:flex; position:relative; align-items:center; flex-direction:column; gap:7px; cursor:pointer; padding:24px 16px 18px; border:1px dashed var(--tenant-border); border-radius:6px; background:var(--tenant-ground); text-align:center; }
.upload-zone > .icon { width:24px; height:24px; color:var(--tenant-link); margin-bottom:3px; }
.upload-zone > strong { font-size:13px; color:var(--tenant-link); }
.upload-zone > span, .upload-zone small { font-size:12px; color:var(--muted); }
.upload-zone input { width:100%; max-width:320px; padding:7px; margin-top:4px; font-size:12px; }
.upload-zone:focus-within, .upload-zone.is-dragging { outline:2px solid var(--tenant-focus-ring); outline-offset:2px; background:var(--tenant-surface-accent); }
.upload-footer { display:flex; justify-content:space-between; gap:16px; align-items:center; margin-top:12px; }
.upload-footer .button { flex-shrink:0; }
.approval-submit { display:flex; gap:12px; align-items:end; margin-bottom:20px; }
.approval-submit > div { flex:1; }
.approval-step { padding:20px 0; border-bottom:1px solid var(--line); }
.approval-step:first-child { padding-top:0; }
.approval-step:last-child { border-bottom:0; padding-bottom:0; }
.approval-step-heading { display:flex; align-items:start; justify-content:space-between; gap:16px; }
.approval-step-heading strong { font-size:14px; }
.approval-step-heading small { display:block; color:var(--muted); margin-top:5px; }
.approval-document { margin-top:16px; }
.approval-document summary { list-style:none; cursor:pointer; display:flex; align-items:center; gap:8px; font-size:13px; color:var(--tenant-link); padding:8px 0; }
.approval-document summary > .icon:last-child { margin-left:auto; width:14px; height:14px; }
.approval-document[open] summary > .icon:last-child { transform:rotate(90deg); }
.document-external { display:inline-flex; gap:6px; font-size:12px; margin:8px 0 16px; color:var(--tenant-link); }
.approval-comment, .activity-content blockquote { margin:12px 0 0; padding:10px 14px; border-left:2px solid var(--line); background:var(--surface-muted); font-size:13px; }
.approval-decision { margin-top:16px; padding:16px; background:var(--surface-muted); border-radius:6px; }
.approval-decision > .button { margin-top:16px; }
.activity-timeline { list-style:none; padding:0; margin:0; }
.activity-timeline li { position:relative; display:flex; align-items:start; gap:14px; padding-bottom:24px; }
.activity-timeline li:last-child { padding-bottom:0; }
.activity-timeline li:not(:last-child)::before { content:''; position:absolute; left:12px; top:30px; bottom:4px; width:1px; background:var(--line); }
.activity-node { display:grid; place-items:center; width:26px; height:26px; flex:0 0 26px; border:1px solid var(--line); border-radius:50%; color:var(--muted); background:var(--white); }
.activity-node .icon { width:13px; height:13px; }
.activity-content { flex:1; min-width:0; }
.activity-heading { display:flex; flex-wrap:wrap; justify-content:space-between; gap:5px 16px; align-items:baseline; }
.activity-heading strong { font-size:13px; }
.activity-heading time { font-size:11px; color:var(--muted); font-variant-numeric:tabular-nums; }
.activity-content p { margin:5px 0 0; font-size:12px; }
.request-history-list .history-day { padding:0 0 16px 40px; color:var(--muted); font-size:12px; }
.request-history-list .history-day::before { display:none; }
.request-history-list .history-event { gap:14px; padding-bottom:16px; }
.request-history-list .activity-content { padding:14px 16px; border:1px solid var(--line); border-radius:6px; overflow-wrap:anywhere; }
.request-history-list .activity-node { margin-top:12px; }
.request-history-list .history-event::before { top:42px; bottom:-12px; }
.request-history-list .activity-heading strong { font-size:14px; }
.request-history-list .history-actor { color:var(--ink); font-size:13px; }
.history-change { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:12px; font-size:12px; color:var(--muted); }
.history-change .request-priority { margin:0; }
.history-priority .activity-node { color:var(--tenant-link); border-color:var(--tenant-border); }
@media (max-width:1100px) {
  .inbox-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .inbox-filters .extra-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:600px) {
  .billing-filter-disclosure .inbox-filters { grid-template-columns:minmax(0,1fr); padding:16px; gap:16px; }
  .inbox-filters .filter-search { grid-column:auto; }
  .inbox-filters .extra-filters { grid-template-columns:minmax(0,1fr); }
  .inbox-filters input, .inbox-filters select, .priority-editor select { font-size:16px; min-height:44px; }
  .inbox-filters .filter-actions .button { flex:1; min-height:44px; }
  .request-history-list .activity-content { padding:12px; }
  .request-history-list .activity-heading { gap:8px; }
}
.conversation-entry { display:flex; gap:12px; margin-bottom:24px; }
.conversation-entry > div { flex:1; min-width:0; }
.conversation-entry p { font-size:13px; margin:8px 0 0; overflow-wrap:anywhere; }
.comment-composer { padding:16px; background:var(--surface-muted); border-radius:6px; }
.composer-footer { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:12px; margin-top:12px; }
.composer-footer .checkbox { font-size:12px; margin:0; }
.copy-feedback { position:fixed; bottom:24px; left:50%; transform:translateX(-50%); z-index:80; padding:11px 18px; border-radius:6px; background:var(--ink); color:var(--white); font-size:13px; box-shadow:0 8px 24px #17203324; max-width:calc(100vw - 32px); }
.branding-layout { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:24px; align-items:start; }
.branding-layout .form-panel { max-width:none; margin:0; }
.brand-preview { position:sticky; top:24px; padding:20px; border:1px solid var(--line); border-radius:8px; background:var(--white); min-width:0; }
.preview-label { font-size:11px; color:var(--muted); }
.brand-preview-workspace { border:1px solid var(--tenant-border); border-radius:6px; overflow:hidden; }
.preview-identity { display:flex; gap:10px; align-items:center; padding:16px; background:var(--white); }
.preview-identity > div { min-width:0; }
.preview-identity strong { display:block; font-size:13px; overflow-wrap:anywhere; }
.preview-identity small { display:block; color:var(--muted); font-size:11px; margin-top:3px; }
.preview-identity .tenant-logo { background:var(--tenant-surface-accent); color:var(--tenant-ink); border-color:var(--tenant-border); }
.preview-navigation { display:grid; gap:6px; padding:12px; background:var(--tenant-ground); border-top:1px solid var(--line); }
.preview-navigation > span { display:flex; gap:8px; align-items:center; padding:8px; font-size:12px; color:var(--muted); border-radius:5px; }
.preview-navigation .preview-nav-active { background:var(--tenant-surface-accent); color:var(--tenant-ink); font-weight:500; }
.preview-object { display:grid; gap:12px; padding:20px 16px; background:var(--white); }
.preview-object > small { color:var(--muted); }
.preview-object > strong { font-size:16px; font-weight:500; }
.preview-object .button { width:max-content; max-width:100%; margin-top:4px; pointer-events:none; }
.preview-swatches { display:grid; gap:12px; margin:20px 0; }
.preview-swatches > span { display:flex; align-items:center; gap:10px; font-size:12px; color:var(--muted); }
.preview-swatches i { width:18px; height:18px; border:1px solid var(--line); border-radius:4px; }
.preview-swatches b { margin-left:auto; color:var(--ink); font-size:11px; font-variant-numeric:tabular-nums; }
.brand-preview > p { margin-bottom:0; font-size:12px; }
.results-region { position:relative; }
.results-skeleton { display:none; position:absolute; inset:76px 16px auto; z-index:2; padding:16px; border:1px solid var(--line); border-radius:6px; background:var(--white); }
.results-region:has(#results[aria-busy='true']) .results-skeleton { display:grid; grid-template-columns:2fr 1fr 1fr; gap:16px; }
.results-skeleton span { height:16px; border-radius:4px; background:#e8ebef; }
#results[aria-busy='true'] { opacity:.55; pointer-events:none; }
.request-table td:first-child { min-width:240px; }
.request-table td:first-child small { max-width:280px; }
.company-tabs a[aria-current='page'] { color:var(--tenant-link); border-bottom-color:var(--tenant-primary); }
@media (hover:hover) and (pointer:fine) {
  .button:not(.secondary):not(.quiet-danger):not(.outline-light):hover { background:var(--tenant-primary-hover); }
  .button.secondary:hover, .button.outline-light:hover { background:var(--tenant-surface-accent); border-color:var(--tenant-border); color:var(--tenant-ink); }
  tbody tr:hover { background:var(--tenant-surface-accent); }
  .icon-button:hover { color:var(--tenant-link); background:var(--tenant-surface-accent); }
  .action-disclosure summary:hover { background:var(--tenant-surface-accent); }
  .document-row:hover { background:var(--tenant-ground); text-decoration:none; }
}
@media (max-width:1250px) { .workspace-identity > span:not(.tenant-logo) { max-width:160px; font-size:12px; } .org-switch select { max-width:170px; } .branding-layout { grid-template-columns:minmax(0,1fr) 290px; gap:20px; } .request-layout { grid-template-columns:minmax(0,1fr) 280px; gap:20px; } }
@media (max-width:1023px) {
  .sidebar { width:min(300px,86vw); box-shadow:8px 0 32px #17203320; transform:translateX(-110%); visibility:hidden; transition:transform 200ms var(--ease-out); }
  body.nav-open .sidebar { transform:translateX(0); visibility:visible; }
  body.nav-open { overflow:hidden; }
  .workspace { margin-left:0; }
  .menu-toggle, .sidebar-close { display:inline-flex; border:0; background:transparent; padding:8px; color:var(--ink); }
  .sidebar-close { position:absolute; right:8px; top:8px; }
  .nav-backdrop { position:fixed; z-index:25; inset:0; border:0; background:#17203340; }
  .topbar { padding:8px 20px; gap:12px; }
  .workspace-identity > span:not(.tenant-logo) { max-width:180px; }
  .request-meta-strip { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
  .branding-layout { grid-template-columns:minmax(0,1fr) 290px; }
  .request-layout { grid-template-columns:minmax(0,1fr) 260px; gap:16px; }
  .data-section { padding:20px; }
}
@media (max-width:767px) {
  main { padding:22px 18px; }
  .topbar { background:var(--white); gap:8px; padding:8px 10px; }
  .workspace-identity { display:none; }
  .org-switch { margin:0; padding:0; border:0; }
  .org-switch select { max-width:100%; font-size:12px; }
  .brand-preview { position:static; }
  .branding-layout, .request-layout { display:flex; flex-direction:column; gap:16px; }
  .branding-layout > *, .request-layout > * { width:100%; }
  .request-rail { order:-1; }
  .request-scope { display:none; }
  .action-panel { padding:16px; }
  .action-panel > p { margin-bottom:12px; }
  .action-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .action-disclosure summary { padding:10px; min-height:44px; font-size:12px; }
  .action-disclosure[open] { grid-column:1 / -1; }
  .action-disclosure summary > span > .icon { display:none; }
  .detail-breadcrumb { margin-bottom:16px; }
  .request-header { padding:18px 16px 0; }
  .request-number { gap:4px; }
  .request-number h1 { font-size:22px; }
  .request-heading-line { align-items:start; gap:10px; }
  .request-title { font-size:16px; margin-top:8px; }
  .request-reference-line { margin-bottom:16px; }
  .request-meta-strip { padding:16px 0; gap:16px 10px; }
  .request-meta-strip strong { font-size:12px; }
  .detail-section-nav { gap:20px; flex-wrap:nowrap; overflow:auto; margin:18px 0; }
  .detail-section-nav a { white-space:nowrap; min-height:44px; padding-bottom:10px; }
  .detail-section-nav a:last-child { margin-left:0; }
  .data-section { padding:18px 16px; margin-bottom:16px; }
  .data-section .data-grid { gap:20px 16px; }
  .data-field dd { font-size:13px; }
  .upload-footer, .approval-submit { flex-direction:column; align-items:stretch; gap:12px; }
  .approval-step-heading { flex-wrap:wrap; gap:10px; }
  .document-download { font-size:0; }
  .icon-button { width:36px; height:36px; flex-basis:36px; }
  .activity-heading { flex-direction:column; gap:4px; }
  .request-table { min-width:0; display:block; }
  .request-table thead { position:absolute; width:1px; height:1px; clip-path:inset(50%); overflow:hidden; }
  .request-table tbody { display:block; }
  .request-table tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); padding:18px 16px; gap:12px 16px; border-bottom:1px solid var(--line); }
  .request-table td { display:block; padding:0; border:0; min-width:0 !important; max-width:none; font-size:12px; overflow-wrap:anywhere; }
  .request-table td::before { content:attr(data-label); display:block; color:var(--muted); font-size:11px; margin-bottom:3px; }
  .request-table td:first-child { grid-column:1 / -1; font-size:14px; }
  .request-table td:first-child::before, .request-table td[colspan]::before { display:none; }
  .request-table td:first-child small { max-width:none; font-size:13px; margin-top:5px; }
  .request-table td[colspan] { grid-column:1 / -1; }
}
@media (max-width:420px) { .request-heading-line { flex-wrap:wrap; } .data-section .data-grid { grid-template-columns:1fr; } .request-title { margin-top:12px; } .request-reference-line > span { flex-wrap:wrap; } }
@media (prefers-reduced-motion:reduce) { .action-disclosure summary > .icon { transition:none; } }
body[data-input='keyboard'] *, body[data-input='keyboard'] *::before, body[data-input='keyboard'] *::after { transition:none !important; animation:none !important; }
body[data-input='keyboard'] .button:active { transform:none; }
.profile-popover { transform-origin:top right; transition:transform 140ms var(--ease-out), opacity 140ms ease; }
@starting-style { .profile-menu[open] .profile-popover { opacity:0; transform:translateY(-4px) scale(.98); } }
@media print { .request-rail, .detail-section-nav, .document-upload, .comment-composer, .copy-button, .icon-button { display:none; } .request-layout { display:block; } .data-section { break-inside:avoid; } }
/* Overview: four metrics, then a 1fr / 320px working grid with one 24px gutter. */
.avatar { background:var(--tenant-secondary-surface); color:var(--tenant-secondary-ink); }
.overview-layout { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:24px; align-items:start; }
.overview-metrics .card:first-child strong { font-size:32px; }
.recent-activity .section-heading { align-items:center; }
.recent-activity .section-heading > a { display:inline-flex; gap:8px; align-items:center; }
.recent-activity .section-heading > a .icon { width:14px; height:14px; }
.recent-activity .recent-row { padding:18px 0; gap:14px; }
.recent-activity .recent-row > div > small { display:block; margin-top:5px; font-size:11px; }
.recent-activity .recent-row p { white-space:normal; font-size:13px; }
.recent-activity .request-icon { align-self:start; margin-top:3px; }
.overview-rail { min-width:0; }
.quick-actions { padding:24px; border-radius:8px; background:var(--tenant-surface-accent); border:1px solid var(--line); }
.quick-actions h2 { margin:0 0 7px; font-size:18px; }
.quick-actions > p { font-size:13px; color:var(--muted); margin-bottom:20px; }
.quick-action-list { display:grid; gap:10px; }
.quick-action-list .button { justify-content:flex-start; min-height:42px; font-size:12px; }
.quick-action-list .button > .icon:last-child { margin-left:auto; width:15px; height:15px; }
.approval-inbox { margin-top:20px; padding:20px; border:1px solid var(--line); border-radius:8px; background:var(--white); }
.approval-inbox h2 { font-size:15px; margin-bottom:16px; }
.approval-queue { display:flex; align-items:center; gap:10px; padding:16px 0; border-top:1px solid var(--line); }
.approval-queue > div { flex:1; min-width:0; }
.approval-queue strong { font-size:12px; font-weight:500; }
.approval-queue small { display:block; color:var(--muted); font-size:11px; margin-top:4px; }
.approval-queue > span { font-size:18px; color:var(--ink); font-variant-numeric:tabular-nums; }
.approval-queue > .icon { width:14px; height:14px; color:var(--muted); }
.workspace-note { padding:24px 4px; }
.workspace-note .workspace-caption { color:var(--tenant-link); }
.workspace-note h2 { margin:10px 0; font-size:17px; }
.workspace-note p { color:var(--muted); font-size:13px; }
.workspace-note > a { display:inline-flex; align-items:center; gap:8px; color:var(--tenant-link); font-size:12px; }
.workspace-note .icon { width:14px; height:14px; }
@media(max-width:1200px) { .overview-layout { grid-template-columns:minmax(0,1fr) 280px; gap:20px; } }
@media(max-width:767px) { .overview-layout { display:flex; flex-direction:column; gap:16px; } .overview-layout > * { width:100%; } .overview-rail { order:-1; } .quick-actions { padding:18px; } .quick-actions h2 { font-size:16px; } .quick-actions > p, .workspace-note { display:none; } .quick-action-list { grid-template-columns:repeat(2,minmax(0,1fr)); margin-top:14px; } .quick-action-list .button { justify-content:center; font-size:12px; } .quick-action-list .button .icon { display:none; } .approval-inbox { margin-top:16px; } }
.two-col { align-items:start; }

/* Personal workspace: the queue carries the visual emphasis. */
.metric-link { color:var(--ink); text-decoration:none; transition:background-color 140ms; }
.metric-link:hover { background:var(--tenant-secondary-surface); }
.metric-link.needs-attention { border-color:var(--status-warning); }
.personal-main { display:grid; gap:24px; min-width:0; }
.confirmation-row { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:18px 0; border-top:1px solid var(--line); }
.confirmation-row > div { min-width:0; overflow-wrap:anywhere; }
.confirmation-row p { margin:5px 0; font-size:13px; }
.work-queue .section-heading { align-items:start; }
.work-queue .section-heading p { max-width:480px; margin-bottom:0; }
.work-row { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:18px 0; color:var(--ink); border-top:1px solid var(--line); text-decoration:none; }
.work-row:hover { background:var(--surface-muted); }
.work-row-main { min-width:0; display:grid; gap:6px; }
.work-row-main > strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:15px; }
.work-reference { color:var(--tenant-link); font-weight:650; font-size:13px; }
.work-reference small { color:var(--muted); font-weight:400; margin-left:10px; }
.work-row-next { display:grid; justify-items:end; flex-shrink:0; gap:10px; font-size:12px; color:var(--tenant-link); }
.personal-activity .activity-row { display:flex; align-items:center; gap:14px; padding:14px 0; color:var(--ink); border-top:1px solid var(--line); }
.activity-row > div { min-width:0; flex:1; }
.activity-row p { margin:4px 0; font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.activity-row small { color:var(--muted); font-size:12px; }
.activity-mark { width:7px; height:7px; border-radius:50%; background:var(--tenant-primary); flex-shrink:0; }
.workspace-shortcuts { display:grid; gap:14px; font-size:13px; }
.table-client { display:block; max-width:230px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.request-table { min-width:1540px; }
.request-table .do-reference { white-space:nowrap; font-variant-numeric:tabular-nums; }
.request-table .do-suffix { display:inline-block; min-width:48px; max-width:180px; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.invoice-reference { white-space:nowrap; font-variant-numeric:tabular-nums; }
.request-table thead th { background:var(--surface-muted); padding-top:15px; padding-bottom:15px; }

/* Native form controls remain the source of truth for accessibility and POST. */
.request-form-shell { max-width:1120px; }
.request-form-heading h1 { font-size:clamp(23px,2.2vw,31px); }
.form-section-links { display:flex; flex-wrap:wrap; gap:8px 18px; padding:4px 0 22px; font-size:12px; }
.form-section-links a { color:var(--muted); }
.form-section { background:var(--white); border:1px solid var(--line); border-radius:10px; margin-bottom:14px; padding:0; min-width:0; scroll-margin-top:20px; }
.form-section > summary { display:flex; align-items:center; gap:14px; padding:21px 24px; cursor:pointer; list-style:none; font-weight:650; }
.form-section > summary::-webkit-details-marker { display:none; }
.section-number { color:var(--tenant-link); font-size:12px; font-variant-numeric:tabular-nums; }
.section-completion { margin-left:auto; font-size:12px; color:var(--muted); font-weight:400; }
.section-chevron { color:var(--muted); font-size:18px; }
.form-section[open] > summary { border-bottom:1px solid var(--line); }
.form-section[open] .section-chevron { transform:rotate(180deg); }
.form-section > .form-grid { padding:24px; gap:22px 28px; align-items:start; }
.request-form-shell .field { min-width:0; }
.request-form-shell .field > label { display:block; margin-bottom:8px; font-size:13px; font-weight:600; }
.request-form-shell .field > small { display:block; color:var(--muted); margin-top:6px; font-size:12px; }
.segmented-control > div { display:inline-flex; gap:4px; padding:4px; border:1px solid var(--line); border-radius:8px; background:var(--surface-muted); }
.segmented-control > div > div { display:contents; }
.segmented-control label { display:flex; align-items:center; gap:8px; min-height:32px; min-width:72px; justify-content:center; padding:5px 12px; border-radius:5px; font-size:13px; cursor:pointer; }
.segmented-control input { appearance:none; width:0; height:0; margin:0; padding:0; border:0; position:absolute; opacity:0; }
.segmented-control label:has(input:checked) { background:var(--tenant-primary); color:var(--tenant-primary-foreground); box-shadow:0 1px 3px #00000012; }
.segmented-control label:has(input:focus-visible) { outline:2px solid var(--tenant-focus-ring); outline-offset:2px; }
.dependent-fields { display:grid; gap:16px; margin-top:14px; padding-left:14px; border-left:2px solid var(--line); }
.dependent-fields:not(:has(> .field:not([hidden]))) { display:none; }
.dependent-fields .field { width:100%; }
.multi-picker { border:1px solid var(--line); border-radius:7px; max-width:620px; }
.multi-picker > summary { display:flex; justify-content:space-between; align-items:center; cursor:pointer; padding:11px 13px; font-size:13px; list-style:none; }
.multi-options { max-height:240px; overflow:auto; padding:10px 13px; border-top:1px solid var(--line); }
.multi-options > div { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.multi-options label { display:flex; align-items:center; gap:9px; font-size:13px; min-height:32px; }
.multi-options input { width:17px; height:17px; margin:0; accent-color:var(--tenant-primary); }
.selected-chips { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.selection-chip { border:1px solid var(--line); background:var(--tenant-secondary-surface); color:var(--ink); padding:5px 9px; border-radius:5px; font-size:12px; cursor:pointer; }
.form-error-summary { background:var(--status-danger-surface); color:var(--status-danger); border:1px solid var(--status-danger); padding:18px 22px; border-radius:8px; margin-bottom:20px; }
.form-error-summary a { color:inherit; text-decoration:underline; }
.form-review { margin-top:24px; }
.form-review > summary { cursor:pointer; display:flex; justify-content:space-between; align-items:center; gap:12px; font-weight:650; }
.form-review > summary small { font-weight:400; color:var(--muted); }
.form-review dl { display:grid; grid-template-columns:minmax(150px,1fr) 2fr; font-size:13px; gap:0 20px; margin-top:20px; }
.form-review dt, .form-review dd { margin:0; padding:12px 0; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.form-review dt { color:var(--muted); }
.request-form-shell .form-footer { padding:22px 0; gap:18px; }
.client-picker-field { position:relative; }
.client-options { position:absolute; top:76px; left:0; right:0; z-index:20; background:var(--white); border:1px solid var(--line); border-radius:8px; box-shadow:0 7px 24px #00000014; padding:5px; }
.client-options [role=listbox] { max-height:280px; overflow:auto; }
.client-options [role=option] { display:grid; width:100%; padding:11px 12px; text-align:left; background:transparent; border:0; border-radius:5px; cursor:pointer; color:var(--ink); gap:4px; }
.client-options [role=option] strong { font-size:13px; font-weight:600; overflow-wrap:anywhere; }
.client-options [role=option] small { color:var(--muted); font-size:12px; }
.client-options [role=option]:hover, .client-options [aria-selected=true] { background:var(--tenant-secondary-surface); }
.client-more { display:block; width:100%; padding:10px; border:0; color:var(--tenant-link); background:var(--surface-muted); font-size:12px; cursor:pointer; }
.client-picker-status { display:block; color:var(--muted); margin-top:7px; font-size:12px; }
.client-picker-field [aria-busy=true] { background-color:var(--surface-muted); }
.client-picker-field [aria-invalid=true] { border-color:var(--status-danger); }

.validity-badge { display:inline-flex; align-items:center; gap:7px; padding:7px 10px; border-radius:6px; margin:5px 0; font-size:13px; font-weight:600; line-height:1.4; }
.validity-badge > span { display:grid; place-items:center; min-width:18px; height:18px; border:1px solid currentColor; border-radius:50%; font-size:12px; }
.validity-badge > .icon { width:20px; height:20px; flex-shrink:0; }
.validity-badge.active { color:var(--status-success); background:var(--status-success-surface); }
.validity-badge.expiring { color:var(--status-warning); background:var(--status-warning-surface); }
.validity-badge.expired { color:var(--status-danger); background:var(--status-danger-surface); }
.validity-badge.missing { color:var(--muted); background:var(--surface-muted); }
.validity-badge.review { color:var(--status-info); background:var(--status-info-surface); }
.port-status time { font-size:16px; font-weight:650; }
.port-status .port-status-title { font-size:13px; }
.port-status small { font-size:12px; }
@media(max-width:1023px) {
  .personal-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .overview-layout { grid-template-columns:minmax(0,1fr) 260px; gap:18px; }
}
@media(max-width:767px) {
  .overview-layout { display:flex; }
  .overview-layout > .overview-rail { order:0; }
  .personal-main { gap:16px; }
  .work-row { align-items:start; gap:12px; }
  .work-row-next { max-width:42%; min-width:0; grid-template-columns:minmax(0,1fr); text-align:right; }
  .work-row-next .badge { max-width:100%; white-space:normal; line-height:1.5; }
  .work-reference small { display:block; margin:3px 0 0; }
  .request-table { min-width:0; }
  .table-client { max-width:none; white-space:normal; overflow-wrap:anywhere; }
  .form-section > summary { padding:18px 16px; gap:10px; font-size:14px; }
  .form-section > .form-grid { padding:20px 16px; gap:20px; }
  .form-section-links { flex-wrap:nowrap; overflow-x:auto; max-width:100%; }
  .form-section-links a { white-space:nowrap; }
  .multi-options > div { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .form-review > summary { align-items:start; flex-direction:column; }
  .form-review dl { grid-template-columns:1fr; }
  .form-review dt { border:0; padding-bottom:3px; }
  .form-review dd { padding-top:0; }
  .request-form-shell .form-footer { flex-direction:column; align-items:stretch; }
  .request-form-shell .form-footer .actions { display:grid; grid-template-columns:1fr 1fr; }
  .client-options { top:75px; }
}
/* Requests: one filtered total, a dated export and navigation before the rows. */
.page-back-bar { margin:0 0 16px; }
.page-back { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:9px 14px; border:1px solid var(--line); border-radius:6px; background:var(--white); color:var(--ink); font-size:13px; font-weight:500; }
.page-back .icon { width:16px; height:16px; flex-basis:16px; transform:rotate(180deg); }
.page-back:hover { text-decoration:none; border-color:var(--tenant-border); }
.request-list-toolbar { display:grid; grid-template-columns:180px minmax(0,1fr) auto; gap:24px; align-items:start; padding:24px; }
.request-results-card { display:grid; gap:5px; padding:16px 20px; border:1px solid var(--line); border-radius:8px; background:var(--surface-muted); }
.request-results-card > span { font-size:13px; color:var(--ink); }
.request-results-card strong { font-size:30px; line-height:1.2; font-weight:500; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.request-results-card small { font-size:12px; color:var(--muted); }
.request-list-title { padding-top:8px; min-width:0; }
.request-list-title h2 { margin:0 0 8px; }
.request-list-title p { margin:0; font-size:13px; color:var(--muted); line-height:1.7; }
.request-export { width:330px; max-width:100%; min-width:0; }
.request-export summary { display:flex; gap:10px; align-items:center; padding:10px 12px; min-height:44px; border:1px solid var(--line); border-radius:6px; cursor:pointer; font-size:13px; font-weight:500; list-style:none; }
.request-export summary::-webkit-details-marker { display:none; }
.request-export summary .icon:last-child { margin-left:auto; width:14px; height:14px; flex-basis:14px; }
.request-export[open] summary .icon:last-child { transform:rotate(90deg); }
.report-export { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; padding-top:16px; }
.report-export p { grid-column:1 / -1; margin:0; font-size:12px; color:var(--muted); }
.report-export label { margin-bottom:8px; font-size:13px; }
.report-export input { min-width:0; min-height:44px; font-variant-numeric:tabular-nums; }
.report-export .button { grid-column:1 / -1; min-height:44px; }
.request-pagination { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:16px; align-items:center; padding:16px 24px; }
.request-page-range { color:var(--muted); font-size:13px; white-space:nowrap; font-variant-numeric:tabular-nums; }
.request-page-links { display:flex; align-items:center; justify-content:center; gap:6px; flex-wrap:wrap; }
.request-pagination .request-page-links a, .request-page-links .page-current, .request-page-links .page-disabled { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-width:40px; min-height:44px; padding:8px 10px; border:1px solid var(--line); border-radius:6px; background:var(--white); font-size:13px; font-weight:500; color:var(--ink); text-decoration:none; font-variant-numeric:tabular-nums; }
.request-page-links .page-current { background:var(--tenant-surface-accent); color:var(--tenant-link); border-color:var(--tenant-border); }
.request-page-links .page-disabled { color:var(--muted); border-color:transparent; }
.request-page-links .page-gap { padding:0 3px; }
.request-page-links [rel=prev] .icon { transform:rotate(180deg); }
.request-page-links .icon { width:14px; height:14px; flex-basis:14px; }
.request-page-jump { display:flex; gap:8px; align-items:center; min-width:0; }
.request-page-jump label { font-size:12px; margin:0; white-space:nowrap; }
.request-page-jump input { width:68px; min-height:44px; padding-inline:8px; }
.request-page-jump .button { min-height:44px; }
.request-pagination-compact { grid-template-columns:1fr auto; }
.request-pagination-compact .request-page-links { justify-content:flex-end; }
@media(max-width:1200px) {
  .request-list-toolbar { grid-template-columns:170px minmax(0,1fr); gap:20px; }
  .request-export { grid-column:1 / -1; width:100%; }
  .report-export { grid-template-columns:repeat(2,minmax(0,1fr)) auto; align-items:end; }
  .report-export .button { grid-column:auto; }
  .request-pagination { grid-template-columns:1fr auto; }
  .request-page-links { grid-column:1 / -1; grid-row:2; }
  .request-page-jump { justify-content:flex-end; }
  .request-pagination-compact .request-page-links { grid-column:auto; grid-row:auto; }
}
@media(max-width:600px) {
  .page-back { min-height:44px; }
  .request-list-toolbar { padding:18px; grid-template-columns:minmax(0,1fr); gap:16px; }
  .request-results-card { grid-template-columns:minmax(0,1fr) auto; align-items:center; padding:14px 16px; }
  .request-results-card strong { grid-row:1 / 3; grid-column:2; }
  .request-results-card small { grid-column:1; }
  .request-list-title { padding:0; }
  .report-export { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .report-export input, .request-page-jump input { font-size:16px; }
  .report-export .button { grid-column:1 / -1; }
  .request-pagination { padding:16px 18px; gap:12px; }
  .request-page-links { justify-content:space-between; gap:6px; }
  .request-pagination .request-page-links a.page-number { display:none; }
  .request-page-links a[rel] span { display:none; }
  .request-pagination .request-page-links a, .request-page-links .page-current, .request-page-links .page-disabled { min-width:44px; }
  .request-page-links .page-disabled > span:not(:first-child) { display:none; }
  .request-page-links .page-disabled:last-child > span:first-child { display:none; }
  .request-page-links .page-disabled:last-child > span:last-child { display:inline; }
  .request-pagination-compact { grid-template-columns:minmax(0,1fr); }
  .request-pagination-compact .request-page-links { justify-content:space-between; }
  .request-page-jump { gap:6px; }
  .request-page-jump label { font-size:12px; }
  .request-page-jump input { width:58px; }
}
