:root {
  color-scheme: dark;
  --bg: #090909;
  --bg-soft: #111214;
  --panel: rgba(13, 14, 17, 0.84);
  --panel-soft: rgba(24, 18, 16, 0.72);
  --orange: #ff4500;
  --orange-soft: rgba(255, 69, 0, 0.13);
  --orange-line: rgba(255, 69, 0, 0.58);
  --text: #f7f7f7;
  --muted: #a7a7a7;
  --line: #28292c;
  --green: #48d17a;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { min-height: 100%; background: var(--bg); }

body {
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  overscroll-behavior-y: none;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.mobile-app {
  width: min(100%, 540px);
  min-height: 100dvh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 69, 0, 0.12), transparent 32%),
    var(--bg);
  overflow-x: clip;
}

.mobile-topbar {
  min-height: calc(68px + var(--safe-top));
  padding: calc(12px + var(--safe-top)) 14px 10px;
  border-bottom: 1px solid var(--orange-line);
  background: rgba(7, 7, 8, 0.92);
  backdrop-filter: blur(16px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  position: sticky;
  width: 100%;
  top: 0;
  z-index: 20;
}

.brand-lockup { display: flex; align-items: center; gap: 9px; min-width: 0; }
.brand-lockup > span { min-width: 0; }
.brand-lockup img { width: 42px; height: 42px; object-fit: contain; }
.brand-lockup strong { display: block; color: var(--orange); font-size: 2rem; letter-spacing: -0.035em; line-height: 1; white-space: nowrap; }
.brand-lockup small { display: none; }

.active-brand-pill { max-width: 116px; padding: 7px 9px; overflow: hidden; border: 1px solid var(--orange-line); border-radius: 999px; color: var(--muted); background: var(--orange-soft); font-size: .66rem; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }

.top-actions { position: relative; min-width: 0; max-width: 100%; display: flex; gap: 6px; align-items: center; justify-self: end; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--orange); border-radius: 8px; background: var(--orange-soft); color: var(--orange); font-weight: 900; }
.icon-btn.active { background: rgba(255,69,0,.2); box-shadow: 0 0 0 3px rgba(255,69,0,.08); }
.ui-icon { width: 17px; height: 17px; flex: 0 0 auto; }
.mobile-drawer-overlay { position: fixed; inset: 0; z-index: 80; display: flex; justify-content: flex-end; background: rgba(0,0,0,.68); backdrop-filter: blur(7px); animation: drawer-overlay-in .22s ease both; }
.mobile-drawer { width: min(86vw, 340px); height: 100dvh; padding: calc(14px + var(--safe-top)) 14px calc(14px + var(--safe-bottom)); display: grid; grid-template-rows: auto auto 1fr auto; gap: 16px; border-left: 1px solid var(--orange-line); background: radial-gradient(circle at 80% 0, rgba(255,69,0,.14), transparent 28%), rgba(10,11,13,.985); box-shadow: -26px 0 70px rgba(0,0,0,.58); animation: drawer-slide-in .26s cubic-bezier(.22,.82,.24,1) both; }
.mobile-drawer-overlay.closing { animation: drawer-overlay-out .22s ease both; }
.mobile-drawer-overlay.closing .mobile-drawer { animation: drawer-slide-out .22s ease both; }
.mobile-drawer-brand { min-width: 0; display: grid; grid-template-columns: 48px minmax(0,1fr) 38px; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--orange-line); }
.mobile-drawer-brand img { width: 48px; height: 48px; object-fit: contain; }
.mobile-drawer-brand > span { min-width: 0; }
.mobile-drawer-brand strong, .mobile-drawer-brand small { display: block; }
.mobile-drawer-brand strong { color: var(--orange); font-size: 1.2rem; letter-spacing: -.025em; }
.mobile-drawer-brand small { margin-top: 2px; color: var(--muted); font-size: .65rem; text-transform: uppercase; letter-spacing: .06em; }
.mobile-drawer-brand button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--orange-line); border-radius: 8px; background: var(--orange-soft); color: var(--orange); }
.account-menu-identity { min-width: 0; padding: 11px; display: grid; grid-template-columns: 24px minmax(0,1fr); align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.025); color: var(--orange); }
.account-menu-identity > span { min-width: 0; }
.account-menu-identity strong, .account-menu-identity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-identity strong { color: var(--text); font-size: .78rem; }
.account-menu-identity small { margin-top: 3px; color: var(--muted); font-size: .66rem; }
.mobile-drawer-nav { display: grid; align-content: start; gap: 8px; }
.mobile-drawer-nav button { width: 100%; min-height: 64px; padding: 11px; display: grid; grid-template-columns: 24px minmax(0,1fr); align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.018); color: var(--orange); text-align: left; }
.mobile-drawer-nav button > span { min-width: 0; }
.mobile-drawer-nav strong, .mobile-drawer-nav small { display: block; }
.mobile-drawer-nav strong { color: var(--text); font-size: .78rem; }
.mobile-drawer-nav small { margin-top: 4px; color: var(--muted); font-size: .65rem; line-height: 1.3; }
.mobile-drawer-footer { display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); }
.mobile-drawer-footer span { width: 8px; height: 8px; border-radius: 999px; background: var(--green); box-shadow: 0 0 0 5px rgba(72,209,122,.12); }
.mobile-drawer-footer small { font-size: .66rem; font-weight: 760; text-transform: uppercase; letter-spacing: .06em; }
@keyframes drawer-slide-in { from { transform:translateX(104%); opacity:.76 } to { transform:translateX(0); opacity:1 } }
@keyframes drawer-slide-out { from { transform:translateX(0); opacity:1 } to { transform:translateX(104%); opacity:.76 } }
@keyframes drawer-overlay-in { from { background:rgba(0,0,0,0); backdrop-filter:blur(0) } to { background:rgba(0,0,0,.68); backdrop-filter:blur(7px) } }
@keyframes drawer-overlay-out { from { background:rgba(0,0,0,.68); backdrop-filter:blur(7px) } to { background:rgba(0,0,0,0); backdrop-filter:blur(0) } }

.brand-select {
  width: clamp(96px, 29vw, 146px);
  min-width: 0;
  max-width: 146px;
  min-height: 38px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--orange-line);
  border-radius: 8px;
  background: #0c0d0f;
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 800;
}

.primary-nav {
  padding: 10px 14px 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  background: rgba(9, 9, 9, 0.94);
  position: sticky;
  top: calc(68px + var(--safe-top));
  z-index: 19;
}

.tab-btn, .chip-btn {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.018);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.tab-btn.active, .chip-btn.active { border-color: var(--orange); background: var(--orange-soft); color: var(--orange); }
.tab-btn.active::before, .chip-btn.active::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 999px; background: var(--green); box-shadow: 0 0 0 5px rgba(72,209,122,.12); }

.app-main { min-height: 0; padding: 10px 14px calc(104px + var(--safe-bottom)); }
.view { display: grid; align-content: start; gap: 10px; }

.card {
  border: 1px solid var(--orange-line);
  border-radius: 11px;
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(0,0,0,.26);
  padding: 13px;
  display: grid;
  gap: 11px;
}

.card.soft { border-color: var(--line); background: rgba(18,19,22,.72); }
.section-title { display: grid; gap: 4px; text-align: center; }
.section-title h1, .section-title h2 { color: var(--text); font-size: 1rem; }
.section-title p { color: var(--muted); font-size: 0.74rem; line-height: 1.42; }

.queue-switcher { width: min(100%, 300px); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.queue-head { display: flex; justify-content: space-between; align-items: center; color: var(--orange); font-size: .84rem; font-weight: 900; }
.queue-head span { color: var(--muted); font-size: .72rem; }
.list { display: grid; gap: 8px; }

.queue-item {
  width: 100%;
  min-height: 88px;
  display: grid;
  grid-template-columns: 48px minmax(0,1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--orange-line);
  border-radius: 9px;
  background: var(--panel-soft);
  color: var(--text);
  text-align: left;
}

.score { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,69,0,.15); color: var(--orange); font-weight: 950; }
.queue-copy { min-width: 0; display: grid; gap: 4px; }
.queue-copy strong { font-size: .82rem; line-height: 1.3; }
.queue-copy small { color: var(--muted); font-size: .68rem; line-height: 1.35; }
.chevron { color: var(--orange); font-size: 1.1rem; }

.empty-state { min-height: 340px; padding: 28px 20px; border: 1px dashed var(--line); border-radius: 10px; display: grid; place-content: center; justify-items: center; gap: 13px; text-align: center; }
.empty-state img, .loading-logo { width: 76px; height: 76px; object-fit: contain; animation: logo-breathe 1.8s ease-in-out infinite; }
.empty-state strong { font-size: .94rem; }
.empty-state p { max-width: 290px; color: var(--muted); font-size: .74rem; line-height: 1.48; }
@keyframes logo-breathe { 0%,100% { opacity:.78; transform:scale(.96) } 50% { opacity:1; transform:scale(1.04) } }

.detail-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.back-btn { min-height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: var(--muted); font-size: .72rem; font-weight: 800; }
.status-chip { padding: 6px 8px; border: 1px solid var(--orange-line); border-radius: 6px; color: var(--orange); background: var(--orange-soft); font-size: .66rem; font-weight: 900; }
.target-card { display: grid; gap: 7px; padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: rgba(0,0,0,.2); }
.target-card strong { font-size: .86rem; line-height: 1.35; }
.target-card small, .target-body { color: var(--muted); font-size: .7rem; line-height: 1.45; }
.target-body { max-height: 140px; overflow: auto; white-space: pre-wrap; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 5px 7px; border: 1px solid var(--orange-line); border-radius: 5px; color: var(--orange); background: var(--orange-soft); font-size: .63rem; font-weight: 850; }

.field { display: grid; gap: 6px; }
.field > span { color: var(--muted); font-size: .68rem; font-weight: 850; text-transform: uppercase; }
.input, .textarea {
  width: 100%;
  border: 1px solid var(--orange-line);
  border-radius: 8px;
  background: #0a0b0e;
  color: var(--text);
  padding: 11px;
  outline: none;
}
.input { min-height: 46px; }
.textarea { min-height: 180px; resize: vertical; line-height: 1.48; }
.input:focus, .textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,69,0,.1); }

.button-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.button-row.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.btn { min-height: 44px; padding: 0 11px; border: 1px solid var(--orange); border-radius: 8px; background: var(--orange); color: #fff; font-size: .74rem; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.button-row.three .btn { min-width: 0; padding-inline: 6px; font-size: clamp(.61rem, 2.75vw, .72rem); }
.btn.secondary { background: transparent; color: var(--orange); }
.btn.saved { border-color: var(--green); background: rgba(72,209,122,.12); color: var(--green); }
.btn.muted { border-color: var(--line); background: rgba(255,255,255,.025); color: var(--muted); }
.btn:disabled { opacity:.48; cursor:not-allowed; }
.status-copy { min-height: 18px; color: var(--muted); font-size: .69rem; line-height: 1.4; text-align: center; }
.status-copy.error { color: #ff9770; }

.heat-card { border-color: var(--orange-line); }
.heat-row { min-height: 36px; display: grid; grid-template-columns: auto minmax(60px,1fr) auto; align-items: center; gap: 8px; padding: 5px 7px; border: 1px solid var(--orange-line); border-radius: 7px; background: var(--orange-soft); }
.heat-chip { display: inline-flex; align-items: center; gap: 6px; color: var(--orange); font-size: .68rem; font-weight: 900; white-space: nowrap; }
.heat-chip i { width: 8px; height: 8px; border-radius: 999px; background: var(--green); box-shadow: 0 0 0 4px rgba(72,209,122,.12); }
.heat-meter-track { height: 7px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.12); }
.heat-meter-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--orange); transition: width .24s ease; }
.heat-row > strong { font-size: .68rem; white-space: nowrap; }
.metric-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.metric { min-height: 66px; display: grid; place-content: center; justify-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 8px; background: rgba(0,0,0,.18); }
.metric strong { color: var(--orange); font-size: 1.05rem; }
.metric span { color: var(--muted); font-size: .65rem; font-weight: 800; }

.support-overlay { position: fixed; inset: 0; z-index: 90; padding: calc(14px + var(--safe-top)) 14px calc(14px + var(--safe-bottom)); display: grid; place-items: center; background: rgba(0,0,0,.76); backdrop-filter: blur(10px); }
.support-modal { width: min(100%, 480px); max-height: calc(100dvh - 28px - var(--safe-top) - var(--safe-bottom)); overflow: auto; padding: 14px; display: grid; gap: 12px; border: 1px solid var(--orange-line); border-radius: 12px; background: rgba(13,14,17,.98); box-shadow: 0 28px 90px rgba(0,0,0,.7); }
.support-head { display: flex; justify-content: space-between; align-items: center; color: var(--orange); }
.support-head > span { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--orange-line); border-radius: 8px; background: var(--orange-soft); }
.support-head button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted); }
.support-title { text-align: left; }
.support-email { color: var(--orange); font-size: .78rem; font-weight: 850; text-decoration: none; }
.support-note { padding: 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: rgba(255,255,255,.02); font-size: .7rem; line-height: 1.42; }
.support-form { display: grid; gap: 10px; }
.support-message { min-height: 128px; }
.support-success { min-height: 360px; display: grid; align-content: center; justify-items: center; gap: 12px; text-align: center; }
.support-success img { width: 76px; height: 76px; object-fit: contain; animation: logo-breathe 1.8s ease-in-out infinite; }
.support-success h2 { font-size: 1.08rem; }
.support-success p { color: var(--muted); font-size: .76rem; line-height: 1.45; }
.support-success a { color: var(--orange); }
.support-success .btn { width: 100%; margin-top: 6px; }

.mobile-footer-nav {
  position: fixed;
  left: 50%;
  bottom: calc(10px + var(--safe-bottom));
  z-index: 50;
  width: min(calc(100% - 20px), 520px);
  min-height: 72px;
  padding: 7px 6px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2px;
  transform: translateX(-50%);
  border: 1px solid var(--orange-line);
  border-radius: 18px;
  background: rgba(9,10,12,.9);
  box-shadow: 0 18px 54px rgba(0,0,0,.62), 0 0 0 1px rgba(255,255,255,.025) inset;
  backdrop-filter: blur(20px) saturate(1.2);
}
.footer-nav-item { min-width: 0; min-height: 56px; padding: 6px 1px; display: grid; place-items: center; align-content: center; gap: 5px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); }
.footer-nav-item .ui-icon { width: 20px; height: 20px; }
.footer-nav-item span { max-width: 100%; overflow: hidden; font-size: clamp(.5rem, 2.2vw, .61rem); font-weight: 820; text-overflow: ellipsis; white-space: nowrap; }
.footer-nav-item.active { color: var(--orange); background: var(--orange-soft); box-shadow: 0 0 0 1px rgba(255,69,0,.24) inset; }

.search-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; }
.search-row .btn { min-width: 92px; }
.saved-copy { color: var(--green) !important; font-weight: 800; }
.textarea.compact { min-height: 96px; }
.settings-actions { display: grid; gap: 8px; }
.settings-actions button { width: 100%; min-height: 68px; padding: 11px; display: grid; grid-template-columns: 25px minmax(0,1fr) auto; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.018); color: var(--orange); text-align: left; }
.settings-actions button > span { min-width: 0; }
.settings-actions strong, .settings-actions small { display: block; }
.settings-actions strong { color: var(--text); font-size: .79rem; }
.settings-actions small { margin-top: 4px; color: var(--muted); font-size: .66rem; }
.settings-actions b { color: var(--orange); font-size: 1.05rem; }
.tutorial-list { display: grid; gap: 8px; }
.tutorial-card { padding: 11px; display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 10px; align-items: start; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.018); }
.tutorial-card > span { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--orange-line); border-radius: 8px; color: var(--orange); background: var(--orange-soft); }
.tutorial-card small, .tutorial-card strong, .tutorial-card p { display: block; }
.tutorial-card small { color: var(--orange); font-size: .58rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.tutorial-card strong { margin-top: 3px; font-size: .78rem; }
.tutorial-card p { margin-top: 4px; color: var(--muted); font-size: .68rem; line-height: 1.42; }
.watch-builder-section { margin-bottom: 2px; padding: 12px; display: grid; gap: 10px; border: 1px solid var(--orange-line); border-radius: 10px; background: radial-gradient(circle at 50% 0, rgba(255,69,0,.1), transparent 44%), rgba(255,255,255,.016); }
.builder-title { text-align: left; }
.builder-title h2 { color: var(--orange); }
.builder-candidates { display: grid; gap: 7px; }
.builder-candidates > small { color: var(--muted); font-size: .64rem; font-weight: 850; text-transform: uppercase; }

.auth-page { min-height: 100dvh; padding: calc(28px + var(--safe-top)) 18px calc(24px + var(--safe-bottom)); display: grid; place-items: center; background: radial-gradient(circle at 50% 12%, rgba(255,69,0,.14), transparent 34%), var(--bg); }
.auth-card { width: min(100%, 430px); min-height: min(700px, calc(100dvh - 52px)); align-content: center; text-align: center; gap: 16px; }
.auth-logo { display: grid; justify-items: center; gap: 10px; }
.auth-logo img { width: 96px; height: 96px; object-fit: contain; animation: logo-breathe 1.8s ease-in-out infinite; }
.auth-logo h1 { font-size: 1.65rem; }
.auth-logo p, .auth-note { color: var(--muted); font-size: .78rem; line-height: 1.45; }
.auth-form { display: grid; gap: 10px; }
.auth-remember {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 750;
  text-align: left;
}
.auth-remember input {
  appearance: none;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  display: grid;
  place-items: center;
  border: 1px solid var(--orange-line);
  border-radius: 5px;
  background: #0a0b0e;
}
.auth-remember input::after { content: "✓"; color: #fff; font-size: .72rem; font-weight: 950; opacity: 0; transform: scale(.7); transition: .14s ease; }
.auth-remember input:checked { border-color: var(--orange); background: var(--orange); }
.auth-remember input:checked::after { opacity: 1; transform: scale(1); }
.auth-remember input:focus-visible { outline: 2px solid color-mix(in srgb, var(--orange) 55%, transparent); outline-offset: 2px; }
.auth-error { min-height: 18px; color: #ff9770; font-size: .72rem; }
.wordmark { color: var(--orange); font-size: 1.45rem; font-weight: 950; }
.install-wrap { display: grid; gap: 7px; padding-top: 2px; }
.install-btn { background: transparent; color: var(--orange); }
.install-wrap p { color: var(--muted); font-size: .68rem; line-height: 1.4; }

.startup-splash { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; background: radial-gradient(circle at 50% 42%, rgba(255,69,0,.16), transparent 34%), #090909; opacity: 0; transition: opacity .24s ease; }
.startup-splash.show { display: grid; opacity: 1; }
.startup-splash.leaving { opacity: 0; pointer-events: none; }
.startup-splash > div { display: grid; justify-items: center; gap: 9px; }
.startup-splash img { width: 112px; height: 112px; object-fit: contain; animation: splash-pulse 1.45s ease-in-out infinite; filter: drop-shadow(0 0 22px rgba(255,69,0,.2)); }
.startup-splash strong { color: var(--orange); font-size: 1.55rem; letter-spacing: -.03em; }
.startup-splash span { color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
@keyframes splash-pulse { 0%,100% { opacity:.72; transform:scale(.92) } 50% { opacity:1; transform:scale(1.06) } }

.toast { position: fixed; left: 50%; bottom: calc(18px + var(--safe-bottom)); z-index: 100; width: min(calc(100% - 28px), 500px); transform: translate(-50%, 18px); padding: 11px 13px; border: 1px solid var(--orange); border-radius: 8px; background: rgba(14,8,6,.96); color: var(--orange); font-size: .74rem; font-weight: 850; text-align: center; opacity: 0; pointer-events: none; transition: .18s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.skeleton { min-height: 300px; display: grid; place-items: center; }

@media (min-width: 700px) {
  body { padding: 18px; }
  .mobile-app { min-height: calc(100dvh - 36px); border: 1px solid var(--orange-line); border-radius: 16px; overflow: hidden; box-shadow: 0 28px 90px rgba(0,0,0,.5); }
  .auth-page { min-height: calc(100dvh - 36px); border-radius: 16px; }
}

@media (max-width: 380px) {
  .brand-lockup strong { font-size: 2rem; }
  .mobile-topbar { padding-inline: 8px; gap: 6px; }
  .brand-lockup { gap: 6px; }
  .brand-lockup img { width: 34px; height: 34px; }
  .brand-select { width: 88px; max-width: 88px; padding-left: 7px; padding-right: 20px; font-size: .66rem; }
  .button-row.three { gap: 5px; }
  .button-row.three .btn { padding-inline: 4px; font-size: .59rem; }
  .active-brand-pill { max-width: 88px; }
  .mobile-footer-nav { width: calc(100% - 12px); padding-inline: 3px; }
}
