/* Sign in / Sign up — builds on the dashboard's tokens in /styles.css
   (Manrope, --accent #1D5BDC, --border, --surface, --radius, --focus). */

.auth-body { background: var(--bg); min-height: 100vh; }

@keyframes authRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes authFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes authDrop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes authPop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); } }
@keyframes authSpin { to { transform: rotate(360deg); } }

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 52fr) minmax(0, 48fr);
}

/* ---------- brand panel ---------- */
.auth-brand {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 36px;
  padding: 36px clamp(28px, 3vw, 52px) 36px;
  background: #F6F8FD;
  border-right: 1px solid var(--border);
}
.auth-brand-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(520px 360px at 12% 8%, rgba(29, 91, 220, 0.08), transparent 70%),
    radial-gradient(460px 340px at 92% 86%, rgba(109, 79, 224, 0.07), transparent 70%);
}
.auth-brand > * { position: relative; }
.auth-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); width: fit-content; border-radius: 10px; }
.auth-logo-mark {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #fb923c, #ea580c); box-shadow: 0 4px 10px rgba(234, 88, 12, 0.28);
}
.auth-logo.compact .auth-logo-mark { width: 36px; height: 36px; border-radius: 10px; }
.auth-logo-text { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.auth-brand-copy { display: flex; flex-direction: column; gap: 14px; margin-top: auto; }
.auth-headline { margin: 0; font-size: clamp(30px, 2.7vw, 44px); line-height: 1.12; font-weight: 800; letter-spacing: -0.025em; color: var(--text); }
.auth-sub { margin: 0; max-width: 470px; font-size: 16px; line-height: 1.6; color: var(--text-2); animation: authRise .6s .75s ease both; }

/* prompt → models → best response */
.auth-visual { display: flex; flex-direction: column; align-items: center; gap: 0; max-width: 700px; width: 100%; }
.v-prompt {
  width: 100%; box-sizing: border-box; display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  animation: authRise .55s .1s ease both;
}
.v-tag { flex: none; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); background: var(--accent-soft); padding: 3px 8px; border-radius: 999px; }
.v-prompt-text { font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-fan { display: block; width: 100%; height: 34px; animation: authFade .6s .25s ease both; }
.v-fan path { fill: none; stroke: var(--border-strong); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 3 4; }
.v-models { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.v-model {
  --i: 0;
  display: flex; flex-direction: column; gap: 7px; padding: 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  animation: authRise .5s ease both; animation-delay: calc(.3s + var(--i) * .12s);
}
.v-model.picked { border-color: #9DB8F2; box-shadow: 0 8px 20px rgba(29, 91, 220, .12); }
.v-model-head { display: flex; align-items: center; gap: 7px; margin-bottom: 2px; }
.v-badge { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; flex: none; }
.v-badge.m-openai { background: #10a37f; color: #fff; }
.v-badge.m-anthropic { background: #ede7dc; color: #191919; }
.v-badge.m-google { background: #fff; color: #4285f4; box-shadow: inset 0 0 0 1px var(--border-strong); }
.v-model-name { font-size: 12.5px; font-weight: 700; color: var(--text); }
.v-pick { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; }
.v-line { --w: 80%; display: block; height: 6px; width: var(--w); border-radius: 4px; background: var(--surface-3); }
.v-result {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-size: 12.5px; font-weight: 700; color: var(--accent-text);
  animation: authRise .5s .75s ease both;
}

/* ---------- form column ---------- */
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 48px 24px 28px; min-width: 0; }
.auth-mobile-brand { display: none; }
.auth-card { width: 100%; max-width: 420px; margin-top: auto; animation: authRise .5s ease both; }
.auth-form-wrap { display: flex; flex-direction: column; gap: 22px; }
.auth-head { display: flex; flex-direction: column; gap: 6px; }
.auth-title { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.auth-lead { margin: 0; font-size: 15px; color: var(--text-2); }
.auth-form { display: flex; flex-direction: column; gap: 18px; }

.auth-field { display: flex; flex-direction: column; gap: 7px; }
.auth-label { font-size: 13.5px; font-weight: 700; color: var(--text); }
.auth-control { position: relative; display: flex; align-items: center; }
.auth-control-icon { position: absolute; left: 14px; color: var(--text-3); pointer-events: none; transition: color .15s; }
.auth-input {
  width: 100%; height: 50px; box-sizing: border-box; padding: 0 46px 0 44px;
  border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface);
  font: inherit; font-size: 15px; color: var(--text);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.auth-input::placeholder { color: #8A93A6; }
.auth-input:hover { border-color: #B9C3D6; }
.auth-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(29, 91, 220, .14); }
.auth-control:focus-within .auth-control-icon { color: var(--accent); }
.auth-field.is-invalid .auth-input { border-color: #D64545; box-shadow: 0 0 0 4px rgba(214, 69, 69, .1); }
.auth-field.is-invalid .auth-control-icon { color: #C23B3B; }
.auth-field.is-valid .auth-input { border-color: #3FAE73; }
.auth-valid-mark { position: absolute; right: 14px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--success-soft); color: var(--success); animation: authPop .3s ease both; }
.auth-control:has(.auth-eye) .auth-valid-mark { right: 48px; }
.auth-field-error { margin: 0; display: flex; align-items: flex-start; gap: 6px; font-size: 13px; line-height: 1.4; color: #B42318; animation: authDrop .2s ease both; }
.auth-field-error .icon { flex: none; margin-top: 1px; }

.auth-eye {
  position: absolute; right: 5px; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent;
  color: var(--text-3); cursor: pointer; display: grid; place-items: center; transition: background-color .15s, color .15s;
}
.auth-eye:hover { background: var(--surface-3); color: var(--text); }
.eye-swap { position: relative; width: 18px; height: 18px; }
.eye-swap .icon { position: absolute; inset: 0; transition: opacity .18s ease, transform .18s ease; }
.eye-swap .icon:last-child { opacity: 0; transform: scale(.7); }
.eye-swap.on .icon:first-child { opacity: 0; transform: scale(.7); }
.eye-swap.on .icon:last-child { opacity: 1; transform: none; }

/* password strength */
.auth-strength { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); animation: authDrop .2s ease both; }
.auth-strength-row { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; }
.auth-strength-title { color: var(--text-3); font-weight: 600; }
.auth-strength-label { font-weight: 800; }
.auth-strength-label.s1 { color: #B42318; }
.auth-strength-label.s2 { color: #B54708; }
.auth-strength-label.s3 { color: #1D5BDC; }
.auth-strength-label.s4 { color: #067647; }
.auth-strength-bars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.auth-strength-bars span { height: 5px; border-radius: 3px; background: var(--border); transition: background-color .25s ease; }
.auth-strength-bars span.on.s1 { background: #E5484D; }
.auth-strength-bars span.on.s2 { background: #F59E0B; }
.auth-strength-bars span.on.s3 { background: #3B82F6; }
.auth-strength-bars span.on.s4 { background: #12A150; }
.auth-reqs { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.auth-reqs li { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-3); transition: color .2s; }
.auth-reqs li.met { color: #067647; }

/* checkbox */
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.auth-check { display: flex; flex-direction: column; gap: 6px; }
.auth-check label { position: relative; display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; color: var(--text-2); line-height: 1.45; min-height: 24px; }
.auth-check input { position: absolute; left: 0; top: 0; width: 20px; height: 20px; margin: 0; opacity: 0; cursor: pointer; }
.auth-checkbox {
  flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--border-strong); background: var(--surface);
  display: grid; place-items: center; color: transparent; transition: background-color .15s, border-color .15s, color .15s;
}
.auth-check input:checked + .auth-checkbox { background: var(--accent); border-color: var(--accent); color: #fff; }
.auth-check input:focus-visible + .auth-checkbox { box-shadow: 0 0 0 4px rgba(29, 91, 220, .2); }
.auth-check.is-invalid .auth-checkbox { border-color: #D64545; }
.auth-check-text strong { color: var(--text); font-weight: 700; }
.auth-link { font-size: 14px; font-weight: 700; color: var(--accent-text); text-decoration: none; border-radius: 6px; }
.auth-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* buttons */
.auth-submit {
  position: relative; width: 100%; height: 52px; margin-top: 4px; border: 0; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--accent); color: #fff; font: inherit; font-size: 15.5px; font-weight: 750; cursor: pointer;
  box-shadow: 0 2px 6px rgba(29, 91, 220, .25);
  transition: background-color .15s, box-shadow .15s, transform .12s;
}
.auth-submit .icon { transition: transform .15s; }
.auth-submit:hover:not(:disabled) { background: var(--accent-hover); box-shadow: 0 10px 22px rgba(29, 91, 220, .28); transform: translateY(-1px); }
.auth-submit:hover:not(:disabled) .icon { transform: translateX(3px); }
.auth-submit:active:not(:disabled) { transform: translateY(0) scale(.99); box-shadow: 0 2px 6px rgba(29, 91, 220, .25); }
.auth-submit:disabled { cursor: progress; opacity: .85; }
.auth-submit:focus-visible, .auth-social:focus-visible, .auth-eye:focus-visible, .auth-link:focus-visible, .auth-switch a:focus-visible, .auth-logo:focus-visible, .auth-footer a:focus-visible {
  outline: none; box-shadow: 0 0 0 4px rgba(29, 91, 220, .28);
}
.auth-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: authSpin .8s linear infinite; }
.auth-spinner.dark { border-color: var(--border-strong); border-top-color: var(--accent); }
.auth-divider { display: flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--text-3); }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-social {
  width: 100%; height: 50px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface);
  display: flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-size: 15px; font-weight: 700; color: var(--text);
  cursor: pointer; transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.auth-social:hover:not(:disabled) { background: var(--surface-2); border-color: #B9C3D6; box-shadow: 0 4px 12px rgba(16, 24, 40, .06); }
.auth-social:disabled { opacity: .7; cursor: progress; }

.auth-alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.45; animation: authDrop .22s ease both; }
.auth-alert .icon { flex: none; margin-top: 1px; }
.auth-alert.error { background: #FEF3F2; border: 1px solid #FDA29B; color: #912018; }
.auth-alert.info { background: var(--accent-soft); border: 1px solid #B2CCFF; color: #1E3A8A; }
.auth-switch { margin: 0; text-align: center; font-size: 14.5px; color: var(--text-2); }
.auth-switch a { font-weight: 800; color: var(--accent-text); text-decoration: none; border-radius: 6px; }
.auth-switch a:hover { text-decoration: underline; text-underline-offset: 3px; }

.auth-success { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 24px 0; animation: authRise .4s ease both; }
.auth-success-mark { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--success-soft); color: var(--success); animation: authPop .45s ease both; margin-bottom: 6px; }

.auth-footer { width: 100%; max-width: 420px; display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-3); margin-top: auto; }
.auth-footer a { color: var(--text-3); text-decoration: none; border-radius: 6px; }
.auth-footer a:hover { color: var(--text); }

@media (prefers-color-scheme: dark) {
  .auth-brand { background: #121826; }
  .auth-brand-glow { background: radial-gradient(520px 360px at 12% 8%, rgba(91, 140, 255, .12), transparent 70%), radial-gradient(460px 340px at 92% 86%, rgba(139, 92, 246, .1), transparent 70%); }
  .auth-field-error { color: #FDA29B; }
  .auth-alert.error { background: #2D1515; border-color: #7A271A; color: #FECDCA; }
  .auth-alert.info { background: #172241; border-color: #2B3F73; color: #C7D7FE; }
  .auth-reqs li.met, .auth-strength-label.s4 { color: #47CD89; }
  .auth-strength-label.s1 { color: #FDA29B; }
  .auth-strength-label.s2 { color: #FEC84B; }
  .auth-strength-label.s3 { color: #84ADFF; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .auth-shell { grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); }
  .v-prompt-text { white-space: normal; }
}
@media (max-width: 1023px) {
  .auth-shell { grid-template-columns: minmax(0, 38fr) minmax(0, 62fr); }
  .auth-visual { display: none; }
  .auth-brand { gap: 28px; }
  .auth-headline { font-size: 30px; }
}
@media (max-width: 860px) {
  .auth-shell { grid-template-columns: minmax(0, 1fr); }
  .auth-brand { display: none; }
  .auth-main { justify-content: flex-start; padding: 24px 20px 24px; gap: 26px; }
  .auth-mobile-brand { display: flex; width: 100%; max-width: 420px; }
}
@media (max-width: 380px) {
  .auth-main { padding: 20px 16px; }
  .auth-title { font-size: 24px; }
  .auth-row { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-body *, .auth-body *::before, .auth-body *::after { animation: none !important; transition: none !important; }
}

/* ---------- animated brand panel ---------- */
@keyframes wordRise { from { opacity: 0; transform: translateY(0.45em); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes caretBlink { 0%, 45% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes dashFlow { to { stroke-dashoffset: -14; } }
@keyframes lineShimmer { 0% { background-position: -200px 0; } 100% { background-position: 200px 0; } }
@keyframes dotBounce { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }

.h-word { --k: 0; display: inline-block; white-space: pre; animation: wordRise .55s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.08s * var(--k)); }
.h-word.accent { color: var(--accent); }

.v-prompt-text { min-height: 1.4em; }
.v-caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; vertical-align: -0.15em; background: var(--accent); animation: caretBlink 1s steps(1) infinite; }

.v-fan path { transition: stroke .3s ease; }
.v-fan.flowing path { stroke: var(--accent); stroke-opacity: .55; animation: dashFlow .6s linear infinite; }

.v-model { transition: border-color .35s ease, box-shadow .35s ease, transform .35s ease, opacity .35s ease; }
.v-model .v-line { transition: background-color .35s ease, width .35s ease; transition-delay: calc(var(--j, 0) * 60ms); }
.v-model.thinking .v-line {
  background: linear-gradient(90deg, var(--surface-3) 0%, #DCE6FB 50%, var(--surface-3) 100%);
  background-size: 400px 100%; animation: lineShimmer 1.2s linear infinite;
}
.v-model.done .v-line { background: #D3E0FA; }
.v-model.picked { border-color: #9DB8F2; box-shadow: 0 10px 24px rgba(29, 91, 220, .16); transform: translateY(-3px); }
.v-model.picked .v-line { background: #B9CEF6; }
.v-model.muted { opacity: .7; }
.v-pick { opacity: 0; transform: scale(.5); transition: opacity .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1.4), background-color .25s ease; background: var(--success-soft); color: var(--success); }
.v-pick.on { opacity: 1; transform: scale(1); }
.v-pick.best { background: var(--accent); color: #fff; transform: scale(1.12); }

.v-status { position: relative; height: 34px; margin-top: 14px; width: 100%; display: flex; justify-content: center; }
.v-status .v-result, .v-comparing {
  position: absolute; top: 0; opacity: 0; transform: translateY(4px); transition: opacity .35s ease, transform .35s ease; margin-top: 0; animation: none;
}
.v-status .v-show, .v-status .show { opacity: 1; transform: none; }
.v-comparing {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-size: 12.5px; font-weight: 700; color: var(--text-3);
}
.v-dots { display: inline-flex; gap: 3px; }
.v-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); animation: dotBounce 1s ease-in-out infinite; }
.v-dots i:nth-child(2) { animation-delay: .15s; }
.v-dots i:nth-child(3) { animation-delay: .3s; }

@media (prefers-color-scheme: dark) {
  .v-model.thinking .v-line { background: linear-gradient(90deg, var(--surface-3) 0%, #2A3A63 50%, var(--surface-3) 100%); background-size: 400px 100%; }
  .v-model.done .v-line { background: #24345C; }
  .v-model.picked .v-line { background: #2E4680; }
}

/* ---------- streaming model cards ---------- */
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--dot) 55%, transparent); } 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.v-model { gap: 8px; min-width: 0; }
.v-model .v-line { display: none; }
.v-stream {
  margin: 0; min-height: calc(1.5em * 4); max-height: calc(1.5em * 4); overflow: hidden;
  font-size: 11.5px; line-height: 1.5; color: var(--text-2); overflow-wrap: anywhere;
}
.v-model.picked .v-stream { color: var(--text); }
.v-caret.small { height: .95em; width: 1.5px; vertical-align: -0.12em; }
.v-thinking { display: inline-flex; gap: 3px; padding-top: 4px; }
.v-thinking i { width: 4px; height: 4px; border-radius: 50%; background: var(--text-3); animation: dotBounce 1s ease-in-out infinite; }
.v-thinking i:nth-child(2) { animation-delay: .15s; }
.v-thinking i:nth-child(3) { animation-delay: .3s; }
.v-model-foot {
  display: flex; align-items: center; gap: 6px; padding-top: 7px; border-top: 1px solid var(--border);
  font-family: var(--mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3);
}
.v-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); flex: none; transition: background-color .3s; }
.v-model.streaming .v-live-dot { background: var(--dot); animation: livePulse 1.2s ease-out infinite; }
.v-model.done .v-live-dot { background: var(--dot); }
.v-model.done .v-model-foot { color: var(--text-2); }
@media (max-width: 1180px) { .v-stream { font-size: 11px; } }

/* ---------- bigger cards: model id, metrics, blind preference ---------- */
.v-model { gap: 10px; border-radius: 14px; }
.v-badge { width: 26px; height: 26px; font-size: 12px; }
.v-model-title { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.v-model-id { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-model-title .v-model-name { font-size: 11px; font-weight: 600; color: var(--text-3); }
.v-stream { font-size: 12.5px; min-height: calc(1.55em * 4); max-height: calc(1.55em * 4); line-height: 1.55; }

.v-metrics { margin: 0; display: grid; gap: 5px; }
.v-metric {
  --k: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  opacity: .45; transform: translateY(3px); transition: opacity .35s ease, transform .35s ease;
}
.v-metrics.on .v-metric { opacity: 1; transform: none; transition-delay: calc(var(--k) * 90ms); }
.v-metric dt { font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.v-metric dd { margin: 0; font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }

.v-pref { width: 100%; margin-top: 14px; padding: 12px 14px; box-sizing: border-box; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; animation: authRise .5s .7s ease both; }
.v-pref-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.v-example { padding: 2px 7px; border-radius: 999px; background: var(--surface-3); letter-spacing: .03em; }
.v-pref-bar { display: flex; gap: 3px; height: 8px; border-radius: 999px; overflow: hidden; background: var(--surface-3); }
.v-pref-seg { flex: 0 0 calc(33.333% - 2px); background: var(--dot); opacity: .35; transition: flex-basis .9s cubic-bezier(.2, .8, .2, 1), opacity .5s ease; }
.v-pref.on .v-pref-seg { flex-basis: calc(var(--share) - 2px); opacity: 1; }
.v-pref-legend { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-family: var(--mono); font-size: 11px; color: var(--text-2); }
.v-pref-legend span { display: inline-flex; align-items: center; gap: 6px; }
.v-pref-legend i { width: 7px; height: 7px; border-radius: 50%; background: var(--dot); }
.v-pref-legend b { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.v-pref-legend .lead b { color: var(--accent-text); }
@media (max-width: 1180px) {
  .auth-shell { grid-template-columns: minmax(0, 50fr) minmax(0, 50fr); }
  .v-models { gap: 8px; }
  .v-model { padding: 11px; }
  .v-model-head .v-pick { display: none; }
  .v-model-id { white-space: normal; overflow-wrap: anywhere; font-size: 11px; }
  .v-stream { font-size: 11.5px; min-height: calc(1.55em * 6); max-height: calc(1.55em * 6); }
  .v-pref-legend { font-size: 10px; }
}

/* Phones: one column. (The 1180px rule above would otherwise bring back the two-column grid.) */
@media (max-width: 860px) { .auth-shell { grid-template-columns: minmax(0, 1fr); } }
