:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", Tahoma, Arial, sans-serif;
  letter-spacing: 0;
  color: #16252b;
  background: #f6f8f7;
  --brand: #54af3a;
  --brand-strong: #3e952b;
  --brand-soft: #eaf7e6;
  --ink: #16252b;
  --text: #26383f;
  --muted: #6f7f85;
  --subtle: #98a5a9;
  --line: #e3e9e7;
  --line-strong: #cfdad7;
  --surface: #ffffff;
  --surface-soft: #f8faf9;
  --danger: #bd5540;
  --shadow: 0 24px 80px rgba(26, 43, 48, .10);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: #f6f8f7; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 18%, rgba(84, 175, 58, .10), transparent 28%),
    linear-gradient(135deg, #fbfcfb 0%, #f5f7f6 48%, #eef4f0 100%);
}
button, input, textarea { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .64; }

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.auth-panel {
  width: min(1120px, 100%);
  min-height: 720px;
  overflow: hidden;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(215, 224, 221, .86);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.topbar,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 30px;
}

.topbar { border-bottom: 1px solid rgba(226, 234, 231, .82); }
.logo { width: 154px; height: auto; display: block; }
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}
.environment-label {
  color: #66777d;
  font-size: 12px;
  font-weight: 700;
  direction: ltr;
}
.locale-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  color: #4d6269;
  border: 1px solid #dfe8e5;
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}
.locale-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}
.locale-menu {
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 20;
  display: grid;
  min-width: 138px;
  padding: 6px;
  border: 1px solid #dfe8e5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(37, 52, 58, .13);
}
.locale-menu[hidden] {
  display: none;
}
.locale-menu button {
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  color: #344a52;
  background: transparent;
  text-align: start;
  font: inherit;
  font-size: 12px;
  font-weight: 720;
}
.locale-menu button:hover,
.locale-menu button.active {
  color: var(--brand-strong);
  background: #f0f7f2;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(392px, .74fr);
  min-height: 588px;
  direction: ltr;
}

.art-region {
  position: relative;
  direction: rtl;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 588px;
  padding: 52px;
  border-right: 1px solid rgba(226, 234, 231, .78);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(247, 251, 248, .92)),
    radial-gradient(circle at 40% 32%, rgba(84, 175, 58, .16), transparent 34%);
}

.orbit-visual {
  position: relative;
  min-height: 316px;
  direction: ltr;
}

.visual-card {
  position: absolute;
  border: 1px solid rgba(203, 218, 212, .90);
  border-radius: 8px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 18px 52px rgba(33, 52, 58, .10);
}

.visual-card-main {
  inset: 32px auto auto 18px;
  width: min(330px, 84%);
  min-height: 204px;
  padding: 20px;
}

.visual-card-header {
  display: flex;
  gap: 6px;
  margin-bottom: 22px;
}
.visual-card-header span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d9e4e0;
}
.identity-mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 24px;
  color: var(--brand);
  border: 1px solid #d6ead0;
  border-radius: 8px;
  background: #f4fbf2;
}
.identity-mark svg,
.visual-card-small svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.signal-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
}
.signal-row span,
.signal-row strong,
.visual-card-small span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: #dfe8e5;
}
.signal-row strong { background: #eef4f2; }
.signal-row.small { grid-template-columns: 54px 1fr; opacity: .78; }

.visual-card-small {
  right: 20px;
  bottom: 12px;
  display: grid;
  grid-template-columns: 34px 84px;
  gap: 12px;
  align-items: center;
  width: 174px;
  padding: 16px;
  color: #4f6770;
}

.connection-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(84, 175, 58, .34), transparent);
  transform-origin: left center;
}
.line-one { width: 210px; left: 166px; top: 126px; transform: rotate(14deg); }
.line-two { width: 160px; left: 252px; top: 205px; transform: rotate(0deg); opacity: .72; }

.art-copy { max-width: 430px; }
.art-copy h2 {
  margin: 0 0 12px;
  color: #1f3036;
  font-size: 26px;
  line-height: 1.65;
  font-weight: 800;
}
.art-copy p {
  margin: 0;
  color: #63747a;
  font-size: 14px;
  line-height: 2;
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 34px 0 0;
}
.trust-list div {
  min-height: 72px;
  padding: 12px;
  border: 1px solid #e2ebe8;
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
}
.trust-list dt {
  margin: 0 0 4px;
  color: #3f9440;
  font-size: 12px;
  font-weight: 800;
  direction: ltr;
}
.trust-list dd {
  margin: 0;
  color: #5e7076;
  font-size: 11px;
  line-height: 1.7;
}

.form-region {
  direction: rtl;
  display: grid;
  place-items: center;
  padding: 54px 56px;
}
.form-content { width: min(408px, 100%); }

.mode-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  padding: 4px;
  margin-bottom: 36px;
  border: 1px solid #e0e9e6;
  border-radius: 8px;
  background: #f6f9f8;
}
.mode-button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  color: #75858a;
  background: transparent;
  font-size: 13px;
  font-weight: 750;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.mode-button.active {
  color: #20343b;
  background: #fff;
  box-shadow: 0 1px 6px rgba(39, 59, 65, .10);
}

h1 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.55;
  font-weight: 850;
}
p { margin: 0; }
#screen-copy {
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
}
.field-group { margin-bottom: 17px; }
.field-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.preflight-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 18px;
  padding: 14px 15px;
  border: 1px solid #d6e4dc;
  border-radius: 8px;
  background: #f7fbf6;
}
.preflight-panel[hidden] { display: none; }
.preflight-panel strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}
.preflight-panel p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.preflight-panel[data-status="valid"] {
  border-color: #c7e6bf;
  background: #f3fbf1;
}
.preflight-panel[data-status="invalid"],
.preflight-panel[data-status="expired"],
.preflight-panel[data-status="used"],
.preflight-panel[data-status="revoked"],
.preflight-panel[data-status="phone_mismatch"],
.preflight-panel[data-status="reserved"] {
  border-color: #f0cfb9;
  background: #fff7f1;
}
.preflight-panel[data-status="invalid"] strong,
.preflight-panel[data-status="expired"] strong,
.preflight-panel[data-status="used"] strong,
.preflight-panel[data-status="revoked"] strong,
.preflight-panel[data-status="phone_mismatch"] strong,
.preflight-panel[data-status="reserved"] strong {
  color: #a7481d;
}
.preflight-panel .text-action {
  margin: 0;
  white-space: nowrap;
}
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.optional-label {
  color: #93a0a5;
  font-size: 11px;
  font-weight: 500;
}
label {
  display: block;
  margin-bottom: 8px;
  color: #34484f;
  font-size: 13px;
  font-weight: 800;
}
input,
textarea {
  width: 100%;
  min-height: 54px;
  border: 1px solid #d4dfdc;
  border-radius: 7px;
  outline: none;
  padding: 0 15px;
  color: var(--ink);
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
textarea {
  min-height: 120px;
  padding-block: 14px;
  resize: vertical;
  line-height: 1.8;
}
input::placeholder,
textarea::placeholder { color: #a4b0b4; }
input:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(84, 175, 58, .12);
}
.phone-control,
.username-control {
  display: flex;
  align-items: center;
  direction: ltr;
  border: 1px solid #d4dfdc;
  border-radius: 7px;
  overflow: hidden;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.phone-control:focus-within,
.username-control:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(84, 175, 58, .12);
}
.phone-control input,
.username-control input {
  direction: rtl;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.username-control input {
  direction: ltr;
  text-align: left;
}
.prefix {
  align-self: stretch;
  display: grid;
  place-items: center;
  min-width: 58px;
  padding: 0 12px;
  color: #52676e;
  border-right: 1px solid #e3ebe8;
  background: #f9fbfa;
  font-size: 13px;
  font-weight: 750;
}
.suffix {
  align-self: stretch;
  display: grid;
  place-items: center;
  min-width: 94px;
  padding: 0 12px;
  color: #52676e;
  border-left: 1px solid #e3ebe8;
  background: #f9fbfa;
  font-size: 13px;
  font-weight: 750;
}
.password-meter {
  position: relative;
  height: 8px;
  margin: 10px 0 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f0;
}
.password-meter span {
  display: block;
  width: var(--strength, 0%);
  height: 100%;
  border-radius: inherit;
  background: #c94f2d;
  transition: width .18s ease, background .18s ease;
}
.password-meter[data-score="2"] span { background: #d8a11f; }
.password-meter[data-score="3"] span,
.password-meter[data-score="4"] span { background: var(--brand); }
.password-checklist {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.password-checklist li {
  position: relative;
  padding-right: 18px;
  color: #77878c;
  font-size: 12px;
  line-height: 1.8;
}
.password-checklist li::before {
  content: "";
  position: absolute;
  top: .72em;
  right: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c5d0cd;
}
.password-checklist li.pass {
  color: #3f7d36;
}
.password-checklist li.pass::before {
  background: var(--brand);
}
.primary-button {
  width: 100%;
  min-height: 54px;
  margin-top: 4px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: var(--brand);
  font-weight: 850;
  box-shadow: 0 12px 28px rgba(84, 175, 58, .22);
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.primary-button:hover {
  background: var(--brand-strong);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(63, 149, 43, .25);
}
.registration-link,
.text-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  color: #39862b;
  background: transparent;
  font-size: 13px;
  font-weight: 750;
}
.registration-link {
  margin: 18px auto 0;
}
.registration-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.text-action { margin: 8px 0 0; color: #52696f; }
.text-action:hover,
.registration-link:hover { color: var(--brand-strong); }
.secondary-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-top: 12px;
}
.secondary-actions .text-action { margin: 0; }
.otp-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
}
.otp-timer {
  color: #89979b;
  font-size: 12px;
  white-space: nowrap;
}
.security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
  color: #6f7f85;
  font-size: 12px;
  font-weight: 700;
}
.security-note svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.form-error {
  min-height: 24px;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.8;
}
.form-error.success { color: var(--brand-strong); }
.success-panel {
  text-align: center;
  padding: 22px 0 8px;
}
.success-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: 0 auto 16px;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  font-size: 24px;
  box-shadow: 0 12px 28px rgba(84, 175, 58, .22);
}
.success-panel h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 21px;
}
.success-panel p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}
.success-details {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  text-align: right;
}
.success-details div {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid #dfebe6;
  border-radius: 8px;
  background: #fbfdfb;
}
.success-details strong {
  color: #294048;
  font-size: 12px;
}
.success-details span {
  color: #65777d;
  font-size: 12px;
  line-height: 1.7;
}
.secondary-button {
  min-height: 42px;
  margin-top: 20px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #42565e;
  background: #fff;
  font-size: 13px;
  font-weight: 750;
}

.info-panel {
  padding: 4px 0 8px;
}
.info-panel-header {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 18px;
}
.info-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #2f8733;
  border: 1px solid #d7e9d2;
  border-radius: 8px;
  background: #f3fbf1;
  font-size: 20px;
  font-weight: 850;
}
.info-panel h2 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.6;
}
.info-panel p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}
.info-grid {
  display: grid;
  gap: 10px;
}
.info-grid > div:not(.account-center) {
  display: grid;
  gap: 4px;
  min-height: 64px;
  padding: 12px;
  border: 1px solid #e1eae7;
  border-radius: 8px;
  background: #fff;
}
.info-grid > div:not(.account-center) > strong {
  color: #294048;
  font-size: 12px;
}
.info-grid > div:not(.account-center) > span {
  color: #65777d;
  font-size: 12px;
  line-height: 1.8;
  unicode-bidi: plaintext;
}
.account-center {
  display: grid;
  gap: 14px;
}
.account-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  max-height: 178px;
  overflow: auto;
  padding: 4px;
  border: 1px solid #e1eae7;
  border-radius: 8px;
  background: #f7faf9;
}
.account-nav button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  color: #61757b;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}
.account-nav button.active {
  color: #20343b;
  background: #fff;
  box-shadow: 0 1px 6px rgba(39, 59, 65, .10);
}
.account-section {
  display: grid;
  gap: 10px;
}
.page-note {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #dce8e3;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(248, 251, 249, .96));
}
.page-note strong {
  color: #223840;
  font-size: 14px;
  line-height: 1.7;
}
.page-note p {
  color: #64777d;
  font-size: 12px;
  line-height: 1.9;
}
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}
.profile-completion-note {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #f1d7a8;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 251, 241, .98), rgba(255, 247, 229, .96));
}
.profile-completion-note strong {
  color: #6f4c12;
  font-size: 14px;
  line-height: 1.7;
}
.profile-completion-note p,
.profile-completion-note small {
  margin: 0;
  color: #735f3b;
  font-size: 12px;
  line-height: 1.9;
}
.account-cards {
  display: grid;
  gap: 10px;
}
.account-card {
  display: grid;
  gap: 5px;
  min-height: 62px;
  padding: 12px;
  border: 1px solid #e1eae7;
  border-radius: 8px;
  background: #fff;
}
.account-card.danger {
  border-color: #efc8c0;
  background: #fff8f6;
}
.account-card strong {
  color: #294048;
  font-size: 12px;
}
.account-card span,
.account-card small {
  color: #65777d;
  font-size: 12px;
  line-height: 1.8;
  unicode-bidi: plaintext;
}
.session-action {
  display: grid;
  gap: 8px;
}
.service-summary {
  display: grid;
  gap: 5px;
}
.mobile-change-launcher {
  display: grid;
  gap: 10px;
}
.mobile-change-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid #d8e4e0;
  border-radius: 8px;
  background: #fff;
}
.mobile-change-control input {
  min-width: 0;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  color: #21353c;
  background: transparent;
  direction: ltr;
  font: inherit;
  font-size: 13px;
}
.mobile-change-control .inline-action {
  align-self: stretch;
  margin: 0;
  border-block: 0;
  border-left: 0;
  border-radius: 0;
}
.service-summary .inline-action {
  margin-top: 3px;
}
.service-summary small {
  color: #87959a;
  font-size: 11px;
}
.username-status {
  min-height: 22px;
  margin: 7px 0 0;
  color: #65777d;
  font-size: 12px;
  line-height: 1.8;
  unicode-bidi: plaintext;
}
.username-status[data-status="available"] {
  color: #2f8733;
}
.username-status[data-status="taken"],
.username-status[data-status="invalid"] {
  color: #9f3123;
}
.username-status[data-status="checking"],
.username-status[data-status="preview"] {
  color: #725f17;
}
.service-ready,
.service-planned {
  justify-self: start;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
}
.service-ready {
  color: #2f8733;
  background: #eef9ec;
}
.service-planned {
  color: #725f17;
  background: #fff8db;
}
.inline-danger {
  justify-self: start;
  min-height: 34px;
  padding: 0 12px;
  color: #9f3123;
  border: 1px solid #efc8c0;
  border-radius: 8px;
  background: #fff7f5;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.inline-danger:disabled {
  cursor: wait;
  opacity: .68;
}
.inline-action {
  justify-self: start;
  min-height: 34px;
  padding: 0 12px;
  color: #2f8733;
  border: 1px solid #c9e4c3;
  border-radius: 8px;
  background: #f3fbf1;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}
.inline-action.compact {
  min-height: 30px;
  padding-inline: 10px;
}
.inline-action:disabled {
  color: #7e8d91;
  border-color: #dde6e3;
  background: #f7faf9;
  cursor: not-allowed;
}
.ops-panel {
  display: grid;
  gap: 12px;
  padding: 13px;
  border: 1px solid #e1eae7;
  border-radius: 8px;
  background: #fff;
}
.ops-field {
  display: grid;
  gap: 7px;
  margin: 0;
}
.ops-field span,
.ops-check span {
  color: #34484f;
  font-size: 12px;
  font-weight: 800;
}
.ops-check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
}
.ops-check input {
  width: 18px;
  min-height: 18px;
}
.ops-field select {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  color: #233940;
  border: 1px solid #d8e4e0;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.ops-list {
  display: grid;
  gap: 8px;
}
.ops-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e1eae7;
  border-radius: 8px;
  background: #fff;
}
.ops-row span {
  color: #65777d;
  font-size: 12px;
  line-height: 1.8;
  unicode-bidi: plaintext;
}
.ops-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
}

footer {
  color: #839196;
  border-top: 1px solid rgba(226, 234, 231, .82);
  font-size: 11px;
}
footer div { display: flex; gap: 18px; }
footer a { color: #687b81; text-decoration: none; }
footer a:hover { color: #3f9440; }

@media (max-width: 920px) {
  .shell { padding: 0; background: #fff; }
  body { background: #fff; }
  .auth-panel {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .topbar { padding: 20px; }
  .logo { width: 132px; }
  .environment-label { display: none; }
  .content-grid {
    display: block;
    min-height: auto;
  }
  .art-region {
    display: none;
  }
  .form-region {
    min-height: auto;
    place-items: start center;
    padding: 42px 22px 72px;
  }
  .form-content { width: min(430px, 100%); }
  h1 { font-size: 25px; }
  .profile-grid { grid-template-columns: 1fr; gap: 0; }
  .preflight-panel {
    align-items: stretch;
    flex-direction: column;
  }
  .preflight-panel .text-action {
    align-self: flex-start;
  }
  .account-nav {
    display: flex;
    max-height: none;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }
  .account-nav button {
    flex: 0 0 auto;
    min-width: 104px;
    padding-inline: 12px;
    white-space: nowrap;
  }
  .mobile-change-control {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .mobile-change-control .inline-action {
    grid-column: 1 / -1;
    min-height: 42px;
    border-top: 1px solid #d8e4e0;
    border-right: 0;
  }
  .ops-row { grid-template-columns: 1fr; }
  .secondary-actions { display: grid; justify-items: center; }
  footer {
    padding: 16px 20px;
    flex-wrap: wrap;
    gap: 10px;
  }
}

@media (max-width: 420px) {
  .topbar-actions { gap: 8px; }
  .locale-button { padding: 0 9px; }
  .mode-button { font-size: 12px; }
  .form-region { padding-inline: 18px; }
  .secondary-actions { gap: 9px; }
}
