.page-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.brand {
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.brand span {
  margin-left: 10px;
  font-size: 13px;
  font-weight: 400;
  font-style: italic;
  color: var(--ink-muted);
}

.nav-actions { display: flex; gap: 10px; }

/* Button base lives in liquid-glass.css (iOS 26 liquid glass). Keep only layout helpers here. */
.btn:disabled { opacity: 0.42; cursor: not-allowed; }

.hero-card {
  padding: 36px;
  margin-bottom: 22px;
}

.drop {
  border-radius: var(--radius-sm);
  border: 1px dashed color-mix(in srgb, var(--accent) 35%, transparent);
  background: color-mix(in srgb, var(--glass-bg-strong) 80%, transparent);
  min-height: 200px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.drop.drag {
  border-color: var(--blue);
  background: rgba(10, 132, 255, 0.1);
  transform: scale(1.01);
}

.drop h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.drop p {
  margin: 8px 0 0;
  color: var(--ink-muted);
}

.actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 22px;
  flex-wrap: wrap;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 22px;
}

@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

.stat {
  text-align: center;
  padding: 16px 10px;
}

.stat .v {
  font-size: 30px;
  font-weight: 650;
  color: var(--gold-soft);
}

.stat .l {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-muted);
}

.muted { color: var(--ink-muted); }
.gold { color: var(--accent); }
.center { text-align: center; }

/* —— Layout utilities (prefer these over inline style=) —— */
.stack { display: grid; gap: var(--space-2); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.row-between { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: var(--space-3); }
.col { display: flex; flex-direction: column; gap: var(--space-2); align-items: stretch; }
.flex-1 { flex: 1; min-width: 0; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.m-0 { margin: 0 !important; }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.actions-start { justify-content: flex-start; }
.w-field-sm { width: 120px; max-width: 100%; }
.w-field-md { width: 140px; max-width: 100%; }
.w-field-lg { width: 220px; max-width: 100%; }
.avatar-sm { border-radius: 50%; flex: 0 0 auto; }
.fw-650 { font-weight: 650; }
.text-caption { font-size: 12px; }
.link-inherit { color: inherit; text-decoration: none; }
.w-full { width: 100%; }
.w-amount { width: 100px; max-width: 100%; }
.block { display: block; }
.wrap { overflow-wrap: anywhere; }
.fw-400 { font-weight: 400; }
.mono-xs { font-family: var(--mono); font-size: 11px; }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.pad-card { padding: 18px; margin-top: 8px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin-top: var(--space-2); }
.input-hidden { display: none !important; }
.actions-stretch { justify-content: stretch; }
.login-wide { max-width: 560px; }
.qr-wrap { display: grid; place-items: center; margin: 18px 0; }
.qr-img { border-radius: 20px; background: #fff; padding: 10px; }
.job-title { margin: 0 0 8px; font-size: 24px; }
.job-static { cursor: default; }
.job-row { display: flex; gap: var(--space-4); align-items: flex-start; width: 100%; }
.job-row.center-y { align-items: center; }
.sheet-panel { height: auto; max-height: 85vh; }
.field-resize { resize: vertical; }
.meta-between { justify-content: space-between; }
.meta-stack { flex-direction: column; align-items: flex-start; }

.jobs {
  display: grid;
  gap: 14px;
}

.job {
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease;
}

.job:hover { transform: translateY(-2px); }

.job h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 12px;
  color: var(--ink-muted);
}

/* .chip lives in liquid-glass.css — status tints only here */
.files {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: background .15s ease;
}

.file-row:hover { background: rgba(255,255,255,0.06); }

.file-row .name { font-weight: 600; }

/* Login — full styles later under “Login / auth sheets” */
.login-wide { max-width: 560px; }

/* .field / .btn → liquid-glass.css */

.err {
  margin-top: 12px;
  color: var(--red);
  font-size: 13px;
}

/* Notepad modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(6, 6, 8, 0.55);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 24px;
  animation: fade .2s ease;
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.notepad {
  width: min(920px, 100%);
  height: min(80vh, 820px);
  display: flex;
  flex-direction: column;
  padding: 0;
}

.notepad-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  position: relative;
  z-index: 2;
}

.notepad-body {
  flex: 1;
  overflow: auto;
  padding: 20px 22px 28px;
  position: relative;
  z-index: 2;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(60, 70, 90, .28) transparent;
}

.notepad-body::-webkit-scrollbar { width: 10px; height: 10px; }
.notepad-body::-webkit-scrollbar-track { background: transparent; margin: 4px 0; }
.notepad-body::-webkit-scrollbar-thumb {
  background-color: rgba(60, 70, 90, .22);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: padding-box;
}
.notepad-body::-webkit-scrollbar-thumb:hover {
  background-color: rgba(60, 70, 90, .42);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.notepad pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
  color: rgba(244, 241, 234, 0.92);
}

.section-title {
  margin: 28px 0 12px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.rank-num {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: var(--blue-soft);
  color: var(--accent-soft);
}

.chip.status-0 { color: var(--green); background: color-mix(in srgb, var(--green) 16%, transparent); }
.chip.status-1 { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.chip.status-2 { color: var(--accent-soft); background: color-mix(in srgb, var(--accent-soft) 16%, transparent); }
.chip.status-3 { opacity: 0.85; }
.chip.status-4 { color: var(--red); background: color-mix(in srgb, var(--red) 16%, transparent); }

/* Single-sale item lines */
.item-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.item-row {
  padding: 12px 14px;
}

.item-row .name { font-weight: 600; }

.item-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.field-sm {
  width: auto;
  min-width: 108px;
  margin: 0;
  padding: 8px 12px;
  font-size: 13px;
}

/* .btn-sm sizing lives in liquid-glass.css */

/* iOS 26 visual layer */
.page-shell { max-width: 1180px; padding: 24px 22px 80px; }
.topbar { position: sticky; top: 14px; z-index: 30; min-height: 68px; padding: 12px 14px 12px 18px; margin-bottom: 16px; }
.wordmark { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
.wordmark img, .login-brand img {
  width: 56px;
  height: 56px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
  flex: 0 0 auto;
}
html[data-theme="ember"] .wordmark img,
html[data-theme="ember"] .login-brand img {
  background: transparent;
  box-shadow: none;
}
.wordmark > span { display: grid; font-size: 1.35rem; font-weight: 740; letter-spacing: -.03em; line-height: 1.05; color: var(--ink); }
.wordmark small { margin-top: 4px; color: var(--ink-muted); font-size: 12px; font-weight: 560; letter-spacing: .01em; }
.wordmark.compact > span { font-size: var(--text-md); }
.session-line { margin: 0 8px 20px; color: var(--ink-muted); font-size: var(--text-sm); }
.session-line strong { color: var(--ink); }

/* ——— Operations / seller home ——— */
.ops-home { display: grid; gap: 22px; }
.ops-home > .topbar { margin-bottom: 0; }
.ops-home > .session-line { margin: -6px 8px 0; }

.ops-intro {
  padding: 8px 6px 0;
  max-width: 34rem;
}
.ops-kicker {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: var(--text-xs);
  font-weight: 760;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ops-intro h1 {
  margin: 0;
  font-size: var(--text-display);
  font-weight: 720;
  letter-spacing: -.04em;
  line-height: 1.1;
  color: var(--ink);
}
[dir="rtl"] .ops-intro h1 { letter-spacing: -.02em; line-height: 1.25; }
.ops-sub {
  margin: 10px 0 0;
  color: var(--ink-muted);
  font-size: var(--text-md);
  line-height: 1.55;
  max-width: 32rem;
}

.ops-attention { padding: 0; }
.ops-attention-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
}
.ops-attention-inner strong { display: block; margin-bottom: 3px; }
.ops-attention-actions { display: flex; gap: 8px; flex-wrap: wrap; flex: 0 0 auto; }

.ops-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ops-tile {
  display: block;
  color: inherit;
  text-decoration: none;
  min-height: 132px;
  padding: 0;
  transition: transform .18s ease, box-shadow .18s ease;
}
.ops-tile > .glass-inner {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 132px;
  padding: 20px 18px;
  position: relative;
}
.ops-tile:hover { transform: translateY(-2px); }
.ops-tile-label {
  font-size: var(--text-lg);
  font-weight: 680;
  letter-spacing: -.02em;
  color: var(--ink);
}
.ops-tile-hint {
  color: var(--ink-muted);
  font-size: var(--text-sm);
  line-height: 1.45;
  max-width: 18rem;
}
.ops-tile-meta {
  margin-top: auto;
  padding-top: 14px;
  color: var(--ink-soft);
  font-size: var(--text-xs);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.ops-tile-badge {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgb(255 59 48 / 88%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.ops-tile-primary {
  grid-column: span 1;
  box-shadow: var(--glass-depth), var(--btn-primary-glow);
}
.ops-tile-primary .ops-tile-label { color: var(--blue-deep); }

html[data-theme="ember"] .ops-tile-primary {
  box-shadow: var(--glass-depth), var(--btn-primary-glow);
}
html[data-theme="ember"] .ops-tile-primary .ops-tile-label { color: #ff6b6b; }
html[data-theme="ember"] .ops-tile-badge { background: rgb(225 6 0 / 95%); }

.ops-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 4px 8px 0;
  color: var(--ink-muted);
  font-size: 13px;
}
.ops-metrics b {
  color: var(--ink-soft);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-inline-end: 4px;
}

@media (max-width: 900px) {
  .ops-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .ops-grid { grid-template-columns: 1fr; }
  .ops-attention-inner { flex-direction: column; align-items: stretch; }
  .ops-tile, .ops-tile > .glass-inner { min-height: 112px; }
}
.nav-actions { position: relative; z-index: 2; align-items: center; }
.nav-actions .btn,
.nav-actions .lf-switch {
  position: relative;
  z-index: 3;
}
/* .btn / .btn-primary / .btn-ghost / .lf-switch → liquid-glass.css */

.hero-card { padding: 30px; }
.hero-card h1, .hero-card h2 { margin: 7px 0 10px; letter-spacing: -.035em; }
.hero-card p { line-height: 1.75; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--blue); font-size: var(--text-xs); font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow-tg { color: #229ed9; }
.eyebrow-tg::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  display: inline-block;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.muted { color: var(--ink-muted); }
.gold { color: var(--accent); }
.stat .v { color: var(--accent); }
.job { color: var(--ink); }
.rank-num { background: var(--blue-soft); color: var(--accent); }
.section-title { color: var(--ink-muted); }

.err { color: var(--red); }
.modal-backdrop { background: rgba(48,57,75,.25); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.notepad pre { color: var(--ink-soft); }

/* Public catalog */
.public-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 24px 0 48px; }
/* Chrome is always physical LTR: LogForge left, actions right — even on rtl pages */
.ios-nav,
.topbar {
  direction: ltr;
  min-height: 72px;
  padding: 12px var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 14px;
  z-index: 40;
  gap: var(--space-3);
}
.ios-nav-start {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: 0 1 auto;
  min-width: 0;
}
.product-crumb {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
  background: rgb(255 255 255 / 28%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 40%);
  white-space: nowrap;
}
html[data-theme="ember"] .product-crumb {
  background: rgb(255 255 255 / 06%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 10%);
  color: var(--ink-soft);
}
.product-crumb:hover { color: var(--accent-soft); }
.product-crumb span { font-size: 15px; line-height: 1; opacity: .75; }
.nav-actions {
  direction: ltr;
  margin-inline-start: auto;
  flex: 0 0 auto;
}
/* Nav bar: top catch-light only — no side/bottom inset chords */
.ios-nav.glass,
.topbar.glass {
  box-shadow:
    var(--glass-depth),
    inset 0 1px 0 rgb(255 255 255 / 32%);
}
html[data-theme="ember"] .ios-nav.glass,
html[data-theme="ember"] .topbar.glass {
  box-shadow:
    var(--glass-depth),
    inset 0 1px 0 rgb(255 255 255 / 18%);
}
.public-shell main { display: grid; gap: 68px; padding: 28px 0 56px; }
.public-hero { padding: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 48px); min-height: min(52vh, 520px); display: flex; flex-direction: column; justify-content: center; gap: var(--space-2); }
.public-hero > * { position: relative; z-index: 2; }
.public-hero h1 { max-width: 18ch; margin: var(--space-3) 0; font-size: clamp(36px, 6.2vw, 64px); line-height: 1.05; letter-spacing: -.055em; font-weight: 700; }
[dir="rtl"] .public-hero h1 { max-width: 16ch; letter-spacing: -.03em; line-height: 1.2; }
.public-hero > p { max-width: 42rem; margin: 0; color: var(--ink-muted); font-size: clamp(16px, 1.8vw, 19px); line-height: 1.65; }
.live-dot, .availability i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(34,165,91,.12);
}
.live-dot {
  animation: lf-live-pulse 1.8s ease-in-out infinite;
}
@keyframes lf-live-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(34,165,91,.14); opacity: 1; }
  50% { box-shadow: 0 0 0 9px rgba(34,165,91,.05); opacity: .72; }
}
.lf-live-stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 600;
}
.lf-live-stamp[data-fresh="1"] { color: var(--green); }
.lf-marquee {
  position: relative;
  overflow: hidden;
  background: transparent;
  /* Edge fade only — never a filled band behind the chips */
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.lf-marquee-track {
  display: flex;
  gap: 10px;
  width: max-content;
  padding: 4px 0;
  background: transparent;
  animation: lf-marquee 42s linear infinite;
}
.lf-marquee:hover .lf-marquee-track { animation-play-state: paused; }
/* Light chips — no .glass, no backdrop-filter (avoids a dark horizontal strip) */
.lf-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
  background: rgb(255 255 255 / 42%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 55%);
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-theme="ember"] .lf-marquee-item {
  background: rgb(255 255 255 / 08%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 12%);
  color: var(--ink);
}
.lf-marquee-item img {
  width: 26px; height: 26px; border-radius: 8px;
}
.lf-marquee-item strong { font-size: 13px; font-weight: 650; }
@keyframes lf-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
[dir="rtl"] .lf-marquee-track {
  animation-name: lf-marquee-rtl;
}
@keyframes lf-marquee-rtl {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(50%, 0, 0); }
}
@keyframes lf-hero-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -8px, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot,
  .lf-marquee-track,
  .lf-hero-visual { animation: none !important; }
}
.hero-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
.hero-metrics div,
.hero-metrics .lf-stat {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: var(--space-4) 16px;
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  border: 0;
  box-shadow: var(--glass-shine);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
}
.hero-metrics strong,
.hero-metrics .lf-stat-value { font-size: var(--text-xl); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hero-metrics span { color: var(--ink-muted); font-size: var(--text-xs); }

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  margin-top: 22px;
}
.hero-cta-row > .btn {
  flex: 0 1 auto;
  min-height: 48px;
  padding: 0 20px;
  width: auto;
  box-sizing: border-box;
}
.hero-cta-row > .telegram-button,
.hero-cta-row > .telegram-button.compact {
  width: auto;
  min-height: 48px;
  padding: 0 20px;
  font-size: var(--text-sm);
  border-radius: var(--btn-radius);
}
.lf-pillars {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 4px;
}
.lf-pillar {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  min-height: 76px;
}
.lf-pillar strong { font-size: 14px; letter-spacing: -.02em; }
.lf-pillar span { color: var(--ink-muted); font-size: 11px; }
.lf-section { scroll-margin-top: 88px; }
.section-lead {
  margin: -4px 4px 16px;
  max-width: 46rem;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.6;
}
.mt-section { margin-top: 16px; }
.lf-bot-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px 24px;
}
.lf-bot-copy p { margin: 0 0 12px; color: var(--ink-soft); line-height: 1.65; }
.lf-bot-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.lf-bot-points li {
  position: relative;
  padding-inline-start: 14px;
  color: var(--ink-muted);
  font-size: 13px;
}
.lf-bot-points li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.lf-bot-actions {
  display: grid;
  gap: 10px;
  justify-items: start;
}
.nav-link-quiet {
  display: none;
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 8px;
}
@media (min-width: 1100px) {
  .nav-link-quiet { display: inline-flex; }
}
.lf-hero-rich {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .95fr);
  gap: 28px;
  align-items: center;
}
.lf-hero-copy { min-width: 0; }
.lf-hero-lead { max-width: 38rem; }
.lf-hero-visual {
  min-width: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--glass-depth);
  animation: lf-hero-float 8s ease-in-out infinite;
}
.lf-hero-visual img {
  display: block;
  width: 100%;
  height: auto;
}
.lf-platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
/* PSN-centered constellation — not a flat linear row */
.lf-platform-constellation {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-flow: row;
  gap: 12px;
  align-items: stretch;
}
.lf-platform-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  min-height: 108px;
  grid-column: auto;
  transition: transform .22s var(--ease-out, cubic-bezier(.22,1,.36,1));
}
.lf-platform-card img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  flex: 0 0 auto;
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
}
.lf-platform-card div { display: grid; gap: 3px; min-width: 0; }
.lf-platform-card strong { font-size: 14px; }
.lf-platform-card span { color: var(--ink-muted); font-size: 12px; line-height: 1.35; }
.lf-platform-card small { color: var(--accent-soft); font-size: 11px; font-weight: 650; }
.lf-platform-kicker {
  font-style: normal;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.lf-platform-card.is-anchor {
  grid-column: auto;
  grid-row: auto;
  min-height: 108px;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background:
    linear-gradient(145deg, rgb(0 55 145 / 18%) 0%, rgb(0 112 209 / 8%) 42%, transparent 70%),
    var(--glass-bg);
}
.lf-platform-card.is-anchor img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
}
.lf-platform-card.is-anchor strong { font-size: 1.05rem; letter-spacing: -.02em; }
.lf-platform-card.is-anchor span { font-size: 12px; max-width: none; }
.lf-platform-card.is-tall,
.lf-platform-card.is-wide,
.lf-platform-card.is-soft,
.lf-platform-card.is-tile {
  grid-column: auto;
  min-height: 108px;
  transform: none;
}
.lf-platform-card.is-featured,
.lf-platform-card.is-anchor {
  outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px;
}
.lf-spotlight { margin-top: 4px; }
.lf-spotlight-card { padding: 22px 24px; display: grid; gap: 18px; }
.lf-spotlight-brand {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.lf-spotlight-brand img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
}
.lf-spotlight-brand h2 { margin: 4px 0 8px; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.035em; }
.lf-spotlight-brand p { margin: 0; color: var(--ink-soft); line-height: 1.6; max-width: 46rem; }
.lf-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.lf-step {
  padding: 20px 18px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.lf-step img { width: 56px; height: 56px; border-radius: 16px; }
.lf-step h3 { margin: 0; font-size: 16px; letter-spacing: -.02em; }
.lf-step p { margin: 0; color: var(--ink-muted); font-size: 13px; line-height: 1.55; }
.lf-platform-block { display: grid; gap: 12px; margin-bottom: 22px; }
.lf-platform-block-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px;
}
.lf-platform-block-head img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0,0,0,.16);
}
.lf-platform-block-head h3 { margin: 0; font-size: 18px; letter-spacing: -.025em; }
.lf-platform-block-head span { color: var(--ink-muted); font-size: 12px; }
.lf-platform-block-head > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.lf-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.lf-trust {
  padding: 20px 18px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.lf-trust img { width: 52px; height: 52px; border-radius: 14px; }
.lf-trust h3 { margin: 0; font-size: 16px; }
.lf-trust p { margin: 0; color: var(--ink-muted); font-size: 13px; line-height: 1.55; }
.lf-faq { padding: 8px 18px; }
.lf-faq details {
  border-bottom: 1px solid rgba(78,96,126,.12);
  padding: 14px 2px;
}
.lf-faq details:last-child { border-bottom: 0; }
.lf-faq summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 14px;
  list-style: none;
}
.lf-faq summary::-webkit-details-marker { display: none; }
.lf-faq p {
  margin: 10px 0 2px;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.6;
}
.lf-footer-rich {
  display: grid;
  gap: 14px;
  padding: 28px 6px 36px;
  color: var(--ink-muted);
  font-size: 12px;
}
.lf-footer-rich strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
.lf-footer-rich nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.lf-footer-rich a { color: inherit; text-decoration: none; font-weight: 600; }

@media (max-width: 960px) {
  .lf-hero-rich { grid-template-columns: 1fr; }
  .lf-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lf-platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lf-platform-constellation { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lf-platform-card,
  .lf-platform-card.is-tile,
  .lf-platform-card.is-wide,
  .lf-platform-card.is-tall,
  .lf-platform-card.is-soft,
  .lf-platform-card.is-anchor { grid-column: auto; transform: none; min-height: 96px; flex-direction: row; align-items: center; }
  .lf-bot-card,
  .lf-steps,
  .lf-trust-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .lf-pillars,
  .lf-platform-grid { grid-template-columns: 1fr; }
  .lf-platform-constellation { grid-template-columns: 1fr; }
  .lf-platform-card,
  .lf-platform-card.is-tile,
  .lf-platform-card.is-wide,
  .lf-platform-card.is-tall,
  .lf-platform-card.is-soft,
  .lf-platform-card.is-anchor {
    grid-column: auto;
    transform: none;
    flex-direction: row;
    align-items: center;
    min-height: 96px;
  }
  .lf-spotlight-brand { flex-direction: column; }
  .hero-cta-row > .btn,
  .hero-cta-row > .telegram-button { flex: 1 1 auto; justify-content: center; }
}

/* Cinematic public stats */
.lf-cinematic-stats .lf-stat {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  opacity: 0;
  transform: translate3d(0, 22px, 0) scale(.94);
  transition:
    opacity .7s cubic-bezier(.16, 1, .3, 1),
    transform .85s cubic-bezier(.16, 1, .3, 1),
    box-shadow .35s ease;
  transition-delay: calc(var(--lf-stat-i, 0) * 90ms);
}
.lf-cinematic-stats .lf-stat.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
.lf-cinematic-stats .lf-stat::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgb(255 255 255 / 28%) 48%,
    transparent 62%
  );
  transform: translateX(-120%) skewX(-18deg);
  pointer-events: none;
  z-index: 1;
}
.lf-cinematic-stats .lf-stat.is-counted::before {
  animation: lf-stat-sheen 1.1s cubic-bezier(.22, 1, .36, 1) both;
}
.lf-cinematic-stats .lf-stat-value {
  position: relative;
  z-index: 2;
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  font-weight: 720;
  letter-spacing: -.045em;
  line-height: 1.05;
  color: var(--ink);
}
html[data-theme="ember"] .lf-cinematic-stats .lf-stat-value {
  color: #fff;
  text-shadow: 0 0 28px rgb(255 45 32 / 38%);
}
.lf-cinematic-stats .lf-stat-value.lf-stat-landed {
  animation: lf-stat-punch .55s cubic-bezier(.22, 1, .36, 1) both;
}
.lf-cinematic-stats .lf-stat > span {
  position: relative;
  z-index: 2;
  font-weight: 600;
  letter-spacing: .01em;
}
@keyframes lf-stat-sheen {
  from { transform: translateX(-130%) skewX(-18deg); }
  to { transform: translateX(130%) skewX(-18deg); }
}
@keyframes lf-stat-punch {
  0% { transform: scale(1); filter: blur(0); }
  35% { transform: scale(1.08); filter: blur(.3px); }
  100% { transform: scale(1); filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  .lf-cinematic-stats .lf-stat {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .lf-cinematic-stats .lf-stat::before,
  .lf-cinematic-stats .lf-stat-value.lf-stat-landed { animation: none; }
}
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: var(--space-5); margin: 0 4px var(--space-4); }
.section-heading h2 { margin: 6px 0 0; font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -.04em; font-weight: 700; }
.ios-count { display: grid; place-items: center; min-width: 34px; height: 30px; padding: 0 10px; border-radius: 999px; color: var(--blue); background: var(--blue-soft); font-size: 13px; font-weight: 750; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--space-3); }
.product-card { min-height: 162px; display: flex; align-items: center; gap: 19px; padding: 22px; color: inherit; text-decoration: none; }
.product-card:hover { box-shadow: var(--glass-depth); }
.product-card > * { position: relative; z-index: 2; }
.leaderboard > * { position: relative; z-index: 2; }
.product-icon img { display: block; border-radius: 17px; box-shadow: 0 10px 24px rgba(17,71,145,.18); }
.product-copy { min-width: 0; flex: 1; }
.product-copy h3 {
  margin: 6px 0 3px;
  font-size: clamp(16px, 2.2vw, 20px);
  letter-spacing: -.025em;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.product-copy p { margin: 0 0 12px; color: var(--ink-muted); font-size: 12px; }
.availability { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-size: 11px; font-weight: 700; }
.availability i { width: 6px; height: 6px; box-shadow: none; }
.offer-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.offer-tag {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 650; letter-spacing: .01em;
  color: var(--ink);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; }
.price-row strong { font-size: 15px; }
.price-row small { color: var(--ink-muted); font-weight: 550; }
.chevron { color: var(--ink-muted); font-size: 34px; font-weight: 300; }
[dir="rtl"] .chevron { transform: scaleX(-1); }
.empty-state { padding: 30px; color: var(--ink-muted); text-align: center; }
.empty-state.bare { background: none; }
.leaderboard { padding: 8px 20px; }
.leader-row { position: relative; z-index: 2; display: grid; grid-template-columns: 42px 1fr auto; gap: 14px; align-items: center; min-height: 76px; border-bottom: 1px solid rgba(78,96,126,.1); }
.leader-row:last-child { border-bottom: 0; }
.rank-badge { width: 34px; height: 34px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 12px; font-size: 13px; font-weight: 800; }
.seller-copy { display: grid; gap: 4px; }
.seller-copy span { color: var(--ink-muted); font-size: 11px; }
.seller-total { font-weight: 700; }
.public-shell footer { display: flex; justify-content: space-between; padding: 24px 6px; color: var(--ink-muted); font-size: 12px; }

/* Public product detail — buy-focused */
.product-page-shell { max-width: 1080px; overflow-x: clip; }
.back-link { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; color: var(--blue); text-decoration: none; font-size: 23px; }
.back-link span { font-size: 14px; font-weight: 620; }
.product-detail {
  margin-top: 20px;
  padding: clamp(22px, 4vw, 40px);
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 1.2fr;
  align-items: start;
  gap: clamp(22px, 4vw, 48px);
  overflow: hidden;
}
/* Product surfaces use global frost tokens (no local dark washes) */
.product-detail.glass,
.product-inventory.glass {
  background: var(--glass-bg-strong);
}
.product-detail > * { position: relative; z-index: 2; min-width: 0; }
.product-visual { display: grid; justify-items: center; gap: 14px; color: var(--ink-muted); font-size: 12px; }
.product-platform-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}
.app-icon {
  width: min(300px, 78vw);
  aspect-ratio: 1;
  padding: 12%;
  display: grid;
  place-items: center;
  border-radius: 28%;
  background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(219,231,249,.72));
  box-shadow:
    0 28px 56px rgba(42,72,124,.18),
    inset 0 1px 0 white;
}
html[data-theme="ember"] .app-icon {
  background: linear-gradient(145deg, rgb(40 10 14 / 80%), rgb(12 0 0 / 90%));
  box-shadow: 0 24px 48px rgb(0 0 0 / 55%), inset 0 1px 0 rgb(255 255 255 / 12%);
}
.app-icon img { width: 100%; height: 100%; object-fit: contain; border-radius: 24%; }
.product-info h1 {
  margin: 10px 0 8px;
  font-size: clamp(1.65rem, 4.2vw, 2.55rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}
.product-info > .lead { color: var(--ink-muted); line-height: 1.65; margin: 0 0 1rem; max-width: 38rem; }
.detail-price { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 1rem 0 1.25rem; }
.detail-price strong { font-size: clamp(1.25rem, 2.5vw, 1.65rem); font-variant-numeric: tabular-nums; }
.detail-price small { color: var(--ink-muted); font-size: 13px; }
.buy-button { display: inline-flex; justify-content: center; min-width: 200px; }
.buy-button-block {
  width: 100%;
  min-height: 52px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.privacy-note { font-size: 11px; color: var(--ink-muted); }

.product-buy-panel {
  margin-top: 1.15rem;
  padding: 1.25rem 1.3rem;
  border-radius: var(--radius-lg);
  display: grid;
  gap: .9rem;
  background: rgb(255 255 255 / 34%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 55%),
    0 10px 28px rgb(15 25 45 / 06%);
}
html[data-theme="ember"] .product-buy-panel {
  background: rgb(255 255 255 / 06%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 12%),
    0 12px 30px rgb(0 0 0 / 28%);
}
.product-buy-price { display: grid; gap: 4px; }
.product-buy-price .price-primary {
  font-size: clamp(1.55rem, 3.6vw, 2.1rem);
  font-weight: 750;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.product-buy-price .price-primary small {
  font-size: .45em;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0;
  margin-inline-start: .2em;
}
.product-buy-price .price-secondary {
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.product-buy-price .price-rate {
  font-size: 11px;
  color: var(--ink-muted);
  font-weight: 550;
}
.product-buy-form { margin: 0; }
.product-buy-card {
  margin-top: 1.1rem;
  padding: 0;
  display: grid;
  gap: .75rem;
}
.product-buy-card .buy-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}
.product-buy-card .field { max-width: 9rem; margin: 0; }
.product-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  margin: 1.1rem 0;
}
.product-spec {
  padding: .35rem 0;
  min-width: 0;
}
.product-spec span { display: block; font-size: 11px; color: var(--ink-muted); margin-bottom: .15rem; }
.product-spec strong { font-size: .95rem; font-weight: 650; }
.product-trust {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: .85rem 0 0;
}
.product-highlights {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .45rem;
}
.product-highlights li {
  padding: .2rem 0;
  font-size: .9rem;
  line-height: 1.45;
}
.product-highlights li::before {
  content: "✓ ";
  color: var(--green, #34c759);
  font-weight: 700;
}
.product-flash { margin: .75rem 0 0; font-size: .9rem; }
.product-flash.ok { color: var(--green, #34c759); }

.product-inventory {
  margin-top: 1rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  overflow: hidden;
}
.product-inventory .section-heading { margin-bottom: .35rem; }
.product-inv-list {
  display: grid;
  gap: 10px;
}
.product-inv-card {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: transparent;
  box-shadow: inset 0 0 0 1px rgb(120 130 150 / 12%);
}
html[data-theme="ember"] .product-inv-card {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 08%);
}
.product-inv-card.is-gone { opacity: .55; }
.product-inv-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.product-inv-card-head .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.product-capture-details {
  margin-top: 10px;
}
.product-capture-details summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  color: var(--accent-soft);
  list-style: none;
}
.product-capture-details summary::-webkit-details-marker { display: none; }
.product-capture-pre,
.delivery-pre {
  margin: 8px 0 0;
  padding: 12px 14px;
  max-height: min(420px, 55vh);
  overflow: auto;
  border-radius: 14px;
  background: rgb(10 16 28 / 78%);
  color: #e8eef8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  direction: ltr;
  text-align: left;
}
.product-capture-pre-full {
  max-height: min(72vh, 900px);
  margin-top: 0;
}
.product-bulk-log .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
html[data-theme="ember"] .product-capture-pre,
html[data-theme="ember"] .delivery-pre {
  background: rgb(0 0 0 / 72%);
}
.product-inv-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  -webkit-overflow-scrolling: touch;
}
.product-inv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
  min-width: 640px;
}
.product-inv-table th,
.product-inv-table td {
  padding: .55rem .6rem;
  text-align: start;
  border-bottom: 1px solid rgb(120 120 128 / 12%);
  white-space: nowrap;
}
.product-inv-table th {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: rgb(120 120 128 / 6%);
}
.product-inv-table td.name {
  font-weight: 600;
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-inv-table tr.is-gone { opacity: .45; }
.product-inv-table .inline-buy { display: inline; margin: 0; }
html[data-theme="ember"] .product-inv-table th {
  background: rgb(255 255 255 / 04%);
}
.jobs { overflow-x: clip; }
.job:hover { transform: none; }
.shell-page .job-row {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  min-width: 0;
}
.shell-page .job-row .flex-1 { min-width: 0; }
.shell-page .job-row h3 {
  margin: 0 0 .35rem;
  font-size: var(--text-sm);
  font-weight: 650;
  line-height: 1.25;
}
.shell-page .job-row .meta { flex-wrap: wrap; gap: .3rem; }
.shell-page .job-row .row {
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .65rem;
}

/* Login / auth sheets */
.login-wrap { min-height: 100svh; }
.auth-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom));
}
.login-card,
.auth-card {
  width: min(420px, 100%);
  padding: 0;
  overflow: hidden;
}
.auth-card-inner {
  display: grid;
  gap: 0;
  padding: 40px 32px 28px;
}
.login-brand {
  display: grid;
  justify-items: center;
  text-align: center;
  margin: 0 0 24px;
}
.login-mark {
  width: 88px;
  height: 88px;
  margin: 0 0 14px;
  border: none;
  border-radius: 22px;
  background: transparent;
  box-shadow:
    0 12px 28px rgb(15 25 45 / 12%),
    inset 0 1px 0 rgb(255 255 255 / 35%);
  object-fit: contain;
}
html[data-theme="ember"] .login-mark {
  background: transparent;
  box-shadow:
    0 14px 32px rgb(0 0 0 / 45%),
    inset 0 1px 0 rgb(255 255 255 / 12%);
}
.login-brand h1 {
  margin: 0;
  font-size: clamp(2.05rem, 5.2vw, 2.55rem);
  font-weight: 760;
  letter-spacing: -.045em;
  line-height: 1.05;
  color: var(--ink);
}
[dir="rtl"] .login-brand h1 { letter-spacing: -.02em; }
.login-heading {
  margin: 12px 0 0;
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: -.01em;
}
.login-lead {
  margin: 8px 0 0;
  font-size: var(--text-sm);
  line-height: 1.55;
  max-width: 22rem;
  color: var(--ink-muted);
}
.login-form { display: grid; gap: 4px; }
.login-field { display: grid; gap: 7px; margin: 0; }
.login-label {
  padding-inline: 4px;
  color: var(--ink-soft);
  font-size: var(--text-sm);
  font-weight: 650;
}
.login-field .field { margin: 0 0 12px; font-size: var(--text-md); }
.login-submit { width: 100%; margin-top: 8px; font-size: var(--text-md); }
.login-locale,
.auth-toolbar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.auth-provider-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 16px;
}
.auth-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  color: var(--ink-soft);
  background: rgb(120 120 128 / 10%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 10%);
}
.auth-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c7a100;
  box-shadow: 0 0 0 3px rgb(255 204 0 / 16%);
}
.auth-status-chip.is-ready .auth-status-dot {
  background: #30d158;
  box-shadow: 0 0 0 3px rgb(48 209 88 / 16%);
}
.auth-status-chip.is-wait { color: var(--ink-muted); }

.auth-alert {
  display: grid;
  gap: 4px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 16px;
  text-align: start;
  background: color-mix(in srgb, var(--red) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--red) 22%, transparent);
}
.auth-alert strong {
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
}
.auth-alert p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.auth-alert.is-info {
  background: color-mix(in srgb, var(--blue) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 28%, transparent);
}
.auth-alert.is-info strong {
  color: var(--blue-deep);
}


/* Centered success / error panels for device-link pages */
.auth-result {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  margin: 4px 0 18px;
  padding: 22px 18px 20px;
  border-radius: 22px;
  background: rgb(120 120 128 / 8%);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 10%),
    0 10px 28px rgb(0 0 0 / 12%);
}
.auth-result-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
}
.auth-result.is-success .auth-result-mark {
  color: #0b3b22;
  background: linear-gradient(160deg, #6dffb0, #30d158);
  box-shadow:
    0 0 0 6px rgb(48 209 88 / 14%),
    0 10px 24px rgb(48 209 88 / 22%);
}
.auth-result.is-error .auth-result-mark {
  color: #fff;
  background: linear-gradient(160deg, #ff7b86, #ff453a);
  box-shadow:
    0 0 0 6px rgb(255 69 58 / 14%),
    0 10px 24px rgb(255 69 58 / 22%);
}
.auth-result-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -.02em;
  color: var(--ink);
}
.auth-result.is-success .auth-result-title { color: #6dffb0; }
html:not([data-theme="ember"]) .auth-result.is-success .auth-result-title { color: #0a9f6a; }
.auth-result.is-error .auth-result-title { color: #ff8a93; }
html:not([data-theme="ember"]) .auth-result.is-error .auth-result-title { color: #d63a4a; }
.auth-result-body {
  margin: 0;
  max-width: 18.5rem;
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--ink-muted);
}
.auth-result.is-success {
  background: color-mix(in srgb, #30d158 10%, transparent);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, #30d158 28%, transparent),
    0 10px 28px rgb(0 0 0 / 10%);
}
.auth-result.is-error {
  background: color-mix(in srgb, var(--red) 10%, transparent);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--red) 26%, transparent),
    0 10px 28px rgb(0 0 0 / 10%);
}
.auth-chip-row {
  display: flex;
  justify-content: center;
  margin: 0 0 1rem;
}

/* Device-code hero (FlowMind / FlowBot link pages) */
.device-link-form {
  display: grid;
  gap: 14px;
  justify-items: stretch;
  margin-top: 4px;
}
.device-code-block {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 18px 16px 16px;
  border-radius: 22px;
  text-align: center;
  background:
    radial-gradient(120% 90% at 50% 0%, rgb(255 122 26 / 16%), transparent 55%),
    rgb(120 120 128 / 8%);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 10%),
    0 12px 32px rgb(0 0 0 / 16%);
}
html:not([data-theme="ember"]) .device-code-block {
  background:
    radial-gradient(120% 90% at 50% 0%, rgb(255 122 26 / 12%), transparent 55%),
    rgb(15 25 45 / 4%);
  box-shadow:
    inset 0 0 0 1px rgb(15 25 45 / 8%),
    0 12px 28px rgb(15 25 45 / 8%);
}
.device-code-label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
[dir="rtl"] .device-code-label {
  letter-spacing: .06em;
}
.device-code-field {
  width: 100%;
  max-width: 280px;
  min-height: 64px;
  margin: 0 auto;
  padding: 14px 18px;
  border: 0;
  border-radius: 18px;
  text-align: center !important;
  font-family: "Cascadia Mono", "SF Mono", ui-monospace, Consolas, monospace;
  font-size: clamp(1.55rem, 5vw, 1.85rem);
  font-weight: 750;
  letter-spacing: .18em;
  color: var(--ink);
  background: rgb(0 0 0 / 28%);
  box-shadow:
    inset 0 0 0 1px rgb(255 122 26 / 35%),
    inset 0 1px 0 rgb(255 255 255 / 10%),
    0 0 0 4px rgb(255 122 26 / 8%);
  outline: none;
  caret-color: #ff7a1a;
  direction: ltr;
  unicode-bidi: isolate;
}
html:not([data-theme="ember"]) .device-code-field {
  background: #fff;
  box-shadow:
    inset 0 0 0 1px rgb(255 122 26 / 40%),
    0 0 0 4px rgb(255 122 26 / 10%),
    0 8px 20px rgb(15 25 45 / 8%);
}
.device-code-field::placeholder {
  letter-spacing: .12em;
  color: var(--ink-muted);
  opacity: .55;
}
.device-code-field:focus {
  box-shadow:
    inset 0 0 0 1px rgb(255 122 26 / 65%),
    inset 0 1px 0 rgb(255 255 255 / 12%),
    0 0 0 5px rgb(255 122 26 / 16%),
    0 0 28px rgb(255 122 26 / 18%);
}
.device-code-hint {
  margin: 0;
  max-width: 16rem;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-muted);
  text-align: center;
}
.device-link-form .auth-cta {
  width: 100%;
}
.device-link-foot {
  margin: 1.25rem 0 0;
  font-size: .85rem;
  line-height: 1.5;
  opacity: .65;
  text-align: center;
  color: var(--ink-muted);
}

.auth-notes {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.auth-notes li {
  position: relative;
  padding-inline-start: 14px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-muted);
}
.auth-notes li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--blue) 70%, transparent);
}
html[data-theme="ember"] .auth-notes li::before {
  background: color-mix(in srgb, var(--red) 70%, transparent);
}

.auth-steps {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  counter-reset: auth-step;
}
.auth-steps li {
  counter-increment: auth-step;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.auth-steps li::before {
  content: counter(auth-step);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-soft, rgba(10, 132, 255, .14));
}
html[data-theme="ember"] .auth-steps li::before {
  color: #ff8a8a;
  background: rgb(220 38 38 / 16%);
}
.auth-live-status {
  margin: 0 0 14px;
  text-align: center;
  font-size: 12.5px;
}
.auth-storefront-link {
  display: block;
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: none;
}
.auth-storefront-link:hover { color: var(--blue); }

.google-button {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: var(--ink);
  font-size: var(--text-md);
}
.google-button.compact { width: auto; display: inline-flex; }
.google-button:disabled { opacity: .58; transform: none; cursor: not-allowed; }
.google-mark { width: 21px; height: 21px; flex: 0 0 auto; }

.oauth-stack {
  display: grid;
  gap: 10px;
  width: 100%;
}
.oauth-stack form { margin: 0; }
.auth-cta {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 650;
}

.telegram-button {
  width: 100%;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: #fff !important;
  text-shadow: none !important;
  font-size: var(--text-md);
  font-weight: 650;
  background: #229ed9 !important;
  box-shadow:
    0 6px 18px rgb(34 158 217 / 32%),
    inset 0 1px 0 rgb(255 255 255 / 22%) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.telegram-button:hover {
  background: #1b8fc7 !important;
  transform: none;
}
.telegram-button:active {
  background: #187faf !important;
  transform: scale(.98);
}
.telegram-button:disabled {
  opacity: .58;
  cursor: not-allowed;
  transform: none;
}
.telegram-button.compact {
  width: auto;
  min-height: 44px;
  padding: 10px 16px;
  font-size: var(--text-sm);
}
.telegram-button.btn-sm {
  min-height: 34px;
  padding: 6px 12px;
  gap: 7px;
  font-size: 13px;
}
.telegram-mark {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: #fff;
}
.telegram-button.btn-sm .telegram-mark {
  width: 16px;
  height: 16px;
}
html[data-theme="ember"] .telegram-button {
  background: #229ed9 !important;
  box-shadow:
    0 6px 18px rgb(0 0 0 / 40%),
    inset 0 1px 0 rgb(255 255 255 / 18%) !important;
}
html[data-theme="ember"] .telegram-button:hover {
  background: #2aabe6 !important;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 12px;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: color-mix(in srgb, var(--ink-muted) 28%, transparent);
}
.login-setup-note {
  margin: 14px 0 0;
  text-align: center;
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--ink-muted);
}
.access-state-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}
.access-state-card h1 {
  margin: 4px 0;
  font-size: 1.35rem;
  letter-spacing: -.02em;
}
.access-state-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 26px;
  font-weight: 760;
}
.access-state-icon.is-bad {
  color: var(--red);
  background: color-mix(in srgb, var(--red) 14%, transparent);
}
.access-state-icon.is-warn {
  color: #c7a100;
  background: rgb(255 204 0 / 16%);
}
.access-state-icon.is-wait {
  color: var(--blue);
  background: var(--blue-soft);
}

/* Verification, automation, SEO */
.shell-page .profile-card,
.shell-page .verification-card,
.shell-page .sessions-card,
.shell-page .identity-card { max-width: none; margin: 0; }
.profile-card, .verification-card { max-width: 780px; margin-left: auto; margin-right: auto; }
.identity-card .verified-identity { margin: 0; }
.identity-email { direction: ltr; unicode-bidi: plaintext; overflow-wrap: anywhere; }
.verification-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.verification-link { display: grid; gap: 10px; margin-top: 4px; }
.verification-link code { direction: ltr; padding: 12px; border-radius: 13px; background: rgba(27,35,49,.06); font-family: var(--mono); overflow-wrap: anywhere; }
.verification-link small { color: var(--ink-muted); }
.sessions-card { max-width: 1000px; margin: 16px auto 0; }
.session-list { display: grid; margin-top: 14px; }
.session-item { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 0; border-bottom: 1px solid rgba(78,96,126,.1); }
.session-item:last-child { border-bottom: 0; }
.session-item > div { min-width: 0; display: grid; gap: 6px; }
.session-item > div > span { font-size: 11px; overflow-wrap: anywhere; }
.current-session { display: inline-flex; margin-inline-start: 7px; padding: 4px 8px; border-radius: 999px; color: #16783f; background: rgba(34,165,91,.11); font-size: 10px; }
.request-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.access-request h3 { margin-bottom: 3px; }
.access-request .actions { justify-content: flex-start; margin-top: 17px; }
.settings-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 16px; }
.status-card { align-self: start; }
.status-list { display: grid; }
.status-list > div { display: flex; justify-content: space-between; gap: 15px; padding: 13px 0; border-bottom: 1px solid rgba(78,96,126,.1); }
.status-list span { color: var(--ink-muted); }
.status-list .ok { color: var(--green); }
.status-list .warn { color: var(--red); }
.bot-note { font-size: 12px; }
.ios-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.ios-switch-row span { display: grid; gap: 4px; }
.ios-switch-row small { color: var(--ink-muted); }
.ios-switch-row input { appearance: none; width: 51px; height: 31px; flex: 0 0 auto; padding: 2px; border-radius: var(--radius-pill); background: var(--switch-track); transition: .2s ease; cursor: pointer; }
.ios-switch-row input::before { content: ""; display: block; width: 27px; height: 27px; border-radius: 50%; background: var(--switch-thumb); box-shadow: 0 2px 7px rgb(0 0 0 / 16%); transition: transform .2s ease; }
.ios-switch-row input:checked { background: var(--switch-track-on); }
.ios-switch-row input:checked::before { transform: translateX(20px); }
.ios-switch-row input:disabled { opacity: .55; cursor: not-allowed; }
.ios-switch-row.is-override strong::after { content: " ·"; color: var(--accent); }
[dir="rtl"] .ios-switch-row input:checked::before { transform: translateX(-20px); }

.access-create-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.role-editor { grid-template-columns: minmax(0, 1fr) auto; margin-top: 14px; }
.permission-group { margin-top: 6px; padding: 2px 8px; border-radius: 10px; background: color-mix(in srgb, var(--glass-bg-strong) 70%, transparent); }
.permission-group-title {
  margin: 8px 2px 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.permission-grid { display: grid; }
.permission-row:last-child { border-bottom: none; }
.auth-audit-meta { display: grid; gap: 2px; justify-items: end; text-align: end; color: var(--ink-muted); font-size: 11px; }
.auth-audit-meta code { font-size: 10px; color: var(--ink-soft); }

html[data-theme="ember"] .permission-group { background: color-mix(in srgb, var(--accent) 10%, transparent); }

@media (max-width: 780px) {
  .access-create-form, .role-editor { grid-template-columns: 1fr; }
}
.inline-form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 10px; }
.inline-form .field { margin: 0; }
.compact-heading { margin-left: 0; margin-right: 0; }
.channel-list { display: grid; margin-top: 18px; }
.channel-row { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(160px,1fr) auto auto auto; gap: 10px; align-items: center; min-height: 64px; padding: 9px 0; border-bottom: 1px solid rgba(78,96,126,.1); }
.channel-row > div { display: grid; gap: 4px; }
.channel-row code, .channel-row small { color: var(--ink-muted); font-size: 11px; }
.toast-message { position: fixed; left: 50%; bottom: max(25px,env(safe-area-inset-bottom)); z-index: 80; transform: translateX(-50%); padding: 12px 18px; color: white; background: rgba(24,28,36,.84); backdrop-filter: blur(18px); border-radius: 999px; box-shadow: 0 12px 34px rgba(0,0,0,.17); }
.seo-hero h1 { max-width: 720px; font-size: clamp(32px, 4.6vw, 52px); letter-spacing: -.045em; }
.seo-hero p { max-width: 720px; color: var(--ink-muted); font-size: var(--text-md); line-height: 1.7; }
.seo-score-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.seo-score {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.seo-score > * { position: relative; z-index: 2; }
.seo-score strong { font-size: clamp(22px, 3vw, 30px); letter-spacing: -.04em; line-height: 1.1; }
.seo-score span { color: var(--ink-muted); font-size: var(--text-xs); }
.seo-checks { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space-3); margin: var(--space-4) 0 var(--space-5); }
.seo-check { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-4); min-height: 88px; }
.seo-check > * { position: relative; z-index: 2; }
.seo-check-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.seo-chip {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--ink-muted);
  background: rgb(255 255 255 / 35%);
  border: 1px solid rgb(255 255 255 / 28%);
}
.seo-check p { margin: 6px 0 0; color: var(--ink-muted); font-size: var(--text-sm); line-height: 1.55; }
.seo-owner-list {
  margin: var(--space-3) 0 0;
  padding-inline-start: 1.2em;
  color: var(--ink-soft);
  line-height: 1.75;
  font-size: var(--text-md);
}
.seo-owner-list li { margin-bottom: 8px; }
.check-icon { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 14px; font-weight: 800; font-size: 15px; }
.check-icon.pass { color: #16783f; background: rgba(34,165,91,.12); box-shadow: inset 0 1px 0 rgb(255 255 255 / 55%); }
.check-icon.warning { color: #96600a; background: rgba(244,174,50,.14); box-shadow: inset 0 1px 0 rgb(255 255 255 / 55%); }
@media (max-width: 900px) {
  .seo-score-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ——— App shell · iOS material layout ——— */
html:has(.app-shell),
body:has(.app-shell) {
  height: 100%;
  overflow: hidden;
}

/* Console: kill animated ambient stage behind sections (beams/grid/frames cause flicker) */
body:has(.app-shell) {
  background: #9aa7b8;
}
html[data-theme="ember"] body:has(.app-shell) {
  background: #0a0a0c;
}
body:has(.app-shell) > .ambient {
  background: inherit;
}
body:has(.app-shell) > .ambient::before,
body:has(.app-shell) > .ambient::after {
  content: none !important;
  animation: none !important;
}
body:has(.app-shell) > .ambient .blob {
  display: none !important;
}

#app:has(.app-shell),
.app-surface:has(.app-shell) {
  height: 100dvh;
  overflow: hidden;
}

.app-shell {
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 6px;
  padding: 6px;
  box-sizing: border-box;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink);
}

.shell-top,
.shell-side,
.shell-main,
.shell-status {
  min-height: 0;
}

.shell-top .glass-inner,
.shell-side .glass-inner,
.shell-main .glass-inner,
.shell-status .glass-inner {
  height: 100%;
  box-sizing: border-box;
}

.shell-top { border-radius: 18px; }
.shell-top-inner {
  direction: ltr; /* brand left / actions right in both fa and en */
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 8px 4px 12px;
}

.shell-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  font-size: var(--text-sm);
  letter-spacing: -.02em;
}
.shell-brand img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.shell-tabs {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 0;
  background: var(--glass-bg);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 28%);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  scrollbar-width: none;
}
.shell-tabs::-webkit-scrollbar { display: none; }

.lf-seg-thumb {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  background: var(--glass-bg-strong);
  box-shadow:
    0 4px 14px rgb(15 25 45 / 12%),
    inset 0 1px 0 rgb(255 255 255 / 55%);
  transition:
    transform var(--dur-switch, .48s) var(--ease-spring, cubic-bezier(.34, 1.45, .64, 1)),
    width var(--dur-switch, .48s) var(--ease-spring, cubic-bezier(.34, 1.45, .64, 1)),
    height .28s ease,
    opacity .2s ease,
    background .3s ease,
    box-shadow .3s ease;
}
.lf-seg-thumb.is-ready { opacity: 1; }

.shell-tab {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--ink-muted);
  text-decoration: none;
  font-size: var(--text-xs);
  font-weight: 600;
  transition: color .2s ease;
}
.shell-tab:hover { color: var(--ink); }
.shell-tab.active {
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}

html[data-theme="ember"] .shell-tabs {
  background: rgb(0 0 0 / 32%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 12%);
}
html[data-theme="ember"] .lf-seg-thumb {
  background:
    linear-gradient(165deg,
      rgb(255 130 110 / 58%) 0%,
      rgb(255 45 32 / 55%) 48%,
      rgb(120 0 0 / 68%) 100%);
  box-shadow:
    0 6px 18px rgb(180 0 0 / 38%),
    inset 0 1px 0 rgb(255 255 255 / 40%);
}
html[data-theme="ember"] .shell-tab:hover { color: #fff; }
html[data-theme="ember"] .shell-tab.active {
  color: #fff;
  background: transparent;
  box-shadow: none;
}

.shell-top-actions {
  direction: ltr;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-inline-start: auto;
}

.shell-user-chip {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: var(--radius-sm);
  border: 0;
  background: var(--glass-bg);
  box-shadow: var(--glass-shine);
  line-height: 1.15;
  text-decoration: none;
  color: inherit;
  max-width: 200px;
}
html[data-theme="ember"] .shell-user-chip {
  background: var(--glass-bg);
  box-shadow: var(--glass-shine);
}
.shell-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 18%), 0 1px 4px rgb(0 0 0 / 18%);
}
.shell-user-copy {
  display: grid;
  min-width: 0;
}
.shell-user-chip strong {
  font-size: 11px;
  color: var(--ink);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shell-user-chip .shell-user-copy > span {
  font-size: 10px;
  color: var(--ink-muted);
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 900px) {
  .shell-user-chip { display: inline-flex; }
}

.shell-body {
  display: flex;
  gap: 6px;
  min-height: 0;
  overflow: hidden;
  overflow-x: hidden;
}
.shell-app,
.app-shell {
  overflow-x: hidden;
  max-width: 100%;
}

.shell-side {
  flex: 0 0 220px;
  width: 220px;
  max-width: 220px;
  border-radius: 18px;
  overflow: hidden;
  contain: inline-size;
}

.shell-side-inner {
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  padding: 10px;
  gap: 10px;
}

.shell-side-scroll {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-inline-end: 2px;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}

.shell-nav-group { margin-bottom: 12px; }
.shell-nav-title {
  padding: 2px 10px 6px;
  color: var(--ink-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.shell-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  max-width: 100%;
  padding: 6px 10px;
  margin-bottom: 1px;
  border-radius: 10px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: var(--text-xs);
  font-weight: 500;
  transition: background .15s ease, color .15s ease;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.shell-nav-item:hover { background: rgb(120 120 128 / 10%); color: var(--ink); transform: none; }
.shell-nav-item.active {
  color: var(--ink);
  background: var(--glass-bg-strong);
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 35%);
}
html[data-theme="ember"] .shell-nav-item:hover { background: rgb(255 255 255 / 06%); }
html[data-theme="ember"] .shell-nav-item.active {
  color: #fff;
  background: color-mix(in srgb, var(--blue) 22%, rgb(0 0 0 / 45%));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 18%),
    inset -3px 0 0 var(--blue);
}
html[dir="ltr"][data-theme="ember"] .shell-nav-item.active {
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 18%),
    inset 3px 0 0 var(--blue);
}

.shell-nav-ico {
  width: 1.15rem;
  text-align: center;
  opacity: .7;
  font-size: 13px;
}
.shell-nav-ico-tg {
  display: inline-grid;
  place-items: center;
  opacity: 1;
  color: #229ed9;
}
.shell-nav-ico-tg svg {
  width: 16px;
  height: 16px;
  display: block;
}
.shell-nav-item.active .shell-nav-ico-tg { color: #229ed9; }
.shell-nav-label { flex: 1 1 auto; min-width: 0; }
.shell-nav-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.shell-drop {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px dashed color-mix(in srgb, var(--ink-muted) 40%, transparent);
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.shell-drop:hover {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--blue) 55%, transparent);
  background: color-mix(in srgb, var(--blue) 8%, transparent);
}

.shell-main {
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 18px;
  overflow: hidden;
}

.shell-main-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
}

.shell-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 10px 12px 12px;
  scrollbar-width: thin;
}
.shell-content:focus,
.shell-content:focus-visible,
[data-focus-root]:focus,
[data-focus-root]:focus-visible,
.shell-page h1:focus,
.shell-page h1:focus-visible {
  outline: none;
  box-shadow: none;
}

.shell-page {
  /* Console density — OpenAI/Apple ops: readable 14px body, 8px grid, calm radii */
  --text-xs: .75rem;      /* 12 */
  --text-sm: .8125rem;    /* 13 */
  --text-md: .875rem;     /* 14 */
  --text-lg: 1rem;        /* 16 */
  --text-xl: 1.125rem;    /* 18 */
  --text-2xl: 1.375rem;   /* 22 */
  --ctl-h-sm: 28px;
  --ctl-h-md: 32px;
  --ctl-h-lg: 40px;
  --ctl-px-sm: 10px;
  --ctl-px-md: 12px;
  --ctl-px-lg: 16px;
  --ctl-fs-sm: .75rem;
  --ctl-fs-md: .8125rem;
  --ctl-fs-lg: .875rem;
  --btn-primary-glow: none;
  --btn-radius: 10px;
  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius: var(--radius-md);
  --space-3: 8px;
  --space-4: 12px;
  --space-5: 16px;
  display: grid;
  gap: 12px;
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: 0;
  font-size: var(--text-md);
  line-height: 1.45;
  letter-spacing: -.01em;
}

/* Compact cards inside console */
.shell-page .hero-card,
.shell-page > .glass.hero-card,
.shell-page .glass.hero-card {
  padding: 16px 18px;
  margin-bottom: 0;
  border-radius: var(--radius-lg);
}
.shell-page .hero-card h1,
.shell-page .hero-card h2,
.shell-page .glass.hero-card h2 {
  margin: 2px 0 6px;
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.25;
}
.shell-page .hero-card p {
  margin: 0 0 8px;
  line-height: 1.5;
  font-size: var(--text-sm);
}
.shell-page .eyebrow {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .04em;
  gap: 6px;
}
.shell-page .field {
  margin: 8px 0 0;
  min-height: var(--ctl-h-md);
  padding: 8px 12px;
  font-size: var(--ctl-fs-md);
  border-radius: var(--radius-sm);
}
.shell-page textarea.field {
  min-height: 80px;
  padding: 10px 12px;
  line-height: 1.45;
}
.shell-page .btn {
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
  gap: 6px;
  font-weight: 600;
  border-radius: var(--btn-radius);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 22%);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
}
.shell-page .btn:hover { transform: none; }
.shell-page .btn-sm {
  min-height: 26px;
  padding: 0 8px;
  font-size: 11px;
  gap: 4px;
  border-radius: calc(var(--btn-radius) - 1px);
}
.shell-page .btn-primary {
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 28%);
}
.shell-page .btn-danger {
  background: color-mix(in srgb, var(--red) 78%, transparent);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 18%);
}
.shell-page .btn-ghost {
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 14%);
}
/* Beat theme-specific button glow (ember neon) inside console */
html[data-theme="ember"] .shell-page .btn,
html[data-theme="ember"] .shell-page .btn-primary,
html[data-theme="ember"] .shell-page .btn-danger,
html[data-theme="ember"] .shell-page .btn-ghost {
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 20%);
}
html[data-theme="ember"] .shell-page .btn-primary {
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 28%);
}
.shell-page .btn-ico {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  display: block;
}
.shell-page .btn-ico svg {
  display: block;
  width: 100%;
  height: 100%;
}
.shell-page .row-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}
.shell-page .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  justify-content: flex-start;
}
.shell-page .inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  margin-top: 8px;
}
.shell-page .inline-form .field { margin: 0; }
.shell-page .access-create-form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(120px, .7fr) auto;
}
.shell-page .access-create-form .btn { grid-column: auto; width: auto; }

/* Apple Settings–style grouped list */
.shell-page .lf-panel.hero-card,
.shell-page .lf-panel.glass.hero-card {
  padding: 12px 14px;
}
.shell-page .lf-list {
  display: grid;
  gap: 0;
  margin-top: 8px;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgb(120 130 150 / 12%);
}
.shell-page .lf-list-item { border-bottom: 1px solid var(--hairline); }
.shell-page .lf-list-item:last-child { border-bottom: 0; }
.shell-page .lf-list-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 8px 10px;
}
.shell-page .lf-list-row-actions {
  grid-template-columns: minmax(0, 1fr) auto;
}
.shell-page .lf-avatar {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-soft);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 16%);
}
.shell-page .lf-avatar-img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  flex: 0 0 auto;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 16%);
}
.shell-page .lf-doc-lines {
  display: grid;
  gap: 4px;
  padding: 0 10px 8px;
  font-size: 11px;
  color: var(--ink-muted);
}
.shell-page .lf-list-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.shell-page .lf-list-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shell-page .lf-list-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--ink-muted);
}
.shell-page .lf-list-trail {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.shell-page .field.field-inline {
  margin: 0;
  min-height: 28px;
  width: auto;
  min-width: 118px;
  max-width: 160px;
  padding: 4px 8px;
  font-size: 11px;
}
.shell-page .lf-disclosure {
  margin: 0;
  padding: 0 10px 8px;
  border-top: 1px solid color-mix(in srgb, var(--hairline) 70%, transparent);
  background: transparent;
}
.shell-page .lf-disclosure > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 32px;
  padding: 6px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}
.shell-page .lf-disclosure > summary::-webkit-details-marker { display: none; }
.shell-page .lf-disclosure > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-inline-end: 1.5px solid var(--ink-muted);
  border-bottom: 1.5px solid var(--ink-muted);
  transform: rotate(45deg);
  opacity: .7;
  transition: transform .18s ease;
}
.shell-page .lf-disclosure[open] > summary::after { transform: rotate(-135deg); }
.shell-page .lf-disclosure-tools {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 4px;
}
.shell-page .lf-list > .lf-list-row {
  border-bottom: 1px solid var(--hairline);
}
.shell-page .lf-list > .lf-list-row:last-child { border-bottom: 0; }
.shell-page .lf-list .auth-audit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 8px 10px;
  min-height: 44px;
  border-bottom: 1px solid var(--hairline);
}

.shell-page .channel-list {
  display: grid;
  gap: 0;
  margin-top: 8px;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgb(120 130 150 / 12%);
}
.shell-page .channel-row,
.shell-page .product-automation-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  margin: 0;
  border-bottom: 1px solid var(--hairline);
}
.shell-page .channel-row:last-child,
.shell-page .product-automation-row:last-child { border-bottom: 0; }
.shell-page .channel-row > .channel-meta,
.shell-page .product-automation-row > .channel-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.shell-page .channel-row > .row-actions,
.shell-page .product-automation-row > .row-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  width: auto;
  justify-self: end;
}
.shell-page .channel-row .row-actions .btn,
.shell-page .product-automation-row .row-actions .btn {
  width: auto;
  flex: 0 0 auto;
}

/* Dense product / job cards → Settings-list feel */
.shell-page .jobs {
  display: grid;
  gap: 6px;
}
.shell-page .jobs > .glass.job {
  padding: 0;
  border-radius: 12px;
}
.shell-page .jobs .job-row {
  gap: 10px;
  padding: 8px 10px;
  align-items: center;
}
.shell-page .jobs .avatar-sm {
  width: 36px !important;
  height: 36px !important;
}
.shell-page .jobs h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}
.shell-page .jobs .meta { gap: 4px; margin-top: 4px; }
.shell-page .jobs .chip { padding: 2px 8px; font-size: 10px; }
.shell-page .item-list { gap: 4px; margin-top: 8px; }
.shell-page .item-row { padding: 8px 10px; border-radius: 10px; }

@media (max-width: 780px) {
  .shell-page .lf-list-row {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .shell-page .lf-list-row-actions {
    grid-template-columns: 1fr;
  }
  .shell-page .lf-list-trail {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
  .shell-page .access-create-form {
    grid-template-columns: 1fr;
  }
}

.shell-page .credential-form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
}
.shell-page .settings-grid {
  display: grid;
  grid-template-columns: 1.35fr .75fr;
  gap: 10px;
}
.shell-page .ios-switch-row {
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--hairline) 80%, transparent);
}
.shell-page .ios-switch-row span { gap: 2px; }
.shell-page .ios-switch-row strong {
  font-size: var(--text-sm);
  font-weight: 600;
}
.shell-page .ios-switch-row small {
  font-size: 11px;
  line-height: 1.35;
}
.shell-page .ios-switch-row input {
  width: 42px;
  height: 26px;
  padding: 2px;
}
.shell-page .ios-switch-row input::before {
  width: 22px;
  height: 22px;
}
.shell-page .ios-switch-row input:checked::before { transform: translateX(16px); }
[dir="rtl"] .shell-page .ios-switch-row input:checked::before { transform: translateX(-16px); }
.shell-page .channel-row strong {
  font-size: var(--text-sm);
  font-weight: 600;
}
.shell-page .status-list > div {
  gap: 10px;
  padding: 8px 0;
}
.shell-page .status-list strong {
  font-size: var(--text-sm);
  font-weight: 650;
}
.shell-page .bot-note { font-size: 11px; margin: 8px 0 0; }
.shell-page .section-heading {
  margin: 0 0 6px;
  gap: var(--space-3);
}
.shell-page .section-heading h2 {
  font-size: var(--text-lg);
}
.shell-page .verified-identity {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin: 8px 0;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
}
.shell-page label.muted {
  display: block;
  margin: 8px 0 0;
  font-size: 11px;
  font-weight: 500;
}
.shell-page .verification-state {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 650;
}

/* Shell page surfaces — same liquid-glass tokens as public pages (no local frost recipes) */
.shell-content .shell-page > .glass,
.shell-panel,
.overview-card {
  position: relative;
  border: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  isolation: isolate;
  color: var(--ink);
  background: var(--glass-bg);
  box-shadow:
    var(--glass-depth),
    var(--glass-shine);
  backdrop-filter: blur(var(--glass-blur)) saturate(175%) brightness(1.04);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(175%) brightness(1.04);
}
html[data-theme="ember"] .shell-content .shell-page > .glass,
html[data-theme="ember"] .shell-panel,
html[data-theme="ember"] .overview-card {
  background: var(--glass-bg);
  box-shadow:
    var(--glass-depth),
    var(--glass-shine);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%) brightness(.98);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%) brightness(.98);
}
/* No painted sheen layers on shell sections — glass tokens only */
.shell-panel::before,
.shell-panel::after,
.overview-card::before,
.overview-card::after {
  content: none !important;
}
.shell-content .shell-page > .glass > .glass-inner,
.shell-panel > *,
.overview-card > * {
  position: relative;
  z-index: 1;
}
.shell-content .shell-page > .glass > .glass-inner,
.shell-panel {
  padding: 12px 14px;
  box-sizing: border-box;
}
.shell-content .shell-page > .glass.hero-card > .glass-inner {
  padding: 0;
}
.shell-panel {
  display: grid;
  gap: 12px;
  color: var(--ink);
  padding: 16px 18px;
}
.shell-content .shell-page > .glass.glass-sm { border-radius: var(--radius-md); }

/* Soft translucent chrome so wallpaper shows through */
.shell-main.glass > .glass-inner {
  background: transparent;
}
html[data-theme="ember"] .shell-top.glass::after,
html[data-theme="ember"] .shell-side.glass::after,
html[data-theme="ember"] .shell-main.glass::after,
html[data-theme="ember"] .shell-status.glass::after,
html:not([data-theme="ember"]) .shell-top.glass::after,
html:not([data-theme="ember"]) .shell-side.glass::after,
html:not([data-theme="ember"]) .shell-main.glass::after,
html:not([data-theme="ember"]) .shell-status.glass::after,
html[data-theme="ember"] .shell-content .shell-page > .glass::after {
  box-shadow: none;
}

.shell-page .field { margin: 6px 0 0; }
.shell-page .shell-panel { max-width: none; margin: 0; }
.shell-page .eyebrow + h2 { margin-top: 6px; }
.shell-page h2.mb-3 { margin: 6px 0 var(--space-3); }
.shell-page .actions.actions-start { justify-content: flex-start; }
.shell-page h2 {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.25;
  color: var(--ink);
}
.shell-page h3 {
  margin: 0;
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.shell-page p {
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  font-size: var(--text-sm);
  line-height: 1.45;
  margin: 0;
}
.shell-page .muted {
  color: var(--ink-muted);
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 1.45;
}

.shell-page > .hero-card,
.shell-page > .glass.hero-card { margin-bottom: 0; }

.shell-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.shell-toolbar h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.3;
  color: var(--ink);
}
.shell-toolbar .muted {
  margin: 4px 0 0;
  font-size: var(--text-sm);
  color: var(--ink-muted);
  font-weight: 400;
  max-width: 42rem;
  line-height: 1.45;
}
.shell-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.overview-card {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  min-height: 92px;
}
.overview-label {
  display: block;
  color: var(--ink-muted);
  font-size: 10px;
  font-weight: 550;
  margin-bottom: 4px;
  letter-spacing: .02em;
}
.overview-value {
  display: block;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.shell-page .overview-grid.lf-cinematic-stats .lf-stat {
  min-width: 0;
  padding: 14px 16px;
  opacity: 1;
  transform: none;
}
.shell-page .overview-grid.lf-cinematic-stats .lf-stat-value,
.shell-page .overview-grid.lf-cinematic-stats .overview-value {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 700;
}

.overview-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 0;
  background: color-mix(in srgb, var(--blue) 12%, var(--glass-bg));
  box-shadow:
    var(--glass-depth),
    var(--glass-shine);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
}
.overview-alert strong { color: var(--ink); }

.shell-status { border-radius: 14px; }
.shell-status-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  min-height: 28px;
  padding: 4px 12px;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 500;
}
.shell-status-inner b {
  color: var(--ink);
  font-weight: 600;
  margin-inline-end: 3px;
  font-variant-numeric: tabular-nums;
}
.shell-status-spacer { flex: 1 1 auto; }
.shell-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
}
.shell-online i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 22%, transparent);
}

/* Mobile bottom dock — liquid glass segmented bar (hidden on desktop) */
.shell-dock {
  display: none;
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  border-radius: 28px;
  overflow: hidden;
}
.shell-dock-inner {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  gap: 2px;
  min-height: 58px;
  padding: 5px;
  height: auto !important;
}
.shell-dock .lf-seg-thumb {
  border-radius: 22px;
  background: rgb(255 255 255 / 88%);
  box-shadow:
    0 6px 18px rgb(15 25 45 / 14%),
    inset 0 1px 1px rgb(255 255 255 / 85%);
}
html[data-theme="ember"] .shell-dock .lf-seg-thumb {
  background: linear-gradient(180deg, rgb(255 69 58 / 92%) 0%, rgb(160 0 0 / 95%) 100%);
  box-shadow:
    0 8px 22px rgb(120 0 0 / 45%),
    inset 0 1px 1px rgb(255 255 255 / 30%);
}
.shell-dock-tab {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  padding: 6px 4px;
  border-radius: 22px;
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: -.01em;
  transition: color .22s ease;
}
.shell-dock-tab.active { color: var(--ink); }
html[data-theme="ember"] .shell-dock-tab.active { color: #fff; }
.shell-dock-ico {
  font-size: 15px;
  line-height: 1;
  opacity: .85;
}

html[data-theme="ember"] .shell-top,
html[data-theme="ember"] .shell-side,
html[data-theme="ember"] .shell-main,
html[data-theme="ember"] .shell-status,
html[data-theme="ember"] .shell-dock {
  isolation: isolate;
}

html[data-theme="ember"] .verified-identity {
  background: rgb(255 255 255 / 5%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 8%);
}
html[data-theme="ember"] .verification-state.verified {
  color: #8ce99a;
  background: rgb(48 209 88 / 14%);
}
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  align-items: center;
}
.handle-chip {
  font-family: var(--mono);
  direction: ltr;
}

/* —— Profile page (liquid glass) —— */
.profile-page {
  display: grid;
  gap: 14px;
  max-width: 980px;
}
.profile-hero {
  position: relative;
  overflow: visible;
  padding: 18px 18px 16px;
  display: grid;
  gap: 0;
}
.profile-hero-glow {
  pointer-events: none;
  position: absolute;
  inset: -40% auto auto -20%;
  width: 55%;
  height: 120%;
  background:
    radial-gradient(ellipse at 30% 20%, color-mix(in srgb, var(--blue) 28%, transparent), transparent 62%),
    radial-gradient(ellipse at 80% 70%, color-mix(in srgb, var(--accent, #34c759) 16%, transparent), transparent 58%);
  opacity: .55;
  filter: blur(8px);
  border-radius: inherit;
}
html[data-theme="ember"] .profile-hero-glow {
  background:
    radial-gradient(ellipse at 28% 18%, rgb(220 38 38 / 22%), transparent 60%),
    radial-gradient(ellipse at 78% 72%, rgb(255 255 255 / 6%), transparent 55%);
}
.profile-hero-main {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}
.profile-avatar-menu {
  align-items: center;
  z-index: 8;
}
.profile-avatar-trigger {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.profile-avatar-ring {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  padding: 3px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 55%), rgb(255 255 255 / 8%) 42%, rgb(255 255 255 / 22%));
  box-shadow:
    0 10px 28px rgb(0 0 0 / 18%),
    inset 0 1px 0 rgb(255 255 255 / 40%);
  transition: transform .2s var(--ease-out, ease), box-shadow .2s ease;
}
.profile-avatar-trigger:hover .profile-avatar-ring,
.profile-avatar-menu.is-open .profile-avatar-ring {
  transform: scale(1.02);
  box-shadow:
    0 14px 34px rgb(0 0 0 / 22%),
    inset 0 1px 0 rgb(255 255 255 / 48%),
    0 0 0 3px color-mix(in srgb, var(--blue) 28%, transparent);
}
html[data-theme="ember"] .profile-avatar-ring {
  background:
    linear-gradient(145deg, rgb(255 255 255 / 22%), rgb(220 38 38 / 28%) 50%, rgb(255 255 255 / 10%));
}
html[data-theme="ember"] .profile-avatar-trigger:hover .profile-avatar-ring,
html[data-theme="ember"] .profile-avatar-menu.is-open .profile-avatar-ring {
  box-shadow:
    0 14px 34px rgb(0 0 0 / 35%),
    inset 0 1px 0 rgb(255 255 255 / 18%),
    0 0 0 3px rgb(220 38 38 / 35%);
}
.profile-avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: rgb(120 120 128 / 12%);
}
.profile-avatar-edit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  color: var(--ink-soft, var(--ink));
  background: var(--glass-bg, rgb(255 255 255 / 42%));
  box-shadow: var(--glass-shine, inset 0 1px 0 rgb(255 255 255 / 40%));
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
}
.profile-avatar-chevron {
  width: 7px;
  height: 7px;
  margin-top: -2px;
  border-inline-end: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
  opacity: .7;
  transition: transform .18s ease;
}
.profile-avatar-menu.is-open .profile-avatar-chevron {
  margin-top: 2px;
  transform: rotate(-135deg);
}
.profile-avatar-panel {
  inset-inline-start: 50%;
  width: min(300px, calc(100vw - 28px));
}
.profile-avatar-upload {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  min-height: 30px !important;
  padding: 0 12px !important;
  font-size: 11px !important;
}
.profile-avatar-upload .input-hidden {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  display: block !important;
  width: 100%;
  height: 100%;
}
.profile-hero-copy { min-width: 0; display: grid; gap: 6px; }
.profile-hero-name {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.profile-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 12px;
}
.profile-role-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  color: var(--blue);
  background: var(--blue-soft, rgba(0, 122, 255, .12));
}
html[data-theme="ember"] .profile-role-chip {
  color: #ff8a8a;
  background: rgb(220 38 38 / 16%);
}
.profile-meta-sep { color: var(--ink-muted); opacity: .6; }
.profile-hero-bio {
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft, var(--ink));
  max-width: 42rem;
}
.profile-preset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.profile-preset {
  aspect-ratio: 1;
  width: 100%;
  height: auto;
  padding: 3px;
  border: 0;
  border-radius: 50%;
  background: rgb(120 120 128 / 10%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 12%);
  cursor: pointer;
  transition: transform .18s var(--ease-out, ease), box-shadow .18s ease;
}
.profile-preset img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.profile-preset:hover { transform: translateY(-1px) scale(1.03); }
.profile-preset.is-selected {
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--blue) 70%, transparent),
    0 4px 14px rgb(0 0 0 / 16%);
}
html[data-theme="ember"] .profile-preset.is-selected {
  box-shadow:
    0 0 0 2px rgb(220 38 38 / 70%),
    0 4px 14px rgb(0 0 0 / 28%);
}
.profile-avatar-msg { font-size: 12px; margin-top: 8px !important; }

.shell-page select.field {
  padding-inline-end: 1.85rem;
  background-position:
    center top,
    right 8px center;
  background-size: auto, 10px 6px;
}
[dir="rtl"] .shell-page select.field {
  background-position:
    center top,
    left 8px center;
}

.profile-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.profile-layout .profile-form-card {
  grid-column: 1 / -1;
}
.profile-identity-card,
.profile-form-card {
  display: grid;
  gap: 12px;
  align-content: start;
}
.profile-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.profile-field {
  display: grid;
  gap: 5px;
  margin: 0;
}
.profile-field-full { grid-column: 1 / -1; }
.profile-page .profile-cta {
  min-height: 34px;
  padding: 0 14px;
  font-size: 12.5px;
  font-weight: 650;
}
.profile-page .telegram-button.profile-cta,
.profile-page .google-button.profile-cta {
  min-height: 36px;
  padding: 0 14px;
}
.profile-page .profile-actions .btn:not(.profile-cta):not(.btn-sm) {
  min-height: 32px;
  padding: 0 12px;
}
.shell-page .profile-card,
.shell-page .verification-card,
.shell-page .sessions-card,
.shell-page .identity-card,
.shell-page .profile-hero { max-width: none; margin: 0; }
.profile-page .sessions-card { margin: 0; max-width: none; }

.identity-grid {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0;
}
.identity-grid .profile-card,
.identity-grid .identity-card {
  max-width: none;
  margin: 0;
}
.verification-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.verification-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}
.verification-state.verified { color: #248a3d; background: rgba(52,199,89,.14); }
.verification-state.pending { color: #9a6700; background: rgba(255,204,0,.16); }
.verified-identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgb(120 120 128 / 8%);
}
.verified-identity span {
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 11px;
}

.api-token-box {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgb(0 0 0 / 20%);
  color: var(--ink);
  font-family: var(--mono);
  font-size: var(--text-xs);
  word-break: break-all;
  overflow-wrap: anywhere;
  line-height: 1.45;
}
.api-sample {
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  overflow: auto;
  max-width: 100%;
  background: rgb(0 0 0 / 18%);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  direction: ltr;
  text-align: left;
}
html:not([data-theme="ember"]) .api-token-box,
html:not([data-theme="ember"]) .api-sample {
  background: rgb(15 20 30 / 6%);
}

@media (max-width: 960px) {
  .shell-side { display: none; }
  .shell-tabs { display: none; }
  .shell-logout-desk { display: none; }
  .shell-dock { display: block; }
  .shell-status { display: none; }
  .app-shell { padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
  .overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .identity-grid { grid-template-columns: 1fr; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-hero-main { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .profile-hero-copy { justify-items: center; }
  .profile-hero-meta { justify-content: center; }
  .profile-hero-bio { margin-inline: auto; }
  .profile-actions { justify-content: center; }
  .profile-form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .app-shell { padding: 6px; gap: 6px; }
  .shell-brand span { display: none; }
  .shell-tab { padding: 5px 9px; font-size: 11px; }
  .shell-status-inner span:nth-child(n+3):not(.shell-online):not(.shell-status-spacer) { display: none; }
  .overview-grid { grid-template-columns: 1fr 1fr; }
  .shell-content { padding: 10px 12px; }
  .shell-toolbar h1 { font-size: 1.05rem; }
  .overview-action-grid,
  .overview-platforms { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .page-shell { padding: 12px 12px 72px; }
  .public-shell { width: min(100% - 20px,1180px); padding-top: 10px; }
  .ios-nav, .topbar { top: 7px; min-height: 62px; border-radius: 22px; }
  .nav-label { display: none; }
  .public-shell main { gap: 48px; padding-top: 18px; }
  .public-hero { min-height: 360px; padding: 28px 20px; }
  .product-grid, .settings-grid, .seo-checks, .identity-grid, .request-grid { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; text-align: center; }
  .product-info .availability { justify-content: center; }
  .detail-price { justify-content: center; }
  .product-info h1 { line-height: 1.1; }
  .product-specs { grid-template-columns: 1fr 1fr; }
  .product-buy-card .buy-row { justify-content: center; }
  .product-highlights { text-align: start; }
  .inline-form { grid-template-columns: 1fr; }
  .channel-row { grid-template-columns: 1fr; }
  .channel-row .row-actions,
  .product-automation-row .row-actions { justify-content: flex-start; }
  .product-automation-row { grid-template-columns: 1fr; }
  .verification-heading, .session-item { align-items: stretch; flex-direction: column; }
  .session-item .btn { align-self: flex-start; }
}

@media (max-width: 480px) {
  .wordmark small { display: none; }
  .wordmark img { width: 48px; height: 48px; }
  .topbar .nav-actions { gap: 6px; }
  .hero-card { padding: 23px; }
  .product-card { min-height: 142px; padding: 17px; gap: 13px; }
  .product-icon img { width: 50px; height: 50px; }
  .hero-metrics { grid-template-columns: 1fr 1fr; }
  .login-card { padding: 25px; }
}

.lf-price-preview {
  padding: .75rem .9rem;
  border-radius: var(--radius-md);
  background: rgb(120 120 128 / 8%);
}
.lf-price-preview .meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .4rem;
}
.shell-page .lf-list-row.lf-demo-row {
  outline: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  outline-offset: -1px;
}

/* Formal consignment receipt (liquid glass document) */
.lf-formal-receipt {
  position: relative;
  overflow: hidden;
  max-width: 40rem;
  margin: 0 auto;
  padding: var(--space-5) var(--space-5) var(--space-4);
  border-radius: var(--radius-xl);
}
.lf-formal-receipt-shine {
  pointer-events: none;
  position: absolute;
  inset: -20% -10% auto;
  height: 55%;
  background: linear-gradient(180deg, rgb(255 255 255 / 22%), transparent);
  opacity: .55;
}
html[data-theme="ember"] .lf-formal-receipt-shine {
  background: linear-gradient(180deg, rgb(255 40 60 / 16%), transparent);
}
.lf-formal-receipt-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  align-items: flex-start;
  margin-bottom: var(--space-4);
}
.lf-formal-receipt-head h1 {
  margin: .15rem 0 0;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 650;
  letter-spacing: -.02em;
}
.lf-formal-receipt-id {
  font-variant-numeric: tabular-nums;
  font-size: var(--text-sm);
  font-weight: 650;
  color: var(--ink-muted);
  padding: .35rem .65rem;
  border-radius: var(--radius-sm);
  background: rgb(120 120 128 / 10%);
}
.lf-formal-receipt-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.lf-formal-receipt-grid > div {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  min-width: 0;
}
.lf-formal-receipt-grid .span-2 { grid-column: 1 / -1; }
.lf-formal-timeline {
  position: relative;
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
  display: grid;
  gap: .55rem;
}
.lf-formal-timeline li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  align-items: baseline;
  padding: .7rem .85rem;
  border-radius: var(--radius-md);
  background: rgb(120 120 128 / 8%);
}
.lf-formal-timeline li.dim { opacity: .55; }
.lf-formal-timeline b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.lf-formal-receipt-foot { position: relative; }
.lf-sealed-detail {
  margin: 0;
  max-height: 50vh;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  line-height: 1.45;
  padding: .75rem;
  border-radius: var(--radius-md);
  background: rgb(0 0 0 / 6%);
}
@media (max-width: 560px) {
  .lf-formal-receipt-grid { grid-template-columns: 1fr; }
  .lf-formal-timeline li { flex-direction: column; align-items: flex-start; }
}
@media print {
  .shell-sidebar, .shell-tabs, .shell-dock, .shell-status, .shell-top { display: none !important; }
  .lf-formal-receipt { box-shadow: none; max-width: none; }
}

a.overview-card {
  text-decoration: none;
  color: inherit;
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 92px;
  padding: 14px 16px;
}
.overview-hint {
  display: block;
  margin-top: 6px;
  color: var(--ink-muted);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 500;
}
.overview-home {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 12px;
  align-items: start;
}
.overview-stack { display: grid; gap: 12px; }
.overview-panel {
  padding: 16px 16px 14px;
  display: grid;
  gap: 12px;
}
.overview-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.overview-panel-head h2 {
  margin: 4px 0 0;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -.02em;
}
.overview-empty {
  margin: 0;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.5;
}
.overview-feed { display: grid; gap: 2px; }
.overview-feed-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 8px 8px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
}
.overview-feed-row.static { grid-template-columns: 28px minmax(0, 1fr); }
.overview-feed-row:hover { background: rgb(120 130 150 / 8%); }
.overview-feed-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent-soft);
  font-size: 12px;
  font-weight: 700;
}
.overview-feed-copy { display: grid; gap: 2px; min-width: 0; }
.overview-feed-copy strong {
  font-size: 13px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.overview-feed-copy span { color: var(--ink-muted); font-size: 11px; }
.overview-feed-cta {
  color: var(--accent-soft);
  font-size: 11px;
  font-weight: 650;
}
.overview-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.overview-action {
  display: grid;
  gap: 4px;
  padding: 12px 13px;
  text-decoration: none;
  color: inherit;
  min-height: 74px;
}
.overview-action strong { font-size: 13px; letter-spacing: -.01em; }
.overview-action span { color: var(--ink-muted); font-size: 11px; line-height: 1.4; }
.sort-steps {
  margin-top: 4px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 780px) {
  .sort-steps { grid-template-columns: 1fr; }
}
.shell-page .credential-form {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 8px;
  align-items: end;
}
@media (max-width: 780px) {
  .shell-page .credential-form { grid-template-columns: 1fr; }
}
.overview-platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.overview-platform {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 8px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
}
.overview-platform:hover { background: rgb(120 130 150 / 8%); }
.overview-platform img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.overview-platform span { display: grid; gap: 1px; min-width: 0; }
.overview-platform strong {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.overview-platform small { color: var(--ink-muted); font-size: 10px; }
.auth-otp-form { display: grid; gap: 10px; }
.auth-otp-form .login-label { margin: 0; }
.auth-otp-field {
  margin: 0;
  min-height: 52px;
  text-align: center;
  letter-spacing: .42em;
  font-size: 1.4rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
[dir="rtl"] .auth-otp-field { letter-spacing: .28em; }
@media (max-width: 960px) {
  .overview-home { grid-template-columns: 1fr; }
}

.shell-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 240px;
  padding: 36px 20px;
  text-align: center;
  color: var(--ink-muted);
}
.shell-empty strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 650;
}
.shell-empty p { margin: 0; max-width: 28rem; line-height: 1.5; }
.shell-page .drop {
  min-height: 168px;
  border-radius: var(--radius-lg);
  border: 1px dashed color-mix(in srgb, var(--accent) 28%, transparent);
  background: color-mix(in srgb, var(--glass-bg) 70%, transparent);
}
.shell-page .drop h2 { font-size: 1.35rem; }
.shell-page .drop .shell-empty {
  min-height: 0;
  padding: 8px 12px;
}
.shell-empty.compact {
  min-height: 0;
  padding: 22px 16px;
  gap: 10px;
}
.shell-empty .actions { margin-top: 4px; justify-content: center; }
.shell-page .stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
}
.shell-page .stat {
  text-align: start;
  min-height: 92px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
}
.shell-page .stat .v {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.shell-page .stat .l {
  margin-top: 6px;
  font-size: 11px;
  color: var(--ink-muted);
}
.shell-page .item-list { display: grid; gap: 8px; margin-top: 10px; }
.shell-page .item-controls {
  display: grid;
  grid-template-columns: minmax(92px, .7fr) minmax(92px, .7fr) auto minmax(140px, 1fr) auto;
  gap: 6px;
  align-items: center;
  margin-top: 8px;
}
.shell-page .item-controls .field { margin: 0; }
.jobs-toolbar { margin-bottom: 4px; }

.product-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.shell-page .item-list {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  padding: 4px 0 2px;
}
.item-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgb(255 255 255 / 34%);
  box-shadow: inset 0 0 0 1px rgb(120 130 150 / 10%);
}
.item-line-main { min-width: 0; display: grid; gap: 4px; }
.item-line-main .name {
  font-weight: 650;
  font-size: 12px;
  letter-spacing: -.01em;
}
.item-line-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}
.shell-page .item-edit {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.shell-page .item-edit .field,
.shell-page .item-edit .field-sm,
.shell-page .item-edit select.field {
  width: auto;
  min-width: 7.5rem;
  max-width: 14rem;
  margin: 0;
}
.shell-page .item-edit select.field,
.shell-page .item-edit select.field-sm {
  min-width: 10rem;
  max-width: 16rem;
}
.shell-page label.lf-list-row,
.shell-page .lf-list-row.lf-check-row {
  grid-template-columns: auto auto minmax(0, 1fr);
}
.shell-page .lf-list-row > .flex-1 {
  min-width: 0;
}
.shell-page .lf-list-row > .btn {
  width: auto;
  justify-self: end;
}
@media (max-width: 780px) {
  .item-line {
    grid-template-columns: 1fr;
  }
  .item-line-actions { justify-content: flex-start; }
}
@media (max-width: 960px) {
  .shell-page .item-controls { grid-template-columns: 1fr 1fr; }
  .shell-page .stats { grid-template-columns: 1fr 1fr; }
}

/* Quiet polish 2026-09-22 auto */
:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 85%, transparent);
  outline-offset: 2px;
}
button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) {
  outline: none;
}
.empty-state {
  margin: 12px 0;
  padding: 40px 28px;
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface, #0c0c0c) 92%, transparent);
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: -0.01em;
}
.empty-state strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 560;
  font-size: 14px;
}
.chip.is-active,
.chip[aria-selected="true"],
.lf-chip.is-active,
.filter-chip.is-on {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}
.auth-status-chip.is-ready {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}


/* PA_LF_TABLE_V1 — generic admin table (Super/Mint queue, Services/Mints).
   Append-only: keeps default table semantics but stops column drift on narrow panes. */
.lf-table-wrap { overflow-x: auto; }
table.lf-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
table.lf-table th,
table.lf-table td { padding: 10px 12px; text-align: start; vertical-align: middle; border-bottom: 1px solid rgba(78,96,126,.12); font-size: 12.5px; }
table.lf-table th { color: var(--ink-muted); font-weight: 560; font-size: 11px; white-space: nowrap; }
table.lf-table tbody tr:last-child th,
table.lf-table tbody tr:last-child td { border-bottom: 0; }
table.lf-table td .chip { white-space: nowrap; }
table.lf-table col.c-user { width: 14%; }
table.lf-table col.c-email { width: 22%; }
table.lf-table col.c-status { width: 13%; }
table.lf-table col.c-phase { width: 16%; }
table.lf-table col.c-node { width: 14%; }
table.lf-table col.c-created { width: 17%; }
table.lf-table col.c-actions { width: 12%; }
html[data-theme="ember"] table.lf-table th,
html[data-theme="ember"] table.lf-table td { border-bottom-color: rgba(120,120,120,.16); }
