.signup-notice {
  width: min(420px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  margin: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;
}
.signup-notice::backdrop { background: rgb(19 34 29 / 45%); }
.signup-notice h2 { font-size: 20px; margin: 0 0 12px; }
.signup-notice p { font-size: 14px; margin: 0 0 24px; color: var(--muted); }
.signup-notice form { margin: 0; }
.signup-notice button { width: 100%; min-height: 44px; }
.signup-notice button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

:root {
  color-scheme: light;
  --ink: #13221d;
  --muted: #5b6963;
  --line: #d9e1dd;
  --page: #f4f6f5;
  --surface: #ffffff;
  --surface-alt: #edf3f0;
  --nav: #10231e;
  --accent: #08766a;
  --accent-strong: #04594f;
  --accent-soft: #dff2ed;
  --warning: #a34716;
  --danger: #ae2f3d;
  --shadow: 0 14px 32px rgba(18, 34, 29, 0.08);
}

* { box-sizing: border-box; }

html { width: 100%; min-width: 0; max-width: 100%; overflow-x: clip; background: var(--page); }

body {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

/* Do not flash the anonymous screen while an existing session is restored. */
body.session-pending #auth-area,
body.session-pending #account-area,
body.session-pending .topbar,
body.session-pending .intro,
body.session-pending .site-footer { visibility: hidden; }

/* A pagina publica mostra somente a entrada por telefone. */
body.session-anonymous .topbar,
body.session-anonymous .intro,
body.session-anonymous .site-footer { display: none !important; }
body.session-anonymous .app-shell { width: min(100% - 40px, 480px) !important; min-height: 100vh; display: grid; align-content: center; }
body.session-anonymous .claim-layout { display: block; border: 0; }
body.session-anonymous .claim-panel { padding: 30px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
body.session-anonymous .panel-heading p:not(.eyebrow) { margin-bottom: 24px; }
body.session-anonymous .phone-form { max-width: none; }

button, input { font: inherit; }

a { color: inherit; }

.app-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: var(--nav);
  border-radius: 6px;
  font-weight: 800;
}
.brand strong { display: block; font-size: 1rem; letter-spacing: 0; }
.brand small { display: block; color: var(--muted); font-size: 0.75rem; line-height: 1.2; }

.topnav { display: flex; align-items: center; justify-content: flex-end; gap: 18px; font-size: 0.875rem; }
.topnav a { color: var(--muted); text-decoration: none; font-weight: 650; }
.topnav a:hover { color: var(--accent-strong); }

.intro {
  padding: 58px 0 36px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}
.eyebrow { margin: 0 0 8px; color: var(--accent-strong); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 680px; margin-bottom: 12px; font-size: clamp(2rem, 3vw, 3.25rem); line-height: 1.08; letter-spacing: 0; }
h2 { margin-bottom: 8px; font-size: 1.35rem; line-height: 1.2; letter-spacing: 0; }
h3 { margin-bottom: 0; font-size: 1rem; letter-spacing: 0; }
.lead { max-width: 640px; margin-bottom: 0; color: var(--muted); font-size: 1rem; }

.support-link, .primary-button, .text-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 750;
  letter-spacing: 0;
  cursor: pointer;
}
.support-link {
  flex: 0 0 auto;
  padding: 0 15px;
  color: var(--accent-strong);
  border: 1px solid #8fc8bd;
  background: var(--surface);
  text-decoration: none;
}
.support-link:hover { background: var(--accent-soft); }
.primary-button { border: 1px solid var(--accent); background: var(--accent); color: #fff; padding: 0 17px; white-space: nowrap; }
.primary-button:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.primary-button:disabled { cursor: not-allowed; opacity: 0.55; }
.text-button { min-height: auto; padding: 4px 0; color: var(--accent-strong); border: 0; background: transparent; }
.text-button:hover { color: var(--ink); text-decoration: underline; }

.claim-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr); border-top: 1px solid var(--line); }
.claim-panel { padding: 34px 40px 38px 0; border-right: 1px solid var(--line); }
.panel-heading p:not(.eyebrow) { max-width: 530px; margin-bottom: 28px; color: var(--muted); }
.trust-panel { padding: 34px 0 34px 40px; }

form { max-width: 620px; }
label { display: block; margin-bottom: 8px; color: var(--ink); font-size: 0.875rem; font-weight: 750; }
.contract-check {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 600;
}
.contract-check input { width: 18px; min-height: 18px; margin-top: 2px; accent-color: var(--accent); }
.contract-check a { color: var(--accent-strong); font-weight: 800; text-decoration: none; }
.contract-check a:hover { text-decoration: underline; }
.phone-form { max-width: 560px; }
.phone-country-field { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; min-width: 0; }
.phone-country-field img { flex: 0 0 28px; width: 28px; height: 21px; object-fit: contain; border: 1px solid #dce3e1; }
.phone-country-field select { flex: 1; min-width: 0; width: 100%; min-height: 44px; font: inherit; border: 1px solid #dce3e1; border-radius: 6px; background: white; color: #182923; padding: 8px; }
.phone-country-field select:focus-visible { outline: 2px solid #08796d; outline-offset: 2px; }
.form-stack { display: grid; gap: 14px; }
.form-actions { display: flex; margin-top: 18px; }
.input-row { display: flex; align-items: stretch; gap: 10px; }
input {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  border: 1px solid #bfcac5;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  outline: 0;
}
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(8, 118, 106, 0.16); }
.form-note { margin: 10px 0 0; color: var(--muted); font-size: 0.8rem; }
.form-message { min-height: 20px; margin: 10px 0 0; color: var(--accent-strong); font-size: 0.85rem; font-weight: 650; }
.form-message.is-error { color: var(--danger); }
.form-message.is-success { color: var(--accent-strong); }
.modal-open { overflow: hidden; }
.operation-toast {
  position: fixed;
  z-index: 30;
  right: 24px;
  bottom: 24px;
  width: min(420px, calc(100% - 32px));
  padding: 14px 16px;
  border: 1px solid #78b9ad;
  border-radius: 6px;
  color: #073f38;
  background: #e3f5f0;
  box-shadow: 0 12px 28px rgba(18, 34, 29, 0.18);
  font-size: 0.86rem;
  font-weight: 750;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px;
  background: rgba(16, 35, 30, 0.5);
}
.auth-modal {
  width: min(100%, 480px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(18, 34, 29, 0.2);
}
.modal-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.modal-heading h2 { margin-bottom: 6px; }
.modal-heading p:not(.eyebrow) { margin-bottom: 0; color: var(--muted); font-size: 0.88rem; }
.icon-button {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border: 1px solid #bfcac5;
  border-radius: 6px;
  color: var(--accent-strong);
  background: var(--surface);
  cursor: pointer;
}
.icon-button:hover { border-color: #8fc8bd; background: var(--accent-soft); }
.modal-close { gap: 4px; width: auto; min-width: 36px; padding: 0 8px; font-size: 1.2rem; line-height: 1; }
.modal-close span { font-size: 0.68rem; font-weight: 750; }
.modal-form { max-width: none; margin-top: 20px; }
.verify-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }

.steps { display: grid; gap: 21px; margin: 18px 0 28px; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 30px 1fr; gap: 11px; align-items: start; }
.steps span { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #8fc8bd; border-radius: 50%; color: var(--accent-strong); font-size: 0.78rem; font-weight: 800; }
.steps strong, .steps small { display: block; }
.steps strong { margin-bottom: 2px; font-size: 0.88rem; }
.steps small { color: var(--muted); font-size: 0.8rem; }
.trust-footer { border-top: 1px solid var(--line); padding-top: 18px; color: var(--muted); font-size: 0.8rem; }

.account-area { margin: 42px 0 62px; padding-top: 32px; border-top: 1px solid var(--line); }
body.session-authenticated .intro { display: none; }
body.session-authenticated .account-area { margin-top: 24px; padding-top: 24px; }
.account-area:not(.hidden), .claim-layout:not(.hidden) { animation: content-enter 180ms ease-out both; }
.session-loading { min-height: 330px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr); align-items: center; gap: 34px; margin: 42px 0 62px; padding: 32px 0; border-top: 1px solid var(--line); }
.session-loading-copy h2 { margin-bottom: 8px; }
.session-loading-copy p:not(.eyebrow) { margin-bottom: 0; color: var(--muted); }
.session-loading-card { display: grid; gap: 16px; min-height: 168px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
.loading-line { display: block; width: 74%; height: 14px; border-radius: 4px; background: linear-gradient(100deg, #edf3f0 30%, #f7faf8 48%, #edf3f0 66%); background-size: 220% 100%; animation: loading-sheen 1.15s ease-in-out infinite; }
.loading-line-wide { width: 100%; height: 20px; }
.loading-line-short { width: 48%; }
@keyframes loading-sheen { to { background-position-x: -220%; } }
@keyframes content-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.account-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 20px; }
.account-heading p:not(.eyebrow) { margin-bottom: 0; color: var(--muted); }
.mobile-account-guide { display: block; margin-top: 18px; }
.mobile-guide-panel {
  padding: 18px 20px;
  border: 1px solid #c7ddd7;
  border-radius: 8px;
  background: #fbfdfc;
}
.mobile-guide-heading h2 { margin-bottom: 6px; font-size: 1.1rem; }
.mobile-guide-heading p:not(.eyebrow) { margin-bottom: 14px; color: var(--muted); font-size: 0.9rem; }
.mobile-quick-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.mobile-quick-actions .secondary-button { min-width: 150px; min-height: 42px; }
.mobile-guide-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.mobile-guide-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.mobile-guide-steps span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #8fc8bd;
  border-radius: 50%;
  color: var(--accent-strong);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}
.mobile-guide-steps strong,
.mobile-guide-steps small { display: block; }
.mobile-guide-steps strong { margin-bottom: 1px; font-size: 0.86rem; }
.mobile-guide-steps small { color: var(--muted); font-size: 0.8rem; }
.access-list { display: grid; gap: 16px; }
.client-card { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
.client-bar { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 19px 22px; border-bottom: 1px solid var(--line); background: var(--surface-alt); }
.client-bar p { margin: 4px 0 0; color: var(--muted); font-size: 0.85rem; }
.trial-status { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 22px; border-bottom: 1px solid #b9d8d1; background: #eef8f5; }
.trial-status strong { display: block; color: var(--accent-strong); font-size: 0.88rem; }
.trial-status p { margin: 3px 0 0; color: var(--muted); font-size: 0.78rem; }
.trial-status-data { display: grid; justify-items: end; gap: 3px; color: var(--muted); font-size: 0.76rem; font-weight: 700; text-align: right; }
.trial-remaining { color: var(--accent-strong); font-size: 1rem; font-weight: 850; }
.trial-status.is-finished { border-color: #edb5bc; background: #fff5f5; }
.trial-status.is-finished strong, .trial-status.is-finished .trial-remaining { color: var(--danger); }
.screen-summary { margin: 0; padding: 10px 22px; border-bottom: 1px solid var(--line); color: var(--muted); background: #fbfdfc; font-size: 0.8rem; font-weight: 700; }
.status-badge { flex: 0 0 auto; padding: 5px 9px; border: 1px solid #8fc8bd; border-radius: 999px; color: var(--accent-strong); background: #ecf8f5; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; }
.status-badge.is-inactive { border-color: #edb5bc; color: var(--danger); background: #fff3f4; }
.access-card { padding: 22px; }
.access-card + .access-card { border-top: 1px solid var(--line); }
.access-meta { display: flex; align-items: start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.access-meta p { margin: 4px 0 0; color: var(--muted); font-size: 0.82rem; }
.access-card-copy { display: inline-flex; min-width: 220px; min-height: 42px; margin: -4px 0 18px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; color: var(--muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.value-row { display: flex; align-items: center; gap: 7px; }
.value-row input { min-height: 40px; background: #fafcfb; font-size: 0.84rem; }
.copy-button, .reveal-button { min-width: 74px; min-height: 40px; padding: 0 10px; border: 1px solid #bfcac5; border-radius: 6px; background: #fff; color: var(--accent-strong); font-size: 0.75rem; font-weight: 750; cursor: pointer; }
.copy-button:hover, .reveal-button:hover { background: var(--accent-soft); border-color: #8fc8bd; }
.empty-access { padding: 18px 22px; color: var(--muted); font-size: 0.88rem; }
.claim-action { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 22px 22px; border-top: 1px solid var(--line); background: #fbfdfc; }
.claim-action-copy strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 0.9rem; }
.claim-action-copy p { margin: 0; color: var(--muted); font-size: 0.82rem; }
.claim-action-controls { display: grid; justify-items: end; gap: 6px; }
.claim-action-controls .form-message { min-height: 0; max-width: 330px; margin: 0; text-align: right; }
.claim-action.is-unavailable { background: #fafbfa; }
.claim-action.is-unavailable .claim-action-copy strong { color: var(--muted); }
.server-switch { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.server-switch-copy strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 0.9rem; }
.server-switch-copy p { margin: 0; color: var(--muted); font-size: 0.82rem; max-width: 620px; }
.server-switch-controls { display: grid; justify-items: end; gap: 8px; width: min(100%, 340px); min-width: 205px; }
.server-switch-details { display: grid; gap: 8px; width: 100%; min-width: 0; }
.server-switch-details select { width: 100%; min-width: 0; max-width: 100%; min-height: 40px; border: 1px solid #bfcac5; border-radius: 6px; padding: 0 10px; color: var(--ink); background: #fff; font: inherit; font-size: 0.8rem; text-overflow: ellipsis; }
.server-switch-warning { margin: 0; padding: 10px; border-left: 3px solid var(--warning); color: #75411f; background: #fff8ef; font-size: 0.78rem; line-height: 1.4; }
.secondary-button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid #8fc8bd; border-radius: 6px; color: var(--accent-strong); background: #fff; font: inherit; font-size: 0.78rem; font-weight: 750; text-align: center; text-decoration: none; cursor: pointer; }
.secondary-button:hover { background: var(--accent-soft); }
.danger-button { border-color: #ef9da6; color: var(--danger); }
.danger-button:hover { background: #fff3f4; }
.screen-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.screen-actions .form-message { min-height: 0; margin: 0; }
.server-switch.is-unavailable { background: #fafbfa; }
.server-switch.is-unavailable .server-switch-copy strong { color: var(--muted); }
.refresh-guide-modal { width: min(100%, 940px); max-height: min(860px, calc(100vh - 36px)); overflow: auto; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 18px 48px rgba(18, 34, 29, 0.2); }
.refresh-guide-body { display: grid; gap: 22px; margin-top: 22px; }
.refresh-hero, .refresh-recovery { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(230px, 0.9fr); gap: 22px; align-items: center; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.refresh-recovery { padding: 0; border: 0; }
.refresh-hero img, .refresh-recovery img { display: block; width: 100%; border: 1px solid var(--line); border-radius: 6px; background: #10231e; }
.refresh-hero h3, .refresh-recovery h3, .refresh-section > h3 { margin-bottom: 8px; font-size: 1rem; }
.refresh-hero p, .refresh-recovery p { margin-bottom: 0; color: var(--muted); font-size: 0.87rem; }
.refresh-section { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.refresh-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.refresh-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.refresh-steps span { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #8fc8bd; border-radius: 50%; color: var(--accent-strong); background: var(--accent-soft); font-size: 0.78rem; font-weight: 800; }
.refresh-steps strong { display: block; font-size: 0.86rem; }
.refresh-steps p { margin: 2px 0 0; color: var(--muted); font-size: 0.82rem; }
.player-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.player-guide-grid article { padding: 15px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-alt); }
.player-guide-grid strong { display: block; font-size: 0.88rem; }
.player-guide-grid p { margin: 6px 0 10px; color: var(--muted); font-size: 0.8rem; }
.player-guide-grid a { color: var(--accent-strong); font-size: 0.8rem; font-weight: 750; text-decoration: none; }
.player-guide-grid a:hover { text-decoration: underline; }
.site-footer { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.78rem; }
.site-footer a { color: var(--accent-strong); text-decoration: none; font-weight: 700; }
.site-footer a:hover { text-decoration: underline; }
.hidden { display: none !important; }

@media (max-width: 760px) {
  .app-shell { width: min(100% - 28px, 680px); }
  .topbar { min-height: 66px; padding: 12px 0; align-items: flex-start; }
  .intro { padding: 40px 0 28px; align-items: start; flex-direction: column; gap: 18px; }
  .claim-layout { grid-template-columns: 1fr; }
  .claim-panel { padding: 28px 0; border-right: 0; }
  .trust-panel { padding: 26px 0; border-top: 1px solid var(--line); }
  .account-area { margin-top: 30px; padding-top: 28px; }
  .session-loading { grid-template-columns: 1fr; min-height: 300px; gap: 24px; margin-top: 30px; padding-top: 28px; }
  .account-heading { align-items: start; flex-direction: column; gap: 14px; }
  .mobile-account-guide { display: block; margin-top: 16px; }
  .field-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .server-switch { align-items: start; flex-direction: column; }
  .server-switch-controls { width: 100%; max-width: 420px; justify-items: stretch; }
}

@media (max-width: 480px) {
  html { min-width: 0; overflow-x: hidden; }
  body { width: 100%; min-width: 0; overflow-x: hidden; overscroll-behavior-x: none; touch-action: pan-y; font-size: 15px; }
  .topbar { gap: 12px; flex-direction: row; align-items: center; }
  h1 { font-size: 2rem; }
  .app-shell { width: min(100% - 32px, 360px); max-width: calc(100vw - 32px); overflow-x: hidden; }
  .topbar { min-height: 58px; }
  .brand small { display: none; }
  .intro { padding: 22px 0 16px; gap: 12px; }
  .intro h1 { margin-bottom: 8px; font-size: 1.58rem; line-height: 1.12; }
  .lead { font-size: 0.92rem; }
  .portal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
  .account-area { margin: 14px 0 34px; padding-top: 16px; }
  body.session-authenticated .account-area { max-width: 360px; margin-left: auto; margin-right: auto; border-top: 0; }
  .account-heading { margin-bottom: 12px; gap: 8px; }
  .account-heading h2 { margin-bottom: 4px; font-size: 1.25rem; }
  .account-heading p:not(.eyebrow) { font-size: 0.88rem; }
  .mobile-guide-panel { padding: 16px; border-color: #9fd1c7; background: linear-gradient(180deg, #ffffff 0%, #eef8f5 100%); box-shadow: 0 10px 24px rgba(18, 34, 29, 0.08); }
  .mobile-guide-heading h2 { margin-bottom: 6px; font-size: 1.2rem; line-height: 1.2; }
  .mobile-guide-heading p:not(.eyebrow) { margin-bottom: 14px; color: var(--muted); font-size: 0.9rem; }
  .mobile-quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 0; }
  .mobile-quick-actions .primary-button,
  .mobile-quick-actions .secondary-button { width: 100%; min-height: 48px; padding: 0 10px; font-size: 0.86rem; }
  .mobile-quick-actions .primary-button:first-child { grid-column: 1 / -1; }
  .mobile-guide-steps { grid-template-columns: 1fr; gap: 10px; margin-top: 14px; }
  .client-card { width: 100%; max-width: 100%; border-radius: 7px; box-shadow: none; overflow: hidden; }
  .client-bar { padding: 12px; }
  .client-bar h3 { font-size: 0.92rem; }
  .client-bar p { font-size: 0.74rem; }
  .status-badge { align-self: flex-start; }
  .trial-status { align-items: start; flex-direction: column; gap: 8px; padding: 12px; }
  .trial-status-data { justify-items: start; text-align: left; }
  .screen-summary { padding: 9px 12px; }
  .access-card { padding: 12px; }
  .access-meta { margin-bottom: 14px; gap: 8px; }
  .access-meta h3 { font-size: 0.96rem; }
  .access-card-copy { width: min(100%, 248px); min-height: 40px; margin: 0 auto 12px; font-size: 0.78rem; }
  .field-grid { gap: 9px; }
  .field-label { margin-bottom: 5px; }
  .value-row input { min-height: 40px; font-size: 0.78rem; padding: 0 10px; }
  .copy-button, .reveal-button { min-height: 40px; min-width: 0; }
  .server-switch { width: 100%; max-width: 100%; margin-top: 15px; padding-top: 14px; gap: 12px; overflow: hidden; }
  .server-switch-copy p { font-size: 0.8rem; }
  .input-row { flex-direction: column; }
  .primary-button { width: 100%; }
  .modal-open { overflow: clip; }
  .modal-backdrop { align-items: start; padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); }
  .operation-toast { right: 14px; bottom: 14px; width: calc(100% - 28px); }
  .auth-modal { width: 100%; max-height: calc(100dvh - 24px); padding: 16px; }
  .client-bar, .access-meta, .site-footer { align-items: start; flex-direction: column; }
  .claim-action { align-items: start; flex-direction: column; }
  .refresh-hero, .refresh-recovery { grid-template-columns: 1fr; }
  .claim-action-controls { width: 100%; justify-items: stretch; }
  .server-switch-controls, .server-switch-details { width: 100%; justify-items: stretch; }
  .claim-action-controls .form-message { max-width: none; text-align: left; }
  .value-row { display: grid; grid-template-columns: minmax(0, 1fr) 58px; align-items: stretch; gap: 6px; width: 100%; max-width: 100%; }
  .value-row input { min-width: 0; width: 100%; }
  .copy-button, .reveal-button { width: 58px; padding: 0 5px; font-size: 0.66rem; }
  .field:has(.reveal-button) .value-row { grid-template-columns: minmax(0, 1fr) 58px 58px; }
  .refresh-guide-modal { max-height: calc(100dvh - 24px); padding: 16px; }
  .player-guide-grid { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .topnav { gap: 8px; font-size: 0.76rem; }
  .access-card, .client-bar { padding-left: 12px; padding-right: 12px; }
  .value-row { grid-template-columns: 1fr; }
  .field:has(.reveal-button) .value-row { grid-template-columns: 1fr 1fr; }
  .field:has(.reveal-button) .value-row input { grid-column: 1 / -1; }
  .copy-button, .reveal-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .account-area:not(.hidden), .claim-layout:not(.hidden), .loading-line { animation: none; }
}

.content-preference { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); min-width: 0; }
.content-preference label, .content-preference .form-message { grid-column: 1 / -1; }
.content-preference label { font-size: 0.85rem; font-weight: 700; }
.content-preference select { width: 100%; min-width: 0; min-height: 44px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface, #fff); color: var(--ink); font: inherit; }
.content-preference button { min-height: 44px; white-space: normal; }
@media (max-width: 480px) {
  .content-preference { grid-template-columns: minmax(0, 1fr); }
  .content-preference button { width: 100%; }
}
