/* Account surfaces share the existing rocket hall's blueprint and paper palette. */
[hidden] { display: none !important; }
.appbar { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; gap: 16px; min-height: 76px; padding: 12px max(24px, calc((100vw - 1540px) / 2)); background: var(--bp-deep); border-bottom: 1px solid var(--bp-line-2); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--chalk); text-decoration: none; font: 26px var(--f-display); white-space: nowrap; }
.brand img { width: 40px; height: 40px; }
.appbar small { font: 13px var(--f-body); color: var(--chalk-dim); }
.appbar .spacer { flex: 1; }
.appbar button, .action, .subtle, .modal button, .link-button { font: inherit; cursor: pointer; min-height: 44px; border-radius: 8px; padding: 10px 18px; }
.appbar button, .subtle { border: 1px solid var(--bp-line-3); color: var(--chalk); background: transparent; }
.appbar .primary, .action { color: #fff; background: var(--signal); border: 1px solid var(--signal); font-weight: 600; }
button:disabled { cursor: not-allowed; opacity: .55; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--signal-2); outline-offset: 3px; }
.trial-status { font: 13px var(--f-mono); color: var(--chalk-dim); }
.preview-note { padding: 7px 24px; text-align: center; color: var(--signal-2); background: var(--bp-deep); font-size: 12px; border-bottom: 1px solid var(--bp-line); }
.welcome { max-width: 1340px; margin: auto; padding: clamp(36px, 6vh, 80px) 48px 40px; }
.welcome-layout { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 64px; }
.welcome h1 { font: 400 clamp(46px, 5vw, 76px)/1.2 var(--f-display); margin: 10px 0 28px; }
.welcome .lead { color: var(--chalk-dim); max-width: 32em; font-size: 18px; line-height: 1.85; margin-bottom: 28px; }
.welcome-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 18px; }
.welcome-actions button { min-height: 52px; font-size: 18px; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.65; color: var(--chalk-dim); }
.consent input { margin: 5px 0 0; width: 18px; height: 18px; flex: none; accent-color: var(--signal); }
.text-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.small-note { font-size: 13px; line-height: 1.7; color: var(--chalk-dim); }
.welcome-art { min-height: 430px; position: relative; border: 1px solid var(--bp-line-2); background: var(--bp-sheet); background-image: linear-gradient(var(--bp-line) 1px, transparent 1px), linear-gradient(90deg,var(--bp-line) 1px,transparent 1px); background-size: 24px 24px; }
.welcome-art svg { width: 100%; height: 420px; display: block; }
.art-caption { padding: 16px 22px; border-top: 1px solid var(--bp-line-2); color: var(--chalk-dim); font-size: 14px; }
.learning-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 38px; margin-top: 60px; padding-top: 28px; border-top: 1px solid var(--bp-line-2); }
.learning-strip strong { display: block; font-size: 18px; margin-bottom: 10px; }
.learning-strip p { margin: 0; color: var(--chalk-dim); font-size: 14px; line-height: 1.75; }
.entry-error { color: #ffc6cb; line-height: 1.6; min-height: 24px; }
.commercial .wrap { display: block; max-width: 1600px; padding: 24px 28px 60px; }
#workspace { scroll-margin-top: 96px; }
.commercial .wrap > header { margin: 0 0 18px; }
.commercial .wrap > header h1 { font-size: 20px; }
.commercial .hall { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 28px; align-items: start; }
.commercial .hall-left, .commercial .hall-right { grid-area: auto; min-width: 0; }
.commercial .exhibit > *, .commercial .ex-catalog, .commercial .ex-stage, .commercial .hall-right { animation: none; }
.commercial .hall-right { position: sticky; top: 94px; max-height: calc(100dvh - 115px); overflow: auto; margin: 0; padding: 16px; }
.commercial .hall-right .avatar svg { width: 132px; height: 165px; }
.commercial .hall-right .talk { width: 104px; height: 104px; font-size: 18px; margin: 18px auto; }
.commercial .hall-right .panel .content { font-size: 15px; }
.commercial .hall-right .cardbox { position: static; margin: 18px 0 0; gap: 8px; }
.commercial .hall-right .cards { flex-direction: row; }
.commercial .hall-right .card-btn { width: 50px; height: 64px; font-size: 14px; }
.commercial .hall-right .card-tip { width: auto; font-size: 11px; }
.commercial .ex-stage { top: 94px; }
.commercial .typed input { width: 0; min-width: 0; }
.commercial .ex-tabs { flex-wrap: wrap; border-radius: 12px; }
.commercial #exhibit button, .commercial #exhibit select { min-height: 44px; }
.commercial footer a { color: var(--chalk-dim); }
.guide-close, #guideToggle { display: none; }
.guide-backdrop { position: fixed; inset: 76px 0 0; background: #081d3a99; z-index: 29; }
.ai-note { font-size: 12px; line-height: 1.6; color: #5d6b80; border-top: 1px solid #cbd5e1; padding-top: 10px; }
.voice-option { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--graphite); font-size: 13px; margin: 12px 0; }
.modal { color: var(--graphite); background: var(--paper); border: 1px solid var(--bp-line-3); border-radius: 16px; padding: 30px; width: min(480px, calc(100vw - 48px)); max-height: calc(100dvh - 64px); overflow: auto; box-shadow: 0 24px 100px #0005; }
.modal::backdrop { background: #081d3abb; }
.modal.wide { width: min(860px, calc(100vw - 48px)); }
.modal-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.modal h2 { font: 32px var(--f-display); margin: 0; }
.modal h3 { font-size: 18px; margin: 26px 0 12px; }
.modal p { font-size: 14px; line-height: 1.75; }
.modal button { border: 1px solid #b6c3d4; color: var(--graphite); background: #fff; }
.modal button.action { color: #fff; background: var(--signal); border-color: var(--signal); }
.modal .close { font-size: 22px; padding: 4px 12px; flex: none; }
.modal label.field { display: block; font-size: 14px; font-weight: 600; margin: 18px 0 8px; }
.modal input:not([type=checkbox]) { font: 17px var(--f-body); border: 1px solid #b6c3d4; border-radius: 8px; background: #fff; color: var(--graphite); padding: 12px; width: 100%; min-height: 48px; }
.modal .consent { color: #5d6b80; margin: 20px 0; }
.form-row { display: flex; gap: 10px; }
.form-row > input { min-width: 0; flex: 1; }
.form-row button { flex: none; }
.full { width: 100%; }
.form-message { min-height: 22px; font-size: 14px; line-height: 1.6; margin-top: 12px; color: #b42335; }
.form-message.good { color: #116d4d; }
.test-code { background: #eaf3ff; border: 1px solid #b4cbe8; padding: 12px; border-radius: 8px; font-size: 15px; }
.account-tabs { display: flex; gap: 8px; border-bottom: 1px solid #cbd5e1; padding-bottom: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.account-tabs [aria-selected=true] { color: #fff; background: var(--bp-sheet); border-color: var(--bp-sheet); }
.balance-panel { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px; background: var(--bp-sheet); color: var(--chalk); border-radius: 10px; }
.balance-panel strong { display: block; font: 40px var(--f-mono); margin-top: 10px; }
.balance-panel small { display: block; color: var(--chalk-dim); margin-top: 8px; }
.credit-options { display: flex; gap: 10px; margin: 16px 0; }
.credit-options button { flex: 1; font: 20px var(--f-mono); }
.credit-options button[aria-pressed=true] { border: 2px solid var(--signal); background: #fff4ed; }
.payments { display: flex; gap: 10px; flex-wrap: wrap; }
.payments button { flex: 1; min-width: 150px; text-align: left; }
.payments small { display: block; color: #667085; font-size: 12px; margin-top: 4px; }
.account-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.account-actions .danger { color: #b42335; }
.table-scroll { overflow: auto; }
.account-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.account-table th, .account-table td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid #d6deea; line-height: 1.6; }
.account-table th { color: #5d6b80; font-weight: 500; white-space: nowrap; }
.account-table td small { display: block; color: #667085; overflow-wrap: anywhere; }
.account-table button { padding: 6px 12px; min-height: 40px; font-size: 12px; }
.empty-state { color: #667085; padding: 24px 0; }
.account-meta { font-size: 13px; color: #667085; }
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 60; background: var(--paper); color: var(--graphite); border: 1px solid #b4cbe8; border-radius: 10px; padding: 12px 24px; box-shadow: 0 8px 32px #0003; max-width: 80vw; text-align: center; }
.phone-notice { display: none; text-align: center; padding: 80px 28px; }
.phone-notice h1 { font: 40px var(--f-display); }
.phone-notice p { color: var(--chalk-dim); line-height: 1.8; }
@media (max-width: 1199px) and (min-width: 740px) {
  .commercial .hall { display: block; }
  .commercial .wrap { padding: 24px 28px; }
  .commercial .hall-right { display: none; position: fixed; z-index: 30; right: 16px; top: 90px; bottom: 20px; width: 340px; max-height: none; box-shadow: 0 20px 80px #0008; }
  .commercial.guide-open .hall-right { display: block; }
  .guide-close, #guideToggle { display: inline-block; }
  .guide-close { display: block; position: sticky; top: 0; z-index: 5; margin-left: auto; border: 0; padding: 6px 12px; min-height: 44px; font-size: 22px; background: var(--paper); }
  .welcome { padding: 40px 32px; }
  .welcome-layout { gap: 30px; }
  .welcome h1 { font-size: 52px; }
  .welcome-art { min-height: 350px; }
  .welcome-art svg { height: 340px; }
  .appbar { gap: 10px; padding: 12px 24px; }
  .appbar small { display: none; }
  .brand { font-size: 22px; }
  .learning-strip { gap: 24px; }
}
@media (max-width: 850px) and (min-width: 740px) {
  .trial-status { display: none; }
  .welcome h1 { font-size: 45px; }
  .welcome-layout { grid-template-columns: 1.15fr .85fr; gap: 24px; }
  .welcome .lead { font-size: 16px; }
  .welcome-art svg { height: 330px; }
}
@media (max-width: 739px) {
  .phone-notice { display: block; }
  #welcome, #workspace, .appbar, .preview-note, .guide-backdrop { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .commercial *, .commercial *::before, .commercial *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
