/* Hallmark · shape: app screen · genre: modern-minimal · theme: brand · redesign: full
 * paper: Nevi light / Telegram navy · accent: existing Nevi violet · display: system · body: system
 * nav: existing glass dock · signature: grouped account and tools · states: existing loading, error, empty, full
 * axes: light-dark/grotesk-sans/chromatic-violet · contrast: measured in browser · v2.0.0 */
/* Hallmark · critique: preserve palette and wiring; replace repeated theme patches with grouped mobile composition. */
/* ==========================================================================
   Nevi AI — Space Orbit Design System
   Brand: Deep dark space purple (#090914), luminous violet accents,
   glassmorphism cards, refined typography and smooth micro-interactions.
   ========================================================================== */

:root {
  color-scheme: dark;
  --bg: #090914;
  --bg-2: #110e24;
  --bg-gradient: radial-gradient(120% 60% at 50% -10%, rgba(120, 85, 255, .25), transparent 60%),
                 radial-gradient(80% 50% at 105% 25%, rgba(139, 108, 255, .14), transparent 55%),
                 radial-gradient(70% 45% at -10% 65%, rgba(65, 120, 255, .10), transparent 55%),
                 linear-gradient(180deg, #0e0b20 0%, #090914 42%, #05050c 100%);
  --surface: rgba(22, 18, 44, .72);
  --surface-solid: #16122c;
  --surface-2: rgba(32, 26, 62, .75);
  --surface-3: #2a2254;
  --line: rgba(180, 155, 255, .15);
  --line-strong: rgba(180, 155, 255, .32);
  --text: #f8f6ff;
  --muted: #a49bc2;
  --faint: #6e678e;
  --accent: #8b6cff;
  --accent-2: #6247f2;
  --accent-soft: rgba(139, 108, 255, .16);
  --accent-glow: rgba(139, 108, 255, .32);
  --lilac: #d9ccff;
  --cyan: #7cd9ff;
  --star: #ffca64;
  --green: #68e0b0;
  --danger: #ff6e88;
  --warn: #ffb75d;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 12px;
  --font: "SF Pro Display", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-family: var(--font);
}

/* October refresh: calm surfaces, readable controls and predictable touch targets. */
:root { --muted: #b4adcc; --faint: #9a91b3; --line: rgba(180,155,255,.18); }
body { background-attachment: scroll; }
button, a, input, select, textarea { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 3px;
}
.card, .package-card, .tier-group { border-color: var(--line); box-shadow: 0 8px 30px rgba(0,0,0,.12); }
.package-card { border-radius: 22px; padding: 20px; }
.pack-note { line-height: 1.6; }
.pack-price small { font-size: 13px; color: var(--muted); }
.free-model-item { gap: 12px; }
.free-model-item button { min-height: 44px; }
.free-model-info small, .economics-model-name code { overflow-wrap: anywhere; }
.bottom-nav .nav-item { min-height: 52px; }
.bottom-nav small { white-space: normal; line-height: 1.2; }
.sheet-body { scroll-padding-bottom: 80px; }
@media (max-width: 600px) {
  input, textarea, select { font-size: 16px; }
  .package-card { padding: 18px; }
  .economics-model-row { min-width: 0; }
  .free-model-info { min-width: 0; }
  .admin-subtab { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html {
  min-height: 100%;
  background: var(--bg);
  scrollbar-gutter: stable;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overscroll-behavior-x: none;
}
body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg-gradient);
  background-attachment: fixed;
  padding-bottom: 0; /* Single bottom padding handled by .app to prevent stacking */
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1, "cv11" 1;
}

.ambient { display: none; }
.hidden { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: not-allowed; opacity: .48; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 2px; }
a { color: var(--lilac); text-decoration: none; }
code { font-size: .9em; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.07); word-break: break-all; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; line-height: 1.55; }
.small.muted { margin: 6px 0 0; }

/* ---------- keyframes ---------- */
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
@keyframes coreFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes sparkFloat { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes dotBounce { 0%, 80%, 100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-5px); opacity: 1; } }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(139, 108, 255, .5); } 100% { box-shadow: 0 0 0 16px rgba(139, 108, 255, 0); } }
@keyframes lvlSheen { 0% { transform: translateX(-130%) skewX(-18deg); } 55%, 100% { transform: translateX(260%) skewX(-18deg); } }
@keyframes lvlPulse { 0%, 100% { opacity: .45; transform: scale(1); } 50% { opacity: .85; transform: scale(1.06); } }
@keyframes nevi-tool-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(151, 104, 255, 0); } 50% { box-shadow: 0 0 0 6px rgba(151, 104, 255, .25); } }

/* ---------- loading ---------- */
.center-screen {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px 22px calc(28px + env(safe-area-inset-bottom));
  text-align: center;
}
.loading-orbit { width: 124px; height: 124px; position: relative; display: grid; place-items: center; margin-bottom: 8px; }
.loading-core {
  width: 66px;
  height: 66px;
  z-index: 2;
  overflow: hidden;
  border-radius: 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(210, 187, 255, .4);
  background: linear-gradient(145deg, rgba(38, 28, 70, .96), rgba(16, 13, 34, .98));
  box-shadow: 0 0 32px rgba(139, 108, 255, .32), inset 0 1px rgba(255, 255, 255, .15);
  animation: coreFloat 2.8s ease-in-out infinite;
}
.loading-core img { width: 100%; height: 100%; object-fit: cover; }
.orbit { position: absolute; inset: 4px; border: 1px solid rgba(176, 145, 255, .2); border-radius: 50%; }
.orbit-one { border-top-color: #d2baff; border-right-color: rgba(210, 186, 255, .65); animation: orbitSpin 3.2s linear infinite; }
.orbit-two { inset: 14px; border-right-color: var(--cyan); border-bottom-color: rgba(124, 217, 255, .55); animation: orbitSpin 2.2s linear infinite reverse; }
.orbit-three { inset: -6px; border-left-color: rgba(161, 131, 255, .68); border-bottom-color: rgba(161, 131, 255, .3); animation: orbitSpin 5.2s linear infinite; }
.loading-spark { position: absolute; z-index: 3; color: #e4d5ff; text-shadow: 0 0 14px rgba(183, 146, 255, .85); animation: sparkFloat 2s ease-in-out infinite; }
.spark-one { top: 4px; right: 8px; }
.spark-two { bottom: 10px; left: 4px; animation-delay: .8s; }
.loading-title { font-size: 26px; font-weight: 850; letter-spacing: -.8px; }
.loading-title span { color: var(--lilac); }
.loading-caption { color: #cfc2f0; font-size: 12.5px; letter-spacing: 1.1px; }
.loading-dots { display: flex; gap: 6px; margin: 2px 0 3px; }
.loading-dots i { display: block; width: 5px; height: 5px; border-radius: 50%; background: #bfa1ff; box-shadow: 0 0 8px rgba(191, 161, 255, .6); animation: dotBounce 1.1s ease-in-out infinite; }
.loading-dots i:nth-child(2) { animation-delay: .15s; }
.loading-dots i:nth-child(3) { animation-delay: .3s; }
.error-card { max-width: 360px; text-align: left; }

.guest-shell { width: min(100%, 520px); padding: 28px 18px 48px; text-align: center; }
.guest-shell .brand-mark { margin: 0 auto 14px; }
.guest-kicker { color: var(--muted); margin: -4px 0 18px; }
.guest-card { text-align: left; padding: 22px; }
.guest-card h2 { margin: 0 0 10px; }
.guest-card p { line-height: 1.5; }
.guest-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.guest-actions > * { flex: 1 1 170px; text-align: center; }
.guest-hint { margin: 16px 0 0; }
.guest-store { margin-top: 22px; text-align: left; }
.guest-plans { display: grid; gap: 10px; }
.guest-plan { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; padding: 15px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(255,255,255,.04); }
.guest-plan b { font-size: 15px; }
.guest-plan span { color: var(--lilac); font-weight: 700; }
.guest-plan small { grid-column: 1 / -1; color: var(--muted); }
.guest-legal { position: static; margin-top: 24px; justify-content: center; }

/* ---------- layout & shell ---------- */
.app {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px calc(92px + env(safe-area-inset-bottom));
}
.topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; padding-top: env(safe-area-inset-top); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(185, 149, 255, .38);
  background: #090914;
  box-shadow: 0 0 20px rgba(139, 108, 255, .28);
}
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.brand-title { font-size: 20px; line-height: 1.1; font-weight: 820; letter-spacing: -.6px; }
.brand-title span { color: var(--lilac); text-shadow: 0 0 18px rgba(170, 125, 255, .35); }
.brand-subtitle { margin-top: 3px; font-size: 11px; color: var(--faint); }
.avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #2c2050, #14112c);
  color: var(--lilac);
  font-weight: 800;
  transition: transform .15s ease, border-color .15s ease;
}
.avatar:active { transform: scale(.95); }
.avatar.has-plan { border-color: var(--line-strong); box-shadow: 0 0 0 3px var(--accent-soft); }

.view { display: none; min-width: 0; }
.view.active { display: block; animation: appear .18s ease both; }

.hero { padding: 14px 2px 18px; }
.hero h1 { margin: 0 0 8px; font-size: clamp(24px, 6vw, 31px); line-height: 1.15; letter-spacing: -.9px; font-weight: 830; }
.hero p { margin: 0; max-width: 520px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.eyebrow { display: block; margin-bottom: 7px; font-size: 11.5px; font-weight: 750; letter-spacing: .5px; color: var(--lilac); text-transform: uppercase; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 24px 2px 12px; }
.section-head h2 { margin: 0; font-size: 17px; letter-spacing: -.3px; }
.section-head > span { color: var(--muted); font-size: 12px; text-align: right; }
.subhead { margin: 0 0 10px; font-size: 14px; font-weight: 750; letter-spacing: -.1px; }

/* Glassmorphism Cards */
.card {
  margin: 0 0 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(27, 22, 54, .85), rgba(15, 13, 33, .88));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .32);
  min-width: 0;
}
.card h2, .card h3 { margin: 0; }
.card code, .card pre { max-width: 100%; overflow-x: auto; overflow-wrap: anywhere; white-space: pre-wrap; }
.empty {
  padding: 22px 14px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .02);
}

/* ---------- buttons & controls ---------- */
.primary, .secondary, .danger-btn, .ghost {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -.1px;
  text-decoration: none;
  transition: transform .15s ease, filter .15s ease, background .15s ease, border-color .15s ease;
}
.primary {
  color: #fff;
  background: linear-gradient(135deg, #9174ff, #5f44ea);
  box-shadow: 0 8px 24px rgba(98, 71, 242, .38), inset 0 1px rgba(255, 255, 255, .22);
}
.primary:hover:not(:disabled) { filter: brightness(1.08); }
.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
}
.secondary:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: rgba(139, 108, 255, .1);
}
.danger-btn {
  color: var(--danger);
  background: rgba(255, 110, 136, .09);
  border: 1px solid rgba(255, 110, 136, .28);
}
.danger-btn:hover:not(:disabled) {
  background: rgba(255, 110, 136, .16);
}
.ghost { color: var(--lilac); background: transparent; }
.primary:active, .secondary:active, .danger-btn:active { transform: scale(.98); }
.wide { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.actions > * { flex: 1 1 140px; min-width: 0; }
.text-link { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 650; color: var(--lilac); text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05);
  color: var(--lilac);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.icon-btn:hover { border-color: var(--line-strong); background: rgba(139, 108, 255, .12); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.danger { color: var(--danger); }
.svg-icon { width: 20px; height: 20px; flex: 0 0 auto; }

/* Forms & inputs */
.field { display: block; margin: 0 0 14px; min-width: 0; }
.field > label, .field > span { display: block; margin-bottom: 7px; font-size: 12.5px; font-weight: 650; color: var(--muted); }
input, select, textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(8, 7, 18, .68);
  font-size: 14.5px;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.quota-editor { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 12px; font-size: 14px; line-height: 1.45; cursor: pointer; }
.checkbox-row input { width: 20px; min-height: 20px; height: 20px; flex: 0 0 20px; margin-top: 2px; padding: 0; accent-color: var(--accent); }

.chips, .chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; margin-bottom: 8px; }
.chip {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05);
  font-size: 13px;
  font-weight: 650;
  color: var(--text);
  cursor: pointer;
  transition: transform .15s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.chip:active { transform: scale(.96); }
.chip:hover { border-color: var(--line-strong); }
.chip.on, .chip.selected {
  border-color: transparent;
  background: linear-gradient(135deg, #8a6cff, #5668f5);
  box-shadow: 0 0 16px rgba(124, 92, 255, .4);
  color: #fff;
}

.switch {
  position: relative;
  width: 48px;
  height: 28px;
  flex: 0 0 48px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid var(--line);
  transition: background .2s ease, border-color .2s ease;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #cfc8ea;
  transition: transform .2s ease, background .2s ease;
}
.switch.on { background: linear-gradient(135deg, #9174ff, #5f44ea); border-color: transparent; }
.switch.on::after { transform: translateX(20px); background: #fff; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
}
.pill svg { width: 14px; height: 14px; }
.pill.good { color: var(--green); border-color: rgba(104, 224, 176, .3); background: rgba(104, 224, 176, .09); }
.pill.lav { color: var(--lilac); border-color: var(--line-strong); background: var(--accent-soft); }
.pill.warn { color: var(--warn); border-color: rgba(255, 183, 93, .3); background: rgba(255, 183, 93, .09); }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(76px + env(safe-area-inset-bottom));
  z-index: 95;
  max-width: min(92vw, 420px);
  padding: 12px 18px;
  border-radius: 16px;
  background: rgba(24, 19, 48, .96);
  border: 1px solid var(--line-strong);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 13.5px;
  line-height: 1.45;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- CONSOLIDATED BOTTOM NAVIGATION ---------- */
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 40;
  width: min(calc(100% - 20px), 620px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 6px 8px;
  border-radius: 28px;
  border: 1px solid var(--line-strong);
  background: rgba(14, 11, 28, .88);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .04);
}
.bottom-nav.has-admin {
  grid-template-columns: repeat(5, 1fr);
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 52px;
  border-radius: 20px;
  color: var(--faint);
  transition: color .18s ease, background .18s ease, transform .15s ease;
}
.nav-item:active { transform: scale(.95); }
.nav-item small {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: -.1px;
  white-space: nowrap;
}
.bottom-nav.has-admin .nav-item small { font-size: 10px; }
.nav-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  transition: transform .2s ease;
}
.nav-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-item.selected {
  color: #fff;
  background: linear-gradient(145deg, rgba(139, 108, 255, .32), rgba(98, 71, 242, .2));
  box-shadow: inset 0 0 0 1px rgba(210, 195, 255, .32), 0 4px 16px rgba(98, 71, 242, .28);
}
.nav-item.selected .nav-icon { transform: translateY(-1px); }
.nav-item.selected .nav-icon svg { stroke: var(--lilac); }
.nav-item.selected small { color: #fff; }

/* ---------- list rows (settings & profile items) ---------- */
.row-list {
  margin: 0 0 14px;
  padding: 4px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(27, 22, 54, .85), rgba(15, 13, 33, .88));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
}
.row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  padding: 10px 0;
  text-align: left;
  border-bottom: 1px solid var(--line);
  transition: background .15s ease;
}
.row:last-child { border-bottom: 0; }
.row-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(139, 108, 255, .28), rgba(98, 71, 242, .18));
  border: 1px solid rgba(255, 255, 255, .08);
  color: var(--lilac);
}
.row-icon svg { width: 20px; height: 20px; }
.row.accent .row-icon {
  background: linear-gradient(145deg, rgba(255, 183, 93, .3), rgba(255, 110, 136, .18));
  color: #ffe08a;
}
.row-body { flex: 1; min-width: 0; }
.row-title { font-size: 15px; font-weight: 700; letter-spacing: -.1px; }
.row-sub { margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.row-value { color: var(--muted); font-size: 13px; max-width: 46%; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-chevron { width: 18px; height: 18px; color: var(--faint); flex: 0 0 18px; }
.row.accent .row-title { color: var(--lilac); }

/* ---------- profile section ---------- */
.profile-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: 26px;
  border: 1px solid var(--line-strong);
  background: radial-gradient(120% 120% at 100% 0%, rgba(139, 108, 255, .32), transparent 55%),
              linear-gradient(160deg, #231b4c, #120f2b);
  box-shadow: 0 18px 42px rgba(35, 18, 105, .32);
  margin-bottom: 14px;
}
.profile-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -60px;
  top: -50px;
  border-radius: 50%;
  border: 1px solid rgba(210, 187, 255, .18);
  box-shadow: 0 0 0 24px rgba(210, 187, 255, .03), 0 0 0 48px rgba(210, 187, 255, .015);
  pointer-events: none;
}
.profile-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; }
.profile-avatar {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, #9174ff, #4732c4);
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(98, 71, 242, .45);
}
.profile-name { font-size: 20px; font-weight: 800; letter-spacing: -.4px; }
.profile-handle { margin-top: 2px; font-size: 13px; color: var(--muted); }
.plan-line {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.plan-line b { display: block; font-size: 15px; }
.plan-line small { color: var(--muted); font-size: 12px; }
.plan-line .primary, .plan-line .secondary { min-height: 38px; padding: 0 14px; font-size: 13px; }
.tier-badge {
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 800;
  color: #1b1238;
  background: linear-gradient(135deg, #e2d6ff, #a98dff);
}

/* Quota cards — RESPONSIVE GRID (Fix for small screens) */
.quota-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.quota-card {
  padding: 14px 14px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(160deg, rgba(27, 23, 52, .75), rgba(16, 14, 33, .85));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .18s ease, border-color .18s ease;
}
.quota-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}
.quota-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--lilac);
}
.quota-icon svg { width: 18px; height: 18px; }
.quota-label { font-size: 12px; color: var(--muted); }
.quota-value { margin-top: 2px; font-size: 23px; font-weight: 820; letter-spacing: -.6px; }
.quota-period { margin-top: 2px; font-size: 11px; color: var(--faint); line-height: 1.35; }
.quota-daily { margin-top: 5px; color: var(--lilac); font-weight: 600; }
.progress { height: 4px; margin-top: 10px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--cyan)); }
.credit-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.credit-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.credit-pills span { padding: 5px 10px; border-radius: 99px; background: var(--accent-soft); font-size: 12px; font-weight: 650; color: var(--lilac); }

/* ---------- STORE & SUBSCRIPTIONS ---------- */
.tier-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin: 4px 0 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.tier-tabs::-webkit-scrollbar { display: none; }
.tier-tab {
  flex: 1 0 auto;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}
.tier-tab.active {
  color: #fff;
  background: linear-gradient(160deg, rgba(139, 108, 255, .38), rgba(98, 71, 242, .24));
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

/* Tier Showcase card */
.tier-showcase {
  position: relative;
  overflow: hidden;
  margin: 0 0 16px;
  padding: 20px 18px 18px;
  border-radius: 26px;
  border: 1px solid transparent;
  color: #fff;
  isolation: isolate;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.tier-showcase .ts-glow {
  position: absolute;
  inset: -40% -20% auto auto;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(48px);
  z-index: -1;
  animation: lvlPulse 4.5s ease-in-out infinite;
}
.tier-showcase .ts-sheen {
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .2), transparent);
  opacity: 0;
}
.ts-top { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.ts-crown {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-size: 24px;
  background: rgba(255, 255, 255, .14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
}
.ts-name { font-size: 26px; font-weight: 850; letter-spacing: -.7px; line-height: 1.05; }
.ts-tag { margin-top: 4px; font-size: 13px; opacity: .88; }
.ts-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.ts-stat {
  padding: 10px 11px;
  border-radius: 14px;
  background: rgba(0, 0, 0, .26);
  border: 1px solid rgba(255, 255, 255, .12);
}
.ts-stat b { display: block; font-size: 18px; letter-spacing: -.4px; }
.ts-stat small { display: block; margin-top: 2px; font-size: 11.5px; opacity: .82; line-height: 1.25; }
.ts-perks {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
  font-size: 13px;
}
.ts-perks li { display: flex; align-items: flex-start; gap: 8px; line-height: 1.4; }
.ts-perks li::before { content: "✓"; font-weight: 850; color: #7be3a9; flex: 0 0 auto; }

/* Tier Level 1: Starter */
.tier-showcase.lvl-1 {
  background: linear-gradient(160deg, #26244f, #151433);
  border-color: rgba(160, 150, 255, .25);
}
.tier-showcase.lvl-1 .ts-glow { background: #554fc7; opacity: .35; animation: none; }

/* Tier Level 2: Everyday / Plus */
.tier-showcase.lvl-2 {
  background: linear-gradient(160deg, #1b3d7a, #1a2257);
  border-color: rgba(120, 180, 255, .45);
  box-shadow: 0 16px 36px rgba(30, 80, 220, .25);
}
.tier-showcase.lvl-2 .ts-glow { background: #2f8bf5; }
.tier-tab.lvl-2.active { background: linear-gradient(160deg, #2864cc, #2a3ca6); }

/* Tier Level 3: Pro */
.tier-showcase.lvl-3 {
  background: linear-gradient(160deg, #4f28ba, #281b6e);
  border-color: rgba(190, 160, 255, .55);
  box-shadow: 0 18px 44px rgba(110, 60, 230, .35), inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.tier-showcase.lvl-3 .ts-glow { background: #aa5ff5; }
.tier-showcase.lvl-3 .ts-sheen { animation: lvlSheen 4.5s ease-in-out infinite; }
.tier-tab.lvl-3.active { background: linear-gradient(160deg, #7c48f0, #4b2cc0); box-shadow: 0 4px 16px rgba(110, 60, 230, .35); }

/* Tier Level 4: Premium / VIP — ELEGANT NOBLE GOLD (No tacky rainbow!) */
.tier-showcase.lvl-4 {
  background: linear-gradient(160deg, rgba(42, 30, 14, .95), rgba(24, 18, 38, .96)) padding-box,
              linear-gradient(135deg, #ffe082, #ffb300 45%, #ffd54f 75%, #ff8f00) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 18px 46px rgba(255, 179, 0, .22), 0 0 20px rgba(255, 213, 79, .10);
}
.tier-showcase.lvl-4 .ts-glow {
  background: radial-gradient(circle, rgba(255, 183, 77, .32), transparent 70%);
}
.tier-showcase.lvl-4 .ts-sheen { animation: lvlSheen 4s ease-in-out infinite; }
.tier-showcase.lvl-4 .ts-name {
  background: linear-gradient(135deg, #fff3e0, #ffe082 50%, #ffb300);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 28px;
}
.tier-showcase.lvl-4 .ts-crown {
  background: linear-gradient(135deg, #ffe082, #ffb300);
  color: #2b1800;
  box-shadow: 0 4px 14px rgba(255, 179, 0, .4);
}
.tier-tab.lvl-4.active {
  color: #2b1800;
  background: linear-gradient(135deg, #ffe082, #ffb300);
  box-shadow: 0 4px 16px rgba(255, 179, 0, .35);
}
.tier-tab.lvl-4:not(.active) { color: #ffd98a; }
.tier-tab.lvl-3:not(.active) { color: #cdbaff; }

/* Terms — RESPONSIVE GRID (Fix for horizontal scrolling) */
.terms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
}
.term {
  position: relative;
  min-height: 108px;
  padding: 14px 12px;
  text-align: left;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(27, 23, 52, .8), rgba(16, 14, 33, .88));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.term:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}
.term:active { transform: scale(.98); }
.term.selected {
  border: 2px solid transparent;
  background: linear-gradient(160deg, #241c50, #14112e) padding-box,
              linear-gradient(135deg, #cdbbff, #7a63ff 50%, #7fd0ff) border-box;
  box-shadow: 0 8px 24px rgba(98, 71, 242, .32);
}
.terms.lvl-2 .term.selected {
  background: linear-gradient(160deg, #1b3870, #141f4a) padding-box,
              linear-gradient(135deg, #8fdcff, #3a7bff 50%, #8fdcff) border-box;
}
.terms.lvl-3 .term.selected {
  background: linear-gradient(160deg, #38207e, #1a1244) padding-box,
              linear-gradient(135deg, #f0d4ff, #9a6bff 40%, #ff8de0) border-box;
  box-shadow: 0 8px 26px rgba(150, 100, 255, .38);
}
.terms.lvl-4 .term.selected {
  background: linear-gradient(160deg, #2b1f0d, #1a1226) padding-box,
              linear-gradient(135deg, #ffe082, #ffb300 50%, #ffc107) border-box;
  box-shadow: 0 8px 26px rgba(255, 179, 0, .28);
}
.term-label { display: block; font-size: 15px; font-weight: 750; letter-spacing: -.2px; }
.term-price { display: block; margin-top: 8px; font-size: 21px; font-weight: 820; letter-spacing: -.6px; white-space: nowrap; }
.term-sub { display: flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.term-sub svg { width: 13px; height: 13px; fill: var(--star); stroke: none; }
.term-old { display: block; margin-top: 2px; font-size: 11px; color: var(--faint); text-decoration: line-through; }
.term-discount {
  position: absolute;
  top: 9px;
  right: 9px;
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 850;
  color: #fff;
  background: linear-gradient(135deg, #ff5e82, #ff3d66);
}
.term-ribbon {
  position: absolute;
  right: -32px;
  bottom: 8px;
  width: 96px;
  padding: 2px 0;
  transform: rotate(-36deg);
  text-align: center;
  font-size: 9.5px;
  font-weight: 850;
  letter-spacing: .5px;
  color: #fff;
  background: linear-gradient(135deg, #9174ff, #6247f2);
}

/* Compare table */
.compare { padding: 6px 18px 4px; }
.compare-head, .compare-row { display: grid; grid-template-columns: minmax(0, 1fr) 70px 80px; align-items: center; gap: 8px; }
.compare-head { padding: 12px 0 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .6px; color: var(--faint); }
.compare-head b { color: var(--lilac); }
.compare-head span, .compare-head b { text-align: center; }
.compare-head .compare-title { text-align: left; color: var(--lilac); font-size: 13px; letter-spacing: 0; }
.compare-row { padding: 12px 0; border-top: 1px solid var(--line); }
.compare-label b { display: block; font-size: 14.5px; font-weight: 700; letter-spacing: -.2px; }
.compare-label small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); line-height: 1.4; }
.compare-cell { text-align: center; font-size: 12px; color: var(--faint); }
.compare-cell.plan { color: var(--text); font-weight: 750; }
.compare-cell svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.compare-cell .dash { display: inline-block; width: 16px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .18); }
.brand-strip { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.brand-icon { width: 26px; height: 26px; display: inline-grid; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, .08); color: var(--lilac); }
.brand-icon svg { width: 16px; height: 16px; }

/* Compact Buy Bar (Fix: single line, not blocking 35% of screen) */
.buy-bar {
  position: sticky;
  bottom: calc(76px + env(safe-area-inset-bottom));
  z-index: 25;
  margin-top: 12px;
  padding: 6px;
  border-radius: 20px;
  background: rgba(13, 10, 26, .88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line-strong);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.buy-bar.static {
  position: static;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.premium-buy-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.premium-buy-bar > button {
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
}
.premium-buy-bar .primary {
  flex: 1 1 auto;
}
.premium-buy-bar .gift-plan-button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 14px;
  font-size: 13px;
  white-space: nowrap;
  border: 1px solid rgba(208, 186, 255, .35);
  background: linear-gradient(135deg, rgba(130, 93, 255, .18), rgba(255, 117, 190, .09));
  color: #f0eaff;
}
.buy-bar.lvl-2 .primary { background: linear-gradient(135deg, #2b74df, #2a3ca6); }
.buy-bar.lvl-3 .primary { background: linear-gradient(135deg, #9154f5, #4b2cc0); }
.buy-bar.lvl-4 .primary {
  color: #2b1800;
  font-weight: 800;
  background: linear-gradient(135deg, #ffe082, #ffb300);
  box-shadow: 0 8px 26px rgba(255, 179, 0, .35);
}
.buy-note { margin: 8px 0 0; text-align: center; font-size: 11.5px; color: var(--faint); line-height: 1.4; }
.active-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(104, 224, 176, .28);
  border-radius: var(--r-md);
  background: rgba(104, 224, 176, .07);
}
.active-banner b { display: block; font-size: 14px; }
.active-banner small { color: var(--muted); font-size: 12px; }

/* Plan profiles and dialogs */
.profile-card.lvl-2 { background: radial-gradient(120% 130% at 100% 0%, rgba(90, 180, 255, .45), transparent 58%), linear-gradient(160deg, #1b3d7a, #161c47); }
.profile-card.lvl-3 { background: radial-gradient(120% 130% at 100% 0%, rgba(200, 140, 255, .5), transparent 58%), linear-gradient(160deg, #4f28ba, #201754); box-shadow: 0 20px 48px rgba(110, 60, 230, .4); }
.profile-card.lvl-4 {
  background: radial-gradient(120% 130% at 100% 0%, rgba(255, 193, 7, .45), transparent 58%),
              linear-gradient(160deg, #33240e, #1d1633) padding-box,
              linear-gradient(135deg, #ffe082, #ffb300) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 18px 46px rgba(255, 179, 0, .24);
}
.pd-hero { margin: 0 -18px 14px; padding: 18px 18px 14px; background: linear-gradient(160deg, rgba(139, 108, 255, .28), rgba(98, 71, 242, .06) 70%); border-bottom: 1px solid var(--line); }
.pd-hero.lvl-2 { background: linear-gradient(160deg, rgba(40, 120, 240, .35), rgba(20, 50, 160, .08) 75%); }
.pd-hero.lvl-3 { background: linear-gradient(160deg, rgba(140, 80, 245, .45), rgba(80, 40, 180, .1) 75%); }
.pd-hero.lvl-4 { background: linear-gradient(160deg, rgba(255, 183, 77, .38), rgba(255, 143, 0, .1) 75%); }
.pd-hero.lvl-4 .pd-badge { color: #2b1800; background: linear-gradient(135deg, #ffe082, #ffb300); }
.pd-badge { display: inline-block; padding: 4px 11px; border-radius: 99px; font-size: 11px; font-weight: 800; letter-spacing: .5px; color: #fff; background: rgba(139, 108, 255, .4); box-shadow: inset 0 0 0 1px var(--line-strong); }
.pd-card { padding: 6px 14px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, .035); margin-bottom: 14px; }
.pd-limit { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.pd-limit:first-child { border-top: 0; }
.pd-limit-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: rgba(255, 255, 255, .07); color: var(--lilac); }
.pd-limit-icon svg { width: 18px; height: 18px; }
.pd-limit b { display: block; font-size: 14px; }
.pd-limit small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); }
.pd-limit-val { font-size: 16px; font-weight: 800; color: #fff; white-space: nowrap; }
.pd-limit-val em { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.pd-limit-val code { background: rgba(255, 255, 255, .1); font-size: 12px; }
.pd-brand { padding: 10px 0; border-top: 1px solid var(--line); }
.pd-brand:first-child { border-top: 0; }
.pd-brand-head { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.pd-brand-head small { margin-left: auto; color: var(--muted); font-size: 12px; }
.pd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-chip { padding: 5px 10px; border-radius: 99px; font-size: 12px; background: rgba(139, 108, 255, .14); box-shadow: inset 0 0 0 1px rgba(139, 108, 255, .28); }
.pd-features { list-style: none; margin: 0; padding: 4px 0; }
.pd-features li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 13.5px; line-height: 1.4; }
.pd-features li span { flex: 0 0 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 800; }
.pd-features li.on span { background: rgba(94, 214, 150, .18); color: #7be3a9; }
.pd-features li.off { color: var(--muted); }
.pd-features li.off span { background: rgba(255, 255, 255, .06); }
.pd-open { margin: 12px 0 0; }
.plan-line-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* Packages list */
.pack-grid { display: grid; gap: 14px; }
.pack-card {
  --pk: #7a63ff;
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(27, 22, 54, .88), rgba(15, 13, 33, .92));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.pack-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .35);
}
.pack-card.badge { border-color: var(--line-strong); }
.pack-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pack-name { font-size: 18px; font-weight: 800; letter-spacing: -.3px; }
.pack-desc { margin: 5px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.pack-price { text-align: right; flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.pack-price b { font-size: 24px; font-weight: 820; letter-spacing: -.6px; line-height: 1; }
.pack-price small { display: flex; align-items: center; justify-content: flex-end; gap: 4px; font-size: 12px; color: var(--muted); }
.pack-price small svg { width: 13px; height: 13px; fill: var(--star); stroke: none; }
.pack-price del { font-size: 11.5px; color: var(--faint); }
.pack-saving {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(104, 224, 176, .14);
  color: #7be3a9;
  font-size: 10px;
  font-weight: 850;
  border: 1px solid rgba(104, 224, 176, .25);
}
.pack-feats { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.feat { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 12px; background: rgba(255, 255, 255, .05); font-size: 12.5px; font-weight: 650; }
.feat svg { width: 16px; height: 16px; color: var(--lilac); }
.pack-note { margin: 0 0 12px; font-size: 12px; color: var(--muted); line-height: 1.45; }

/* Pack designs */
.pack-card.design-classic { background: linear-gradient(160deg, rgba(27, 22, 54, .88), rgba(15, 13, 33, .92)); }
.pack-card.design-aurora { background: linear-gradient(150deg, #0e3547, #184c5e 40%, #24286f 100%); border-color: rgba(120, 255, 214, .45); }
.pack-card.design-neon { background: #0a0a1a; border: 2px solid var(--pk); box-shadow: 0 0 20px color-mix(in srgb, var(--pk) 40%, transparent); }
.pack-card.design-gold { background: linear-gradient(150deg, #33220a, #1a1226 60%, #261806); border: 1.5px solid #ffb300; }
.pack-card.design-glass { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .25); backdrop-filter: blur(18px); }
.pack-card.design-sunset { background: linear-gradient(150deg, #b84332, #8a2468 55%, #441e8c); border-color: rgba(255, 180, 150, .45); }
.pack-card.design-mono { background: #080808; border: 1.5px solid #e0e0e0; }
.pack-card.design-rainbow { background: linear-gradient(160deg, #241c50, #14112e); border: 2px solid var(--accent); }
.design-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.design-chip { display: block; position: relative; padding: 12px; min-height: 60px; text-align: left; border-radius: 14px; color: #fff; border: 2px solid transparent; cursor: pointer; }
.design-chip b { display: block; font-size: 13.5px; }
.design-chip small { opacity: .8; font-size: 11px; }
.design-chip.active { border-color: #fff; box-shadow: 0 0 0 3px rgba(160, 131, 255, .5); }

/* ---------- CONSOLIDATED PAYMENT SHEET & UI ---------- */
.sheet-root { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(3, 2, 10, .75); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeIn .2s ease; }
.sheet {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 92svh;
  display: flex;
  flex-direction: column;
  border-radius: 28px 28px 0 0;
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  background: linear-gradient(180deg, #1c163a, #0d0b1c);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .65);
  animation: sheetUp .26s cubic-bezier(.2, .9, .3, 1);
}
.sheet-grip { flex: 0 0 auto; height: 26px; display: grid; place-items: center; cursor: pointer; }
.sheet-grip::after { content: ""; width: 42px; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .25); }
.sheet-body { overflow-y: auto; padding: 0 18px calc(24px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
.sheet-title { margin: 2px 0 4px; font-size: 21px; font-weight: 820; letter-spacing: -.5px; }
.sheet-sub { margin: 0 0 16px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }

.pay-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 2px 2px 14px; }
.pay-header-price { font-size: 22px; font-weight: 850; letter-spacing: -.5px; color: var(--lilac); }
.pay-category-title { margin: 4px 0 12px; }

/* Payment Category Cards */
.pay-category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 6px 0 14px;
}
.pay-category-card {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr 20px;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(30, 24, 60, .65), rgba(16, 13, 34, .75));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: left;
  color: inherit;
  transition: border-color .18s ease, transform .18s ease, background .18s ease, box-shadow .18s ease;
  overflow: hidden;
}
.pay-category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 50%, rgba(139, 108, 255, .16), transparent 50%);
  pointer-events: none;
}
.pay-category-card:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: linear-gradient(145deg, rgba(42, 34, 82, .75), rgba(22, 18, 46, .85));
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35), 0 0 20px rgba(139, 108, 255, .12);
}
.pay-category-card:active { transform: scale(.985); }
.pay-category-card.stars {
  background: linear-gradient(145deg, rgba(45, 34, 20, .65), rgba(22, 16, 32, .75));
}
.pay-category-card.stars::before {
  background: radial-gradient(circle at 0 50%, rgba(255, 202, 100, .18), transparent 50%);
}
.pay-cat-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(139, 108, 255, .28), rgba(255, 255, 255, .06));
  border: 1px solid rgba(255, 255, 255, .1);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}
.pay-category-card.stars .pay-cat-icon {
  color: var(--star);
  background: linear-gradient(145deg, rgba(255, 202, 100, .25), rgba(255, 255, 255, .06));
}
.pay-category-card.stars .pay-cat-icon svg { width: 24px; height: 24px; fill: var(--star); stroke: none; }
.pay-cat-info {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  text-align: left;
}
.pay-cat-info b,
.pay-category-card b {
  display: block;
  font-size: 15.5px;
  font-weight: 750;
  letter-spacing: -.2px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pay-cat-info small,
.pay-category-card small {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.35;
  white-space: normal;
}
.pay-cat-arrow {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: transform .18s ease, color .18s ease;
}
.pay-cat-arrow svg { width: 18px; height: 18px; }
.pay-category-card:hover .pay-cat-arrow { color: var(--lilac); transform: translateX(2px); }

/* Payment Methods List */
.pay-list {
  display: grid;
  gap: 10px;
}
.pay-method {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  padding: 12px 16px;
  text-align: left;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.pay-method:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: rgba(139, 108, 255, .12);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}
.pay-method:active { transform: scale(.985); }
.pay-method.main {
  border-color: var(--line-strong);
  background: linear-gradient(135deg, rgba(139, 108, 255, .2), rgba(98, 71, 242, .1));
}
.pm-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .07);
  font-size: 19px;
  font-weight: 800;
}
.pm-icon svg { width: 20px; height: 20px; }
.pm-icon.stars svg { fill: var(--star); stroke: none; }
.pm-icon.rub { color: #ffe08a; }
.pm-icon.crypto { color: #7fe3c3; }
.pm-icon.rocket { color: #8fb4ff; }
.pm-body { flex: 1; min-width: 0; }
.pm-title { font-size: 15px; font-weight: 700; letter-spacing: -.2px; }
.pm-sub { margin-top: 2px; font-size: 12px; color: var(--muted); line-height: 1.35; }
.pm-amount { flex: 0 0 auto; font-size: 14.5px; font-weight: 750; text-align: right; color: var(--lilac); }

.pay-assurance {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .06);
}
.pay-assurance b { font-size: 12.5px; }
.pay-assurance span { font-size: 11px; color: var(--muted); line-height: 1.45; }
.pay-gift-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 0 0 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(224, 174, 255, .32);
  background: linear-gradient(135deg, rgba(140, 91, 255, .15), rgba(255, 105, 187, .08));
  color: #f1eaff;
  font-weight: 750;
  font-size: 13.5px;
}
.pay-gift-cta svg { width: 18px; height: 18px; }
.pay-safe-note { line-height: 1.45; margin-bottom: 0; }
.pay-back { margin-bottom: 8px; }
.stars-direct-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px;
  border: 1px solid rgba(255, 205, 74, .25);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 200, 60, .12), rgba(125, 91, 255, .08));
  margin-bottom: 12px;
}
.stars-direct-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 210, 75, .14); }
.stars-direct-icon svg { width: 24px; height: 24px; fill: #ffd45c; stroke: #ffd45c; }
.stars-direct-card b { display: block; font-size: 18px; font-weight: 800; }
.stars-direct-card small { display: block; color: var(--muted); margin-top: 2px; font-size: 12px; }

.wait-state { display: grid; justify-items: center; gap: 12px; padding: 14px 0 6px; text-align: center; }
.wait-state .pulse {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--lilac);
  font-size: 24px;
  animation: pulseRing 1.6s ease-out infinite;
}
.wait-state.ok .pulse { background: rgba(104, 224, 176, .14); color: var(--green); animation: none; }
.wait-state h3 { margin: 0; font-size: 19px; }
.wait-state p { margin: 0; max-width: 380px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.wait-state .wide { margin-top: 6px; }

/* ---------- MODELS SEARCH, CHIPS & RESPONSIVE GRID ---------- */
.model-search-box {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}
.model-search-ico {
  position: absolute;
  left: 14px;
  font-size: 16px;
  pointer-events: none;
  opacity: .7;
}
.model-search-box input[type="search"] {
  width: 100%;
  padding: 12px 38px 12px 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--fg);
  font-size: 14.5px;
  transition: border-color .2s ease, background .2s ease;
}
.model-search-box input[type="search"]:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, .07);
  outline: none;
}
.model-search-clear {
  position: absolute;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .1);
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.model-filter-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 14px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.model-filter-scroll::-webkit-scrollbar { display: none; }
.model-chip {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition:background-color .16s ease,color .16s ease,border-color .16s ease,transform .16s ease;
}
.model-chip:hover {
  border-color: var(--line-strong);
  color: var(--fg);
}
.model-chip.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--lilac);
  box-shadow: 0 2px 10px rgba(168, 85, 247, .2);
}
.models-modality-tabs {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, .04);
  padding: 4px;
  border-radius: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
}
.models-modality-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition:background-color .16s ease,color .16s ease,border-color .16s ease,transform .16s ease;
}
.models-modality-btn:hover {
  color: var(--fg);
}
.models-modality-btn.active {
  background: var(--surface-2);
  color: var(--fg);
  border: 1px solid var(--line-strong);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.studio-active-model-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(168, 85, 247, .08);
  border: 1px solid rgba(168, 85, 247, .25);
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--fg);
}
.studio-active-model-box b {
  color: var(--lilac);
}
.quick-image-pills-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 12px;
  scrollbar-width: none;
}
.quick-image-pills-row::-webkit-scrollbar {
  display: none;
}
.quick-image-pill {
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition:background-color .16s ease,color .16s ease,border-color .16s ease,transform .16s ease;
}
.quick-image-pill:hover {
  border-color: var(--line-strong);
  color: var(--fg);
}
.quick-image-pill.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--lilac);
}
.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.model-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(27, 22, 54, .8), rgba(15, 13, 33, .9));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.model-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.model-card.selected {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(168, 85, 247, .12), rgba(27, 22, 54, .85));
  box-shadow: 0 0 0 1px var(--accent);
}
.model-card.locked {
  opacity: .88;
}
.model-card-top {
  cursor: pointer;
}
.model-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.model-card-head .brand-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
}
.model-card-head .brand-icon svg {
  width: 20px;
  height: 20px;
}
.model-card-titles {
  flex: 1;
  min-width: 0;
}
.model-title {
  display: block;
  font-size: 15px;
  font-weight: 750;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.model-sub {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.tier-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}
.tier-tag.быстрая { background: rgba(104, 224, 176, .14); color: var(--green); }
.tier-tag.универсальная { background: rgba(168, 85, 247, .14); color: var(--lilac); }
.tier-tag.продвинутая { background: rgba(255, 183, 93, .16); color: #ffb75d; }
.model-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.model-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, .05);
  color: var(--muted);
}
.model-tag.param {
  background: rgba(168, 85, 247, .12);
  color: var(--lilac);
  border: 1px solid rgba(168, 85, 247, .2);
}
.model-tag.prem {
  background: linear-gradient(135deg, rgba(255, 215, 0, .2), rgba(255, 165, 0, .2));
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, .3);
}
.model-tag.limit {
  color: var(--muted);
}
.model-tag.lock {
  background: rgba(255, 183, 93, .15);
  color: #ffb75d;
  border: 1px solid rgba(255, 183, 93, .25);
}
.model-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.model-card-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition:background-color .16s ease,color .16s ease,border-color .16s ease,transform .16s ease;
}
.model-card-btn.active {
  background: rgba(104, 224, 176, .16);
  color: var(--green);
  cursor: default;
}
.model-card-btn.pick {
  background: var(--accent);
  color: #fff;
}
.model-card-btn.pick:hover {
  background: var(--accent-strong);
}
.model-card-btn.lock {
  background: rgba(255, 183, 93, .18);
  color: #ffb75d;
}
.model-card-btn.lock:hover {
  background: rgba(255, 183, 93, .28);
}
.model-card-info {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
}
.model-card-info:hover {
  color: var(--fg);
  border-color: var(--line-strong);
}

/* ---------- MODELS HERO BANNER & TOOLBAR ---------- */
.models-hero-banner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  margin-bottom: 16px;
  border-radius: 20px;
  border: 1px solid rgba(168, 85, 247, .3);
  background: linear-gradient(160deg, rgba(32, 22, 64, .85), rgba(16, 13, 36, .95));
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.models-hero-active {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.models-hero-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.models-hero-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(168, 85, 247, .18);
  border: 1px solid rgba(168, 85, 247, .4);
}
.models-hero-titles {
  min-width: 0;
}
.models-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #7be3a9;
}
.models-hero-name {
  font-size: 17px;
  font-weight: 850;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.models-hero-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.models-hero-action {
  flex: 0 0 auto;
}
.models-hero-status-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  font-size: 12px;
  color: var(--muted);
}
.models-hero-status-bar b {
  color: var(--fg);
}
.models-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.models-toolbar .model-search-box {
  flex: 1;
  margin-bottom: 0;
}
.model-view-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: 12px;
  flex: 0 0 auto;
}
.model-view-btn {
  padding: 6px 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition:background-color .16s ease,color .16s ease,border-color .16s ease,transform .16s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}
.model-view-btn:hover {
  color: var(--fg);
}
.model-view-btn.active {
  background: var(--surface-2);
  color: var(--fg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

/* ---------- COMPACT MODEL LIST ---------- */
.model-compact-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.model-compact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(23, 19, 46, .7), rgba(14, 12, 30, .85));
  transition:background-color .16s ease,color .16s ease,border-color .16s ease,transform .16s ease;
  gap: 8px;
}
.model-compact-row:hover {
  border-color: var(--line-strong);
  background: linear-gradient(160deg, rgba(32, 26, 62, .8), rgba(18, 15, 38, .9));
}
.model-compact-row.selected {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(168, 85, 247, .16), rgba(28, 22, 54, .9));
  box-shadow: 0 0 0 1px var(--accent);
}
.model-compact-row.locked {
  opacity: .75;
}
.model-compact-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  cursor: pointer;
}
.model-compact-left .brand-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
}
.model-compact-left .brand-icon svg {
  width: 17px;
  height: 17px;
}
.model-compact-info {
  min-width: 0;
  flex: 1;
}
.model-compact-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.model-compact-title {
  font-size: 14px;
  font-weight: 750;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.model-compact-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.model-compact-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.model-compact-actions .model-card-btn {
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
}
.model-compact-actions .model-card-info {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  font-size: 13px;
}

/* ---------- AUDIO & VIDEO CATALOGS ---------- */
.voice-catalog-grid, .video-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.voice-catalog-card, .video-catalog-card {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(27, 22, 54, .7), rgba(15, 13, 33, .85));
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.voice-catalog-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.voice-catalog-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: rgba(168, 85, 247, .12);
  border: 1px solid rgba(168, 85, 247, .25);
}
.voice-catalog-name {
  font-size: 15px;
  font-weight: 750;
  color: var(--fg);
}
.voice-catalog-type {
  font-size: 11.5px;
  color: var(--muted);
}
.voice-catalog-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}
.voice-catalog-btn {
  margin-top: 4px;
  padding: 6px 12px;
  font-size: 12px;
}

/* ---------- STUDIO QUALITY & ADVANCED ---------- */
.studio-quality-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.studio-quality-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition:background-color .16s ease,color .16s ease,border-color .16s ease,transform .16s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.studio-quality-btn:hover {
  border-color: var(--line-strong);
  color: var(--fg);
}
.studio-quality-btn.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--lilac);
}
.studio-prompt-examples {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 10px;
  scrollbar-width: none;
}
.studio-prompt-examples::-webkit-scrollbar { display: none; }
.studio-prompt-pill {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, .02);
  color: var(--muted);
  font-size: 11.5px;
  cursor: pointer;
  white-space: nowrap;
  transition:background-color .16s ease,color .16s ease,border-color .16s ease,transform .16s ease;
}
.studio-prompt-pill:hover {
  border-color: var(--accent);
  color: var(--fg);
}

/* ---------- STUDIO NAVIGATION & INTERFACE ---------- */
.studio-nav-bar {
  display: flex;
  gap: 8px;
  padding: 4px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 16px;
}
.studio-nav-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition:background-color .16s ease,color .16s ease,border-color .16s ease,transform .16s ease;
}
.studio-nav-item:hover {
  color: var(--fg);
}
.studio-nav-item.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(168, 85, 247, .35);
}
.studio-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(27, 22, 54, .85), rgba(15, 13, 33, .9));
  margin-bottom: 16px;
}
.studio-group-title {
  font-size: 12px;
  font-weight: 750;
  color: var(--lilac);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 14px 0 8px;
}
.aspect-ratio-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.aspect-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 6px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  color: var(--muted);
  cursor: pointer;
  transition:background-color .16s ease,color .16s ease,border-color .16s ease,transform .16s ease;
}
.aspect-btn b {
  font-size: 13px;
  color: var(--fg);
}
.aspect-btn span {
  font-size: 10.5px;
}
.aspect-btn.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--lilac);
}
.aspect-btn.active b {
  color: var(--lilac);
}
.style-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.style-chip {
  padding: 6px 11px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--fg);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition:background-color .16s ease,color .16s ease,border-color .16s ease,transform .16s ease;
}
.style-chip:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--lilac);
}
.voice-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.voice-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  cursor: pointer;
  transition:background-color .16s ease,color .16s ease,border-color .16s ease,transform .16s ease;
}
.voice-card b {
  font-size: 13px;
  color: var(--fg);
}
.voice-card span {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
}
.voice-card:hover {
  border-color: var(--line-strong);
}
.voice-card.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.voice-card.active b {
  color: var(--lilac);
}
.voice-test-btn {
  font-size: 12.5px;
  padding: 6px 12px;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 12px;
}
.speed-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.speed-btn {
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition:background-color .16s ease,color .16s ease,border-color .16s ease,transform .16s ease;
}
.speed-btn.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--lilac);
}
.studio-run-btn {
  margin-top: 14px;
  padding: 13px;
  font-size: 15px;
  font-weight: 750;
}

/* ---------- CREATION & GALLERY ---------- */
.creation-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 14px; }
.creation-card { margin: 0; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.creation-card h2 { font-size: 16px; }
.creation-card .pill { align-self: flex-start; }
.creation-preview { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; background: #07060e; }
.creation-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.preview-play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, .7); }
.generation-status { display: flex; align-items: center; gap: 12px; }
.status-indicator { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--lilac); animation: orbitSpin .9s linear infinite; }
.generation-success, .generation-error { margin-top: 14px; padding: 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(255, 255, 255, .04); }
.generation-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 12px; }
.generated-media { display: block; width: 100%; max-height: 460px; object-fit: contain; border-radius: 14px; background: #05040b; margin-bottom: 10px; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gallery-grid img, .gallery-grid video { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 14px; display: block; background: rgba(255, 255, 255, .04); }
.gallery-grid .empty { grid-column: 1 / -1; }
.reminder-list { display: grid; gap: 10px; }
.reminder-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(255, 255, 255, .035); }
.reminder-icon { color: var(--lilac); font-size: 18px; }
.reminder-details { flex: 1; min-width: 0; }
.reminder-details b { display: block; font-size: 14px; }
.reminder-details small { color: var(--muted); font-size: 12px; }
.reminder-delete { width: 32px; height: 32px; border-radius: 10px; font-size: 18px; color: var(--muted); background: rgba(255, 255, 255, .05); }

/* ---------- TASKS, REWARDS & REFERRALS ---------- */
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.quick-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; text-align: left; border-radius: var(--r-md); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(27, 22, 54, .85), rgba(15, 13, 33, .88)); }
.quick-card b { font-size: 14.5px; }
.quick-card small { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.quick-icon { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 8px; border-radius: 12px; background: var(--accent-soft); color: var(--lilac); }
.quick-icon svg { width: 20px; height: 20px; }

.secretary-card-top, .referral-balance { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.secretary-status { align-self: flex-start; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .07); color: var(--muted); white-space: nowrap; }
.secretary-status.is-on { color: var(--green); background: rgba(104, 224, 176, .12); }
.secretary-options { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.task-card-item { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.task-card-item:first-child { border-top: 0; padding-top: 0; }
.task-copy b { font-size: 14.5px; }
.task-copy p { margin: 4px 0 0; }
.task-card-item .wide { grid-column: 1 / -1; }
.task-reward { align-self: start; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 750; color: var(--star); background: rgba(255, 202, 100, .12); white-space: nowrap; }
.rewards-balance { font-size: 30px; font-weight: 850; letter-spacing: -1px; }
.rewards-symbol { align-self: flex-start; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--accent-soft); font-size: 21px; color: var(--lilac); }
.referral-link-row { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; margin-bottom: 14px; border-radius: 14px; background: rgba(6, 5, 14, .6); border: 1px solid var(--line); }
.referral-link-row span { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.referral-link-row .secondary { min-height: 36px; padding: 0 14px; font-size: 13px; }
.rewards-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.rewards-stats div { padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); }
.rewards-stats b { display: block; font-size: 17px; }
.rewards-stats small { color: var(--muted); font-size: 12px; }
.payout-form { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); }

/* ---------- ADMIN PANEL ---------- */
/* Scrollable admin tabs with smooth snap & categories */
.admin-tabs {
  display: flex;
  gap: 6px;
  margin: 0 -16px 16px;
  padding: 6px 16px 12px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 108, 255, .28) transparent;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(9, 9, 20, .94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.admin-tabs::-webkit-scrollbar { height: 4px; }
.admin-tabs::-webkit-scrollbar-thumb { background: rgba(139, 108, 255, .28); border-radius: 4px; }
.admin-tab {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
  white-space: nowrap;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .15s ease;
}
.admin-tab:hover { color: var(--text); border-color: var(--line-strong); background: rgba(139, 108, 255, .1); }
.admin-tab:active { transform: scale(.96); }
.admin-tab.active {
  color: #fff;
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(139, 108, 255, .38), rgba(98, 71, 242, .24));
  box-shadow: 0 4px 14px rgba(98, 71, 242, .3);
}
.admin-tab svg { width: 16px; height: 16px; }
.admin-tab .count { min-width: 18px; padding: 1px 6px; border-radius: 99px; font-size: 11px; font-weight: 800; text-align: center; color: #fff; background: #ff4b6e; }

/* Admin Category Hub & Subtabs */
.admin-nav-hub {
  margin: 0 -16px 16px;
  padding: 0 16px 12px;
  border-bottom: 1px solid var(--line);
}
.admin-categories-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.admin-categories-bar::-webkit-scrollbar { display: none; }
.admin-category-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
  transition:background-color .16s ease,color .16s ease,border-color .16s ease,transform .16s ease;
}
.admin-category-btn:hover {
  color: var(--text);
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.1);
}
.admin-category-btn.active {
  color: #fff;
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(99, 102, 241, 0.25));
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.28);
}
.admin-category-btn .count {
  min-width: 18px;
  padding: 1px 6px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  color: #fff;
  background: #ff4b6e;
}

.admin-subtabs-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 6px 2px 2px;
  scrollbar-width: none;
}
.admin-subtabs-bar::-webkit-scrollbar { display: none; }
.admin-subtab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 550;
  cursor: pointer;
  white-space: nowrap;
  transition:background-color .16s ease,color .16s ease,border-color .16s ease,transform .16s ease;
}
.admin-subtab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}
.admin-subtab.active {
  color: #fff;
  background: rgba(139, 92, 246, 0.22);
  border-color: rgba(139, 92, 246, 0.5);
  font-weight: 650;
}
.admin-subtab svg { width: 14px; height: 14px; }
.admin-subtab .count {
  min-width: 16px;
  padding: 1px 5px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  background: #ff4b6e;
}

/* Free models grid */
.free-models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
}
.free-model-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color .18s;
}
.free-model-item.is-free {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.05);
}
.free-model-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.free-model-info b {
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.admin-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 4px 2px 16px; }
.admin-head h1, .admin-head h2 { margin: 0; font-size: 24px; letter-spacing: -.8px; overflow-wrap: anywhere; }
.admin-head p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat { padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: linear-gradient(160deg, rgba(27, 22, 54, .85), rgba(15, 13, 33, .88)); }
.stat b { display: block; font-size: 24px; font-weight: 820; letter-spacing: -.8px; }
.stat span { font-size: 12px; color: var(--muted); }
.stat.alert { border-color: rgba(255, 183, 93, .45); }
.provider-line { padding: 11px 0; border-top: 1px solid var(--line); }
.provider-line:first-child { border-top: 0; padding-top: 0; }
.provider-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; font-weight: 650; }
.status-dot::before { content: "● "; }
.token-label { margin-top: 4px; font-size: 12px; color: var(--muted); word-break: break-all; }

.tier-group { margin-bottom: 14px; padding: 0; overflow: hidden; }
.tier-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 16px 12px; }
.tier-head h3 { font-size: 17px; letter-spacing: -.3px; }
.tier-head small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.term-row { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); }
.term-main { flex: 1; min-width: 0; }
.term-main b { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.term-main small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); line-height: 1.45; }
.term-actions { display: flex; align-items: center; gap: 8px; }
.term-actions .switch { margin-right: auto; }
.mini-badge { padding: 2px 7px; border-radius: 6px; font-size: 10px; font-weight: 800; color: #1b1238; background: linear-gradient(135deg, #e2d6ff, #a98dff); }
.draft-badge { padding: 2px 7px; border-radius: 6px; font-size: 10px; font-weight: 750; color: var(--warn); background: rgba(255, 183, 93, .14); }
.stars-inline { display: inline-flex; align-items: center; gap: 3px; }
.stars-inline svg { width: 13px; height: 13px; fill: var(--star); stroke: none; }

.editor-section { margin: 0 0 16px; padding: 15px; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.editor-section > .subhead { margin-bottom: 12px; }
.price-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.price-preview span { padding: 9px; border-radius: 12px; background: rgba(255, 255, 255, .05); text-align: center; }
.price-preview b { display: block; font-size: 14px; }
.price-preview small { font-size: 11px; color: var(--muted); }
.model-choice-list { display: grid; gap: 8px; max-height: 280px; overflow-y: auto; margin-top: 8px; }
.model-choice { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .035); cursor: pointer; }
.model-choice input { width: 20px; min-height: 20px; height: 20px; flex: 0 0 20px; padding: 0; accent-color: var(--accent); }
.model-choice-content { display: flex; align-items: center; gap: 10px; min-width: 0; }
.model-choice-content b { display: block; font-size: 13px; }
.model-choice-content small { display: block; font-size: 11px; color: var(--muted); word-break: break-all; }
.catalog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.catalog-head .secondary { min-height: 36px; padding: 0 12px; font-size: 12px; }
.model-limit-list { display: grid; gap: 8px; margin-top: 12px; }
.model-limit-help { margin: 2px 0 4px; }
.model-limit-row { display: grid; grid-template-columns: minmax(0, 1fr) 76px 76px; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.035); }
.model-limit-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.model-limit-name .brand-icon { width: 25px; height: 25px; flex: 0 0 25px; }
.model-limit-name > span { min-width: 0; display: grid; gap: 2px; }
.model-limit-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.model-limit-name small { color: var(--faint); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.model-limit-row label { display: grid; gap: 4px; }
.model-limit-row label span { color: var(--muted); font-size: 10px; }
.model-limit-row input { min-height: 36px; padding: 7px 8px; font-size: 12px; }
.estimate-box { padding: 14px; margin-bottom: 14px; border-radius: var(--r-md); border: 1px dashed var(--line-strong); }
.estimate-summary p { margin: 6px 0; font-size: 13px; }
.estimate-summary ul { margin: 8px 0; padding-left: 18px; font-size: 12.5px; color: var(--warn); }
.sheet-actions { position: sticky; bottom: 0; display: flex; gap: 10px; padding: 12px 0 2px; background: linear-gradient(180deg, transparent, #0e0c1f 30%); }
.sheet-actions > * { flex: 1; }

.pay-card { margin-bottom: 14px; }
.pay-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.pay-card-head .pm-icon { background: var(--accent-soft); }
.pay-card-head h3 { font-size: 16px; }
.pay-card-head small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.status-badge { margin-left: auto; padding: 4px 10px; border-radius: 99px; font-size: 11px; font-weight: 750; white-space: nowrap; color: var(--muted); background: rgba(255, 255, 255, .07); }
.status-badge.ok { color: var(--green); background: rgba(104, 224, 176, .12); }
.status-badge.warn { color: var(--warn); background: rgba(255, 183, 93, .12); }
.copy-row { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; margin: 8px 0 12px; border-radius: 12px; background: rgba(6, 5, 14, .6); border: 1px solid var(--line); }
.copy-row code { flex: 1; min-width: 0; background: none; padding: 0; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-row .icon-btn { width: 34px; height: 34px; }
.steps { margin: 6px 0 12px; padding-left: 20px; font-size: 13px; line-height: 1.6; color: var(--muted); }

.order { padding: 14px 0; border-top: 1px solid var(--line); }
.order:first-child { border-top: 0; padding-top: 0; }
.order-head { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 700; }
.order-foot { margin: 5px 0 10px; font-size: 12px; color: var(--muted); line-height: 1.45; }
.user-search { margin-bottom: 4px; }
.user-admin-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.user-admin-row:first-child { border-top: 0; padding-top: 0; }
.user-avatar { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 13px; background: var(--accent-soft); color: var(--lilac); font-weight: 800; }
.user-admin-info { flex: 1; min-width: 0; }
.user-admin-info b { display: block; font-size: 14px; }
.user-admin-info small { display: block; margin-top: 1px; font-size: 12px; color: var(--muted); }
.user-admin-row .primary, .user-admin-row .danger-btn { min-height: 36px; padding: 0 12px; font-size: 12.5px; }

.economics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.economics-model-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); }
.economics-model-row:first-child { border-top: 0; padding-top: 0; }
.economics-model-name { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
.economics-model-name small { display: block; font-size: 12px; color: var(--muted); }
.economics-model-row label span { display: block; margin-bottom: 5px; font-size: 11.5px; color: var(--muted); }
.source-list { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 8px; }
.usage-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 12px; }
.usage-row small { display: block; color: var(--muted); }
.usage-row > span { text-align: right; color: var(--lilac); max-width: 45%; }

/* Public site administration */
.site-gallery-admin { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 14px; }
.site-media-item { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .035); }
.site-media-item img { width: 100%; height: 110px; object-fit: cover; border-radius: 10px; background: rgba(120, 100, 255, .12); }
.site-media-item code { font-size: 11px; max-width: 100%; overflow-wrap: anywhere; }
.site-media-item .actions { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; width: 100%; }
.site-media-item button { min-height: 34px; padding: 6px 10px; }
.upload-progress { min-height: 22px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
#site-content-form > .card { margin-bottom: 14px; }
#site-content-form .cards { gap: 12px; }
#site-content-form button:disabled { opacity: .48; cursor: not-allowed; }
#site-content-form textarea { min-height: 96px; font-size: 14px; line-height: 1.5; }
#site-content-form .field { margin-bottom: 12px; }

/* Providers order */
.tabs-subnav { display: flex; gap: 8px; margin-bottom: 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.tabs-subnav button { white-space: nowrap; font-size: 13px; padding: 7px 15px; border-radius: 999px; transition:background-color .16s ease,color .16s ease,border-color .16s ease,transform .16s ease; }
.tabs-subnav button.active { background: var(--accent, #8b5cf6) !important; color: #fff !important; border-color: transparent !important; box-shadow: 0 2px 8px rgba(139, 92, 246, 0.35); font-weight: 700; }
.provider-row { margin-bottom: 12px; }
.provider-row.off { opacity: .6; }
.provider-top { display: flex; align-items: center; gap: 12px; }
.provider-rank { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, #7c5cff, #4f7bff); color: #fff; font-weight: 800; }
.provider-info { flex: 1; min-width: 0; }
.provider-info b { display: block; }
.provider-info small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.provider-error { margin: 8px 0 0; color: #ffb4a8; }
.provider-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.provider-actions button { flex: 1 1 auto; min-width: 88px; }
.provider-actions button[disabled] { opacity: .4; }

/* TTS & STT in admin */
.tts-card { border-color: var(--line-strong); }
.tts-card .tts-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.tts-card .tts-head h3 { margin: 0; font-size: 17px; }

/* Legal links — clean single bottom space */
.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  padding: 8px 16px 14px;
  font-size: 12px;
}
.legal-links a { color: var(--muted); text-decoration: none; }
.legal-links a:hover { color: #fff; }

/* ---------- PROFILE SUBPAGES ---------- */
.sub-head { display: flex; align-items: center; gap: 14px; padding: 6px 2px 16px; }
.sub-head h1 { margin: 0; font-size: clamp(22px, 5.5vw, 28px); line-height: 1.15; letter-spacing: -.8px; font-weight: 830; }
.sub-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.sub-back {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05);
  color: var(--text);
  transition: transform .15s ease, background .18s ease;
}
.sub-back:active { transform: scale(.94); background: var(--accent-soft); }
.sub-back svg { width: 18px; height: 18px; transform: rotate(180deg); }
.sub-back-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 0;
  padding: 7px 13px 7px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05);
  color: var(--lilac);
  font-size: 13px;
  font-weight: 650;
}
.sub-back-inline svg { width: 15px; height: 15px; transform: rotate(180deg); }
.sub-card { margin-bottom: 14px; }
.field-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 4px 2px 10px; font-size: 14px; font-weight: 700; }
.field-title small { color: var(--muted); font-size: 12px; font-weight: 500; }
.sub-card .chip-row { margin-bottom: 14px; }
.emoji-row { gap: 6px; margin-bottom: 10px; }
.emoji-chip { min-width: 42px; padding: 7px 9px; font-size: 19px; line-height: 1; text-align: center; }
.sub-card > .primary.wide, .sub-card > .secondary.wide { margin-top: 6px; }

.sec-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 8px;
  padding: 20px 18px 18px;
  border: 1px solid var(--line-strong);
  background: radial-gradient(120% 90% at 100% 0%, rgba(124, 92, 255, .32), transparent 60%),
              radial-gradient(90% 80% at 0% 100%, rgba(79, 123, 255, .20), transparent 62%),
              linear-gradient(160deg, rgba(27, 22, 54, .95), rgba(15, 13, 33, .96));
}
.sec-hero h2 { margin: 14px 0 8px; font-size: 20px; letter-spacing: -.4px; line-height: 1.2; }
.sec-hero p { margin: 0 0 16px; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.sec-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sec-hero-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, #7c5cff, #4f7bff);
  color: #fff;
  box-shadow: 0 0 24px rgba(124, 92, 255, .45);
}
.sec-hero-icon svg { width: 23px; height: 23px; }
.sec-pill { padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--muted); background: rgba(255, 255, 255, .07); white-space: nowrap; }
.sec-pill.on { color: var(--green); background: rgba(104, 224, 176, .12); }
.sec-pill.warn { color: #ffd37a; background: rgba(255, 211, 122, .12); }
.sec-steps { display: grid; gap: 9px; margin-bottom: 16px; }
.sec-step { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.4; }
.sec-step-num { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #3aa0ff, #1f7bf0); color: #fff; font-size: 13px; font-weight: 800; }
.sec-hero .primary svg { width: 18px; height: 18px; margin-right: 6px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.switch-row b { display: block; font-size: 14.5px; }
.switch-row small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.sec-note { margin: 12px 0; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255, 183, 93, .4); background: rgba(255, 183, 93, .1); color: #ffe3b8; font-size: 12.5px; line-height: 1.5; }

.connect-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.connect-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 14px; text-align: left; border-radius: 18px; border: 1px solid var(--line-strong); background: linear-gradient(160deg, rgba(124, 92, 255, .2), rgba(79, 123, 255, .08)); color: var(--text); transition: transform .15s ease; }
.connect-card:active { transform: scale(.97); }
.connect-card b { font-size: 14.5px; }
.connect-card small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.connect-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, #7c5cff, #4f7bff); color: #fff; }
.connect-icon svg { width: 20px; height: 20px; }
.manual-connect { margin-top: 12px; }
.manual-connect summary { cursor: pointer; padding: 8px 2px; color: var(--lilac); font-size: 13px; font-weight: 650; }

.premium-lock-card {
  position: relative;
  overflow: hidden;
  margin: 12px 0;
  padding: 22px 18px 18px;
  border: 1px solid rgba(174, 147, 255, .28);
  border-radius: 22px;
  background: radial-gradient(circle at 95% 0, rgba(156, 105, 255, .2), transparent 38%),
              linear-gradient(145deg, rgba(38, 28, 76, .92), rgba(18, 15, 38, .98));
  box-shadow: 0 14px 34px rgba(0, 0, 0, .2);
}
.premium-lock-card h2 { margin: 8px 0; font-size: 20px; letter-spacing: -.4px; }
.premium-lock-card p { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.premium-lock-symbol { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: linear-gradient(135deg, #7f64ff, #538cff); box-shadow: 0 8px 22px rgba(110, 91, 255, .3); }
.premium-lock-symbol svg { width: 24px; height: 24px; }
.tier-lock-label { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; max-width: 120px; color: #d6c4ff; font-size: 10px; font-weight: 850; line-height: 1.2; white-space: normal; text-align: right; letter-spacing: .2px; }
.tier-lock-label svg { width: 13px; height: 13px; flex: 0 0 13px; }

/* FAQ styles */
.faq-intro { display: flex; align-items: center; gap: 14px; padding: 16px; margin: 12px 0 14px; border: 1px solid var(--line); background: radial-gradient(circle at 100% 0, rgba(116, 91, 255, .16), transparent 45%), rgba(255, 255, 255, .025); }
.faq-intro-mark { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, #8a6bff, #4c8cff); }
.faq-intro-mark svg { width: 22px; height: 22px; }
.faq-intro h2 { margin: 0 0 4px; font-size: 16px; }
.faq-intro p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.faq-list { display: grid; gap: 8px; }
.faq-list .faq-item { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(135deg, rgba(255, 255, 255, .035), rgba(130, 99, 255, .02)); }
.faq-list .faq-item[open] { border-color: rgba(154, 130, 255, .38); background: linear-gradient(135deg, rgba(129, 95, 255, .09), rgba(255, 255, 255, .02)); }
.faq-list .faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 750; }
.faq-list .faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center; border-radius: 8px; background: rgba(136, 109, 255, .13); color: #d9ccff; font-size: 17px; transition: transform .18s ease; }
.faq-list .faq-item[open] .faq-plus { transform: rotate(45deg); }
.faq-list .faq-item p { margin: 0; padding: 0 14px 14px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.faq-footer { margin-top: 14px; padding: 16px; }
.faq-footer p { margin: 5px 0 12px; }

/* Gift sheet */
.gift-sheet-hero { position: relative; overflow: hidden; border: 1px solid rgba(207, 163, 255, .24); border-radius: 20px; padding: 18px; margin-bottom: 16px; background: radial-gradient(circle at 100% 0, rgba(255, 101, 190, .18), transparent 43%), linear-gradient(145deg, rgba(112, 76, 255, .2), rgba(27, 24, 58, .55)); }
.gift-sheet-hero .eyebrow { display: block; margin: 10px 0 5px; color: #d9c9ff; letter-spacing: 1px; font-size: 10px; font-weight: 850; }
.gift-sheet-icon { width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .24); border-radius: 16px; background: linear-gradient(135deg, #8d6bff, #ec75cc); box-shadow: 0 8px 24px rgba(155, 91, 255, .28); }
.gift-sheet-icon svg { width: 26px; height: 26px; }
.gift-recipient-note { margin: 12px 0 16px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255, 183, 93, .22); background: rgba(255, 183, 93, .07); }
.gift-recipient-note b { font-size: 12.5px; }
.gift-recipient-note p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.gift-checkout-chip { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 13px; padding: 9px 12px; border-radius: 12px; border: 1px solid rgba(210, 172, 255, .24); background: rgba(132, 92, 255, .1); font-size: 12px; }
.gift-checkout-chip svg { width: 16px; height: 16px; }

/* ---------- BUILT-IN WEB CHAT ---------- */
.chat-page { display: flex; flex-direction: column; min-height: calc(100dvh - 100px); padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
.chat-page-head { display: flex; align-items: center; gap: 10px; padding: 8px 0 12px; }
.chat-back { min-height: 36px; padding: 0 12px; font-size: 12px; }
.chat-heading { flex: 1; min-width: 0; }
.chat-heading h1 { margin: 0; font-size: 20px; letter-spacing: -.6px; }
.chat-heading small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.chat-tools { display: flex; align-items: flex-end; gap: 12px; margin: 0 0 10px; }
.chat-select-label { flex: 1; min-width: 0; }
.chat-select-label span { display: block; margin: 0 0 5px; color: var(--muted); font-size: 11px; }
.chat-select-label select { min-height: 38px; padding: 8px 28px 8px 10px; font-size: 12px; }
.chat-tools .text-link { flex: 0 0 auto; margin: 0 2px 10px 0; font-size: 11.5px; }
.chat-messages { flex: 1; min-height: 200px; max-height: min(58dvh, 640px); overflow-y: auto; overscroll-behavior: contain; padding: 12px 4px 16px; scroll-behavior: smooth; }
.chat-welcome { display: flex; align-items: center; flex-direction: column; text-align: center; padding: 24px 12px; }
.chat-welcome .brand-mark { width: 58px; height: 58px; margin-bottom: 14px; }
.chat-welcome h2 { margin: 0 0 8px; font-size: 21px; }
.chat-welcome p { max-width: 340px; margin: 0 auto 16px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.chat-suggestions { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; }
.chat-suggestions button { padding: 7px 12px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255, 255, 255, .04); color: var(--text); font-size: 11.5px; transition: border-color .15s ease, background .15s ease; }
.chat-suggestions button:hover { border-color: var(--line-strong); background: rgba(139, 108, 255, .1); }

.chat-message { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 16px; }
.chat-message.from-user { flex-direction: row-reverse; }
.chat-message-avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
  color: var(--lilac);
  font-size: 12px;
  font-weight: 800;
  background: rgba(137, 107, 255, .16);
  border: 1px solid var(--line);
}
.chat-message-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-message-body { min-width: 0; max-width: calc(100% - 44px); }
.chat-message.from-user .chat-message-body { display: flex; flex-direction: column; align-items: flex-end; }
.chat-message-name { margin: 0 0 4px 3px; color: var(--muted); font-size: 10.5px; }
.chat-bubble {
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px 16px 16px 16px;
  background: linear-gradient(145deg, rgba(27, 22, 54, .92), rgba(15, 13, 33, .95));
  font-size: 13.5px;
  line-height: 1.6;
}
.from-user .chat-bubble {
  border-color: rgba(143, 116, 255, .35);
  border-radius: 16px 6px 16px 16px;
  background: linear-gradient(145deg, rgba(100, 70, 215, .32), rgba(42, 36, 84, .65));
}
.chat-bubble-text > :first-child { margin-top: 0; }
.chat-bubble-text > :last-child { margin-bottom: 0; }
.chat-bubble-text h3, .chat-bubble-text h4 { margin: 8px 0 4px; font-size: 14px; }
.chat-bubble-text strong { font-weight: 800; }
.chat-bubble-text em { color: #d8cdff; }
.chat-bubble-text code { padding: 2px 5px; border-radius: 5px; background: rgba(0, 0, 0, .3); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9em; }
.chat-list-line { padding-left: 5px; }
.chat-code { max-width: 100%; margin: 8px 0; overflow: hidden; border-radius: 11px; background: #080711; border: 1px solid rgba(171, 151, 255, .23); }
.chat-code-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 10.5px; }
.chat-code-top button, .chat-message-actions button { padding: 4px 8px; border-radius: 7px; color: var(--lilac); background: rgba(255, 255, 255, .05); font-size: 10.5px; }
.chat-code pre { max-width: 100%; margin: 0; padding: 11px; overflow: auto; white-space: pre; line-height: 1.5; }
.chat-code pre code { padding: 0; background: none; font-size: 11.5px; }
.chat-message-actions { display: flex; flex-wrap: wrap; gap: 7px; margin: 6px 2px 0; }
.chat-attachment-media { display: block; max-width: min(100%, 320px); max-height: 340px; object-fit: contain; border-radius: 10px; margin-bottom: 8px; background: #080711; }
.chat-file-chip { margin-bottom: 6px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .055); font-size: 12px; overflow-wrap: anywhere; }
.chat-composer-card {
  position: sticky;
  bottom: calc(76px + env(safe-area-inset-bottom));
  z-index: 15;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: rgba(16, 13, 32, .95);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.chat-composer-card form { margin: 0; }
.chat-composer-card textarea { min-height: 54px; max-height: 180px; resize: vertical; padding: 10px; border: 0; box-shadow: none; background: transparent; }
.chat-composer-tools { display: flex; align-items: center; gap: 8px; padding-top: 7px; border-top: 1px solid var(--line); }
.chat-composer-tools .icon-btn { width: 36px; height: 36px; flex: 0 0 36px; font-size: 17px; }
.chat-composer-spacer { flex: 1; }
.chat-send { min-height: 38px; padding: 0 14px; border-radius: 12px; font-size: 12.5px; }
.chat-composer-card > .small { margin: 6px 2px 0; font-size: 10.5px; line-height: 1.4; }
.chat-attach-preview:not(:empty) { padding: 2px 2px 8px; }
.chat-attach-preview > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 10px; background: rgba(143, 116, 255, .1); font-size: 12px; overflow-wrap: anywhere; }

/* Brand Icon Colors */
.brand-claude { color: #ff9d78; }
.brand-openai { color: #7fe3c3; }
.brand-gemini { color: #8fb4ff; }
.brand-deepseek { color: #7fc9ff; }
.brand-grok { color: #e9e6f5; }
.brand-cohere { color: #ffbf78; }
.brand-perplexity { color: #8be8c4; }
.brand-microsoft { color: #9bc7ff; }
.brand-moonshot { color: #bec5ff; }
.brand-minimax { color: #ff9eb8; }
.brand-zhipu { color: #a9a1ff; }
.brand-yi { color: #f2d59b; }
.brand-nvidia { color: #9be57d; }
.brand-groq { color: #f4d9a7; }
.brand-amazon { color: #ffb77c; }
.brand-ai21 { color: #bba5ff; }
.brand-baichuan { color: #8bc9ff; }
.brand-databricks { color: #ff9e88; }

/* Attention pulse */
.attention-pulse { animation: nevi-tool-pulse 1.25s ease-in-out 2; }

/* Responsive adjustments */
@media (min-width: 640px) {
  .terms { margin-inline: 0; padding-inline: 0; }
}
@media (max-width: 480px) {
  .creation-grid, .quick-grid { grid-template-columns: 1fr; }
  .field-row, .economics-grid { grid-template-columns: 1fr; }
  .compare-head, .compare-row { grid-template-columns: minmax(0, 1fr) 58px 68px; }
  .pay-category-card { grid-template-columns: 42px 1fr 16px; padding: 12px; }
  .pay-cat-icon { width: 42px; height: 42px; font-size: 20px; }
  .pay-header-price { font-size: 19px; }
  .premium-buy-bar { gap: 6px; }
  .premium-buy-bar > button { font-size: 13px; }
}
@media (max-width: 380px) {
  .quota-grid { grid-template-columns: 1fr; }
  .terms { grid-template-columns: 1fr 1fr; }
  .chat-page-head { gap: 6px; }
  .chat-heading h1 { font-size: 18px; }
  .chat-back { padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}


/* ========== MODERN SLEEK STUDIO STYLES ========== */
.studio-model-picker-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  margin-bottom: 12px;
  position: relative;
  transition: border-color .18s ease;
}
.studio-model-picker-wrap:hover {
  border-color: rgba(168, 85, 247, 0.35);
}
.studio-model-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.studio-model-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.studio-model-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.studio-model-title {
  font-size: 14px;
  color: var(--fg);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.studio-model-brand-pill {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}
.studio-model-select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.studio-model-select {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.studio-change-btn {
  padding: 6px 12px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  pointer-events: none;
  transition:background-color .16s ease,color .16s ease,border-color .16s ease,transform .16s ease;
}
.studio-compact-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 8px;
}
.studio-bar-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.studio-bar-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}
.studio-pill-group {
  display: flex;
  gap: 4px;
}
.studio-pill-btn {
  padding: 4px 9px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition:background-color .16s ease,color .16s ease,border-color .16s ease,transform .16s ease;
}
.studio-pill-btn:hover {
  color: var(--fg);
}
.studio-pill-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.studio-prompt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.studio-helper-toggle {
  background: none;
  border: none;
  color: var(--lilac);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: background .15s ease;
}
.studio-helper-toggle:hover {
  background: rgba(168, 85, 247, 0.12);
}
.studio-styles-tray {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-bottom: 12px;
  transition:background-color .16s ease,color .16s ease,border-color .16s ease,transform .16s ease;
}
.studio-tray-title {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 6px;
}

/* Clean Studio Header */
.studio-header {
  margin-bottom: 14px;
  text-align: center;
}
.studio-header h1 {
  font-size: 20px;
  font-weight: 800;
  color: var(--fg);
  margin: 0 0 4px;
}
.studio-header p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* Nevi: quiet surfaces and a complete mobile navigation. */
:root{--bg:#111119;--bg-2:#15151f;--bg-gradient:linear-gradient(#14131e,#111119);--surface:#1a1925;--surface-solid:#1a1925;--surface-2:#242132;--line:rgba(204,194,235,.13);--muted:#b4aec7;--faint:#968fa9}
body{background:var(--bg);background-attachment:scroll}
.app{padding-bottom:calc(100px + env(safe-area-inset-bottom))}
.profile-card,.tier-showcase[class*="lvl-"],.package-card,.card{background:var(--surface);box-shadow:none;border-color:var(--line)}
.profile-card::after,.tier-showcase .ts-glow,.tier-showcase .ts-sheen,.term-ribbon{display:none}
.profile-avatar,.ts-crown{background:#302840;box-shadow:none}
.ts-name{font-size:24px;font-weight:700}
.ts-crown{width:42px;height:42px;font-size:22px}
.ts-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ts-stat{background:#22202f;border:1px solid var(--line);border-radius:12px;padding:12px}
.ts-stat b{font-size:19px;font-weight:700}
.ts-tag{color:var(--muted)}
.tier-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;gap:6px;background:transparent;border:0;padding:0}
.tier-tab{min-width:0;min-height:44px;padding:10px 8px;border:1px solid var(--line);border-radius:12px;white-space:normal}
.tier-tab.active,.tier-tab[class*="lvl-"].active{background:#34294c;box-shadow:none;color:#fff;border-color:#8b6cff}
.primary,button.primary,a.primary{background:#8163e9;box-shadow:none;border:1px solid transparent}
.primary:hover{background:#9073f4}
.term-card{background:var(--surface);box-shadow:none}
.term-card.active{border-color:#a58af8;box-shadow:none}
.compare summary{cursor:pointer;list-style:none;font-size:15px;font-weight:650;padding:2px 0}
.compare[open] summary{margin-bottom:18px}
.billing-note,.pack-note{font-size:13px;line-height:1.6;color:var(--muted)}
.premium-buy-bar{position:static;background:transparent;border:0;padding:0;box-shadow:none;margin-top:20px}
.admin-categories-bar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;gap:8px}
.admin-category-btn{min-height:44px;min-width:0;justify-content:center;font-size:13px;white-space:normal;padding:10px}
.admin-subtabs-bar{display:flex;flex-wrap:wrap;overflow:visible;gap:8px;padding:12px 0 4px}
.admin-subtab{min-height:42px;white-space:normal;border-radius:10px}
.admin-nav-hub{position:static;background:var(--bg)}
.admin-head p{line-height:1.5}
.bottom-nav{border:1px solid var(--line);background:rgba(25,23,36,.97);box-shadow:0 4px 20px #0005;backdrop-filter:blur(14px)}
.bottom-nav small{font-size:11px;line-height:1.2}
.bottom-nav .nav-item{min-height:54px}
.prompt-module summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;min-height:44px;list-style:none}
.prompt-module summary span{font-size:12px;color:var(--muted);white-space:nowrap}
.prompt-module textarea{margin-top:12px}
.billing-quote{display:grid;gap:12px}
.billing-quote strong,.billing-quote small{display:block;margin-top:6px}
.billing-quote small{color:var(--muted);line-height:1.5}
.price-risk{color:#ffb6a3}
button,a,input,textarea,select{touch-action:manipulation}
:where(button,a,input,textarea,select):focus-visible{outline:2px solid #b8a5ff;outline-offset:3px}
@media(max-width:600px){input,textarea,select{font-size:16px}.hero h1{font-size:27px;line-height:1.15}.profile-name{font-size:19px}.card,.package-card{border-radius:18px}.term-card{min-height:100px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.plan-model-settings{margin-top:12px;border:1px solid var(--line);border-radius:14px;padding:12px}
.plan-model-settings>summary{cursor:pointer;min-height:40px;display:flex;align-items:center;font-weight:600}
#plan-models{max-height:340px;overflow-y:auto;margin-top:12px}
.model-access-list{display:grid;gap:10px}.model-access-row{margin:0;display:grid;gap:14px}
.model-access-name{min-width:0;display:grid;gap:5px}.model-access-name b,.model-access-name small{overflow-wrap:anywhere}
.model-access-name small{color:var(--muted);font-size:12px}.model-access-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.model-access-actions button{min-height:44px;padding:10px;font-size:12px}.model-disabled{opacity:.7}
.model-access-tabs{margin:16px 0}.model-access-tabs .chip{display:flex;gap:8px}.model-access-tabs span{opacity:.65}
.model-access-help>summary{cursor:pointer;min-height:32px;display:flex;align-items:center;font-weight:600}
@media(max-width:600px){.admin-category-btn{min-height:40px;padding:9px 12px}.admin-subtab{min-height:36px;padding:8px 10px}.admin-nav-hub{margin-bottom:20px}.admin-head{margin-bottom:16px}}
@media(min-width:850px){.model-access-list{grid-template-columns:1fr 1fr}}

/* Image catalogue: readable names and complete controls on narrow screens. */
.image-catalog{padding-bottom:12px}
.image-catalog-head{margin:16px 0 18px}
.image-catalog-head h1{margin:0 0 6px;font-size:26px;line-height:1.2;letter-spacing:-.035em}
.image-catalog-head p{margin:0;color:var(--muted);font-size:14px;line-height:1.5}
.image-modality-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:4px;border:1px solid var(--line);background:#191822;border-radius:16px;margin-bottom:16px}
.image-modality-tab{min-width:0;min-height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:7px 2px;border:1px solid transparent;border-radius:12px;background:transparent;color:var(--muted);font:inherit;font-size:12px;cursor:pointer}
.image-modality-tab .svg-icon{width:18px;height:18px}
.image-modality-tab.active{background:#302644;border-color:#a98ae64d;color:#eadfff}
.image-current{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;margin-bottom:16px;background:#1b1926;border:1px solid var(--line);border-radius:16px}
.image-current>div{min-width:0;display:grid;gap:3px}
.image-current small{color:var(--muted);font-size:11px}
.image-current strong{font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.image-current .primary{flex-shrink:0;display:flex;align-items:center;gap:7px;min-height:42px;padding:10px 14px;font-size:13px;border-radius:12px;box-shadow:none}
.image-current .svg-icon{width:15px;height:15px}
.image-catalog-search{position:relative;display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:0 12px;border:1px solid var(--line);border-radius:14px;background:#191822;margin-bottom:12px}
.image-catalog-search>.svg-icon{width:19px;height:19px;color:var(--muted);flex-shrink:0}
.image-catalog-search input{min-width:0;width:100%;height:46px;padding:0;border:0!important;border-radius:0;background:transparent!important;box-shadow:none!important;outline:0;color:var(--text);font:inherit;font-size:16px}
.image-catalog-search input::-webkit-search-cancel-button{-webkit-appearance:none}
.image-catalog-search:focus-within{border-color:#b69be5;box-shadow:0 0 0 2px #b69be51a}
.image-catalog-search button{width:36px;height:40px;flex-shrink:0;padding:0;border:0;background:transparent;color:var(--muted);font-size:24px;cursor:pointer}
.image-catalog-search button[hidden]{display:none}
.image-catalog-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.image-catalog-filter{min-width:0;min-height:44px;display:flex;align-items:center;justify-content:center;gap:6px;padding:8px 4px;border:1px solid var(--line);border-radius:11px;background:transparent;color:var(--muted);font:inherit;font-size:12px;font-weight:600;cursor:pointer}
.image-catalog-filter span{font-size:10px;opacity:.75}
.image-catalog-filter.active{color:#e5d7ff;background:#302644;border-color:#a98ae680}
.image-result-count{margin:13px 1px 10px;color:var(--muted);font-size:12px}
.image-catalog-results{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
.image-choice{min-width:0;display:flex;flex-direction:column;background:#1b1926;border:1px solid var(--line);border-radius:17px;overflow:hidden}
.image-choice.selected{background:#221d31;border-color:#aa8be6}
.image-choice-details{width:100%;min-width:0;display:flex;align-items:flex-start;gap:12px;padding:15px 14px 12px;border:0;background:transparent;color:var(--text);text-align:left;cursor:pointer}
.image-choice-details .brand-icon{width:36px;height:36px;min-width:36px;flex-shrink:0;margin:0;box-shadow:none}
.image-choice-copy{display:grid;gap:5px;min-width:0;flex:1}
.image-choice-copy strong{display:block;white-space:normal;overflow-wrap:anywhere;font-size:15px;line-height:1.4;font-weight:650;letter-spacing:-.01em}
.image-choice-copy small{font-size:12px;line-height:1.4;color:var(--muted);overflow-wrap:anywhere}
.image-choice-chevron{width:16px;height:16px;flex-shrink:0;margin-top:4px;color:var(--muted)}
.image-choice-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 14px 13px;margin-top:auto}
.image-access{min-width:0;color:var(--muted);font-size:11px;line-height:1.4}
.image-access.free{color:#91d5b4}
.image-choice-select{min-height:44px;min-width:94px;flex-shrink:0;display:flex;align-items:center;justify-content:center;gap:5px;padding:9px 12px;border:1px solid #a78bdf55;border-radius:10px;background:#34274d;color:#e4d3ff;font:inherit;font-size:12px;font-weight:650;cursor:pointer}
.image-choice-select.chosen:disabled{opacity:1;background:transparent;border-color:transparent;color:#c9b0f0;cursor:default}
.image-choice-select.unavailable:disabled{opacity:.65;background:transparent;border-color:var(--line);color:var(--muted)}
.image-choice-select .svg-icon{width:15px;height:15px}
.image-choice.disabled .image-choice-copy{opacity:.6}
.image-catalog-empty{grid-column:1/-1;text-align:center;padding:32px 16px;border:1px dashed var(--line);border-radius:17px}
.image-catalog-empty>.svg-icon{width:30px;height:30px;color:var(--muted)}
.image-catalog-empty h2{font-size:17px;margin:12px 0 8px}
.image-catalog-empty p{font-size:13px;line-height:1.5;color:var(--muted);margin:0 0 16px}
.image-model-sheet header{display:flex;align-items:flex-start;gap:12px;margin:10px 0 20px}
.image-model-sheet header>div{min-width:0;flex:1}.image-model-sheet .sheet-title{overflow-wrap:anywhere;line-height:1.3;margin:0 0 6px}
.image-sheet-close{width:38px;min-height:44px;flex-shrink:0;margin-left:auto;padding:0;border:0;background:transparent;color:var(--muted);font-size:26px;cursor:pointer}
.image-model-sheet header p{margin:0;color:var(--muted);font-size:13px}
.image-model-sheet dl{margin:0 0 22px;padding:0 14px;border:1px solid var(--line);border-radius:16px;background:#1b1926}
.image-model-sheet dl>div{padding:14px 0;border-bottom:1px solid var(--line)}.image-model-sheet dl>div:last-child{border-bottom:0}
.image-model-sheet dt{font-size:11px;color:var(--muted);margin-bottom:5px}.image-model-sheet dd{margin:0;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
@media(min-width:720px){.image-catalog-results{grid-template-columns:repeat(2,minmax(0,1fr))}.image-modality-tab{flex-direction:row;gap:8px;min-height:44px;font-size:13px}.image-catalog-head h1{font-size:30px}}
@media(max-width:350px){.image-catalog-head h1{font-size:24px}.image-choice-details{padding:13px 12px 10px;gap:9px}.image-choice-footer{padding:0 12px 12px}.image-current{padding:11px 12px}}

/* Customer model lists keep the full name readable at phone widths. */
#view-models .model-compact-list{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
#view-models .model-compact-row{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:15px;border-radius:18px}
#view-models .model-compact-left{width:100%;min-width:0;align-items:flex-start}
#view-models .model-compact-info{flex:1;min-width:0}
#view-models .model-compact-title-row{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0}
#view-models .model-compact-title{display:block;width:100%;max-width:none;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;font-size:15px;line-height:1.4}
#view-models .model-compact-sub{display:flex;flex-wrap:wrap;gap:4px;line-height:1.5;margin-top:7px}
#view-models .model-compact-actions{display:flex;justify-content:flex-end;width:100%;gap:8px}
#view-models .model-compact-actions .model-card-btn{min-height:36px;min-width:100px}
#view-models .model-compact-actions .model-card-info{width:36px;height:36px}
#view-models .voice-catalog-grid .card{min-width:0;overflow-wrap:anywhere}
@media(min-width:720px){#view-models .model-compact-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Reference photos stay within the creation form on narrow screens. */
.studio-source-preview { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.studio-source-preview img { width:72px; height:72px; object-fit:cover; border-radius:12px; }
.studio-source-preview span { flex:1; min-width:80px; overflow-wrap:anywhere; font-size:13px; }
#creation-source { display:none; }
.field > .studio-source-picker { display:flex; align-items:center; justify-content:center; gap:8px; cursor:pointer; padding:12px; border-radius:14px; }
.studio-source-picker svg { width:20px; height:20px; }
#studio-tab-content .field[hidden] { display:none; }

.studio-source-picker[aria-disabled="true"] { opacity:.5; cursor:not-allowed; }
/* Nevi Text — a quiet, light workspace with one violet accent. */
:root{color-scheme:light;--bg:#f6f4fb;--bg-2:#eeebf7;--bg-gradient:linear-gradient(180deg,#eeebff 0,#f8f7fc 330px,#f6f4fb 100%);--surface:#fff;--surface-solid:#fff;--surface-2:#f4f1fb;--surface-3:#ece7f8;--line:#e6e1f0;--line-strong:#d2c6ed;--text:#262237;--muted:#7b758c;--faint:#aaa3b8;--accent:#7955d9;--accent-2:#6744c4;--accent-soft:#eee7ff;--good:#27896b;--danger:#c94d67;--shadow:0 8px 32px #33205408}
html,body{background:var(--bg);color:var(--text)}body{background:var(--bg-gradient);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:15px;line-height:1.5;letter-spacing:-.012em}.ambient{display:none!important}.app{max-width:1120px;margin:auto;padding:0 22px 112px}.topbar{position:relative;min-height:84px;padding:20px 0;border:0;background:none;box-shadow:none}.brand-mark{height:42px;width:42px;box-shadow:none;background:transparent}.brand-mark img{border-radius:50%}.brand-title{font-size:23px;letter-spacing:-.04em;color:var(--text)}.brand-title span{color:var(--accent)}.brand-subtitle{font-size:11px;color:var(--muted)}.avatar,.profile-avatar{background:#ece4ff!important;border:1px solid #d9ccf6!important;box-shadow:none!important;color:var(--accent)!important;border-radius:16px}.avatar{width:42px;height:42px}.legal-links{opacity:.75;margin:28px 0 10px}.legal-links a{color:var(--muted)}
h1,h2,h3,.subhead{color:var(--text);letter-spacing:-.035em}h1{font-size:clamp(27px,4vw,38px);line-height:1.13}.hero,.page-title{padding:12px 0 24px}.hero h1,.page-title h1{font-weight:740;margin:7px 0 10px}.hero p,.page-title p{font-size:14px;color:var(--muted);max-width:580px;margin:0;line-height:1.6}.eyebrow{font-size:10px;font-weight:750;letter-spacing:.14em;color:var(--accent)}.section-head{margin:28px 2px 10px}.section-head h2{font-size:15px;font-weight:700}.section-head>span{font-size:11px;color:var(--muted)}
.card,.profile-card,.row-list,.pack-card,.tier-showcase,.text-plan-benefits,.text-profile{background:#fff!important;border:1px solid var(--line)!important;border-radius:22px!important;box-shadow:var(--shadow)!important;color:var(--text)!important}.card{padding:20px;margin-bottom:14px}.row-list{overflow:hidden}.row{background:transparent!important;border:0!important;border-bottom:1px solid #f0edf6!important;border-radius:0!important;min-height:70px;padding:16px 18px!important;gap:12px;text-align:left;box-shadow:none!important}.row:last-child{border-bottom:0!important}.row:hover{background:#faf8ff!important}.row-icon{width:34px;height:34px;border-radius:11px;background:#f1ebff;color:var(--accent);flex-shrink:0}.row-icon svg{width:18px;height:18px}.row-title{font-size:14px;font-weight:650;color:var(--text)!important}.row-sub{font-size:12px;color:var(--muted)!important;line-height:1.5}.row-value{font-size:11px;color:var(--muted);max-width:130px;white-space:normal}.row-chevron{color:#aaa1bb}.row-body{min-width:0}.small,.muted{color:var(--muted)}
button,input,textarea,select{font:inherit}button{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #c6b3f3;outline-offset:2px}.primary{background:var(--accent)!important;color:#fff!important;border:1px solid transparent!important;border-radius:14px!important;box-shadow:none!important;font-weight:650;min-height:44px;padding:11px 16px}.primary:hover{background:var(--accent-2)!important}.secondary,.chip,.model-chip,.term,.tier-tab{background:#fff!important;border:1px solid var(--line)!important;color:var(--text)!important;border-radius:13px!important;box-shadow:none!important}.secondary{min-height:42px;padding:10px 14px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px}.secondary:hover{background:#f5f1ff!important}.primary:disabled,.secondary:disabled{opacity:.5}.chip.selected,.chip.active,.model-chip.active,.tier-tab.active{background:#eee7ff!important;border-color:#c3b0ec!important;color:var(--accent)!important}.icon-btn{background:transparent!important;color:var(--accent)!important;border:1px solid var(--line)!important;border-radius:12px!important;box-shadow:none}.icon-btn svg{width:18px;height:18px}.field label,.field>span{color:var(--muted);font-size:12px;font-weight:600}input,textarea,select,.field input,.field textarea,.field select{background:#fbfaff!important;color:var(--text)!important;border:1px solid var(--line)!important;box-shadow:none!important;border-radius:12px!important;padding:12px 13px;min-width:0}input::placeholder,textarea::placeholder{color:#aaa2ba!important}input[type=checkbox]{accent-color:var(--accent)}.field-row{gap:12px}.pill,.badge,.model-tag,.sec-pill{box-shadow:none!important}.pill.lav,.sec-pill.on,.model-tag.param{color:#6f4ac7;background:#f0e9ff;border:1px solid #dfd3f6}.pill.good,.sec-pill.on{color:var(--good);background:#eaf7f1;border-color:#d2ecdf}.pill.warn,.sec-pill.warn{color:#a97c29;background:#fff6e6;border-color:#eee1c4}.model-tag.prem{color:#8c61c6;background:#f3ecfc}.text-link{color:var(--accent)}
.bottom-nav{position:fixed;left:50%;transform:translateX(-50%);bottom:max(14px,env(safe-area-inset-bottom));width:min(470px,calc(100% - 28px));padding:7px 9px!important;border:1px solid #ded6ee!important;background:#fffffff5!important;backdrop-filter:blur(16px);border-radius:25px!important;box-shadow:0 6px 28px #32234d12!important;gap:3px}.bottom-nav .nav-item{color:#91879f!important;border:0!important;background:transparent!important;border-radius:18px!important;min-height:59px!important;box-shadow:none!important;min-width:0;padding:8px 3px!important}.bottom-nav .nav-item.selected{background:#eee7ff!important;color:var(--accent)!important;box-shadow:none!important}.nav-item.selected::before,.nav-item.selected::after{display:none!important}.nav-icon{height:23px;width:23px}.nav-icon svg{height:22px;width:22px}.nav-item small{font-size:10px;font-weight:650}.has-admin{grid-template-columns:repeat(5,minmax(0,1fr))!important}
.chat-page{display:flex;flex-direction:column;min-height:calc(100dvh - 200px);padding:0;max-width:850px;margin:auto}.text-chat-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 0 12px;border-bottom:1px solid var(--line)}.chat-model-select{display:inline-flex;align-items:center;gap:8px;max-width:calc(100% - 92px);background:#ffffffaa;border:1px solid var(--line);border-radius:13px;padding:9px 12px;color:var(--text);font-size:12px;font-weight:650;min-height:40px}.chat-model-select>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.chat-model-select>svg{width:15px;height:15px;flex-shrink:0;color:var(--accent)}.chat-model-select>svg:last-child{transform:rotate(90deg);width:12px}.chat-top-actions{display:flex;gap:6px}.chat-top-actions .icon-btn{width:36px;height:36px}.chat-messages{overflow:visible;min-height:0;max-height:none;flex:1;padding:0 0 20px;background:none}.chat-welcome{padding:50px 8px 30px;text-align:center;max-width:600px;margin:auto;background:none;border:0}.chat-nevi-orbit{width:96px;height:96px;margin:0 auto 19px;display:grid;place-items:center;border:1px solid #ddd3f6;border-radius:32px;background:linear-gradient(135deg,#f4efff,#fff);box-shadow:0 12px 35px #8a68ce16}.chat-nevi-orbit img{height:70px;width:70px;object-fit:contain;filter:none}.chat-welcome h2{font-size:clamp(26px,5vw,39px);font-weight:700;line-height:1.13;margin:12px 0 14px}.chat-welcome>p{color:var(--muted);font-size:14px;line-height:1.65;margin:0}.chat-suggestions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:27px 0 0}.chat-suggestions button{min-height:88px;background:#ffffffbd;border:1px solid var(--line);border-radius:18px;box-shadow:none;color:var(--text);padding:14px 11px;text-align:left;font-size:12px;display:flex;gap:10px;align-items:flex-start;flex-direction:column}.chat-suggestions button svg{height:20px;width:20px;color:var(--accent)}.chat-suggestions button:hover{border-color:#c5b2ec;background:#fff}.chat-composer-card{background:#fff;border:1px solid #d9ceec;border-radius:22px;padding:12px 14px 9px;box-shadow:0 8px 30px #34214d07;margin:10px 0 0}.chat-composer-card textarea{resize:vertical;min-height:62px;max-height:240px;background:transparent!important;border:0!important;box-shadow:none!important;padding:4px 2px!important;font-size:14px;outline:none}.chat-composer-tools{display:flex;align-items:center;gap:7px}.chat-composer-tools .icon-btn{width:33px;height:33px;border:0!important;background:#f4effb!important}.chat-quota-note{font-size:10px;color:var(--muted);flex:1;padding-left:2px}.chat-send{min-height:35px;padding:8px 11px!important;font-size:11px}.chat-footnote{font-size:10px;color:#a39aaa;text-align:center;margin:11px 0 0}.chat-message{padding:15px 0;gap:10px}.chat-message-avatar{border:0;box-shadow:none;background:#eee7fa;color:var(--accent);border-radius:12px;width:30px;height:30px}.chat-message-name{color:var(--muted);font-size:10px;margin-bottom:5px}.chat-bubble{background:#fff!important;color:var(--text)!important;border:1px solid var(--line)!important;border-radius:4px 18px 18px 18px;padding:14px;box-shadow:none!important}.from-user .chat-bubble{background:#eee7fb!important;border-color:#e5daf7!important}.chat-message-body{min-width:0;max-width:calc(100% - 40px)}.chat-bubble-text{font-size:14px;overflow-wrap:anywhere;line-height:1.7}.chat-message-actions button{color:var(--muted);font-size:10px;background:none}.chat-code{background:#f4f1f9;border:1px solid var(--line);border-radius:10px;color:var(--text)}.chat-code-top{background:#ece7f5;color:var(--muted)}.chat-code pre{white-space:pre-wrap;overflow-wrap:anywhere}.chat-download{display:flex;align-items:center;gap:10px;color:var(--accent);background:#f5efff;padding:12px;border-radius:12px;margin:8px 0;text-decoration:none}.chat-download>svg{width:18px;height:18px;flex-shrink:0}.chat-download>span{min-width:0;flex:1;overflow-wrap:anywhere;font-size:12px}.chat-download small{display:block;color:var(--muted)}.chat-attach-preview{background:#eee7fa;color:var(--accent);border-radius:10px;margin-bottom:9px}
.text-tools-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.text-tool-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding:23px;gap:13px;background:#fff;border:1px solid var(--line);border-radius:22px;min-height:190px;transition:border-color .15s,transform .15s;box-shadow:var(--shadow)}.text-tool-card:hover{border-color:#c6b5eb;transform:translateY(-2px)}.text-tool-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;background:#f1ebff;color:var(--accent)}.text-tool-icon svg{width:22px;height:22px}.text-tool-card strong{font-size:16px;font-weight:650}.text-tool-card>span:last-of-type{font-size:12px;color:var(--muted);line-height:1.5;max-width:210px}.text-tool-card>i{position:absolute;right:18px;top:26px;color:#c0b3d2}.text-tool-card>i svg{width:17px;height:17px}.text-tools-note{display:flex;align-items:flex-start;gap:13px;max-width:580px;margin:24px auto;padding:18px;background:#efebf8;border-radius:17px;color:var(--muted);font-size:12px}.text-tools-note svg{width:23px;height:23px;flex-shrink:0;color:var(--accent)}.text-tools-note p{margin:0}
.text-profile{padding:24px}.text-profile-person{display:flex;align-items:center;gap:15px}.text-avatar{display:grid;place-items:center;flex-shrink:0;width:58px;height:58px;background:#eee5ff;border-radius:20px;color:var(--accent);font-size:24px;font-weight:650}.text-profile-person h2{margin:0;font-size:21px}.text-profile-person p{font-size:12px;color:var(--muted);margin:4px 0}.text-membership{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:22px;border-top:1px solid var(--line);padding-top:20px}.text-membership>div{display:flex;flex-direction:column}.text-membership span{font-size:9px;letter-spacing:.12em;color:var(--muted);font-weight:650}.text-membership b{font-size:15px;margin:4px 0}.text-membership small{font-size:11px;color:var(--muted)}.text-membership .secondary{font-size:11px}.text-membership svg{height:14px;width:14px}.profile-text-balance{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:13px}.profile-text-balance>div{padding:18px;background:#f0ebfa;border:1px solid #e5dcef;border-radius:18px;display:flex;flex-direction:column}.profile-text-balance small{font-size:11px;color:var(--muted)}.profile-text-balance b{font-size:28px;line-height:1.3;color:var(--accent);font-weight:650;margin:6px 0}.profile-text-balance span{font-size:10px;color:var(--muted)}
.access-switch{display:flex;padding:5px;background:#eeebf6;border-radius:16px;margin:0 0 23px;gap:5px}.access-switch>*{flex:1;font-size:13px;border:0!important;background:transparent!important}.access-switch>.primary{background:#fff!important;color:var(--accent)!important;box-shadow:0 2px 5px #37245009!important;opacity:1}.tier-tabs{display:flex;gap:8px;overflow:auto;padding-bottom:3px;margin-bottom:16px}.tier-tab{flex:1;min-width:70px;font-size:12px;padding:11px 13px}.terms{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin-bottom:18px}.term{position:relative;padding:16px;min-height:118px;text-align:left}.term.selected{background:#f3edff!important;border-color:#bda6ec!important;box-shadow:0 0 0 1px #bda6ec!important}.term-price{color:var(--text);font-size:23px;font-weight:700;margin:6px 0}.term-label{font-size:12px;color:var(--muted)}.term-sub,.term-old{font-size:10px;color:var(--muted)}.term-discount{background:#e6dbfb;color:var(--accent);box-shadow:none;font-size:10px}.text-plan-benefits{padding:23px;margin:16px 0}.text-plan-title{display:flex;align-items:center;gap:12px}.text-plan-mark{display:grid;place-items:center;background:#eee7ff;color:var(--accent);border-radius:16px;width:45px;height:45px}.text-plan-mark svg{width:23px;height:23px}.text-plan-title h2{font-size:23px;margin:0}.text-plan-title p{font-size:11px;color:var(--muted);margin:2px 0}.text-plan-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:20px 0;border-bottom:1px solid var(--line)}.text-plan-stats>div{display:flex;flex-direction:column}.text-plan-stats b{font-size:21px;font-weight:650}.text-plan-stats span{font-size:10px;color:var(--muted);margin-top:3px}.text-checks{list-style:none;padding:16px 0 0;margin:0;font-size:12px;line-height:2.2;color:var(--muted)}.text-checks li:before{content:'✓';color:var(--accent);margin-right:9px}.pack-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.pack-card{padding:23px}.pack-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.pack-kicker{font-size:12px;font-weight:650;color:var(--muted)}.pack-saving{background:#eee5ff;color:var(--accent);font-size:11px;padding:4px 7px;border-radius:8px}.pack-volume{font-size:39px;font-weight:700;line-height:1.2;margin:24px 0 16px}.pack-volume small{display:block;font-size:11px;font-weight:400;color:var(--muted);margin-top:5px}.pack-price{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap}.pack-price b{font-size:24px;color:var(--accent)}.pack-price small{font-size:10px;color:var(--muted)}.pack-desc{font-size:11px;color:var(--muted);line-height:1.6;min-height:54px;margin:16px 0}.active-banner{background:#eef7f2;border-color:#d9eadf;color:var(--text);border-radius:17px}.active-banner small{color:var(--muted)}.compare{font-size:12px}.compare-cell.plan{color:var(--accent)}.billing-note,.buy-note{color:var(--muted);font-size:11px;line-height:1.6}.buy-bar{background:none;border:0;padding:0;gap:10px}.buy-bar .primary{box-shadow:none}.pd-card,.pd-limit{background:#fff;color:var(--text)}.pd-limit-icon{color:var(--accent);background:#f1eaff}.sheet{background:#fbfaff!important;border:1px solid var(--line);color:var(--text);box-shadow:0 -15px 60px #22113518}.sheet-title{color:var(--text)}.sheet-grip{background:#ded6ec}.sheet-backdrop{background:#14253666}.toast{background:#342448;color:#fff;border:0;box-shadow:0 8px 25px #38234824}
.models-hero-banner{background:#f0eafb!important;border:1px solid #e0d5f4!important;border-radius:19px!important;box-shadow:none!important;padding:17px}.models-hero-name{color:var(--text);font-size:18px}.models-hero-sub,.models-hero-status-bar{color:var(--muted)}.models-hero-eyebrow{color:var(--accent);font-size:9px}.models-hero-status-bar{background:#ffffff80}.models-hero-action{font-size:11px;min-width:80px}.model-compact-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.model-compact-row{background:#fff!important;border-color:var(--line)!important;border-radius:17px;box-shadow:none!important;padding:17px}.model-compact-row.selected{background:#f4efff!important;border-color:#c2adeb!important}.model-compact-title{font-size:14px;color:var(--text);line-height:1.45}.model-compact-sub{color:var(--muted);font-size:10px}.model-card-btn.pick{background:#eee7ff;color:var(--accent);box-shadow:none}.model-card-info{background:#f7f4fc;color:var(--muted);border-color:var(--line)}.brand-icon{background:#f1ecf9!important;box-shadow:none!important;border:0!important}.model-chip{font-size:11px}.model-search-box{background:#fff;border-color:var(--line)}.model-search-box input{background:none!important;border:0!important}.model-tag{font-size:9px;line-height:1.4}.models-hero-icon .brand-icon{background:#e6ddf7!important}
.admin-head{padding:13px 0 20px}.admin-head h1{font-size:31px}.admin-head p{font-size:12px;color:var(--muted)}.admin-category-btn,.admin-subtab,.admin-tab{background:#fff!important;color:var(--muted)!important;border:1px solid var(--line)!important;box-shadow:none!important;border-radius:12px!important}.admin-category-btn.active,.admin-subtab.active,.admin-tab.active{background:#eee6fc!important;color:var(--accent)!important;border-color:#d4c2f2!important}.admin-category-btn{font-size:11px;padding:11px 12px}.admin-subtab{font-size:11px}.admin-subtabs{padding-bottom:16px}.admin-stats,.stat-grid,.overview-grid{gap:12px}.admin-stat,.stat-card{background:#fff!important;color:var(--text)!important;border-color:var(--line)!important;box-shadow:none!important}.provider-row{padding:20px}.provider-row.off{opacity:.6}.provider-actions{gap:7px}.provider-actions .secondary{font-size:10px;min-height:33px;padding:7px 9px}.provider-info{min-width:0}.provider-info b{font-size:14px}.provider-info small{font-size:10px;overflow-wrap:anywhere;color:var(--muted)}.provider-rank{background:#f1eaff;color:var(--accent);box-shadow:none}.model-access-row{display:flex;justify-content:space-between;gap:20px;align-items:center}.model-access-name{min-width:0;flex:1}.model-access-name b{display:block;font-size:14px}.model-access-name small{display:block;font-size:10px;overflow-wrap:anywhere;color:var(--muted)}.model-access-actions{display:flex;gap:7px;flex-shrink:0}.model-access-actions button{font-size:10px}.field>label,.catalog-head label{color:var(--muted)}.editor-section,.estimate-box,.price-preview,.cost-notice{background:#f7f4fc!important;border-color:var(--line)!important;color:var(--text)}.price-preview b{color:var(--accent)}.plan-model-option{accent-color:var(--accent)}.plan-model-settings{background:#fff;border-color:var(--line);border-radius:13px}.tier-group,.tier-head,.plan-row{background:#fff!important;color:var(--text)!important;border-color:var(--line)!important}.prompt-module summary span{color:var(--muted)}.count,.mini-badge,.tier-badge{background:#eee5ff;color:var(--accent);box-shadow:none}.loading-title{color:var(--text)}.loading-caption,.guest-kicker{color:var(--muted)}.loading-core,.loading-orbit{filter:none}.loading-core{background:#efe8fc}.guest-card,.guest-plan{background:#fff!important;border-color:var(--line)!important;color:var(--text)}.faq-item{background:#fff;border-color:var(--line);border-radius:16px}.faq-item p{color:var(--muted)}
@media(max-width:680px){.app{padding:0 17px 108px}.topbar{min-height:76px;padding:17px 0}.text-tools-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.text-tool-card{padding:18px;min-height:189px;gap:11px}.text-tool-card strong{font-size:14px}.text-tool-card>span:last-of-type{font-size:11px}.text-tool-card>i{right:12px;top:22px}.text-tool-icon{width:36px;height:36px}.pack-grid{grid-template-columns:1fr}.pack-card{padding:22px}.pack-volume{font-size:36px;margin:20px 0 10px}.pack-desc{min-height:0}.pack-price{margin:10px 0}.pack-card .wide{margin-top:15px}.model-compact-list{grid-template-columns:1fr}.model-access-row{align-items:flex-start;flex-direction:column;gap:12px}.model-access-actions{width:100%;flex-wrap:wrap}.model-access-actions button{flex:1}.text-plan-stats b{font-size:18px}.text-plan-stats span{font-size:9px}.text-plan-benefits{padding:20px}.chat-welcome{padding:32px 0 20px}.chat-nevi-orbit{width:83px;height:83px;border-radius:28px}.chat-nevi-orbit img{width:62px;height:62px}.chat-welcome h2{font-size:28px}.chat-welcome>p{font-size:12px}.chat-welcome .eyebrow{font-size:8px}.chat-suggestions{gap:7px;margin-top:24px}.chat-suggestions button{font-size:10px;min-height:90px;padding:12px 10px;border-radius:15px}.chat-page{min-height:calc(100dvh - 193px)}.chat-quota-note{font-size:8px}.chat-send{font-size:10px;padding:8px 9px!important}.chat-composer-card{padding:12px}.text-membership .secondary{padding:8px 10px;font-size:10px}.text-profile{padding:20px}.row-value{max-width:105px;font-size:10px}.row{padding:16px 14px!important}.row-title{font-size:13px}.row-sub{font-size:11px}.terms{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}.field-row{flex-wrap:wrap}.admin-category-btn{font-size:10px;padding:10px 9px}.admin-category-btn svg{width:14px}.text-plan-stats{gap:6px}}
@media(max-width:360px){.app{padding-left:13px;padding-right:13px}.chat-welcome h2{font-size:25px}.chat-suggestions button{padding:11px 8px;font-size:9px}.chat-quota-note{display:none}.text-tools-grid{grid-template-columns:1fr}.text-tool-card{min-height:145px}.chat-model-select{font-size:10px;padding:9px}.profile-text-balance>div{padding:15px}.text-plan-stats b{font-size:16px}.text-membership{align-items:flex-start}.row-value{max-width:90px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* Reviewed on the real templates: readable selected navigation and admin totals. */
:root{--lilac:#7955d9}
.bottom-nav .nav-item.selected small{color:var(--accent)!important}
.bottom-nav .nav-item.selected .nav-icon svg{stroke:var(--accent)!important}
.stat-grid .stat{background:#fff!important;border:1px solid var(--line)!important;box-shadow:none!important;color:var(--text)!important}
.stat-grid .stat b{color:var(--text)!important}.stat-grid .stat span{color:var(--muted)!important}
.stat-grid .stat.alert{background:#fff4f5!important;border-color:#eed1d8!important}

.chat-nevi-orbit img{border-radius:50%;object-fit:cover}
.chat-suggestions button{font-size:12px!important;line-height:1.45}
.tier-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;overflow:visible!important}
.tier-tab{min-width:0!important;white-space:normal!important}


.skill-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.skill-card{min-width:0}.skill-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.skill-card h2{font-size:17px;margin:14px 0 8px}.skill-card p{font-size:14px;line-height:1.5;color:var(--muted)}.skill-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:14px}.skill-footer a{display:flex;align-items:center;gap:4px;font-size:12px;color:var(--muted)}.skill-footer svg{width:14px;height:14px}.sec-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.sec-fields input{width:100%;min-width:0}.core-skills-heading{display:flex;align-items:center;gap:12px}.core-skills-heading h2{margin:0;font-size:18px}.core-skills-heading p{margin:3px 0;color:var(--muted);font-size:14px}.core-status{margin-left:auto;color:var(--accent);font-size:12px;display:flex;gap:4px;align-items:center}.core-status svg{width:16px;height:16px}.core-skill-list{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.core-skill-list>span{display:flex;align-items:center;gap:6px;padding:8px;border:1px solid var(--line);border-radius:8px;font-size:12px}.core-skill-list svg{width:14px;height:14px}.model-family-heading{display:flex;align-items:center;gap:10px;padding:20px 0 10px}.model-family-heading h2{font-size:16px;margin:0}.model-family-heading .brand-icon{width:28px;height:28px}.brand-icon img{width:23px;height:23px;object-fit:contain}.model-chip{display:inline-flex;align-items:center;gap:6px}.model-chip>svg{width:15px;height:15px}.model-chip .brand-icon{width:18px;height:18px;padding:0;background:transparent;box-shadow:none;border:0}.model-chip .brand-icon img{width:17px;height:17px}.model-auto-button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:44px;border:1px solid var(--line);border-radius:12px;color:var(--text);font-size:14px;font-weight:600;margin:12px 0}.model-auto-button svg{width:18px;height:18px}.model-auto-note,.model-automatic-help{font-size:13px;line-height:1.5;color:var(--muted);margin-top:12px}.model-automatic-help summary{cursor:pointer;min-height:40px;display:flex;align-items:center}.model-automatic-help summary::after{content:'+';margin-left:auto;font-size:18px}.model-automatic-help[open] summary::after{content:'−'}.model-automatic-help p{margin:4px 0}.premium-badge{display:inline-flex;align-items:center;gap:5px;border-radius:6px;padding:4px 7px;font-size:11px;font-weight:600;background:var(--accent-soft);color:var(--accent)}.premium-badge svg{width:13px;height:13px}.cabinet-open-bot{display:flex;align-items:center;justify-content:center;gap:9px;margin:16px 0 24px;min-height:48px}.cabinet-open-bot svg{width:19px;height:19px}
/* Code copying is a private utility; Rich answers remain in Telegram. */
.copy-card {margin:14px 0;padding:16px;border:1px solid var(--line);border-radius:18px;background:var(--surface);overflow:hidden;min-width:0}
.copy-card-head {display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.copy-card-head>span {display:flex;align-items:center;gap:7px;font-size:13px;font-weight:650;min-width:0;overflow-wrap:anywhere}
.copy-card-head .secondary {display:flex;align-items:center;gap:5px;flex-shrink:0;padding:9px 11px;font-size:12px;min-height:40px}
.copy-card-head .svg-icon {width:17px;height:17px}
.copy-source {display:block;width:100%;max-width:100%;box-sizing:border-box;resize:vertical;white-space:pre;overflow:auto;text-align:left;direction:ltr;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:13px;line-height:1.6;tab-size:4;border:1px solid var(--line);background:var(--bg);color:var(--text);border-radius:12px;padding:12px;min-height:100px;max-height:440px;user-select:text;-webkit-user-select:text}
.copy-card summary {cursor:pointer;font-weight:650;padding:3px 0}.copy-card>button {margin:12px 0}.copy-hint {margin:8px 2px 18px}
@media(max-width:350px){.copy-card{padding:12px}.copy-card-head{gap:5px}.copy-card-head .secondary{font-size:11px;padding:8px}}

.connection-card {margin:14px 0;padding:20px;border-radius:20px;border:1px solid var(--line);background:var(--surface)}
.connection-head {display:flex;align-items:center;gap:13px;margin-bottom:14px}.connection-head h2{font-size:19px;margin:0 0 4px}.connection-head p{font-size:12px;color:var(--muted);margin:0}.connection-brand{width:46px;height:46px;display:grid;place-items:center;border-radius:14px;color:var(--accent);background:color-mix(in srgb,var(--accent) 10%,transparent);flex-shrink:0}.connection-brand svg{width:24px;height:24px}.connection-card>p{font-size:14px;line-height:1.6}.connection-card .text-link{margin-top:12px}.wallet-balance{font-size:30px;font-weight:700;margin:18px 0 8px;overflow-wrap:anywhere}.wallet-balance small{font-size:14px;margin-left:8px;color:var(--muted)}.connections-note{padding:0 6px;line-height:1.6}.intro-header{margin:4px 0 25px}.intro-header>span{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;color:var(--accent);background:color-mix(in srgb,var(--accent) 12%,transparent);margin-bottom:16px}.intro-header h2{font-size:24px;margin-bottom:8px}.intro-header p{color:var(--muted)}.intro-step{display:flex;gap:14px;margin:20px 0}.intro-step>span{width:28px;height:28px;display:grid;place-items:center;border-radius:9px;color:var(--accent);background:color-mix(in srgb,var(--accent) 12%,transparent);flex-shrink:0;font-size:13px;font-weight:700}.intro-step p{color:var(--muted);font-size:13px;line-height:1.6;margin:6px 0 0}.intro-step b{font-size:15px}.intro-header~.primary{margin-top:16px}.sheet-body>.text-link.wide{margin-top:14px}

.sheet-grip,:root[data-theme="dark"] .sheet-grip{background:transparent!important}.sheet-grip::after{background:color-mix(in srgb,var(--text) 23%,transparent)}

.wallet-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:14px 0}.wallet-actions .secondary{font-size:12px;padding:11px 7px}.source-preview{margin:18px 0}.source-preview summary{font-size:14px;margin-bottom:10px;cursor:pointer}.source-example{padding:15px;border-radius:15px;background:var(--surface-2);margin:16px 0}.source-example p{font-size:13px;line-height:1.6}

.intro-task-chips{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.intro-task-chips .secondary{font-size:12px;padding:10px 12px;min-height:40px}

/* Hallmark · shape: app screen · genre: modern-minimal · theme: brand · redesign: full · surface: absolute-white · v2.0.0 */
/* Hallmark · waive 7b · user requests the existing light and dark Telegram palette · white button ink stays for contrast */
/* Hallmark · critique: one grouped account, one service list, one clear glass dock; existing palette and actions. */
:root{
 --bg:#f1f1f1;--surface:#ffffff;--surface-solid:#ffffff;--surface-2:#f4f4f5;--surface-3:#eef0f3;
 --text:#222222;--muted:#626e79;--faint:#626e79;--line:#e4e8ed;--line-strong:#cbd3dd;
 --accent:#7254c7;--accent-2:#7254c7;--accent-soft:#eee9fa;--lilac:#7254c7;
 --native-button:#247ab9;--native-button-text:#ffffff;--native-link:#247ab9;
 --glass:rgba(255,255,255,.12);--glass-line:rgba(255,255,255,.72);--glass-button:rgba(255,255,255,.44);
 --glass-selected:rgba(231,223,249,.70);--glass-text:#586477;--glass-shadow:rgba(22,37,54,.10);
 --backdrop:rgba(16,24,35,.40);--focus:#7254c7;--success:#286c51;--error:#a02c48;--success-bg:#edf7f2;
 --font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
 --radius-group:16px;--radius-control:12px;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:20px;--space-6:24px;--space-7:28px;--space-8:32px;--space-28:112px;--dur-micro:140ms;--dur-short:180ms;
 font-family:var(--font);color-scheme:light;
}
:root[data-theme="dark"]{
 --bg:#17212b;--surface:#232e3c;--surface-solid:#232e3c;--surface-2:#293745;--surface-3:#314151;
 --text:#f4f5f6;--muted:#abb9c9;--faint:#abb9c9;--line:#354354;--line-strong:#4e6075;
 --accent:#bca6ff;--accent-2:#bca6ff;--accent-soft:#34334e;--lilac:#bca6ff;
 --native-button:#3676b3;--native-button-text:#ffffff;--native-link:#84bded;
 --glass:rgba(23,33,43,.12);--glass-line:rgba(222,235,249,.20);--glass-button:rgba(35,46,60,.42);
 --glass-selected:rgba(83,68,120,.68);--glass-text:#c1ccd7;--glass-shadow:rgba(0,0,0,.16);
 --backdrop:rgba(6,12,20,.58);--focus:#bca6ff;--success:#91d2b0;--error:#ffabb8;--success-bg:#253c36;color-scheme:dark;
}
html,body.nevi-cabinet{overflow-x:clip;scrollbar-color:var(--line-strong) var(--bg)}
:root body.nevi-cabinet{background:var(--bg)!important;color:var(--text)!important;font-family:var(--font);font-size:15px;line-height:1.5;background-attachment:scroll}
.nevi-cabinet ::selection{background:var(--accent-soft);color:var(--text)}
.nevi-cabinet :is(input,textarea){caret-color:var(--accent)}
:root body.nevi-cabinet :is(h1,h2,h3){color:var(--text);min-width:0;overflow-wrap:break-word;text-wrap:balance;letter-spacing:-.02em}
:root body.nevi-cabinet :is(button,a,input,select,textarea):focus-visible{outline:2px solid var(--focus);outline-offset:3px;transition:none}
:root body.nevi-cabinet .app{max-width:680px;padding:0 var(--space-4) calc(var(--space-28) + env(safe-area-inset-bottom));margin:auto}
:root body.nevi-cabinet .topbar{height:72px;min-height:72px;padding:var(--space-3) 0;margin:0 0 var(--space-2);gap:var(--space-3)}
.nevi-cabinet .brand{gap:var(--space-2)}.nevi-cabinet .brand-mark{width:36px;height:36px;flex-basis:36px;box-shadow:none}
:root body.nevi-cabinet .brand-title{font-size:20px;font-weight:650;letter-spacing:-.4px;color:var(--text);line-height:1.2}
:root body.nevi-cabinet .brand-title span{color:var(--accent);background:none;-webkit-text-fill-color:var(--accent);text-shadow:none}
.nevi-cabinet .brand-subtitle{font-size:12px;color:var(--muted);margin-top:var(--space-1)}
:root body.nevi-cabinet .avatar{width:36px;height:36px;border:1px solid var(--line);border-radius:12px;background:var(--surface)!important;box-shadow:none;color:var(--accent)}
:root body.nevi-cabinet :is(.page-title,.compact-title){padding:var(--space-2) 0 0!important;margin:0 0 var(--space-5)!important}
:root body.nevi-cabinet :is(.page-title h1,.compact-title h1,.sub-head h1){font-size:28px!important;font-weight:650!important;line-height:1.2;letter-spacing:-.6px}
:root body.nevi-cabinet :is(.page-title p,.sub-head p){font-size:14px;color:var(--muted);line-height:1.5;margin-top:var(--space-2)}
:root body.nevi-cabinet .section-head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);margin:var(--space-6) var(--space-1) var(--space-2)}
:root body.nevi-cabinet .section-head h2{font-size:14px;font-weight:600;color:var(--muted)!important;letter-spacing:0;margin:0}
:root body.nevi-cabinet :is(.card,.row-list,.connection-card,.skill-card,.text-plan-benefits,.term,.pack-card,.model-compact-row,.account-overview){background:var(--surface)!important;border:0!important;border-radius:var(--radius-group);box-shadow:none!important;color:var(--text)}
:root body.nevi-cabinet .row-list{padding:0 var(--space-4);overflow:clip;backdrop-filter:none}
:root body.nevi-cabinet .row{min-height:66px;padding:var(--space-4) 0!important;gap:var(--space-3);border-bottom:1px solid var(--line);background:transparent;text-align:left;transition:background-color var(--dur-micro)}
:root body.nevi-cabinet .row:last-child{border-bottom:0}
:root body.nevi-cabinet .row:hover{background:var(--surface-2)}
:root body.nevi-cabinet .row-icon{width:28px;height:32px;flex:0 0 28px;border:0;border-radius:0;background:transparent!important;color:var(--accent)!important;box-shadow:none}
.nevi-cabinet .row-icon svg{width:20px;height:20px}
:root body.nevi-cabinet .row-title{font-size:15px;font-weight:500;line-height:1.4}
:root body.nevi-cabinet .row-sub{font-size:13px;line-height:1.45;color:var(--muted)!important;margin-top:var(--space-1)}
:root body.nevi-cabinet .row-value{font-size:12px;max-width:32%;overflow-wrap:anywhere;color:var(--muted)}
.nevi-cabinet .row-chevron{width:14px;flex:0 0 14px;color:var(--muted)}
:root body.nevi-cabinet :is(.primary,button.primary,a.primary){min-height:46px;border:0!important;border-radius:var(--radius-control);background:var(--native-button)!important;color:var(--native-button-text)!important;box-shadow:none!important;font-size:15px;font-weight:600;padding:var(--space-3) var(--space-4);line-height:1.4}
:root body.nevi-cabinet .secondary{min-height:44px;border:1px solid var(--line)!important;border-radius:var(--radius-control);background:var(--surface-2)!important;color:var(--text)!important;box-shadow:none;font-size:14px;padding:var(--space-2) var(--space-4);line-height:1.4}
:root body.nevi-cabinet .text-link{color:var(--native-link);min-height:44px;font-size:14px;font-weight:500;line-height:1.4;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2)}
:root body.nevi-cabinet :is(button,a):active{transform:translateY(1px)}
:root body.nevi-cabinet button:disabled{transform:none;cursor:not-allowed;background-color:var(--surface-2);color:var(--muted);border-color:var(--line)}
:root body.nevi-cabinet :is(input,select,textarea,.model-search-box){background:var(--surface)!important;color:var(--text)!important;border:1px solid var(--line-strong)!important;border-radius:var(--radius-control);font-size:16px;min-height:46px;box-shadow:none}
:root body.nevi-cabinet .model-search-box input{border:0!important;background:transparent!important}
:root body.nevi-cabinet :is(input,textarea)::placeholder{color:var(--muted)!important;opacity:1}
:root body.nevi-cabinet :is(.field label,.field>span){font-size:14px;color:var(--text);font-weight:500}
:root body.nevi-cabinet :is(.small,.billing-note,.pack-note,.buy-note){font-size:13px;line-height:1.6;color:var(--muted)}
:root body.nevi-cabinet .telegram-account{display:flex;align-items:center;gap:var(--space-4);padding:0 var(--space-1) var(--space-5);min-height:0}
:root body.nevi-cabinet .text-avatar{width:54px;height:54px;flex:0 0 54px;border-radius:17px;background:var(--accent-soft)!important;color:var(--accent);box-shadow:none;font-size:22px;font-weight:600}
.nevi-cabinet .telegram-account h2{font-size:19px;font-weight:600;margin:0;line-height:1.3}
.nevi-cabinet .telegram-account p{margin:var(--space-1) 0 var(--space-2);font-size:13px;color:var(--muted)}
.nevi-cabinet .premium-badge{background:var(--accent-soft);color:var(--accent);border:0;border-radius:6px;letter-spacing:0;padding:var(--space-1) var(--space-2)}
.nevi-cabinet .account-overview{overflow:hidden;margin-bottom:var(--space-4)}
.nevi-cabinet .account-plan{background:var(--accent-soft);display:flex;justify-content:space-between;gap:var(--space-3);width:100%;padding:var(--space-4) var(--space-4);text-align:left;border-bottom:1px solid var(--line)}
.nevi-cabinet .account-plan>span:first-child{display:grid;gap:var(--space-1);min-width:0}.nevi-cabinet .account-plan b{display:flex;align-items:center;gap:8px;font-size:17px;font-weight:600;color:var(--accent)}.nevi-cabinet .account-plan b svg{width:20px;height:20px}
.nevi-cabinet .account-plan small{font-size:12px;color:var(--text)}.nevi-cabinet .account-plan-action{display:flex;align-items:center;gap:var(--space-1);font-size:13px;color:var(--native-link);white-space:nowrap}.nevi-cabinet .account-plan-action svg{width:16px;height:16px}
.nevi-cabinet .account-counters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:var(--space-4) 0}
.nevi-cabinet .account-counters button{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-1);padding:0 var(--space-4);text-align:left;min-width:0}
.nevi-cabinet .account-counters button+button{border-left:1px solid var(--line)}
.nevi-cabinet .account-counters b{font-size:30px;line-height:1.2;font-weight:600;font-variant-numeric:tabular-nums}
.nevi-cabinet .account-counters span{font-size:13px;margin-top:var(--space-1)}.nevi-cabinet .account-counters small{font-size:11px;color:var(--muted)}
.nevi-cabinet .connection-card{padding:var(--space-5);margin:var(--space-4) 0}.nevi-cabinet .connection-head{gap:var(--space-3);margin-bottom:var(--space-3)}.nevi-cabinet .connection-head h2{font-size:19px;font-weight:600;margin:0}.nevi-cabinet .connection-head p{font-size:13px;margin-top:var(--space-1);color:var(--muted)}
.nevi-cabinet .connection-brand{width:40px;height:40px;border-radius:12px;background:var(--surface-2);color:var(--text)}.nevi-cabinet .connection-brand svg{width:23px;height:23px}
.nevi-cabinet .connection-card>p{font-size:14px;color:var(--muted);line-height:1.6;margin:var(--space-3) 0 var(--space-4)}
.nevi-cabinet .connection-actions{display:grid;gap:var(--space-1)}.nevi-cabinet .connection-actions .text-link{margin:0}
.nevi-cabinet .connections-note{margin:var(--space-5) var(--space-1)}.nevi-cabinet .wallet-actions{gap:var(--space-2)}.nevi-cabinet .wallet-actions .secondary{font-size:13px}
.nevi-cabinet .library-note{font-size:14px;line-height:1.6;color:var(--muted);margin:calc(-1 * var(--space-1)) var(--space-1) var(--space-6);max-width:48ch}
.nevi-cabinet .library-empty{padding:var(--space-6) 0;font-size:14px;color:var(--muted);line-height:1.6}
.nevi-cabinet .skill-card{padding:var(--space-4)}.nevi-cabinet .skill-card h2{font-size:16px}.nevi-cabinet .skill-card p{font-size:13px}
:root body.nevi-cabinet .access-switch{background:var(--surface-2);padding:var(--space-1);border-radius:12px;border:0;gap:var(--space-1);display:flex;box-shadow:none}
:root body.nevi-cabinet .access-switch>button{flex:1;min-height:40px;padding:var(--space-2) var(--space-2);border:0!important;background:transparent!important;color:var(--muted)!important;font-size:14px;border-radius:9px}
:root body.nevi-cabinet .access-switch>.primary{background:var(--surface)!important;color:var(--text)!important;opacity:1}
:root body.nevi-cabinet .tier-tabs{display:flex!important;overflow:auto!important;gap:var(--space-2);margin:var(--space-4) 0;padding:var(--space-1) 0 var(--space-1);scrollbar-width:none;grid-template-columns:none}
:root body.nevi-cabinet .tier-tab{flex:0 0 auto;min-width:64px;min-height:42px;border:1px solid var(--line)!important;background:var(--surface)!important;color:var(--muted)!important;border-radius:10px;padding:var(--space-2) var(--space-4);font-size:14px;font-weight:500;box-shadow:none}
:root body.nevi-cabinet .tier-tab.active{background:var(--accent-soft)!important;color:var(--accent)!important;border-color:var(--accent)!important}
:root body.nevi-cabinet .text-plan-benefits{padding:var(--space-5);margin:var(--space-4) 0}.nevi-cabinet .text-plan-title{gap:var(--space-3)}.nevi-cabinet .text-plan-title h2{font-size:23px;font-weight:650}.nevi-cabinet .text-plan-title p{font-size:13px;color:var(--muted);margin-top:var(--space-1)}
.nevi-cabinet .text-plan-mark{background:var(--accent-soft);color:var(--accent);width:42px;height:42px;border-radius:12px}
.nevi-cabinet .text-plan-stats{padding:var(--space-5) 0;border-color:var(--line);gap:var(--space-2)}.nevi-cabinet .text-plan-stats b{font-size:20px;font-weight:600;line-height:1.3}.nevi-cabinet .text-plan-stats span{font-size:12px;color:var(--muted);margin-top:var(--space-1);line-height:1.4}
.nevi-cabinet .text-checks{font-size:14px;line-height:1.6;display:grid;gap:var(--space-2);padding-top:var(--space-4);color:var(--text)}.nevi-cabinet .text-checks li:before{color:var(--accent)}
:root body.nevi-cabinet .terms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-2)}
:root body.nevi-cabinet .term{min-height:118px;padding:var(--space-4);border:1px solid var(--line)!important;border-radius:12px;box-shadow:none}
:root body.nevi-cabinet .term.selected{border-color:var(--accent)!important;background:var(--accent-soft)!important;box-shadow:none!important}
.nevi-cabinet .term-price{font-size:23px;color:var(--text);margin:var(--space-2) 0}.nevi-cabinet .term-label{font-size:14px;color:var(--text)}.nevi-cabinet .term-sub{font-size:12px;color:var(--muted)}.nevi-cabinet .term-discount{font-size:11px;background:var(--accent-soft);color:var(--accent);box-shadow:none}
.nevi-cabinet .pack-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--space-3)}
.nevi-cabinet .pack-card{padding:var(--space-5);display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--space-3) var(--space-2)}
.nevi-cabinet .pack-top{grid-column:1/-1}.nevi-cabinet .pack-kicker{font-size:14px;color:var(--muted);font-weight:500}.nevi-cabinet .pack-saving{color:var(--accent);background:var(--accent-soft);font-size:12px}
.nevi-cabinet .pack-volume{font-size:26px;margin:0;line-height:1.3;font-weight:600}.nevi-cabinet .pack-volume small{font-size:12px;color:var(--muted);margin-top:var(--space-1)}
.nevi-cabinet .pack-price{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;margin:0;gap:var(--space-1)}.nevi-cabinet .pack-price b{font-size:23px;color:var(--text)}.nevi-cabinet .pack-price small{font-size:11px;color:var(--muted)}
.nevi-cabinet .pack-desc{grid-column:1/-1;min-height:0;margin:0;font-size:13px;color:var(--muted)}.nevi-cabinet .pack-card>.primary{grid-column:1/-1;margin-top:var(--space-1)}
:root body.nevi-cabinet .sheet{background:var(--bg)!important;color:var(--text);border:0!important;box-shadow:none!important;border-radius:22px 22px 0 0}
.nevi-cabinet .sheet-backdrop{background:var(--backdrop)}.nevi-cabinet .sheet-grip{background:transparent!important}.nevi-cabinet .sheet-grip::after{background:var(--line-strong)}
.nevi-cabinet .sheet-title{font-size:24px;color:var(--text)}.nevi-cabinet .sheet-sub{font-size:14px;color:var(--muted)}
:root body.nevi-cabinet :is(.models-hero-banner,.stat,.editor-section,.estimate-box,.price-preview,.cost-notice,.plan-row,.tier-group,.tier-head,.pd-card,.pd-limit,.faq-item,.pay-category-card,.pay-method,.gift-recipient-note){background:var(--surface)!important;color:var(--text)!important;border-color:var(--line)!important;box-shadow:none!important}
:root body.nevi-cabinet .brand-icon{background:var(--surface-2)!important;border:0!important;box-shadow:none!important}
:root[data-theme="dark"] body.nevi-cabinet .brand-monochrome{filter:invert(1)}
:root body.nevi-cabinet .model-chip{min-height:40px;padding:var(--space-2) var(--space-3);border-radius:10px;font-size:13px;background:var(--surface);color:var(--muted);border-color:var(--line)}
:root body.nevi-cabinet .model-chip.active{background:var(--accent-soft)!important;color:var(--accent)!important;border-color:var(--accent)!important}
:root body.nevi-cabinet .model-compact-row{padding:var(--space-4)}.nevi-cabinet .model-compact-title{font-size:16px;line-height:1.4;color:var(--text)}.nevi-cabinet .model-compact-sub{font-size:13px;color:var(--muted)}
:root body.nevi-cabinet .model-compact-row.selected{outline:1px solid var(--accent);background:var(--accent-soft)!important}
:root body.nevi-cabinet .model-card-btn.pick{background:var(--accent-soft)!important;color:var(--accent);box-shadow:none}.nevi-cabinet .model-card-info{background:var(--surface-2);color:var(--muted);border-color:var(--line)}
:root body.nevi-cabinet .admin-head h1{font-size:28px;font-weight:650}.nevi-cabinet .admin-head p{font-size:14px;color:var(--muted)}
:root body.nevi-cabinet .admin-nav-hub{background:var(--bg);border:0;margin-bottom:var(--space-4)}.nevi-cabinet .admin-categories-bar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-2)}
:root body.nevi-cabinet :is(.admin-category-btn,.admin-subtab,.admin-tab){background:var(--surface)!important;color:var(--muted)!important;border:1px solid var(--line)!important;border-radius:10px!important;box-shadow:none!important;font-size:13px;font-weight:500;min-height:42px;padding:var(--space-2) var(--space-3)}
:root body.nevi-cabinet :is(.admin-category-btn.active,.admin-subtab.active,.admin-tab.active){background:var(--accent-soft)!important;color:var(--accent)!important;border-color:var(--accent)!important}
.nevi-cabinet .admin-subtabs-bar{display:flex;gap:var(--space-2);padding:var(--space-3) 0 var(--space-2);flex-wrap:wrap}.nevi-cabinet .admin-subtab svg{width:16px;height:16px}
.nevi-cabinet .model-access-row{display:grid;gap:var(--space-3)}.nevi-cabinet .model-access-name b{font-size:15px}.nevi-cabinet .model-access-name small{font-size:12px}.nevi-cabinet .model-access-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:var(--space-2)}
.nevi-cabinet .model-access-actions button{font-size:13px;min-height:44px;padding:var(--space-2) var(--space-2)}
:root body.nevi-cabinet .bottom-nav{bottom:calc(10px + env(safe-area-inset-bottom));width:calc(100% - 24px);max-width:644px;padding:var(--space-2)!important;gap:var(--space-1)!important;border-radius:24px!important;background:var(--glass)!important;border:1px solid var(--glass-line)!important;box-shadow:none!important;backdrop-filter:blur(7px) saturate(125%)!important;-webkit-backdrop-filter:blur(7px) saturate(125%)!important}
:root body.nevi-cabinet .bottom-nav .nav-item{min-width:0;min-height:56px;border-radius:17px!important;background:var(--glass-button)!important;border:0!important;box-shadow:none!important;color:var(--glass-text)!important;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);padding:var(--space-2) var(--space-1);gap:var(--space-1)}
:root body.nevi-cabinet .bottom-nav .nav-item small{font-size:11px!important;line-height:1.2;font-weight:500!important;color:inherit!important;text-shadow:none;letter-spacing:0;white-space:normal}
:root body.nevi-cabinet .bottom-nav .nav-item.selected{background:var(--glass-selected)!important;color:var(--accent)!important}
:root body.nevi-cabinet .bottom-nav .nav-item.selected :is(svg,small){color:var(--accent)!important;stroke:currentColor!important}
.nevi-cabinet .bottom-nav .nav-icon svg{width:23px;height:23px;stroke-width:1.7}
:root body.nevi-cabinet .eyebrow{display:none}
:root body.nevi-cabinet :is(.view,.view.active){opacity:1;animation:none!important;filter:none!important}
@media(max-width:350px){:root body.nevi-cabinet .app{padding-left:var(--space-4);padding-right:var(--space-4)}.nevi-cabinet .row-list{padding:0 var(--space-3)}.nevi-cabinet .row{gap:var(--space-2)}.nevi-cabinet .row-title{font-size:14px}.nevi-cabinet .row-sub{font-size:12px}.nevi-cabinet .account-plan{padding:var(--space-4)}.nevi-cabinet .account-counters button{padding:0 var(--space-4)}.nevi-cabinet .account-counters span{font-size:12px}.nevi-cabinet .connection-card{padding:var(--space-4)}.nevi-cabinet .skill-grid{grid-template-columns:1fr}.nevi-cabinet .text-plan-stats b{font-size:18px}.nevi-cabinet .text-plan-stats span{font-size:11px}:root body.nevi-cabinet .bottom-nav.has-admin .nav-item small{font-size:10px!important}}
@media(prefers-reduced-motion:reduce){html:focus-within{scroll-behavior:auto}.nevi-cabinet *,.nevi-cabinet *::before,.nevi-cabinet *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(prefers-reduced-transparency:reduce){:root body.nevi-cabinet .bottom-nav,:root body.nevi-cabinet .bottom-nav .nav-item{background:var(--surface-solid)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}:root body.nevi-cabinet .bottom-nav .nav-item.selected{background:var(--accent-soft)!important}}

:root body.nevi-cabinet :is(.primary,.secondary,.text-link){min-width:0;max-width:100%;white-space:normal;overflow-wrap:break-word}
.nevi-cabinet .connection-actions{grid-template-columns:minmax(0,1fr)}
.nevi-cabinet .connection-actions .primary{width:100%}
.nevi-cabinet .wallet-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
.nevi-cabinet .wallet-actions button{min-width:0;white-space:normal;font-size:12px;padding:var(--space-2)}
:root body.nevi-cabinet .active-banner{background:var(--success-bg)!important;color:var(--text)!important;border:0;border-radius:var(--radius-group)}
.nevi-cabinet .active-banner small{color:var(--muted)}
:root body.nevi-cabinet .buy-bar{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--space-2);background:transparent;border:0;padding:0;position:static}
.nevi-cabinet .buy-bar button{width:100%}

:root body.nevi-cabinet .row{border-bottom-color:var(--line)!important}

/* Hallmark · shape: app screen · genre: modern-minimal · theme: brand · redesign: full · surface: absolute-white · v2.0.0 */
/* Hallmark · critique: task tabs, real family and access filters, one grouped list, twenty models per page. */
:root body.nevi-cabinet #view-models .model-picker-title{margin-top:var(--space-4)!important;margin-bottom:var(--space-5)!important}
.nevi-cabinet .model-picker-current{background:var(--surface);padding:var(--space-4);border-radius:var(--radius-group);margin-bottom:var(--space-5)}
.nevi-cabinet .model-picker-current-top{display:flex;align-items:center;gap:var(--space-3)}
.nevi-cabinet .model-picker-current-top>.brand-icon,.nevi-cabinet .model-picker-current-top>.svg-icon{width:34px;height:34px;flex:0 0 34px;border:0;background:transparent!important;padding:var(--space-1);color:var(--accent)}
.nevi-cabinet .model-picker-current-top>div{flex:1;min-width:0}.nevi-cabinet .model-picker-current-top b{font-size:16px;line-height:1.4;font-weight:600;overflow-wrap:anywhere;color:var(--text)}
.nevi-cabinet .model-picker-current-top p{font-size:13px;line-height:1.4;color:var(--muted);margin:var(--space-1) 0 0}
.nevi-cabinet .model-picker-current-top>.svg-icon:last-child{width:18px;height:18px;flex:0 0 18px;padding:0;color:var(--accent)}
.nevi-cabinet .model-picker-auto{display:flex;align-items:center;justify-content:flex-start;gap:var(--space-2);width:100%;min-height:44px;border:1px solid var(--line);border-radius:var(--radius-control);background:transparent;color:var(--text);font-size:13px;line-height:1.4;font-weight:500;padding:var(--space-3);margin-top:var(--space-4);text-align:left;white-space:normal}
.nevi-cabinet .model-picker-auto>.svg-icon{width:18px;height:18px;flex:0 0 18px;color:var(--native-link)}.nevi-cabinet .model-picker-auto.is-active{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}.nevi-cabinet .model-picker-auto.is-active>.svg-icon:last-child{margin-left:auto;color:var(--accent)}
.nevi-cabinet .model-picker-help{font-size:13px;color:var(--muted);margin-top:var(--space-2)}.nevi-cabinet .model-picker-help summary{min-height:36px;display:flex;align-items:center;justify-content:space-between;cursor:pointer}.nevi-cabinet .model-picker-help summary::after{content:'+';font-size:18px}.nevi-cabinet .model-picker-help[open] summary::after{content:'−'}.nevi-cabinet .model-picker-help p{margin:var(--space-1) 0 0;line-height:1.6}
.nevi-cabinet .model-picker-search{display:flex;align-items:center;gap:var(--space-2);border:1px solid var(--line-strong);border-radius:var(--radius-control);background:var(--surface);padding:0 var(--space-3)}
.nevi-cabinet .model-picker-search>.svg-icon{width:19px;height:19px;flex:0 0 19px;color:var(--muted)}
:root body.nevi-cabinet #view-models .model-picker-search input{flex:1;min-width:0;width:100%;padding:var(--space-3) 0!important;border:0!important;background:transparent!important;outline:0;box-shadow:none!important;min-height:46px;font-size:16px}
.nevi-cabinet .model-picker-search:focus-within{outline:2px solid var(--focus);outline-offset:2px}
.nevi-cabinet .model-picker-tasks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--space-1);padding:var(--space-1);background:var(--surface);border-radius:var(--radius-control);margin:var(--space-3) 0 var(--space-4)}
.nevi-cabinet .model-picker-tasks button{min-width:0;min-height:40px;padding:var(--space-2) var(--space-1);font-size:13px;line-height:1.3;white-space:normal;border-radius:8px;color:var(--muted);background:transparent;font-weight:500}
.nevi-cabinet .model-picker-tasks button.is-active{background:var(--accent-soft);color:var(--accent)}
.nevi-cabinet .model-picker-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-3)}
.nevi-cabinet .model-picker-filters label{min-width:0;display:grid;gap:var(--space-2)}.nevi-cabinet .model-picker-filters label>span{font-size:12px;color:var(--muted);font-weight:500}
:root body.nevi-cabinet .model-picker-filters select{width:100%;min-width:0;min-height:44px;padding:var(--space-2);font-size:13px;background:var(--surface)!important;color:var(--text)!important;border-color:var(--line)!important;text-overflow:ellipsis}
.nevi-cabinet .model-picker-count{display:flex;justify-content:space-between;gap:var(--space-3);margin:var(--space-5) var(--space-1) var(--space-3);font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.nevi-cabinet .model-picker-family{margin:0 0 var(--space-5)}
:root body.nevi-cabinet .model-picker-family h2{display:flex;align-items:center;gap:var(--space-2);font-size:14px;font-weight:600;margin:0 0 var(--space-3);padding:0 var(--space-1);color:var(--text)}
:root body.nevi-cabinet .model-picker-family .brand-icon{width:22px;height:22px;flex:0 0 22px;background:transparent!important;border:0;border-radius:0;padding:0;box-shadow:none}
.nevi-cabinet .model-picker-family .brand-icon img,.nevi-cabinet .model-picker-family .brand-icon svg{width:21px;height:21px}
.nevi-cabinet .model-picker-rows{background:var(--surface);padding:0 var(--space-4);border-radius:var(--radius-group)}
.nevi-cabinet .model-picker-row{display:flex;align-items:center;gap:var(--space-2);min-height:84px;padding:var(--space-3) 0;border-bottom:1px solid var(--line)}
.nevi-cabinet .model-picker-row:last-child{border-bottom:0}
.nevi-cabinet .model-picker-copy{min-width:0;flex:1}
.nevi-cabinet .model-picker-name{display:block;text-align:left;min-height:28px;max-width:100%;color:var(--text);font-weight:500;font-size:15px;line-height:1.4;overflow-wrap:anywhere;white-space:normal}
.nevi-cabinet .model-picker-copy p{display:flex;flex-wrap:wrap;column-gap:var(--space-3);row-gap:var(--space-1);margin:var(--space-1) 0 0;font-size:12px;line-height:1.4;color:var(--muted)}
.nevi-cabinet .model-picker-copy p>span{white-space:nowrap}
.nevi-cabinet .model-picker-actions{display:flex;align-items:center;gap:var(--space-1);flex:0 0 auto}
.nevi-cabinet .model-picker-select{font-size:12px;font-weight:600;color:var(--accent);background:var(--accent-soft);border:0;border-radius:8px;padding:var(--space-2);min-height:40px;min-width:62px}
.nevi-cabinet .model-picker-info{display:grid;place-items:center;min-width:28px;min-height:44px;background:transparent;color:var(--muted);padding:var(--space-1)}.nevi-cabinet .model-picker-info .svg-icon{width:18px;height:18px}
.nevi-cabinet .model-picker-selected{display:grid;place-items:center;min-width:40px;min-height:40px;background:var(--accent-soft);color:var(--accent);border-radius:50%;opacity:1!important;cursor:default!important}.nevi-cabinet .model-picker-selected .svg-icon{width:20px;height:20px}
.nevi-cabinet .model-picker-row.is-selected .model-picker-name{color:var(--accent);font-weight:600}
.nevi-cabinet .model-picker-row.is-locked .model-picker-select{background:var(--surface-2);color:var(--muted)}
.nevi-cabinet .model-picker-empty{padding:var(--space-6) var(--space-4);background:var(--surface);border-radius:var(--radius-group);text-align:center}.nevi-cabinet .model-picker-empty h2{font-size:18px}.nevi-cabinet .model-picker-empty p{font-size:14px;color:var(--muted)}
.nevi-cabinet .model-picker-pagination{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-3);margin-top:var(--space-4)}
@media(max-width:350px){.nevi-cabinet .model-picker-rows{padding:0 var(--space-3)}.nevi-cabinet .model-picker-name{font-size:14px}.nevi-cabinet .model-picker-copy p{font-size:11px}.nevi-cabinet .model-picker-select{font-size:11px;min-width:56px;padding:var(--space-2) var(--space-1)}.nevi-cabinet .model-picker-info{min-width:24px}.nevi-cabinet .model-picker-tasks button{font-size:12px}}

.nevi-cabinet .model-picker-header{display:flex;align-items:center;gap:var(--space-3);margin:var(--space-3) 0 var(--space-5)}
.nevi-cabinet .model-picker-back{display:grid;place-items:center;width:36px;min-width:36px;min-height:44px;background:transparent;color:var(--native-link)}.nevi-cabinet .model-picker-back svg{width:24px;height:24px;transform:rotate(180deg)}
:root body.nevi-cabinet .model-picker-header h1{font-size:25px;font-weight:650;line-height:1.25;margin:0;text-wrap:balance}
.nevi-cabinet .model-picker-header p{font-size:13px;line-height:1.4;color:var(--muted);margin:var(--space-1) 0 0}
.nevi-cabinet .model-picker-current-top .model-picker-auto{width:auto;max-width:110px;margin:0;padding:var(--space-2);min-height:40px;font-size:12px;gap:var(--space-1);flex:0 0 auto;justify-content:center}
.nevi-cabinet .model-picker-current-top .model-picker-auto>.svg-icon{width:15px;height:15px;flex-basis:15px}
.nevi-cabinet .model-picker-help summary{min-height:28px}
:root body.nevi-cabinet .model-picker-family h2{text-wrap:balance}
.nevi-cabinet .model-picker-tasks button:active,.nevi-cabinet .model-picker-select:active{background:var(--surface-2)}

.nevi-cabinet .model-auto-short{display:none}@media(max-width:350px){:root body.nevi-cabinet .model-picker-header h1{font-size:22px}.nevi-cabinet .model-auto-full{display:none}.nevi-cabinet .model-auto-short{display:inline}}

/* Touch WebViews retain hover after a tap; all state surfaces use the active palette. */
:root body.nevi-cabinet :is(.row,.model-picker-name,.model-picker-info,.text-link,.sub-back-inline,.model-picker-back):is(:hover,:active,:focus){background:var(--surface-2)!important;color:var(--text)!important}
:root body.nevi-cabinet :is(.secondary,.chip,.model-chip,.admin-subtab,.admin-category-btn):is(:hover,:active,:focus){background:var(--surface-2)!important;color:var(--text)!important;border-color:var(--line-strong)!important}
:root body.nevi-cabinet :is(.model-picker-tasks button.is-active,.chip.selected,.model-chip.active,.admin-subtab.active,.admin-category-btn.active):is(:hover,:active,:focus){background:var(--accent-soft)!important;color:var(--accent)!important}
:root body.nevi-cabinet .primary:is(:hover,:active,:focus){background:var(--native-button)!important;color:var(--native-button-text)!important;filter:brightness(.96)}
:root body.nevi-cabinet .model-picker-select:is(:hover,:active,:focus){background:var(--accent-soft)!important;color:var(--accent)!important}
:root body.nevi-cabinet :is(.model-picker-tasks button,.model-picker-auto):is(:hover,:active,:focus){background:var(--surface-2)!important;color:var(--text)!important}
:root body.nevi-cabinet .model-picker-auto.is-active:is(:hover,:active,:focus){background:var(--accent-soft)!important;color:var(--accent)!important}

/* Touch feedback: no native black highlight or nested glass compositing. */
html,body.nevi-cabinet,body.nevi-cabinet :is(button,a,input,select,textarea,label){-webkit-tap-highlight-color:transparent}
:root body.nevi-cabinet .bottom-nav .nav-item{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
:root body.nevi-cabinet .bottom-nav .nav-item:is(:hover,:active,:focus){transform:none!important}

.chat-picker-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-2);margin:var(--space-3) 0}.chat-picker-actions button{min-width:0;display:flex;align-items:center;justify-content:center;gap:var(--space-2);white-space:normal;min-height:48px}.chat-picker-actions .svg-icon{width:19px;height:19px;flex:0 0 19px}.channel-comments-panel{margin-top:var(--space-6)}.channel-comments-panel>summary{cursor:pointer;min-height:44px;font-size:15px;font-weight:500;padding:var(--space-3) 0}.channel-comments-panel .card{margin-top:var(--space-3)}@media(max-width:350px){.chat-picker-actions button{font-size:13px!important;padding:var(--space-2)!important}}

/* Hallmark · shape: app screen · genre: modern-minimal · theme: Nevi · states: explicit · v2.0.0 */
/* Hallmark · critique: remove persistent press fills, group services, keep Telegram navy and glass navigation. */
:root {
  --interaction-clear: transparent;
  --control-radius: 12px;
  --dock-radius: 24px;
}
html, body { overflow-x: clip; }
body.nevi-cabinet * { -webkit-tap-highlight-color: var(--interaction-clear); }
:root body.nevi-cabinet :is(button,a,summary):is(:hover,:active,:focus) {
  transform: none !important;
  filter: none !important;
}
:root body.nevi-cabinet :is(.text-link,.model-picker-name,.sub-back-inline,.model-picker-back):is(:hover,:active,:focus) {
  background: var(--interaction-clear) !important;
  color: var(--native-link) !important;
  border-radius: var(--control-radius);
}
:root body.nevi-cabinet .text-link {
  border-radius: var(--control-radius);
  padding-inline: var(--space-2);
  text-decoration: none;
}
:root body.nevi-cabinet :is(.row,.model-picker-info):is(:hover,:active,:focus) {
  background: var(--interaction-clear) !important;
  color: var(--text) !important;
}
:root body.nevi-cabinet :is(button,a,summary):focus:not(:focus-visible) { outline: none; }
:root body.nevi-cabinet :is(button,a,summary):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
:root body.nevi-cabinet :is(.primary,.secondary,.chip,.tier-tab,.term,.model-chip,.admin-subtab,.admin-category-btn):is(:hover,:active,:focus) {
  filter: none !important;
  transform: none !important;
}
:root body.nevi-cabinet .row { border-bottom-color: var(--line) !important; }
:root body.nevi-cabinet .row:last-child { border-bottom: 0 !important; }
:root body.nevi-cabinet :is(.primary,.secondary,.chat-picker-actions button) { letter-spacing: 0; font-weight: 550; }
:root body.nevi-cabinet .connection-disclosure {
  margin-block: var(--space-3);
  border-radius: var(--radius-group);
  background: var(--surface);
  color: var(--text);
}
.nevi-cabinet .connection-summary {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 80px;
  padding: var(--space-4);
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius-group);
}
.nevi-cabinet .connection-summary::-webkit-details-marker { display: none; }
.nevi-cabinet .connection-summary .connection-head { flex: 1; min-width: 0; margin: 0; }
.nevi-cabinet .connection-summary .connection-head > div { min-width: 0; }
.nevi-cabinet .connection-summary .connection-head h2 { font-size: 16px; font-weight: 600; text-wrap: balance; }
.nevi-cabinet .connection-summary .connection-head p { margin-top: var(--space-1); font-size: 12px; line-height: 1.4; }
.nevi-cabinet .connection-summary .connection-brand { width: 36px; height: 36px; flex: 0 0 36px; }
.nevi-cabinet .connection-state { flex-shrink: 0; font-size: 12px; color: var(--native-link); }
.nevi-cabinet .connection-state.is-connected { color: var(--success); }
.nevi-cabinet .connection-expand { display: flex; color: var(--muted); }
.nevi-cabinet .connection-expand svg { width: 16px; height: 16px; }
.nevi-cabinet .connection-disclosure[open] .connection-expand { rotate: 90deg; }
.nevi-cabinet .connection-body { padding: 0 var(--space-4) var(--space-4); font-size: 14px; }
.nevi-cabinet .connection-body > p { color: var(--muted); margin: 0 0 var(--space-4); line-height: 1.6; }
.nevi-cabinet .connection-body > p:last-child { margin-bottom: 0; }
.nevi-cabinet .connection-body .connection-actions { margin-top: var(--space-3); }
.nevi-cabinet .connection-body .text-link { margin-top: var(--space-2); }
:root body.nevi-cabinet .bottom-nav {
  isolation: isolate;
  border-radius: var(--dock-radius) !important;
  gap: var(--space-1) !important;
}
:root body.nevi-cabinet .bottom-nav .nav-item { border-radius: 16px !important; padding-inline: 0 !important; }
:root body.nevi-cabinet .bottom-nav .nav-item small { max-width: 100%; font-size: 11px !important; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  :root body.nevi-cabinet .text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
  :root body.nevi-cabinet .row:hover { background: var(--surface-2) !important; }
  .nevi-cabinet .connection-summary:hover { background: var(--surface-2); }
}
@media (max-width: 350px) {
  :root body.nevi-cabinet .bottom-nav { width: calc(100% - 12px); padding: var(--space-1) !important; gap: 0 !important; }
  :root body.nevi-cabinet .bottom-nav .nav-item small { font-size: 10px !important; }
  .nevi-cabinet .connection-state { font-size: 11px; }
  .nevi-cabinet .connection-summary { padding: var(--space-3); gap: var(--space-1); }
  .nevi-cabinet .connection-summary .connection-head { gap: var(--space-2); }
}
@media (prefers-reduced-motion: reduce) {
  .nevi-cabinet .connection-expand { transition: none; }
}

.nevi-cabinet .connection-search-label { display: block; margin-bottom: var(--space-2); font-size: 13px; color: var(--muted); }
.nevi-cabinet #connection-search { width: 100%; margin-bottom: var(--space-3); }
.nevi-cabinet .connection-disclosure[hidden], .nevi-cabinet .row[hidden] { display: none !important; }

@media (max-width: 350px) {
  :root body.nevi-cabinet .bottom-nav.has-admin {
    grid-template-columns: minmax(0,1fr) minmax(0,1.35fr) minmax(0,1fr) minmax(0,1fr) minmax(44px,.8fr) !important;
    gap: var(--space-1) !important;
  }
}
:root body.nevi-cabinet .terms .term:only-child { grid-column: 1 / -1; }

/* Nevi service catalogue 53 · Taste accent-ladder, Telegram native layout.
   User-pinned exceptions: navy night palette, violet brand and one glass dock. */
.nevi-cabinet .service-page-title { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.nevi-cabinet .service-page-title .icon-btn { flex:0 0 44px; border:0; background:var(--surface); border-radius:50%; }
.nevi-cabinet .service-tabs { display:flex; gap:24px; border-bottom:1px solid var(--line); margin-bottom:20px; }
.nevi-cabinet .service-tabs button { position:relative; flex:1; min-height:48px; padding:8px 0 12px; font-size:14px; font-weight:550; color:var(--muted); background:transparent; border-radius:0; }
.nevi-cabinet .service-tabs .is-selected { color:var(--accent); }
.nevi-cabinet .service-tabs .is-selected:after { content:''; position:absolute; height:3px; inset:auto 12% -1px; border-radius:3px; background:var(--accent); }
.nevi-cabinet .service-native-links { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1px; overflow:hidden; background:var(--line); border-radius:16px; margin-bottom:20px; }
.nevi-cabinet .service-native-links button { display:flex; align-items:center; gap:10px; padding:14px 12px; min-width:0; min-height:72px; text-align:left; color:var(--text); background:var(--surface); border-radius:0; }
.nevi-cabinet .service-native-links button>svg:first-child { width:22px; color:var(--accent); flex:0 0 22px; }
.nevi-cabinet .service-native-links button>svg:last-child { width:12px; color:var(--muted); margin-left:auto; }
.nevi-cabinet .service-native-links span { display:grid; gap:3px; font-size:15px; font-weight:600; }
.nevi-cabinet .service-native-links small { font-size:11px; font-weight:400; color:var(--muted); }
.nevi-cabinet .service-search { display:flex; align-items:center; gap:10px; padding:0 14px; background:var(--surface); border-radius:12px; }
.nevi-cabinet .service-search>svg { width:20px; color:var(--muted); flex:0 0 20px; }
:root body.nevi-cabinet #service-search { width:100%; min-width:0; border:0!important; background:transparent!important; padding:12px 0; border-radius:0; }
.nevi-cabinet .service-search:focus-within { outline:2px solid var(--focus); outline-offset:2px; }
:root body.nevi-cabinet #service-search:focus-visible { outline:0; }
.nevi-cabinet .service-categories { display:flex; gap:6px; overflow-x:auto; padding:12px 0 16px; scrollbar-width:none; }
.nevi-cabinet .service-categories button { flex:0 0 auto; min-height:36px; padding:8px 14px; border-radius:18px; font-size:13px; color:var(--muted); background:transparent; }
.nevi-cabinet .service-categories .is-selected { color:var(--accent); background:var(--accent-soft); }
.nevi-cabinet .service-list { overflow:hidden; background:var(--surface); border-radius:16px; margin-bottom:16px; }
.nevi-cabinet .service-row { display:flex; align-items:center; gap:14px; padding:16px; width:100%; min-height:84px; text-align:left; background:transparent; color:var(--text); border:0; border-radius:0; position:relative; }
.nevi-cabinet .service-row:not(:last-child):after { content:''; position:absolute; left:70px; right:16px; bottom:0; height:1px; background:var(--line); }
.nevi-cabinet .service-symbol { width:40px; height:40px; flex:0 0 40px; display:grid; place-items:center; color:var(--accent); background:transparent; }
.nevi-cabinet .service-symbol svg { width:28px; height:28px; }
.nevi-cabinet .service-brand { color:var(--text); }
.nevi-cabinet .service-row-copy { flex:1; min-width:0; display:grid; gap:4px; }
.nevi-cabinet .service-row-copy b { font-weight:600; font-size:16px; overflow-wrap:anywhere; }
.nevi-cabinet .service-row-copy>span { font-size:13px; line-height:1.5; color:var(--muted); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.nevi-cabinet .service-row-copy small { font-size:12px; color:var(--muted); }
.nevi-cabinet .service-row-copy .is-connected { color:var(--success); }
.nevi-cabinet .service-row-end { flex:0 0 26px; width:26px; height:26px; display:grid; place-items:center; color:var(--accent); border:1px solid var(--line-strong); border-radius:50%; }
.nevi-cabinet .service-row-end svg { width:16px; height:16px; }
.nevi-cabinet .service-notice { font-size:14px; color:var(--muted); line-height:1.6; padding:12px 0; }
.nevi-cabinet .service-detail-head { display:grid; justify-items:center; text-align:center; margin:0 0 24px; }
.nevi-cabinet .service-detail-head .service-symbol { width:64px; height:64px; margin-bottom:12px; }
.nevi-cabinet .service-detail-head .service-symbol svg { width:42px; height:42px; }
.nevi-cabinet .service-detail-head h2 { font-size:26px; margin:0; text-wrap:balance; }
.nevi-cabinet .service-detail-head p { color:var(--muted); font-size:14px; max-width:40ch; margin:8px 0; }
.nevi-cabinet .service-examples { display:grid; border-radius:16px; overflow:hidden; background:var(--surface); }
.nevi-cabinet .service-examples button { display:flex; gap:12px; justify-content:space-between; align-items:center; padding:16px; min-height:64px; background:transparent; color:var(--text); border-bottom:1px solid var(--line); text-align:left; font-size:15px; line-height:1.5; border-radius:0; }
.nevi-cabinet .service-examples button:last-child { border-bottom:0; }
.nevi-cabinet .service-examples svg { flex:0 0 18px; width:18px; color:var(--accent); }
.nevi-cabinet :is(.service-about,.service-account,.service-action) { padding:20px 0; margin-top:16px; border-top:1px solid var(--line); }
.nevi-cabinet :is(.service-about,.service-account,.service-action) h3 { font-size:16px; margin:0 0 8px; }
.nevi-cabinet :is(.service-about,.service-account,.service-action) p { font-size:14px; line-height:1.6; color:var(--muted); }
.nevi-cabinet .service-action pre { max-width:100%; overflow:auto; max-height:260px; white-space:pre-wrap; overflow-wrap:anywhere; padding:12px; font-size:13px; background:var(--surface); color:var(--text); border-radius:12px; }
.nevi-cabinet :is(.service-action,.service-alternative) summary { min-height:44px; padding-block:12px; font-size:14px; cursor:pointer; color:var(--native-link); }
.nevi-cabinet .service-enable { display:flex; align-items:center; gap:12px; min-height:44px; font-size:14px; }
:root body.nevi-cabinet .service-enable input { min-height:20px; width:20px; height:20px; accent-color:var(--accent); }
.nevi-cabinet #service-provider-error { color:var(--error); font-size:14px; }
.nevi-cabinet #service-provider-error:empty { display:none; }
.nevi-cabinet .service-connect-bar { position:sticky; bottom:0; padding:12px 0; background:var(--bg); }
.nevi-cabinet :is(.service-row,.service-tabs button,.service-categories button,.service-examples button):focus-visible { outline:2px solid var(--focus); outline-offset:-3px; }
.nevi-cabinet .service-row:active { background:var(--surface-2); }
@media(hover:hover) and (pointer:fine) { .nevi-cabinet .service-row:hover,.nevi-cabinet .service-examples button:hover { background:var(--surface-2); } }
@media(max-width:350px) { .nevi-cabinet .service-native-links button { gap:8px; padding:12px 10px; }.nevi-cabinet .service-native-links button>svg:last-child { display:none; }.nevi-cabinet .service-tabs { gap:12px; }.nevi-cabinet .service-row { padding:14px 12px; gap:10px; } }

/* Group management uses the cabinet's existing surfaces and type scale. */
.chat-management-row{padding:16px 0;border-bottom:1px solid var(--border,rgba(128,128,128,.2));overflow-wrap:anywhere}
.chat-management-row:last-child{border-bottom:0}
.chat-management-row h2{margin:0 0 6px;font-size:18px}
.chat-management-row p{margin:4px 0 10px}
.chat-management-help{margin-top:24px;line-height:1.5}
.chat-management-help summary{cursor:pointer;font-weight:600;min-height:44px;padding:12px 0}
.chat-toggle{display:flex;align-items:center;gap:12px;min-height:48px;line-height:1.4;margin:8px 0}
.chat-toggle input{width:20px;height:20px;flex:0 0 auto;accent-color:var(--accent,#7254c7)}
.chat-limit-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.chat-limit-fields input{width:100%;min-width:0;font-variant-numeric:tabular-nums}
.chat-history-text{white-space:pre-wrap;line-height:1.5}
.chat-management-row summary{min-height:44px;padding:8px 0;cursor:pointer}
.chat-management-row .automation-actions{flex-wrap:wrap}

.channel-workspace { margin-block: 16px 20px; }
.channel-workspace-top { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:4px 16px; }
.channel-workspace-top p { margin:0; }
.channel-tabs { display:flex; overflow-x:auto; border-bottom:1px solid var(--line, #aaa); margin-top:10px; }
.channel-tabs button { flex:1 0 auto; }
.channel-tabs button { padding:12px 8px; min-height:44px; background:none; color:inherit; border:0; border-bottom:2px solid transparent; font:inherit; }
.channel-tabs button[aria-pressed="true"] { border-bottom-color:var(--accent, #6c4edc); font-weight:650; }
.channel-tabs button:focus-visible { outline:2px solid var(--accent, #6c4edc); outline-offset:-2px; }
.channel-create-actions { margin-top:14px; }
.channel-compose { margin-top:18px; padding-block:12px; border-block:1px solid var(--line, #aaa); }
.channel-compose h2 { margin:0 0 12px; font-size:1rem; }
.channel-compose .field { margin-block:12px; }
.channel-journal-row { padding:12px 0; border-bottom:1px solid var(--line, #aaa); }
.channel-journal-row div { display:flex; gap:8px 16px; align-items:baseline; flex-wrap:wrap; }
.channel-journal-row p { overflow-wrap:anywhere; white-space:pre-line; margin-block:6px; }
.channel-journal-row time { font-size:.85rem; }
.channel-rights-status { margin:4px 0; }
.channel-post-actions { gap:4px 14px; margin-top:8px; }
.channel-post-actions a { display:inline-flex; align-items:center; min-height:44px; }
.channel-read-section { margin-block:0 20px; min-width:0; }
.channel-read-section h2 { font-size:1.1rem; margin:0 0 6px; }
.channel-calendar-day { border-bottom:1px solid var(--line); }
.channel-calendar-day summary { min-height:44px; padding-block:12px; cursor:pointer; font-weight:650; }
.channel-calendar-count { padding-inline-start:10px; font-size:.85rem; font-weight:400; color:var(--muted); }
.channel-calendar-day ul { margin:0; padding:0 0 12px; list-style:none; }
.channel-calendar-row { display:grid; grid-template-columns:3.5rem minmax(0,1fr); gap:10px; padding:8px 0; }
.channel-calendar-row time { font-variant-numeric:tabular-nums; }
.channel-calendar-row strong { display:block; overflow-wrap:anywhere; }
.channel-calendar-row small { display:block; color:var(--muted); }
.management-filters { display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1fr); gap:12px; margin-block:8px 10px; }
.management-filters > div { min-width:0; }
.management-filters label { font-size:.88rem; }
.management-filters :is(input,select) { display:block; margin-top:4px; min-height:44px; width:100%; }
.channel-read-section :is(summary,input,select):focus-visible,
.management-filters :is(input,select):focus-visible { outline:2px solid var(--focus,var(--accent)); outline-offset:2px; }
.channel-journal-row summary { cursor:pointer; min-height:44px; overflow-wrap:anywhere; }
.channel-journal-row summary time { margin-inline-start:10px; color:var(--muted); }
.channel-journal-row summary span { display:block; margin-top:5px; }
.channel-journal-row[open] summary span { display:none; }
.channel-journal-row[hidden],.chat-management-row[hidden] { display:none; }
.automation-card[hidden] { display:none; }
.schedule-more { margin-top:6px; }
.schedule-more summary { min-height:44px; padding-block:11px; cursor:pointer; }
.reply-format select { min-height:44px; }
.reply-format [role="status"]:empty,#broadcast-progress:empty { display:none; }
@media(max-width:430px) {
  .management-filters { grid-template-columns:1fr; gap:8px; }
}
#channel-post-feedback:not(:empty) { color:var(--error); margin-top:10px; }
@media(max-width:430px) {
  .channel-tabs { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); overflow:visible; }
  .channel-tabs button { grid-column:span 2; font-size:.86rem; padding-inline:4px; }
  .channel-tabs button:nth-last-child(-n+2) { grid-column:span 3; }
}
.channel-settings-section { padding-block:16px; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.channel-settings-section h2 { margin:0 0 12px; font-size:1.1rem; }
.channel-settings-section form { display:grid; gap:8px; margin-bottom:12px; }
.channel-settings-section form button { justify-self:start; }
.channel-settings-section [role="status"]:empty { display:none; }
.channel-settings-section summary { min-height:44px; padding-block:10px; cursor:pointer; }
.channel-material-row p,.channel-source-assessment { white-space:pre-wrap; }
.channel-report { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px 16px; }
.channel-report dd { margin:0; text-align:right; font-variant-numeric:tabular-nums; }
.group-topic { display:flex; align-items:center; justify-content:space-between; gap:12px; min-width:0; padding-block:6px; border-bottom:1px solid var(--line); }
.group-topic span { min-width:0; overflow-wrap:anywhere; }
.group-topic small { display:block; color:var(--muted); }

/* Diagnostics follows the cabinet palette and layers one sheet over the frame. */
.nevi-diagnostics{display:grid;gap:16px;min-width:0;padding:24px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.diagnostic-head,.diagnostic-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;min-width:0}
.diagnostic-head h1{margin:0 0 4px;font-size:24px;line-height:1.2}
.diagnostic-head small,.diagnostic-panel small,.diagnostic-label{display:block;color:var(--muted);font-size:12px}
.diagnostic-periods{display:flex;gap:6px;border-bottom:1px solid var(--line)}
.diagnostic-periods button{min-height:44px;flex:0 1 auto;padding:0 13px;color:var(--muted);border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;white-space:nowrap}
.diagnostic-periods button[aria-pressed="true"]{color:var(--text);border-bottom-color:var(--accent);font-weight:650}
.diagnostic-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0;border:1px solid var(--line);border-radius:12px}
.diagnostic-metrics>div{padding:12px 14px;min-width:0;border-inline-end:1px solid var(--line)}
.diagnostic-metrics>div:last-child{border-inline-end:0}
.diagnostic-metrics dt{color:var(--muted);font-size:13px}
.diagnostic-metrics dd{font-size:26px;font-variant-numeric:tabular-nums;margin:4px 0 0}
.diagnostic-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);align-items:start;gap:16px}
.diagnostic-panel{padding:14px;min-width:0;border:1px solid var(--line);border-radius:12px}
.diagnostic-panel h3{margin:0 0 6px;font-size:16px}
.diagnostic-panel p{margin:0 0 12px;color:var(--muted)}
.diagnostic-field{min-width:0;max-width:100%}
.diagnostic-field select{width:100%;max-width:100%;min-height:44px}
.diagnostic-label{margin-bottom:4px}
.diagnostic-list{list-style:none;margin:8px 0 0;padding:0}
.diagnostic-list li{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:48px;padding:7px 0;border-bottom:1px solid var(--line)}
.diagnostic-list li:last-child{border-bottom:0}
.diagnostic-list li[hidden]{display:none}
.diagnostic-list li>div{min-width:0;overflow-wrap:anywhere}
.diagnostic-list li>strong{font-variant-numeric:tabular-nums;text-align:right}
.diagnostic-list li>span{max-width:60%;text-align:right}
.diagnostic-ok{color:var(--accent)}
@media(max-width:660px){
  #view-admin:has(.nevi-diagnostics) .admin-subtabs-bar{flex-wrap:nowrap;overflow-x:auto}
  .nevi-diagnostics{padding:14px;gap:14px}
  .diagnostic-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .diagnostic-grid{grid-template-columns:1fr}
  .diagnostic-metrics>div:nth-child(2n){border-inline-end:0}
  .diagnostic-metrics>div:nth-child(-n+2){border-bottom:1px solid var(--line)}
  .diagnostic-panel-head{flex-wrap:wrap}
}

.schedule-weekdays{min-width:0;margin:0 0 14px;padding:0;border:0}
.schedule-weekdays legend{margin-bottom:8px;font-weight:600}
.schedule-weekdays>div{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.schedule-weekdays label{position:relative;cursor:pointer}
.schedule-weekdays input{position:absolute;inset:0;opacity:0;width:100%;height:100%;margin:0}
.schedule-weekdays span{display:grid;place-items:center;min-height:44px;border:1px solid var(--line);border-radius:8px;font-size:13px}
.schedule-weekdays input:checked+span{color:var(--accent);background:var(--accent-soft);border-color:var(--accent)}
.schedule-weekdays input:focus-visible+span{outline:2px solid var(--accent);outline-offset:1px}

/* Telegram workspace and checkout actions */
.nevi-cabinet .profile-workspace { margin: 20px 0; }
.nevi-cabinet .profile-workspace > h2 { margin: 0 4px 8px; color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: 0; }
:root body.nevi-cabinet .profile-workspace .row { min-height: 54px; padding: 10px 0 !important; }
.nevi-cabinet .checkout-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 8px; }
.nevi-cabinet .checkout-actions > button { flex: 1 1 140px; min-height: 44px; margin: 0; }
.nevi-cabinet .checkout-actions > .gift-plan-button { display: flex; justify-content: center; gap: 6px; align-items: center; }
.nevi-cabinet .pack-card .checkout-actions { grid-column: 1 / -1; margin: 4px 0 0; }
.nevi-cabinet .invoice-link { display: flex; align-items: center; justify-content: center; min-height: 44px; text-decoration: none; }

.inbox-desk { margin-block:1.25rem 2rem; }
.inbox-search { display:flex; gap:.8rem; align-items:end; }
.inbox-search label { flex:1; min-width:0; }
.inbox-label { display:block; font-size:.82rem; font-weight:600; margin-bottom:.38rem; }
.inbox-search input { width:100%; min-height:44px; color:inherit; background:var(--surface-solid); border:1px solid var(--line); border-radius:9px; padding:0 .7rem; }
.inbox-search .text-link, .inbox-kinds button, #inbox-reset { min-height:44px; }
.inbox-kinds { display:flex; gap:.85rem; margin-top:.7rem; border-bottom:1px solid var(--line); }
.inbox-kinds button { color:inherit; background:none; padding:0 .15rem; border:0; border-radius:0; border-bottom:2px solid transparent; font:inherit; font-size:.88rem; }
.inbox-kinds button[aria-pressed="true"] { border-color:var(--accent); font-weight:700; }
.inbox-kinds span { font-variant-numeric:tabular-nums; }
button.inbox-entry { display:flex; text-align:start; justify-content:space-between; align-items:center; gap:1rem; width:100%; padding:1rem .12rem; color:inherit; background:transparent; border:0; border-bottom:1px solid var(--line); border-radius:0; font:inherit; }
.inbox-entry-copy { display:grid; gap:.25rem; min-width:0; overflow-wrap:anywhere; }
.inbox-entry-copy small { color:var(--muted); }
.inbox-entry-copy strong { font-size:1.05rem; }
.inbox-entry-copy > span { line-height:1.45; }
.inbox-entry > span:last-child { color:var(--muted); }
.inbox-desk [hidden] { display:none!important; }
.inbox-desk :is(input,button):focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
