:root {
  color-scheme: light;
  --bg: #eef4f9;
  --panel: #ffffff;
  --line: #d7deeb;
  --text: #111827;
  --muted: #6b7280;
  --blue: #1d4ed8;
  --blue-hover: #1747bf;
  --green: #0d9488;
  --red: #dc2626;
  --shadow: 0 18px 42px rgba(17, 24, 39, 0.12);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
}

.session-help {
  margin-top: 10px;
  font-size: 13px;
}

.control-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 280px;
  max-width: 100%;
  min-height: 40px;
  border: 1px solid #d8e1ef;
  border-radius: 999px;
  padding: 0 12px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
}

.control-state.is-ready {
  border-color: #b7ead8;
  background: #ecfdf5;
  color: #047857;
}

.control-state.is-warning {
  border-color: #fdba74;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  color: #9a3412;
  box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.13);
}

.control-state[role="button"] {
  cursor: pointer;
  user-select: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.control-state[role="button"]:hover {
  transform: translateY(-1px);
  border-color: #fb923c;
  box-shadow: 0 12px 26px rgba(154, 52, 18, 0.16), 0 0 0 3px rgba(251, 146, 60, 0.2);
}

.control-state[role="button"]:focus-visible {
  outline: 3px solid rgba(251, 146, 60, 0.32);
  outline-offset: 2px;
}

.control-state.is-warning[role="button"] {
  background:
    linear-gradient(135deg, rgba(255, 247, 237, 0.96) 0%, rgba(255, 237, 213, 0.98) 100%),
    repeating-linear-gradient(135deg, rgba(251, 146, 60, 0.12) 0 8px, transparent 8px 16px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(13, 148, 136, 0.14), transparent 34rem),
    linear-gradient(135deg, #f8fbff 0%, var(--bg) 44%, #e9f0f7 100%);
}

button,
input,
select,
textarea,
.button {
  font: inherit;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  text-decoration: none;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

button:hover,
.button:hover {
  border-color: #9ca8bf;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.primary:hover {
  border-color: var(--blue-hover);
  background: var(--blue-hover);
}

.secondary {
  border-color: #d6deee;
  background: #eef5ff;
  color: #1f4a90;
}

.danger {
  border-color: #f8b8b8;
  background: #fff1f1;
  color: var(--red);
}

.danger[data-confirm="true"] {
  border-color: #dc2626;
  background: #dc2626;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.16);
}

input,
select,
textarea {
  min-height: 40px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  outline: none;
  color: var(--text);
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #9db8ee;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.14);
}

textarea {
  resize: vertical;
  min-height: 84px;
}

.customer-body {
  background: #edf1f6;
}

.customer-shell,
.auth-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.customer-card,
.auth-card {
  width: min(780px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.auth-card {
  width: min(420px, 100%);
}

.brand,
.customer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font-weight: 800;
}

.brand small,
.customer-brand small {
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

.step {
  display: none;
}

.step.active {
  display: block;
}

.muted {
  color: var(--muted);
  margin: 0;
}

.join-form,
.download-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.join-form {
  margin-top: 18px;
}

#codeInput {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 34px;
  letter-spacing: 8px;
  text-align: center;
  height: 64px;
}

.error-text {
  color: var(--red);
  min-height: 20px;
  margin: 10px 0 0;
}
.screen-surface {
  position: relative;
  width: 100%;
  height: clamp(360px, 62vh, 860px);
  min-height: 320px;
  border: 1px solid #cfd9ea;
  border-radius: 10px;
  overflow: hidden;
  background: #0a101d;
  display: grid;
  place-items: center;
  touch-action: none;
  user-select: none;
}

.screen-surface:focus-visible {
  outline: 3px solid rgba(29, 78, 216, 0.38);
  outline-offset: 3px;
}

.screen-surface.has-frame {
  cursor: pointer;
}

.screen-surface.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  margin: 0;
  border: 0;
  border-radius: 0;
  width: 100vw !important;
  height: 100dvh !important;
  min-width: 100vw;
  min-height: 100dvh;
  max-width: 100vw;
  max-height: 100dvh;
  background: #060b12;
}

.screen-surface img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
  background: #050a12;
}

.screen-surface.has-frame img {
  display: block;
}

.empty-screen {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  color: #d8deea;
  text-align: center;
  padding: 20px;
}

.empty-screen small {
  display: block;
  color: #9fb0c9;
}

.screen-surface.has-frame .empty-screen {
  display: none;
}

.event-feed {
  margin: 12px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  color: #344054;
  font-size: 13px;
}

.control-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
}

.remote-stage {
  display: grid;
  gap: 12px;
  align-content: start;
}

.stage-toolbar {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.07);
}

.stage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 14px;
}

.stage-toolbar div {
  display: grid;
  gap: 4px;
}

.stage-toolbar span {
  color: var(--muted);
  font-size: 13px;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.workspace {
  padding: 24px;
  display: grid;
  gap: 18px;
}

.session-strip {
  display: grid;
  grid-template-columns: 130px 120px 170px minmax(220px, 1fr) minmax(240px, 1.2fr);
  gap: 10px;
}

.session-strip > div {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.session-strip small,
.side-panel h2 {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

.session-strip strong {
  display: block;
  overflow-wrap: anywhere;
}

.console-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
}

.side-panel {
  display: grid;
  gap: 12px;
  align-content: start;
}

.side-panel section {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 14px;
}

.side-panel h2,
.customer-card h2,
.topbar h1,
.customer-card h1 {
  margin: 0 0 12px;
}

.control-hint {
  margin: 12px 0 0;
}

@media (max-width: 980px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .customer-card,
  .workspace,
  .auth-view,
  .customer-shell {
    padding: 18px;
  }

  .screen-surface {
    height: clamp(300px, 56vh, 520px);
    min-height: 280px;
  }
}

/* Keep high-impact support actions reachable on small screens. */
.download-actions button,
.section-actions button,
.control-bar button {
  min-height: 42px;
}

.stage-toolbar {
  position: sticky;
  top: 10px;
  z-index: 18;
  backdrop-filter: blur(14px);
}

@media (max-width: 720px) {
  #activeStep > .download-actions {
    position: sticky;
    bottom: 8px;
    z-index: 24;
    border: 1px solid rgba(216, 225, 239, 0.9);
    border-radius: 16px;
    padding: 10px;
    background: rgba(248, 251, 255, 0.94);
    box-shadow: 0 -12px 30px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(14px);
  }

  #activeStep > .download-actions button {
    flex: 1 1 132px;
  }

  .stage-toolbar {
    top: 6px;
    border-radius: 14px;
    padding: 10px;
  }
}

.customer-body .customer-shell {
  max-width: 520px;
  padding: 18px;
}

.customer-body .customer-card {
  border: 0;
  border-radius: 22px;
  padding: clamp(26px, 6vw, 44px);
  box-shadow: 0 24px 80px rgba(23, 48, 111, 0.12);
}

.customer-body .customer-brand {
  display: none !important;
}

.customer-body .join-form {
  grid-template-columns: 1fr;
}

.customer-body #codeInput {
  min-height: 60px;
  font-size: 2rem;
  letter-spacing: 0.36em;
  text-align: center;
}

.customer-body #codeInput:focus {
  outline: 4px solid rgba(45, 99, 255, 0.22);
  border-color: rgba(45, 99, 255, 0.78);
  box-shadow: 0 0 0 8px rgba(45, 99, 255, 0.08);
}

.customer-body #codeInput:disabled {
  color: #17306f;
  background: rgba(45, 99, 255, 0.08);
  border-color: rgba(45, 99, 255, 0.34);
  cursor: wait;
  opacity: 1;
}

.customer-body .join-form .primary {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.customer-body .simple-connect-hint {
  margin-top: 8px;
  text-align: center;
}

.customer-body #joinStep h1,
.customer-body #activeStep h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 18px;
  text-align: center;
}

.customer-body #joinStep .muted,
.customer-body .session-help {
  font-size: 1.02rem;
  line-height: 1.65;
}

.customer-body #activeStep .download-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.customer-body #endSessionButton {
  min-height: 48px;
}

.customer-body #endSessionButton {
  border-color: rgba(23, 48, 111, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: #45536f;
}

/* Product polish pass: centered customer entry + native-agent download flow. */
html:has(body.customer-body),
body.customer-body {
  min-height: 100%;
}

body.customer-body {
  display: grid;
  place-items: center;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(56, 189, 248, 0.24), transparent 30%),
    radial-gradient(circle at 82% 22%, rgba(20, 184, 166, 0.15), transparent 32%),
    linear-gradient(135deg, #edf7fb 0%, #f8fafc 48%, #e6eef5 100%);
}

.customer-body .customer-shell {
  display: grid !important;
  place-items: center !important;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0 auto !important;
  padding: clamp(24px, 5vw, 56px);
}

.customer-body .customer-card {
  width: min(720px, 100%);
  margin: 0 auto !important;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 32px;
  padding: clamp(34px, 5vw, 58px);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.14);
}

.customer-body .customer-brand {
  display: flex !important;
  justify-content: center;
  margin-bottom: 30px;
}

.customer-body #joinStep.active {
  display: grid;
  justify-items: center;
  gap: 24px;
  text-align: center;
}

.customer-body #joinStep h1 {
  margin: 0;
  text-align: center;
}

.customer-body .join-form {
  display: grid;
  width: min(430px, 100%);
  margin: 4px auto 0;
  place-items: center;
}

.customer-body #codeInput {
  box-sizing: border-box;
  width: 100%;
  min-height: 84px;
  padding: 0 28px;
  border-radius: 24px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  text-align: center;
}

.customer-body #codeInput::placeholder {
  color: #94a3b8;
  letter-spacing: 0.04em;
  text-indent: 0;
}

.agent-download-panel {
  display: grid;
  width: min(560px, 100%);
  gap: 16px;
  margin: 6px auto 0;
  border: 1px solid rgba(14, 165, 233, 0.16);
  border-radius: 26px;
  padding: clamp(22px, 4vw, 32px);
  background:
    linear-gradient(135deg, rgba(240, 249, 255, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow: 0 20px 54px rgba(14, 165, 233, 0.12);
}

.agent-eyebrow {
  margin: 0;
  color: #0f766e;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agent-code-line {
  margin: 0;
  color: #334155;
  font-weight: 800;
}

.agent-code-line strong {
  display: inline-block;
  margin-left: 8px;
  border-radius: 12px;
  padding: 6px 12px;
  background: #0f172a;
  color: #fff;
  letter-spacing: 0.14em;
}

.agent-download-primary .button {
  width: 100%;
  justify-content: center;
  min-height: 58px;
  border-radius: 18px;
  font-size: 1.05rem;
  font-weight: 900;
}

.agent-download-primary {
  display: grid;
  gap: 10px;
}

.agent-download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.agent-download-grid .button {
  justify-content: center;
  min-height: 46px;
  border-radius: 14px;
}

.agent-steps {
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
  padding-left: 20px;
  color: #475569;
  text-align: left;
  line-height: 1.55;
}

/* Supporter console: login -> support code -> remote screen. */
#supporterLoginView.auth-view {
  min-height: 100vh;
  padding: clamp(24px, 4vw, 56px);
  place-items: center;
  background:
    radial-gradient(circle at 74% 18%, rgba(226, 242, 255, 0.86), transparent 22%),
    radial-gradient(circle at 20% 76%, rgba(236, 253, 245, 0.72), transparent 26%),
    linear-gradient(120deg, #fbfdff 0%, #f6f9fd 48%, #eef7fb 100%);
}

#supporterLoginView .auth-card {
  width: min(520px, calc(100vw - 48px));
  min-height: auto;
  display: block;
  border: 0;
  border-radius: 28px;
  padding: clamp(30px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 40px 120px rgba(30, 41, 59, 0.12);
}

#supporterLoginView .auth-card h1 {
  margin: 28px 0 12px;
  color: #1f2937;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.05em;
}

#supporterLoginView #loginForm {
  border: 0;
  border-radius: 24px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

#supporterLoginView #loginForm input {
  min-height: 56px;
  border-color: #dbe7f5;
  border-radius: 12px;
  background: #f3f7fd;
}

#supporterLoginView #loginForm .primary {
  width: 100%;
  min-height: 56px;
  border-radius: 12px;
  background: #2f65ff;
}

#supporterApp.shell {
  min-height: 100vh;
  grid-template-columns: minmax(0, 1fr) !important;
  background:
    radial-gradient(circle at 76% 18%, rgba(219, 234, 254, 0.68), transparent 24%),
    radial-gradient(circle at 22% 78%, rgba(220, 252, 231, 0.62), transparent 28%),
    linear-gradient(135deg, #f8fbff 0%, #f3f7fb 54%, #edf6f9 100%) !important;
  color: #172033;
}

#supporterApp .workspace {
  width: min(1560px, 100%);
  margin: 0 auto;
  padding: 10px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#supporterApp .topbar,
#supporterApp .session-strip,
#supporterApp .remote-stage {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 42px rgba(15, 23, 42, 0.06);
}

#supporterApp .topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 18px;
  padding: 10px 16px;
  overflow: hidden;
}

#supporterApp .page-heading {
  display: grid;
  gap: 2px;
}

#supporterApp .page-heading .eyebrow {
  display: none;
}

#supporterApp .page-heading h1 {
  margin: 0;
  color: #172033;
  font-size: 1.08rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

#supporterApp .page-heading p {
  margin: 0;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.45;
}

#supporterApp .topbar .section-actions {
  flex: 0 0 auto;
  margin: 0;
}

#supporterApp #logoutButton {
  min-height: 38px;
  border-radius: 999px;
  padding: 0 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

#supporterApp .session-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-radius: 18px;
  padding: 8px;
}

#supporterApp .session-strip > div {
  min-height: 78px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-content: center;
  align-items: center;
  justify-items: center;
  gap: 4px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.13), rgba(20, 184, 166, 0.1));
  text-align: center;
}

#supporterApp .session-strip small {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.02em;
}

#supporterApp #supportCode {
  display: block;
  width: 100%;
  margin: 0 auto;
  border-radius: 12px;
  padding: 0;
  background: transparent;
  color: #0f766e;
  font-size: clamp(1.9rem, 2.7vw, 2.8rem);
  line-height: 1;
  letter-spacing: 0.12em;
  text-align: center;
  transform: translateX(0.06em);
}

#supporterApp .support-code-hint {
  max-width: 320px;
  color: #45536f;
  font-size: 0.72rem;
  line-height: 1.25;
  text-align: center;
}

#supporterApp .console-grid {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-top: 2px;
}

#supporterApp .remote-stage {
  min-height: 0;
  overflow: hidden;
  display: grid;
  gap: 0;
  border-radius: 18px;
}

#supporterApp .stage-toolbar {
  min-height: 54px;
  padding: 12px 16px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

#supporterApp #screenSurface {
  height: min(62vh, 680px);
  min-height: 340px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 0;
  background: #f1f5f9;
  background-image: none;
}

#supporterApp #screenSurface.has-frame {
  background: #111827;
  cursor: default;
}

#supporterApp #remoteFrame {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111827;
  pointer-events: none;
}

#supporterApp #screenSurface.is-fullscreen,
#supporterApp #screenSurface:fullscreen,
#supporterApp #screenSurface:-webkit-full-screen {
  width: 100vw !important;
  height: 100dvh !important;
  min-width: 100vw !important;
  min-height: 100dvh !important;
  max-width: 100vw !important;
  max-height: 100dvh !important;
  border: 0 !important;
  background: #050a12 !important;
}

#supporterApp #screenSurface.is-fullscreen #remoteFrame,
#supporterApp #screenSurface:fullscreen #remoteFrame,
#supporterApp #screenSurface:-webkit-full-screen #remoteFrame {
  width: 100vw !important;
  height: 100dvh !important;
  max-width: 100vw !important;
  max-height: 100dvh !important;
  object-fit: contain !important;
}

#supporterApp #screenSurface.has-frame .empty-screen {
  display: none;
}

#supporterApp .control-bar {
  justify-content: flex-end;
  padding: 12px 16px;
  background: #fff;
}

#supporterApp .control-bar #controlStatus {
  margin-right: auto;
}

#supporterApp .support-survey {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  gap: 24px;
  align-items: center;
  border-radius: 24px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.09);
}

#supporterApp .support-survey[hidden] {
  display: none !important;
}

#supporterApp .support-survey h2 {
  margin: 8px 0;
  color: #1f2937;
  font-size: clamp(1.5rem, 2vw, 2.2rem);
  letter-spacing: -0.04em;
}

#supporterApp .support-survey-form {
  display: grid;
  gap: 12px;
}

#supporterApp .support-survey-form label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-weight: 900;
}

#supporterApp .support-survey-form select,
#supporterApp .support-survey-form input {
  min-height: 48px;
  border: 1px solid #dbe7f5;
  border-radius: 14px;
  padding: 0 14px;
  background: #f8fafc;
}

@media (max-width: 980px) {
  #supporterApp .workspace {
    padding: 12px;
  }

  #supporterApp .support-survey {
    grid-template-columns: 1fr;
  }
}

/* Invisible IME capture field for supporter-side remote keyboard input. */
.remote-keyboard-capture {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 1px !important;
  min-height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  resize: none !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  color: transparent !important;
  background: transparent !important;
  caret-color: transparent !important;
  outline: none !important;
}

/* Supporter login persistence options. */
#supporterLoginView .login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 6px;
  color: #475569;
  font-size: 0.92rem;
}

#supporterLoginView .check-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  cursor: pointer;
  user-select: none;
}

#supporterLoginView .check-option input {
  width: 16px;
  height: 16px;
  min-height: 0;
  accent-color: #2563eb;
}

#supporterLoginView .check-option span {
  white-space: nowrap;
}

/* Auth boundary: login and console must never render in the same viewport. */
body.supporter-body {
  min-height: 100vh;
  overflow-x: hidden;
}

body.supporter-body.is-login {
  overflow: hidden;
}

#supporterLoginView[hidden],
#supporterApp[hidden],
body.supporter-body.is-login #supporterApp,
body.supporter-body.is-authenticated #supporterLoginView {
  display: none !important;
}

body.supporter-body.is-login #supporterLoginView {
  display: grid !important;
}

body.supporter-body.is-authenticated #supporterApp {
  display: grid !important;
}

body.supporter-body.is-login #supporterLoginView.auth-view {
  min-height: 100vh;
  padding: clamp(24px, 4vw, 56px);
  place-items: center;
}

body.supporter-body.is-login #supporterLoginView .auth-card {
  width: min(520px, calc(100vw - 48px));
  min-height: auto;
  display: block;
  border-radius: 28px;
  padding: clamp(30px, 4vw, 48px);
}

body.supporter-body.is-login #supporterLoginView .auth-card h1 {
  margin: 28px 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
}

body.supporter-body.is-login #supporterLoginView .auth-card > .muted {
  margin-bottom: 28px;
  font-size: 1rem;
}

body.supporter-body.is-login #supporterLoginView #loginForm {
  display: grid;
  gap: 16px;
}
