.st-password-toggle, .st-search input, .st-preferences {
  font: inherit;
}
.st-control { min-height: 44px; }
.st-icon { display: inline-flex; align-items: center; justify-content: center; }
.st-control.st-icon { width: 44px; padding: 0; }
.st-preferences { cursor: pointer; }
.st-preferences:hover { color: var(--lx-mint-neon); }
.st-control:focus-visible, .st-password-toggle:focus-visible,
.st-search input:focus-visible, .st-preferences:focus-visible {
  outline: 2px solid var(--st-focus, var(--brand));
  outline-offset: 3px;
}
.st-progress { position: fixed; inset: 0 0 auto; height: 2px; background: var(--st-focus); transform-origin: left; z-index: 1000; pointer-events: none; }
.st-floating { position: fixed; right: 16px; bottom: max(20px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; z-index: 80; }
.st-floating .lx-btn { background: rgba(14, 18, 16, .3); border-color: rgba(255, 255, 255, .08); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transform: translateY(calc(var(--st-lag, 0px) + 12px)); transition: opacity .35s ease, transform .7s cubic-bezier(.22, 1, .36, 1), visibility .35s, background .2s; }
.st-floating .lx-btn.st-show { opacity: .7; visibility: visible; transform: translateY(var(--st-lag, 0px)); }
.st-floating .lx-btn.st-show:hover, .st-floating .lx-btn.st-show:focus-visible { opacity: 1; }
:root[data-theme="light"] .st-floating .lx-btn { background: rgba(4, 120, 87, .14); border-color: rgba(4, 120, 87, .35); color: #0a5c44; }
:root[data-theme="light"] .st-floating .lx-btn:hover { background: rgba(4, 120, 87, .24); }
@media (prefers-reduced-motion: reduce) { .st-floating .lx-btn { transition: none; transform: none; } }
.st-preferences { display: block; margin: 8px auto; background: none; color: var(--lx-text-muted); border: 0; min-height: 44px; font-size: 13px; }
.st-cookie { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); width: min(340px, calc(100% - 24px)); padding: 16px; border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--lx-r-md); background: rgba(14, 18, 16, .62); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); color: var(--lx-text-silver); box-shadow: 0 12px 40px #0005; z-index: 1200; font-size: 13px; line-height: 1.6; text-align: center; max-height: 75dvh; overflow: auto; }
:root[data-theme="light"] .st-cookie { background: rgba(255, 255, 255, .7); border-color: rgba(16, 24, 40, .1); box-shadow: 0 12px 40px rgba(16, 24, 40, .12); }
.st-cookie p { margin: 0; }
.st-search-results a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.st-cookie a { color: var(--lx-text-white); font-weight: 600; text-decoration: none; white-space: nowrap; }
.st-cookie a:hover { color: var(--lx-mint-neon); }
.st-cookie a:focus-visible { outline: 2px solid var(--st-focus); outline-offset: 2px; border-radius: 4px; }
.st-cookie .st-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.st-cookie .st-control { justify-content: center; font-size: 12.5px; }
.st-cookie .st-actions { margin-top: 12px; }
.st-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.st-cookie-open .st-floating, .st-cookie-open #mobile-thumb-bar { visibility: hidden; }
.st-search { width: min(600px, calc(100% - 24px)); max-height: 85dvh; margin: auto; padding: 24px; border: 1px solid var(--lx-border-medium); border-radius: var(--lx-r-md); background: var(--lx-obsidian-card-solid); color: var(--lx-text-white); }
.st-search::backdrop { background: #0009; }
.st-search-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.st-search h2 { font-size: 22px; margin: 0; }
.st-search form { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.st-search label { width: 100%; }
.st-search input { min-width: 0; flex: 1; width: 100%; padding: 10px; border: 1px solid var(--lx-text-muted); border-radius: var(--lx-r-sm); color: inherit; background: var(--lx-obsidian); caret-color: var(--st-focus); }
.st-search-results { padding-left: 20px; }
.st-search-results li { margin-top: 20px; overflow-wrap: anywhere; }
.st-search-results p { font-size: 14px; line-height: 1.6; }
.st-search [role="status"] { font-size: 14px; margin-top: 16px; }
.st-password { position: relative; display: block; width: 100%; }
.st-password input { padding-right: 52px !important; width: 100%; }
.st-password-toggle { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); min-height: 44px; min-width: 44px; padding: 0; border: none; background: transparent; color: var(--ink); font-size: 12px; }
[hidden].st-control, [hidden].st-cookie { display: none; }
@keyframes st-cookie-in { from { opacity: 0; transform: translate(-50%, 24px) scale(.96); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes st-cookie-out { to { opacity: 0; transform: translate(-50%, 24px) scale(.96); } }
.st-cookie { animation: st-cookie-in .45s cubic-bezier(.16, 1, .3, 1) both; }
.st-cookie.st-leaving { animation: st-cookie-out .25s ease-in forwards; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .st-cookie, .st-cookie.st-leaving { animation: none; } }
@media (max-width: 768px) {
  .st-floating { bottom: calc(88px + env(safe-area-inset-bottom)); right: 12px; }
  .st-cookie { bottom: max(12px, env(safe-area-inset-bottom)); }
  .st-actions .st-control { flex: 1 1 140px; }
  .st-search-heading { align-items: flex-start; }
  .st-search h2 { font-size: 20px; }
  .st-search { padding: 20px; }
}
@media print {
  .st-floating, .st-progress, .st-cookie, .st-preferences, .st-search, .st-search-button { display: none !important; }
}
@media (max-width: 380px) {
  .lx-header-inner { padding-inline: 8px; }
  .lx-header-actions { gap: 4px; }
  .lx-header .lx-brand { font-size: 18px; gap: 6px; }
}
.luxury-theme { --st-focus: #6ee7b7; }
:root[data-theme="light"] .luxury-theme { --st-focus: var(--lx-emerald-primary); }
/* Auth pages (app.css): tabs are links on one page and buttons on the other, so they must look the same. */
.auth-card .auth-tab svg { flex: none; }
.auth-card .auth-tab { display: flex; align-items: center; justify-content: center; min-height: 44px; text-decoration: none; }
/* Dark theme: the brand green and muted grey are below 4.5:1 as text on the card. */
[data-theme="dark"] .auth-card { --muted: #a1a1aa; }
[data-theme="dark"] .auth-card .link-btn, [data-theme="dark"] .auth-card .auth-tab.active,
[data-theme="dark"] .auth-card .check a, [data-theme="dark"] .auth-card .auth-foot a { color: #34d399; }
:root[data-theme="light"] .st-preferences { color: #475569; }
