:root {
  color-scheme: light;
  --ink: #20252b;
  --muted: #747a83;
  --line: #e9ebef;
  --blue: #225cde;
  --blue-hover: #1749b9;
  --teal: #267d74;
  --amber: #9b691b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; color: var(--ink); background: #fff; }
button, input, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a { touch-action: manipulation; }
button { border: 0; background: none; }
a { color: inherit; text-decoration: none; }
button:disabled { opacity: .5; cursor: not-allowed; }
button:focus-visible, a:focus-visible, summary:focus-visible, [role="tabpanel"]:focus-visible { outline: 3px solid #b4c8fa; outline-offset: 4px; }
button, a, summary { -webkit-user-select: none; user-select: none; }
[hidden] { display: none !important; }
.lucide { width: 20px; height: 20px; flex-shrink: 0; stroke-width: 1.75; }
.container { width: min(1080px, calc(100% - 96px)); margin-inline: auto; }
.header { height: 88px; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-weight: 750; font-size: 23px; }
.wordmark > .lucide { width: 23px; height: 26px; color: var(--blue); fill: #edf3ff; }
.wordmark-dot { color: var(--blue); }
nav { display: flex; align-items: center; gap: 26px; font-size: 13px; }
nav a:hover, .nav-contact:hover { color: var(--blue); }
.nav-contact { display: flex; gap: 8px; align-items: center; padding: 10px 0; }
.nav-contact .lucide { width: 17px; }
.preview-mark { color: #8c7650; font-size: 11px; }
.hero { background: #fff url('/assets/bookmark.webp') no-repeat calc(50% + 325px) 9px / 710px auto; }
.hero-inner { min-height: 578px; position: relative; padding-block: 55px 44px; }
.hero-copy { width: 510px; max-width: 100%; position: relative; z-index: 1; }
.eyebrow { display: flex; gap: 10px; align-items: center; color: #677282; font-size: 12px; font-weight: 500; }
.eyebrow-line { width: 20px; height: 2px; background: var(--blue); }
h1 { margin: 14px 0 3px; font-size: 92px; line-height: 1.07; font-weight: 750; color: #222933; letter-spacing: 0; }
h1 > span { color: var(--blue); }
.hero-subtitle { margin: 20px 0 9px; font-size: 24px; font-weight: 600; line-height: 1.5; }
.hero-description { margin: 0 0 32px; color: var(--muted); font-size: 14px; }
.address-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 11px; color: var(--muted); margin: 0 0 9px; }
#portalHint { font-size: 10px; text-align: right; }
.address-bar { min-height: 60px; border: 1px solid #e1e6ee; border-radius: 8px; background: #fbfcfe; display: flex; align-items: center; gap: 13px; padding: 7px 9px 7px 17px; }
.address-bar > .lucide { color: #818c9d; width: 18px; }
.portal-address { min-width: 0; flex: 1; font-family: "SFMono-Regular", Consolas, monospace; font-size: 21px; font-weight: 500; overflow-wrap: anywhere; line-height: 1.5; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 6px; color: #727e8e; flex-shrink: 0; position: relative; }
.icon-button:hover { background: #eef2f8; color: var(--blue); }
[data-tooltip]::after { content: attr(data-tooltip); pointer-events: none; position: absolute; z-index: 10; bottom: calc(100% + 8px); right: 0; transform: translateY(3px); opacity: 0; background: #26303d; color: white; white-space: nowrap; font-size: 11px; font-weight: 400; padding: 6px 9px; border-radius: 4px; transition: opacity .15s, transform .15s; }
@media (hover: hover) { [data-tooltip]:hover::after { opacity: 1; transform: translateY(0); } }
.migration-notice { display: grid; grid-template-columns: 17px minmax(0, 1fr) auto; align-items: center; gap: 9px; margin-top: 12px; padding: 8px 10px; border: 1px solid #efdfc4; border-radius: 6px; background: #fff9ee; color: #77501d; font-size: 12px; line-height: 1.65; }
.migration-notice > .lucide { width: 17px; height: 17px; }
.migration-notice p { margin: 0; overflow-wrap: anywhere; }
.migration-notice button { padding: 7px 4px; font-weight: 600; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.primary-actions { display: grid; grid-template-columns: 1.35fr 1fr; gap: 12px; margin-top: 14px; }
.button { min-height: 53px; display: inline-flex; justify-content: center; align-items: center; gap: 11px; padding: 12px 21px; border: 1px solid transparent; border-radius: 7px; font-size: 14px; font-weight: 600; transition: background .18s, border-color .18s, box-shadow .18s; line-height: 1.5; }
.button-primary { background: var(--blue); color: white; box-shadow: 0 5px 12px #225cde1a; }
.button-primary:hover:not(:disabled) { background: var(--blue-hover); box-shadow: 0 7px 15px #225cde24; }
#enterButton { justify-content: space-between; padding-inline: 23px; }
.button-secondary { background: white; border-color: #dce1e9; }
.button-secondary:hover { background: #f7f9fc; border-color: #bcc7d8; }
.button-secondary .lucide { width: 18px; }
.destination-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; min-height: 31px; }
.sync-status { min-width: 0; display: flex; gap: 6px; align-items: center; color: #818792; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.sync-status .lucide { width: 13px; height: 13px; }
.sync-status.ready .lucide { color: var(--teal); }
.sync-status.error { color: #a34436; }
.compact { width: 30px; height: 30px; }
.compact .lucide { width: 14px; height: 14px; }
.auto-row { margin-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 24px; }
.switch-label { cursor: pointer; display: inline-flex; align-items: center; gap: 9px; color: #7e838c; font-size: 11px; position: relative; min-height: 32px; }
.switch-label input { position: absolute; z-index: 1; opacity: 0; width: 33px; height: 20px; margin: 0; cursor: pointer; }
.switch-label input:disabled { cursor: not-allowed; }
.switch-track { width: 31px; height: 18px; flex-shrink: 0; background: #dfe3e9; border-radius: 12px; position: relative; transition: background .15s; }
.switch-track::after { content: ""; position: absolute; left: 3px; top: 3px; height: 12px; width: 12px; background: white; border-radius: 50%; box-shadow: 0 1px 2px #0002; transition: transform .15s; }
.switch-label input:checked + .switch-track { background: var(--blue); }
.switch-label input:checked + .switch-track::after { transform: translateX(13px); }
.switch-label input:focus-visible + .switch-track { outline: 3px solid #b4c8fa; outline-offset: 3px; }
.countdown { font-size: 11px; color: var(--blue); display: flex; align-items: center; gap: 7px; }
.countdown button { padding: 7px 0; color: #6e7886; text-decoration: underline; text-underline-offset: 3px; }
.visual-caption { position: absolute; top: 454px; left: calc(50% + 325px); width: 220px; text-align: center; transform: translateX(-50%); display: grid; gap: 10px; }
.visual-caption span:first-child { font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; color: #949eab; }
.visual-caption span:last-child { font-size: 12px; color: #79838f; }
.notice-band { background: #f8f9fc; border-block: 1px solid var(--line); }
.notice-band summary { min-height: 78px; display: flex; align-items: center; gap: 14px; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.notice-icon { width: 32px; height: 32px; display: grid; place-items: center; color: var(--amber); background: #f5eddf; border-radius: 6px; flex-shrink: 0; }
.notice-icon .lucide { width: 17px; }
.notice-type { color: #7c8089; font-size: 11px; padding-right: 17px; border-right: 1px solid #dfe3ea; flex-shrink: 0; }
.notice-title { font-size: 13px; flex: 1; line-height: 1.6; }
.notice-band time { color: #8e95a1; font-family: monospace; font-size: 11px; }
.notice-chevron { width: 15px; color: #7d8796; transition: transform .18s; }
details[open] .notice-chevron { transform: rotate(180deg); }
.notice-band details > p { margin: 0; padding: 0 48px 26px; font-size: 13px; color: #6b7380; line-height: 1.9; max-width: 800px; overflow-wrap: anywhere; }
.help-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block: 36px; }
.help-grid.no-backups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.help-item { display: flex; gap: 15px; align-items: center; text-align: left; padding: 7px 26px; min-height: 60px; min-width: 0; border-right: 1px solid var(--line); }
.help-item:first-child { padding-left: 0; }
.help-grid.no-backups #homeScreenButton { padding-left: 0; }
.help-item:last-child { border-right: 0; padding-right: 0; }
.help-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0; }
.teal { color: #288a7e; background: #edf6f3; }
.blue { color: #3d6ed5; background: #eef3fd; }
.amber { color: #a07943; background: #f9f3e9; }
.help-item > span:nth-child(2) { min-width: 0; flex: 1; }
.help-item strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.6; }
.help-item small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.help-arrow { width: 15px; color: #a0a8b3; transition: color .15s; }
.help-item:hover strong, .help-item:hover .help-arrow { color: var(--blue); }
.footer { min-height: 72px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #969ca6; font-size: 10px; }
.footer-note { display: flex; align-items: center; gap: 6px; }
.footer-note .lucide { width: 12px; height: 12px; }
.error-box { margin-top: 8px; display: flex; align-items: center; gap: 10px; background: #fff5f2; border: 1px solid #f2dbd4; color: #a54b3b; padding: 12px; border-radius: 6px; font-size: 12px; }
.error-box > div { flex: 1; }
.error-box strong { font-weight: 600; }
.error-box p { margin: 5px 0 0; font-size: 11px; }
.error-box button { color: #a54b3b; padding: 8px; text-decoration: underline; text-underline-offset: 3px; }
dialog { width: min(440px, calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow: auto; border: 1px solid #e2e6ee; border-radius: 8px; padding: 25px 28px 28px; color: var(--ink); box-shadow: 0 24px 100px #111e352b; }
dialog::backdrop { background: #26344759; backdrop-filter: blur(5px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: -8px -12px 12px 0; }
.dialog-kicker { font-family: monospace; font-size: 10px; color: #8390a3; }
dialog h2 { margin: 0 0 10px; font-size: 23px; line-height: 1.45; font-weight: 650; }
.dialog-description { margin: 0 0 23px; font-size: 13px; color: var(--muted); line-height: 1.85; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); background: #f1f3f7; border-radius: 6px; padding: 4px; gap: 3px; }
.tabs button { padding: 10px 2px; min-width: 0; font-size: 12px; border-radius: 4px; color: #717b8a; }
.tabs [aria-selected="true"] { background: white; color: var(--blue); box-shadow: 0 1px 4px #172b4720; font-weight: 600; }
#guidePanel { min-height: 188px; padding-top: 17px; }
#guideSteps { list-style: none; padding: 0; margin: 0; counter-reset: steps; }
#guideSteps li { counter-increment: steps; display: flex; gap: 12px; align-items: baseline; font-size: 12px; line-height: 1.8; margin-bottom: 12px; color: #515d6d; }
#guideSteps li::before { content: counter(steps, decimal-leading-zero); font-family: monospace; color: var(--blue); font-size: 11px; flex-shrink: 0; }
.guide-note { font-size: 11px; line-height: 1.7; color: #8a919d; margin: 0 0 17px; }
.dialog-address { display: flex; align-items: center; gap: 8px; padding: 7px 5px 7px 12px; background: #f7f9fc; border: 1px solid #e8edf4; border-radius: 6px; margin-bottom: 18px; }
.dialog-address > .lucide { color: #8290a4; width: 15px; }
.dialog-address > span { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 11px; font-family: monospace; }
.full-width { width: 100%; }
.route-list { margin-block: 10px 20px; }
.route-option { width: 100%; display: flex; align-items: center; gap: 14px; padding: 17px 0; border-bottom: 1px solid var(--line); text-align: left; }
.route-option > span { flex: 1; min-width: 0; }
.route-option strong { display: block; font-size: 13px; }
.route-option small { display: block; overflow-wrap: anywhere; font-size: 11px; color: var(--muted); margin-top: 5px; }
.route-option > .lucide { color: var(--blue); width: 17px; }
.dialog-footnote { font-size: 11px; color: #8b94a1; margin: 0; }
.confirm-target { display: flex; gap: 12px; align-items: center; padding: 18px; border-block: 1px solid var(--line); margin: 0 0 25px; }
.confirm-target .lucide { color: var(--blue); }
.confirm-target span { font-family: monospace; font-size: 19px; overflow-wrap: anywhere; min-width: 0; }
.cancel-link { display: block; margin: 12px auto -10px; padding: 10px; font-size: 12px; color: var(--muted); }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 13px 20px; border-radius: 6px; background: #25313e; color: #fff; font-size: 13px; max-width: calc(100% - 32px); width: max-content; text-align: center; box-shadow: 0 8px 28px #16263b20; }
.noscript { padding: 20px; text-align: center; color: #a34c3d; background: #fff5f1; }
.skip-link { position: fixed; z-index: 100; top: -100px; left: 16px; padding: 12px; background: white; }
.skip-link:focus { top: 12px; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 1500px) { .hero-inner { min-height: 605px; padding-top: 68px; } .hero { background-position-y: 22px; } .visual-caption { top: 466px; } }
@media (max-width: 1000px) and (min-width: 701px) {
  .container { width: calc(100% - 64px); }
  .hero-copy { width: 480px; }
  .hero { background-position: calc(50% + 330px) 48px; background-size: 550px auto; }
  .visual-caption { display: none; }
  .help-item { padding-inline: 15px; gap: 10px; }
  .help-icon { width: 34px; height: 34px; }
  .help-arrow { display: none; }
}
@media (max-width: 700px) {
  .container { width: calc(100% - 40px); }
  .header { height: 65px; }
  .wordmark { font-size: 20px; }
  .wordmark > .lucide { width: 20px; }
  nav { gap: 18px; font-size: 12px; }
  .nav-contact span { display: none; }
  .nav-contact { padding: 12px 0 12px 6px; }
  .nav-contact .lucide { width: 19px; }
  .preview-mark { font-size: 10px; }
  .hero { background-size: 302px auto; background-position: center -3px; }
  .hero-inner { min-height: 0; padding: 182px 0 25px; }
  .hero-copy { width: 100%; max-width: 460px; margin-inline: auto; }
  .eyebrow { justify-content: center; font-size: 10px; gap: 8px; }
  .eyebrow-line { width: 14px; }
  h1 { font-size: 60px; text-align: center; margin-top: 10px; }
  .hero-subtitle { font-size: 18px; text-align: center; margin: 15px 0 8px; }
  .hero-description { font-size: 12px; text-align: center; margin-bottom: 26px; }
  .address-bar { min-height: 55px; padding-left: 14px; gap: 10px; }
  .portal-address { font-size: 19px; }
  .address-label { font-size: 10px; }
  .primary-actions { gap: 9px; margin-top: 12px; }
  .button { min-height: 51px; font-size: 13px; padding-inline: 14px; gap: 9px; }
  #enterButton { padding-inline: 18px; }
  .auto-row { margin-top: 5px; }
  .visual-caption { display: none; }
  .notice-band summary { min-height: 76px; display: grid; grid-template-columns: 30px 1fr 15px; column-gap: 10px; row-gap: 4px; padding-block: 16px; }
  .notice-icon { grid-column: 1; grid-row: 1 / 3; width: 30px; height: 30px; }
  .notice-type { grid-column: 2; border: 0; font-size: 10px; padding: 0; }
  .notice-title { grid-column: 2; font-size: 12px; }
  .notice-chevron { grid-column: 3; grid-row: 1 / 3; }
  .notice-band time { display: none; }
  .notice-band details > p { padding: 0 0 20px 40px; font-size: 12px; }
  .help-grid { grid-template-columns: 1fr; padding-block: 14px; }
  .help-item, .help-item:first-child, .help-item:last-child { border-right: 0; padding: 15px 0; gap: 13px; min-height: 75px; }
  .help-item + .help-item { border-top: 1px solid #f0f1f4; }
  .help-grid.no-backups .help-item { min-height: 64px; gap: 8px; padding-block: 12px; border-top: 0; }
  .help-grid.no-backups .help-item:last-child { border-left: 1px solid var(--line); padding-left: 11px; }
  .help-grid.no-backups .help-icon { width: 31px; height: 31px; }
  .help-grid.no-backups .help-arrow { display: none; }
  .help-icon { width: 37px; height: 37px; }
  .help-item strong { font-size: 12px; }
  .help-item small { font-size: 10px; }
  .footer { min-height: 85px; flex-wrap: wrap; justify-content: center; gap: 9px 25px; padding-block: 20px; font-size: 10px; }
  #updatedAt { width: 100%; text-align: center; }
  dialog { padding: 23px; }
}
@media (max-width: 359px) {
  .container { width: calc(100% - 32px); }
  nav { gap: 12px; }
  .hero { background-size: 230px auto; }
  .hero-inner { padding-top: 142px; }
  h1 { font-size: 53px; }
  .hero-subtitle { font-size: 16px; }
  .portal-address { font-size: 17px; }
  .auto-row { flex-wrap: wrap; }
  .primary-actions { grid-template-columns: 1.2fr 1fr; }
  .button { padding-inline: 11px; }
}
@media (max-height: 740px) and (max-width: 700px) {
  .hero { background-size: 218px auto; }
  .hero-inner { padding-top: 128px; padding-bottom: 19px; }
  h1 { font-size: 54px; }
  .hero-description { margin-bottom: 21px; }
}
@media (max-height: 620px) and (max-width: 700px) {
  .hero { background-size: 155px auto; }
  .hero-inner { padding-top: 92px; padding-bottom: 15px; }
  h1 { font-size: 48px; }
  .hero-subtitle { margin-top: 10px; font-size: 16px; }
  .hero-description { display: none; }
  .address-label { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
