:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  background: #f4f7fb;
  color: #172033;
  --brand: #0b5cff;
  --brand-dark: #0648c8;
  --ink: #172033;
  --muted: #6c778d;
  --line: #dfe5ef;
  --card: #ffffff;
  --soft: #eef4ff;
  --danger: #c73535;
  --success: #0c8a55;
  --shadow: 0 10px 34px rgba(26, 43, 77, .08);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #f4f7fb; }
body { min-width: 320px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.boot { min-height: 100vh; display: grid; place-items: center; color: var(--muted); font-weight: 700; }
.shell { min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.topbar-inner { max-width: 1360px; margin: 0 auto; min-height: 68px; padding: 0 24px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 11px; min-width: max-content; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(145deg, #0b5cff, #143f9b); color: white; font-weight: 900; letter-spacing: -.5px; }
.brand-text b { display: block; font-size: 18px; line-height: 1.05; }
.brand-text span { color: var(--muted); font-size: 12px; }
.nav { margin-left: 30px; display: flex; gap: 6px; flex: 1; }
.nav button { border: 0; background: transparent; color: #536077; padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.nav button.active { background: var(--soft); color: var(--brand); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.secondary, .ghost, .danger-btn, .primary { border-radius: 11px; min-height: 42px; padding: 0 16px; font-weight: 800; border: 1px solid transparent; }
.primary { background: var(--brand); color: white; }
.primary:hover { background: var(--brand-dark); }
.primary:disabled { opacity: .55; cursor: default; }
.secondary { background: white; border-color: var(--line); color: var(--ink); }
.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.danger-btn { background: #fff4f4; border-color: #f2cccc; color: var(--danger); }
.main { max-width: 1360px; margin: 0 auto; padding: 26px 24px 64px; }
.hero { margin-bottom: 20px; display: flex; justify-content: space-between; gap: 24px; align-items: end; }
.hero h1 { margin: 0 0 6px; font-size: clamp(25px, 3vw, 36px); line-height: 1.15; }
.hero p { margin: 0; color: var(--muted); }
.layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(330px, .8fr); gap: 22px; align-items: start; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.card-pad { padding: 24px; }
.card-title { font-size: 19px; font-weight: 900; margin: 0 0 4px; }
.card-sub { color: var(--muted); font-size: 13px; margin: 0 0 20px; }
.section { padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--line); }
.section:first-of-type { margin-top: 0; padding-top: 0; border: 0; }
.section-title { margin: 0 0 14px; font-size: 15px; font-weight: 900; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
label { font-size: 13px; font-weight: 800; color: #39465d; }
.req::after { content: " *"; color: #d33; }
input, select, textarea {
  width: 100%; border: 1px solid #cfd7e5; border-radius: 11px; background: white; color: var(--ink);
  min-height: 46px; padding: 10px 12px; outline: none; transition: border .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 92px; }
input:focus, select:focus, textarea:focus { border-color: #77a4ff; box-shadow: 0 0 0 3px rgba(11,92,255,.10); }
.hint { color: var(--muted); font-size: 12px; }
.segment { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: #f2f5fa; border-radius: 12px; padding: 4px; }
.segment button { min-height: 42px; border: 0; border-radius: 9px; background: transparent; color: #59667d; font-weight: 800; }
.segment button.active { background: white; color: var(--brand); box-shadow: 0 2px 8px rgba(30,55,100,.08); }
.submit-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
.privacy-note { color: var(--muted); font-size: 12px; max-width: 480px; }
.summary { position: sticky; top: 92px; }
.route { padding: 16px; border-radius: 14px; background: #f7f9fd; border: 1px solid #e3e9f3; }
.route-line { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.route-dot { width: 10px; height: 10px; border-radius: 50%; margin: 5px auto 0; background: var(--brand); }
.route-dot.end { background: #19a974; }
.route-path { width: 2px; height: 24px; background: #ccd6e7; margin: 2px auto; }
.route-label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.route-value { font-weight: 850; word-break: break-word; min-height: 21px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.stat { padding: 12px 10px; border-radius: 12px; background: #f8fafc; border: 1px solid #e8edf4; }
.stat span { display: block; color: var(--muted); font-size: 11px; }
.stat b { display: block; margin-top: 4px; font-size: 14px; }
.price-box { margin-top: 12px; padding: 14px; border-radius: 14px; background: #eef5ff; border: 1px solid #d7e7ff; }
.price-box span { color: #49617f; font-size: 12px; }
.price-box b { display: block; font-size: 25px; color: #0a4cd6; margin-top: 3px; }
.notice { padding: 11px 13px; border-radius: 11px; font-size: 13px; margin: 12px 0; display: none; }
.notice.show { display: block; }
.notice.error { background: #fff1f1; color: #9b2929; border: 1px solid #f1c5c5; }
.notice.ok { background: #edfbf4; color: #08764a; border: 1px solid #bce9d1; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.2fr .8fr; }
.login-visual { padding: 64px; background: radial-gradient(circle at 20% 20%, #357cff 0, #0a46c2 38%, #082f7b 100%); color: white; display: flex; flex-direction: column; justify-content: center; }
.login-visual h1 { margin: 0 0 18px; max-width: 760px; font-size: clamp(34px, 5vw, 64px); line-height: 1.03; }
.login-visual p { max-width: 680px; margin: 0; font-size: 18px; line-height: 1.7; color: rgba(255,255,255,.82); }
.login-points { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.login-points span { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 9px 13px; font-size: 13px; }
.login-side { padding: 28px; display: grid; place-items: center; background: #f7f9fc; }
.login-card { width: min(440px, 100%); background: white; border: 1px solid var(--line); border-radius: 22px; padding: 30px; box-shadow: var(--shadow); }
.login-card h2 { margin: 0 0 8px; font-size: 26px; }
.login-card > p { margin: 0 0 22px; color: var(--muted); line-height: 1.6; }
.login-actions { display: grid; gap: 10px; margin-top: 14px; }
.login-actions .primary { width: 100%; min-height: 48px; }
.otp-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.list-wrap { display: none; }
.list-wrap.active { display: block; }
.request-list { display: grid; gap: 12px; }
.request-item { background: white; border: 1px solid var(--line); border-radius: 15px; padding: 16px; box-shadow: 0 5px 20px rgba(30,50,85,.05); }
.request-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.request-no { font-weight: 900; }
.request-date { color: var(--muted); font-size: 12px; margin-top: 4px; }
.status { display: inline-flex; align-items: center; min-height: 28px; padding: 0 9px; border-radius: 999px; background: #edf3ff; color: #2255b2; font-size: 12px; font-weight: 900; white-space: nowrap; }
.request-route { font-weight: 850; margin-top: 12px; }
.request-meta { display: flex; flex-wrap: wrap; gap: 7px 13px; color: #637086; font-size: 13px; margin-top: 9px; }
.request-actions { margin-top: 12px; display: flex; gap: 8px; }
.empty { padding: 42px 20px; text-align: center; color: var(--muted); background: white; border: 1px dashed #cad3e1; border-radius: 16px; }
.account-chip { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; }
.mobile-tabs { display: none; }
.install { display: none; }
.install.show { display: inline-flex; }
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .login-shell { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-side { min-height: 100vh; }
  .nav { margin-left: 8px; }
  .account-chip { display: none; }
}
@media (max-width: 720px) {
  .topbar-inner { padding: 0 14px; min-height: 62px; }
  .brand-text span { display: none; }
  .nav { display: none; }
  .main { padding: 16px 12px 100px; }
  .hero { align-items: start; }
  .hero h1 { font-size: 25px; }
  .hero p { font-size: 13px; }
  .card { border-radius: 15px; }
  .card-pad { padding: 16px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 12px; }
  .field.full { grid-column: auto; }
  input, select, textarea { font-size: 16px; min-height: 50px; }
  .segment button { min-height: 46px; }
  .submit-row { position: sticky; bottom: 0; z-index: 20; margin: 22px -16px -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); backdrop-filter: blur(10px); }
  .submit-row .privacy-note { display: none; }
  .submit-row .primary { width: 100%; min-height: 52px; font-size: 16px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .mobile-tabs { display: grid; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; grid-template-columns: 1fr 1fr; background: rgba(255,255,255,.98); border-top: 1px solid var(--line); padding: 7px 10px calc(7px + env(safe-area-inset-bottom)); }
  .mobile-tabs button { border: 0; background: transparent; min-height: 46px; border-radius: 10px; color: #68758a; font-weight: 850; }
  .mobile-tabs button.active { color: var(--brand); background: var(--soft); }
  .top-actions .secondary { padding: 0 10px; }
  .login-side { padding: 16px; }
  .login-card { padding: 22px 18px; border-radius: 18px; }
  .otp-row { grid-template-columns: 1fr; }
}
