/* Sign-in pages (signup, login, forgot/reset password, verify email, 2FA,
   connect Google, staff invite): a black scene of Vatoo at work on the left,
   the form on the right. The form stays first in the page source, so screen
   readers and keyboard order reach it first; CSS order moves the scene left. Black and white only; tokens from botmaster.css. */

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

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
  align-items: start;
}

/* ── Form side ─────────────────────────────────────────────────────────── */
.auth-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
}
.auth-inner { width: 100%; max-width: 440px; }
.auth-inner.is-narrow { max-width: 400px; }

.auth-logo {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 40px; text-decoration: none; color: var(--dark);
  font-size: 18px; font-weight: 700; letter-spacing: .04em;
}
.auth-logo img { height: 28px; width: auto; }

.auth-h1 {
  font-size: 32px; line-height: 1.15; font-weight: 700;
  letter-spacing: -0.025em; color: var(--dark); margin-bottom: 10px;
}
.auth-lead { font-size: 15px; line-height: 1.55; color: var(--muted); margin-bottom: 28px; }
.auth-lead strong { color: var(--dark); font-weight: 600; }

.auth-page .bm-form-group { position: relative; margin-bottom: 18px; }
.auth-page .bm-label { font-size: 12.5px; font-weight: 600; color: var(--dark); margin-bottom: 6px; display: block; }
.auth-page .bm-input { height: 44px; font-size: 14px; border-radius: 10px; }
.auth-page .bm-input.is-error { border-color: #fca5a5 !important; }

.auth-btn {
  width: 100%; height: 46px; justify-content: center; gap: 8px;
  font-size: 14.5px; font-weight: 600; border-radius: 10px; margin-top: 4px;
}
.auth-btn[disabled] { opacity: .55; cursor: not-allowed; }

.auth-row-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.auth-row-2 > .bm-form-group { min-width: 0; }

.auth-alt { text-align: center; margin-top: 22px; font-size: 13.5px; color: var(--muted); }
.auth-alt a { color: var(--dark); font-weight: 600; text-decoration: none; }
.auth-alt a:hover { text-decoration: underline; text-underline-offset: 3px; }

.auth-link { font-size: 12.5px; font-weight: 600; color: var(--dark); text-decoration: none; }
.auth-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.auth-foot {
  display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 48px;
  font-size: 12px; color: var(--muted2);
}
.auth-foot a { color: var(--muted2); text-decoration: none; }
.auth-foot a:hover { color: var(--dark); }

/* Messages */
.auth-alert {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 13px; line-height: 1.5; border-radius: 10px;
  padding: 11px 14px; margin-bottom: 18px;
  background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
}
.auth-alert i { flex-shrink: 0; margin-top: 2px; }
.auth-alert a { color: inherit; font-weight: 700; text-decoration: underline; }
.auth-alert.is-info { background: var(--off2); border-color: var(--border); color: var(--dark); }
.auth-alert.is-warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.auth-alert.is-ok { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.field-error { font-size: 11.5px; color: var(--red); margin-top: 5px; min-height: 0; }
.field-error:empty { display: none; }

/* Password: show/hide, caps lock, strength, match */
.pass-wrap { position: relative; }
.pass-wrap .bm-input { padding-right: 42px; }
.pass-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: 0; background: transparent; border-radius: 8px;
  color: var(--muted2); font-size: 16px; cursor: pointer; display: grid; place-items: center;
}
.pass-toggle:hover { color: var(--dark); background: var(--off2); }
.pass-toggle:focus-visible { outline: 2px solid var(--dark); outline-offset: 1px; }
.caps-hint { display: none; font-size: 11.5px; color: var(--amber); margin-top: 5px; align-items: center; gap: 5px; }
.caps-hint.on { display: flex; }

.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 8px; }
.pw-meter span { height: 4px; border-radius: 4px; background: var(--border); transition: background .25s; }
.pw-meter[data-score="1"] span:nth-child(-n+1),
.pw-meter[data-score="2"] span:nth-child(-n+2),
.pw-meter[data-score="3"] span:nth-child(-n+3),
.pw-meter[data-score="4"] span { background: var(--dark); }
.pw-meter[data-score="1"] span:nth-child(-n+1) { background: var(--muted2); }
.pw-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.pw-reqs { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.pw-req { display: inline-flex; align-items: center; gap: 4px; color: var(--muted2); transition: color .2s; }
.pw-req i { font-size: 11px; }
.pw-req.met { color: var(--dark); }
.pw-label { font-weight: 600; color: var(--dark); white-space: nowrap; }
.pw-match { display: none; font-size: 11.5px; margin-top: 5px; align-items: center; gap: 5px; }
.pw-match.on { display: flex; }
.pw-match.ok { color: var(--dark); }
.pw-match.bad { color: var(--red); }

/* "Last used" tag on the method this browser signed in with last */
.last-used {
  margin-left: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
  padding: 2px 8px; border-radius: 99px; background: var(--dark); color: var(--white);
}
.bm-btn-primary .last-used { background: var(--white); color: var(--dark); }

/* Plan dropdown on paid signup links (behaviour unchanged) */
.plan-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(22, 163, 74, 0.08); border: 1.5px solid rgba(22, 163, 74, 0.2);
  color: #16a34a; padding: 6px 12px; border-radius: 10px;
  font-size: 12.5px; font-weight: 700; margin-bottom: 18px;
}
.plan-badge i { font-size: 13px; }
.sp-select { display: flex; width: 100%; position: relative; padding: 0 12px; cursor: pointer; }
.sp-select select { flex: 1; min-width: 0; appearance: none; -webkit-appearance: none; border: 0; background: transparent;
  font: inherit; font-size: 12.5px; font-weight: 700; color: inherit; padding: 8px 22px 8px 0; cursor: pointer;
  text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
.sp-select select:focus { outline: none; }
.sp-select:focus-within { box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.35); }
.sp-select select option { color: #111; font-weight: 500; }
.sp-chev { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; font-size: 12px; }

/* Agency code fold-out */
.agency-box { margin-bottom: 20px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.agency-toggle {
  width: 100%; background: var(--white); border: 0; padding: 11px 14px; font: inherit; font-size: 13px;
  font-weight: 600; color: var(--ink-soft); cursor: pointer; display: flex; align-items: center; gap: 10px; text-align: left;
}
.agency-toggle:hover { background: var(--off2); }
.agency-toggle .agency-ico {
  display: inline-grid; place-items: center; width: 26px; height: 26px; background: var(--dark);
  border-radius: 7px; color: var(--white); font-size: 13px; flex-shrink: 0;
}
.agency-toggle u { text-underline-offset: 2px; color: var(--dark); }
.agency-toggle .bi-chevron-down { margin-left: auto; font-size: 12px; color: var(--gray-500); transition: transform .2s; }
.agency-toggle[aria-expanded="true"] .bi-chevron-down { transform: rotate(180deg); }
.agency-body { padding: 14px; border-top: 1px solid var(--border); }
.agency-body .bm-input { text-transform: uppercase; letter-spacing: .08em; font-family: var(--font-mono); }
.agency-note { font-size: 11.5px; color: var(--gray-500); margin-top: 6px; display: flex; gap: 5px; align-items: center; }

/* Centred states (sent, success, invalid) */
.auth-state { text-align: left; }
.auth-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  font-size: 24px; margin-bottom: 22px; background: var(--off2); color: var(--dark);
}
.auth-icon.is-dark { background: var(--dark); color: var(--white); }
.auth-icon.is-bad { background: #fef2f2; color: var(--red); }
.auth-chip {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  padding: 9px 14px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 14px; font-weight: 600; color: var(--dark); margin-bottom: 22px; word-break: break-all;
}
.auth-steps { list-style: none; display: grid; gap: 12px; margin: 0 0 24px; counter-reset: s; }
.auth-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--muted); line-height: 1.5; counter-increment: s; }
.auth-steps li::before {
  content: counter(s); flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--dark); color: var(--white); font-size: 12px; font-weight: 700; display: grid; place-items: center;
}
.auth-steps strong { color: var(--dark); font-weight: 600; }
.mail-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.mail-links a { justify-content: center; gap: 8px; text-decoration: none; height: 42px; border-radius: 10px; }
.auth-note { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.auth-note strong { color: var(--dark); }
.auth-divider { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }

/* 2FA code */
.code-input {
  height: 58px !important; font-size: 26px !important; font-weight: 700; letter-spacing: .35em;
  text-align: center; font-family: var(--font-mono);
}

/* ── Scene side (black) ────────────────────────────────────────────────── */
.auth-scene {
  order: -1;
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  background: var(--black); color: var(--white);
  display: flex; align-items: center; justify-content: center; padding: 48px;
}
.auth-scene::before {           /* faint dot grid */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.auth-scene-inner { position: relative; width: 100%; max-width: 440px; }

.sc-kicker {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 18px;
}
.sc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 0 rgba(255,255,255,.6); animation: sc-pulse 2s infinite; }
@keyframes sc-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.5); } 70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.sc-title { font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 10px; }
.sc-sub { font-size: 14.5px; color: rgba(255,255,255,.62); line-height: 1.55; margin-bottom: 28px; }

.sc-card {
  background: #141414; border: 1px solid #262626; border-radius: 16px; overflow: hidden;
}
.sc-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid #262626; }
.sc-bar > i { width: 9px; height: 9px; border-radius: 50%; background: #333; }
.sc-url {
  flex: 1; margin-left: 8px; height: 26px; border-radius: 7px; background: #0c0c0c; border: 1px solid #262626;
  display: flex; align-items: center; gap: 7px; padding: 0 10px; font-size: 12px; color: rgba(255,255,255,.75);
  font-family: var(--font-mono);
}
.sc-url .bi { font-size: 10px; color: rgba(255,255,255,.4); }
.sc-caret { display: inline-block; width: 1px; height: 13px; background: var(--white); margin-left: 1px; animation: sc-blink 1s steps(1) infinite; }
@keyframes sc-blink { 50% { opacity: 0; } }
.sc-body { padding: 16px; display: grid; gap: 10px; }

.sc-step {
  display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,.85);
  padding: 9px 12px; border-radius: 10px; background: #1b1b1b; border: 1px solid #262626;
}
.sc-step .bi { font-size: 14px; color: var(--white); }
.sc-step .sc-tick { margin-left: auto; color: rgba(255,255,255,.35); }
.sc-step.done .sc-tick { color: var(--white); }
.sc-step b { font-weight: 700; font-variant-numeric: tabular-nums; }

.sc-chat { display: grid; gap: 8px; padding: 4px 0 0; }
.sc-msg { max-width: 86%; font-size: 13px; line-height: 1.5; padding: 10px 13px; border-radius: 14px; }
.sc-msg.in { justify-self: end; background: #262626; color: var(--white); border-bottom-right-radius: 4px; }
.sc-msg.out { justify-self: start; background: var(--white); color: var(--black); border-bottom-left-radius: 4px; }
.sc-src {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 99px; background: #ededed; color: #333;
}
.sc-who { display: flex; align-items: center; gap: 7px; font-size: 11px; color: rgba(255,255,255,.5); }
.sc-avatar { width: 20px; height: 20px; border-radius: 50%; background: var(--white); color: var(--black); display: grid; place-items: center; font-size: 10px; font-weight: 800; }
.sc-typing { justify-self: start; display: inline-flex; gap: 4px; padding: 12px 14px; background: var(--white); border-radius: 14px; border-bottom-left-radius: 4px; }
.sc-typing i { width: 6px; height: 6px; border-radius: 50%; background: #999; animation: sc-bounce 1.2s infinite; }
.sc-typing i:nth-child(2) { animation-delay: .15s; }
.sc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes sc-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }

.sc-toast {
  display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px;
  border-radius: 12px; background: var(--white); color: var(--black); font-size: 13px; font-weight: 600;
}
.sc-toast .bi { font-size: 18px; }
.sc-toast small { display: block; font-weight: 500; color: #666; font-size: 12px; }

.sc-plan {
  margin-top: 18px; padding: 14px 16px; border-radius: 14px; border: 1px solid #2c2c2c; background: #101010;
}
.sc-plan-name { font-size: 14px; font-weight: 700; display: flex; justify-content: space-between; gap: 10px; }
.sc-plan-price { color: rgba(255,255,255,.7); font-weight: 600; font-size: 13px; white-space: nowrap; }
.sc-plan-about { margin-top: 6px; font-size: 12.5px; color: rgba(255,255,255,.6); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Feed (login) */
.sc-feed { display: grid; gap: 10px; }
.sc-item {
  display: grid; grid-template-columns: 58px 30px 1fr; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 12px; background: #141414; border: 1px solid #262626; font-size: 13px;
}
.sc-time { font-family: var(--font-mono); font-size: 11.5px; color: rgba(255,255,255,.5); }
.sc-ico { width: 30px; height: 30px; border-radius: 9px; background: #222; display: grid; place-items: center; font-size: 14px; }
.sc-item small { display: block; color: rgba(255,255,255,.5); font-size: 12px; }
.sc-total { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; }
.sc-total b { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.sc-total span { color: rgba(255,255,255,.65); font-size: 14px; }
.sc-caption { margin-top: 14px; font-size: 11.5px; color: rgba(255,255,255,.38); }

/* Quiet scene (forgot/reset, verify, 2FA, connect Google, invite) */
.sc-quiet { text-align: left; }
.sc-art { display: block; width: 132px; height: 132px; margin-bottom: 28px; }
.sc-list { list-style: none; display: grid; gap: 12px; margin-top: 4px; }
.sc-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: rgba(255,255,255,.75); line-height: 1.5; }
.sc-list .bi { color: var(--white); font-size: 16px; margin-top: 1px; }
.sc-lock-shackle { transform-origin: 70% 100%; animation: sc-unlock 4.5s ease-in-out infinite; }
@keyframes sc-unlock { 0%, 35% { transform: translateY(0) rotate(0); } 50%, 85% { transform: translateY(-10px) rotate(-18deg); } 100% { transform: translateY(0) rotate(0); } }
.sc-env-flap { transform-origin: 50% 0; animation: sc-flap 4.5s ease-in-out infinite; }
@keyframes sc-flap { 0%, 40% { transform: scaleY(1); } 55%, 85% { transform: scaleY(-1); } 100% { transform: scaleY(1); } }
.sc-float { animation: sc-float 5s ease-in-out infinite; }
@keyframes sc-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Scene timeline: [data-step] items appear one by one (auth.js) */
[data-scene] [data-step] { opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease; }
[data-scene] [data-step].on { opacity: 1; transform: none; }
[data-scene] [data-step].gone { display: none; }

/* ── Phones and small tablets ──────────────────────────────────────────── */
.auth-strip { display: none; }
@media (max-width: 960px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-scene { display: none; }
  .auth-main { min-height: auto; padding: 28px 20px 40px; align-items: flex-start; }
  .auth-logo { margin-bottom: 28px; }
  .auth-strip {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 40px; padding: 8px 16px; background: var(--black); color: var(--white);
    font-size: 12.5px; font-weight: 500; text-align: center;
  }
  .auth-strip span { display: none; }
  .auth-strip span.on, .auth-strip span:only-child { display: inline; }
}
@media (max-width: 480px) {
  .auth-h1 { font-size: 26px; }
  .auth-lead { font-size: 14px; margin-bottom: 22px; }
  .auth-row-2 { grid-template-columns: 1fr; gap: 0; }
  .mail-links { grid-template-columns: 1fr; }
}

/* Reduced motion: no movement; scenes show their finished frame (auth.js) */
@media (prefers-reduced-motion: reduce) {
  .auth-page *, .auth-page *::before, .auth-page *::after {
    animation: none !important; transition: none !important;
  }
}

/* Google button sized to match the form controls */
.auth-page .g-btn { height: 46px; border-radius: 10px; font-size: 14.5px; }
.auth-page .g-or { margin: 20px 0; }

/* Short screens (laptops at 768px tall): tighter scene so nothing is cut off */
@media (min-width: 961px) and (max-height: 820px) {
  .auth-scene { padding: 28px 40px; }
  .sc-sub { display: none; }
  .sc-title { font-size: 24px; margin-bottom: 16px; }
  .sc-kicker { margin-bottom: 12px; }
  .sc-body { padding: 12px; gap: 8px; }
  .sc-toast, .sc-plan { margin-top: 10px; }
  .sc-art { width: 96px; height: 96px; margin-bottom: 18px; }
}

/* ── One window, no page scroll (desktop) ─────────────────────────────────
   Both halves are exactly the window height. The form column scrolls on its
   own only as a last resort (very short windows, or several error lines). */
@media (min-width: 961px) {
  body.auth-page { height: 100vh; overflow: hidden; }
  .auth-shell { height: 100vh; min-height: 0; align-items: stretch; }
  .auth-main { height: 100vh; min-height: 0; overflow-y: auto; padding: 28px 40px; }
  .auth-scene { position: relative; height: 100vh; }
  .auth-logo { margin-bottom: 28px; }
}

/* Footer: bottom of the black panel on desktop, under the form on phones */
.auth-foot.is-scene {
  position: absolute; left: 48px; right: 48px; bottom: 24px; margin: 0;
  color: rgba(255,255,255,.45);
}
.auth-foot.is-scene a { color: rgba(255,255,255,.45); }
.auth-foot.is-scene a:hover { color: var(--white); }
@media (min-width: 961px) { .auth-foot.is-main { display: none; } }

/* Compact form (signup): fits a 720px-tall window */
.is-compact .auth-logo { margin-bottom: 20px; }
.is-compact .auth-h1 { font-size: 26px; margin-bottom: 4px; }
.is-compact .auth-lead { font-size: 14px; margin-bottom: 14px; }
.is-compact .plan-badge { margin-bottom: 12px; }
.is-compact .g-btn { height: 42px; }
.is-compact .g-or { margin: 12px 0; }
.is-compact .bm-form-group { margin-bottom: 12px; }
.is-compact .bm-label { margin-bottom: 4px; font-size: 12px; }
.is-compact .bm-input { height: 40px; }
.is-compact .pw-row .bm-form-group { margin-bottom: 0; }
.is-compact .pw-strength { margin: 6px 0 14px; }
.is-compact .pw-strength .pw-meter { margin-top: 0; }
.is-compact .auth-btn { height: 44px; margin-top: 0; }
.is-compact .auth-alt { margin-top: 12px; }

/* Agency code: one line until opened */
.agency-line { margin-bottom: 14px; }
.agency-link {
  border: 0; background: none; padding: 0; font: inherit; font-size: 12.5px; color: var(--muted);
  cursor: pointer; display: inline; text-align: left; line-height: 1.5;
}
.agency-link .bi { margin-right: 4px; }
.agency-link u { color: var(--dark); font-weight: 600; text-underline-offset: 2px; }
.agency-link:hover u { text-decoration-thickness: 2px; }
.agency-link:focus-visible { outline: 2px solid var(--dark); outline-offset: 2px; border-radius: 4px; }
.agency-line .agency-body { border: 1px solid var(--border); border-radius: 10px; margin-top: 8px; padding: 12px; }
/* Keep the scene clear of the footer at the bottom of the panel */
@media (min-width: 961px) { .auth-scene { padding-bottom: 72px; } }
@media (min-width: 961px) and (max-height: 820px) { .auth-scene { padding-bottom: 60px; } .auth-foot.is-scene { bottom: 18px; } }
@media (max-width: 480px) {
  .is-compact .pw-row .bm-form-group:first-child { margin-bottom: 12px; }
  .is-compact .auth-lead { margin-bottom: 12px; }
}

/* ── Plan dropdown: styled menu over the real <select> (signup.html) ───── */
.sp-select.is-enhanced { padding: 0; display: block; cursor: default; }
.sp-select.is-enhanced select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.sp-select.is-enhanced > .bi:not(.sp-chev) { display: none; }   /* the old leading icon */
.sp-select.is-enhanced .sp-chev { right: 14px; transition: transform .2s; }
.sp-select.is-open .sp-chev { transform: translateY(-50%) rotate(180deg); }
.sp-select.is-enhanced:focus-within { box-shadow: none; }

.sp-trigger {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 9px 40px 9px 14px; border: 0; background: transparent; border-radius: 10px;
  font: inherit; color: #166534; cursor: pointer;
}
.sp-trigger:focus-visible { outline: 2px solid #16a34a; outline-offset: 2px; }
.sp-t-main { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.sp-t-main b { font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.sp-t-main span { font-size: 12px; font-weight: 500; color: #15803d; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-t-price { font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.sp-t-price small, .sp-price small { font-size: 11px; font-weight: 500; opacity: .75; margin-left: 1px; }

.sp-menu {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px);
  margin: 0; padding: 6px; list-style: none; background: var(--white);
  border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 12px 32px rgba(17, 17, 17, .12), 0 2px 6px rgba(17, 17, 17, .06);
  max-height: min(340px, 60vh); overflow-y: auto; color: var(--dark);
  animation: sp-in .14s ease-out;
}
.sp-menu:focus { outline: none; }
@keyframes sp-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.sp-menu li {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  cursor: pointer; font-weight: 500;
}
.sp-menu li.sp-sep { margin-top: 7px; position: relative; }
.sp-menu li.sp-sep::before { content: ''; position: absolute; left: 12px; right: 12px; top: -4px; height: 1px; background: var(--border); }
.sp-menu li.is-active { background: var(--off2); }
.sp-menu li[aria-selected="true"] { background: #f0fdf4; }
.sp-menu li[aria-selected="true"].is-active { background: #e6f9ec; }
.sp-ico {
  width: 30px; height: 30px; border-radius: 9px; background: var(--off2); color: var(--dark);
  display: grid; place-items: center; font-size: 14px; flex-shrink: 0;
}
.sp-menu li[aria-selected="true"] .sp-ico { background: #16a34a; color: var(--white); }
.sp-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.sp-txt b { font-size: 13.5px; font-weight: 600; }
.sp-txt small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-price { font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.sp-save {
  font-size: 10.5px; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
  padding: 2px 7px; border-radius: 99px; background: var(--dark); color: var(--white);
}
.sp-tick { width: 16px; font-size: 16px; color: #16a34a; visibility: hidden; flex-shrink: 0; }
.sp-menu li[aria-selected="true"] .sp-tick { visibility: visible; }
@media (max-width: 480px) {
  .sp-t-main { flex-direction: column; gap: 0; }
  .sp-menu li { gap: 10px; padding: 9px 10px; }
  .sp-ico { display: none; }
}
