@font-face {
    font-family: "SUIT";
    src: url("/fonts/SUIT-Variable.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}
@font-face {
    font-family: "Gowun Batang";
    src: url("/fonts/GowunBatang-Bold.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}
:root {
    color-scheme: light;
    --canvas: #f4f7f6;
    --paper: #fff;
    --ink: #193d36;
    --text: #354d47;
    --muted: #62766f;
    --green: #176b52;
    --green-dark: #11523f;
    --green-tint: #eaf3ee;
    --line: #dce6e0;
    --gold: #916713;
    --danger: #a83c35;
    --radius: 16px;
    font-family: "SUIT", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    font-size: 16px;
    font-synthesis: none;
    line-height: 1.65;
    color: var(--text);
    background: var(--canvas);
    -webkit-text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
a { color: var(--green); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--green-dark); }
button, input, select, textarea { font: inherit; }
button, input, select { min-width: 0; }
button { cursor: pointer; }
img, svg { max-width: 100%; vertical-align: middle; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 750; line-height: 1.4; word-break: keep-all; overflow-wrap: anywhere; letter-spacing: -.035em; }
h1 { font-size: clamp(1.9rem, 3vw, 2.45rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
p { margin: 12px 0; word-break: keep-all; overflow-wrap: anywhere; }
p:first-child { margin-top: 0; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 22px; }
li + li { margin-top: 7px; }
strong { font-weight: 730; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .82em; overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid #997220; outline-offset: 4px; border-radius: 3px; }
::selection { background: #cce3d7; color: #173e30; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; background: var(--ink); color: white; padding: 12px 20px; border-radius: 6px; }
.skip-link:focus { top: 12px; color: white; }
.site-header { background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.header-inner, .site-main, .footer-inner { width: min(100% - 80px, 1160px); margin-inline: auto; }
.header-inner { min-height: 96px; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; flex-shrink: 0; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-icon { width: 44px; height: 44px; object-fit: contain; }
.brand-name { display: block; font-size: 25px; line-height: 1.15; font-weight: 800; letter-spacing: -.07em; text-decoration: none; color: var(--ink); }
.brand-tagline { display: block; font-size: 11px; font-weight: 500; letter-spacing: -.01em; color: var(--muted); margin-top: 6px; }
.site-nav { display: flex; gap: 8px; margin-left: auto; align-self: stretch; align-items: stretch; }
.nav-link { position: relative; display: flex; align-items: center; padding: 0 15px; font-size: 15px; font-weight: 650; color: var(--muted); text-decoration: none; white-space: nowrap; transition: color 140ms; }
.nav-link:hover, .nav-link.is-active { color: var(--green); }
.nav-link.is-active::after { content: ""; position: absolute; bottom: 0; height: 3px; background: var(--green); left: 15px; right: 15px; border-radius: 3px 3px 0 0; }
.header-account { padding-left: 24px; border-left: 1px solid var(--line); }
.header-account form { margin: 0; }
.site-main { min-height: calc(100vh - 270px); padding-block: 48px 72px; }
.site-footer { background: #edf2ef; border-top: 1px solid var(--line); }
.footer-inner { min-height: 160px; display: flex; align-items: flex-start; gap: 36px; padding-block: 34px; font-size: 12px; color: var(--muted); }
.footer-inner > div:first-child { flex-shrink: 0; }
.footer-inner p { margin: 5px 0 0; }
.footer-brand { font-size: 19px; font-weight: 800; letter-spacing: -.05em; color: var(--ink); }
.footer-notice { padding-top: 3px; max-width: 570px; }
.footer-link { margin-left: auto; white-space: nowrap; text-decoration: none; padding-top: 5px; }
.page-heading { position: relative; margin-bottom: 32px; }
.page-heading:has(> div) { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.eyebrow, .section-kicker { display: block; color: var(--green); font-size: 12px; font-weight: 750; letter-spacing: .04em; margin: 0 0 10px; }
.lede { font-size: 17px; color: var(--muted); line-height: 1.8; margin-top: 14px; max-width: 720px; }
.section-title { font-size: 19px; letter-spacing: -.025em; }
.page-actions, .inline-actions, .form-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-actions { margin-top: 24px; }
.page-heading > .page-actions { margin-top: 0; }
.form-actions { margin-top: 24px; }
.inline-actions { gap: 14px; }
.button, button, .button-secondary, .button-quiet, .button-danger {
    display: inline-flex; justify-content: center; align-items: center; gap: 14px;
    min-height: 46px; padding: 11px 20px; border: 1px solid transparent; border-radius: 8px;
    font-size: 15px; font-weight: 700; line-height: 1.5; text-align: center;
    text-decoration: none; color: #fff; background: var(--green);
    transition: background-color 140ms, color 140ms, border-color 140ms, box-shadow 140ms, transform 140ms;
}
.button:hover, button:hover { background: var(--green-dark); color: #fff; box-shadow: 0 4px 10px #153f3020; transform: translateY(-1px); }
.button:active, button:active { transform: translateY(0); box-shadow: none; }
.button-secondary { color: var(--green); background: white; border-color: #c7d9cd; }
.button-secondary:hover { color: var(--green-dark); background: var(--green-tint); border-color: #9bbdaa; }
.button-quiet { color: var(--green); background: transparent; }
.button-quiet:hover { color: var(--green-dark); background: var(--green-tint); box-shadow: none; }
.button-danger { color: var(--danger); background: #fff; border-color: #e5c9c7; }
.button-danger:hover { background: #fbefee; color: #842f2a; border-color: #bc736d; box-shadow: none; }
.account-button { min-height: 36px; padding: 7px 12px; font-size: 13px; }
.button-google { width: 100%; min-height: 50px; background: #fff; border-color: #cbd6cf; color: #293c35; }
.button-google:hover { background: #f5f7f6; color: #243c31; border-color: #819b8c; }
.google-icon { width: 20px; height: 20px; flex-shrink: 0; }
button:disabled, .button[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.back-link, .text-link { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 12px; }
.back-link + .page-heading { margin-top: 22px; }
.breadcrumb { display: flex; gap: 10px; align-items: center; font-size: 13px; margin-bottom: 22px; color: var(--muted); }
.breadcrumb a { text-decoration: none; }
.surface { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: clip; box-shadow: 0 3px 14px #25463804; }
.surface + .surface { margin-top: 24px; }
.surface-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 24px 28px; border-bottom: 1px solid var(--line); }
.surface-header .section-kicker { margin-bottom: 5px; }
.surface-header:has(> .eyebrow) { display: block; }
.surface-header:has(> .eyebrow) > p:not(.eyebrow) { margin-top: 12px; color: var(--muted); }
.surface-body { padding: 26px 28px; }
.surface-body > :first-child { margin-top: 0; }
.surface-body > :last-child { margin-bottom: 0; }
.surface-body + .surface-body { border-top: 1px solid var(--line); }
.surface-body > p, .surface-header > p { font-size: 15px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 28px; margin-bottom: 28px; align-items: start; }
.dashboard-main, .dashboard-aside, .flow-main, .flow-aside { min-width: 0; }
.dashboard-aside .surface-header, .dashboard-aside .surface-body { padding: 23px; }
.dashboard-aside .button { width: 100%; }
.dashboard-aside .section-title { font-size: 17px; }
.flow-layout { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 32px; align-items: start; }
.flow-aside { font-size: 14px; }
.flow-aside .surface-body, .flow-aside .surface-header { padding: 24px; }
.status-badge, .tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 5px; background: #edf1ef; color: #51665d; font-size: 12px; font-weight: 700; line-height: 1.5; vertical-align: middle; }
.status-badge.is-success { background: #e5f2ea; color: #1a6746; }
.status-badge.is-warning { background: #faf0d9; color: #825c14; }
.status-badge.is-neutral { background: #eef2f0; color: #5b6d64; }
.notice { border: 1px solid #d5e2da; border-left: 3px solid #819d8a; background: #eef4f0; padding: 18px 22px; margin: 0 0 24px; border-radius: 0 10px 10px 0; font-size: 14px; color: #425d4c; }
.notice strong { color: inherit; }
.notice p { margin: 6px 0 0; }
.notice-success { background: #eaf5ed; border-color: #c4decc; border-left-color: var(--green); color: #24573e; }
.notice-warning { background: #fff8e9; border-color: #e9ddbc; border-left-color: #b68e32; color: #785b22; }
.surface-body .notice { margin-top: 20px; }
.notice .form-actions { margin-top: 12px; }
.muted, .text-small, .field-help { color: var(--muted); }
.text-small, .field-help { font-size: 13px; line-height: 1.75; }
.text-strong { font-weight: 750; color: var(--ink); }
.stack > * + * { margin-top: 20px; }
.key-value-grid { margin: 0; }
.key-value-grid > div { display: grid; grid-template-columns: minmax(75px,.75fr) minmax(0,1.25fr); gap: 14px; align-items: start; padding: 10px 0; font-size: 13px; }
.key-value-grid > div + div { border-top: 1px solid #eef2ef; }
.key-value-grid dt { color: var(--muted); }
.key-value-grid dd { margin: 0; color: var(--ink); font-weight: 600; word-break: keep-all; overflow-wrap: anywhere; }
.key-value-grid + form, .key-value-grid + .button { margin-top: 22px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.data-table th { background: #f8faf9; color: var(--muted); font-size: 12px; font-weight: 650; padding: 13px 20px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.data-table td { padding: 22px 20px; vertical-align: top; border-bottom: 1px solid #e8eeea; overflow-wrap: anywhere; }
.data-table th:first-child, .data-table td:first-child { padding-left: 28px; }
.data-table th:last-child, .data-table td:last-child { padding-right: 28px; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background-color 150ms; }
.data-table tbody tr:hover { background: #f9fbfa; }
.data-table td .text-small { font-size: 12px; }
.data-table a { font-weight: 650; }
.data-table .inline-actions { gap: 6px; }
.contract-name { display: block; color: var(--ink); font-size: 15px; font-weight: 750; min-width: 100px; }
.data-table td .detail-list { margin-top: 12px; font-size: 12px; }
.data-table td .detail-list summary { padding: 5px 0; }
.data-table td .key-value-grid > div { grid-template-columns: 1fr; gap: 3px; }
.pagination { display: flex; align-items: center; justify-content: flex-end; padding: 18px 28px; border-top: 1px solid var(--line); }
.empty-state { text-align: center; padding: 62px 24px; }
.empty-state h2, .empty-state h3 { font-size: 20px; margin-bottom: 10px; }
.empty-state p { font-size: 14px; color: var(--muted); }
.empty-state .button { margin-top: 14px; }
.empty-state-icon { width: 52px; height: 60px; margin: 0 auto 22px; border: 1px solid #cbdcd1; background: #f1f6f2; display: grid; place-items: center; font-size: 22px; color: #738e7e; border-radius: 7px 17px 7px 7px; }
.consent-list { display: grid; gap: 16px; }
.disclosure-card { display: grid; grid-template-columns: 1fr auto; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.disclosure-card:last-child { border-bottom: 0; padding-bottom: 0; }
.disclosure-card h3 { font-size: 16px; align-self: center; }
.disclosure-card .status-badge { font-size: 11px; }
.disclosure-card a { grid-column: 1/-1; font-size: 13px; text-decoration: none; }
.consent-record { padding-block: 18px; border-bottom: 1px solid var(--line); }
.consent-record:last-child { border-bottom: 0; }
.consent-record .status-badge { margin-top: 12px; }
details { font-size: 14px; }
summary { cursor: pointer; padding: 16px 0; color: var(--ink); font-weight: 700; list-style: none; display: flex; align-items: center; gap: 14px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 21px; line-height: 1; font-weight: 400; color: var(--muted); margin-left: auto; transition: transform 180ms; }
details[open] > summary::after { transform: rotate(45deg); }
details[open] > summary { margin-bottom: 8px; }
.surface > details > summary { padding: 23px 28px; }
.surface > details[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 0; }
.compact-details, .detail-list + .detail-list { border-top: 1px solid var(--line); margin-top: 22px; }
.compact-details p, .detail-list p { font-size: 13px; }
label, .field-label { display: block; font-size: 14px; font-weight: 650; color: var(--ink); }
.field, .form-stack > label { margin-bottom: 22px; }
.field-label { margin-bottom: 8px; }
input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea {
    display: block; width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid #bdcec3; border-radius: 7px;
    background: #fff; color: var(--ink); transition: border-color 140ms, box-shadow 140ms;
}
input::placeholder, textarea::placeholder { color: #7b8b82; font-weight: 400; }
input:hover, select:hover, textarea:hover { border-color: #91ad9b; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px #176b5212; }
input[type=checkbox], input[type=radio] { width: 19px; height: 19px; flex: 0 0 19px; accent-color: var(--green); cursor: pointer; margin: 3px 0 0; }
.check-field { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid #ccdcd1; border-radius: 8px; background: #f9fbf9; font-size: 14px; line-height: 1.7; cursor: pointer; }
.check-field:has(:checked) { background: #edf6ef; border-color: #94b8a1; }
.check-field + .check-field { margin-top: 12px; }
.check-field p { margin: 6px 0 0; }
.check-field > span { min-width: 0; }
.check-field > span > strong, .check-field .field-help { display: block; }
.check-field .field-help { margin-top: 6px; font-size: 12px; }
.field-help { font-weight: 400; margin-top: 8px; }
.validation-summary-errors, .field-validation-error { color: var(--danger); font-size: 14px; }
.input-validation-error { border-color: var(--danger) !important; }
.form-stack { max-width: 100%; }
.step-list { counter-reset: steps; list-style: none; padding: 0; margin: 0; }
.flow-aside h2 + .step-list { margin-top: 24px; }
.flow-aside .surface + .notice { margin-top: 20px; }
.step-list li { position: relative; padding: 0 0 28px 44px; color: var(--muted); font-size: 14px; margin: 0; }
.step-list li::before { counter-increment: steps; content: counter(steps); position: absolute; top: 0; left: 0; width: 28px; height: 28px; display: grid; place-items: center; background: #eff3f0; border: 1px solid var(--line); border-radius: 50%; font-size: 12px; font-weight: 700; color: #627b6a; }
.step-list li::after { content: ""; position: absolute; left: 13px; top: 32px; bottom: 6px; width: 1px; background: var(--line); }
.step-list li:last-child { padding-bottom: 0; }
.step-list li:last-child::after { display: none; }
.step-list .is-current { color: var(--ink); font-weight: 700; }
.step-list .is-current::before { background: var(--green); border-color: var(--green); color: white; }
.step-list .is-complete::before { content: "✓"; color: var(--green); background: #e8f3eb; }
.step-list strong, .step-list span { display: block; }
.step-list span { font-size: 12px; font-weight: 400; margin-top: 5px; }
.step-list p { font-size: 12px; font-weight: 400; margin-top: 5px; }
.consent-summary { padding: 20px; background: #f5f8f6; border-radius: 10px; margin-block: 22px; }
dl.detail-list { margin-block: 24px 0; font-size: 13px; }
dl.detail-list dt { color: var(--muted); font-weight: 600; }
dl.detail-list dd { margin: 4px 0 16px; color: var(--text); overflow-wrap: anywhere; }
dl.detail-list dd:last-child { margin-bottom: 0; }
dl.consent-summary { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 18px 20px; margin-block: 0 24px; }
dl.consent-summary dd { margin: 0; font-size: 14px; }
.success-panel { padding: 40px; background: #edf6ef; border: 1px solid #ccdfd1; border-radius: var(--radius); margin-bottom: 26px; }
.success-panel h2 { font-size: 26px; }
.success-mark { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #b4d3bd; border-radius: 50%; background: #fff; color: var(--green); font-size: 24px; margin-bottom: 20px; }
.auth-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,480px); gap: 88px; align-items: start; padding: 30px 24px 40px; }
.auth-story { padding-top: 38px; }
.auth-story h1, .display-title { font-family: "Gowun Batang", Georgia, serif; font-weight: 700; font-size: clamp(2.1rem,3.5vw,2.9rem); line-height: 1.55; letter-spacing: -.05em; }
.auth-story > .eyebrow { margin-bottom: 24px; }
.auth-story .lede { font-size: 16px; }
.auth-story .notice { margin-top: 30px; }
.auth-panel { box-shadow: 0 14px 50px #25463807; }
.auth-panel .surface-header { display: block; padding: 30px 32px 24px; }
.auth-panel .surface-header h2 { font-size: 23px; }
.auth-panel .surface-header p:not(.eyebrow) { font-size: 14px; color: var(--muted); }
.auth-panel .surface-body { padding: 28px 32px 32px; }
.auth-panel .form-actions .button:not(.button-google) { flex-grow: 1; }
.auth-disclosure h3 { font-size: 15px; }
.auth-disclosure > p { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.auth-panel .notice { font-size: 12px; margin-top: 24px; margin-bottom: 0; padding: 14px 16px; }
.auth-steps { counter-reset: authsteps; list-style: none; padding: 0; margin: 38px 0 0; }
.auth-steps li { counter-increment: authsteps; padding: 0 0 25px 44px; position: relative; margin: 0; }
.auth-steps li::before { content: "0" counter(authsteps); position: absolute; left: 0; top: 0; font-size: 12px; color: var(--green); border-top: 1px solid #a9c5b3; padding-top: 4px; }
.auth-steps strong { display: block; font-size: 15px; color: var(--ink); }
.auth-steps span { display: block; font-size: 13px; color: var(--muted); margin-top: 5px; }
.scope-list { margin: 0; padding: 0; list-style: none; }
.scope-list li { position: relative; margin: 0; padding: 18px 0 18px 26px; border-bottom: 1px solid #e5ede7; }
.scope-list li:first-child { padding-top: 0; }
.scope-list li:last-child { border-bottom: 0; }
.scope-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.scope-copy strong { color: var(--ink); font-size: 15px; }
.scope-copy p { color: var(--muted); font-size: 13px; margin: 5px 0; }
.scope-copy code { display: inline-block; font-size: 11px; color: #697c71; }
.connection-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.connection-list > .surface { margin: 0; }
.connection-list > .empty-state { grid-column: 1/-1; }
.connection-card .surface-header { display: block; }
.connection-card .surface-header h2 { margin-top: 12px; }
.connection-card .surface-body { padding-top: 20px; }
.welcome-layout { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); align-items: center; gap: 70px; padding: 24px 16px 56px; }
.welcome-copy > .eyebrow { margin-bottom: 26px; }
.welcome-copy .display-title { margin-bottom: 22px; }
.welcome-status { margin-bottom: 18px; }
.welcome-copy .lede { margin-bottom: 28px; }
.welcome-copy > .field-help { font-size: 12px; margin-top: 18px; max-width: 360px; }
.welcome-guide { position: relative; padding: 32px 36px 24px; background: #e8f0e9; border: 1px solid #d4e1d6; border-radius: 4px 32px 4px 4px; }
.welcome-guide::after { content: ""; position: absolute; right: 0; top: 0; width: 29px; height: 29px; background: #d4e1d6; border-bottom-left-radius: 5px; clip-path: polygon(0 0,100% 100%,0 100%); }
.guide-heading { display: flex; justify-content: space-between; align-items: center; }
.guide-heading .eyebrow { margin: 0; font-size: 11px; letter-spacing: .06em; }
.guide-symbol { font-size: 25px; font-weight: 400; color: #6a8a74; }
.welcome-guide h2 { font-family: "Gowun Batang", Georgia, serif; font-size: 27px; line-height: 1.55; margin-top: 20px; }
.journey-list { list-style: none; padding: 0; margin: 25px 0 0; }
.journey-list li { display: grid; grid-template-columns: 28px 1fr; gap: 16px; padding: 17px 0; margin: 0; border-top: 1px solid #cdded1; }
.journey-number { color: #6a846f; font-size: 11px; font-weight: 650; padding-top: 4px; }
.journey-list h3 { font-size: 15px; }
.journey-list p { font-size: 13px; line-height: 1.7; margin-top: 5px; color: #587160; }
.guide-footnote { padding-top: 17px; border-top: 1px solid #cdded1; font-size: 11px; color: #587160; }
.home-links { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; padding: 30px 16px 0; border-top: 1px solid var(--line); }
.home-link { text-decoration: none; color: var(--text); }
.home-link h2 { font-size: 18px; margin-top: 4px; }
.home-link p { font-size: 14px; color: var(--muted); }
.home-link .text-link { font-size: 13px; margin-top: 16px; }
.home-link:hover .text-link { text-decoration: underline; }
pre, .policy-source { font-family: "SUIT", "Malgun Gothic", sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; margin: 20px 0; padding: 24px; font-size: 15px; line-height: 1.9; border: 1px solid #e3e8e3; border-left: 3px solid #a6bdaa; background: #fafbf8; max-height: 680px; overflow: auto; }
.policy-source:focus-visible { outline-offset: -4px; }
.policy-search-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 32px; }
.policy-search-grid label { margin-bottom: 8px; }
.policy-search-grid form { display: flex; flex-direction: column; align-items: flex-start; }
.policy-search-grid .field { width: 100%; flex-grow: 1; margin-bottom: 4px; }
.policy-search-grid input { min-width: 0; }
.source-reference { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.registration-steps { margin-block: 0 24px; line-height: 1.9; }
.page-shell { width: min(100% - 40px,760px); margin: 0 auto; padding-block: 72px; }
.reveal.is-revealed { animation: page-enter 420ms ease-out both; }
@keyframes page-enter { from { opacity: .55; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 981px) {
    .dashboard-aside .surface:nth-child(2).is-revealed { animation-delay: 60ms; }
}
@media (max-width: 1100px) {
    .header-inner, .site-main, .footer-inner { width: calc(100% - 48px); }
    .header-inner { gap: 20px; }
    .nav-link { padding-inline: 12px; }
    .header-account { padding-left: 16px; }
    .dashboard-grid { grid-template-columns: minmax(0,1fr) 290px; gap: 20px; }
    .auth-layout { gap: 44px; padding-inline: 0; }
    .welcome-layout { gap: 40px; padding-inline: 0; }
    .data-table td, .data-table th { padding-inline: 16px; }
}
@media (max-width: 900px) {
    .header-inner { min-height: 84px; flex-wrap: wrap; gap: 0; padding-top: 18px; }
    .brand { margin-bottom: 16px; }
    .header-account { order: 1; margin-left: auto; margin-bottom: 16px; border: 0; }
    .site-nav { order: 2; width: 100%; height: 48px; margin: 0; gap: 14px; }
    .nav-link { padding-inline: 4px; }
    .nav-link.is-active::after { left: 4px; right: 4px; }
    .dashboard-grid { grid-template-columns: minmax(0,1fr); }
    .dashboard-aside { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
    .dashboard-aside .surface + .surface { margin-top: 0; }
    .flow-layout { grid-template-columns: minmax(0,1fr) 240px; gap: 20px; }
    .auth-layout { grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); gap: 32px; }
    .auth-panel .surface-header, .auth-panel .surface-body { padding: 24px; }
    .auth-story h1 { font-size: 32px; }
    .welcome-layout { gap: 28px; }
    .welcome-guide { padding: 24px; }
    .display-title { font-size: 35px; }
    .footer-inner { flex-wrap: wrap; gap: 16px 28px; }
    .footer-notice { max-width: 480px; }
    .footer-link { margin-left: 0; }
}
@media (max-width: 680px) {
    :root { font-size: 15px; }
    .header-inner, .site-main, .footer-inner { width: calc(100% - 40px); }
    .site-main { padding-block: 30px 48px; }
    .brand-icon { width: 38px; height: 38px; }
    .brand-name { font-size: 23px; }
    .brand-tagline { font-size: 10px; }
    .site-nav { gap: 18px; }
    .nav-link { font-size: 13px; }
    .header-account { padding-left: 0; }
    .account-button { font-size: 12px; }
    h1 { font-size: 28px; }
    .page-heading { margin-bottom: 24px; }
    .page-heading:has(> div) { gap: 18px; }
    .lede { font-size: 15px; line-height: 1.8; }
    .page-actions { margin-top: 20px; }
    .button, button, .button-secondary, .button-quiet, .button-danger { font-size: 14px; min-height: 46px; padding: 11px 16px; }
    .account-button { min-height: 34px; padding: 6px 10px; }
    .surface-header, .surface-body { padding: 22px; }
    .section-title { font-size: 18px; }
    .surface-header { gap: 10px; }
    .surface { border-radius: 12px; }
    .dashboard-grid { gap: 20px; }
    .dashboard-aside { grid-template-columns: 1fr; gap: 20px; }
    .flow-layout { grid-template-columns: 1fr; gap: 24px; }
    .flow-aside { order: -1; }
    .flow-aside .step-list { display: flex; gap: 8px; }
    .flow-aside .step-list li { flex: 1; padding: 36px 0 0; font-size: 11px; }
    .flow-aside .step-list li::after { top: 13px; left: 34px; bottom: auto; width: calc(100% - 32px); height: 1px; }
    .flow-aside .step-list p { display: none; }
    .flow-aside .step-list span { font-size: 10px; line-height: 1.6; }
    .notice { padding: 16px 18px; font-size: 13px; }
    dl.consent-summary { grid-template-columns: 1fr; gap: 4px; padding: 18px; }
    dl.consent-summary dd { font-size: 13px; margin-bottom: 14px; }
    .table-wrap { overflow: visible; }
    .data-table, .data-table tbody { display: block; }
    .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .data-table tr { display: block; padding: 18px 22px; border-bottom: 1px solid var(--line); }
    .data-table tr:last-child { border: 0; }
    .data-table td, .data-table td:first-child, .data-table td:last-child { display: block; padding: 7px 0; border: 0; font-size: 13px; }
    .data-table td[data-label] { position: relative; padding-left: 83px; min-height: 33px; }
    .data-table td[data-label]::before { content: attr(data-label); position: absolute; left: 0; top: 8px; width: 75px; font-size: 11px; color: var(--muted); font-weight: 600; }
    .data-table td[data-label]:first-child { padding-left: 0; padding-top: 0; padding-bottom: 14px; }
    .data-table td[data-label]:first-child::before { display: none; }
    .data-table td .contract-name { font-size: 16px; }
    .data-table .key-value-grid > div { font-size: 12px; }
    .pagination { padding: 16px 22px; }
    .surface > details > summary { padding: 22px; }
    .auth-layout { display: flex; flex-direction: column; gap: 30px; padding: 0; }
    .auth-story { padding: 6px 0 0; width: 100%; }
    .auth-story h1 { font-size: 33px; line-height: 1.5; }
    .auth-story > .eyebrow { margin-bottom: 18px; }
    .auth-story .lede { font-size: 15px; }
    .auth-steps { display: flex; gap: 15px; margin-top: 24px; }
    .auth-steps li { flex: 1; padding: 28px 0 0; }
    .auth-steps li::before { top: 0; }
    .auth-steps strong { font-size: 12px; }
    .auth-steps span { display: none; }
    .auth-panel { width: 100%; }
    .auth-panel .surface-header, .auth-panel .surface-body { padding: 24px; }
    .auth-panel .surface-header h2 { font-size: 22px; }
    .connection-list { grid-template-columns: 1fr; gap: 20px; }
    .success-panel { padding: 28px 24px; }
    .success-panel h2 { font-size: 24px; }
    .welcome-layout { grid-template-columns: 1fr; gap: 38px; padding: 4px 0 36px; }
    .welcome-copy > .eyebrow { margin-bottom: 22px; }
    .display-title { font-size: clamp(2rem,6.8vw,2.5rem); }
    .welcome-copy .lede { font-size: 15px; }
    .welcome-copy .page-actions { align-items: stretch; }
    .welcome-guide { padding: 24px 28px; }
    .welcome-guide h2 br { display: none; }
    .welcome-guide h2 { font-size: 24px; margin-top: 12px; }
    .journey-list { margin-top: 20px; }
    .journey-list li { padding: 16px 0; }
    .journey-list p br { display: none; }
    .home-links { grid-template-columns: 1fr; gap: 28px; padding: 28px 0 0; }
    .home-link + .home-link { border-top: 1px solid var(--line); padding-top: 26px; }
    .home-link h2 { font-size: 18px; }
    .home-link .text-link { margin-top: 10px; }
    .footer-inner { display: block; padding-block: 28px; font-size: 11px; }
    .footer-notice { margin-top: 16px; }
    .footer-link { display: inline-block; margin-top: 15px; }
    pre, .policy-source { padding: 18px; font-size: 14px; }
    .policy-search-grid { grid-template-columns: 1fr; gap: 24px; }
    .policy-search-grid form + form { padding-top: 22px; border-top: 1px solid var(--line); }
}
@media (max-width: 360px) {
    .header-inner, .site-main, .footer-inner { width: calc(100% - 32px); }
    .site-nav { gap: 10px; }
    .nav-link { font-size: 12px; }
    .surface-header, .surface-body, .auth-panel .surface-header, .auth-panel .surface-body { padding: 18px; }
    .auth-story h1 { font-size: 29px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
    .site-header, .site-footer, .page-actions, .form-actions, button, .button { display: none !important; }
    body { background: white; color: black; }
    .site-main { width: 100%; padding: 0; }
    .surface { box-shadow: none; }
    .dashboard-grid { display: block; }
    pre, .policy-source { max-height: none; overflow: visible; }
}

/* Policy catalog browsing */
.outline-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.outline-list li { line-height: 1.6; }
select { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line, #d8d3c8); border-radius: 10px; background: var(--surface, #fff); color: inherit; }
