:root {
    color-scheme: light;
    --esign-ink: #142033;
    --esign-muted: #5f6d82;
    --esign-line: #dce3ec;
    --esign-soft: #f3f6f9;
    --esign-surface: #ffffff;
    --esign-navy: #172a46;
    --esign-navy-dark: #0f1929;
    --esign-blue: #285386;
    --esign-blue-dark: #1c3d65;
    --esign-gold: #f4b400;
    --esign-success: #17613a;
    --esign-success-soft: #e9f7ef;
    --esign-danger: #9f2929;
    --esign-danger-soft: #fff0f0;
    --esign-shadow: 0 18px 50px rgba(19, 35, 58, 0.1);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { min-height: 100%; background: var(--esign-soft); }

body {
    min-height: 100vh;
    margin: 0;
    color: var(--esign-ink);
    background: var(--esign-soft);
    font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.signing-page { display: flex; flex-direction: column; }

a { color: var(--esign-blue); }
button,
input { font: inherit; }

button,
.public-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 17px;
    color: #fff;
    background: var(--esign-blue);
    border: 1px solid var(--esign-blue);
    border-radius: 9px;
    cursor: pointer;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

button:hover,
.public-button:hover { background: var(--esign-blue-dark); border-color: var(--esign-blue-dark); }
button:active,
.public-button:active { transform: translateY(1px); }
button:focus-visible,
.public-button:focus-visible,
input:focus-visible,
canvas:focus-visible,
summary:focus-visible,
a:focus-visible,
.guided-step h2:focus-visible,
.document-heading h2:focus-visible { outline: 3px solid rgba(244, 180, 0, 0.55); outline-offset: 2px; }
button:disabled { opacity: 0.48; cursor: not-allowed; transform: none; }
button.secondary,
.public-button.secondary { color: #253754; background: #f4f7fb; border-color: #ccd6e3; }
button.secondary:hover,
.public-button.secondary:hover { background: #e9eff6; border-color: #aebdce; }

.public-header {
    color: #fff;
    background: linear-gradient(112deg, var(--esign-navy-dark), var(--esign-navy) 68%, #213e62);
    border-bottom: 3px solid var(--esign-gold);
    box-shadow: 0 7px 24px rgba(10, 19, 34, 0.2);
}

.public-header-inner {
    display: flex;
    width: min(1280px, calc(100% - 40px));
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-inline: auto;
}

.public-brand {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.public-brand-logo {
    display: flex;
    width: 112px;
    height: 46px;
    flex: 0 0 auto;
    align-items: center;
    padding: 7px 9px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 9px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.17);
}

.public-brand-logo img { display: block; width: 100%; height: auto; }
.public-brand-copy strong,
.public-brand-copy small { display: block; }
.public-brand-copy strong { font-size: 16px; letter-spacing: 0.01em; }
.public-brand-copy small { opacity: 0.75; font-size: 11px; letter-spacing: 0.055em; text-transform: uppercase; }

.secure-signing-label { display: flex; align-items: center; gap: 7px; color: rgba(255, 255, 255, 0.88); font-size: 12px; font-weight: 700; }

.signing-layout {
    display: grid;
    width: min(1240px, calc(100% - 40px));
    flex: 1 0 auto;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 380px);
    grid-template-areas:
        "summary summary"
        "document action";
    gap: 18px;
    align-items: start;
    margin: 20px auto 42px;
}

.signing-layout[data-active-step="verify"],
.signing-layout[data-active-step="sign"] {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "summary" "action";
}

.card { overflow: hidden; background: var(--esign-surface); border: 1px solid var(--esign-line); border-radius: 13px; box-shadow: 0 10px 32px rgba(19, 35, 58, 0.08); }

.signing-summary {
    display: grid;
    grid-area: summary;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 24px;
    align-items: center;
    padding: 15px 20px 13px;
}
.signing-summary-copy h1 { margin: 1px 0 4px; font-size: clamp(21px, 2.5vw, 27px); line-height: 1.2; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.signing-request-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; color: var(--esign-muted); font-size: 13px; }
.signing-request-meta strong { color: #314159; }
.signing-summary-meta { display: grid; gap: 5px; justify-items: end; text-align: right; }
.step-kicker { margin: 0 0 3px; color: var(--esign-blue); font-size: 11px; font-weight: 850; letter-spacing: 0.075em; text-transform: uppercase; }
.signing-document-id { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin: 0; color: #52627a; font-size: 12px; font-weight: 650; }
.signing-document-id span { color: var(--esign-muted); font-weight: 650; }
.signing-document-id code { max-width: 250px; overflow-wrap: anywhere; color: #2b3d58; font: 750 11px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.private-link-note { display: flex; gap: 6px; margin: 0; color: #59677a; font-size: 11px; }
.test-document-banner { display: flex; grid-column: 1 / -1; align-items: center; gap: 10px; padding: 8px 10px; color: #704500; background: #fff4d4; border: 1px solid #d99d00; border-radius: 8px; }
.test-document-banner strong { flex: 0 0 auto; padding: 2px 6px; color: #fff; background: #986000; border-radius: 4px; font-size: 10px; letter-spacing: 0.08em; }
.test-document-banner span { font-size: 12px; font-weight: 700; }

.signing-progress { grid-column: 1 / -1; padding-top: 7px; border-top: 1px solid #edf0f4; }
.signing-progress ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; }
.progress-item { position: relative; display: grid; min-width: 0; grid-template-columns: 25px minmax(0, 1fr); gap: 7px; align-items: center; color: #748093; }
.progress-item:not(:last-child)::after { position: absolute; z-index: 0; top: 12px; right: 7px; left: 39px; height: 1px; content: ""; background: #dce3ec; }
.progress-item.is-current { color: var(--esign-blue-dark); }
.progress-item.is-complete { color: var(--esign-success); }
.progress-marker { position: relative; z-index: 1; display: grid; width: 24px; height: 24px; place-items: center; background: #fff; border: 1px solid currentColor; border-radius: 50%; font-size: 10px; font-weight: 850; }
.progress-item.is-current .progress-marker { color: #fff; background: var(--esign-blue); border-color: var(--esign-blue); }
.progress-item.is-complete .progress-marker { color: #fff; background: var(--esign-success); border-color: var(--esign-success); }
.progress-item strong,
.progress-item small { display: block; position: relative; z-index: 1; width: max-content; max-width: 100%; padding-right: 7px; overflow-wrap: anywhere; background: #fff; }
.progress-item strong { font-size: 12px; line-height: 1.2; }
.progress-item small { margin-top: 1px; font-size: 10px; }

.panel { grid-area: action; padding: 24px; }
.signing-action-panel { position: sticky; top: 18px; overflow: visible; }
.signing-layout[data-active-step="verify"] .signing-action-panel,
.signing-layout[data-active-step="sign"] .signing-action-panel { position: static; width: min(680px, 100%); justify-self: center; }
.document-card { grid-area: document; min-width: 0; overflow: clip; }
.muted { color: var(--esign-muted); }
.fine-print { margin-bottom: 0; font-size: 12px; }

.document-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 17px; border-bottom: 1px solid #e5eaf1; }
.document-heading h2 { margin: 0 0 2px; font-size: 18px; }
.document-heading p { margin: 0; }
.document-heading > div > p:last-child { color: var(--esign-muted); font-size: 12px; }
.document-heading > .open-document-link { min-height: 38px; flex: 0 0 auto; padding: 8px 12px; font-size: 12px; }

.pdf-review-toolbar { position: sticky; z-index: 4; top: 0; display: flex; min-height: 51px; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 10px; background: #f7f9fb; border-bottom: 1px solid #d9e0e9; box-shadow: 0 3px 8px rgba(19, 35, 58, 0.06); }
.pdf-page-navigation { display: flex; align-items: center; gap: 8px; }
.pdf-review-toolbar button { min-height: 36px; padding: 7px 10px; font-size: 12px; }
.pdf-page-state { min-width: 92px; color: #46556a; font-size: 12px; text-align: center; }
.pdf-view-mode { flex: 0 0 auto; }
.assigned-preview { min-height: 330px; padding: 14px; overflow: auto; scrollbar-gutter: stable; background: #e7ebf0; }
.assigned-preview[data-fit="page"] { overflow: hidden; }
.assigned-preview[data-fit="width"] { max-height: min(70vh, 820px); }
.assigned-preview[aria-busy="true"] { cursor: progress; }
.assigned-preview-status { display: grid; min-height: 302px; place-items: center; margin: 0; padding: 30px 18px; color: var(--esign-muted); text-align: center; }
.assigned-stage { position: relative; max-width: 100%; margin: auto; overflow: hidden; background: #fff; box-shadow: 0 4px 18px rgba(23, 36, 61, 0.18); }
canvas#assignedPage { display: block; width: 100%; height: auto; background: #fff; border: 0; border-radius: 0; touch-action: auto; }
.document-placement-note { display: flex; gap: 7px; margin: 0; padding: 9px 14px; color: #59687c; background: #fafbfd; border-top: 1px solid #dfe5ed; font-size: 11px; }

.back-to-document { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -2px 0 18px; padding-bottom: 12px; color: var(--esign-success); border-bottom: 1px solid #e3e8ef; font-size: 12px; font-weight: 750; }
.text-action { min-height: 40px; padding: 6px 3px; color: var(--esign-blue); background: transparent; border: 0; border-radius: 5px; font-size: 13px; text-decoration: underline; }
.text-action:hover { color: var(--esign-blue-dark); background: transparent; border-color: transparent; }
.step { scroll-margin-top: 20px; }
.guided-step h2 { margin: 0 0 8px; font-size: 22px; line-height: 1.25; }
.step-copy { margin: 0 0 15px; color: var(--esign-muted); font-size: 14px; }
.step-copy strong { color: #35465e; overflow-wrap: anywhere; }
.simple-instructions { display: grid; gap: 9px; margin: 0 0 19px; padding: 13px 14px 13px 34px; color: #45556c; background: #f6f8fb; border-radius: 9px; font-size: 13px; }
.primary-action { width: 100%; min-height: 48px; }
.action-hint { margin: 9px 0 0; color: var(--esign-muted); font-size: 11px; text-align: center; }
.verified-message { display: none; margin: 12px 0; padding: 11px 12px; color: var(--esign-success); background: var(--esign-success-soft); border: 1px solid #abd8bd; border-radius: 9px; font-size: 13px; font-weight: 700; }
.verified-message.visible { display: block; }
.verification-actions { display: grid; gap: 5px; }
.verification-actions button { width: 100%; }
.verification-actions .otp-existing-code { justify-self: center; width: auto; }
.code-challenge { margin-top: 17px; padding-top: 17px; border-top: 1px solid #dce3ec; }

.field-label { display: block; color: #34445c; font-size: 13px; font-weight: 750; }
.otp-input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; align-items: stretch; margin-top: 6px; }
input[type="text"],
input[type="email"],
input[type="password"] { width: 100%; min-height: 46px; padding: 10px 12px; color: var(--esign-ink); background: #fff; border: 1px solid #adbacb; border-radius: 9px; }
input[aria-invalid="true"] { border-color: var(--esign-danger); box-shadow: 0 0 0 2px rgba(159, 41, 41, 0.12); }
#otp { min-width: 0; letter-spacing: 0.34em; font-size: 19px; font-variant-numeric: tabular-nums; text-align: center; }
.otp-help { margin: 8px 0 0; color: var(--esign-muted); font-size: 12px; }

.signature-controls { min-width: 0; margin: 0; padding: 0; border: 0; }
.signature-pad-heading { display: flex; justify-content: space-between; gap: 12px; margin: 16px 2px 7px; color: #34445b; font-size: 13px; }
.signature-pad-heading span { color: var(--esign-muted); }
canvas#signature { display: block; width: 100%; height: 190px; background: linear-gradient(to bottom, #fff 0, #fff 76%, #dbe3ed 76%, #dbe3ed calc(76% + 1px), #fff calc(76% + 1px)); border: 2px solid #74849a; border-radius: 10px; box-shadow: inset 0 1px 3px rgba(18, 34, 56, 0.06); touch-action: none; }
.signature-unavailable { margin: 14px 0 10px; padding: 10px 11px; color: #704500; background: #fff6df; border: 1px solid #ead294; border-radius: 8px; font-size: 12px; }
.signature-alternative-help { margin: 6px 2px 0; color: var(--esign-muted); font-size: 12px; }
.signature-actions { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin: 9px 0 0; }
.signature-actions button { min-height: 38px; padding: 7px 13px; font-size: 13px; }
.signature-state { margin: 0; color: var(--esign-muted); font-size: 12px; }
.signature-state.is-captured { color: var(--esign-success); font-weight: 700; }
.signature-upload-disclosure { margin: 16px 0 18px; border: 1px solid #dce3ec; border-radius: 9px; }
.signature-upload-disclosure > summary { padding: 11px 12px; color: var(--esign-blue); cursor: pointer; font-size: 13px; font-weight: 750; }
.signature-upload { padding: 12px 13px; background: #f7f9fb; border-top: 1px solid #dce3ec; }
.signature-upload label { display: block; margin-bottom: 7px; color: #34445c; font-size: 13px; font-weight: 750; }
.signature-upload input[type="file"] { display: block; width: 100%; color: #425169; font-size: 12px; }
.signature-upload input[type="file"]::file-selector-button { min-height: 36px; margin-right: 9px; padding: 7px 11px; color: #253754; background: #fff; border: 1px solid #b7c3d2; border-radius: 7px; cursor: pointer; font: inherit; font-weight: 750; }
.signature-upload p { margin: 7px 0 0; color: var(--esign-muted); font-size: 11px; }
.consent-label { display: grid; grid-template-columns: 21px 1fr; gap: 10px; align-items: start; padding: 12px; color: #2d3b51; background: #f7f9fb; border: 1px solid #dce3ec; border-radius: 9px; }
.consent-label input { width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--esign-blue); }
.signing-readiness { display: grid; gap: 5px; margin: 12px 0 0; padding: 0; color: #7b5b1e; font-size: 12px; list-style: none; }
.signing-readiness li { display: flex; gap: 7px; }
.signing-readiness li.is-complete { color: var(--esign-success); font-weight: 700; }
.signature-step.is-submitting .signature-controls { opacity: 0.65; pointer-events: none; user-select: none; }
.submit-help { margin: 15px 0 0; padding: 10px 11px; color: #6c4a0a; background: #fff6df; border: 1px solid #ead294; border-radius: 8px; font-size: 12px; line-height: 1.45; }
.submit-help strong { display: block; color: #704500; }
.submit-row { margin: 10px 0 0; }
.submit-row button { width: 100%; min-height: 48px; }

.status { display: none; margin: 0 0 16px; padding: 11px 13px; border: 1px solid transparent; border-radius: 9px; font-size: 13px; font-weight: 650; }
.status.visible { display: block; }
.status.error,
.error { color: var(--esign-danger); background: var(--esign-danger-soft); border-color: #edbcbc; }
.status.ok,
.ok { color: var(--esign-success); background: var(--esign-success-soft); border-color: #abd8bd; }
#verifiedMessage[hidden] { display: none; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.public-footer { padding: 18px 20px; color: #6d7889; background: #fff; border-top: 1px solid var(--esign-line); font-size: 12px; text-align: center; }
.public-footer strong { color: #3c495d; }

.state-page { display: flex; flex-direction: column; }
.state-main { display: grid; width: min(680px, calc(100% - 36px)); flex: 1; place-items: center; margin: 52px auto; }
.state-card { width: 100%; padding: clamp(26px, 6vw, 42px); text-align: center; }
.state-card h1 { margin: 8px 0 12px; font-size: clamp(26px, 5vw, 35px); line-height: 1.2; }
.state-card p { color: var(--esign-muted); }
.state-card p:last-child { margin-bottom: 0; }
.state-icon { display: grid; width: 62px; height: 62px; place-items: center; margin: 0 auto 15px; color: var(--esign-success); background: var(--esign-success-soft); border: 1px solid #b7dfc6; border-radius: 50%; font-size: 31px; font-weight: 850; }
.state-icon.warning { color: #8a5500; background: #fff4d8; border-color: #ead28e; }
.state-kicker { margin: 0; color: var(--esign-blue) !important; font-size: 12px; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.document-id { display: inline-block; max-width: 100%; padding: 9px 13px; overflow-wrap: anywhere; color: #263a58; background: #f0f4f8; border: 1px solid #dde4ec; border-radius: 8px; font: 750 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.support-line { padding-top: 15px; border-top: 1px solid #e7ebf1; font-size: 13px; }

.reactivation-form { margin-top: 24px; text-align: left; }
.reactivation-form label { display: block; margin: 14px 0 6px; color: #35445a; font-size: 13px; font-weight: 750; }
.reactivation-form button { width: 100%; margin-top: 20px; }
.form-hint { margin: 8px 0 0; font-size: 12px; }

.auth-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 28px;
    background:
        radial-gradient(circle at 10% 10%, rgba(244, 180, 0, 0.12), transparent 32rem),
        linear-gradient(135deg, #edf2f7, #f8fafc 48%, #eef3f7);
}

.auth-shell {
    display: grid;
    width: min(990px, 100%);
    min-height: 590px;
    grid-template-columns: minmax(0, 0.94fr) minmax(410px, 1.06fr);
    overflow: hidden;
    background: #fff;
    border: 1px solid #dce3eb;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(18, 34, 56, 0.16);
}

.auth-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(34px, 5vw, 54px);
    overflow: hidden;
    color: #fff;
    background: linear-gradient(145deg, #0e1827, #172e4c 70%, #1f446c);
}

.auth-brand-panel::after { position: absolute; right: -85px; bottom: -95px; width: 260px; height: 260px; content: ""; background: rgba(244, 180, 0, 0.12); border: 1px solid rgba(244, 180, 0, 0.22); border-radius: 50%; }
.auth-brand-logo { position: relative; z-index: 1; display: flex; width: 180px; min-height: 71px; align-items: center; padding: 13px 16px; background: #fff; border-radius: 11px; box-shadow: 0 7px 22px rgba(0, 0, 0, 0.22); }
.auth-brand-logo img { display: block; width: 100%; height: auto; }
.auth-brand-copy { position: relative; z-index: 1; max-width: 360px; }
.auth-brand-copy .state-kicker { color: #ffd35b !important; }
.auth-brand-copy h1 { margin: 10px 0 14px; font-size: clamp(31px, 4.2vw, 45px); line-height: 1.08; letter-spacing: -0.025em; }
.auth-brand-copy p { color: rgba(255, 255, 255, 0.72); }
.auth-trust-list { display: grid; gap: 10px; margin: 25px 0 0; padding: 0; list-style: none; }
.auth-trust-list li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; color: rgba(255, 255, 255, 0.84); font-size: 13px; }
.auth-trust-list li::before { color: #ffd35b; content: "✓"; font-weight: 850; }
.auth-brand-footer { position: relative; z-index: 1; color: rgba(255, 255, 255, 0.55); font-size: 12px; }

.auth-form-panel { display: flex; flex-direction: column; justify-content: center; padding: clamp(34px, 6vw, 65px); }
.auth-form-panel h2 { margin: 0 0 7px; font-size: 30px; line-height: 1.2; }
.auth-intro { margin: 0 0 25px; color: var(--esign-muted); }
.auth-alert { margin: 0 0 19px; padding: 11px 13px; border: 1px solid; border-radius: 9px; font-size: 13px; }
.auth-alert.error { color: var(--esign-danger); background: var(--esign-danger-soft); border-color: #edbcbc; }
.auth-alert.success { color: var(--esign-success); background: var(--esign-success-soft); border-color: #abd8bd; }
.auth-field { display: grid; gap: 6px; margin-bottom: 17px; }
.auth-field label { color: #344258; font-size: 13px; font-weight: 750; }
.auth-check { display: flex; align-items: center; gap: 8px; margin: 3px 0 20px; color: #4f5c70; font-size: 13px; }
.auth-check input { width: 17px; height: 17px; margin: 0; accent-color: var(--esign-blue); }
.auth-submit { width: 100%; min-height: 48px; }
.auth-help { margin: 19px 0 0; color: var(--esign-muted); font-size: 12px; text-align: center; }

@media (max-width: 1080px) {
    .signing-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "summary"
            "document"
            "action";
    }
    .signing-action-panel { position: static; }
}

@media (max-width: 900px) {
    .auth-shell { min-height: 0; grid-template-columns: 1fr; }
    .auth-brand-panel { min-height: 260px; gap: 38px; }
    .auth-brand-copy h1 { max-width: 520px; }
    .auth-trust-list,
    .auth-brand-footer { display: none; }
}

@media (max-width: 600px) {
    .public-header-inner { width: min(100% - 24px, 1280px); min-height: 72px; gap: 12px; padding-block: 10px; }
    .public-brand-logo { width: 94px; height: 40px; padding: 6px 8px; }
    .public-brand-copy { display: none; }
    .secure-signing-label { font-size: 10px; }
    .signing-layout { width: min(100% - 22px, 1280px); gap: 14px; margin-top: 15px; }
    .signing-summary { grid-template-columns: 1fr; gap: 10px; padding: 15px 14px 12px; }
    .signing-summary-copy h1 { font-size: 22px; }
    .signing-summary-meta { justify-items: start; text-align: left; }
    .signing-document-id { justify-content: flex-start; }
    .signing-progress { padding-top: 8px; }
    .progress-item { gap: 5px; }
    .progress-item:not(:last-child)::after { right: 3px; left: 31px; }
    .progress-marker { width: 23px; height: 23px; flex: 0 0 auto; }
    .progress-item small { display: none; }
    .test-document-banner { align-items: flex-start; flex-direction: column; gap: 7px; }
    .panel { padding: 18px; }
    .document-heading { align-items: stretch; flex-direction: column; gap: 11px; padding: 14px; }
    .document-heading > .open-document-link { width: 100%; }
    .pdf-review-toolbar { align-items: stretch; flex-direction: column; gap: 7px; }
    .pdf-page-navigation { display: grid; grid-template-columns: 1fr auto 1fr; }
    .pdf-review-toolbar button { width: 100%; }
    .assigned-preview { min-height: 280px; padding: 9px; }
    .assigned-preview[data-fit="width"] { max-height: min(64vh, 620px); }
    .assigned-preview-status { min-height: 260px; }
    .document-placement-note { padding-inline: 11px; }
    .otp-input-row { grid-template-columns: 1fr; }
    .otp-input-row button { width: 100%; }
    .signature-actions { align-items: stretch; flex-direction: column; }
    .signature-actions button { width: 100%; }
    canvas#signature { height: 165px; }
    .state-main { margin-block: 27px; }
    .auth-page { display: block; padding: 12px; }
    .auth-shell { border-radius: 14px; }
    .auth-brand-panel { min-height: 210px; padding: 25px; }
    .auth-brand-logo { width: 145px; min-height: 57px; padding: 10px 13px; }
    .auth-brand-copy h1 { margin-bottom: 0; font-size: 29px; }
    .auth-brand-copy p { display: none; }
    .auth-form-panel { padding: 29px 23px 34px; }
    .auth-form-panel h2 { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
