@font-face { font-family: "Geist"; src: url(geist.woff2?v=f1be7a78) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0020-007E; }
@font-face { font-family: "Geist Mono"; src: url(geist-mono.woff2?v=9dbfa305) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0020-007E; }
@font-face { font-family: "Noto Sans SC"; src: url(noto-sans-sc.woff2?v=73104ae2) format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --bg: #F4F7FB;
  --surface: #FFFFFF;
  --line: #DCE3EE;
  --ink: #0E1A2B;
  --muted: #56637A;
  --cobalt: #2F5BEA;
  --cobalt-deep: #2449C8;
  --cobalt-wash: #E8EEFC;
  --night-text: #F4F7FB;
  --night-muted: #A7B3C6;
  --night-accent: #9FB6F7;
  --night-line: #22324A;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --sans: "Geist", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
  --pad: clamp(1.25rem, 5vw, 2.5rem);
  --bar: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.8 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  line-break: strict;
}
h1, h2, h3, p, ol, ul, figure, address { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--cobalt); color: #fff; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
section[id] { scroll-margin-top: var(--bar); }
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.ico { display: inline-block; flex: none; width: 1.125em; height: 1.125em; background: currentColor; mask: var(--icon) center / contain no-repeat; }
.i-gem { --icon: url(icons/gem.svg?v=8da02ee3); }
.i-code { --icon: url(icons/code-xml.svg?v=8d20a43f); }
.i-server { --icon: url(icons/server.svg?v=b46ae359); }
.i-compass { --icon: url(icons/compass.svg?v=1689415a); }
.i-right { --icon: url(icons/arrow-right.svg?v=96e94ecf); }
.i-down { --icon: url(icons/arrow-down.svg?v=d71f65bf); }
.i-out { --icon: url(icons/arrow-up-right.svg?v=0925859e); }
.i-copy { --icon: url(icons/copy.svg?v=fb6709e5); }
.i-check { --icon: url(icons/check.svg?v=d7b81112); }
.i-phone { --icon: url(icons/phone.svg?v=efc8a977); }
.i-pin { --icon: url(icons/map-pin.svg?v=912d86f2); }

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(244 247 251 / .82);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.bar.is-stuck { border-bottom-color: var(--line); }
.bar .wrap { height: var(--bar); display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: 1.0625rem; text-decoration: none; }
.brand .ico { color: var(--cobalt); width: 1.25em; height: 1.25em; }
.bar ul { display: flex; gap: clamp(1.125rem, 3vw, 2.25rem); }
.bar ul a { color: var(--muted); text-decoration: none; font-size: .9375rem; transition: color 150ms ease; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  height: 48px;
  padding: 0 1.375rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 500 .9375rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease;
}
.btn:active { transform: scale(.97); }
.btn .ico { transition: transform 200ms var(--ease-out); }
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }

.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(1rem, 3vw, 2rem); }
.hero .wrap { display: grid; gap: clamp(2.75rem, 6vw, 4.5rem); align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .875rem;
  border-radius: 999px;
  background: var(--cobalt-wash);
  color: var(--cobalt);
  font: 500 .8125rem/1 var(--sans);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.headline { margin-top: 1.75rem; font-size: clamp(2.75rem, 8.4vw, 5.75rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.headline span { display: block; }
.hero h1 { margin-top: clamp(1.5rem, 3vw, 2.25rem); font-size: clamp(1.0625rem, 1.6vw, 1.25rem); font-weight: 600; }
.lead { margin-top: .5rem; max-width: 30em; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.0625rem); text-wrap: pretty; }
.cta { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-media { aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--cobalt-wash); }
.hero-media img { object-position: 50% 30%; }
@media (min-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .hero-media { aspect-ratio: 4 / 5; }
}

.section { padding-block: clamp(5rem, 11vw, 9rem); }
.kicker { display: flex; align-items: baseline; gap: .75rem; font-size: .9375rem; font-weight: 600; color: var(--cobalt); }
.kicker span { font: 500 .8125rem/1 var(--mono); color: var(--muted); }
.ph { display: inline-block; }
.lede { margin-top: 1.5rem; max-width: 22em; font-size: clamp(1.625rem, 3.4vw, 2.75rem); font-weight: 600; line-height: 1.4; letter-spacing: -.01em; text-wrap: balance; }
.sub { margin-top: 1.5rem; max-width: 34em; color: var(--muted); text-wrap: pretty; }

.media { border-radius: 16px; overflow: hidden; background: var(--cobalt-wash); }
.about-media { margin-top: clamp(3rem, 6vw, 4.5rem); aspect-ratio: 4 / 3; }
@media (min-width: 720px) { .about-media { aspect-ratio: 21 / 9; } }
.steps { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: grid; gap: 2rem; }
.steps li { position: relative; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.steps li::before { content: ""; position: absolute; top: -1px; left: 0; width: 2rem; height: 1px; background: var(--cobalt); }
.steps h3 { font-size: 1.125rem; font-weight: 600; }
.steps p { margin-top: .375rem; color: var(--muted); font-size: .9375rem; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; } }

.business { background: var(--surface); border-block: 1px solid var(--line); }
.business-head { display: grid; gap: 1.5rem; align-items: end; }
.business-head .lede { margin-top: 1.25rem; }
.business-head .sub { margin-top: 0; }
@media (min-width: 960px) { .business-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.cards { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; gap: 1rem; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
.card { padding: 8px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg); }
.card .media { aspect-ratio: 3 / 2; border-radius: 12px; }
.card-body { padding: 1.5rem 1rem 1.25rem; }
.tile { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--cobalt-wash); color: var(--cobalt); }
.tile .ico { width: 20px; height: 20px; }
.card h3 { margin-top: 1.25rem; font-size: 1.25rem; font-weight: 600; }
.card p { margin-top: .375rem; color: var(--muted); font-size: .9375rem; text-wrap: pretty; }

.night { background: var(--ink); color: var(--night-text); }
.night .kicker { color: var(--night-accent); }
.night .kicker span, .night .label { color: var(--night-muted); }
.contact .wrap { display: grid; gap: 3rem; }
@media (min-width: 960px) { .contact .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.contact .lede { max-width: 12em; }
.label { font-size: .875rem; }
.phone {
  display: inline-block;
  margin-top: .5rem;
  font: 500 clamp(2.5rem, 10vw, 5rem)/1.1 var(--sans);
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  transition: color 150ms ease;
}
.actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.night .btn-ghost { background: transparent; border-color: var(--night-line); color: var(--night-text); }
.place { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--night-line); }
address { margin-top: .5rem; font-style: normal; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.7; }
.map { display: inline-flex; align-items: center; gap: .25rem; margin-top: .75rem; color: var(--night-accent); font-size: .9375rem; text-decoration: none; text-underline-offset: .3em; }
.map .ico { transition: transform 200ms var(--ease-out); }

.swap { display: grid; }
.swap > .state {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: opacity 200ms ease, filter 200ms ease, transform 200ms var(--ease-out);
}
.swap > .state + .state,
[data-copied] .swap > .state:first-child,
[data-busy] .swap > .state:first-child { opacity: 0; filter: blur(4px); transform: scale(.9); }
[data-copied] .swap > .state + .state,
[data-busy] .swap > .state + .state { opacity: 1; filter: none; transform: none; }
.copy .done { color: var(--night-accent); }

footer { background: var(--ink); color: var(--night-muted); font-size: .875rem; }
footer .foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 2rem; padding-block: 1.75rem calc(1.75rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--night-line); }

@media (hover: hover) and (pointer: fine) {
  .bar ul a:hover { color: var(--ink); }
  .btn-primary:hover { background: var(--cobalt-deep); }
  .btn-ghost:hover { border-color: #C2CDDD; }
  .night .btn-ghost:hover { border-color: #3A4D6B; }
  .btn:hover .i-right { transform: translateX(2px); }
  .btn:hover .i-down { transform: translateY(2px); }
  .phone:hover { color: var(--night-accent); }
  .map:hover { text-decoration: underline; }
  .map:hover .i-out { transform: translate(2px, -2px); }
}

.js .rise { animation: rise 700ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms); }
.js .hero-media { animation: unveil 1100ms var(--ease-in-out) 120ms both; }
.js .hero-media img { animation: settle 1500ms var(--ease-out) 120ms both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes unveil { from { clip-path: inset(100% 0 0 0 round 16px); } to { clip-path: inset(0 0 0 0 round 16px); } }
@keyframes settle { from { transform: scale(1.12); } }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .media[data-reveal] { opacity: 1; transform: none; }
.js .media[data-reveal], .js [data-reveal] .media {
  clip-path: inset(100% 0 0 0 round 16px);
  transition: clip-path 1000ms var(--ease-in-out);
  transition-delay: calc(var(--i, 0) * 70ms + 80ms);
}
.js .media[data-reveal].is-in, .js [data-reveal].is-in .media { clip-path: inset(0 0 0 0 round 16px); }
.js .media[data-reveal] img, .js [data-reveal] .media img {
  transform: scale(1.1);
  transition: transform 1400ms var(--ease-out);
  transition-delay: inherit;
}
.js .media[data-reveal].is-in img, .js [data-reveal].is-in .media img { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise, .js .hero-media { animation: fade 400ms ease both; }
  .js .hero-media img { animation: none; }
  .js [data-reveal] { transform: none; transition: opacity 400ms ease; }
  .js .media[data-reveal], .js [data-reveal] .media { clip-path: none; transition: none; }
  .js .media[data-reveal] { opacity: 0; transition: opacity 400ms ease; }
  .js .media[data-reveal].is-in { opacity: 1; }
  .js .media[data-reveal] img, .js [data-reveal] .media img { transform: none; transition: none; }
  .swap > .state { transform: none; }
}
@keyframes fade { from { opacity: 0; } }

/* ---------- 账号系统与多页面 ---------- */
:root { --danger: #C93A4E; --warn: #D9822B; --ok: #7EE2A8; --bad: #FF9AA8; }
.i-eye { --icon: url(icons/eye.svg?v=349a7432); }
.i-eye-off { --icon: url(icons/eye-off.svg?v=a27e4093); }
.i-user { --icon: url(icons/user-round.svg?v=a90b0e44); }
.i-logout { --icon: url(icons/log-out.svg?v=cbf45488); }
.i-plus { --icon: url(icons/plus.svg?v=a4f7cfd9); }
.i-inbox { --icon: url(icons/inbox.svg?v=69b43126); }
.i-trash { --icon: url(icons/trash-2.svg?v=210cc548); }
.i-shield { --icon: url(icons/shield-check.svg?v=75ba332c); }
.i-doc { --icon: url(icons/file-text.svg?v=e3c95c0e); }
.i-ok { --icon: url(icons/circle-check.svg?v=181dd780); }
.i-alert { --icon: url(icons/circle-alert.svg?v=b9e2558e); }
.i-left { --icon: url(icons/arrow-left.svg?v=59748c7c); }
.i-chevron { --icon: url(icons/chevron-down.svg?v=8b8ec257); }
.i-house { --icon: url(icons/house.svg?v=0033895a); }
.i-clock { --icon: url(icons/clock.svg?v=eae71c61); }

.has-session .guest-only, html:not(.has-session) .user-only { display: none !important; }
.nav-right { display: flex; align-items: center; gap: clamp(1.125rem, 3vw, 2.25rem); }
@media (max-width: 559px) { .bar ul { display: none; } }
.btn-sm { height: 36px; padding: 0 .875rem; gap: .375rem; font-size: .875rem; }
.btn-block { width: 100%; }
.btn:disabled { cursor: not-allowed; opacity: .55; }
.btn[data-busy] { pointer-events: none; }
.btn-danger { background: var(--danger); color: #fff; }
.link { padding: 0; border: 0; background: none; color: var(--cobalt); font: inherit; text-decoration: none; text-underline-offset: .3em; cursor: pointer; }
.link.danger { color: var(--danger); }
.forgot { font-size: .875rem; }
.muted { color: var(--muted); }
.foot nav { display: flex; gap: 1.25rem; }
.foot a { text-decoration: none; text-underline-offset: .3em; }

.spinner { width: 1em; height: 1em; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin 600ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.form { display: grid; gap: .625rem; }
.field { display: grid; gap: .5rem; }
.field > label, .field-head label, .choices legend { font-size: .875rem; font-weight: 500; }
.field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.input {
  width: 100%;
  height: 48px;
  padding: 0 .875rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: 400 1rem/1.5 var(--sans);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
textarea.input { height: auto; min-height: 8rem; padding: .75rem .875rem; resize: vertical; }
.input::placeholder { color: #8592A6; }
.input:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgb(47 91 234 / .15); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgb(201 58 78 / .15); }
.input:read-only { background: var(--bg); color: var(--muted); }
.field-msg { min-height: 1.375rem; font-size: .8125rem; line-height: 1.375rem; color: var(--danger); }
.field-msg.hint { color: var(--muted); }
.counter { font: 400 .8125rem/1 var(--mono); color: var(--muted); }
.form-msg { min-height: 1.5rem; font-size: .875rem; line-height: 1.5rem; color: var(--danger); }

.input-wrap { position: relative; }
.input-wrap .input { padding-right: 3rem; }
.pw-toggle { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; transition: color 150ms ease; }
.pw-toggle .ico { grid-area: 1 / 1; transition: opacity 150ms ease, filter 150ms ease, transform 150ms var(--ease-out); }
.pw-toggle .i-eye-off, .pw-toggle[aria-pressed="true"] .i-eye { opacity: 0; filter: blur(2px); transform: scale(.8); }
.pw-toggle[aria-pressed="true"] .i-eye-off { opacity: 1; filter: none; transform: none; }

.check { display: flex; align-items: flex-start; gap: .625rem; color: var(--muted); font-size: .875rem; line-height: 1.6; cursor: pointer; }
.check input {
  flex: none;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin: .1875rem 0 0;
  border: 1px solid #B8C3D4;
  border-radius: 5px;
  background: var(--surface);
  appearance: none;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.check input::after { content: ""; width: 12px; height: 12px; background: #fff; mask: url(icons/check.svg?v=d7b81112) center / contain no-repeat; opacity: 0; transform: scale(.6); transition: opacity 150ms ease, transform 150ms var(--ease-out); }
.check input:checked { background: var(--cobalt); border-color: var(--cobalt); }
.check input:checked::after { opacity: 1; transform: none; }
.check input[aria-invalid="true"] { border-color: var(--danger); }
.check a { color: var(--cobalt); text-decoration: none; text-underline-offset: .3em; }

.meter { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 3.5em; align-items: center; gap: 4px; }
.meter i { height: 4px; border-radius: 2px; background: var(--line); transition: background-color 200ms ease; }
.meter span { padding-left: .5rem; color: var(--muted); font-size: .8125rem; }
.meter[data-score="1"] i:nth-child(-n+1) { background: var(--danger); }
.meter[data-score="2"] i:nth-child(-n+2) { background: var(--warn); }
.meter[data-score="3"] i:nth-child(-n+3), .meter[data-score="4"] i { background: var(--cobalt); }

.note { margin-top: 1rem; padding: .875rem 1rem; border-radius: 10px; background: var(--cobalt-wash); font-size: .875rem; }
.note a { color: var(--cobalt); }

.auth-shell { min-height: 100svh; display: grid; }
.auth-aside { display: none; position: relative; overflow: hidden; background: var(--ink); color: var(--night-text); }
.auth-aside img { position: absolute; inset: 0; opacity: .6; }
.auth-aside::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(14 26 43 / .92), rgb(14 26 43 / .1) 65%); }
.auth-aside-text { position: absolute; z-index: 1; inset: auto clamp(2rem, 4vw, 3.5rem) clamp(2rem, 4vw, 3.5rem); }
.auth-aside-text p:first-child { font-size: clamp(2rem, 3vw, 2.75rem); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.auth-aside-text p + p { margin-top: .75rem; color: var(--night-muted); }
@media (min-width: 960px) {
  .auth-shell { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .auth-aside { display: block; }
}
.auth-main { display: flex; flex-direction: column; padding-inline: var(--pad); }
.auth-top { height: var(--bar); display: flex; align-items: center; justify-content: space-between; }
.back { display: inline-flex; align-items: center; gap: .375rem; color: var(--muted); font-size: .875rem; text-decoration: none; transition: color 150ms ease; }
.back .ico { transition: transform 200ms var(--ease-out); }
.auth-card { width: 100%; max-width: 400px; margin: auto; padding-block: 2rem 3rem; }
.auth-card h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 700; letter-spacing: -.02em; }
.auth-card .switch { margin-top: .5rem; color: var(--muted); font-size: .9375rem; }
.auth-card .switch a { color: var(--cobalt); text-decoration: none; text-underline-offset: .3em; }
.auth-card .form { margin-top: 2rem; }
.auth-card .check { margin-block: .25rem 1rem; }
.auth-card .check:has(+ .field-msg) { margin-bottom: -.375rem; }
.auth-foot { padding-block: 1.5rem calc(1.5rem + env(safe-area-inset-bottom)); color: var(--muted); font-size: .8125rem; text-align: center; }
.auth-foot a { color: inherit; text-underline-offset: .3em; }
.shake { animation: shake 360ms var(--ease-out); }
@keyframes shake { 20% { transform: translateX(-6px); } 45% { transform: translateX(5px); } 70% { transform: translateX(-3px); } }

.menu { position: relative; }
.menu-btn { display: inline-flex; align-items: center; gap: .5rem; height: 40px; padding: 0 .625rem 0 .25rem; border: 1px solid transparent; border-radius: 999px; background: none; color: var(--ink); font: 500 .9375rem/1 var(--sans); cursor: pointer; transition: background-color 150ms ease, border-color 150ms ease, transform 160ms var(--ease-out); }
.menu-btn:active { transform: scale(.97); }
.menu-btn[aria-expanded="true"] { background: var(--surface); border-color: var(--line); }
.menu-btn .i-chevron { color: var(--muted); transition: transform 200ms var(--ease-out); }
.menu-btn[aria-expanded="true"] .i-chevron { transform: rotate(180deg); }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--cobalt); color: #fff; font-size: .875rem; font-weight: 600; }
.menu-name { max-width: 8em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 479px) { .menu-name { display: none; } }
.menu-pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 184px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 16px 40px -16px rgb(14 26 43 / .3);
  transform-origin: top right;
  opacity: 0;
  transform: scale(.96);
  visibility: hidden;
  transition: opacity 120ms ease, transform 120ms var(--ease-out), visibility 0s 120ms;
}
.menu-pop[data-open] { opacity: 1; transform: none; visibility: visible; transition: opacity 160ms ease, transform 160ms var(--ease-out), visibility 0s; }
.menu-pop a, .menu-pop button { display: flex; align-items: center; gap: .625rem; width: 100%; height: 40px; padding: 0 .75rem; border: 0; border-radius: 8px; background: none; color: var(--ink); font: 400 .9375rem/1 var(--sans); text-decoration: none; cursor: pointer; }
.menu-pop a:focus-visible, .menu-pop button:focus-visible { outline-offset: -2px; }
.menu-pop .ico { color: var(--muted); }
.menu-sep { height: 1px; margin: 6px 0; background: var(--line); }

.console { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(4rem, 8vw, 6rem); }
.greet { color: var(--muted); font-size: .9375rem; }
.console-title { margin-top: .25rem; font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; letter-spacing: -.02em; overflow-wrap: anywhere; }

.tabs { position: relative; display: inline-grid; margin-top: 1.75rem; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.tabs-list { grid-area: 1 / 1; display: flex; }
.tabs-list > * { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 1.125rem; border-radius: 999px; color: var(--muted); font-size: .9375rem; font-weight: 500; text-decoration: none; white-space: nowrap; transition: color 150ms ease; }
.tabs-list a:focus-visible { z-index: 2; }
.tabs-active { z-index: 1; border-radius: 999px; background: var(--cobalt); pointer-events: none; clip-path: inset(0 100% 0 0 round 999px); }
.tabs-active[data-ready] { transition: clip-path 250ms var(--ease-out); }
.tabs-active > * { color: #fff; }
@media (max-width: 559px) {
  .tabs { display: grid; width: 100%; }
  .tabs-list > * { flex: 1; padding: 0 .5rem; }
}

.panel { margin-top: 2rem; }
.js .panel:not([hidden]) { animation: fade 200ms ease; }
.box { padding: clamp(1.25rem, 3vw, 1.75rem); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.box h2 { font-size: 1.125rem; font-weight: 600; }
.box h2 + p { margin-top: .25rem; color: var(--muted); font-size: .875rem; }
.box .form { margin-top: 1.25rem; }
.grid-3 { display: grid; gap: 1rem; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stat-label { color: var(--muted); font-size: .875rem; }
.stat-value { margin-top: .375rem; font-size: 1.75rem; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-foot { margin-top: .375rem; color: var(--muted); font-size: .8125rem; }
.stat-foot .link { font-size: .875rem; }
.banner { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; padding: clamp(1.5rem, 3vw, 2rem); border-radius: 16px; background: var(--ink); color: var(--night-text); }
.banner h2 { font-size: 1.25rem; font-weight: 600; }
.banner p { margin-top: .25rem; color: var(--night-muted); font-size: .9375rem; }
.banner .actions { margin-top: 0; }

.panel-grid { display: grid; gap: 1rem; align-items: start; }
@media (min-width: 960px) { .panel-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.choices { display: flex; flex-wrap: wrap; gap: .5rem; min-width: 0; margin: 0 0 1.375rem; padding: 0; border: 0; }
.choices legend { margin-bottom: .5rem; padding: 0; }
.choices label { position: relative; }
.choices input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.choices span { display: inline-flex; align-items: center; height: 36px; padding: 0 .875rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .875rem; transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease; }
.choices input:checked + span { border-color: var(--cobalt); background: var(--cobalt-wash); color: var(--cobalt); }
.choices input:focus-visible + span { outline: 2px solid var(--cobalt); outline-offset: 2px; }

.list-head { display: flex; align-items: center; gap: .5rem; }
.count-pill { min-width: 1.5rem; height: 1.5rem; padding: 0 .5rem; border-radius: 999px; background: var(--cobalt-wash); color: var(--cobalt); font: 500 .8125rem/1.5rem var(--mono); text-align: center; }
.reqs { margin-top: 1rem; display: grid; gap: .75rem; }
.req { padding: 1.125rem 1.25rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); transition: opacity 250ms ease, transform 250ms var(--ease-out); }
@starting-style { .req.is-new { opacity: 0; transform: translateY(-6px); } }
.req[data-leaving] { opacity: 0; transform: scale(.98); transition-duration: 180ms; }
.req-head { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .8125rem; }
.req-type { color: var(--cobalt); font-weight: 500; }
.req h3 { margin-top: .375rem; font-size: 1rem; font-weight: 600; overflow-wrap: anywhere; }
.req-detail { margin-top: .25rem; color: var(--muted); font-size: .875rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.req-foot { margin-top: .75rem; display: flex; align-items: center; justify-content: space-between; font-size: .8125rem; }
.status { display: inline-flex; align-items: center; gap: .375rem; color: var(--muted); }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }
.empty { margin-top: 1rem; padding: 2.5rem 1rem; border: 1px dashed #C9D3E1; border-radius: 12px; color: var(--muted); font-size: .875rem; text-align: center; }
.empty .ico { display: block; width: 28px; height: 28px; margin: 0 auto .625rem; color: #A9B4C5; }

.settings { display: grid; gap: 1rem; align-items: start; }
@media (min-width: 960px) { .settings { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.box .actions { margin-top: 1.25rem; }
.danger-zone { border-color: #EFC6CD; }

.hold {
  position: relative;
  display: inline-grid;
  height: 48px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #E3A9B3;
  border-radius: 999px;
  background: var(--surface);
  color: var(--danger);
  font: 500 .9375rem/1 var(--sans);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
  transition: transform 160ms var(--ease-out);
}
.hold > span { grid-area: 1 / 1; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: 0 1.375rem; }
.hold-fill { background: var(--danger); color: #fff; clip-path: inset(0 100% 0 0); transition: clip-path 200ms var(--ease-out); }
.hold.is-holding { transform: scale(.97); }
.hold.is-holding .hold-fill { clip-path: inset(0); transition: clip-path 2s linear; }

.toaster { position: fixed; z-index: 50; left: 50%; bottom: calc(1.25rem + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: .5rem; width: max-content; max-width: calc(100vw - 2rem); transform: translateX(-50%); pointer-events: none; }
.toast { display: flex; align-items: center; gap: .625rem; padding: .75rem 1.125rem .75rem .875rem; border-radius: 12px; background: var(--ink); color: var(--night-text); font-size: .9375rem; box-shadow: 0 16px 40px -16px rgb(14 26 43 / .5); transition: opacity 300ms ease, transform 400ms var(--ease-out); }
@starting-style { .toast { opacity: 0; transform: translateY(100%); } }
.toast[data-leaving] { opacity: 0; transform: translateY(100%); transition-duration: 200ms; }
.toast .i-ok { color: var(--ok); }
.toast .i-alert { color: var(--bad); }

.doc { max-width: 760px; padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(4rem, 9vw, 7rem); }
.doc h1 { font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 700; letter-spacing: -.02em; }
.doc .meta { margin-top: .75rem; color: var(--muted); font-size: .875rem; }
.doc h2 { margin-top: 2.75rem; font-size: 1.25rem; font-weight: 600; }
.doc p, .doc li { margin-top: .75rem; color: #2E3B4F; text-wrap: pretty; }
.doc ul { padding-left: 1.25rem; list-style: disc; }
.doc li::marker { color: var(--cobalt); }
.doc a { color: var(--cobalt); text-underline-offset: .3em; }

@media (hover: hover) and (pointer: fine) {
  .link:hover, .foot a:hover, .auth-card .switch a:hover, .check a:hover { text-decoration: underline; }
  .btn-danger:hover { background: #B0303F; }
  .pw-toggle:hover, .back:hover { color: var(--ink); }
  .back:hover .i-left { transform: translateX(-2px); }
  .menu-btn:hover { background: var(--surface); border-color: var(--line); }
  .menu-pop a:hover, .menu-pop button:hover { background: var(--bg); }
  .tabs-list a:hover { color: var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  .shake { animation: none; }
  .tabs-active[data-ready] { transition: none; }
  .menu-pop, .menu-pop[data-open] { transform: none; }
  .req, .req[data-leaving], .toast, .toast[data-leaving] { transform: none; }
  @starting-style { .req.is-new, .toast { transform: none; } }
  .spinner { animation-duration: 1.2s; }
}
