:root {
  color-scheme: dark;
  --background: #101110;
  --surface: #1b1d1a;
  --input: #121411;
  --text: #f5f6ef;
  --muted: #acb0a5;
  --line: #373a32;
  --accent: #ffed00;
  --success: #9be3a8;
  --error: #ffb7ad;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100dvh; background: var(--background); color: var(--text); font-family: "Segoe UI", system-ui, sans-serif; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.site-header { width: min(1120px, calc(100% - 64px)); margin: 0 auto; min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.brand { display: block; width: 184px; height: auto; }
.product-label { color: var(--muted); font-size: 14px; }
main { width: min(600px, calc(100% - 40px)); margin: auto; padding: 20px 0; }
.intro { margin-bottom: 16px; }
.eyebrow { font-size: 12px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
h1 { font-size: clamp(32px, 5vw, 36px); line-height: 1.08; letter-spacing: -.045em; font-weight: 650; margin: 8px 0; }
.intro > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.consultation { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
h2 { font-size: 18px; font-weight: 650; margin: 0; letter-spacing: -.025em; }
.section-note { color: var(--muted); font-size: 12px; }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
input { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #65695c; border-radius: 8px; background: var(--input); color: var(--text); font: inherit; font-size: 16px; padding: 10px 12px; }
input::placeholder { color: #9a9f90; }
input:focus { border-color: var(--accent); }
.help { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 6px 0 14px; }
button { width: 100%; min-height: 44px; padding: 10px 16px; border: 0; border-radius: 8px; background: var(--accent); color: #171900; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; transition: background .15s; }
button:hover { background: #fff365; }
button:disabled { cursor: wait; opacity: .75; }
.button-arrow { font-size: 22px; font-weight: 400; line-height: 1; }
.feedback { margin: 14px 0 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.feedback.error { color: var(--error); border-color: #8f4e43; }
.result { display: grid; grid-template-columns: minmax(132px, .9fr) minmax(0, 1.3fr); gap: 6px 20px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.result-heading { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
h3 { margin: 0; color: var(--muted); font-size: 14px; font-weight: 500; }
.status { color: var(--success); font-size: 12px; font-weight: 600; }
.status.empty { color: var(--accent); }
.balance { display: flex; align-items: baseline; align-self: center; flex-wrap: wrap; gap: 8px; font-size: clamp(32px, 6vw, 40px); font-weight: 650; letter-spacing: -.045em; margin: 0; overflow-wrap: anywhere; }
.balance-unit { color: var(--accent); font-size: 20px; letter-spacing: -.02em; }
dl { min-width: 0; margin: 0; align-self: center; }
dl > div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 5px 0; font-size: 12px; line-height: 1.5; }
dt { color: var(--muted); }
dd { text-align: right; overflow-wrap: anywhere; margin: 0; font-variant-numeric: tabular-nums; }
.store-call { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.store-call a { color: var(--accent); font-weight: 600; white-space: nowrap; }
.store-call a:hover { text-decoration: underline; text-underline-offset: 3px; }
.store-call.urgent { justify-content: space-between; margin-top: 10px; padding: 12px; border: 1px solid #5c5520; border-radius: 8px; background: #22220f; color: var(--text); }
.store-call.urgent a { padding: 10px 14px; border-radius: 8px; background: var(--accent); color: #171900; font-weight: 700; }
.store-call.urgent a:hover { background: #fff365; text-decoration: none; }
.update-note { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.update-note > span { font-size: 21px; line-height: 1.1; }
.update-note p { font-size: 12px; line-height: 1.5; margin: 0; }
footer { width: min(1120px, calc(100% - 64px)); margin: 0 auto; padding: 14px 0; display: flex; justify-content: space-between; gap: 20px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
footer a:hover { color: var(--accent); }
@media (max-width: 540px) {
  .site-header { width: calc(100% - 40px); min-height: 60px; }
  .brand { width: 156px; }
  .product-label { font-size: 11px; max-width: 90px; text-align: right; line-height: 1.4; }
  main { padding: 16px 0; }
  .consultation { padding: 16px; }
  .section-heading { margin-bottom: 14px; }
  .section-note { max-width: 76px; text-align: right; }
  .result { column-gap: 12px; }
  dl > div { grid-template-columns: 1fr; gap: 0; padding: 3px 0; }
  dd { text-align: left; }
  .store-call { justify-content: flex-start; }
  .store-call.urgent { flex-direction: column; align-items: stretch; gap: 10px; }
  .store-call.urgent a { text-align: center; }
  footer { width: calc(100% - 40px); font-size: 11px; }
}
@media (max-height: 700px) {
  .site-header { min-height: 56px; }
  .brand { width: 156px; }
  main { padding: 12px 0; }
  .intro { margin-bottom: 12px; }
  .eyebrow { display: none; }
  h1 { font-size: 28px; margin: 0 0 6px; }
  .intro > p { font-size: 13px; line-height: 1.4; }
  .consultation { padding: 14px; }
  .section-heading { margin-bottom: 12px; }
  h2 { font-size: 16px; }
  .help { margin: 4px 0 10px; }
  .result { margin-top: 12px; padding-top: 10px; gap: 4px 12px; }
  .balance { font-size: 32px; }
  .update-note { margin-top: 10px; padding-top: 10px; }
  .update-note p { font-size: 11px; line-height: 1.4; }
  footer { padding: 10px 0; }
}
@media (max-width: 360px) and (max-height: 640px) {
  .section-heading { display: none; }
  .site-header { min-height: 48px; }
  main { padding: 8px 0; }
  .consultation { padding: 12px; }
  .help { font-size: 11px; line-height: 1.3; margin: 4px 0 8px; }
  .update-note { margin-top: 8px; padding-top: 8px; }
  .update-note p { line-height: 1.3; }
  footer { padding: 6px 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
