:root {
  color-scheme: light;
  --ink: #111316;
  --graphite: #22262b;
  --muted: #616973;
  --line: #e2e5e8;
  --control-line: #89929b;
  --surface: #f5f6f7;
  --white: #fff;
  --success: #087934;
  --success-soft: #e9f8ef;
  --danger: #b42318;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-size: 16px; line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
[hidden] { display: none !important; }

.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; transform: translateY(-160%); padding: 10px 14px; border-radius: 8px; background: var(--ink); color: var(--white); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.topbar { position: sticky; z-index: 20; top: 0; display: flex; min-height: 76px; padding: 0 clamp(20px,4vw,56px); align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: var(--white); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; line-height: 1.05; }
.brand-mark { display: block; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 20%; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.25rem; font-weight: 600; letter-spacing: -.045em; }
.brand small { margin-top: 5px; color: var(--muted); font-size: .7rem; font-weight: 400; }
.top-links { display: flex; gap: 22px; color: #4c535c; font-size: .9rem; font-weight: 600; }
.top-links a:hover { color: var(--accent-dark); }

.auth-shell { display: grid; width: min(calc(100% - 48px),1160px); min-height: calc(100vh - 76px); margin: 0 auto; padding: clamp(52px,7vw,92px) 0; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: clamp(42px,5vw,72px); align-items: center; }
.eyebrow { margin: 0 0 14px; color: var(--accent-dark); font-size: .78rem; font-weight: 600; letter-spacing: .13em; }
.auth-intro h1 { margin: 0 0 24px; font-size: clamp(2.4rem,3.8vw,3.5rem); line-height: 1.23; font-weight: 600; letter-spacing: -.055em; }
.auth-intro > p:not(.eyebrow):not(.app-note) { max-width: 570px; margin: 0; color: #505761; font-size: 1.08rem; }
.scope-list { display: grid; max-width: 560px; margin: 44px 0 32px; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.scope-list li { display: flex; min-height: 62px; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); font-weight: 600; }
.scope-list span { color: var(--accent-dark); font-size: .76rem; font-weight: 600; }
.app-note { max-width: 560px; margin: 0; padding: 0 0 0 15px; border-left: 3px solid var(--accent); color: var(--muted); font-size: .88rem; }

.auth-card { min-width: 0; padding: clamp(28px,3vw,40px); border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.auth-tabs { display: grid; margin-bottom: 30px; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.auth-tab { min-height: 48px; margin-bottom: -1px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); cursor: pointer; font-weight: 600; }
.auth-tab.is-active { border-bottom-color: var(--accent); color: var(--ink); }
.auth-heading h2 { margin: 0 0 8px; font-size: clamp(1.6rem,3vw,2.15rem); letter-spacing: -.045em; }
.auth-heading > p:last-child { margin: 0 0 26px; color: var(--muted); }
.social-auth { display: grid; gap: 10px; }
.social-button { display: flex; min-height: 50px; padding: 0 16px; align-items: center; justify-content: center; gap: 10px; border: 1px solid #ccd1d5; border-radius: 10px; background: var(--white); cursor: pointer; font-weight: 600; }
.social-button:hover { background: var(--surface); }
.social-button:disabled { cursor: not-allowed; opacity: .54; background: var(--surface); }
.social-logo, .google-logo { display: block; width: 20px; height: 20px; flex: 0 0 20px; object-fit: contain; }
.divider { display: flex; margin: 24px 0; align-items: center; gap: 12px; color: var(--muted); font-size: .76rem; }
.divider::before, .divider::after { height: 1px; flex: 1; background: var(--line); content: ""; }
.field { display: grid; gap: 7px; margin-bottom: 17px; }
.field span { font-size: .88rem; font-weight: 600; }
.field input, .field select { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--control-line); border-radius: 8px; background: var(--white); color: var(--ink); }
.field input[type=file] { padding: 10px 12px; }
.field input:focus, .field select:focus { border-color: var(--accent-dark); }
.field small { color: var(--muted); font-size: .78rem; }
.signup-agreements { display: grid; margin: 2px 0 18px; gap: 9px; }
.agreement-field { display: flex; min-height: 38px; align-items: center; gap: 9px; color: #4f5660; font-size: .84rem; }
.agreement-field input { width: 19px; height: 19px; flex: 0 0 auto; accent-color: var(--accent-dark); }
.agreement-field a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.primary-button { display: inline-flex; width: 100%; min-height: 50px; padding: 0 20px; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: var(--graphite); color: var(--white); cursor: pointer; font-weight: 600; }
.primary-button:hover { background: #08090a; }
.primary-button:disabled { cursor: wait; opacity: .56; }
.primary-button.compact { width: auto; min-height: 44px; }
.secondary-auth-button { display: block; min-height: 40px; margin: 8px auto 0; padding: 0 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: .84rem; font-weight: 600; }
.secondary-auth-button:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.form-message { min-height: 22px; margin: 12px 0 0; color: var(--danger); font-size: .86rem; }
.form-message.is-success { color: var(--success); }
.auth-footnote { margin: 20px 0 0; color: var(--muted); font-size: .76rem; text-align: center; }
.auth-footnote a { text-decoration: underline; text-underline-offset: 3px; }

.workspace { display: grid; min-height: calc(100vh - 76px); grid-template-columns: 246px minmax(0,1fr); background: var(--white); }
.sidebar { position: sticky; top: 76px; display: flex; height: calc(100vh - 76px); padding: 24px 18px; flex-direction: column; border-right: 1px solid var(--line); background: var(--white); }
.account-block { display: flex; min-height: 68px; padding: 10px; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.account-avatar { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--white); color: var(--ink); font-weight: 600; }
.account-block strong, .account-block small { display: block; overflow: hidden; max-width: 150px; text-overflow: ellipsis; white-space: nowrap; }
.account-block small { margin-top: 3px; color: var(--muted); font-size: .72rem; }
.workspace-nav { display: grid; gap: 6px; margin-top: 24px; }
.nav-item { display: grid; min-height: 62px; padding: 10px 12px; justify-items: start; border: 0; border-left: 3px solid transparent; border-radius: 0 8px 8px 0; background: transparent; cursor: pointer; text-align: left; }
.nav-item span { font-weight: 600; }
.nav-item small { margin-top: 2px; color: var(--muted); font-size: .72rem; }
.nav-item:hover { background: var(--surface); }
.nav-item.is-active { border-left-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.nav-item.is-active small { color: var(--muted); }
.logout-button { min-height: 44px; margin-top: auto; border: 1px solid var(--line); border-radius: 9px; background: var(--white); cursor: pointer; color: var(--muted); }
.workspace-main { min-width: 0; padding: clamp(24px,3vw,48px); container-type: inline-size; }
.workspace-panel { width: min(100%,1120px); margin: 0 auto; }
.panel-heading { display: flex; margin-bottom: 34px; align-items: flex-end; justify-content: space-between; gap: 24px; }
.panel-heading h1 { margin: 0; font-size: clamp(2rem,3.8vw,3.25rem); line-height: 1.2; font-weight: 600; letter-spacing: -.055em; }
.panel-heading > div > p:last-child:not(.eyebrow) { max-width: 620px; margin: 13px 0 0; color: var(--muted); }
.summary-grid { display: grid; margin-bottom: 22px; grid-template-columns: repeat(2,1fr); gap: 14px; }
.summary-card { display: grid; min-height: 150px; padding: 24px; align-content: space-between; border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: 0 0 10px 10px; background: var(--white); }
.summary-card > span { color: #4d545d; font-weight: 600; }
.summary-card strong { font-size: 2.8rem; font-weight: 600; line-height: 1.1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.summary-card small { color: var(--muted); }
.content-block, .claim-form { margin-top: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.block-heading { display: flex; min-height: 40px; margin-bottom: 12px; align-items: center; justify-content: space-between; gap: 18px; }
.block-heading h2 { margin: 0; font-size: 1.15rem; letter-spacing: -.025em; }
.quiet-label { color: var(--muted); font-size: .76rem; }
.record-list { border-top: 1px solid var(--ink); }
.record-row { display: grid; min-height: 78px; padding: 16px 0; grid-template-columns: minmax(0,1fr) auto; gap: 18px; align-items: center; border-bottom: 1px solid var(--line); }
.record-row strong, .record-row small { display: block; }
.record-row small { margin-top: 4px; color: var(--muted); font-size: .8rem; }
.status-pill { display: inline-flex; min-height: 30px; padding: 0 10px; align-items: center; border-radius: 99px; background: var(--surface); color: #4f5660; font-size: .76rem; font-weight: 600; }
.status-pill.success { background: var(--success-soft); color: var(--success); }
.status-pill.action { background: #fff4e5; color: #9a5800; }
.loading-row { padding: 25px 0; color: var(--muted); }
.empty-state { padding: 38px 12px; color: var(--muted); text-align: center; }
.empty-state strong { display: block; margin-bottom: 6px; color: var(--ink); }
.empty-state p { margin: 0; }

.search-bar { display: grid; margin-bottom: 14px; grid-template-columns: minmax(0,1fr) auto; border: 1px solid var(--control-line); border-radius: 8px; background: var(--white); overflow: hidden; }
.search-bar:focus-within { border-color: var(--accent-dark); box-shadow: 0 0 0 3px rgb(222 38 51 / .15); }
.search-bar input { min-width: 0; min-height: 56px; padding: 0 17px; border: 0; outline: 0; }
.search-bar button { min-width: 90px; border: 0; background: var(--graphite); color: var(--white); cursor: pointer; font-weight: 600; }
.search-results { border: 1px solid var(--line); border-radius: 14px; background: var(--white); overflow: hidden; }
.compact-empty { padding: 46px 20px; }
.search-result { display: grid; width: 100%; min-height: 74px; padding: 15px 18px; grid-template-columns: minmax(0,1fr) auto; gap: 16px; align-items: center; border: 0; border-bottom: 1px solid var(--line); background: var(--white); cursor: pointer; text-align: left; }
.search-result:last-child { border-bottom: 0; }
.search-result:hover { background: var(--surface); }
.search-result strong, .search-result small { display: block; }
.search-result small { margin-top: 4px; color: var(--muted); }
.search-result > span:last-child { color: var(--accent-dark); font-weight: 600; }
.new-academy-row { display: flex; min-height: 64px; padding: 0 6px; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); }
.text-button { min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--accent-dark); cursor: pointer; font-weight: 600; }
.connection-steps { display: grid; margin: 0 0 22px; padding: 0; grid-template-columns: repeat(3,1fr); list-style: none; border: 1px solid var(--line); border-radius: 14px; background: var(--white); overflow: hidden; }
.connection-steps li { position: relative; display: flex; min-height: 58px; padding: 0 18px; align-items: center; gap: 10px; color: var(--muted); }
.connection-steps li + li { border-left: 1px solid var(--line); }
.connection-steps span { display: grid; width: 26px; height: 26px; place-items: center; border: 1px solid #cfd4d8; border-radius: 50%; font-size: .76rem; font-weight: 600; }
.connection-steps strong { font-size: .88rem; }
.connection-steps li.is-active { background: var(--accent-soft); color: var(--ink); }
.connection-steps li.is-active span { border-color: var(--accent-dark); background: var(--accent-dark); color: var(--white); }
.connection-steps li.is-complete span { border-color: var(--success); color: var(--success); }
.space-guide { margin: 0 0 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.space-guide > summary { min-height: 52px; padding: 14px 18px; cursor: pointer; font-size: .9rem; font-weight: 600; }
.space-guide-content { padding: 0 18px 18px; }
.space-guide-content p { margin: 12px 0 0; color: var(--muted); font-size: .84rem; }
.space-guide-content .quiet-label { font-size: .78rem; }
.space-type-grid { display: grid; margin: 0; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.space-type-grid > div { min-width: 0; padding: 14px; border-radius: 10px; background: var(--surface); }
.space-type-grid dt { margin-bottom: 6px; color: var(--ink); font-size: .86rem; font-weight: 600; }
.space-type-grid dd { margin: 0; color: var(--muted); font-size: .8rem; }
.app-management-guide p + p { margin-top: 6px; }
.academy-search-layout { display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); gap: 16px; align-items: stretch; }
.academy-results-panel, .map-panel { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.academy-results-panel { display: flex; flex-direction: column; }
.search-results { max-height: 430px; overflow-y: auto; }
.search-result.is-selected { position: relative; background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.search-result.is-selected > span:last-child { color: var(--ink); }
.map-panel { display: flex; flex-direction: column; }
.map-panel-heading { display: flex; min-height: 50px; margin-bottom: 12px; align-items: flex-start; justify-content: space-between; gap: 16px; }
.map-panel-heading .eyebrow { margin-bottom: 4px; }
.map-panel-heading h2 { margin: 0; font-size: 1.18rem; letter-spacing: -.03em; }
.map-state { padding: 6px 9px; border-radius: 99px; background: var(--surface); color: var(--muted); font-size: .74rem; font-weight: 600; white-space: nowrap; }
.academy-map { position: relative; display: grid; min-height: 370px; overflow: hidden; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.academy-map::before { display: none; }
.academy-map.is-live::before { display: none; }
.map-fallback { position: relative; z-index: 1; max-width: 310px; padding: 26px; color: var(--muted); text-align: center; }
.map-fallback strong, .map-fallback p { display: block; }
.map-fallback strong { margin: 12px 0 7px; color: var(--ink); }
.map-fallback p { margin: 0; font-size: .86rem; }
.map-pin-preview { position: relative; display: block; width: 30px; height: 38px; margin: 0 auto; border-radius: 50% 50% 50% 0; background: var(--graphite); transform: rotate(-45deg); box-shadow: 0 8px 22px rgba(17,19,22,.18); }
.map-pin-preview::after { position: absolute; top: 8px; left: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); content: ""; }
.map-edit-guide { display: flex; margin-top: 10px; padding: 12px 14px; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.map-edit-guide[hidden] { display: none; }
.map-edit-guide-icon { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--graphite); color: var(--white); font-weight: 600; }
.map-edit-guide p, .map-edit-guide strong, .map-edit-guide span { display: block; }
.map-edit-guide p { margin: 0; }
.map-edit-guide strong { color: var(--ink); font-size: .86rem; }
.map-edit-guide p span { margin-top: 2px; color: var(--muted); font-size: .78rem; }
.selected-academy-card { display: grid; gap: 14px; padding-top: 16px; }
.selected-academy-card strong, .selected-academy-card p, .selected-academy-card small { display: block; }
.selected-academy-card p { margin: 4px 0 0; color: var(--muted); }
.selected-academy-card small { margin-top: 3px; color: var(--muted); }
.location-actions { display: grid; grid-template-columns: 1.15fr .85fr; gap: 8px; }
.secondary-button { min-height: 50px; padding: 0 16px; border: 1px solid #cfd4d8; border-radius: 10px; background: var(--white); cursor: pointer; font-weight: 600; }
.secondary-button:hover { background: var(--surface); }
.location-message { min-height: 20px; margin: -2px 0 0; color: var(--danger); font-size: .82rem; }
.form-grid { display: grid; margin-top: 22px; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field.wide { grid-column: 1 / -1; }
.confirmed-location { display: flex; margin: 16px 0 4px; padding: 15px 16px; align-items: center; gap: 12px; border-radius: 12px; background: #eef8f1; }
.confirmation-mark { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--success); color: var(--white); font-weight: 600; }
.confirmed-location strong, .confirmed-location small { display: block; }
.confirmed-location small { margin-top: 2px; color: var(--muted); }
.check-field { display: flex; min-height: 48px; margin: 2px 0 12px; padding: 11px 13px; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.check-field.wide { grid-column: 1 / -1; }
.check-field input { width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--accent-dark); }
.check-field span { font-size: .88rem; font-weight: 600; }
.form-section-heading { display: flex; margin: 28px 0 -8px; padding-top: 24px; align-items: baseline; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); }
.form-section-heading span { font-weight: 600; }
.form-section-heading small { color: var(--muted); }
.operator-fields { margin-top: 18px; }
.security-note, .notice-box { margin: 8px 0 20px; padding: 16px 18px; border-radius: 12px; background: var(--surface); }
.security-note strong, .notice-box strong { display: block; margin-bottom: 4px; }
.security-note strong:only-child { margin-bottom: 0; }
.security-note p, .notice-box p { margin: 0; color: var(--muted); font-size: .87rem; }
.academy-selector { display: grid; margin-bottom: 18px; gap: 8px; }
.academy-chip { display: flex; min-height: 54px; padding: 0 16px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 11px; background: var(--white); }
.academy-chip small { color: var(--muted); }
.plan-grid { display: grid; margin-bottom: 16px; grid-template-columns: repeat(2,1fr); gap: 14px; }
.plan-card { display: grid; min-height: 168px; padding: 24px; align-content: space-between; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.plan-card span { color: var(--muted); font-weight: 600; }
.plan-card strong { font-size: 2rem; letter-spacing: -.04em; }
.plan-card small { color: var(--muted); }
.plan-card.featured { border: 2px solid var(--graphite); }
.mobile-workspace-header, .mobile-nav { display: none; }
.toast { position: fixed; z-index: 50; right: 20px; bottom: 20px; max-width: 360px; padding: 14px 17px; border-radius: 11px; background: var(--graphite); color: var(--white); box-shadow: 0 14px 40px rgba(17,19,22,.2); }

@media (max-width: 860px) {
  .topbar { min-height: 64px; padding: 0 18px; }
  .brand-mark { width: 38px; height: 38px; flex-basis: 38px; }
  .brand strong { font-size: 1.1rem; }
  .brand small { font-size: .65rem; }
  .top-links { gap: 14px; font-size: .76rem; }
  .auth-shell { width: min(calc(100% - 32px),620px); min-height: auto; padding: 46px 0 70px; grid-template-columns: 1fr; gap: 38px; }
  .auth-card { grid-row: 1; }
  .auth-intro { grid-row: 2; }
  .auth-intro h1 { font-size: clamp(2.2rem,6.5vw,3rem); }
  .scope-list { margin-top: 32px; }
  .workspace { display: block; min-height: calc(100vh - 64px); padding-bottom: 68px; }
  .sidebar { display: none; }
  .workspace-main { padding: 24px 16px 44px; }
  .mobile-workspace-header { display: flex; min-height: 44px; margin-bottom: 30px; align-items: center; justify-content: space-between; }
  .mobile-workspace-header button { min-height: 40px; border: 0; background: transparent; color: var(--muted); }
  .mobile-nav { position: fixed; z-index: 30; right: 0; bottom: 0; left: 0; display: grid; height: calc(64px + env(safe-area-inset-bottom)); padding: 0 8px env(safe-area-inset-bottom); grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); background: var(--white); }
  .mobile-nav button { border: 0; background: transparent; color: var(--muted); font-size: .78rem; font-weight: 600; }
  .mobile-nav button.is-active { color: var(--accent-dark); box-shadow: inset 0 3px 0 var(--accent); }
  .panel-heading { align-items: flex-start; }
  .panel-heading h1 { font-size: 2.25rem; }
  .summary-grid, .plan-grid { grid-template-columns: 1fr; }
  .academy-search-layout { grid-template-columns: 1fr; }
  .academy-map { min-height: 320px; }
}

@media (max-width: 560px) {
  .auth-shell { width: min(calc(100% - 24px),620px); padding-top: 34px; }
  .auth-card { padding: 24px 18px; border-radius: 10px; }
  .auth-card:has([data-auth-mode="login"][aria-selected="true"]) :is(#auth-email, #auth-password),
  #recovery-form .field input { font-size: 16px; }
  .panel-heading { flex-direction: column; }
  .primary-button.compact { width: 100%; }
  .summary-card { min-height: 132px; }
  .content-block, .claim-form { padding: 19px 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .space-type-grid { grid-template-columns: 1fr; }
  .field.wide { grid-column: auto; }
  .check-field.wide { grid-column: auto; }
  .new-academy-row { align-items: flex-start; flex-direction: column; gap: 0; padding: 10px 4px; }
  .record-row { grid-template-columns: 1fr; gap: 10px; }
  .connection-steps li { min-height: 54px; padding: 0 8px; justify-content: center; }
  .connection-steps li { flex-direction: column; gap: 5px; padding: 9px 4px; }
  .connection-steps li strong { font-size: .7rem; }
  .academy-results-panel, .map-panel { padding: 14px; }
  .location-actions { grid-template-columns: 1fr; }
  .form-section-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
}

.heading-actions { display: flex; gap: 8px; flex-shrink: 0; }
.preview-banner { padding: 9px 16px; background: #fff4e5; color: #805000; text-align: center; font-size: .75rem; }
.heading-actions .secondary-button { min-height: 44px; }
.workspace-updated { margin: -18px 0 20px; color: var(--muted); font-size: .78rem; }
.record-button { width: 100%; border-top: 0; border-right: 0; border-left: 0; background: var(--white); color: var(--ink); cursor: pointer; text-align: left; }
.record-button:hover { background: var(--surface); }
.record-action { display: inline-block; margin-top: 8px; color: var(--accent-dark); font-size: .78rem; font-weight: 600; }
.record-row small, .record-row strong, .selected-academy-card p, .notice-box p { overflow-wrap: anywhere; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.detail-grid div:nth-child(2) { grid-column: 1 / -1; }
.detail-grid dt { color: var(--muted); font-size: .78rem; }
.detail-grid dd { margin: 5px 0 0; overflow-wrap: anywhere; }
.search-pagination { display: grid; gap: 10px; padding-top: 12px; }
.search-pagination .secondary-button { min-height: 44px; }
.business-explanation { max-width: 680px; color: var(--muted); font-size: .84rem; }
.operator-fields { min-width: 0; margin: 0; padding: 0; border: 0; }
.verification-guide { margin: 16px 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .84rem; }
.verification-guide summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.verification-guide p, .verification-guide ol { max-width: 680px; color: var(--muted); line-height: 1.65; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.inline-error { margin: 12px 0; padding: 12px 14px; border-radius: 9px; background: #fff4e5; color: #805000; font-size: .83rem; }
.address-preview { display: inline-grid; width: 58px; height: 58px; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--accent-dark); font-size: .88rem; font-weight: 600; }
input:disabled, select:disabled { opacity: .7; }
button:disabled { cursor: not-allowed; }
@container (max-width: 800px) {
  .academy-search-layout { grid-template-columns: 1fr; }
  .academy-map { min-height: 300px; }
}
@media (max-width: 560px) {
  .heading-actions { width: 100%; }
  .heading-actions > * { flex: 1; }
  .workspace-updated { margin-top: -18px; }
  .top-links a:last-child { display: none; }
  .auth-intro h1 { font-size: clamp(1.85rem,7.2vw,2.5rem); }
  .search-result { padding: 14px 12px; gap: 10px; }
  .search-result > span:last-child { font-size: .78rem; }
  .search-bar button { min-width: 68px; }
  .toast { bottom: calc(82px + env(safe-area-inset-bottom)); left: 16px; right: 16px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Plan information and inline payment status. */
.billing-page { padding-bottom: env(safe-area-inset-bottom); }
.billing-page .panel-heading { margin-bottom: 16px; }
.billing-page .billing-card-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; align-items: stretch; margin-bottom: 40px; }
.billing-page .billing-product-card { display: flex; min-width: 0; flex-direction: column; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.billing-page .billing-badge { margin: 0 0 8px; color: var(--muted); font-size: 13px; font-weight: 400; line-height: 20px; }
.billing-page .billing-product-card h2 { margin: 0 0 8px; font-size: 20px; line-height: 28px; letter-spacing: -.035em; }
.billing-page .billing-product-intro { min-height: 48px; margin: 0; color: var(--muted); font-size: 15px; line-height: 24px; }
.billing-page .billing-period { display: grid; position: relative; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; min-width: 0; margin: 0; padding: 0; border: 0; }
.billing-page .billing-period label { display: flex; min-height: 44px; padding: 8px 12px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); cursor: pointer; font-size: 15px; line-height: 24px; font-weight: 600; }
.billing-page .billing-period input:checked + label { border-color: var(--ink); background: var(--ink); color: var(--white); }
.billing-page .billing-period input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 3px; }
.billing-page .billing-price-panel { grid-column: 1 / -1; min-width: 0; padding-top: 16px; }
.billing-page .billing-price-annual { display: none; }
.billing-page #billing-annual:checked ~ .billing-price-monthly { display: none; }
.billing-page #billing-annual:checked ~ .billing-price-annual { display: block; }
.billing-page .billing-price { display: flex; min-width: 0; margin: 0; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; line-height: 24px; }
.billing-page .billing-price strong { font-size: 36px; line-height: 44px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.billing-page .billing-price strong span { margin-left: 3px; font-size: 16px; line-height: 24px; letter-spacing: 0; }
.billing-page .billing-price > span { color: var(--muted); font-size: 15px; white-space: nowrap; }
.billing-page .billing-price-caption { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 22px; }
.billing-page .billing-event-price { min-width: 0; }
.billing-page .billing-free-label { display: flex; min-height: 44px; margin: 0 0 20px; align-items: center; color: var(--accent-dark); font-size: 15px; line-height: 24px; font-weight: 600; }
.billing-page .billing-card-summary { margin: 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink); font-size: 15px; line-height: 24px; }
.billing-page .billing-card-actions { display: grid; gap: 6px; margin-top: auto; }
.billing-page .billing-card-actions > .primary-button { min-height: 48px; font-size: 15px; }
.billing-page .billing-card-actions > .primary-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.billing-page .billing-card-status { margin: 0; padding: 4px 0; color: var(--muted); font-size: 14px; line-height: 22px; }
.billing-page .billing-card-status:empty { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.billing-page .billing-guide-link { display: flex; min-height: 44px; padding: 10px 0; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink); font-size: 14px; line-height: 22px; text-decoration: underline; text-underline-offset: 4px; }
.billing-page .billing-guide-link:hover { color: var(--accent-dark); }
.billing-page .billing-section-heading { margin-bottom: 20px; }
.billing-page .billing-section-heading h2, .billing-page .billing-conditions h2 { margin: 0 0 8px; font-size: 20px; line-height: 28px; letter-spacing: -.035em; }
.billing-page .billing-section-heading p { margin: 0; color: var(--muted); font-size: 14px; line-height: 22px; }
.billing-page .billing-services { margin-bottom: 40px; }
.billing-page .billing-primary-services { display: grid; grid-template-columns: minmax(0,1fr); gap: 0; margin: 0 0 24px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.billing-page .billing-primary-services li { min-width: 0; padding: 20px 0; border-bottom: 1px solid var(--line); }
.billing-page .billing-service-number { color: var(--accent-dark); font-size: 13px; line-height: 20px; font-weight: 600; }
.billing-page .billing-primary-services h3 { margin: 6px 0; font-size: 16px; line-height: 24px; }
.billing-page .billing-primary-services p { margin: 0; color: var(--muted); font-size: 15px; line-height: 24px; }
.billing-page .billing-related-services { padding: 20px; border-radius: 10px; background: var(--surface); }
.billing-page .billing-related-services h3 { margin: 0 0 12px; font-size: 16px; line-height: 24px; }
.billing-page .billing-related-services ul { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 24px; }
.billing-page .billing-related-services p { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 22px; }
.billing-page .billing-conditions { margin-bottom: 40px; }
.billing-page .billing-conditions-intro { margin: 0 0 16px; color: var(--muted); font-size: 15px; line-height: 24px; }
.billing-page .billing-disclosure { margin: 0 0 10px; border: 1px solid var(--line); border-radius: 10px; scroll-margin-top: 100px; }
.billing-page .billing-disclosure:target { border-color: var(--accent-dark); }
.billing-page .billing-disclosure > summary { min-height: 48px; padding: 14px 16px; cursor: pointer; font-size: 15px; line-height: 24px; font-weight: 600; }
.billing-page .billing-disclosure-body { padding: 0 16px 16px; font-size: 15px; line-height: 24px; }
.billing-page .billing-disclosure-body .notice-box { margin-bottom: 12px; }
.billing-page .billing-disclosure-body p { color: var(--muted); }
.billing-page .billing-disclosure-body a { text-decoration: underline; text-underline-offset: 3px; }
@container (min-width: 520px) {
  .billing-page .billing-primary-services { grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 24px; }
}
@container (min-width: 720px) {
  .billing-page .billing-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; margin-bottom: 56px; }
  .billing-page .billing-product-card { padding: 28px; }
  .billing-page .billing-product-card h2 { font-size: 22px; line-height: 30px; }
  .billing-page .billing-price strong { font-size: 40px; line-height: 48px; }
  .billing-page .billing-services, .billing-page .billing-conditions { margin-bottom: 56px; }
}
@media (max-width: 860px) { .billing-page { padding-bottom: calc(24px + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { html:has(.billing-page.is-active) { scroll-behavior: auto; } }

/* Shared company footer: verified public business fields only. */
.site-footer { margin-top: 0; padding: 36px 0 48px; border-top: 1px solid var(--line); background: var(--white); }
.site-footer .footer-inner { display: grid; width: min(calc(100% - 48px),1180px); margin: 0 auto; grid-template-columns: minmax(0,1fr) minmax(260px,320px); align-items: start; gap: 32px; }
.site-footer .footer-company, .site-footer .footer-link-groups, .site-footer .footer-link-group { min-width: 0; }
.site-footer .footer-brand { margin: 0 0 14px; color: var(--ink); font-size: 18px; font-weight: 600; line-height: 26px; letter-spacing: -.035em; }
.site-footer .footer-brand span { font-size: 13px; font-weight: 400; letter-spacing: 0; }
.site-footer .footer-company-info { max-width: 740px; color: var(--muted); font-size: 14px; line-height: 22px; word-break: keep-all; overflow-wrap: anywhere; }
.site-footer .footer-company-info p { display: flex; flex-wrap: wrap; gap: 2px 16px; margin: 0 0 4px; }
.site-footer .footer-company-info span { min-width: 0; max-width: 100%; }
.site-footer .footer-company-info a { text-decoration: underline; text-underline-offset: 3px; }
.site-footer .copyright { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 20px; }
.site-footer .footer-link-groups { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.site-footer .footer-link-group { display: flex; flex-direction: column; align-items: flex-start; }
.site-footer .footer-link-group h2 { margin: 0 0 8px; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 22px; letter-spacing: 0; }
.site-footer .footer-link-group a { display: inline-flex; min-height: 44px; max-width: 100%; align-items: center; gap: 4px; padding: 8px 0; color: var(--muted); font-size: 14px; line-height: 22px; overflow-wrap: anywhere; }
.site-footer .footer-link-group a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.site-footer .footer-link-group .operator-link { color: var(--ink); font-weight: 600; }
@media (max-width: 700px) {
  .site-footer { padding-top: 28px; padding-bottom: 36px; }
  .site-footer .footer-inner { width: min(calc(100% - 32px),1180px); grid-template-columns: minmax(0,1fr); gap: 24px; }
  .site-footer .footer-link-groups { gap: 20px; }
}

@media (max-width: 860px) { .site-footer { padding-bottom: calc(88px + env(safe-area-inset-bottom)); } }

/* Public service introduction and preparation-only download guidance. */
#auth-view { align-items: start; padding-top: clamp(24px,3vw,40px); }
#auth-view .auth-intro { min-width: 0; }
#auth-view .auth-intro h1 { margin-bottom: 20px; font-size: clamp(30px,3.5vw,48px); line-height: 1.25; }
#auth-view .intro-status { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 22px; }
#auth-view .intro-services { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }
#auth-view .intro-services li { display: grid; min-width: 0; min-height: 104px; padding: 18px; grid-template-columns: 24px minmax(0,1fr); align-items: start; gap: 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 22px; font-weight: 700; line-height: 30px; word-break: keep-all; }
#auth-view .intro-services svg { display: block; width: 24px; height: 24px; margin-top: 3px; color: var(--graphite); }
#auth-view .intro-services span { min-width: 0; }
#auth-view .intro-management { margin: 20px 0 8px; }
#auth-view .intro-management h2 { margin: 0 0 10px; color: var(--muted); font-size: 14px; font-weight: 600; line-height: 22px; }
#auth-view .intro-management ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
#auth-view .intro-management li { padding: 4px 10px; border-radius: 6px; background: var(--surface); font-size: 14px; line-height: 22px; }
#auth-view .app-download-guide { max-width: 440px; margin: 0 0 24px; }
#auth-view .app-download-guide h2 { display: flex; align-items: center; gap: 8px; color: var(--ink); }
#auth-view .download-status { padding: 2px 8px; border-radius: 4px; background: var(--surface); color: var(--muted); font-size: 13px; line-height: 20px; }
#auth-view .app-download-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
#auth-view .app-download-options button:disabled { width: 100%; min-width: 0; min-height: 48px; padding: 10px 8px; }
.intro-guide-link { display: inline-flex; min-height: 44px; align-items: center; gap: 12px; color: var(--ink); font-size: 15px; line-height: 24px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
#auth-view .connection-summary { margin: 18px 0 12px; color: var(--muted); font-size: 14px; line-height: 22px; }
#auth-view .app-note { font-size: 14px; line-height: 22px; }
.app-download-guide { max-width: 440px; margin-top: 24px; }
.app-download-guide h2 { margin: 0 0 10px; color: var(--accent-dark); font-size: 14px; font-weight: 600; line-height: 22px; }
.app-download-options { display: flex; flex-wrap: wrap; gap: 8px; }
.app-download-options button:disabled { min-height: 44px; max-width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 14px; line-height: 22px; cursor: not-allowed; opacity: 1; }
.service-nav-link { text-decoration: none; }
.billing-page .billing-service-link { margin: -16px 0 32px; color: var(--muted); font-size: 15px; line-height: 24px; }
.billing-page .billing-service-link a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.service-main { width: min(calc(100% - 48px),1120px); margin: 0 auto; padding: 56px 0 64px; container-type: inline-size; }
.service-hero { max-width: 740px; margin-bottom: 56px; }
.service-hero .eyebrow { margin-bottom: 12px; }
.service-hero h1 { margin: 0 0 20px; font-size: clamp(30px,4vw,48px); line-height: 1.25; letter-spacing: -.045em; }
.service-lead { margin: 0 0 12px; color: var(--ink); font-size: 18px; line-height: 28px; }
.service-status { margin: 0; color: var(--muted); font-size: 14px; line-height: 22px; }
.service-section { margin-bottom: 48px; }
.service-section h2 { margin: 0 0 20px; font-size: 22px; line-height: 30px; letter-spacing: -.035em; }
.service-role-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.service-role-grid article { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 12px; }
.service-role-grid h3 { margin: 0 0 12px; font-size: 16px; line-height: 24px; }
.service-role-grid ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 15px; line-height: 24px; }
.service-role-grid p { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 22px; }
.service-start-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin: 0 0 24px; padding: 0; list-style: none; counter-reset: steps; }
.service-start-steps li { min-width: 0; padding: 20px 0; border-top: 2px solid var(--line); counter-increment: steps; }
.service-start-steps li::before { display: block; margin-bottom: 8px; color: var(--accent-dark); font-size: 13px; font-weight: 600; content: '0' counter(steps); }
.service-start-steps strong { display: block; font-size: 16px; line-height: 24px; }
.service-start-steps p { margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 24px; }
.service-boundaries { padding: 20px; border-radius: 10px; background: var(--surface); color: var(--muted); font-size: 14px; line-height: 22px; }
.service-boundaries p { margin: 0 0 10px; }
.service-boundaries p:last-child { margin: 0; }
.service-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; }
.service-actions .secondary-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; }
.topbar .top-links { min-width: 0; }
@media (max-width: 860px) {
  #auth-view { padding: 32px 0 48px; gap: 32px; }
  #auth-view .auth-intro { grid-row: 1; }
  #auth-view .auth-card { grid-row: 2; }
  #auth-view .intro-services li { padding: 16px; font-size: 20px; line-height: 28px; }
  .mobile-nav { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .mobile-nav > * { min-width: 0; }
  .mobile-nav .service-nav-link { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .78rem; line-height: 20px; text-align: center; }
}
@media (max-width: 700px) {
  .service-main { width: calc(100% - 32px); padding: 32px 0 40px; }
  .service-hero { margin-bottom: 40px; }
  .service-role-grid, .service-start-steps { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .service-section { margin-bottom: 40px; }
}
@media (max-width: 600px) {
  .topbar { gap: 12px; }
  .topbar .top-links { flex-wrap: wrap; justify-content: flex-end; gap: 0 10px; font-size: 12px; }
  .topbar .top-links a { min-height: 44px; }
}

@media (max-width: 360px) {
  #auth-view .intro-services { grid-template-columns: minmax(0,1fr); }
  #auth-view .intro-services li { min-height: 64px; }
}

/* Public pages keep identity-dependent controls out of the initial restore paint. */
html[data-center-auth="pending"] [data-center-footer-inquiry],
html[data-center-footer-pending] [data-center-footer-inquiry] { visibility: hidden; }
.center-auth-status { display: none; width: min(calc(100% - 32px),960px); margin: 24px auto; }
.center-auth-status p { margin: 0; }
.center-auth-status a { text-decoration: underline; text-underline-offset: 3px; }
html:is([data-center-auth="pending"],[data-center-auth="retry"]) :is(#center-login-link,.public-help .help-login,#auth-view,#app-view,#support-view) { display: none !important; }
html:is([data-center-auth="pending"],[data-center-auth="retry"]) .center-auth-status { display: block; }
html:not([data-center-auth="pending"]) .center-auth-pending,
html:not([data-center-auth="retry"]) .center-auth-retry,
html[data-center-support] #auth-view > .auth-intro,
html[data-center-support]:not([data-center-auth-started]) #center-login-link { display: none; }

/* Separate center sign-in and public, preparation-only help. */
.center-entry-header .top-links { margin-left: auto; }
.header-login { display: inline-flex; min-height: 44px; padding: 9px 18px; align-items: center; justify-content: center; border: 1px solid var(--ink); border-radius: 8px; background: var(--ink); color: var(--white); font-size: 14px; font-weight: 600; line-height: 24px; }
body:not(.center-login-page):not(.center-auth-flow) #auth-view { width: min(calc(100% - 48px),960px); min-height: auto; grid-template-columns: minmax(0,1fr); padding-bottom: 56px; }
body:not(.center-login-page):not(.center-auth-flow) #auth-view > .auth-card { display: none; }
body.center-login-page #auth-view, body.center-auth-flow #auth-view { display: block; width: min(calc(100% - 32px),480px); min-height: auto; padding: 40px 0 56px; }
body.center-auth-flow #auth-view > .auth-intro { display: none; }
#auth-view .intro-actions { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.help-launcher { position: fixed; z-index: 45; right: 24px; bottom: 24px; min-width: 88px; min-height: 48px; padding: 10px 18px; border: 1px solid var(--ink); border-radius: 24px; background: var(--ink); color: var(--white); font-size: 15px; font-weight: 600; cursor: pointer; }
.help-panel { position: fixed; z-index: 46; right: 24px; bottom: 84px; width: min(360px,calc(100vw - 32px)); max-height: calc(100dvh - 120px); padding: 20px; overflow-y: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: 0 8px 32px #11131620; }
.help-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.help-heading h2 { margin: 0; font-size: 20px; line-height: 28px; }
.help-close { min-width: 44px; min-height: 44px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); cursor: pointer; }
.help-panel p { margin: 12px 0; color: var(--muted); font-size: 14px; line-height: 22px; }
.help-panel .help-status { display: inline-block; padding: 3px 8px; border-radius: 5px; background: var(--surface); font-size: 13px; }
.help-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.help-links a, .help-login { display: flex; min-height: 44px; padding: 9px 10px; align-items: center; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; line-height: 22px; }
.help-login { justify-content: center; font-weight: 600; }
.help-input-label { display: block; margin: 16px 0 8px; font-size: 14px; font-weight: 600; }
.help-panel textarea { display: block; width: 100%; min-height: 64px; padding: 10px; resize: vertical; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--muted); font: inherit; font-size: 14px; }
.help-send { width: 100%; min-height: 44px; margin-top: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--muted); font-size: 14px; }
.help-email { display: flex; min-height: 44px; align-items: center; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) {
  .help-launcher { right: 16px; bottom: calc(88px + env(safe-area-inset-bottom)); }
  .help-panel { right: 16px; bottom: calc(148px + env(safe-area-inset-bottom)); max-height: calc(100dvh - 180px - env(safe-area-inset-bottom)); }
}
@media (max-width: 600px) {
  .center-entry-header { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 0 12px; padding-top: 12px; }
  .center-entry-header .brand { grid-column: 1; grid-row: 1; }
  .center-entry-header .header-login { grid-column: 2; grid-row: 1; }
  .center-entry-header .top-links { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; margin: 0; gap: 16px; }
  .center-login-page .center-entry-header { padding-bottom: 12px; }
  body:not(.center-login-page):not(.center-auth-flow) #auth-view { width: calc(100% - 32px); padding-top: 24px; }
  body.center-login-page #auth-view, body.center-auth-flow #auth-view { padding-top: 24px; }
}

.center-login-page .auth-heading h1 { margin: 0 0 8px; font-size: clamp(1.6rem,3vw,2.15rem); line-height: 1.3; letter-spacing: -.045em; }
body:has(.public-help) .site-footer { padding-bottom: 104px; }
@media (max-width: 860px) { body:has(.public-help) .site-footer { padding-bottom: calc(160px + env(safe-area-inset-bottom)); } }

/* Mobile sign-in only: place help after the card, clear of every account action. */
@media (max-width: 600px) {
  .center-login-page #auth-view > .public-help { display: flex; justify-content: flex-end; margin-top: 16px; }
  .center-login-page .help-launcher { position: static; flex-shrink: 0; margin: 0; }
  .center-login-page .help-panel { bottom: calc(16px + env(safe-area-inset-bottom)); max-height: calc(100dvh - 32px - env(safe-area-inset-bottom)); }
}

/* Service-specific concept illustrations; not app screenshots or live account data. */
#auth-view .intro-service-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
#auth-view .intro-service-card { min-width:0; padding:20px; border:1px solid var(--line); border-radius:12px; background:var(--white); }
#auth-view .intro-service-card figure { margin:0 0 16px; }
#auth-view .intro-service-card img { display:block; width:100%; height:auto; aspect-ratio:5 / 3; object-fit:contain; }
#auth-view .intro-service-card figcaption { margin-top:8px; color:var(--muted); font-size:14px; line-height:22px; }
#auth-view .intro-service-card h2 { margin:0 0 8px; color:var(--ink); font-size:22px; font-weight:700; line-height:30px; letter-spacing:-.025em; }
#auth-view .intro-service-card p { margin:0; color:var(--muted); font-size:16px; font-weight:400; line-height:26px; }
#auth-view .intro-management { margin-top:28px; }
@media(max-width:700px) {
 #auth-view .intro-service-grid { grid-template-columns:minmax(0,1fr); gap:20px; }
 #auth-view .intro-service-card h2 { font-size:20px; line-height:28px; }
}
