:root {
    --ink: #25343c;
    --muted: #66757d;
    --line: #d4dce0;
    --paper: #ffffff;
    --wash: #eef2f4;
    --surface-muted: #f6f8f9;
    --brand: #246b99;
    --brand-dark: #174c70;
    --brand-soft: #e8f1f6;
    --accent: #8bcf00;
    --graphite: #536164;
    --danger: #9c2f2f;
    --shadow: 0 3px 12px rgba(37, 52, 60, .08);
}

* { box-sizing: border-box; }
html { font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif; color: var(--ink); background: var(--wash); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(1.85rem, 3vw, 2.65rem); line-height: 1.1; letter-spacing: -.025em; margin-bottom: .65rem; }
h2 { font-size: 1.2rem; letter-spacing: -.01em; }
button, input, select, textarea { font: inherit; }

.topbar { min-height: 82px; background: var(--paper); border-top: 4px solid var(--accent); border-bottom: 1px solid var(--line); box-shadow: 0 1px 5px rgba(37,52,60,.08); }
.topbar-inner { width: min(1440px, calc(100% - 2rem)); min-height: 78px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: 1rem; color: var(--ink); text-decoration: none; }
.brand-logo { display: block; width: auto; height: 58px; object-fit: contain; object-position: left center; }
.brand-product { display: grid; gap: .16rem; padding-left: 1rem; border-left: 1px solid var(--line); line-height: 1.05; }
.brand-product small { color: var(--muted); font-size: .67rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.brand-product strong { color: #263c47; font-size: 1rem; font-weight: 700; }
.account { display: flex; align-items: center; gap: 1.15rem; font-size: .88rem; }
.account-identity { display: grid; gap: .08rem; text-align: right; }
.account-identity small { color: var(--muted); font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; }
.account-identity strong { color: var(--ink); font-size: .9rem; }
.account form { margin: 0; }
.link-button { min-height: 36px; border: 1px solid #aebbc1; border-radius: 4px; background: white; color: #3d535d; cursor: pointer; padding: .45rem .75rem; font-weight: 650; }
.link-button:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.page-shell { width: min(1240px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(1.8rem, 4vw, 3.4rem) 0; flex: 1; }
footer { margin-top: auto; color: #dce5e8; background: #263a44; font-size: .78rem; border-top: 3px solid var(--accent); }
.footer-inner { width: min(1440px, calc(100% - 2rem)); margin: 0 auto; padding: 1.15rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-inner strong { color: white; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: 5px; box-shadow: var(--shadow); padding: 1.4rem; }
.eyebrow { margin-bottom: .55rem; color: var(--brand); font-weight: 750; font-size: .7rem; text-transform: uppercase; letter-spacing: .13em; }
.muted { color: var(--muted); }
.environment-label { padding: .35rem .65rem; border: 1px solid #b8c4c9; border-radius: 3px; color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.login-page { background: #e9eef1; }
.login-shell { width: min(1180px, calc(100% - 2rem)); display: grid; align-items: center; }
.login-grid { min-height: 610px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); overflow: hidden; border: 1px solid #c8d2d7; border-radius: 6px; background: white; box-shadow: 0 18px 45px rgba(37,52,60,.13); }
.login-copy { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: clamp(2.2rem, 6vw, 5rem); color: white; background: linear-gradient(145deg, #214f6c 0%, #286f99 100%); }
.login-copy::after { content: ""; position: absolute; right: -130px; bottom: -170px; width: 380px; height: 380px; border: 48px solid rgba(139,207,0,.2); border-radius: 50%; }
.system-kicker { position: relative; z-index: 1; margin-bottom: 1rem; color: #d5ecf8; font-size: .74rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.login-copy h1 { position: relative; z-index: 1; max-width: 15ch; color: white; font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.08; }
.login-copy > p:not(.system-kicker) { position: relative; z-index: 1; max-width: 52ch; color: #e1edf3; font-size: 1.03rem; line-height: 1.6; }
.trust-list { position: relative; z-index: 1; padding: 1.5rem 0 0; margin: 1.5rem 0 0; border-top: 1px solid rgba(255,255,255,.23); list-style: none; display: grid; gap: 1rem; color: white; }
.trust-list li { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: .75rem; }
.trust-list strong { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.35); color: #c8ef7e; font-size: .72rem; }
.trust-list span { font-size: .9rem; }
.login-card { align-self: center; border: 0; box-shadow: none; padding: clamp(2rem, 5vw, 4.25rem); }
.login-card-header { margin-bottom: 2rem; padding-bottom: 1.35rem; border-bottom: 1px solid var(--line); }
.login-card-header h2 { margin-bottom: .45rem; font-size: 1.8rem; }
.login-card-header p:last-child { margin-bottom: 0; line-height: 1.5; }
.login-support { margin: 1.5rem 0 0; color: var(--muted); font-size: .75rem; text-align: center; }
.narrow-page { width: min(680px, calc(100% - 2rem)); }
.account-card { margin: 2rem 0; padding: clamp(1.5rem, 5vw, 3rem); }
.account-link {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: .45rem .7rem;
    border: 1px solid transparent;
    border-radius: 4px;
    color: var(--brand);
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
}
.account-link:hover,
.account-link:focus-visible {
    border-color: #b7c9ce;
    background: var(--brand-soft);
    color: #163f4d;
    text-decoration: none;
}
.user-row { display: grid; grid-template-columns: minmax(220px, 1.4fr) 110px minmax(170px, 1fr) 150px 120px; gap: 1rem; align-items: center; padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
.user-row:last-child { border-bottom: 0; }
.user-row > div { display: grid; gap: .2rem; }
.user-row small { color: var(--muted); }
.user-head { background: #354b56; color: white; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.check-grid { display: grid; gap: .5rem; margin-top: 1.25rem; }
.check-grid label, .company-grid label { display: flex; align-items: center; gap: .55rem; margin: 0; font-weight: 500; }
.check-grid input, .company-grid input { width: auto; min-height: auto; }
.company-grid { display: grid; gap: .5rem; max-height: 310px; overflow: auto; margin-top: 1.2rem; padding: 1rem; border: 1px solid var(--line); }
.company-grid legend { padding: 0 .35rem; font-weight: 700; }
.reset-form { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.reset-form small { display: block; margin-top: .6rem; color: var(--muted); }
label { display: block; font-weight: 700; font-size: .84rem; margin: 1rem 0 .35rem; }
.field-help { margin: .45rem 0 1rem; color: var(--muted); font-size: .76rem; line-height: 1.45; }
input, select, textarea { width: 100%; min-height: 44px; border: 1px solid #b8c4ca; border-radius: 4px; padding: .65rem .75rem; background: white; color: var(--ink); }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(36,107,153,.2); outline-offset: 2px; border-color: var(--brand); }
.primary, .danger, .button { display: inline-flex; justify-content: center; align-items: center; min-height: 42px; border: 0; border-radius: 4px; padding: .65rem 1rem; color: white; font-weight: 700; cursor: pointer; text-decoration: none; }
.primary { background: var(--brand); }
.primary:hover { background: var(--brand-dark); }
.secondary { color: var(--brand); background: var(--brand-soft); border: 1px solid #c8dbe6; }
.danger { background: var(--danger); }
.full { width: 100%; margin-top: 1.25rem; }
.validation { display: block; color: var(--danger); font-size: .83rem; }
.validation:empty { display: none; }
.validation p { margin-bottom: .35rem; }
.notice { border-radius: 4px; padding: .8rem 1rem; margin-bottom: 1rem; }
.notice.success { background: #e2f4ed; color: #185b49; }
.notice.error { background: #f9e5e5; color: #812626; }

.page-heading, .detail-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 1.5rem; }
.page-heading h1, .detail-heading h1 { margin-bottom: .25rem; }
.breadcrumb { margin-bottom: 1.25rem; color: #738188; font-size: .76rem; }
.heading-metric { min-width: 120px; padding: .8rem 1rem; border-left: 3px solid var(--accent); background: white; box-shadow: var(--shadow); display: grid; justify-items: end; }
.heading-metric span { color: var(--muted); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.heading-metric strong { color: var(--brand-dark); font-size: 1.65rem; }
.workspace-panel, .folio-table { margin-bottom: 1rem; border: 1px solid var(--line); border-radius: 5px; background: white; box-shadow: var(--shadow); }
.panel-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; border-bottom: 1px solid var(--line); background: var(--surface-muted); }
.panel-heading strong { color: #344952; font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; }
.panel-heading span { color: var(--muted); font-size: .78rem; }
.filters { display: grid; grid-template-columns: minmax(260px, 1fr) 170px 220px auto; align-items: end; gap: .8rem; padding: 1rem; }
.filters label { margin-top: 0; }
.filters button { margin-bottom: 1px; }
.folio-list-head, .folio-row { display: grid; grid-template-columns: minmax(220px, 1.45fr) minmax(180px, 1fr) 150px 180px 24px; align-items: center; gap: 1rem; }
.folio-list-head { padding: .72rem 1rem; border-bottom: 1px solid var(--line); background: #354b56; color: #eef4f6; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.folio-list { display: grid; }
.folio-row { min-height: 82px; padding: .9rem 1rem; border-bottom: 1px solid var(--line); background: white; text-decoration: none; transition: background .15s, box-shadow .15s; }
.folio-row:last-child { border-bottom: 0; }
.folio-row:hover { position: relative; z-index: 1; background: #f5f9fb; box-shadow: inset 4px 0 0 var(--accent); }
.folio-row > div { min-width: 0; display: grid; gap: .24rem; }
.folio-main strong, .folio-meta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folio-meta strong { font-size: .86rem; font-weight: 650; }
.folio-meta span { font-size: .78rem; }
.folio-number { color: var(--brand); font-size: .78rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.folio-amount { text-align: right; justify-items: end; font-variant-numeric: tabular-nums; }
.folio-amount strong { color: #263c47; }
.folio-state { justify-items: start; }
.row-chevron { color: #7e8d93; font-size: 1.65rem; text-align: right; }
.status { display: inline-flex; width: fit-content; align-items: center; padding: .28rem .5rem; border-radius: 3px; background: #edf1f0; color: #44514e; font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.status-pendiente { background: #fff1ce; color: #714f09; }
.status-firmado, .status-autorizado, .status-aprobado { background: #dff3ea; color: #155844; }
.status-rechazado, .status-cancelado { background: #f9e2e2; color: #822d2d; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 1.5rem; color: var(--muted); }
.pagination a { color: var(--brand); font-weight: 750; }
.back-link { display: inline-block; color: var(--brand); font-size: .78rem; font-weight: 650; margin-bottom: 1rem; text-decoration: none; }
.back-link::before { content: "←"; margin-right: .45rem; }
.amount-block { text-align: right; display: grid; justify-items: end; gap: .3rem; }
.amount-block > span:first-child { color: var(--muted); font-size: .8rem; }
.amount-block strong { font-size: 1.6rem; }
.detail-page { width: min(1440px, calc(100% - 2rem)); }
.detail-hero { align-items: center; padding: 1.25rem 1.4rem; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 4px; background: white; box-shadow: var(--shadow); }
.detail-title-line { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; }
.detail-title-line h1 { margin-bottom: 0; }
.detail-hero > div:first-child > p:last-child { margin: .65rem 0 0; color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: 1.2fr .8fr; align-items: start; gap: 1rem; }
.data-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0; }
.data-list div { border-bottom: 1px solid var(--line); padding-bottom: .8rem; }
.data-list .wide { grid-column: 1 / -1; }
.data-list dt { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .3rem; }
.data-list dd { margin: 0; overflow-wrap: anywhere; }
.signature-list { padding: 0; margin: 0; list-style: none; display: grid; gap: 1rem; }
.signature-list li { display: grid; grid-template-columns: 34px 1fr; gap: .8rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.signature-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.signature-list li > div { display: grid; gap: .2rem; }
.signature-index { display: grid; place-items: center; align-self: start; width: 32px; height: 32px; border-radius: 50%; background: #e6efec; color: var(--brand); font-weight: 850; }
.action-panel { grid-column: 2; margin-top: .6rem; }
.action-panel details { margin-top: .7rem; }
.action-panel summary { color: var(--danger); cursor: pointer; font-size: .86rem; font-weight: 700; }
.simple-list { display: grid; }
.simple-list > div, .simple-list > a { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding: .8rem 0; text-decoration: none; }
.simple-list > :first-child { border-top: 0; }
.attachments a { color: var(--brand); }
.attachments a > span:first-child { display: grid; }
.attachments small { color: var(--muted); }
.empty-state { text-align: center; padding: 4rem 2rem; max-width: 760px; margin: 2rem auto; }
.error-state { border-top: 4px solid var(--accent); }
.error-code { margin-bottom: .35rem; color: #b6c0c5; font-size: clamp(3.5rem, 10vw, 6.5rem); font-weight: 850; line-height: .95; letter-spacing: -.06em; }
.error-reference { display: inline-block; margin: .5rem 0 1.5rem; padding: .45rem .7rem; border-radius: 3px; background: var(--surface-muted); color: var(--muted); font-size: .78rem; }

.dossier-workspace { padding: 0; overflow: hidden; border-radius: 5px; }
.dossier-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; padding: 1.35rem 1.45rem; border-bottom: 1px solid var(--line); }
.dossier-heading h2, .dossier-heading p:last-child { margin-bottom: 0; }
.dossier-stage { position: relative; background: #323a38; }
.dossier-navigation { display: flex; align-items: center; justify-content: center; gap: .75rem; min-height: 54px; padding: .55rem; background: #111715; color: white; }
.dossier-navigation button, .dossier-dialog button { min-width: 38px; min-height: 36px; border: 1px solid #52605c; border-radius: 8px; background: #26312e; color: white; cursor: pointer; }
.dossier-navigation button:hover, .dossier-dialog button:hover { background: #34413d; }
.dossier-navigation button:disabled { opacity: .35; cursor: default; }
.dossier-status { position: absolute; inset: 54px 0 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: .55rem; padding: 2rem; background: #323a38; color: white; text-align: center; }
.dossier-status[hidden] { display: none; }
.dossier-status small { color: #c8d3d0; }
.dossier-status.is-error strong { color: #ffd4d4; }
.dossier-spinner { width: 44px; height: 44px; border: 4px solid rgba(255,255,255,.22); border-top-color: #b9ddd4; border-radius: 50%; animation: dossier-spin .8s linear infinite; }
.dossier-pages { height: 666px; display: flex; gap: 1rem; overflow-x: auto; overflow-y: hidden; padding: 1.25rem; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-inline: contain; scrollbar-color: #84918d #252d2b; }
.dossier-page { position: relative; flex: 0 0 100%; min-width: 0; height: 100%; display: grid; place-items: center; overflow: hidden; contain: layout paint; scroll-snap-align: center; scroll-snap-stop: always; }
.dossier-page::before { content: ""; width: min(760px, 82%); aspect-ratio: 8.5 / 11; background: linear-gradient(105deg, #e8eceb 30%, #f8faf9 45%, #e8eceb 60%); background-size: 220% 100%; box-shadow: 0 10px 36px rgba(0,0,0,.3); animation: dossier-shimmer 1.2s linear infinite; }
.dossier-page.is-ready::before { display: none; }
.dossier-page canvas { display: none; max-width: 100%; max-height: 100%; background: white; box-shadow: 0 10px 36px rgba(0,0,0,.38); cursor: zoom-in; }
.dossier-page.is-ready canvas { display: block; }
.dossier-dialog { width: min(96vw, 1500px); height: min(94vh, 1100px); padding: 0; border: 1px solid #52605c; border-radius: 12px; background: #202825; color: white; overflow: hidden; }
.dossier-dialog::backdrop { background: rgba(7, 13, 11, .82); }
.dossier-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.dossier-dialog-heading, .dossier-dialog-controls { display: flex; align-items: center; justify-content: center; gap: .7rem; padding: .65rem 1rem; background: #111715; }
.dossier-dialog-heading { justify-content: space-between; }
.dossier-dialog-heading button { font-size: 1.45rem; line-height: 1; }
.dossier-dialog-stage { min-height: 0; overflow: auto; padding: 1.25rem; text-align: center; }
.dossier-dialog-stage canvas { display: inline-block; max-width: none; background: white; box-shadow: 0 8px 32px rgba(0,0,0,.4); }

@keyframes dossier-spin { to { transform: rotate(360deg); } }
@keyframes dossier-shimmer { to { background-position: -220% 0; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

.authorization-card { margin-top: 1rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.section-heading h2, .section-heading p { margin-bottom: 0; }
.authorization-card .signature-list { margin-top: 1rem; }
.authorization-card .signature-list li { grid-template-columns: 34px minmax(180px, 1fr) auto minmax(190px, auto); align-items: start; }
.signature-person { min-width: 0; }
.signature-status { align-self: start; }
.authorization-card .action-panel { grid-column: auto; margin-top: 0; }

.viewer-page { background: #202825; }
.viewer-shell { width: min(1400px, 100%); padding: 1rem; margin: 0 auto; flex: 1; }
.viewer-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: white; margin-bottom: 1rem; }
.viewer-heading h1 { font-size: clamp(1.25rem, 3vw, 2rem); letter-spacing: -.025em; overflow-wrap: anywhere; }
.viewer-heading .back-link { color: #b9ddd4; }
.pdf-viewer { min-height: calc(100vh - 180px); border-radius: 12px; overflow: hidden; background: #3c4542; border: 1px solid #53605c; }
.pdf-toolbar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: .55rem; padding: .65rem; background: #111715; color: white; }
.pdf-toolbar button { min-height: 36px; border: 1px solid #52605c; border-radius: 7px; background: #26312e; color: white; padding: .4rem .7rem; cursor: pointer; }
.pdf-toolbar button:hover { background: #34413d; }
.toolbar-spacer { flex: 1; }
.pdf-status { color: white; text-align: center; padding: 1rem; }
.pdf-status[hidden] { display: none; }
.pdf-canvas-wrap { min-height: calc(100vh - 250px); overflow: auto; display: grid; justify-items: center; align-items: start; padding: 1.25rem; }
#pdf-canvas { display: block; max-width: none; background: white; box-shadow: 0 8px 32px rgba(0,0,0,.35); }

@media (max-width: 980px) {
    .filters { grid-template-columns: minmax(220px, 1fr) 160px 190px; }
    .filters button { grid-column: 1 / -1; width: fit-content; justify-self: end; }
    .folio-list-head, .folio-row { grid-template-columns: minmax(210px, 1.35fr) minmax(150px, 1fr) 125px 155px 18px; gap: .7rem; }
}

@media (max-width: 780px) {
    .login-grid, .detail-grid { grid-template-columns: 1fr; }
    .topbar-inner { width: min(100% - 1.25rem, 1440px); }
    .brand { gap: .65rem; }
    .brand-logo { height: 50px; }
    .brand-product { padding-left: .65rem; }
    .login-shell { padding-block: 1rem; }
    .login-grid { min-height: 0; }
    .login-copy { padding: 2rem; }
    .login-copy h1 { max-width: 19ch; font-size: 2rem; }
    .trust-list { grid-template-columns: repeat(3, 1fr); }
    .trust-list li { grid-template-columns: 1fr; align-content: start; }
    .login-card { padding: 2rem; }
    .filters { display: grid; grid-template-columns: 1fr 1fr; }
    .filters .field-grow { grid-column: 1 / -1; }
    .filters button { grid-column: 1 / -1; width: 100%; }
    .folio-list-head { display: none; }
    .folio-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main amount" "meta state"; min-height: 108px; gap: .75rem 1rem; }
    .folio-main { grid-area: main; }
    .folio-meta { grid-area: meta; }
    .folio-state { grid-area: state; justify-items: end; }
    .folio-amount { grid-area: amount; }
    .row-chevron { display: none; }
    .detail-heading { align-items: start; }
    .pdf-toolbar { flex-wrap: wrap; }
    .toolbar-spacer { display: none; }
    .section-heading { align-items: start; flex-direction: column; }
    .dossier-heading { align-items: start; flex-direction: column; }
    .dossier-heading .button { width: 100%; }
    .dossier-pages { height: 536px; padding: .75rem; }
    .authorization-card .signature-list li { grid-template-columns: 34px minmax(0, 1fr) auto; }
    .authorization-card .action-panel { grid-column: 2 / -1; }
}

@media (max-width: 520px) {
    .account > span { display: none; }
    .account { gap: .45rem; }
    .brand-logo { height: 44px; }
    .brand-product small { display: none; }
    .brand-product strong { font-size: .85rem; }
    .login-topbar .brand-product { display: none; }
    .environment-label { display: none; }
    .footer-inner { align-items: flex-start; flex-direction: column; }
    .login-copy { padding: 1.5rem; }
    .login-copy > p:not(.system-kicker) { font-size: .92rem; }
    .trust-list { grid-template-columns: 1fr; margin-top: .75rem; padding-top: 1rem; }
    .trust-list li { grid-template-columns: 32px 1fr; }
    .login-card { padding: 1.5rem; }
    .page-heading { align-items: flex-start; }
    .heading-metric { display: none; }
    .panel-heading { align-items: flex-start; flex-direction: column; }
    .filters { grid-template-columns: 1fr; }
    .filters .field-grow { grid-column: auto; }
    .folio-row { grid-template-columns: 1fr; grid-template-areas: "main" "meta" "amount" "state"; }
    .folio-amount, .folio-state { text-align: left; justify-items: start; }
    .detail-heading, .viewer-heading { align-items: flex-start; flex-direction: column; }
    .folio-amount, .amount-block { text-align: left; justify-items: start; }
    .data-list { grid-template-columns: 1fr; }
    .data-list .wide { grid-column: auto; }
    .pdf-toolbar span { font-size: .8rem; }
    .detail-page { width: min(100% - 1rem, 1440px); }
    .detail-hero { gap: 1rem; }
    .dossier-heading { padding: 1rem; }
    .dossier-navigation { justify-content: space-between; }
    .authorization-card .signature-list li { grid-template-columns: 34px minmax(0, 1fr); }
    .signature-status { grid-column: 2; }
    .authorization-card .action-panel { grid-column: 2; }
}
