:root {
  color-scheme: light;
  --ink: #0b1f33;
  --muted: #5d6c79;
  --faint: #84919c;
  --line: #dce4e8;
  --line-strong: #bdcbd2;
  --surface: #ffffff;
  --surface-soft: #f4f8f9;
  --navy: #0b2942;
  --blue: #1168a6;
  --teal: #087e81;
  --teal-light: #dff3f1;
  --danger: #b42318;
  --danger-soft: #fff0ed;
  --success: #107260;
  --warning: #a15c08;
  --shadow: 0 18px 50px rgba(11, 41, 66, 0.09);
  --radius: 10px;
  --content: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--surface); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: 12px; transform: translateY(-160%); padding: 9px 14px; border-radius: 6px; background: var(--navy); color: #fff; text-decoration: none; }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid rgba(17, 104, 166, 0.32); outline-offset: 3px; }

.site-header { position: sticky; z-index: 20; top: 0; height: 74px; border-bottom: 1px solid rgba(220, 228, 232, 0.9); background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(14px); }
.header-inner { width: min(calc(100% - 48px), var(--content)); height: 100%; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; }
.brand { display: inline-flex; width: fit-content; align-items: center; gap: 10px; color: var(--ink); font-size: 16px; font-weight: 650; letter-spacing: 0.08em; text-decoration: none; }
.brand strong { color: var(--teal); font-weight: 750; }
.brand-mark { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.header-nav { display: flex; align-items: center; gap: 34px; }
.header-nav a { color: #435565; font-size: 14px; font-weight: 600; text-decoration: none; }
.header-nav a:hover { color: var(--blue); }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.session-loading { color: var(--faint); font-size: 13px; }
.user-label { display: flex; align-items: center; gap: 9px; max-width: 220px; color: #364b5c; font-size: 13px; font-weight: 600; }
.user-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--teal-light); color: var(--teal); font-size: 12px; font-weight: 750; }
.user-label span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border: 1px solid transparent; border-radius: 7px; cursor: pointer; font-family: var(--font); font-size: 14px; font-weight: 700; line-height: 1.3; text-decoration: none; transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease; }
.button:active { transform: translateY(1px); }
.button:disabled { cursor: not-allowed; opacity: 0.55; }
.button.is-disabled { pointer-events: none; opacity: 0.55; }
.button-primary { background: var(--navy); color: #fff; }
.button-primary:hover { background: #123b5a; }
.button-secondary { border-color: var(--line-strong); background: #fff; color: var(--ink); }
.button-secondary:hover, .button-quiet:hover { border-color: #91a5af; background: var(--surface-soft); }
.button-quiet { border-color: var(--line); background: #fff; color: #405463; }
.button-danger { background: var(--danger); color: #fff; }
.button-danger:hover { background: #901c13; }
.button-small { min-height: 36px; padding: 7px 13px; font-size: 13px; }
.text-button { padding: 2px 0; border: 0; background: none; color: var(--blue); cursor: pointer; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.text-link { display: inline-flex; align-items: center; gap: 3px; color: var(--blue); font-size: 14px; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link svg { width: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; transition: transform 160ms ease; }
.text-link:hover svg { transform: translateX(2px); }

.notice-bar { padding: 10px 24px; background: #fff6dd; color: #6d490b; text-align: center; font-size: 14px; }
.loading-view { min-height: calc(100vh - 74px); display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: 14px; }
.spinner { width: 19px; height: 19px; border: 2px solid var(--line); border-top-color: var(--teal); border-radius: 50%; animation: spin 800ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero { border-bottom: 1px solid var(--line); }
.hero-inner { width: min(calc(100% - 48px), var(--content)); min-height: 590px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(410px, .96fr); align-items: center; gap: clamp(58px, 9vw, 126px); padding: 90px 0 96px; }
.hero-copy { max-width: 610px; }
.hero h1 { max-width: 590px; margin: 0; font-size: clamp(48px, 5.3vw, 76px); font-weight: 710; letter-spacing: -0.055em; line-height: 1.06; text-wrap: balance; }
.hero-copy > p { max-width: 530px; margin: 29px 0 0; color: var(--muted); font-size: 18px; line-height: 1.8; }
.hero-actions { margin-top: 38px; display: flex; align-items: center; gap: 24px; }
.hero .auth-note { margin-top: 16px; color: var(--danger); font-size: 14px; }
.source-illustration { min-height: 340px; display: flex; align-items: center; position: relative; }
.source-origin, .source-destination { position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; background: #fff; }
.source-origin { align-self: flex-start; margin-top: 64px; }
.source-destination { align-self: flex-end; margin-bottom: 60px; }
.source-origin b, .source-destination b { display: block; color: var(--ink); font-size: 15px; line-height: 1.4; }
.source-origin small, .source-destination small { display: block; margin-top: 3px; color: var(--faint); font-size: 12px; }
.source-logo { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--navy); color: #fff; font-size: 24px; font-weight: 750; }
.source-destination > svg { width: 56px; height: 56px; padding: 14px; border: 1px solid var(--line-strong); border-radius: 14px; fill: none; stroke: var(--teal); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.source-line { flex: 1; height: 118px; margin: 0 -16px; position: relative; }
.source-line::before { content: ""; position: absolute; left: -9px; right: -9px; top: 50%; height: 1px; background: var(--line-strong); transform: rotate(23deg); transform-origin: center; }
.source-line i { position: absolute; z-index: 1; left: 50%; top: calc(50% - 5px); width: 10px; height: 10px; border: 2px solid white; border-radius: 50%; background: var(--teal); animation: travel 3s ease-in-out infinite; }
@keyframes travel { 0%, 15% { transform: translate(-90px, -43px); opacity: 0; } 28% { opacity: 1; } 72% { opacity: 1; } 85%, 100% { transform: translate(83px, 36px); opacity: 0; } }

.section-wrap { width: min(calc(100% - 48px), var(--content)); margin: 0 auto; }
.missing-page { min-height: 60vh; padding: 100px 0; }
.missing-page h1 { margin: 18px 0 12px; font-size: clamp(36px, 5vw, 60px); letter-spacing: -.045em; }
.missing-page > p:not(.section-index) { margin: 0 0 30px; color: var(--muted); }
.package-preview { padding: 100px 0 112px; }
.section-heading { display: grid; grid-template-columns: 80px 1fr; gap: 26px; margin-bottom: 58px; }
.section-index { margin: 5px 0 0; color: var(--teal); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.section-heading h2 { margin: 0; font-size: clamp(30px, 3.5vw, 46px); font-weight: 700; letter-spacing: -.035em; line-height: 1.15; }
.section-heading p:not(.section-index) { margin: 12px 0 0; color: var(--muted); font-size: 16px; }
.open-list { border-top: 1px solid var(--line-strong); }
.empty-line { min-height: 126px; display: grid; grid-template-columns: 80px 1fr; align-items: center; gap: 26px; border-bottom: 1px solid var(--line); }
.empty-line span { width: 38px; height: 1px; background: var(--line-strong); }
.empty-line p { margin: 0; color: var(--muted); font-size: 18px; }
.login-package-prompt { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0; }
.login-package-prompt strong { display: block; font-size: 17px; }
.login-package-prompt p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

.steps-band { padding: 105px 0 115px; background: var(--navy); color: #fff; }
.section-heading-light .section-index { color: #6ad2ca; }
.section-heading-light p:not(.section-index) { color: #a8bbc8; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.2); list-style: none; }
.steps li { min-height: 218px; display: grid; grid-template-columns: 44px 1fr; gap: 20px; padding: 36px 30px 28px 0; border-right: 1px solid rgba(255,255,255,.2); }
.steps li + li { padding-left: 30px; }
.steps li:last-child { border-right: 0; }
.steps li > span { color: #6ad2ca; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 13px; font-weight: 700; }
.steps h3 { margin: 0; font-size: 19px; font-weight: 680; }
.steps p { margin: 11px 0 0; color: #a8bbc8; font-size: 14px; }
.account-band { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; padding: 112px 0 120px; }
.account-band h2 { max-width: 490px; margin: 15px 0 0; font-size: clamp(34px, 4vw, 52px); letter-spacing: -.04em; line-height: 1.15; }
.account-copy { padding-top: 38px; }
.account-copy p { margin: 0 0 24px; color: var(--muted); font-size: 17px; line-height: 1.85; }

.site-footer { width: min(calc(100% - 48px), var(--content)); margin: 0 auto; min-height: 136px; padding: 34px 0; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-top: 1px solid var(--line); color: var(--muted); }
.site-footer > div { display: flex; align-items: baseline; gap: 18px; }
.site-footer span { color: var(--ink); font-size: 14px; font-weight: 750; letter-spacing: .06em; }
.site-footer p { margin: 0; font-size: 12px; }
.site-footer nav { display: flex; gap: 26px; }
.site-footer a { font-size: 12px; font-weight: 650; text-decoration: none; }
.site-footer a:hover { color: var(--blue); }

.dashboard { background: var(--surface-soft); min-height: calc(100vh - 74px); }
.dashboard-shell { width: min(100%, 1440px); min-height: calc(100vh - 74px); margin: 0 auto; display: grid; grid-template-columns: 238px minmax(0, 1fr); }
.dashboard-sidebar { position: sticky; top: 74px; height: calc(100vh - 74px); padding: 42px 25px 30px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); background: #fff; }
.sidebar-label { margin: 0 14px 14px; color: var(--faint); font-size: 11px; font-weight: 750; letter-spacing: .12em; }
.dashboard-nav { display: grid; gap: 4px; }
.nav-item { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 11px; padding: 9px 13px; border: 0; border-radius: 7px; background: transparent; color: #526473; cursor: pointer; font-size: 14px; font-weight: 650; text-align: left; }
.nav-item svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; }
.nav-item:hover { background: var(--surface-soft); color: var(--ink); }
.nav-item.is-active { background: var(--teal-light); color: #08666b; }
.sidebar-privacy { margin-left: 13px; color: var(--faint); font-size: 12px; font-weight: 600; text-decoration: none; }
.sidebar-privacy:hover { color: var(--blue); }
.dashboard-content { min-width: 0; padding: 56px clamp(28px, 5vw, 74px) 90px; }
.dashboard-panel { display: none; max-width: 1060px; margin: 0 auto; }
.dashboard-panel.is-active { display: block; }
.panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 24px; }
.panel-kicker { margin: 0 0 4px; color: var(--teal); font-size: 11px; font-weight: 750; letter-spacing: .1em; }
.panel-heading h1 { margin: 0; font-size: clamp(30px, 3vw, 42px); letter-spacing: -.04em; line-height: 1.15; }
.panel-intro { max-width: 720px; margin: -5px 0 32px; color: var(--muted); font-size: 14px; }
.search-field { width: min(100%, 320px); min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 7px; background: #fff; }
.search-field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(17,104,166,.11); }
.search-field svg { width: 18px; fill: none; stroke: var(--faint); stroke-linecap: round; stroke-width: 1.8; }
.search-field input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); font-size: 14px; }
.search-field input::placeholder { color: #8996a0; }
.package-list, .source-list { border-top: 1px solid var(--line-strong); background: #fff; }
.package-row { min-height: 112px; display: grid; grid-template-columns: 48px minmax(180px, 1fr) minmax(180px, 1.4fr) auto; align-items: center; gap: 20px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.package-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 9px; background: var(--teal-light); color: var(--teal); font-weight: 750; }
.package-row h2 { margin: 0; font-size: 16px; line-height: 1.4; }
.package-row p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.package-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 12px; }
.package-meta span { white-space: nowrap; }
.empty-state { min-height: 260px; display: grid; place-items: center; padding: 40px 24px; border-bottom: 1px solid var(--line); text-align: center; }
.empty-state svg { width: 42px; height: 42px; margin: 0 auto 18px; fill: none; stroke: var(--teal); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.empty-state h2 { margin: 0; font-size: 19px; }
.empty-state p { max-width: 430px; margin: 8px auto 0; color: var(--muted); font-size: 13px; }
.inline-message { min-height: 90px; display: grid; place-items: center; padding: 24px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; text-align: center; }
.inline-message.is-error { color: var(--danger); }

.source-form { margin: 0 0 26px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.source-form > label { display: block; margin-bottom: 9px; color: #334a5b; font-size: 13px; font-weight: 700; }
.inline-form { display: flex; gap: 9px; }
.inline-form input, .secret-copy-row input { min-width: 0; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 7px; background: #fff; color: var(--ink); font-size: 14px; outline: none; }
.inline-form input { flex: 1; }
.inline-form input:focus, .secret-copy-row input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(17,104,166,.11); }
.field-hint { margin: 7px 0 0; color: var(--faint); font-size: 12px; }
.secret-result { margin: 0 0 26px; padding: 22px; border: 1px solid #80b9b1; border-radius: var(--radius); background: #effaf8; }
.secret-result p { margin: 0; color: #0b5e59; font-size: 14px; font-weight: 750; }
.secret-result strong { color: #476864; font-size: 12px; font-weight: 500; }
.secret-copy-row { display: flex; gap: 9px; margin: 14px 0 9px; }
.secret-copy-row input { flex: 1; background: #fff; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 12px; }
.source-row { min-height: 88px; display: grid; grid-template-columns: minmax(160px, 1fr) minmax(160px, .8fr) minmax(160px, .8fr) auto; align-items: center; gap: 18px; padding: 17px 22px; border-bottom: 1px solid var(--line); }
.source-row h2 { margin: 0; font-size: 15px; }
.source-row p { margin: 2px 0 0; color: var(--faint); font-size: 11px; }
.source-cell { color: var(--muted); font-size: 12px; }
.setup-guide { margin-top: 28px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); background: transparent; }
.setup-guide summary { padding: 18px 2px; cursor: pointer; color: var(--ink); font-size: 14px; font-weight: 750; }
.setup-guide ol { margin: 0; padding: 4px 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; list-style: none; }
.setup-guide li { display: grid; grid-template-columns: 30px 1fr; gap: 9px; }
.setup-guide li span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--teal-light); color: var(--teal); font-size: 11px; font-weight: 750; }
.setup-guide li p { margin: 0; color: var(--muted); font-size: 12px; }

.summary-row { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 24px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); background: #fff; }
.summary-item { padding: 18px 20px; border-right: 1px solid var(--line); }
.summary-item:last-child { border-right: 0; }
.summary-item span { display: block; color: var(--faint); font-size: 11px; font-weight: 700; }
.summary-item strong { display: block; margin-top: 4px; font-size: 22px; letter-spacing: -.02em; }
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line-strong); background: #fff; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th { padding: 12px 15px; border-bottom: 1px solid var(--line); color: var(--faint); font-size: 11px; font-weight: 750; white-space: nowrap; }
.data-table td { padding: 16px 15px; border-bottom: 1px solid var(--line); color: #465b6b; font-size: 12px; vertical-align: middle; }
.data-table td:first-child { color: var(--ink); font-weight: 700; }
.status { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 11px; font-weight: 750; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.status-completed { color: var(--success); }
.status-completed::before { background: var(--success); }
.status-partial { color: var(--warning); }
.status-partial::before { background: #d48622; }
.status-failed { color: var(--danger); }
.status-failed::before { background: var(--danger); }
.pagination { display: flex; justify-content: flex-end; gap: 6px; margin-top: 20px; }
.page-button { min-width: 38px; min-height: 38px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); cursor: pointer; font-size: 12px; font-weight: 700; }
.page-button:hover:not(:disabled) { border-color: #8ba2ae; }
.page-button:disabled { color: var(--faint); cursor: not-allowed; opacity: .55; }

.confirm-dialog { width: min(calc(100% - 32px), 440px); padding: 0; border: 0; border-radius: 12px; color: var(--ink); box-shadow: var(--shadow); }
.confirm-dialog::backdrop { background: rgba(5, 24, 38, .42); backdrop-filter: blur(2px); }
.confirm-dialog form { padding: 30px; }
.confirm-dialog svg { width: 34px; height: 34px; margin-bottom: 20px; fill: none; stroke: var(--danger); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.confirm-dialog h2 { margin: 0; font-size: 22px; }
.confirm-dialog p { margin: 10px 0 25px; color: var(--muted); font-size: 14px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; }
.toast { position: fixed; z-index: 60; right: 24px; bottom: 24px; max-width: min(calc(100% - 48px), 390px); padding: 12px 16px; border-radius: 7px; background: var(--navy); color: #fff; box-shadow: var(--shadow); font-size: 13px; font-weight: 650; }

.legal-page { width: min(calc(100% - 48px), 1060px); margin: 0 auto; padding: 90px 0 130px; }
.legal-heading { max-width: 780px; padding-bottom: 70px; }
.legal-heading > p:first-child { margin: 0 0 12px; color: var(--teal); font-size: 12px; font-weight: 750; letter-spacing: .1em; }
.legal-heading h1 { margin: 0; font-size: clamp(40px, 5vw, 64px); letter-spacing: -.05em; line-height: 1.08; }
.legal-heading > p:last-child { max-width: 680px; margin: 24px 0 0; color: var(--muted); font-size: 17px; }
.legal-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 90px; border-top: 1px solid var(--line-strong); padding-top: 46px; }
.legal-nav { position: sticky; top: 112px; align-self: start; display: grid; gap: 10px; }
.legal-nav a { color: var(--muted); font-size: 13px; font-weight: 650; text-decoration: none; }
.legal-nav a:hover { color: var(--blue); }
.legal-content section { padding-bottom: 47px; margin-bottom: 47px; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.legal-content section:last-child { margin-bottom: 0; border-bottom: 0; }
.legal-content h2 { margin: 0 0 16px; font-size: 24px; letter-spacing: -.02em; }
.legal-content p, .legal-content li { color: var(--muted); font-size: 15px; line-height: 1.85; }
.legal-content p { margin: 0; }
.legal-content ul { margin: 15px 0 0; padding-left: 21px; }
.legal-content a { color: var(--blue); font-weight: 650; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .hero-inner { min-height: auto; grid-template-columns: 1fr; gap: 55px; padding: 76px 0 78px; }
  .source-illustration { width: min(100%, 590px); min-height: 250px; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { min-height: auto; padding: 28px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.2); }
  .steps li:last-child { border-bottom: 0; }
  .dashboard-shell { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: static; height: auto; padding: 12px 20px; border-right: 0; border-bottom: 1px solid var(--line); display: block; overflow-x: auto; }
  .dashboard-sidebar > div { display: flex; align-items: center; }
  .sidebar-label, .sidebar-privacy { display: none; }
  .dashboard-nav { display: flex; min-width: max-content; gap: 5px; }
  .nav-item { width: auto; }
  .dashboard-content { padding-top: 42px; }
  .package-row { grid-template-columns: 48px minmax(160px, 1fr) auto; }
  .package-row .package-meta { grid-column: 2 / -1; }
}

@media (max-width: 680px) {
  .site-header { height: 66px; }
  .header-inner { width: min(calc(100% - 32px), var(--content)); grid-template-columns: 1fr auto; gap: 14px; }
  .header-nav { display: none; }
  .brand { font-size: 14px; }
  .brand-mark { width: 29px; height: 29px; }
  .header-actions .user-label span:last-child { display: none; }
  .header-actions { gap: 7px; }
  .header-actions .button-small { min-height: 34px; padding: 6px 10px; }
  .hero-inner, .section-wrap, .site-footer { width: min(calc(100% - 36px), var(--content)); }
  .hero-inner { padding: 62px 0 68px; gap: 48px; }
  .hero h1 { font-size: clamp(42px, 13vw, 58px); }
  .hero-copy > p { margin-top: 22px; font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 16px; margin-top: 30px; }
  .source-illustration { min-height: 218px; }
  .source-origin, .source-destination { gap: 8px; }
  .source-logo, .source-destination > svg { width: 43px; height: 43px; border-radius: 11px; }
  .source-destination > svg { padding: 10px; }
  .source-origin b, .source-destination b { font-size: 12px; }
  .source-origin small, .source-destination small { font-size: 10px; }
  .source-origin { margin-top: 42px; }
  .source-destination { margin-bottom: 35px; }
  .source-line { margin: 0 -8px; }
  .source-line i { display: none; }
  .package-preview, .steps-band { padding: 75px 0 82px; }
  .section-heading { grid-template-columns: 42px 1fr; gap: 8px; margin-bottom: 40px; }
  .section-heading p:not(.section-index) { font-size: 14px; }
  .empty-line { min-height: 100px; grid-template-columns: 42px 1fr; gap: 8px; }
  .empty-line span { width: 24px; }
  .login-package-prompt { align-items: flex-start; flex-direction: column; gap: 14px; }
  .account-band { grid-template-columns: 1fr; gap: 12px; padding: 78px 0 84px; }
  .account-copy { padding-top: 12px; }
  .site-footer { align-items: flex-start; flex-direction: column; min-height: 150px; }
  .site-footer > div { display: block; }
  .site-footer p { margin-top: 3px; }
  .dashboard-sidebar { top: 66px; padding: 10px 12px; }
  .nav-item { min-height: 40px; padding: 8px 10px; font-size: 12px; }
  .nav-item svg { width: 16px; height: 16px; }
  .dashboard-content { padding: 34px 18px 70px; }
  .panel-heading { align-items: stretch; flex-direction: column; gap: 18px; }
  .panel-heading .button { align-self: flex-start; }
  .search-field { width: 100%; }
  .package-row { grid-template-columns: 42px 1fr; gap: 12px; padding: 18px 16px; }
  .package-row .package-meta, .package-row .package-action { grid-column: 2; }
  .package-row .package-action { justify-self: start; }
  .inline-form, .secret-copy-row { align-items: stretch; flex-direction: column; }
  .source-row { grid-template-columns: 1fr auto; gap: 10px; padding: 16px; }
  .source-row .source-cell { grid-column: 1; }
  .source-row .source-action { grid-column: 2; grid-row: 1 / 3; }
  .setup-guide ol { grid-template-columns: 1fr; gap: 18px; }
  .summary-row { grid-template-columns: 1fr; }
  .summary-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .summary-item:last-child { border-bottom: 0; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table thead { display: none; }
  .data-table tr { padding: 15px 16px; border-bottom: 1px solid var(--line); }
  .data-table td { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 5px 0; border-bottom: 0; }
  .data-table td::before { content: attr(data-label); color: var(--faint); font-size: 11px; font-weight: 700; }
  .pagination { justify-content: center; }
  .legal-page { width: min(calc(100% - 36px), 1060px); padding: 62px 0 90px; }
  .legal-heading { padding-bottom: 52px; }
  .legal-layout { grid-template-columns: 1fr; gap: 42px; padding-top: 32px; }
  .legal-nav { position: static; grid-template-columns: repeat(2, 1fr); }
  .confirm-dialog form { padding: 25px 22px; }
}

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