/* Account fixes: inherit both existing glass themes. */
.auth-fix{max-width:620px;padding-top:55px}.auth-fix>.glass{margin-top:28px;padding:28px}.auth-fix h1{font-size:30px}.auth-fix>p{font-size:13px}.auth-back{display:inline-block;font-size:12px;color:var(--muted);margin:22px 0}.forgot-link{display:block;text-align:right;font-size:11px;margin:8px 0 18px;color:var(--muted)}.forgot-link:hover,.auth-back:hover{color:var(--text)}.demo-note{border-top:1px solid var(--line);padding-top:14px;margin-top:23px}.verify-icon{width:65px;height:65px;display:grid;place-items:center;border-radius:18px;background:var(--verify-icon-background);border:1px solid var(--line);font-size:26px;margin-bottom:24px}.strength-bar{height:4px;border-radius:4px;background:var(--strength-bar-background);overflow:hidden}.strength-bar i{display:block;width:0;height:100%;background:var(--strength-bar-background-2)}.primary:disabled,.outline:disabled{opacity:.45;cursor:not-allowed;transform:none}.account-panel{max-width:850px}.account-heading{display:flex;justify-content:space-between;align-items:start;gap:20px}.account-heading h3{margin-bottom:7px}.account-heading p{font-size:12px;margin-top:0}.account-heading .badge{white-space:nowrap}.two-factor-layout{display:flex;align-items:center;gap:25px;margin:25px 0}.two-factor-layout h3{margin-bottom:10px}.two-factor-layout p{font-size:11px}.sample-qr{width:150px;height:150px;flex-shrink:0;border-radius:12px;padding:8px;background:var(--surface-switch-text-3)}.backup-codes{padding:20px;border:1px dashed var(--line);border-radius:12px;background:var(--backup-codes-background);line-height:2.2;font-size:12px;color:var(--text)}.account-divider{border:0;border-top:1px solid var(--line);margin:30px 0}.account-panel>.outline{margin:5px}.preference-head,.preference-row{display:grid;grid-template-columns:1fr 64px 64px;gap:18px;align-items:center}.preference-head{font-size:10px;color:var(--muted);padding:18px 0;border-bottom:1px solid var(--line)}.preference-row{padding:20px 0;border-bottom:1px solid var(--line)}.preference-row:last-of-type{margin-bottom:24px}.preference-row b{font-size:12px;font-weight:500}.preference-row p{font-size:10px;margin:6px 0 0}.switch{position:relative;display:inline-flex;width:36px;height:22px}.switch input{position:absolute;inset:0;opacity:0;z-index:2;cursor:pointer;width:100%;height:100%;margin:0}.switch span{width:36px;height:22px;border-radius:20px;background:var(--switch-background);border:1px solid var(--line)}.switch span:after{content:'';display:block;width:14px;height:14px;margin:3px;border-radius:50%;background:var(--switch-background-2);transition:transform .2s var(--ease-out)}.switch input:checked+span{background:var(--switch-background-3)}.switch input:checked+span:after{transform:translateX(14px);background:var(--switch-background-4)}.switch input:focus-visible+span{outline:2px solid var(--v2-highlight);outline-offset:4px}.help-search{margin:25px 0}.help-search .search{width:100%;margin-top:13px;padding:12px}.help-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:26px}.help-article{text-align:left;padding:24px}.help-article .eyebrow{font-size:9px}.help-article h3{font-size:16px;margin:15px 0}.help-article p{font-size:11px;line-height:1.8;min-height:60px}.help-article>span:last-child{font-size:10px}.field textarea{width:100%;padding:12px;resize:vertical;background:var(--backup-codes-background);border:1px solid var(--line);color:var(--text);border-radius:8px;font:inherit;font-size:12px}.app-error,.screen-state{max-width:960px;padding:55px;margin:35px auto}.app-error{text-align:center}.app-error .tools{justify-content:center;margin:25px 0}.app-error>a{font-size:11px;color:var(--muted)}.error-code{font:600 70px 'Space Grotesk',monospace;letter-spacing:-5px;color:var(--muted)}.empty-symbol{font-size:44px;display:block;margin-bottom:20px;color:var(--muted)}.skeleton-line,.skeleton-card{position:relative;overflow:hidden;background:var(--skeleton-line-background);border-radius:10px}.skeleton-line{height:14px;width:40%;margin:18px 0}.skeleton-line.wide{width:65%;height:25px}.skeleton-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:30px 0}.skeleton-card{height:160px}.skeleton-line:after,.skeleton-card:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent,var(--skeleton-line-background-2),transparent);animation:shimmer 1.5s infinite}.demo-state-control{display:flex;align-items:center;gap:6px;font-size:9px;color:var(--muted)}.demo-state-control select{font-size:10px;padding:5px 7px;border:1px solid var(--line);border-radius:6px;color:var(--text);background:var(--demo-state-control-background)}.demo-state-control option{color:var(--demo-state-control-text)}.admin-back{margin-bottom:15px;border:1px solid var(--line);background:var(--backup-codes-background)}.help-nav{margin-top:10px}
html[data-theme=light] .auth-fix>.glass,html[data-theme=light] .account-panel,html[data-theme=light] .help-article,html[data-theme=light] .screen-state,html[data-theme=light] .app-error{background:linear-gradient(125deg,var(--auth-fix-background),var(--auth-fix-background-2))}html[data-theme=light] .field textarea{background:var(--field-background);color:var(--field-text);border-color:var(--field-border)}html[data-theme=light] .switch input:checked+span{background:var(--switch-background-5)}html[data-theme=light] .switch input:checked+span:after{background:var(--switch-background-6)}html[data-theme=light] .strength-bar i{background:var(--strength-bar-background-3)}html[data-theme=light] .demo-state-control select{background:var(--demo-state-control-background-2);color:var(--demo-state-control-text-2)}html[data-theme=light] .admin-back{background:var(--admin-back-background)}
@media(max-width:1000px){.help-grid{grid-template-columns:repeat(2,1fr)}.demo-state-control>span{display:none}}@media(max-width:700px){.auth-fix{padding-top:28px}.auth-fix>.glass{padding:22px}.auth-fix h1{font-size:25px}.two-factor-layout{flex-direction:column;align-items:start}.preference-head,.preference-row{grid-template-columns:1fr 38px 38px;gap:12px}.preference-row p{font-size:9px}.help-grid{grid-template-columns:1fr}.help-article p{min-height:0}.app-error,.screen-state{padding:35px 20px}.skeleton-grid{grid-template-columns:1fr 1fr}.skeleton-card{height:100px}.topbar .right{gap:6px}.topbar .right>.avatar{display:none}.demo-state-control select{max-width:65px;font-size:9px}.error-code{font-size:55px}}
@media(prefers-reduced-motion:reduce){.skeleton-line:after,.skeleton-card:after{animation:none}.switch span:after{transition:none}}
/* Prominent two-way App/Admin switch in the header */
.surface-switch{display:inline-flex;align-items:center;gap:4px;padding:4px;border:1px solid var(--field-background);border-radius:12px;background:var(--surface-switch-background);box-shadow:inset 0 1px var(--surface-switch-shadow),0 5px 18px var(--surface-switch-shadow-2);flex-shrink:0}.surface-switch .surface-option{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 15px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--surface-switch-text);font-size:12px;font-weight:600;white-space:nowrap}.surface-switch .surface-option.selected{background:var(--surface-switch-background-2);color:var(--surface-switch-text-2);border-color:var(--surface-switch-border);box-shadow:0 2px 7px var(--surface-switch-shadow-3)}.surface-switch .surface-option:not(.selected):hover{background:var(--surface-switch-shadow);color:var(--surface-switch-text-3)}.surface-switch .surface-option span{font-size:15px}.topbar{gap:16px}.topbar .right{gap:12px;flex-wrap:wrap;justify-content:flex-end}.topbar .right>.eyebrow{display:none}html[data-theme=light] .surface-switch{background:var(--surface-switch-background-3);border-color:var(--surface-switch-border-2);box-shadow:inset 0 1px var(--surface-switch-text-3),0 4px 16px var(--surface-switch-shadow-4)}html[data-theme=light] .surface-switch .surface-option{color:var(--surface-switch-text-4)}html[data-theme=light] .surface-switch .surface-option.selected{background:var(--surface-switch-background-4);border-color:var(--surface-switch-border-3);color:var(--surface-switch-text-3)}html[data-theme=light] .surface-switch .surface-option:not(.selected):hover{color:var(--demo-state-control-text);background:var(--auth-fix-background)}@media(max-width:1000px){.topbar .right{gap:8px}.surface-switch .surface-option{padding:8px 11px}.topbar .demo-state-control{display:none}}@media(max-width:700px){.topbar{height:auto;min-height:74px;padding:12px;flex-wrap:wrap;gap:9px}.topbar>.right{width:100%;justify-content:flex-start;gap:10px}.surface-switch{margin-right:auto}.surface-switch .surface-option{padding:8px 14px}.topbar .right>.key{display:none}}
/* Header surface switch: compact smoke glass, matching the template. */
.surface-switch{gap:2px;padding:3px;border:1px solid var(--surface-switch-border-4);border-radius:9px;background:var(--surface-switch-background-5);box-shadow:inset 0 1px var(--backup-codes-background);backdrop-filter:blur(18px)}.surface-switch .surface-option{gap:6px;padding:6px 10px;font-size:11px;font-weight:500;border-radius:6px;color:var(--surface-switch-text-5);min-height:28px}.surface-switch .surface-option span{font-size:12px}.surface-switch .surface-option.selected{background:var(--surface-switch-background-6);border-color:var(--skeleton-line-background-2);color:var(--surface-switch-background-2);box-shadow:inset 0 1px var(--surface-switch-shadow-5)}.surface-switch .surface-option:not(.selected):hover{background:var(--surface-switch-background-7);color:var(--surface-switch-text-6)}.topbar .right{gap:12px}.admin-bento>section:last-child{background:linear-gradient(125deg,var(--admin-bento-background),var(--admin-bento-background-2));border:1px solid var(--admin-bento-border);backdrop-filter:blur(30px);color:var(--text);box-shadow:inset 0 1px var(--admin-bento-shadow),0 12px 36px var(--admin-bento-shadow-2)}.admin-bento>section:last-child p,.admin-bento>section:last-child .activity{color:var(--muted)}.admin-bento>section:last-child h3{color:var(--text)}
html[data-theme=light] .surface-switch{background:var(--surface-switch-background-8);border-color:var(--surface-switch-border-5);box-shadow:inset 0 1px var(--demo-state-control-background-2)}html[data-theme=light] .surface-switch .surface-option{color:var(--surface-switch-text-7)}html[data-theme=light] .surface-switch .surface-option.selected{background:var(--surface-switch-background-9);border-color:var(--surface-switch-border-6);color:var(--surface-switch-text-8);box-shadow:inset 0 1px var(--surface-switch-border-6)}html[data-theme=light] .surface-switch .surface-option:not(.selected):hover{background:var(--surface-switch-background-10);color:var(--demo-state-control-text-2)}html[data-theme=light] .admin-bento>section:last-child{background:linear-gradient(125deg,var(--surface-switch-border-5),var(--admin-bento-background-3));color:var(--admin-bento-text);border-color:var(--surface-switch-border)}html[data-theme=light] .admin-bento>section:last-child .activity{color:var(--surface-switch-text-4)}
@media(max-width:1000px){.surface-switch .surface-option{padding:6px 9px}}@media(max-width:700px){.surface-switch .surface-option{padding:6px 10px;font-size:11px}.surface-switch{margin-right:auto}}

/* Account-specific controls use the workspace's established ash palette. */
.account-standalone {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
  --account-danger: var(--account-danger-2);
  --account-ok: var(--account-ok-2);
  --account-warning: var(--account-warning-2);
}
.account-frame { width: min(100%, 454px); }
.account-wordmark { display: table; margin: 0 auto 20px; font-size: 21px; font-weight: 650; }
.account-wordmark span { margin-right: 5px; }
.account-card.glass { border-radius: 12px; padding: clamp(20px, 4vw, 34px); }
.account-card h1 { font-size: clamp(26px, 4vw, 34px); line-height: 1.06; margin: 0 0 11px; }
.account-card :is(p,b) { overflow-wrap: anywhere; }
.account-card .field { margin: 17px 0 10px; }
.account-card .field input { min-width: 0; }
.account-card .primary { background: var(--surface-switch-background-2); color: var(--account-card-text); border-color: var(--surface-switch-border-6); border-radius: 999px; }
.account-card .primary:hover:not(:disabled) { background: var(--account-card-background); }
.account-card .account-action { display: grid; place-items: center; }
.account-card .account-intro { margin-bottom: 20px; }
.account-card .auth-back { margin: 12px 0 0; }
.account-standalone .account-card.app-error { margin: 0; width: min(100%, 500px); }
.account-card .error-code { display: block; margin-bottom: 12px; }
.account-card .error-reference { font-size: 24px; letter-spacing: -.02em; }
.account-card [aria-invalid=true] { border-color: var(--account-danger); }
.account-error-text { color: var(--account-danger); min-height: 1.2em; font-size: 11px; margin: 5px 0; }
.account-password-field { display: flex; gap: 6px; }
.account-password-field .outline { margin: 0; min-width: 50px; padding: 6px 10px; }
.account-card .strength-bar i { width: 100%; transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease-out); }
.account-card .strength-bar:has(+[data-level='2']) i { background: var(--account-warning); }
.account-card .strength-bar:has(+[data-level='3']) i { background: var(--account-ok); }
.account-password-rules { list-style: none; padding: 0; margin: 10px 0; font-size: 11px; color: var(--muted); }
.account-password-rules li { display: flex; align-items: center; gap: 7px; margin: 4px 0; }
.account-password-rules [data-met=true],.account-card .is-verified { color: var(--account-ok); }
.account-text-button { display: block; background: transparent; border: 0; padding: 6px 0; color: var(--muted); text-decoration: underline; font: inherit; font-size: 11px; margin-top: 7px; }
.account-help-link { display: block; text-align: center; font-size: 11px; color: var(--muted); margin: 12px 0 0; }
.account-plans { border: 0; padding: 0; display: grid; gap: 9px; margin: 17px 0; }
.account-plans label { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 9px; padding: 10px; cursor: pointer; }
.account-plans label:has(input:checked) { background: var(--account-plans-background); }
.account-plans :is(strong,small) { display: block; }
.account-plans small { color: var(--muted); margin-top: 3px; }
.account-otp { display: grid; grid-template-columns: repeat(6,minmax(0,43px)); gap: 7px; margin: 16px 0; }
.account-otp input { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 8px; background: var(--account-otp-background); color: var(--text); text-align: center; font: inherit; }
.demo-setup-key { overflow-wrap: anywhere; }
.two-factor-layout .demo-setup-key { display: block; margin: 8px 0; }
.account-backup-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); list-style: none; gap: 0 13px; }
.account-backup-list, .account-confirm { margin: 14px 0; }
.account-confirm { display: flex; gap: 8px; align-items: center; font-size: 12px; }
.preference-group h4 { font-size: 11px; margin: 16px 0 4px; color: var(--muted); }
.preference-group .preference-row { padding: 10px 0; margin: 0; }
.preference-group:last-of-type { margin-bottom: 16px; }
.help-categories { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.help-categories .outline { font-size: 11px; padding: 6px 10px; }
.help-categories [aria-pressed=true] { background: var(--help-categories-background); }
.help-reading { margin: 0 0 15px; }
.help-reading :is(h2,p) { margin: 10px 0; }
.vf-support .field.help-attachment { margin-top: 14px; }
.help-ticket { border: 1px solid var(--line); padding: 12px 15px; border-radius: 9px; margin-top: 16px; }
.help-ticket strong { display: block; margin-bottom: 5px; }
.account-avatar-menu { position: relative; line-height: 0; }
.account-avatar-menu summary { cursor: pointer; list-style: none; display: block; border-radius: 50%; }
.account-avatar-menu summary::-webkit-details-marker { display: none; }
.account-avatar-panel { position: absolute; top: calc(100% + 11px); right: 0; z-index: 5; width: max-content; min-width: 140px; padding: 5px; border: 1px solid var(--line); border-radius: 10px; background: var(--account-avatar-panel-background); line-height: 1.35; box-shadow: 0 12px 25px var(--account-avatar-panel-shadow); }
.account-avatar-panel a { display: block; padding: 8px 10px; font-size: 11px; border-radius: 6px; }
.account-avatar-panel a:hover { background: var(--account-avatar-panel-background-2); }
html[data-theme=light] .account-avatar-panel { background: var(--account-avatar-panel-background-3); }
html[data-theme=light] .account-standalone { --account-danger: var(--account-danger-3); --account-ok: var(--account-ok-3); --account-warning: var(--account-warning-3); }

.topbar {
  position: relative;
  z-index: 10;
  min-height: 64px;
  height: auto;
  padding: 8px 16px;
  gap: 16px;
}
.topbar-location, .topbar-tools {
  display: flex;
  align-items: center;
  gap: 4px;
}
.topbar-location { min-width: 0; gap: 8px; }
.topbar-root,.topbar-divider { color:var(--muted); }
.topbar-page {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-weight: 600;
}
.topbar .right { gap: 12px; flex: none; }
.topbar .header-action, .topbar .account-avatar-menu summary {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  min-width: 0;
  padding: 0;
  color: var(--text);
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
}
.topbar .mobilemenu { display: none; }
.topbar .header-action:is(:hover,:focus-visible),
.topbar .account-avatar-menu summary:is(:hover,:focus-visible) {
  background: color-mix(in srgb,var(--text) 9%,transparent);
}
.header-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: none;
  background: currentColor;
  mask: var(--header-icon) center / contain no-repeat;
}
html[data-theme="light"] .theme-toggle [data-icon="sun"],
html:not([data-theme="light"]) .theme-toggle [data-icon="moon"] { display: none; }
html[data-theme] .topbar .surface-switch {
  margin: 0;
  padding: 2px;
  border-color: var(--line);
  border-radius: 12px;
  background: color-mix(in srgb,var(--text) 4%,transparent);
  box-shadow: none;
}
html[data-theme] .topbar .surface-option {
  min-height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  font-size: 11px;
  color: var(--text);
}
html[data-theme] .topbar .surface-option.selected {
  color: var(--bg);
  background: var(--text);
  box-shadow: none;
  font-weight: 600;
}
.topbar .vx-top-credit {
  border: 0;
  padding: 4px 8px;
  gap: 4px;
  font-size: 11px;
  min-height: 40px;
  align-content: center;
}
.topbar .vx-top-credit:hover { background: color-mix(in srgb,var(--text) 9%,transparent); }
.account-avatar-panel .demo-state-control {
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
  padding: 8px;
  border-top: 1px solid var(--line);
  color: var(--text);
}
.account-avatar-panel .demo-state-control > span { display: block; }
.account-avatar-panel .demo-state-control > select {
  width: 100%;
  min-height: 40px;
  color: inherit;
}
.account-avatar-panel .icon-attribution {
  margin-top: 4px;
  color: var(--muted);
}
.account-avatar-menu[open] .account-avatar-panel {
  transform-origin: top right;
  animation: header-menu-in 250ms var(--motion-ease);
}
@keyframes header-menu-in { from { opacity: 0; transform: scale(.96); } }
@media (max-width: 700px) {
  .topbar { gap: 8px; padding: 4px 8px; }
  .topbar .right { gap: 4px; }
  .topbar-root,.topbar-divider { display: none; }
  .topbar .mobilemenu { display: grid; flex: none; }
  .topbar .header-action,.topbar .account-avatar-menu summary { width: 44px; height: 44px; }
  html[data-theme] .topbar .surface-option { min-height: 44px; padding: 0 8px; }
}
@media (max-width: 520px) {
  .topbar { display: grid; grid-template-columns: auto minmax(0,1fr) 44px; gap: 4px 12px; }
  .topbar .right { display: contents; }
  .topbar-location { grid-area: 1 / 1 / 2 / 3; padding-inline-end: 40px; }
  .topbar .vx-top-credit { grid-area: 1 / 2 / 2 / 4; justify-self: end; }
  html[data-theme] .topbar .surface-switch {
    grid-area: 2 / 1;
    position: relative;
    isolation: isolate;
    gap: 0;
    padding: 0;
    border: 0;
    background: none;
  }
  .topbar .surface-switch::before,
  .topbar .surface-option.selected::before {
    content: '';
    position: absolute;
    inset: 5px 0;
    z-index: -1;
    border-radius: 8px;
  }
  .topbar .surface-switch::before { border: 1px solid var(--line); }
  html[data-theme] .topbar .surface-option { min-width: 44px; }
  html[data-theme] .topbar .surface-option.selected {
    position: relative;
    isolation: isolate;
    background: none;
  }
  .topbar .surface-option.selected::before { inset-inline: 2px; background: var(--text); }
  .topbar .surface-option .header-icon { display: none; }
  .topbar-tools { grid-area: 2 / 2; justify-self: end; gap: 2px; }
  .topbar .account-avatar-menu { grid-area: 2 / 3; justify-self: end; }
}
@media(prefers-reduced-motion: reduce) {
  .account-card .strength-bar i { transition: none; }
}
