/* SAB Demo Site — standalone product guide (no live app data) */
:root {
  --bg: #eaf3f7;
  --card: #fff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #d2e0ea;
  --blue: #0284c7;
  --blue-soft: #e0f2fe;
  --accent: #ea580c;
  --accent-soft: #fff7ed;
  --green: #047857;
  --amber: #9a3412;
  --navy: #0c4a6e;
  --shadow: 0 10px 28px rgba(3, 105, 161, .1);
  --side: 260px;
  --demo-rail-w: 96px;
  --font: "Inter", "Noto Sans Devanagari", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pad-x: clamp(14px, 3.5vw, 28px);
  --max: 1040px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.45;
}
img { max-width: 100%; height: auto; display: block; }
body.landing-page {
  background:
    radial-gradient(900px 420px at 8% -8%, #bae6fd 0%, transparent 55%),
    radial-gradient(700px 360px at 100% 0%, #ffedd5 0%, transparent 48%),
    linear-gradient(180deg, #f8fafc 0%, #e0f2fe 42%, #f1f5f9 100%);
  position: relative;
  overflow-x: hidden;
}
.landing-sky {
  position: fixed;
  inset: auto 0 0 0;
  height: 140px;
  pointer-events: none;
  opacity: .28;
  background: linear-gradient(transparent, rgba(12,74,110,.07));
}

.page-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.landing-top {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(18px, env(safe-area-inset-top)) 0 4px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin: 0 auto;
  padding: 0;
  max-width: 220px;
}

/* Same portal logo card — centered, normal compact size */
.header-portal-logo {
  width: auto;
}
.header-portal-logo .sm-animated-logo {
  display: block;
  width: auto;
}
.header-portal-logo .sm-logo-box {
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 200px !important;
  max-width: 200px !important;
  margin: 0 !important;
  padding: 10px 10px 8px !important;
  border-radius: 14px !important;
}
.header-portal-logo .sm-logo-orbit--sm {
  width: 72px !important;
  height: 72px !important;
  margin: 0 auto !important;
}
.header-portal-logo .sm-logo-orbit > img:not(.sm-fest-badge) {
  width: 90% !important;
  height: 90% !important;
  object-fit: contain !important;
}
.header-portal-logo .sm-logo-title {
  font-size: .9rem !important;
  letter-spacing: .16em !important;
  text-indent: .16em !important;
  font-family: Inter, "Noto Sans Devanagari", sans-serif !important;
}
.header-portal-logo .sm-logo-sub {
  font-size: .5rem !important;
  letter-spacing: .06em !important;
  font-family: Inter, "Noto Sans Devanagari", sans-serif !important;
}

.landing {
  max-width: none;
  margin: 0;
  padding: 8px 0 64px;
}
.hero-block {
  padding: 10px 0 22px;
  text-align: center;
}
.hero-cta-row {
  justify-content: center;
}
.hero-kicker {
  margin: 0 0 14px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--blue);
}
.hero-lang-table {
  width: 100%;
  max-width: 980px;
  margin: 0 auto 16px;
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
  text-align: left;
}
.hero-lang-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.hero-lang-row > * {
  padding: 14px 16px;
  border-right: 1px solid var(--line);
  margin: 0;
}
.hero-lang-row > *:last-child { border-right: 0; }
.hero-lang-row.head {
  background: #eef6fb;
}
.hero-lang-row.head > * {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--blue);
}
.hero-lang-row.titles {
  border-top: 1px solid var(--line);
  align-items: start;
}
.hero-lang-row.titles h1 {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--navy);
  max-width: none;
  letter-spacing: -.01em;
}
.hero-lang-row.bodies {
  border-top: 1px solid var(--line);
  background: #fbfdfe;
}
.hero-lang-row.bodies p {
  color: var(--muted);
  font-size: clamp(.84rem, 1.7vw, .95rem);
  line-height: 1.5;
}
.hero-book {
  margin: 0 0 16px;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  font-weight: 800;
  color: var(--navy);
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}
.btn-cta,
.btn-ghost,
.landing-tab {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  font-size: .92rem;
  color: #fff !important;
  background: linear-gradient(135deg, #ea580c, #c2410c);
  border: 2px solid #c2410c;
  border-radius: 999px;
  padding: 12px 20px;
  box-shadow: 0 8px 20px rgba(234, 88, 12, .32);
  min-height: 44px;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  color: var(--navy);
  background: rgba(255,255,255,.85);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 18px;
  min-height: 44px;
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

.landing-tab {
  text-decoration: none;
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.landing-tab:hover { border-color: var(--blue); color: var(--blue); }
.landing-tab.active {
  background: var(--blue-soft);
  border-color: #7dd3fc;
  color: #0369a1;
}
.landing-tab.tab-demo-login {
  background: var(--accent-soft);
  border: 2px solid #ea580c;
  color: #9a3412;
}

@keyframes cta-blink-btn {
  0%, 100% {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    border-color: #c2410c;
    box-shadow: 0 0 0 0 rgba(234, 88, 12, .5);
    transform: scale(1);
  }
  50% {
    background: linear-gradient(135deg, #fb923c, #ea580c);
    border-color: #fdba74;
    box-shadow: 0 0 0 10px rgba(234, 88, 12, 0);
    transform: scale(1.04);
  }
}
@keyframes cta-blink-tab {
  0%, 100% {
    background: #fff7ed;
    color: #9a3412;
    border-color: #ea580c;
  }
  50% {
    background: #ea580c;
    color: #fff;
    border-color: #ea580c;
  }
}
.btn-cta.blink-cta { animation: cta-blink-btn .9s ease-in-out infinite !important; }
.landing-tab.tab-demo-login.blink-cta { animation: cta-blink-tab .9s ease-in-out infinite !important; }

.guide-section { margin-top: 6px; scroll-margin-top: 12px; }
.product-about {
  scroll-margin-top: 16px;
  margin: 0 0 22px;
  padding: 18px 18px 16px;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  animation: rise .35s ease both;
}
.product-about[hidden] { display: none !important; }
.product-about h2 {
  margin: 0 0 10px;
  font-size: clamp(1.1rem, 2.6vw, 1.3rem);
  font-weight: 800;
  color: var(--navy);
}
.product-about p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.55;
  max-width: 62ch;
}
.product-about p strong { color: var(--navy); font-weight: 700; }
.product-about ul {
  margin: 0 0 12px;
  padding-left: 1.15rem;
  color: var(--ink);
  font-size: .92rem;
  line-height: 1.5;
}
.product-about li { margin: 4px 0; }
.product-about-note {
  font-size: .85rem !important;
  color: var(--blue) !important;
}
.product-about .btn-ghost { margin-top: 4px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.section-head { margin: 0 0 12px; text-align: center; }
.section-head h2 {
  margin: 0 0 4px;
  font-size: clamp(1.15rem, 2.8vw, 1.35rem);
  font-weight: 800;
  color: var(--navy);
}
.section-head p { margin: 0; color: var(--muted); font-size: .88rem; }

.role-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.role-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s ease;
  min-width: 0;
}
.role-card:hover {
  border-color: #7dd3fc;
  transform: translateY(-3px);
}
.role-card .av {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(145deg, #38bdf8, #0c4a6e);
  color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 10px;
  font-size: .9rem;
}
.role-card h2 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--navy);
}
.role-card .role-mr {
  margin: 2px 0 8px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--blue);
}
.role-card p { margin: 0; font-size: .84rem; color: var(--muted); line-height: 1.45; }
.role-card .tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.role-card .tags span {
  font-size: .66rem; font-weight: 700; letter-spacing: .02em;
  background: var(--blue-soft); color: #0369a1;
  padding: 3px 8px; border-radius: 999px;
}
.role-card.owner .tags span { background: #ecfdf5; color: var(--green); }
.role-card.committee .tags span { background: #fff7ed; color: var(--amber); }

/* —— Large laptop / desktop —— */
@media (min-width: 1101px) {
  .header-portal-logo .sm-logo-box {
    width: 200px !important;
    max-width: 200px !important;
  }
  .header-portal-logo .sm-logo-orbit--sm {
    width: 72px !important;
    height: 72px !important;
  }
}

/* —— Small laptop / large tablet —— */
@media (max-width: 1100px) {
  .role-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .role-card:last-child {
    grid-column: 1 / -1;
    max-width: 420px;
    justify-self: center;
    width: 100%;
  }
}

/* —— Tablet —— */
@media (max-width: 900px) {
  .landing-top {
    padding-top: max(12px, env(safe-area-inset-top));
  }
  .hero-lang-row.titles h1 { font-size: 1.05rem; }
  .product-about { padding: 16px; }
}

/* —— Mobile —— */
@media (max-width: 700px) {
  .role-cards { grid-template-columns: 1fr; }
  .role-card:last-child {
    grid-column: auto;
    max-width: none;
    justify-self: stretch;
  }
  .landing {
    padding: 12px 0 max(40px, env(safe-area-inset-bottom));
  }
  .hero-lang-row {
    grid-template-columns: 1fr;
  }
  .hero-lang-row > * {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .hero-lang-row > *:last-child { border-bottom: 0; }
  .hero-lang-row.head { display: none; }
  .hero-lang-row.titles h1::before,
  .hero-lang-row.bodies p::before {
    display: block;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 6px;
  }
  .hero-lang-row.titles h1:nth-child(1)::before,
  .hero-lang-row.bodies p:nth-child(1)::before { content: "English"; }
  .hero-lang-row.titles h1:nth-child(2)::before,
  .hero-lang-row.bodies p:nth-child(2)::before { content: "मराठी"; }
  .hero-lang-row.titles h1:nth-child(3)::before,
  .hero-lang-row.bodies p:nth-child(3)::before { content: "हिंदी"; }
  .hero-block { padding: 12px 0 18px; }
  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-cta, .btn-ghost { width: 100%; }
  .header-portal-logo .sm-logo-box {
    width: 168px !important;
    max-width: 168px !important;
    padding: 8px !important;
  }
  .header-portal-logo .sm-logo-orbit--sm {
    width: 60px !important;
    height: 60px !important;
  }
  .product-about p,
  .product-about ul { font-size: .9rem; max-width: none; }
  .section-head { text-align: center; }
}

/* —— Narrow phones —— */
@media (max-width: 400px) {
  :root { --pad-x: 12px; }
  .header-portal-logo .sm-logo-box {
    width: 148px !important;
    max-width: 148px !important;
  }
  .header-portal-logo .sm-logo-orbit--sm {
    width: 52px !important;
    height: 52px !important;
  }
}

/* —— Landscape phones —— */
@media (max-height: 480px) and (orientation: landscape) {
  .header-portal-logo .sm-logo-orbit--sm {
    width: 48px !important;
    height: 48px !important;
  }
  .hero-lang-row.titles h1 { font-size: 1rem; }
  .hero-cta-row { flex-direction: row; flex-wrap: wrap; }
  .btn-cta, .btn-ghost { width: auto; flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-cta.blink-cta {
    animation: cta-blink-btn 1.6s ease-in-out infinite !important;
  }
  .role-card:hover { transform: none; }
}

/* Profile pages layout */
.app { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }

.app.app-portal-ref {
  grid-template-columns: var(--demo-rail-w) var(--side) 1fr;
}

/* Slim live-portal rail column (same as greencity / demo login) */
.demo-live-rail {
  background: #152a45;
  color: #e8f0fa;
  padding: 0.5rem 0 0.75rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-portal-rail-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.28rem;
  text-decoration: none;
  padding: 0.55rem 0.2rem 0.5rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.demo-portal-rail-box {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #0c4a6e, #0284c7 55%, #38bdf8);
  color: #fff;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.demo-portal-rail-name {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #e8f0fa;
}
.demo-portal-rail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.demo-portal-rail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.22rem;
  padding: 0.42rem 0.15rem;
  margin: 0 0.2rem;
  border-radius: 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #94a8c4;
  text-align: center;
  line-height: 1.15;
}
.demo-portal-rail-item i {
  font-size: 1.28rem;
  line-height: 1;
}
.demo-portal-rail-item.active {
  background: #0f2038;
  color: #fff;
  font-weight: 700;
}
.demo-portal-rail-item-muted {
  opacity: 0.55;
}
.demo-portal-rail-hint {
  margin: auto 0.25rem 0;
  padding-top: 0.5rem;
  font-size: 0.58rem;
  line-height: 1.35;
  text-align: center;
  opacity: 0.75;
  color: #b8d0f5;
}
.demo-portal-rail-hint a {
  color: #93c5fd;
  font-weight: 700;
  text-decoration: none;
}

/* Mini live shell preview (top bar + module tabs) */
.demo-portal-chrome {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.demo-chrome-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.55rem 0.65rem;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--line);
}
.demo-chrome-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--blue-soft);
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #bae6fd;
}
.demo-chrome-search {
  flex: 1 1 120px;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--muted);
  background: #f1f5f9;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.35rem 0.55rem;
}
.demo-chrome-profile {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(145deg, #0284c7, #0c4a6e);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.demo-chrome-tabs-wrap {
  background: #fbfdff;
}
.demo-chrome-tabs-head {
  padding: 0.5rem 0.75rem 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.demo-chrome-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  overflow-x: auto;
  padding: 0 0.35rem;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.demo-chrome-tabs::-webkit-scrollbar { display: none; }
.demo-chrome-tab {
  flex: 0 0 auto;
  padding: 0.5rem 0.65rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.demo-chrome-tab.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.guide {
  background: linear-gradient(180deg, #0f2d5c, #163a73 60%, #1a447f);
  color: #eef5ff;
  padding: 14px 10px 28px;
  position: sticky; top: 0; height: 100vh; overflow: auto;
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .app.app-portal-ref {
    grid-template-columns: 1fr;
  }
  .demo-live-rail {
    position: relative;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.45rem 0.35rem;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .demo-live-rail .demo-portal-rail {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.15rem;
    width: 100%;
  }
  .demo-live-rail .demo-portal-rail-item {
    flex-direction: column;
    min-width: 52px;
    padding: 0.35rem 0.25rem;
  }
  .demo-live-rail .demo-portal-rail-brand {
    flex-direction: row;
    width: 100%;
    justify-content: center;
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0.25rem;
  }
  .demo-live-rail .demo-portal-rail-hint {
    width: 100%;
    margin: 0;
    padding-top: 0.15rem;
  }
  .guide {
    position: relative;
    height: auto;
    max-height: min(52vh, 420px);
  }
  .main { padding: 14px var(--pad-x) 40px; max-width: 100%; }
}
.guide-brand { display: flex; gap: 10px; align-items: center; padding: 4px 8px 12px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 10px; }
.guide-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(145deg,#7eb6ff,#3b82f6); display: grid; place-items: center; font-weight: 700; }
.guide-brand h1 { margin: 0; font-size: .9rem; }
.guide-brand p { margin: 2px 0 0; font-size: .68rem; opacity: .75; }
.back-link {
  display: inline-block; margin: 0 8px 10px; font-size: .78rem; color: #b8d0f5; text-decoration: none;
}
.back-link:hover { color: #fff; }
.guide-label { font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; opacity: .6; padding: 8px 10px 4px; }
.feat-nav { display: flex; flex-direction: column; gap: 2px; }
.feat-nav .group {
  font-size: .62rem; letter-spacing: .07em; text-transform: uppercase;
  opacity: .55; padding: 12px 10px 4px; font-weight: 700;
}
.feat-nav .group.billing { color: #fde68a; opacity: 1; }
.feat-nav .group.admin { color: #a5f3fc; opacity: 1; }
.feat-nav a {
  display: block; text-decoration: none; color: #e8f0ff;
  padding: 7px 10px; border-radius: 8px; font-size: .8rem;
  border: 1px solid transparent;
}
.feat-nav a:hover, .feat-nav a.active { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.14); }

.main { padding: 18px 20px 56px; max-width: 900px; }
.hero {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; box-shadow: var(--shadow); margin-bottom: 14px;
}
.hero .pill {
  display: inline-block; background: var(--blue-soft); color: var(--blue);
  font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
}
.hero h2 { margin: 8px 0 6px; font-size: 1.3rem; }
.hero p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.menu-map { display: grid; gap: 8px; margin-top: 12px; }
.menu-map .g {
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fbfcfe; font-size: .84rem;
}
.menu-map .g b { color: var(--blue); }
.menu-map .g.billing { border-left: 3px solid #ca8a04; }
.menu-map .g.admin { border-left: 3px solid #0891b2; }

.scene {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px; margin: 0 0 12px; box-shadow: var(--shadow); scroll-margin-top: 12px;
}
.scene-head { display: flex; gap: 10px; margin-bottom: 10px; }
.scene-head .badge {
  flex: 0 0 auto; min-width: 28px; height: 28px; border-radius: 50%;
  background: var(--rose); color: #fff; font-weight: 700; font-size: .8rem;
  display: grid; place-items: center; box-shadow: 0 0 0 3px #ffe4ea;
}
.scene-head h3 { margin: 0 0 2px; font-size: 1rem; }
.scene-head .sub { margin: 0; color: var(--muted); font-size: .8rem; }
.work {
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
  background: #fbfcfe; margin-bottom: 10px; border-top: 3px solid #5b8def;
}
.work .who {
  font-size: .65rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 4px;
}
.work ol { margin: 4px 0 0; padding-left: 1.15rem; }
.work li { margin: 5px 0; font-size: .88rem; line-height: 1.45; }

/* Fake wireframe — no live data */
.wire {
  border: 1px solid #c9d7e8; border-radius: 12px; overflow: hidden; background: #f8fbff;
}
.wire-cap {
  background: #1e3a5f; color: #dbeafe; font-size: .74rem; padding: 7px 11px;
  display: flex; justify-content: space-between; gap: 8px;
}
.wire-cap em { font-style: normal; opacity: .7; }
.wire-body { padding: 12px; }
.wire-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.wire-chip {
  background: #fff; border: 1px solid #d5e0ec; border-radius: 8px;
  padding: 8px 10px; font-size: .78rem; color: #334155; min-width: 90px;
  position: relative;
}
.wire-chip .n {
  position: absolute; top: -7px; left: -7px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--rose); color: #fff; font-size: .65rem; font-weight: 700;
  display: grid; place-items: center; border: 2px solid #fff;
}
.wire-chip b { display: block; color: #64748b; font-size: .68rem; font-weight: 600; margin-bottom: 2px; }
.wire-line {
  height: 10px; border-radius: 6px; background: linear-gradient(90deg,#e2e8f0,#f1f5f9);
  margin: 6px 0;
}
.wire-line.w60 { width: 60%; }
.wire-line.w40 { width: 40%; }
.wire-btn {
  display: inline-block; background: var(--blue); color: #fff; border-radius: 8px;
  padding: 7px 12px; font-size: .78rem; font-weight: 600;
}
.legend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.legend span {
  display: inline-flex; align-items: center; gap: 5px;
  background: #f3f7fc; border: 1px solid var(--line); border-radius: 999px;
  padding: 3px 8px; font-size: .74rem;
}
.legend i {
  width: 16px; height: 16px; border-radius: 50%; background: var(--rose); color: #fff;
  font-style: normal; font-weight: 700; font-size: .65rem; display: grid; place-items: center;
}
.note-safe {
  margin-top: 8px; font-size: .78rem; color: var(--muted);
  padding: 8px 10px; border-left: 3px solid #94a3b8; background: #f8fafc; border-radius: 0 8px 8px 0;
}
footer.note { margin-top: 10px; color: var(--muted); font-size: .78rem; }

.snip { border-radius: 12px; overflow: hidden; border: 1px solid #c9d7e8; background: #122038; }
.snip-cap { background: #122038; color: #c9d8ec; font-size: .74rem; padding: 7px 11px; }
.snip img { display: block; width: 100%; height: auto; background: #fff; }

.access-badge {
  display: inline-block; vertical-align: middle; margin-left: 6px;
  font-size: .65rem; font-weight: 700; letter-spacing: .03em;
  padding: 2px 8px; border-radius: 999px;
}
.access-badge.ro { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }
.access-badge.wr { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.access-badge.hid { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }
.access-badge.lim { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

.ro-banner {
  margin-top: 12px; padding: 10px 12px; border-radius: 10px;
  background: #fff7ed; border: 1px solid #fdba74; color: #9a3412;
  font-size: .88rem; line-height: 1.45;
}

.ptr-box {
  margin: 10px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.ptr-title {
  background: #122038;
  color: #dbeafe;
  font-size: .74rem;
  font-weight: 700;
  padding: 8px 12px;
}
.ptr-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-top: 1px solid #eef2f7;
}
.ptr-n {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--rose); color: #fff;
  font-size: .78rem; font-weight: 700;
  display: grid; place-items: center;
}
.ptr-text b { display: block; font-size: .9rem; margin-bottom: 2px; }
.ptr-text span { display: block; font-size: .82rem; color: var(--green); line-height: 1.35; }

.snip { margin: 0 0 10px; border-radius: 12px; overflow: hidden; border: 1px solid #c9d7e8; background: #122038; }
.snip-cap { background: #122038; color: #c9d8ec; font-size: .74rem; padding: 7px 11px; }
.snip img { display: block; width: 100%; height: auto; background: #fff; }
