:root {
  --white: #ffffff;
  --navy: #071c3b;
  --navy-2: #0c2d5a;
  --ink: #152033;
  --muted: #596579;
  --line: #d7dee9;
  --line-soft: #e8edf4;
  --gold: #bd8500;
  --gold-deep: #9d6e00;
  --gold-soft: #fff9ea;
  --green: #087a4d;
  --green-soft: #edf9f3;
  --red: #a62a20;
  --red-soft: #fff2f0;
  --amber: #8a5a00;
  --amber-soft: #fff7e6;
  --blue-soft: #f4f7fb;
  --shadow: 0 18px 52px rgba(7, 28, 59, 0.08);
  --shadow-soft: 0 9px 30px rgba(7, 28, 59, 0.055);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { font-size: 18px; background: var(--white); }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--white); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 18px; line-height: 1.56; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; font-size: 18px; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
.hidden { display: none !important; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 260px minmax(0,1fr); background: var(--white); }
.sidebar { min-height: 100vh; height: 100vh; position: sticky; top: 0; z-index: 50; display: flex; flex-direction: column; gap: 26px; padding: 26px 18px; border-right: 1px solid var(--line-soft); background: var(--white); }
.brand { display: flex; align-items: center; gap: 14px; padding: 0 8px; color: inherit; text-decoration: none; }
.brand-mark { width: 50px; height: 50px; flex: 0 0 50px; display: grid; place-items: center; border: 2px solid var(--gold); border-radius: 12px; color: #efc35d; background: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 700; box-shadow: 0 8px 20px rgba(7,28,59,.12); }
.brand-copy { display: flex; align-items: baseline; gap: 7px; font-family: Georgia, "Times New Roman", serif; font-size: 22px; white-space: nowrap; }
.brand-copy strong { color: var(--gold-deep); }
.brand-copy span { color: var(--navy); font-weight: 700; }
.nav-list { display: grid; gap: 8px; }
.nav-item { width: 100%; min-height: 56px; display: flex; align-items: center; gap: 14px; padding: 10px 14px; border: 1px solid transparent; border-radius: 14px; background: var(--white); color: var(--navy); text-align: left; font-weight: 700; cursor: pointer; }
.nav-item:hover { background: #fbfcfe; border-color: var(--line-soft); }
.nav-item.active { background: var(--gold-soft); border-color: #ead9aa; box-shadow: inset 3px 0 0 var(--gold); }
.nav-icon { width: 28px; height: 28px; display: grid; place-items: center; color: var(--navy); font-size: 22px; font-weight: 800; }
.sidebar-doctrine { margin-top: auto; display: grid; gap: 5px; padding: 20px 10px 0; border-top: 1px solid var(--line-soft); color: var(--muted); }
.sidebar-doctrine strong { color: var(--gold-deep); font-family: Georgia,serif; font-size: 25px; }
.sidebar-doctrine span { font-size: 18px; }

.main-shell { min-width: 0; background: var(--white); }
.topbar { min-height: 82px; position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 34px; border-bottom: 1px solid var(--line-soft); background: rgba(255,255,255,.98); backdrop-filter: blur(12px); }
.topbar-product { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.topbar-product strong { font-family: Georgia,serif; font-size: 25px; }
.version-badge { padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 18px; }
.doctrine { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 700; }
.doctrine-shield { color: var(--gold); font-size: 25px; }
.mobile-nav-toggle, .quiet-button, .text-button { border: 0; background: transparent; cursor: pointer; }
.mobile-nav-toggle { display: none; padding: 9px 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--navy); }
.quiet-button { padding: 10px 14px; border: 1px solid var(--line); border-radius: 11px; color: var(--navy); font-weight: 700; }
.quiet-button:hover { border-color: var(--gold); }
.page-container { width: min(100% - 64px, 1500px); margin: 0 auto; padding: 44px 0 64px; }
.footer { width: min(100% - 64px,1500px); margin: 0 auto; display: flex; justify-content: space-between; gap: 24px; padding: 26px 0 34px; border-top: 1px solid var(--line-soft); color: var(--muted); }
.nav-backdrop { display: none; }
.global-notice { position: fixed; right: 26px; top: 96px; z-index: 100; max-width: 560px; padding: 15px 18px; border: 1px solid #dccb9e; border-radius: 14px; background: var(--white); box-shadow: var(--shadow); color: var(--navy); font-weight: 650; }

.view { display: none; }
.view.active { display: block; }
h1,h2,h3,p { margin-top: 0; }
h1 { margin-bottom: 18px; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: clamp(44px,5vw,72px); line-height: 1.03; letter-spacing: -0.035em; }
h1 span { color: var(--gold-deep); }
h2 { margin-bottom: 12px; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 32px; line-height: 1.18; }
h3 { margin-bottom: 8px; color: var(--navy); font-size: 23px; }
p { color: var(--muted); font-size: 19px; }
.eyebrow, .panel-kicker { color: var(--gold-deep); font-size: 18px; font-weight: 850; letter-spacing: .08em; }
.page-heading { max-width: 1050px; margin-bottom: 34px; }
.page-heading h1 { font-size: clamp(44px,4.6vw,66px); }
.page-heading p { max-width: 900px; }
.split-heading { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.split-heading > div { max-width: 950px; }

.button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 20px; border: 1px solid transparent; border-radius: 12px; font-weight: 780; cursor: pointer; text-decoration: none; transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--navy); color: var(--white); box-shadow: 0 10px 24px rgba(7,28,59,.16); }
.button.secondary { border-color: #9aa8bc; background: var(--white); color: var(--navy); }
.button.secondary:hover { border-color: var(--navy); }
.button.ghost { border-color: transparent; background: #f7f9fc; color: var(--navy); }
.button.danger { color: var(--red); }
.button.align-left { justify-self: start; }
.text-button { padding: 5px; color: var(--gold-deep); font-weight: 800; }
.icon-button { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: var(--white); color: var(--navy); font-size: 28px; cursor: pointer; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-grid { display: grid; grid-template-columns: minmax(360px,.78fr) minmax(580px,1.22fr); gap: 42px; align-items: stretch; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 18px 0; }
.hero-copy h1 { max-width: 700px; }
.hero-lead { max-width: 660px; color: var(--ink); font-size: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 16px; }
.hero-note { margin: 0; color: var(--muted); font-size: 18px; }
.assurance-card { min-height: 500px; display: grid; place-items: center; padding: 30px; border: 1px solid var(--line); border-radius: 28px; background: var(--white); box-shadow: var(--shadow-soft); overflow: hidden; }
.assurance-orbit { width: min(100%,830px); height: 410px; position: relative; display: grid; place-items: center; }
.orbit-line { position: absolute; left: 7%; top: 18%; width: 86%; height: 64%; border: 1.5px solid var(--gold); border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(189,133,0,.03); }
.assurance-core { position: relative; z-index: 3; width: 218px; height: 218px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 4px solid #e2ad35; border-radius: 50%; background: var(--navy); color: var(--white); box-shadow: 0 0 0 11px rgba(226,173,53,.12), 0 18px 40px rgba(7,28,59,.12); }
.assurance-core strong { color: #f0bc43; font-family: Georgia,serif; font-size: 48px; line-height: 1; }
.assurance-core span { margin-top: 8px; font-size: 24px; }
.assurance-pill { position: absolute; z-index: 5; min-height: 58px; display: flex; align-items: center; justify-content: center; padding: 11px 24px; border: 1px solid #ccd6e4; border-radius: 999px; background: var(--white); color: var(--navy); font-size: 19px; font-weight: 820; box-shadow: 0 5px 18px rgba(7,28,59,.05); white-space: nowrap; }
.assurance-top { left: 50%; top: 2%; transform: translateX(-50%); }
.assurance-right { right: 0; top: 50%; transform: translateY(-50%); }
.assurance-bottom { left: 50%; bottom: 2%; transform: translateX(-50%); }
.assurance-left { left: 0; top: 50%; transform: translateY(-50%); }

.metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin: 28px 0 18px; }
.metric-card { min-height: 120px; display: grid; align-content: center; gap: 5px; padding: 20px; border: 1px solid var(--line-soft); border-radius: 18px; background: var(--white); }
.metric-card span { color: var(--muted); }
.metric-card strong { color: var(--navy); font-family: Georgia,serif; font-size: 36px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-soft); }
.dashboard-grid .panel { padding: 22px; }
.panel-header { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 18px; }
.panel-header h2 { margin: 3px 0 0; font-size: 28px; }
.compact-list { display: grid; }
.compact-row { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 14px; padding: 15px 0; border: 0; border-bottom: 1px solid var(--line-soft); background: transparent; text-align: left; cursor: pointer; }
.compact-row:last-child { border-bottom: 0; }
.compact-row > div { display: grid; gap: 3px; }
.compact-row strong { color: var(--navy); }
.compact-row span { color: var(--muted); }
.status { align-self: start; display: inline-flex; align-items: center; min-height: 34px; padding: 4px 11px; border-radius: 999px; font-size: 18px; font-weight: 800; }
.status.completed, .status.signed { color: var(--green); background: var(--green-soft); }
.status.waiting, .status.pending { color: var(--amber); background: var(--amber-soft); }
.status.draft { color: var(--muted); background: var(--blue-soft); }
.empty-state { min-height: 160px; display: flex; flex-direction: column; justify-content: center; gap: 5px; color: var(--muted); }
.empty-state strong { color: var(--navy); font-size: 21px; }
.empty-state.large { min-height: 330px; align-items: center; text-align: center; }
.timeline { display: grid; }
.timeline-item { position: relative; display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 12px; padding: 12px 0; }
.timeline-item::after { content: ""; position: absolute; left: 13px; top: 41px; bottom: -12px; width: 1px; background: var(--line); }
.timeline-item:last-child::after { display: none; }
.timeline-dot { width: 18px; height: 18px; margin-top: 4px; border: 3px solid var(--white); border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.timeline-item > div { display: grid; gap: 2px; }
.timeline-item strong { color: var(--navy); }
.timeline-item span, .timeline-item time { color: var(--muted); }
.verification-summary { display: flex; align-items: flex-start; gap: 14px; padding: 17px; border-radius: 16px; background: var(--green-soft); color: var(--green); }
.verification-summary .verification-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 2px solid currentColor; border-radius: 50%; font-size: 22px; font-weight: 900; }
.verification-summary > div:last-child { display: grid; gap: 3px; }
.detail-list { display: grid; margin-top: 16px; }
.detail-list > div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.detail-list > div:last-child { border-bottom: 0; }
.detail-list span { color: var(--muted); }
.detail-list strong { color: var(--navy); text-align: right; }
.tera-commitment { margin-top: 18px; display: flex; align-items: center; gap: 14px; padding: 15px 18px; border: 1px solid var(--line-soft); border-radius: 16px; }
.commitment-mark { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-deep); font-family: Georgia,serif; font-size: 24px; font-weight: 800; }
.tera-commitment > div { display: flex; flex-wrap: wrap; gap: 7px 12px; }
.tera-commitment strong { color: var(--navy); }
.tera-commitment span { color: var(--muted); }

.form-layout { display: grid; gap: 20px; }
.form-card { display: grid; gap: 17px; padding: 24px; }
.form-section-heading { display: flex; align-items: flex-start; gap: 16px; }
.form-section-heading > span { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border-radius: 50%; background: var(--gold-soft); color: var(--gold-deep); font-weight: 850; }
.form-section-heading h2 { margin-bottom: 4px; }
.form-section-heading p { margin-bottom: 0; }
.field { display: grid; gap: 7px; color: var(--navy); font-weight: 720; }
.field input, .field select, .field textarea { width: 100%; min-height: 54px; padding: 12px 14px; border: 1px solid #b9c4d3; border-radius: 11px; background: var(--white); color: var(--ink); outline: none; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(189,133,0,.12); }
.field small, .check-field small { color: var(--muted); font-size: 18px; font-weight: 500; }
.file-field input { padding: 10px; }
.field-grid { display: grid; gap: 14px; }
.field-grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.hash-preview { padding: 15px; border: 1px solid var(--line-soft); border-radius: 13px; background: #fcfdff; }
.hash-preview strong, .hash-preview span { display: block; }
.hash-preview strong { color: var(--navy); }
.hash-preview span { color: var(--muted); overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.signer-list { display: grid; gap: 12px; }
.signer-row { display: grid; grid-template-columns: 1.15fr 1.2fr .82fr 50px; gap: 12px; align-items: end; padding: 16px; border: 1px solid var(--line-soft); border-radius: 16px; }
.choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.choice-card { display: flex; align-items: flex-start; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 17px; cursor: pointer; }
.choice-card:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(189,133,0,.1); }
.choice-card input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--navy); }
.choice-copy { display: grid; gap: 5px; }
.choice-copy strong { color: var(--navy); font-size: 20px; }
.choice-copy span { color: var(--muted); }
.top-gap { margin-top: 4px; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; }
.assurance-path-panel { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 24px; }
.assurance-path-panel > div:first-child { max-width: 850px; }
.assurance-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.assurance-badges span { padding: 7px 11px; border: 1px solid #e5d2a0; border-radius: 999px; background: var(--gold-soft); color: var(--gold-deep); font-weight: 750; }

.filter-row { display: grid; grid-template-columns: 260px minmax(260px,520px); gap: 14px; margin-bottom: 18px; }
.field.compact select { min-width: 220px; }
.request-list { display: grid; gap: 14px; }
.request-card { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 19px; background: var(--white); box-shadow: var(--shadow-soft); cursor: pointer; }
.request-card:hover { border-color: #b6c2d2; }
.request-card-main { display: grid; gap: 8px; }
.request-card-main h3 { margin: 0; font-family: Georgia,serif; font-size: 27px; }
.request-card-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); }
.request-card-side { min-width: 190px; display: grid; justify-items: end; align-content: space-between; gap: 12px; text-align: right; }
.request-card-side strong { color: var(--navy); }
.card-grid { display: grid; gap: 18px; }
.card-grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.document-card, .partner-card, .settings-card { padding: 22px; }
.document-card h2, .partner-card h2 { font-size: 28px; }
.document-card .mono, .mono { color: var(--muted); font-family: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; overflow-wrap: anywhere; }
.partner-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 16px; }
.partner-stats div { padding: 12px; border: 1px solid var(--line-soft); border-radius: 12px; }
.partner-stats span, .partner-stats strong { display: block; }
.partner-stats span { color: var(--muted); }
.partner-stats strong { color: var(--navy); font-size: 22px; }

.request-hero { display: flex; justify-content: space-between; gap: 32px; align-items: flex-end; margin-bottom: 22px; }
.request-hero h1 { font-size: clamp(42px,4vw,60px); margin-bottom: 12px; }
.request-meta { display: flex; flex-wrap: wrap; gap: 9px 16px; color: var(--muted); }
.action-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.time-strip { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 1px; margin-bottom: 20px; border: 1px solid var(--line-soft); border-radius: 19px; background: var(--line-soft); overflow: hidden; }
.time-strip > div { min-height: 100px; display: grid; align-content: center; gap: 4px; padding: 17px; background: var(--white); }
.time-strip span { color: var(--muted); }
.time-strip strong { color: var(--navy); font-size: 20px; }
.detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 390px; gap: 20px; align-items: start; }
.detail-main { display: grid; gap: 20px; }
.sticky-panel { position: sticky; top: 108px; padding: 22px; }
.participant-list { display: grid; gap: 14px; }
.participant-card { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 15px; padding: 18px; border: 1px solid var(--line-soft); border-radius: 17px; }
.participant-main { display: flex; align-items: center; gap: 14px; }
.participant-main > div:last-child { display: grid; gap: 3px; }
.participant-main span { color: var(--muted); }
.participant-sequence { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border: 1px solid #e4cf98; border-radius: 50%; background: var(--gold-soft); color: var(--gold-deep); font-weight: 850; }
.participant-times { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.participant-times > div { display: grid; gap: 3px; }
.participant-times span { color: var(--muted); }
.participant-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.boundary-box { display: grid; gap: 5px; margin-top: 14px; padding: 15px 16px; border-left: 4px solid var(--gold); border-radius: 10px; background: var(--gold-soft); }
.boundary-box strong { color: var(--navy); }
.boundary-box span { color: #59491f; }
.evidence-panel { padding: 22px; }
.evidence-panel .detail-list { margin-top: 8px; }

.verify-layout, .identity-layout { display: grid; grid-template-columns: 430px minmax(0,1fr); gap: 22px; align-items: start; }
.verify-results { min-height: 430px; padding: 24px; }
.verification-layer { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.verification-layer:last-child { border-bottom: 0; }
.layer-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 2px solid currentColor; border-radius: 50%; font-weight: 900; }
.verification-layer.ok { color: var(--green); }
.verification-layer.bad { color: var(--red); }
.verification-layer.neutral { color: var(--amber); }
.verification-layer > div:last-child { color: var(--ink); }
.verification-layer strong { display: block; color: currentColor; font-size: 21px; }
.verification-layer span { display: block; margin-top: 3px; color: var(--muted); }
.certificate-result { display: none; padding: 15px; border-radius: 13px; }
.certificate-result.visible { display: block; }
.certificate-result.ok { background: var(--green-soft); color: var(--green); }
.certificate-result.bad { background: var(--red-soft); color: var(--red); }
.technical-details { padding-top: 14px; border-top: 1px solid var(--line-soft); }
.technical-details summary { color: var(--gold-deep); font-weight: 780; cursor: pointer; }
.technical-details > div { display: grid; gap: 6px; margin-top: 14px; }
.technical-details span { color: var(--muted); }
.technical-details strong { color: var(--navy); }
.full-timeline { max-width: 1050px; padding: 8px 0; }
.full-timeline .timeline-item { padding: 16px 0; }
.service-list, .principle-list { display: grid; }
.service-list > div, .principle-list > div { display: grid; gap: 3px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.service-list > div:last-child, .principle-list > div:last-child { border-bottom: 0; }
.service-list strong, .principle-list strong { color: var(--navy); }
.service-list span, .principle-list span { color: var(--muted); }

.signer-shell { max-width: 1240px; margin: 0 auto; }
.signer-heading { max-width: 930px; }
.signer-heading h1 { font-size: clamp(42px,4.5vw,64px); }
.signer-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 20px; align-items: start; }
.document-review-box { display: grid; gap: 7px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; }
.document-review-box strong { color: var(--navy); font-size: 22px; }
.document-review-box span { color: var(--gold-deep); font-weight: 750; }
.document-preview { min-height: 430px; display: grid; place-items: center; margin-top: 14px; border: 1px solid var(--line-soft); border-radius: 14px; background: #fbfcfe; overflow: hidden; }
.document-preview iframe, .document-preview img { width: 100%; height: 520px; border: 0; object-fit: contain; background: var(--white); }
.signing-panel { padding: 22px; }
.check-field { display: flex; align-items: flex-start; gap: 12px; color: var(--ink); cursor: pointer; }
.check-field input { width: 23px; height: 23px; flex: 0 0 auto; margin-top: 3px; accent-color: var(--navy); }
.check-field span { display: grid; gap: 4px; }
.consent-field { padding-top: 16px; border-top: 1px solid var(--line-soft); }

.modal-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(7,28,59,.30); }
.signature-dialog { width: min(760px, calc(100vw - 36px)); max-height: calc(100vh - 40px); padding: 0; border: 1px solid var(--line); border-radius: 22px; background: var(--white); box-shadow: 0 28px 80px rgba(7,28,59,.22); }
.signature-dialog::backdrop { background: rgba(7,28,59,.30); }
.signature-dialog form { display: grid; gap: 18px; padding: 24px; }
.dialog-heading { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.dialog-heading h2 { margin: 4px 0 0; }
.signature-context { padding: 14px; border: 1px solid var(--line-soft); border-radius: 13px; background: #fcfdff; }
.signature-context strong, .signature-context span { display: block; }
.signature-context span { color: var(--muted); overflow-wrap: anywhere; }
#signatureCanvas { width: 100%; height: 220px; display: block; border: 1px solid #aebacb; border-radius: 12px; background: var(--white); touch-action: none; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }

@media (max-width: 1240px) {
  .app-shell { grid-template-columns: 220px minmax(0,1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 900px; }
  .assurance-card { min-height: 470px; }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-grid > :last-child { grid-column: 1 / -1; }
  .detail-layout { grid-template-columns: 1fr; }
  .sticky-panel { position: static; }
}

@media (max-width: 980px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; left: 0; top: 0; width: min(86vw,320px); transform: translateX(-104%); transition: transform 180ms ease; box-shadow: 20px 0 40px rgba(7,28,59,.12); }
  body.nav-open .sidebar { transform: translateX(0); }
  .nav-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(7,28,59,.30); }
  body.nav-open .nav-backdrop { display: block; }
  .mobile-nav-toggle { display: inline-flex; }
  .topbar { padding: 0 20px; }
  .topbar-product { display: none; }
  .page-container, .footer { width: min(100% - 36px,1500px); }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-grid, .card-grid.two { grid-template-columns: 1fr; }
  .dashboard-grid > :last-child { grid-column: auto; }
  .field-grid.two, .choice-grid { grid-template-columns: 1fr; }
  .signer-row { grid-template-columns: 1fr 1fr; }
  .participant-times { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .signer-layout, .verify-layout, .identity-layout { grid-template-columns: 1fr; }
  .split-heading, .request-hero, .assurance-path-panel { flex-direction: column; align-items: flex-start; }
  .assurance-badges { justify-content: flex-start; }
}

@media (max-width: 700px) {
  html, body, button, input, select, textarea { font-size: 18px; }
  .topbar { min-height: 72px; }
  .doctrine { display: none; }
  .page-container { width: min(100% - 28px,1500px); padding-top: 30px; }
  .footer { width: min(100% - 28px,1500px); flex-direction: column; }
  h1 { font-size: 44px; }
  .hero-grid { gap: 24px; }
  .assurance-card { min-height: 470px; padding: 14px 8px; border-radius: 22px; }
  .assurance-orbit { height: 430px; }
  .orbit-line { left: 6%; width: 88%; top: 23%; height: 54%; }
  .assurance-core { width: 174px; height: 174px; }
  .assurance-core strong { font-size: 39px; }
  .assurance-core span { font-size: 21px; }
  .assurance-pill { min-height: 52px; padding: 10px 14px; font-size: 18px; }
  .assurance-left { left: 0; }
  .assurance-right { right: 0; }
  .metric-grid { grid-template-columns: 1fr; }
  .filter-row { grid-template-columns: 1fr; }
  .signer-row { grid-template-columns: 1fr; }
  .request-card { grid-template-columns: 1fr; }
  .request-card-side { min-width: 0; justify-items: start; text-align: left; }
  .participant-card { grid-template-columns: 1fr; }
  .participant-times { grid-template-columns: 1fr; }
  .form-actions, .dialog-actions { flex-direction: column-reverse; }
  .form-actions .button, .dialog-actions .button { width: 100%; }
  .partner-stats { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .assurance-orbit { height: 480px; }
  .orbit-line { left: 10%; width: 80%; top: 24%; height: 52%; }
  .assurance-core { width: 156px; height: 156px; }
  .assurance-core strong { font-size: 35px; }
  .assurance-core span { font-size: 19px; }
  .assurance-top { top: 1%; }
  .assurance-bottom { bottom: 1%; }
  .assurance-left { left: 1%; top: 50%; }
  .assurance-right { right: 1%; top: 50%; }
}

/* v0.6.0 integrated platform refinements */
.topbar-actions { display:flex; align-items:center; gap:12px; }
.quiet-link { min-height:46px; display:inline-flex; align-items:center; padding:9px 13px; border:1px solid var(--line); border-radius:10px; color:var(--navy); font-weight:750; text-decoration:none; }
.quiet-link:hover { border-color:var(--gold); }
.language-switch { min-height:46px; display:flex; align-items:center; gap:7px; padding:0 10px; border:1px solid var(--line); border-radius:10px; background:var(--white); }
.language-switch button { border:0; background:transparent; color:var(--muted); font-weight:800; cursor:pointer; padding:7px 4px; }
.language-switch button.active { color:var(--gold-deep); }
.field-help { margin:0; padding:12px 14px; border-left:4px solid var(--gold); border-radius:9px; background:var(--gold-soft); color:#59491f; font-size:18px; }
.signer-row { grid-template-columns: 1.08fr 1.16fr .78fr .72fr 50px; }
.identity-layout-wide { grid-template-columns:repeat(2,minmax(0,1fr)); }
.assurance-method-card { display:grid; gap:14px; padding:18px; border:1px solid var(--line); border-radius:16px; background:var(--white); }
.assurance-method-card.recommended { border-color:#dfc681; box-shadow:inset 4px 0 0 var(--gold); }
.assurance-method-card > div { display:flex; justify-content:space-between; gap:18px; flex-wrap:wrap; }
.assurance-method-card strong { color:var(--navy); }
.assurance-method-card span { color:var(--muted); }
.assurance-method-card ul { margin:0; padding-left:24px; color:var(--muted); }
.advanced-assurance { margin-top:4px; padding-top:14px; border-top:1px solid var(--line-soft); }
.advanced-assurance summary { color:var(--gold-deep); font-weight:800; cursor:pointer; }
.advanced-panel { display:grid !important; gap:16px; margin-top:16px; }
.technical-grid { display:grid; grid-template-columns:minmax(180px,.8fr) 1.2fr; gap:8px 16px; padding-top:12px; border-top:1px solid var(--line-soft); }
.technical-grid span { color:var(--muted); }
.technical-grid strong { color:var(--navy); }
.release-badge { min-height:48px; display:inline-flex; align-items:center; padding:9px 14px; border:1px solid #b9dbc9; border-radius:999px; background:var(--green-soft); color:var(--green); font-weight:800; }
.wide-dialog { width:min(1180px,calc(100vw - 36px)); }
.compact-dialog { width:min(620px,calc(100vw - 36px)); }
.release-review-content { min-height:280px; }
.release-grid { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr); gap:18px; align-items:start; }
.review-summary { display:grid; gap:12px; }
.review-summary h3 { margin:0; font-family:Georgia,"Times New Roman",serif; font-size:28px; }
.review-partner { display:grid; gap:2px; padding:11px 0; border-bottom:1px solid var(--line-soft); }
.review-partner strong { color:var(--navy); }
.review-partner span { color:var(--muted); }
.release-preview { min-height:380px; }
.release-preview iframe { height:min(58vh,680px); }
.preview-placeholder { min-height:260px; display:grid; place-items:center; align-content:center; gap:6px; padding:24px; text-align:center; color:var(--muted); }
.preview-placeholder strong { color:var(--navy); }
.access-code-card { display:grid; grid-template-columns:140px minmax(0,1fr); gap:10px 16px; padding:18px; border:1px solid var(--line-soft); border-radius:16px; }
.access-code-card span { color:var(--muted); }
.access-code-card strong { color:var(--navy); overflow-wrap:anywhere; }
.access-code-value { font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:34px; letter-spacing:.12em; color:var(--gold-deep) !important; }
.signature-review-image { width:100%; max-height:150px; object-fit:contain; padding:10px; border:1px solid var(--line-soft); border-radius:12px; background:var(--white); }
.signer-access-shell { display:grid; grid-template-columns:minmax(0,1fr) 380px; gap:20px; align-items:start; max-width:1150px; }
.access-gate,.access-summary { padding:24px; }
.access-code-field input { font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:34px; letter-spacing:.18em; text-align:center; }
.access-verified-banner { display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap; margin-bottom:18px; padding:14px 17px; border:1px solid #b9dbc9; border-radius:14px; background:var(--green-soft); color:var(--green); }
.access-verified-banner strong { font-size:20px; }
.access-verified-banner span { color:#356c55; }

@media (max-width: 1180px) {
  .signer-row { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .signer-row .icon-button { align-self:end; }
  .release-grid,.signer-access-shell { grid-template-columns:1fr; }
}
@media (max-width: 980px) {
  .identity-layout-wide { grid-template-columns:1fr; }
  .topbar-actions { gap:7px; }
  .quiet-link { display:none; }
}
@media (max-width: 700px) {
  .topbar-actions .quiet-button { display:none; }
  .language-switch { min-height:42px; }
  .signer-row { grid-template-columns:1fr; }
  .access-code-card { grid-template-columns:1fr; }
}

/* v0.6.0 deployment and signing placement */
.service-badge { display:inline-flex; align-items:center; min-height:34px; padding:5px 10px; border:1px solid var(--line); border-radius:999px; background:#fff; color:var(--muted); font-size:18px; font-weight:750; white-space:nowrap; }
.service-badge.online { border-color:#b9d9c8; background:#f6fbf8; color:#17663f; }
.service-badge.offline { border-color:#ead9aa; background:#fffaf0; color:#7b5a0b; }
.signer-row { grid-template-columns: 1.02fr 1.12fr .72fr .68fr .68fr .78fr 50px; }
.signer-row .placement-field select, .signer-row .page-field input { min-width:0; }
.connected-banner { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; padding:18px 20px; margin-bottom:18px; border:1px solid #c9ddcf; border-radius:16px; background:#f8fcf9; }
.connected-banner strong { color:#174f35; }
.connected-banner span { color:#4a6558; }
.connected-banner.local { border-color:#e7d8aa; background:#fffaf1; }
.connected-banner.local strong { color:#735309; }
.remote-actions { display:flex; flex-wrap:wrap; gap:10px; }
.remote-status-card { border:1px solid #d6e4db; background:#fbfdfb; border-radius:16px; padding:16px; display:grid; gap:10px; }
.remote-status-card .detail-list { margin-top:0; }
.signature-placement-note { grid-column:1 / -1; color:var(--muted); font-size:18px; }
.finalization-card { border:1px solid #c8dbcF; background:#fbfdfb; }
@media (max-width: 1200px) { .signer-row { grid-template-columns:repeat(3,minmax(0,1fr)); } .signer-row .icon-button { align-self:end; } }
@media (max-width: 760px) { .signer-row { grid-template-columns:1fr; } .connected-banner { flex-direction:column; } }

/* v0.7.1 — PDF + Word document intake */
.supported-format-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
}
.supported-format-note strong { color: var(--navy); }
.document-upload-card { display: grid; gap: 14px; }
.document-upload-dropzone {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 30px 24px;
  border: 2px dashed #b7c6dc;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f8fc 100%);
  text-align: center;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.document-upload-dropzone:hover,
.document-upload-dropzone:focus-within,
.document-upload-dropzone.is-dragover {
  border-color: #315f98;
  box-shadow: 0 0 0 4px rgba(49,95,152,.08);
}
.document-upload-dropzone.is-dragover { transform: translateY(-1px); }
.document-upload-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #eaf1fa;
  color: var(--navy);
  font-size: 28px;
  font-weight: 800;
}
.document-upload-title { color: var(--navy); font-size: 22px; font-weight: 800; }
.document-upload-copy,
.document-upload-limit { color: var(--muted); font-size: 18px; line-height: 1.45; }
.document-format-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.document-format-badges strong {
  padding: 7px 12px;
  border: 1px solid #c8d6e8;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 18px;
}
.document-upload-button { pointer-events: none; margin-top: 2px; }
.document-upload-dropzone input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.document-word-note {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid #d8e4f0;
  border-radius: 14px;
  background: #f8fbff;
  font-size: 18px;
  line-height: 1.5;
}
.document-word-note strong { color: var(--navy); }
.document-word-note span { color: var(--muted); }
.document-preparation {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: #fff;
}
.document-preparation-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.document-preparation-heading h3 { margin: 3px 0 0; color: var(--navy); font-size: 22px; }
.document-preparation-badge {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 999px;
  background: #eef3f9;
  color: var(--navy);
  font-size: 18px;
  font-weight: 800;
}
.document-preparation-badge.ready { background: #edf8f2; color: #1e6c45; }
.document-preparation-badge.error { background: #fff1f1; color: #9d2d2d; }
.document-preparation-summary {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 13px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 18px;
}
.document-preparation-summary strong { color: var(--navy); }
.document-conversion-path {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.document-conversion-path span {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #d5dfeb;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
}
.document-conversion-path b { color: var(--muted); font-size: 20px; }
.upload-preview { min-height: 520px; }
.upload-preview iframe { height: 620px; }
.document-preview-confirm { margin-top: 2px; }
#createRequestButton:disabled { opacity: .48; cursor: not-allowed; }

/* Word conversion staging. The shell is off-screen; the document passed to
   html2pdf stays position:static so cloned multi-page content is not clipped. */
.tera-docx-conversion-shell {
  position: fixed;
  left: -12000px;
  top: 0;
  z-index: -1000;
  width: 794px;
  pointer-events: none;
}
.tera-docx-conversion-document {
  position: static;
  width: 794px;
  min-height: 1px;
  box-sizing: border-box;
  padding: 54px 56px;
  background: #fff;
  color: #111827;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
.tera-docx-conversion-document h1,
.tera-docx-conversion-document h2,
.tera-docx-conversion-document h3,
.tera-docx-conversion-document h4 { color: #111827; line-height: 1.25; break-after: avoid; page-break-after: avoid; }
.tera-docx-conversion-document p { margin: 0 0 10px; }
.tera-docx-conversion-document table { width: 100%; border-collapse: collapse; margin: 12px 0; break-inside: avoid; page-break-inside: avoid; }
.tera-docx-conversion-document td,
.tera-docx-conversion-document th { border: 1px solid #cfd6df; padding: 7px; vertical-align: top; }
.tera-docx-conversion-document img { max-width: 100%; height: auto; break-inside: avoid; page-break-inside: avoid; }
.tera-docx-conversion-document ul,
.tera-docx-conversion-document ol { padding-left: 28px; }

@media (max-width: 720px) {
  .document-upload-dropzone { padding: 24px 16px; }
  .document-preparation-heading { align-items: stretch; flex-direction: column; }
  .document-preparation-badge { align-self: flex-start; }
  .upload-preview iframe { height: 500px; }
}

/* v0.7.3 — Word conversion reliability + recovery, preserving premium TeraSystemsAI experience */
:root {
  --brand-brown: #3a2600;
  --brand-gold-1: #725100;
  --brand-gold-2: #c59a1e;
  --brand-charcoal: #1b1b1d;
}

.app-shell { display:block; min-height:100vh; background:#fff; }
.main-shell { width:100%; min-width:0; background:#fff; }
.sidebar { display:none; }
.nav-backdrop { display:none; }

.brand-masthead {
  position:relative;
  z-index:32;
  min-height:118px;
  overflow:hidden;
  border-bottom:2px solid #d6a81e;
  background:linear-gradient(100deg,#2e1e00 0%,#5f4300 42%,#a77b08 75%,#c49a1f 100%);
  color:#fff;
}
.brand-masthead::after {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:radial-gradient(circle at 17% 50%,rgba(255,222,116,.11),transparent 24%);
}
.brand-masthead-inner {
  position:relative;
  z-index:1;
  width:min(100% - 72px,1480px);
  min-height:118px;
  margin:0 auto;
  display:grid;
  grid-template-columns:86px minmax(420px,1fr) minmax(380px,.9fr);
  align-items:center;
  gap:24px;
}
.masthead-emblem {
  width:70px;
  height:70px;
  display:grid;
  place-items:center;
  border:2px solid #e1ba46;
  border-radius:50%;
  background:radial-gradient(circle at 40% 35%,#6c5320 0%,#241900 60%,#120d00 100%);
  box-shadow:inset 0 0 0 5px rgba(229,190,73,.18),0 0 0 1px rgba(255,255,255,.18),0 12px 28px rgba(0,0,0,.22);
  color:#ffe080;
  font-family:Georgia,"Times New Roman",serif;
  font-size:34px;
  font-weight:800;
}
.masthead-identity { display:grid; gap:7px; min-width:0; }
.masthead-title-row { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.masthead-title {
  color:#fff;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(31px,2.4vw,40px);
  line-height:1;
  letter-spacing:-.02em;
}
.masthead-subtitle { color:#fff6d7; font-size:18px; font-weight:650; }
.brand-masthead .version-badge,
.brand-masthead .service-badge {
  min-height:30px;
  padding:3px 9px;
  border-color:rgba(255,255,255,.32);
  background:rgba(255,255,255,.10);
  color:#fff6d7;
  font-size:16px;
}
.brand-masthead .service-badge.online { border-color:rgba(179,255,213,.45); background:rgba(13,85,52,.35); color:#dff8e9; }
.brand-masthead .service-badge.offline { border-color:rgba(255,230,159,.50); background:rgba(73,47,0,.35); color:#fff0bf; }
.masthead-context { display:grid; justify-items:end; gap:6px; text-align:right; }
.masthead-context strong { color:#ffe079; font-size:17px; }
.masthead-context span { max-width:560px; color:#fff3c8; font-size:16px; font-weight:700; }

.topbar.product-navbar {
  min-height:66px;
  position:sticky;
  top:0;
  z-index:35;
  display:block;
  padding:0;
  border:0;
  border-bottom:1px solid #303034;
  background:rgba(27,27,29,.985);
  backdrop-filter:blur(14px);
  box-shadow:0 8px 24px rgba(11,14,20,.08);
}
.product-navbar-inner {
  width:min(100% - 72px,1620px);
  min-height:66px;
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:28px;
}
.corporate-home {
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:#fff;
  text-decoration:none;
  font-size:18px;
}
.corporate-dot { width:9px; height:9px; border-radius:2px; background:#ddb117; }
.desktop-product-nav { min-width:0; flex:1 1 auto; display:flex; align-items:stretch; justify-content:center; gap:8px; }
.product-nav-link {
  min-height:66px;
  position:relative;
  padding:0 11px;
  border:0;
  background:transparent;
  color:#f4f4f5;
  font-size:16px;
  font-weight:790;
  cursor:pointer;
  white-space:nowrap;
}
.product-nav-link::after {
  content:"";
  position:absolute;
  left:12px;
  right:12px;
  bottom:0;
  height:3px;
  border-radius:3px 3px 0 0;
  background:#d8ad1d;
  transform:scaleX(0);
  transition:transform .16s ease;
}
.product-nav-link:hover { color:#ffe69b; }
.product-nav-link.active::after { transform:scaleX(1); }
.product-navbar .topbar-actions { flex:0 0 auto; gap:9px; }
.product-navbar .quiet-link,
.product-navbar .nav-icon-button,
.product-navbar .language-switch { border-color:#444449; background:#232326; color:#fff; }
.product-navbar .quiet-link:hover,
.product-navbar .nav-icon-button:hover,
.product-navbar .language-switch:hover { border-color:#c99b13; }
.product-navbar .quiet-link { min-height:42px; padding:8px 11px; font-size:16px; }
.product-navbar .language-switch { min-height:42px; padding:0 9px; }
.product-navbar .language-switch button { color:#c7c7ca; font-size:16px; }
.product-navbar .language-switch button.active { color:#ffd968; }
.nav-icon-button {
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border:1px solid #444449;
  border-radius:10px;
  background:#232326;
  color:#fff;
  cursor:pointer;
  font-size:19px;
}
.nav-primary {
  min-height:42px;
  padding:8px 16px;
  border:1px solid #d7aa19;
  border-radius:10px;
  background:linear-gradient(180deg,#b48705,#966f00);
  color:#fff;
  font-size:16px;
  font-weight:850;
  cursor:pointer;
}
.nav-primary:hover { background:linear-gradient(180deg,#c3960b,#a67b00); }
.mobile-nav-toggle { color:#fff; border-color:#4d4d52; background:#242427; }

.page-container { width:min(100% - 72px,1480px); padding:54px 0 72px; }
.view[data-view="home"] .hero-grid { min-height:500px; grid-template-columns:minmax(430px,.88fr) minmax(570px,1.12fr); gap:clamp(42px,5vw,82px); align-items:center; }
.hero-copy { padding:24px 0 18px; }
.hero-copy .eyebrow { margin-bottom:12px; }
.hero-copy h1 { max-width:720px; font-size:clamp(54px,5.1vw,82px); line-height:.99; }
.hero-lead { max-width:720px; margin-bottom:20px; font-size:20px; line-height:1.6; }
.hero-actions { margin:5px 0 16px; }
.hero-actions .button { min-height:56px; padding-inline:22px; }
.hero-note { max-width:690px; margin-bottom:16px; }
.hero-trust-strip {
  max-width:760px;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  margin:4px 0 12px;
  border:1px solid #e0e5ed;
  border-radius:16px;
  background:#fff;
  overflow:hidden;
  box-shadow:0 8px 24px rgba(7,28,59,.035);
}
.hero-trust-strip > span { min-width:0; display:grid; gap:2px; padding:13px 14px; border-right:1px solid #edf0f4; }
.hero-trust-strip > span:last-child { border-right:0; }
.hero-trust-strip strong { color:var(--navy); font-size:16px; }
.hero-trust-strip small { color:var(--muted); font-size:14px; line-height:1.35; }
.supported-format-note { margin-top:10px; }

.assurance-card {
  min-height:470px;
  border-color:#dfe4eb;
  border-radius:30px;
  background:linear-gradient(180deg,#fff 0%,#fff 75%,#fdfcf8 100%);
  box-shadow:0 24px 70px rgba(7,28,59,.065);
}
.metric-grid { margin-top:34px; gap:14px; }
.metric-card { border-color:#e2e7ee; border-radius:16px; box-shadow:0 8px 25px rgba(7,28,59,.025); }
.dashboard-grid { gap:16px; }
.panel { border-color:#dfe5ed; box-shadow:0 12px 34px rgba(7,28,59,.045); }
.tera-commitment { background:#fffdf7; border-color:#eee1bd; }
.footer { width:min(100% - 72px,1480px); }

.view[data-view="new-request"] .page-heading { max-width:920px; }
.view[data-view="new-request"] .form-layout { max-width:1180px; }
.document-upload-dropzone { background:#fbfcfe; border-color:#b7c5d8; }
.document-upload-dropzone:hover,
.document-upload-dropzone:focus-within,
.document-upload-dropzone.is-dragover { border-color:#b48500; box-shadow:0 0 0 4px rgba(189,133,0,.09); }
.document-upload-icon { background:#fff7dd; color:#8f6500; }
.document-word-note { background:#fffdf8; border-color:#eadfbe; }

@media (max-width:1320px) {
  .brand-masthead-inner { grid-template-columns:76px minmax(360px,1fr) minmax(320px,.75fr); width:min(100% - 48px,1480px); }
  .product-navbar-inner { width:min(100% - 48px,1620px); gap:18px; }
  .desktop-product-nav { gap:2px; }
  .product-nav-link { padding-inline:8px; font-size:15px; }
  .product-navbar .quiet-link { display:none; }
}
@media (max-width:1080px) {
  .brand-masthead,.brand-masthead-inner { min-height:104px; }
  .brand-masthead-inner { grid-template-columns:70px minmax(0,1fr); }
  .masthead-context { display:none; }
  .desktop-product-nav { display:none; }
  .product-navbar-inner { justify-content:space-between; }
  .corporate-home { margin-right:auto; }
  .mobile-nav-toggle { display:inline-flex; align-items:center; gap:8px; min-height:42px; }
}
@media (max-width:980px) {
  .sidebar { display:flex; position:fixed; left:0; top:0; width:min(86vw,320px); transform:translateX(-104%); transition:transform 180ms ease; box-shadow:20px 0 40px rgba(7,28,59,.12); }
  body.nav-open .sidebar { transform:translateX(0); }
  body.nav-open .nav-backdrop { display:block; }
  .view[data-view="home"] .hero-grid { grid-template-columns:1fr; gap:30px; }
  .hero-copy { max-width:900px; }
  .hero-trust-strip { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .hero-trust-strip > span:nth-child(2) { border-right:0; }
  .hero-trust-strip > span:nth-child(-n+2) { border-bottom:1px solid #edf0f4; }
}
@media (max-width:700px) {
  .brand-masthead-inner { width:min(100% - 28px,1480px); grid-template-columns:58px minmax(0,1fr); gap:14px; }
  .brand-masthead,.brand-masthead-inner { min-height:92px; }
  .masthead-emblem { width:54px; height:54px; font-size:27px; }
  .masthead-title { font-size:27px; }
  .masthead-subtitle { font-size:14px; }
  .brand-masthead .version-badge { display:none; }
  .brand-masthead .service-badge { font-size:14px; min-height:27px; }
  .product-navbar-inner { width:min(100% - 24px,1620px); min-height:62px; gap:9px; }
  .topbar.product-navbar { min-height:62px; }
  .corporate-home { display:none; }
  .product-navbar .topbar-actions { margin-left:auto; }
  .product-navbar .nav-icon-button { display:none; }
  .product-navbar .nav-primary { min-height:40px; padding-inline:12px; font-size:15px; }
  .product-navbar .language-switch { min-height:40px; }
  .page-container { width:min(100% - 28px,1480px); padding-top:36px; }
  .hero-copy h1 { font-size:clamp(46px,13vw,62px); }
  .hero-trust-strip { grid-template-columns:1fr; }
  .hero-trust-strip > span { border-right:0; border-bottom:1px solid #edf0f4; }
  .hero-trust-strip > span:last-child { border-bottom:0; }
  .assurance-card { min-height:440px; }
  .footer { width:min(100% - 28px,1480px); }
}
@media (prefers-reduced-motion:reduce) {
  .product-nav-link::after,.sidebar { transition:none; }
}


/* v0.7.3 Word conversion recovery */
.document-recovery-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:14px; }
.document-recovery-actions .button { min-height:42px; }
@media (max-width: 640px) { .document-recovery-actions .button { width:100%; } }

/* v0.7.3.1 — multi-page Word signing-copy hotfix */
.document-page-count { font-weight: 700; color: var(--navy); }
