:root {
  color-scheme: dark;
  --bg: #07080c;
  --panel: #0e1118;
  --panel-2: #121722;
  --line: #252b39;
  --text: #f4f6ff;
  --muted: #9aa4ba;
  --cyan: #55d7f2;
  --violet: #a98cff;
  --green: #63dfa0;
  --amber: #f0c66b;
  --red: #ff7f93;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-width: 320px; color: var(--text); background: var(--bg); }
button, input { font: inherit; }
a { color: inherit; }

.backdrop {
  position: fixed; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 15% 10%, rgba(85, 215, 242, .09), transparent 28rem),
    radial-gradient(circle at 85% 25%, rgba(169, 140, 255, .09), transparent 30rem);
}

.shell { position: relative; width: min(1160px, calc(100% - 36px)); margin: 0 auto; padding: 24px 0 48px; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 0 0 24px; border-bottom: 1px solid var(--line); }
.back-link { text-decoration: none; color: var(--muted); font-weight: 700; }
.back-link:hover { color: var(--text); }
.status-pill { display: flex; gap: 9px; align-items: center; padding: 9px 14px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 14px currentColor; }
.status-pill[data-tone="ready"] .dot { color: var(--green); background: var(--green); }
.status-pill[data-tone="warn"] .dot { color: var(--amber); background: var(--amber); }
.status-pill[data-tone="stop"] .dot { color: var(--red); background: var(--red); }

.hero { padding: 64px 4px 30px; }
.eyebrow { margin: 0 0 12px; color: var(--cyan); font-size: 12px; font-weight: 900; letter-spacing: .18em; }
.hero h1 { margin: 0; font-size: clamp(46px, 8vw, 88px); line-height: .98; letter-spacing: -.055em; }
.hero h1 span { background: linear-gradient(90deg, var(--violet), var(--cyan)); background-clip: text; color: transparent; }
.hero > p:last-child { max-width: 760px; margin: 25px 0 0; color: var(--muted); font-size: 17px; line-height: 1.75; }

.notice { margin: 12px 0 22px; padding: 20px 22px; border: 1px solid rgba(240, 198, 107, .34); border-radius: 18px; background: rgba(80, 58, 20, .18); }
.notice strong { color: var(--amber); font-size: 18px; }
.notice p { margin: 8px 0 0; color: #d8cfb8; line-height: 1.65; }
.notice b { color: var(--text); letter-spacing: .04em; }

.booking-card, .records { margin-top: 18px; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(150deg, rgba(18, 23, 34, .98), rgba(11, 14, 21, .98)); box-shadow: 0 20px 70px rgba(0, 0, 0, .2); }
.section-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.section-head > span { display: grid; place-items: center; min-width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 11px; font-weight: 900; }
.section-head h2, .records h2 { margin: 0; font-size: 24px; }
.section-head p { margin: 7px 0 0; color: var(--muted); line-height: 1.55; }
form { display: grid; gap: 10px; }
label { font-weight: 750; }
input[type="email"], input[type="text"] { width: 100%; border: 1px solid var(--line); border-radius: 13px; padding: 14px 15px; color: var(--text); background: #090c12; outline: none; }
input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(85, 215, 242, .11); }
small { color: var(--muted); line-height: 1.5; }
.field-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
button { border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; color: var(--text); background: #171c29; font-weight: 850; cursor: pointer; }
button:hover:not(:disabled) { border-color: var(--cyan); }
button:disabled { cursor: not-allowed; opacity: .45; }
.primary { width: 100%; margin-top: 16px; padding: 15px; background: linear-gradient(100deg, #7761e7, #228aa2); }
.result { min-height: 24px; margin: 6px 0 0; color: var(--muted); }
.result[data-tone="ok"] { color: var(--green); }
.result[data-tone="error"] { color: var(--red); }
.result[data-tone="warn"] { color: var(--amber); }
.cdk-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.cdk-summary > div { padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: #0a0d14; }
.cdk-summary span { display: block; color: var(--muted); font-size: 13px; }
.cdk-summary strong { display: block; margin-top: 6px; font-size: 22px; }

.slot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.slot-option { display: block; position: relative; }
.slot-option input { position: absolute; opacity: 0; pointer-events: none; }
.slot-option span { display: block; min-height: 76px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #0a0d14; }
.slot-option strong { display: block; }
.slot-option small { display: block; margin-top: 6px; }
.slot-option input:checked + span { border-color: var(--cyan); background: rgba(31, 109, 128, .18); box-shadow: inset 0 0 0 1px var(--cyan); }
.slot-option input:disabled + span { opacity: .42; }
.confirm-line { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; color: #d8dfef; }
.confirm-line input { margin-top: 4px; accent-color: var(--cyan); }

.records-head { display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.records-head .eyebrow { margin-bottom: 7px; }
.delivery-mode { color: var(--muted); }
.booking-list { display: grid; gap: 12px; margin-top: 18px; }
.booking-item { display: grid; grid-template-columns: 1.6fr 1fr auto; gap: 18px; align-items: center; padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: #090c12; }
.booking-item h3 { margin: 0 0 8px; font-size: 16px; }
.booking-item p, .booking-item small { margin: 3px 0; color: var(--muted); }
.state { display: inline-flex; padding: 6px 10px; border-radius: 99px; background: #202637; color: #cbd4e8; white-space: nowrap; }
.state[data-tone="ok"] { color: var(--green); background: rgba(35, 117, 77, .2); }
.state[data-tone="warn"] { color: var(--amber); background: rgba(134, 96, 33, .2); }
.state[data-tone="error"] { color: var(--red); background: rgba(140, 48, 68, .2); }
.warranty { padding: 8px 11px; font-size: 13px; }
.empty { color: var(--muted); }

footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 30px; padding: 22px 4px 0; border-top: 1px solid var(--line); color: var(--muted); }
footer a { color: var(--cyan); text-decoration: none; }

@media (max-width: 760px) {
  .shell { width: min(100% - 22px, 1160px); padding-top: 14px; }
  .hero { padding-top: 42px; }
  .booking-card, .records { padding: 19px; border-radius: 18px; }
  .field-row, .cdk-summary, .booking-item { grid-template-columns: 1fr; }
  .slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .booking-item { gap: 9px; }
}

@media (max-width: 460px) {
  .topbar, footer { align-items: flex-start; flex-direction: column; }
  .slot-grid { grid-template-columns: 1fr; }
}
