/* POP Maker account shell · local prototype */

:root { --sidebar-w: 248px; --sidebar-collapsed-w: 72px; }

.sidebar-toggle {
  width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-content: center; gap: 4px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--card); cursor: pointer;
}
.sidebar-toggle-icon { width: 20px; height: 18px; display: block; }
.sidebar-toggle-icon-collapsed { display: none; }
body.nav-collapsed .sidebar-toggle-icon-collapsed { display: block; }
body.nav-collapsed .sidebar-toggle-icon-expanded { display: none; }
.sidebar-toggle:hover { border-color: rgba(255,255,255,.24); }

.sidebar-brand-card {
  position: fixed; z-index: 21; top: 24px; left: 24px; width: calc(var(--sidebar-w) - 24px);
  min-height: 56px; display: flex; align-items: center; gap: 10px; padding: 10px;
  border: 0; border-radius: 14px; background: transparent;
  box-shadow: none; transition: width .2s var(--ease-out), padding .2s var(--ease-out);
}
.sidebar-brand-card .site-brand { min-width: 0; }
.sidebar-brand-card .brand-logo { width: 132px; max-width: 100%; }
.sidebar-brand-card .brand-sub { display: none; }

.app-sidebar {
  position: fixed; z-index: 18; top: 12px; bottom: 12px; left: 12px; width: var(--sidebar-w);
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  overflow: hidden; padding: 84px 12px 14px; border: 1px solid var(--line-soft); border-radius: 28px;
  background: rgba(15,16,21,.94); backdrop-filter: blur(18px);
  box-shadow: 0 20px 52px rgba(0,0,0,.24); transition: width .2s var(--ease-out), transform .2s var(--ease-out);
}
.sidebar-primary, .sidebar-secondary { display: flex; flex-direction: column; gap: 5px; }
.sidebar-secondary { gap: 7px; }
.sidebar-item {
  width: 100%; min-height: 42px; display: flex; align-items: center; gap: 11px; padding: 0 12px;
  border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--text-2);
  text-align: left; cursor: pointer; transition: .15s ease;
}
.sidebar-item:hover { background: rgba(255,255,255,.05); color: var(--text); }
.sidebar-item.active { border-color: rgba(124,92,255,.25); background: var(--brand-dim); color: #dcd5ff; }
.sidebar-icon { width: 20px; flex: 0 0 20px; text-align: center; font-size: 18px; line-height: 1; }
.sidebar-icon img { width: 17px; height: 17px; object-fit: contain; }
.sidebar-item.active .sidebar-icon {
  animation: sidebar-icon-select .28s cubic-bezier(.22, 1.35, .42, 1) both;
}
@keyframes sidebar-icon-select {
  0% { transform: scale(.9); }
  55% { transform: scale(1.1); }
  78% { transform: scale(.98); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .sidebar-item.active .sidebar-icon { animation: none; }
}
.sidebar-label { min-width: 0; font-size: 13.5px; font-weight: 400; white-space: nowrap; }
.sidebar-item[data-nav="help"] .sidebar-label { font-size: 12px; font-weight: 400; }
.sidebar-feedback-entry {
  width: 36px; height: 36px; align-self: flex-end; order: -1; margin: 0; display: grid; place-items: center; padding: 0;
  border: 1px solid transparent; border-radius: 9px; background: transparent; cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.sidebar-feedback-entry img { width: 20px; height: 20px; filter: none; opacity: 1; transition: filter .15s ease, opacity .15s ease; }
.sidebar-feedback-entry:hover img { filter: brightness(0) saturate(100%) invert(75%) sepia(77%) saturate(620%) hue-rotate(341deg) brightness(104%) contrast(101%); opacity: 1; }
.sidebar-soon {
  margin-left: auto; padding: 2px 6px; border-radius: 99px; background: rgba(255,255,255,.06);
  color: var(--meta); font-size: 9px; white-space: nowrap;
}
.sidebar-usage {
  position: relative; display: block; width: 100%; min-height: 104px; padding: 16px 15px 13px;
  border: 1px solid rgba(255,255,255,.14); border-radius: 13px;
  background: linear-gradient(145deg,rgba(68,69,78,.96),rgba(46,47,56,.96));
  color: #fff; cursor: pointer; overflow: hidden; text-align: left;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08),0 10px 24px rgba(0,0,0,.16);
  transition: border-color .18s ease,transform .18s ease,box-shadow .18s ease;
}
.sidebar-usage:hover,
.sidebar-usage:focus-visible {
  transform: translateY(-1px); border-color: rgba(255,255,255,.24); outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1),0 14px 28px rgba(0,0,0,.22);
}
.sidebar-usage-data { display: flex; flex-direction: column; width: 100%; }
.usage-top { display: flex; align-items: center; min-width: 0; }
.usage-title { display: flex; align-items: center; min-width: 0; color: rgba(255,255,255,.92); }
.sidebar-membership-logo { width: 14px; height: 17px; flex: 0 0 auto; margin-right: 7px; object-fit: contain; }
.usage-title strong {
  min-width: 0; overflow: hidden; color: inherit; font-size: 11px; font-weight: 750;
  line-height: 1.35; white-space: nowrap; text-overflow: ellipsis;
}
.sidebar-coin-balance {
  display: inline-flex; align-items: center; gap: 4px; min-width: 0; padding: 0;
  background: transparent; color: #ffd36a;
  font-family: var(--font-mono); font-size: 10px; font-weight: 800; line-height: 1.2;
  letter-spacing: 0; pointer-events: none;
}
.sidebar-coin-balance img { width: 10px; height: 10px; object-fit: contain; }
.sidebar-coin-balance strong { color: inherit; font: inherit; }
.sidebar-usage::after {
  content: ''; position: absolute; inset: 0; padding: 1px; border-radius: inherit; opacity: 0; pointer-events: none;
  background: linear-gradient(110deg, #ffb338, #ff7a30, #9c6bff, #6e4dd7, #ffb338);
  background-size: 260% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: opacity .18s ease;
}
.sidebar-usage:hover::after,
.sidebar-usage:focus-visible::after { opacity: 1; animation: track-border-flow 1.35s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  .sidebar-usage:hover::after,
  .sidebar-usage:focus-visible::after,
  .sidebar-usage:not(.quota-hydrated) .sidebar-quota-percent { animation: none; }
}
.sidebar-collapsed-vip {
  display: none; width: 42px; height: 42px; align-self: center; place-items: center; padding: 0;
  border: 0; border-radius: 13px; background: linear-gradient(145deg,#ffcf71 0%,#ff9c4b 48%,#9a68ef 100%);
  color: #fff; cursor: pointer;
  box-shadow: 0 8px 18px rgba(148,84,221,.24),inset 0 1px 0 rgba(255,255,255,.34);
  transition: transform .18s ease,filter .18s ease,box-shadow .18s ease;
}
.sidebar-collapsed-vip span { font-size: 20px; line-height: 1; transform: translateY(1px); }
.sidebar-collapsed-vip:hover,
.sidebar-collapsed-vip:focus-visible { transform: translateY(-1px) scale(1.04); filter: saturate(1.08) brightness(1.05); box-shadow: 0 11px 23px rgba(148,84,221,.34),inset 0 1px 0 rgba(255,255,255,.42); }
.sidebar-collapsed-vip:focus-visible { outline: 2px solid rgba(255,255,255,.85); outline-offset: 3px; }
.usage-bar { height: 5px; margin-top: 20px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.09); }
.usage-bar i {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg,#fff 0%,#ffe2a3 100%); box-shadow: 0 0 9px rgba(255,216,137,.24);
  transition: width .28s ease;
}
.usage-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.sidebar-quota-percent {
  color: rgba(255,255,255,.48); font-family: var(--font-mono); font-size: 9px;
  line-height: 1.2; white-space: nowrap;
}
.sidebar-usage:not(.quota-hydrated) .sidebar-quota-percent { animation: quota-loading 1.2s ease-in-out infinite; }
@keyframes quota-loading { 50% { opacity: .35; } }
.sidebar-account {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px;
  border: 0; border-radius: 11px; background: transparent; color: var(--text); cursor: pointer; text-align: left;
}
.sidebar-account:hover { border-color: rgba(255,255,255,.2); background: var(--card-2); }
.sidebar-account-avatar, .profile-avatar-large, .header-avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  color: #fff; font-weight: 800; background: linear-gradient(135deg, var(--brand), #43a8ff);
  background-position: center; background-size: cover;
}
.sidebar-account-avatar { width: 31px; height: 31px; border-radius: 9px; font-size: 12px; }
.sidebar-account-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.sidebar-account-copy strong, .sidebar-account-copy small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sidebar-account-copy strong { font-size: 11.5px; }
.sidebar-account-copy small { max-width: 128px; color: var(--meta); font-size: 9px; }
.sidebar-account-more { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; }
.sidebar-account-more img { width: 5px; height: 8px; display: block; }
.header-avatar { width: 100%; height: 100%; border-radius: 50%; font-size: 11px; }

.track-view, .workspace, .profile-view { margin-left: calc(var(--sidebar-w) + 24px); transition: margin-left .2s var(--ease-out); }
.site-header {
  margin-left: calc(var(--sidebar-w) + 24px); backdrop-filter: none;
  transition: margin-left .2s var(--ease-out);
}
body.on-profile .ws-only { display: none; }
body.nav-collapsed .app-sidebar { width: var(--sidebar-collapsed-w); }
body.nav-collapsed .track-view, body.nav-collapsed .workspace, body.nav-collapsed .profile-view { margin-left: calc(var(--sidebar-collapsed-w) + 24px); }
body.nav-collapsed .site-header { margin-left: calc(var(--sidebar-collapsed-w) + 24px); }
body.nav-collapsed .sidebar-brand-card { width: calc(var(--sidebar-collapsed-w) - 24px); justify-content: center; padding: 7px; }
body.nav-collapsed .sidebar-brand-card .site-brand { display: none; }
body.nav-collapsed .sidebar-label, body.nav-collapsed .sidebar-soon, body.nav-collapsed .sidebar-account-copy,
body.nav-collapsed .sidebar-account-more, body.nav-collapsed .sidebar-usage { display: none; }
body.nav-collapsed .sidebar-collapsed-vip { display: grid; }
body.nav-collapsed .sidebar-feedback-entry { align-self: center; }
body.nav-collapsed .sidebar-item {
  width: 42px; min-height: 42px; aspect-ratio: 1; align-self: center; justify-content: center; padding: 0;
}
body.nav-collapsed .sidebar-item .sidebar-icon img { width: 22px; height: 22px; }
body.nav-collapsed .sidebar-account { justify-content: center; padding: 9px; }

.profile-view { flex: 1; overflow-y: auto; padding: 38px 44px 72px; }
.profile-page-head, .profile-layout { width: min(1120px, 100%); margin-inline: auto; }
.profile-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.profile-page-head h1 { margin-top: 6px; font-size: 30px; line-height: 1.2; }
.profile-page-head p { margin-top: 7px; color: var(--text-2); }
.profile-back { border: 0; background: transparent; color: #9a86ff; font-size: 12px; cursor: pointer; }
.local-prototype-badge, .status-pill {
  display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 99px;
  border: 1px solid rgba(94,194,255,.25); background: rgba(94,194,255,.08); color: #9bd8ff; font-size: 10px; font-weight: 700;
}
.profile-layout { display: block; }
.profile-tabs { display: inline-flex; gap: 5px; margin-bottom: 20px; padding: 5px; border: 1px solid var(--line); border-radius: 11px; background: rgba(23,26,33,.76); }
.profile-tab { min-width: 105px; padding: 9px 15px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); font-size: 12px; text-align: center; cursor: pointer; }
.profile-tab:hover { color: var(--text); background: rgba(255,255,255,.04); }
.profile-tab.active { background: var(--brand-dim); color: #d5cdff; font-weight: 700; }
.profile-panel { display: none; flex-direction: column; gap: 16px; }
.profile-panel.active { display: flex; }
.profile-card { padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: rgba(23,26,33,.85); box-shadow: 0 18px 50px rgba(0,0,0,.15); }
.account-hero-card { display: flex; align-items: center; gap: 16px; }
.profile-avatar-manager { display: flex; align-items: center; gap: 11px; }
.profile-avatar-large {
  width: 66px; height: 66px; padding: 0; border: 1px solid transparent; border-radius: 19px;
  font: inherit; font-size: 21px; line-height: 1; text-align: center; cursor: pointer;
  background-position: center; background-size: cover; box-shadow: 0 10px 28px rgba(124,92,255,.25);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.profile-avatar-large:hover { transform: translateY(-1px); }
.profile-avatar-large:focus-visible { outline: 2px solid rgba(255,255,255,.86); outline-offset: 4px; }
.profile-avatar-large.has-image, .sidebar-account-avatar.has-image { color: transparent; }
.profile-avatar-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.profile-avatar-actions button { padding: 3px 0; border: 0; background: transparent; color: #a897ff; font: inherit; font-size: 9.5px; cursor: pointer; }
.profile-avatar-actions button:last-child { color: var(--meta); }
.profile-avatar-actions button:hover { color: var(--text); }
.profile-avatar-actions button:disabled { opacity: .35; cursor: default; }
.profile-identity { display: flex; flex-direction: column; min-width: 0; line-height: 1.45; }
.profile-identity strong { font-size: 17px; }
.profile-identity span { color: var(--text-2); font-size: 11.5px; }
.profile-identity em { align-self: flex-start; margin-top: 5px; padding: 2px 8px; border-radius: 99px; background: rgba(62,207,142,.11); color: #7ee6b7; font-size: 9px; font-style: normal; font-weight: 800; }
.profile-plan-line { display: flex; align-items: center; gap: 7px; margin-top: 3px; }
.profile-plan-line span { color: var(--meta); font-size: 9.5px; }
.profile-hero-actions { display: flex; gap: 8px; margin-left: auto; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 17px; border-bottom: 1px solid var(--line-soft); }
.card-heading h2, .danger-card h2 { font-size: 15px; }
.card-heading p, .danger-card p { margin-top: 4px; color: var(--meta); font-size: 11px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 18px; }
.form-grid-full { grid-column: 1 / -1; }
.profile-form label, .auth-field { display: flex; flex-direction: column; gap: 7px; }
.profile-form label > span, .auth-field > span { color: var(--text-2); font-size: 11px; font-weight: 600; }
.profile-form input, .profile-form textarea, .profile-form select, .auth-field input {
  width: 100%; border: 1px solid var(--line); border-radius: 9px; background: #101217; color: var(--text);
  padding: 10px 12px; font: inherit; font-size: 12.5px; outline: 0; resize: vertical;
}
.profile-form input:focus, .profile-form textarea:focus, .profile-form select:focus, .auth-field input:focus { border-color: rgba(124,92,255,.7); box-shadow: 0 0 0 3px var(--brand-dim); }
.auth-field input:-webkit-autofill,
.auth-field input:-webkit-autofill:hover,
.auth-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px #101217 inset;
  box-shadow: 0 0 0 1000px #101217 inset;
  transition: background-color 9999s ease-out 0s;
}
.profile-form input:disabled { color: var(--meta); cursor: not-allowed; }
.profile-form label:has(#profile-bio-input) { display: none; }
.profile-form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 18px; }
.profile-form-actions > span { color: var(--ok); font-size: 11px; }
.primary-button, .secondary-button, .danger-button {
  min-height: 35px; padding: 0 14px; border-radius: 8px; font: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer;
}
.primary-button { border: 0; background: var(--grad); color: #fff; }
.secondary-button { border: 1px solid var(--line); background: var(--card-2); color: var(--text-2); }
.secondary-button:hover { color: var(--text); border-color: rgba(255,255,255,.22); }
.secondary-button:disabled { opacity: .55; cursor: default; }
.danger-button { border: 1px solid rgba(240,85,93,.35); background: rgba(240,85,93,.08); color: #ff8d93; }

.profile-metric-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.profile-metric-card {
  min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 13px;
  background: linear-gradient(145deg,rgba(25,27,35,.94),rgba(20,22,28,.8)); color: var(--text);
  text-align: left; cursor: pointer; transition: transform .16s,border-color .16s;
}
.profile-metric-card:hover { transform: translateY(-2px); border-color: rgba(124,92,255,.42); }
.profile-metric-card > span { display: block; color: var(--meta); font-size: 10px; }
.profile-metric-card strong { display: block; margin-top: 8px; overflow: hidden; text-overflow: ellipsis; font-size: 23px; line-height: 1; }
.profile-metric-card em { display: block; margin-top: 8px; color: var(--text-2); font-size: 9px; font-style: normal; }
.profile-metric-card.coin strong { color: #ffd170; }
.profile-metric-card.quota strong { color: #bcaeff; }
.profile-overview-grid { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(270px,.8fr); gap: 16px; }
.profile-activity-card { min-height: 270px; }
.profile-plan-card { min-height: 0; }
.profile-text-button { padding: 5px 0; border: 0; background: transparent; color: #a897ff; font: inherit; font-size: 10px; cursor: pointer; }
.profile-text-button:hover { color: #d5ceff; }
.profile-quota-numbers { margin-top: 22px; }
.profile-quota-numbers strong { font-size: 28px; }
.profile-quota-numbers span { margin-left: 6px; color: var(--meta); font-size: 11px; }
.profile-quota-bar { height: 7px; margin-top: 14px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.07); }
.profile-quota-bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--grad); transition: width .25s; }
.profile-quota-type { margin-top: 20px; color: var(--text-2); font-size: 11px; font-weight: 700; }
.profile-quota-type:first-of-type { margin-top: 22px; }
.profile-plan-card > p { margin: 10px 0 18px; color: var(--meta); font-size: 10px; line-height: 1.65; }
.profile-record-filters { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line-soft); border-radius: 8px; background: rgba(255,255,255,.02); }
.profile-record-filters button { padding: 6px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--meta); font: inherit; font-size: 9px; cursor: pointer; }
.profile-record-filters button.active { background: var(--card-2); color: var(--text); }
.profile-record-head, .profile-record-row { display: grid; grid-template-columns: minmax(180px,1.4fr) minmax(100px,.8fr) 128px 86px 100px; align-items: center; gap: 12px; }
.profile-record-head { padding: 12px 11px 8px; color: var(--meta); font-size: 8.5px; }
.profile-record-list { display: flex; flex-direction: column; }
.profile-record-row { min-height: 60px; padding: 10px 11px; border-top: 1px solid var(--line-soft); }
.profile-record-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.profile-record-icon { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; background: var(--brand-dim); color: #b9abff; font-size: 11px; }
.profile-record-icon.coin { background: rgba(255,195,75,.1); color: #ffd06d; }
.profile-record-icon.coin img { width: 27px; height: 27px; display: block; object-fit: contain; }
.profile-record-main div { min-width: 0; }
.profile-record-main strong, .profile-record-main em { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.profile-record-main strong { font-size: 10.5px; }
.profile-record-main em, .profile-record-row > span { color: var(--meta); font-size: 9px; font-style: normal; }
.profile-record-amount { color: #ff9da3 !important; font-weight: 800; }
.profile-record-amount.positive { color: #7ee6b7 !important; }
.profile-record-balance { color: var(--text-2) !important; }
.profile-record-empty { padding: 38px 12px; border-top: 1px solid var(--line-soft); color: var(--meta); font-size: 10px; text-align: center; }
.profile-record-list.compact .profile-record-head { display: none; }
.profile-record-list.compact .profile-record-row { grid-template-columns: minmax(0,1fr) auto; min-height: 55px; padding-inline: 0; }
.profile-record-list.compact .profile-record-row > span:not(.profile-record-amount), .profile-record-list.compact .profile-record-balance { display: none; }
.profile-record-list.compact .profile-record-amount { min-width: 65px; }
.setting-row, .toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line-soft); }
.setting-row:last-child, .toggle-row:last-child { border-bottom: 0; padding-bottom: 0; }
.setting-row > div, .toggle-row > div { display: flex; flex-direction: column; }
.setting-row strong, .toggle-row strong { font-size: 12.5px; }
.setting-row span, .toggle-row span { margin-top: 2px; color: var(--meta); font-size: 10.5px; }
.danger-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-color: rgba(240,85,93,.16); }
.toggle-row { position: relative; cursor: pointer; }
.toggle-row input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-row i { position: relative; width: 38px; height: 21px; flex: 0 0 auto; border-radius: 99px; background: #313641; transition: .18s; }
.toggle-row i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: .18s; }
.toggle-row input:checked + i { background: var(--brand); }
.toggle-row input:checked + i::after { transform: translateX(17px); }

.auth-modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; }
.auth-backdrop { position: absolute; inset: 0; border: 0; background: rgba(4,5,8,.78); backdrop-filter: blur(10px); }
.auth-dialog { position: relative; width: min(420px,100%); padding: 30px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: #16181f; box-shadow: 0 30px 90px rgba(0,0,0,.65); }
.auth-close { position: absolute; top: 14px; right: 15px; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--meta); font-size: 0; cursor: pointer; }
.auth-close::before, .auth-close::after { content: ''; position: absolute; top: 50%; left: 50%; width: 19px; height: 2px; border-radius: 999px; background: currentColor; }
.auth-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.auth-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.auth-close:hover { background: var(--card-2); color: var(--text); }
.auth-brand { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.auth-brand span { color: var(--brand); }
.auth-brand img { display: block; width: 100px; height: auto; }
.auth-head { margin-top: 22px; }
.auth-head h2 { font-size: 25px; }
.auth-head p { margin-top: 5px; color: var(--text-2); font-size: 12px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 22px 0 18px; padding: 4px; border-radius: 10px; background: #101217; }
.auth-tab { padding: 8px; border: 0; border-radius: 7px; background: transparent; color: var(--meta); font-size: 12px; cursor: pointer; }
.auth-tab.active { background: var(--card-2); color: var(--text); font-weight: 700; }
#auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-consent { display: flex; align-items: flex-start; gap: 8px; color: var(--text-2); font-size: 10.5px; cursor: pointer; }
.auth-consent input { margin-top: 4px; accent-color: var(--brand); }
.auth-error { min-height: 15px; color: #ff8d93; font-size: 10.5px; }
.auth-submit { min-height: 42px; border: 0; border-radius: 9px; background: var(--grad); color: #fff; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.auth-submit:hover { filter: brightness(1.07); }
.auth-link { align-self: center; border: 0; background: transparent; color: #ffb338; font-size: 10.5px; cursor: pointer; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 20px 0 10px; color: var(--meta); font-size: 9px; }
.auth-divider::before, .auth-divider::after { content: ''; height: 1px; flex: 1; background: var(--line-soft); }
.auth-demo-note { color: var(--meta); font-size: 9.5px; text-align: center; }
body.auth-open { overflow: hidden; }

.app-toast { position: fixed; z-index: 120; left: 50%; bottom: 28px; transform: translate(-50%,12px); padding: 10px 15px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: #242832; color: var(--text); box-shadow: 0 14px 45px rgba(0,0,0,.45); font-size: 11.5px; opacity: 0; transition: .18s; }
.app-toast.is-visible { opacity: 1; transform: translate(-50%,0); }
.sidebar-backdrop { display: none; }

@media (max-width: 920px) {
  .site-header { gap: 10px; margin-left: 0; padding-inline: 14px; }
  .sidebar-brand-card { position: static; width: auto; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .sidebar-brand-card .site-brand { display: flex; }
  .sidebar-brand-card .brand-logo { width: 136px; }
  .sidebar-toggle-icon-collapsed { display: block; }
  .sidebar-toggle-icon-expanded { display: none; }
  body.sidebar-mobile-open .sidebar-toggle-icon-collapsed { display: none; }
  body.sidebar-mobile-open .sidebar-toggle-icon-expanded { display: block; }
  .brand-sub, #history-btn { display: none; }
  .app-sidebar { top: 60px; bottom: 0; left: 0; width: min(280px,85vw); padding: 18px 12px 14px; border: 0; border-radius: 0; transform: translateX(-102%); box-shadow: 24px 0 70px rgba(0,0,0,.45); }
  body.sidebar-mobile-open .app-sidebar { transform: translateX(0); }
  .track-view, .workspace, .profile-view, body.nav-collapsed .track-view, body.nav-collapsed .workspace, body.nav-collapsed .profile-view { margin-left: 0; }
  body.nav-collapsed .app-sidebar { width: min(280px,85vw); }
  body.nav-collapsed .sidebar-brand-card { width: auto; padding: 0; }
  body.nav-collapsed .sidebar-brand-card .site-brand { display: flex; }
  body.nav-collapsed .sidebar-label, body.nav-collapsed .sidebar-soon, body.nav-collapsed .sidebar-account-copy,
  body.nav-collapsed .sidebar-account-more, body.nav-collapsed .sidebar-usage { display: initial; }
  body.nav-collapsed .sidebar-item, body.nav-collapsed .sidebar-account { justify-content: flex-start; padding-inline: 12px; }
  body.sidebar-mobile-open .sidebar-backdrop { display: block !important; position: fixed; z-index: 17; inset: 60px 0 0; border: 0; background: rgba(4,5,8,.62); }
  .profile-view { padding: 28px 18px 60px; }
  .profile-metric-grid { grid-template-columns: 1fr; }
  .profile-tabs { overflow-x: auto; max-width: 100%; }
  .profile-tab { white-space: nowrap; }
  .profile-metric-grid { grid-template-columns: 1fr 1fr; }
  .profile-overview-grid { grid-template-columns: 1fr; }
  .profile-record-head, .profile-record-row { grid-template-columns: minmax(160px,1.4fr) minmax(90px,.7fr) 105px 72px 90px; gap: 8px; }
}

@media (max-width: 620px) {
  .site-brand { gap: 5px; }
  .brand-name { font-size: 14px; }
  .hdr-lang { display: none; }
  .profile-page-head { align-items: flex-start; }
  .local-prototype-badge { display: none; }
  .profile-layout { gap: 14px; }
  .profile-tabs { margin-inline: -4px; padding: 5px; }
  .profile-tab { min-width: 96px; padding-inline: 11px; }
  .profile-card { padding: 17px; }
  .account-hero-card { align-items: flex-start; flex-wrap: wrap; }
  .profile-avatar-manager { width: 100%; }
  .profile-hero-actions { width: 100%; margin-left: 0; }
  .profile-hero-actions button { flex: 1; }
  .profile-metric-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .profile-metric-card { padding: 14px; }
  .profile-metric-card strong { font-size: 19px; }
  .profile-usage-heading { align-items: flex-start; flex-direction: column; }
  .profile-record-filters { width: 100%; overflow-x: auto; }
  .profile-record-filters button { flex: 1; white-space: nowrap; }
  .profile-record-head { display: none; }
  .profile-record-row { grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
  .profile-record-row > span:not(.profile-record-amount), .profile-record-balance { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid-full { grid-column: auto; }
  .setting-row { align-items: flex-start; }
  .danger-card { align-items: flex-start; flex-direction: column; }
  .danger-button { width: 100%; }
  .auth-dialog { padding: 25px 20px; }
}

/* Google Account-inspired personal center */
.profile-view {
  background: #f8fafd;
  color: #1f1f1f;
  font-family: "Google Sans","Segoe UI",Arial,sans-serif;
}
.profile-page-head { align-items: center; margin-bottom: 30px; }
.profile-page-head h1 { color: #1f1f1f; font-size: 32px; font-weight: 500; letter-spacing: -.02em; }
.profile-page-head p { color: #5f6368; font-size: 13px; }
.profile-back { color: #0b57d0; font-weight: 600; }
.profile-view .local-prototype-badge,
.profile-view .status-pill {
  border-color: #c2e7ff; background: #e9f3ff; color: #0b57d0;
}
.profile-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 34px; align-items: start; }
.profile-tabs {
  position: sticky; top: 8px; display: flex; flex-direction: column; gap: 4px;
  margin: 0; padding: 6px; border: 0; border-radius: 16px; background: transparent;
}
.profile-tab {
  width: 100%; min-width: 0; padding: 12px 16px; border-radius: 24px;
  color: #444746; font-size: 13px; font-weight: 500; text-align: left;
}
.profile-tab:hover { color: #1f1f1f; background: #eef1f4; }
.profile-tab.active { background: #d3e3fd; color: #041e49; font-weight: 700; }
.profile-panel { gap: 18px; }
.profile-card {
  padding: 24px; border: 1px solid #c4c7c5; border-radius: 24px;
  background: #fff; color: #1f1f1f; box-shadow: none;
}
.account-hero-card { min-height: 128px; padding: 26px 28px; }
.profile-avatar-large {
  width: 72px; height: 72px; border-radius: 50%; background-color: #0b57d0;
  box-shadow: none;
}
.profile-avatar-actions button { color: #0b57d0; font-weight: 600; }
.profile-avatar-actions button:last-child { color: #5f6368; }
.profile-identity strong { color: #1f1f1f; font-size: 20px; font-weight: 500; }
.profile-identity > span { color: #5f6368; }
.profile-identity em { margin-top: 0; background: #e6f4ea; color: #137333; }
.profile-plan-line span { color: #5f6368; }
.profile-view .primary-button {
  min-height: 40px; padding-inline: 20px; border-radius: 20px;
  background: #0b57d0; color: #fff; box-shadow: none;
}
.profile-view .secondary-button {
  min-height: 40px; padding-inline: 18px; border: 1px solid #747775; border-radius: 20px;
  background: #fff; color: #0b57d0;
}
.profile-view .secondary-button:hover { border-color: #0b57d0; background: #f0f6ff; color: #0842a0; }
.profile-view .danger-button {
  min-height: 40px; padding-inline: 18px; border-color: #d93025; border-radius: 20px;
  background: #fff; color: #b3261e;
}
.profile-metric-grid { gap: 16px; }
.profile-metric-card {
  min-height: 126px; padding: 22px; border: 1px solid #c4c7c5; border-radius: 22px;
  background: #fff; color: #1f1f1f; box-shadow: none;
}
.profile-metric-card:hover { transform: none; border-color: #0b57d0; background: #f8fafd; }
.profile-metric-card > span { color: #5f6368; font-size: 12px; }
.profile-metric-card strong { margin-top: 14px; color: #1f1f1f !important; font-size: 28px; font-weight: 500; }
.profile-metric-card em { color: #0b57d0; font-size: 10.5px; font-weight: 600; }
.profile-plan-card { background: #f7f9fc; }
.profile-plan-card .card-heading { border-color: #dfe3e7; }
.profile-quota-numbers strong { color: #1f1f1f; font-weight: 500; }
.profile-quota-numbers span, .profile-plan-card > p { color: #5f6368; }
.profile-quota-bar { background: #dde3ea; }
.profile-quota-bar i { background: #0b57d0; }
.card-heading { border-color: #e1e3e1; }
.card-heading h2, .danger-card h2 { color: #1f1f1f; font-size: 17px; font-weight: 500; }
.card-heading p, .danger-card p { color: #5f6368; }
.profile-record-filters { border-color: #c4c7c5; background: #f8fafd; }
.profile-record-filters button { color: #5f6368; }
.profile-record-filters button.active { background: #d3e3fd; color: #041e49; }
.profile-record-head { color: #5f6368; }
.profile-record-row { border-color: #e1e3e1; }
.profile-record-icon { background: #d3e3fd; color: #0b57d0; }
.profile-record-icon.coin { background: #fef7e0; color: #8a5b00; }
.profile-record-main strong { color: #1f1f1f; }
.profile-record-main em, .profile-record-row > span { color: #5f6368; }
.profile-record-amount { color: #b3261e !important; }
.profile-record-amount.positive { color: #137333 !important; }
.profile-record-balance { color: #444746 !important; }
.profile-form label > span { color: #444746; }
.profile-form input, .profile-form textarea, .profile-form select {
  border-color: #747775; border-radius: 12px; background: #fff; color: #1f1f1f;
}
.profile-form input:focus, .profile-form textarea:focus, .profile-form select:focus {
  border-color: #0b57d0; box-shadow: 0 0 0 2px rgba(11,87,208,.13);
}
.profile-form input:disabled { background: #f1f3f4; color: #5f6368; }
.setting-row, .toggle-row { border-color: #e1e3e1; }
.setting-row strong, .toggle-row strong { color: #1f1f1f; font-weight: 500; }
.setting-row span, .toggle-row span { color: #5f6368; }
.toggle-row i { background: #747775; }
.toggle-row input:checked + i { background: #0b57d0; }
.danger-card { border-color: #f1c5c1; }

@media (max-width: 920px) {
  .profile-layout { grid-template-columns: 1fr; gap: 18px; }
  .profile-tabs {
    position: static; flex-direction: row; max-width: 100%; overflow-x: auto;
    padding: 4px; border: 1px solid #dfe3e7; background: #fff;
  }
  .profile-tab { width: auto; min-width: 104px; text-align: center; }
}

@media (max-width: 620px) {
  .profile-page-head h1 { font-size: 27px; }
  .profile-card { padding: 19px; border-radius: 19px; }
  .profile-metric-grid { grid-template-columns: 1fr; }
  .profile-metric-card { min-height: 108px; }
}

/* Theme-colored account surface */
.profile-view {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
}
.profile-page-head h1 { color: var(--text); }
.profile-page-head p { color: var(--text-2); }
.profile-back { color: #a997ff; }
.profile-view .local-prototype-badge,
.profile-view .status-pill {
  border-color: rgba(124,92,255,.3); background: var(--brand-dim); color: #c8bdff;
}
.profile-account-banner {
  width: min(1120px,100%); margin: 0 auto 24px; min-height: 0; padding: 28px;
  align-items: center; justify-content: center; flex-direction: column; gap: 11px;
  border-color: rgba(124,92,255,.26);
  background: radial-gradient(circle at 50% -30%,rgba(124,92,255,.22),transparent 48%),var(--card);
}
.profile-avatar-manager { flex-direction: column; gap: 8px; }
.profile-avatar-large {
  width: 92px; height: 92px; border: 3px solid rgba(184,167,255,.46); border-radius: 50%;
  background-color: var(--brand); box-shadow: 0 14px 38px rgba(69,45,164,.34);
}
.profile-avatar-actions { flex-direction: row; gap: 12px; }
.profile-avatar-actions button { color: #b8a9ff; }
.profile-avatar-actions button:last-child { color: var(--meta); }
.profile-account-banner .profile-identity { align-items: center; text-align: center; }
.profile-identity strong { color: var(--text); }
.profile-identity > span { color: var(--text-2); }
.profile-identity em { background: rgba(62,207,142,.11); color: #7ee6b7; }
.profile-plan-line span { color: var(--meta); }
.profile-account-banner .profile-hero-actions { margin: 4px 0 0; }
.profile-account-banner {
  min-height: 430px; padding: 46px 28px 48px; gap: 12px;
  background: radial-gradient(circle at 50% 18%, rgba(255,183,67,.22), transparent 28%), var(--card);
}
.profile-avatar-manager { gap: 0; }
.profile-avatar-large {
  width: 132px; height: 132px; border: 2px solid rgba(255,226,132,.86); background-color: #ffc24d;
  color: #fff; font-size: 38px; box-shadow: 0 16px 42px rgba(255,179,50,.28);
}
.profile-avatar-actions { display: none; }
.profile-account-banner .profile-identity { gap: 3px; }
.profile-name-line { display: flex; align-items: center; justify-content: center; gap: 11px; }
.profile-identity strong { font-size: 25px; line-height: 1.2; }
.profile-identity .profile-name-line em { align-self: auto; margin: 0; padding: 3px 10px; font-size: 10px; }
.profile-identity > span { font-size: 13px; }
.profile-plan-line { margin-top: 0; }
.profile-plan-line span { display: none; font-size: 11px; }
.profile-account-banner .profile-hero-actions { margin: 18px 0 0; gap: 12px; }
.profile-tabs { background: transparent; }
.profile-tab { color: var(--text-2); }
.profile-tab:hover { color: var(--text); background: rgba(255,255,255,.045); }
.profile-tab.active { background: #fff; color: #25222c; }
.profile-card {
  border-color: var(--line); background: var(--card); color: var(--text);
}
.profile-view .primary-button {
  background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(124,92,255,.22);
}
.profile-view .secondary-button {
  border-color: var(--line); background: var(--card-2); color: var(--text-2);
}
.profile-view .secondary-button:hover { border-color: rgba(124,92,255,.5); background: var(--brand-dim); color: #d8d1ff; }
.profile-view .danger-button { border-color: rgba(240,85,93,.35); background: rgba(240,85,93,.08); color: #ff8d93; }
.profile-metric-card {
  border-color: var(--line); background: linear-gradient(145deg,var(--card),rgba(23,26,33,.82)); color: var(--text);
}
.profile-metric-card:hover { border-color: rgba(124,92,255,.5); background: var(--card-2); }
.profile-metric-card > span { color: var(--meta); }
.profile-metric-card strong { color: var(--text) !important; }
.profile-metric-card.coin strong { color: #ffd170 !important; }
.profile-metric-card.quota strong { color: #bcaeff !important; }
.profile-metric-card em { color: #a997ff; }
.profile-metric-card.coin em { color: #ffd170; }
.profile-plan-card { background: var(--card); }
.profile-plan-card .card-heading,
.card-heading { border-color: var(--line-soft); }
.card-heading h2, .danger-card h2 { color: var(--text); }
.card-heading p, .danger-card p,
.profile-quota-numbers span, .profile-plan-card > p { color: var(--meta); }
.profile-quota-numbers strong { color: var(--text); }
.profile-quota-bar { background: rgba(255,255,255,.07); }
.profile-quota-bar i { background: var(--grad); }
.profile-record-filters { border-color: var(--line); background: var(--bg-soft); }
.profile-record-filters button { color: var(--meta); }
.profile-record-filters button.active { background: var(--brand-dim); color: #d9d2ff; }
.profile-record-head { color: var(--meta); }
.profile-record-row { border-color: var(--line-soft); }
.profile-record-icon { background: var(--brand-dim); color: #b9abff; }
.profile-record-icon.coin { background: rgba(255,195,75,.1); color: #ffd06d; }
.profile-record-main strong { color: var(--text); }
.profile-record-main em, .profile-record-row > span { color: var(--meta); }
.profile-record-amount { color: #ff9da3 !important; }
.profile-record-amount.positive { color: #7ee6b7 !important; }
.profile-record-balance { color: var(--text-2) !important; }
.profile-record-icon.coin { background: transparent; transform: translateX(-4px); }
.profile-form label > span { color: var(--text-2); }
.profile-form input, .profile-form textarea, .profile-form select {
  border-color: var(--line); background: var(--bg-soft); color: var(--text);
}
.profile-form input:focus, .profile-form textarea:focus, .profile-form select:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-dim);
}
.profile-form input:disabled { background: rgba(255,255,255,.025); color: var(--meta); }
.setting-row, .toggle-row { border-color: var(--line-soft); }
.setting-row strong, .toggle-row strong { color: var(--text); }
.setting-row span, .toggle-row span { color: var(--meta); }
.toggle-row i { background: #313641; }
.toggle-row input:checked + i { background: var(--brand); }
.danger-card { border-color: rgba(240,85,93,.16); }

@media (max-width: 920px) {
  .profile-tabs { border-color: var(--line); background: var(--card); }
}

/* Guest onboarding and video-first authentication */
.guest-view {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 42px 24px 56px;
}
.guest-onboarding {
  width: min(920px,100%);
  min-height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.guest-copy { max-width: 720px; }
.guest-eyebrow {
  color: #ffae26;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .17em;
}
.guest-copy h1 {
  margin-top: 9px;
  font-size: clamp(30px,4.5vw,52px);
  line-height: 1.18;
  letter-spacing: 0;
}
.guest-copy p {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 14px;
}
.guest-video-frame {
  position: relative;
  width: min(960px,100%);
  margin-top: 26px;
  overflow: hidden;
  aspect-ratio: 16/9;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  background: #08090c;
  box-shadow: 0 26px 80px rgba(0,0,0,.5),0 0 0 1px rgba(124,92,255,.08);
}
.guest-video-frame::after {
  content: '';
  position: absolute;
  z-index: 2;
  left: 51.7%;
  top: 53.9%;
  width: 34px;
  height: 26px;
  border-radius: 999px;
  pointer-events: none;
  background: #d5c9c1;
  filter: blur(5px);
  transform: translate(-50%,-50%);
}
.guest-video-frame:hover::after,
.guest-video-frame:focus-within::after { opacity: 0; }
.guest-video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.guest-start-button {
  min-width: 190px;
  min-height: 48px;
  margin-top: 24px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(120deg, #ffca45 0%, #ff9d20 48%, #ee7018 100%);
  color: #2a1204;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(238,112,24,.32);
  transition: transform .18s,filter .18s;
}
.guest-start-button:hover { transform: translateY(-2px); filter: brightness(1.08); }
.guest-start-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  animation: track-arrow-nudge 2s ease-in-out infinite;
}
.guest-start-arrow img {
  width: 15px;
  height: 10px;
  object-fit: contain;
  filter: brightness(0);
  transform: translateX(5px);
}
.guest-onboarding > small { margin-top: 10px; color: var(--meta); font-size: 10px; }
body.guest-mode .site-header,
body.guest-mode .app-sidebar,
body.guest-mode .sidebar-toggle { display: none; }
body.guest-mode .track-view,
body.guest-mode .workspace,
body.guest-mode .profile-view,
body.guest-mode .portal-view { display: none !important; }
body.guest-mode .guest-view,
body.guest-mode .guest-view.hidden { display: block !important; }
body.guest-mode .guest-view { min-height: 100vh; }
body.auth-route .site-header,
body.auth-route .app-sidebar,
body.auth-route .sidebar-toggle,
body.auth-route .guest-view,
body.auth-route .track-view,
body.auth-route .workspace,
body.auth-route .profile-view,
body.auth-route .portal-view { display: none !important; }
body.auth-route .auth-modal.hidden { display: grid !important; }

.auth-dialog {
  width: min(920px,100%);
  max-height: min(680px,calc(100vh - 40px));
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0,.95fr) minmax(380px,1.05fr);
  overflow: hidden;
}
.auth-close { z-index: 3; background: rgba(8,9,12,.55); color: #fff; backdrop-filter: blur(7px); }
.auth-media {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  background: #090a0e;
}
.auth-media::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,transparent 38%,rgba(8,9,13,.92));
}
.auth-media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.auth-media-copy {
  position: absolute;
  z-index: 1;
  left: 28px;
  right: 28px;
  bottom: 28px;
  text-align: left;
}
.auth-media-copy span { color: #b9adff; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.auth-media-copy strong { display: block; margin-top: 5px; font-size: 22px; line-height: 1.3; }
.auth-media-copy p { margin-top: 7px; color: #b8bdc9; font-size: 11px; }
.auth-panel {
  min-width: 0;
  padding: 32px 36px 28px;
  overflow-y: auto;
  background: #16181f;
}
.auth-panel .auth-head { margin-top: 18px; }
.auth-panel .auth-tabs { margin-top: 18px; }

@media (max-width: 760px) {
  .guest-view { padding: 28px 16px 40px; }
  .guest-copy h1 { font-size: 31px; }
  .guest-copy p { font-size: 12px; }
  .guest-video-frame { margin-top: 20px; border-radius: 14px; }
  .guest-start-button { width: 100%; max-width: 420px; margin-top: 20px; }
  .auth-modal { align-items: start; overflow-y: auto; }
  .auth-dialog {
    max-height: none;
    grid-template-columns: 1fr;
    overflow: visible;
  }
  .auth-media { min-height: 0; aspect-ratio: 16/8.5; }
  .auth-media-copy { left: 18px; right: 50px; bottom: 16px; }
  .auth-media-copy strong { font-size: 17px; }
  .auth-media-copy p { display: none; }
  .auth-panel { padding: 24px 20px; overflow: visible; }
}
@media (prefers-reduced-motion: reduce) {
  .guest-start-arrow { animation: none; }
}

/* Current service controls retained during the visual refresh. */
.auth-code-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.auth-code-row button {
  min-width: 96px;
  border: 1px solid rgba(255,179,32,.45);
  border-radius: 8px;
  background: var(--brand-dim);
  color: var(--brand-2);
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
}
.auth-code-row button:hover:not(:disabled) { border-color: var(--brand); color: #fff; }
.auth-code-row button:disabled { cursor: not-allowed; opacity: .6; }
