:root{
  --bg:#f3f6fb;
  --surface:#ffffff;
  --surface-soft:#f8fafc;
  --surface-strong:#eef3f9;
  --text:#111827;
  --muted:#667085;
  --line:#dbe3ef;
  --line-strong:#c7d2e3;
  --primary:#2563eb;
  --primary-hover:#1d4ed8;
  --accent:#00a4ef;
  --good:#16a34a;
  --warn:#f59e0b;
  --danger:#dc2626;
  --shadow:0 20px 50px rgba(15, 23, 42, 0.08);
  --shadow-soft:0 10px 30px rgba(15, 23, 42, 0.05);
  --radius:14px;
  --radius-sm:10px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:"Segoe UI",Inter,system-ui,-apple-system,sans-serif;background:linear-gradient(180deg,#f8fbff 0%,#f3f6fb 40%,#eef3f9 100%);color:var(--text);font-size:16px;line-height:1.5}
a{color:inherit;text-decoration:none}
.shell{width:min(1220px,calc(100% - 32px));margin:0 auto}
.site-header{position:sticky;top:0;background:rgba(248,251,255,.92);backdrop-filter:blur(16px);border-bottom:1px solid rgba(199,210,227,.75);z-index:2000}
.nav{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:16px 0}
.nav nav{display:flex;gap:18px;align-items:center;flex-wrap:wrap}
.nav nav a:not(.button-link){color:#344054;font-weight:600}
.nav nav a:not(.button-link):hover{color:var(--primary)}
.brand{display:flex;align-items:center;gap:12px;font-weight:700;font-size:1.4rem;letter-spacing:.2px}
.brand-mark{width:34px;height:34px;border-radius:10px;background:linear-gradient(135deg,#2563eb,#00a4ef);display:grid;place-items:center;color:#fff;font-weight:800;box-shadow:0 8px 20px rgba(37,99,235,.25)}
.button-link,.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;border-radius:10px;padding:12px 18px;font-weight:700;border:1px solid transparent;cursor:pointer;transition:.2s ease;line-height:1}
.btn.primary,.button-link{background:var(--primary);color:white;box-shadow:0 10px 24px rgba(37,99,235,.18)}
.btn.primary:hover,.button-link:hover{background:var(--primary-hover);transform:translateY(-1px)}
.btn.secondary{background:#fff;border-color:var(--line-strong);color:var(--text)}
.btn.secondary:hover{border-color:var(--primary);color:var(--primary)}
.btn.small{padding:9px 12px;border-radius:8px;font-size:.92rem}
.text-button{background:none;border:none;color:var(--muted);cursor:pointer;font-weight:700}
.text-button:hover{color:var(--primary)}
.eyebrow{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:#eaf2ff;border:1px solid #cfe0ff;color:var(--primary);font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.hero{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(420px,.95fr);gap:36px;padding:52px 0 18px;align-items:center}
.hero-copy h1{font-size:clamp(2.8rem,4.8vw,4.9rem);line-height:1.02;margin:12px 0 16px;letter-spacing:-.03em;max-width:780px}
.hero-copy p{color:var(--muted);font-size:1.1rem;max-width:690px}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:24px}
.hero-meta{display:flex;gap:16px;flex-wrap:wrap;margin-top:28px}
.meta-chip{display:flex;flex-direction:column;min-width:130px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.75)}
.meta-chip strong{font-size:1.15rem}
.meta-chip span{color:var(--muted);font-size:.92rem}
.hero-visual{position:relative;background:linear-gradient(180deg,#fdfefe,#f7faff);border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);padding:18px;overflow:hidden}
.hero-visual::after{content:"";position:absolute;inset:auto -60px -80px auto;width:220px;height:220px;border-radius:50%;background:radial-gradient(circle at center,rgba(0,164,239,.18),transparent 70%);pointer-events:none}
.window-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.window-dots{display:flex;gap:8px}.window-dots span{width:10px;height:10px;border-radius:50%;background:#d0d5dd}.window-dots span:nth-child(2){background:#98a2b3}.window-dots span:nth-child(3){background:#667085}.window-title{font-size:.9rem;color:var(--muted);font-weight:700}
.dashboard-preview{display:grid;grid-template-columns:1.4fr .9fr;gap:16px}
.preview-surface{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:18px;box-shadow:var(--shadow-soft)}
.preview-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:14px}
.preview-kpi{padding:14px;border-radius:14px;background:var(--surface-soft);border:1px solid var(--line)}
.preview-kpi label{display:block;font-size:.75rem;color:var(--muted);margin-bottom:6px}
.preview-kpi strong{font-size:1.35rem}
.preview-chart{height:218px;border-radius:16px;background:linear-gradient(180deg,#f8fbff,#eff5ff);border:1px solid var(--line);padding:14px;display:flex;align-items:flex-end;gap:10px}
.preview-chart .bar{flex:1;border-radius:12px 12px 6px 6px;background:linear-gradient(180deg,#7fb1ff,#2563eb);opacity:.95}
.preview-chart .bar:nth-child(1){height:32%}.preview-chart .bar:nth-child(2){height:54%}.preview-chart .bar:nth-child(3){height:76%}.preview-chart .bar:nth-child(4){height:58%}.preview-chart .bar:nth-child(5){height:88%}.preview-chart .bar:nth-child(6){height:70%}
.preview-side{display:grid;gap:14px}
.signal-card,.quote-card,.info-card,.stat-card,.metric,.list-item,.room-result,.chart-box,.text-box,.panel,.price-card,.preview-kpi{transition:.2s ease}
.signal-card{padding:16px;border-radius:16px;border:1px solid var(--line);background:var(--surface-soft)}
.signal-card header{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;font-size:.86rem;color:var(--muted);font-weight:700}
.signal-card .signal-value{font-size:2rem;font-weight:800;letter-spacing:-.02em}
.progress{height:10px;background:#eaf0f8;border-radius:999px;overflow:hidden;border:1px solid #dde5f0;margin-top:10px}
.progress > span{display:block;height:100%;background:linear-gradient(90deg,var(--accent),var(--primary));border-radius:999px}
.quote-card{padding:18px;border-radius:16px;background:#0f172a;color:#e5eefc;box-shadow:0 20px 40px rgba(15,23,42,.18)}
.quote-card small{display:block;color:#9fb3d6;margin-top:10px}
.section{padding:22px 0}
.section-head{display:flex;justify-content:space-between;gap:20px;align-items:end;margin-bottom:20px}
.section-head h2{font-size:2rem;line-height:1.1;margin:0 0 6px;letter-spacing:-.02em}
.section-head p{margin:0;color:var(--muted);max-width:740px}
.section-grid,.dashboard-grid,.pricing-grid,.feature-grid,.story-grid,.kpi-grid,.detail-grid{display:grid;gap:18px}
.section-grid{grid-template-columns:repeat(3,1fr)}
.feature-grid{grid-template-columns:repeat(4,1fr)}
.story-grid{grid-template-columns:1.1fr .9fr}
.kpi-grid{grid-template-columns:repeat(4,1fr)}
.detail-grid{grid-template-columns:1.15fr .85fr}
[data-theme="dark"] .customer-stories-grid .story-card-pro .surface-note{
  color: #000000 !important;
}
.whitetext{
  color:#ffffff !important;
}
[data-theme="dark"] .panel-soft {
color: #000000;
}
select {
  min-width: 100px !important;
}
[data-theme="dark"] .panel-soft p{
color: #000000 !important;
}

[data-theme="dark"] .preview-kpi {
  color: black !important;
}
[data-theme="dark"] .price-points {
  color: #ffffff !important;
}
[data-theme="dark"] p{
  color:#f0f0f0 !important;
}
[data-theme="dark"] .signal-value {
  color: black !important;
}

[data-theme="dark"] .meta-chip {
  color: black !important;
}

[data-theme="dark"] .story-rail {
  color: black !important;
}
[data-theme="dark"] .stat-card {
  color: black !important;
}
.panel{background:rgba(255,255,255,.86);border:1px solid var(--line);border-radius:18px;padding:24px;box-shadow:var(--shadow-soft)}
.panel:hover,.room-result:hover,.price-card:hover{transform:translateY(-1px);box-shadow:0 18px 42px rgba(15,23,42,.08)}
.value-prop h3,.feature h3{margin:0 0 8px;font-size:1.06rem}
.value-prop p,.feature p{margin:0;color:var(--muted)}
.value-icon,.feature-icon{width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,#eaf2ff,#dff3ff);display:grid;place-items:center;color:var(--primary);font-size:1.2rem;margin-bottom:14px;border:1px solid #d2e4ff}
.story-rail{display:grid;gap:14px}
.step{display:grid;grid-template-columns:52px 1fr;gap:14px;align-items:start;padding:18px;border:1px solid var(--line);background:var(--surface);border-radius:16px}
.step-number{width:52px;height:52px;border-radius:16px;background:linear-gradient(135deg,#2563eb,#00a4ef);color:#fff;display:grid;place-items:center;font-weight:800;font-size:1.05rem}
.preview-table{width:100%;border-collapse:collapse;font-size:.95rem}
.preview-table th,.preview-table td{padding:12px 10px;border-bottom:1px solid var(--line);text-align:left}
.preview-table th{color:var(--muted);font-size:.8rem;text-transform:uppercase;letter-spacing:.08em}
.metric-badge{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:#eaf7ee;color:var(--good);font-weight:700;font-size:.85rem}
.pricing-wrap{padding:20px 0 42px}
.pricing-grid{grid-template-columns:repeat(4,1fr)}
.price-card{position:relative;overflow:hidden}
.price-card .price{font-size:2.2rem;font-weight:900;letter-spacing:-.03em;margin:10px 0}
.price-card .price span{font-size:1rem;color:var(--muted);font-weight:700}
.price-card.featured{border-color:#9dc3ff;box-shadow:0 24px 60px rgba(37,99,235,.12)}
.price-card.featured::before{content:"Most popular";position:absolute;top:16px;right:16px;padding:6px 10px;border-radius:999px;background:#eaf2ff;color:var(--primary);font-size:.78rem;font-weight:800}
.price-points{display:grid;gap:10px;margin-top:16px;color:#344054}
.price-points div{display:flex;gap:10px;align-items:flex-start}
.narrow{max-width:560px;margin:42px auto}
.auth-card form,.form-shell form{display:grid;gap:12px}
label{font-size:.94rem;color:#344054;font-weight:700}
input,textarea,select{width:100%;background:#fff;border:1px solid var(--line-strong);color:var(--text);padding:13px 14px;border-radius:10px;outline:none;font:inherit}
textarea{resize:vertical}
input:focus,textarea:focus,select:focus{border-color:#93b7ff;box-shadow:0 0 0 4px rgba(37,99,235,.10)}
.alert.error{background:#fff1f2;border:1px solid #fecdd3;color:#9f1239;padding:12px;border-radius:12px;margin-bottom:14px}
.dashboard-head,.study-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-end;padding:32px 0 18px}
.dashboard-head h1,.study-head h1{margin:8px 0 0;font-size:2.25rem;line-height:1.08;letter-spacing:-.02em}
.dashboard-grid{grid-template-columns:1.08fr .92fr;padding-bottom:24px}
.list-stack{display:grid;gap:12px}
.list-item{display:grid;gap:4px;padding:16px;border-radius:14px;background:var(--surface);border:1px solid var(--line)}
.list-item strong{font-size:1rem}
.muted,.tiny-note,.list-item span,.muted-block,.field-note{color:var(--muted)}
.form-shell{padding:26px 0 40px}
.grid-two,.grid-three{display:grid;gap:14px}
.grid-two{grid-template-columns:1fr 1fr}.grid-three{grid-template-columns:repeat(3,1fr)}
.rooms-head,.results-head,.room-top,.inline-actions,.split-head{display:flex;justify-content:space-between;gap:12px;align-items:center}
#rooms-container{display:grid;gap:16px;margin:18px 0}
.room-block{padding:22px}
.results-wrap{display:grid;gap:18px;margin-top:16px}
.summary-grid{display:grid;gap:14px;grid-template-columns:repeat(4,1fr)}
.stat-card{padding:18px;border-radius:16px;background:linear-gradient(180deg,#fff,#f7faff);border:1px solid var(--line);box-shadow:var(--shadow-soft)}
.stat-card .big{font-size:1.9rem;font-weight:800;letter-spacing:-.03em;margin-top:8px}
.card-grid{display:grid;gap:18px;grid-template-columns:1.15fr .85fr}
.chart-box,.text-box{padding:20px;border-radius:18px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-soft)}
.chart-box h3,.text-box h3{margin-top:0}
.chart-bars{display:grid;gap:12px;margin-top:14px}
.bar-row{display:grid;grid-template-columns:150px 1fr 58px;gap:12px;align-items:center}
.bar-track{height:14px;background:#ecf2f9;border-radius:999px;overflow:hidden;border:1px solid #dde6f0}
.bar-fill{height:100%;background:linear-gradient(90deg,var(--accent),var(--primary));border-radius:999px}
.pill-list{display:flex;flex-wrap:wrap;gap:10px}
.pill{padding:10px 12px;border-radius:999px;background:#eef5ff;border:1px solid #d7e7ff;color:#1d4ed8;font-weight:700}
.room-result{padding:18px;border-radius:18px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-soft)}
.room-head{display:flex;justify-content:space-between;gap:8px;align-items:flex-start;margin-bottom:12px}
.room-head h3{margin:0 0 4px}
.room-metrics{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin-bottom:14px}
.metric{padding:12px;border-radius:14px;background:linear-gradient(180deg,#fff,#f8fbff);border:1px solid var(--line)}
.metric strong{display:block;font-size:.78rem;color:var(--muted);margin-bottom:4px;text-transform:uppercase;letter-spacing:.05em}
.metric span{font-size:1.1rem;font-weight:800}
.dual-columns{display:grid;grid-template-columns:1fr 1fr;gap:14px}
ul.clean{margin:0;padding-left:18px;color:#334155}
.transcript{display:grid;gap:10px}
.transcript-line{padding:12px;border-radius:14px;background:#f8fbff;border:1px solid var(--line)}
.run-history-item{padding:12px 0;border-top:1px solid var(--line)}
.run-history-item:first-child{border-top:none;padding-top:0}
.run-history-item summary{cursor:pointer;font-weight:700}
.run-history-item pre{white-space:pre-wrap;background:#f8fbff;padding:14px;border-radius:12px;overflow:auto;border:1px solid var(--line);color:#334155}
.history-actions{margin:10px 0}
.billing-grid{padding-bottom:24px}
.paypal-plan{min-height:60px;margin-top:12px;position:relative;z-index:1;isolation:isolate}.paypal-plan iframe,.paypal-plan > div{position:relative;z-index:1 !important}
code{background:#eef4fb;padding:2px 7px;border-radius:8px;color:#0f172a}
.surface-note{padding:16px;border:1px dashed var(--line-strong);border-radius:14px;background:#fbfdff;color:#475467}
.footer{padding:32px 0 48px;color:#667085}
[data-theme="dark"] body{
background:#0f172a;
color:#e5e7eb;
}

[data-theme="dark"] .panel{
background:#1e293b;
border-color:#334155;
}

.theme-toggle{
position:fixed;
bottom:20px;
right:20px;
width:42px;
height:42px;
border-radius:999px;
border:1px solid #cbd5e1;
background:white;
cursor:pointer;
box-shadow:0 10px 20px rgba(0,0,0,.15);
}
.footer-grid{display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:22px}
@media (max-width:1120px){.hero,.dashboard-preview,.feature-grid,.pricing-grid,.section-grid,.kpi-grid,.detail-grid,.card-grid,.dashboard-grid,.room-metrics,.dual-columns,.grid-two,.grid-three,.summary-grid,.story-grid{grid-template-columns:1fr}.preview-kpis{grid-template-columns:1fr}.bar-row{grid-template-columns:110px 1fr 50px}}
@media (max-width:780px){.nav{align-items:flex-start;flex-direction:column}.hero-copy h1{font-size:clamp(2.3rem,9vw,3.3rem)}.section-head{flex-direction:column;align-items:flex-start}.hero{padding-top:34px}.dashboard-head,.study-head{align-items:flex-start;flex-direction:column}.hero-meta{display:grid;grid-template-columns:1fr 1fr}.shell{width:min(100% - 24px,1220px)}}


.site-main{min-height:calc(100vh - 146px)}
.footer{border-top:1px solid var(--line);background:rgba(255,255,255,.72);margin-top:42px}
.footer-grid{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:18px 0;color:var(--muted);font-size:.95rem;flex-wrap:wrap}
.auth-card{margin-top:56px;margin-bottom:64px;padding:30px}
.auth-card h1{margin:10px 0 8px;font-size:2.2rem;line-height:1.05;letter-spacing:-.03em}
.auth-card p{margin:0 0 8px}
.form-shell{padding-top:28px;padding-bottom:44px}
.site-header{box-shadow:0 6px 20px rgba(15,23,42,.04)}
@media (max-width: 980px){
  .hero,.dashboard-preview,.story-grid,.dashboard-grid,.detail-grid,.feature-grid,.pricing-grid,.section-grid,.kpi-grid{grid-template-columns:1fr!important}
  .preview-kpis{grid-template-columns:1fr 1fr 1fr}
}
@media (max-width: 700px){
  .nav{padding:12px 0}
  .nav nav{gap:12px}
  .preview-kpis{grid-template-columns:1fr}
  .hero-copy h1{font-size:2.5rem}
}

.media-builder{display:grid;gap:18px;margin:24px 0}
.media-type-block{display:grid;gap:12px;padding:20px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(180deg,#fcfdff,#f8fbff)}
.media-container{display:grid;gap:14px}
.media-block{padding:20px}
.media-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:18px}
.media-card{padding:18px;border:1px solid var(--line);border-radius:18px;background:var(--surface);box-shadow:var(--shadow-soft)}
.media-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.media-card h3{margin:0 0 10px;font-size:1.06rem}
.media-link{color:var(--primary);font-weight:700}
.media-type-tag{padding:6px 10px;font-size:.7rem}
.media-summary-pills{display:flex;flex-wrap:wrap;gap:10px}
@media (max-width:1120px){.media-gallery{grid-template-columns:1fr}}

.media-order-tools{display:flex;align-items:center;gap:10px}
.drag-pill{border:1px solid var(--line);background:#fff;border-radius:999px;padding:6px 10px;cursor:grab;color:var(--muted)}
.dragging{opacity:.55}
.compact-actions{gap:8px}
.media-preview-wrap{display:grid;gap:8px}
.media-preview{min-height:180px;border:1px dashed var(--line-strong);background:#fbfdff;border-radius:16px;padding:12px;display:grid;place-items:center;overflow:hidden}
.media-preview img,.study-media-embed img{max-width:100%;max-height:240px;border-radius:12px;display:block}
.media-preview video,.media-preview audio,.study-media-embed video,.study-media-embed audio{width:100%;max-width:100%;border-radius:12px}
.media-preview-empty{color:var(--muted);text-align:center;font-size:.95rem}
.study-media-embed{margin:10px 0 12px;min-height:120px;border:1px solid var(--line);border-radius:16px;background:#fbfdff;padding:12px;display:grid;place-items:center}
.list-item{position:relative}
.text-button{background:none;border:none;color:var(--primary);font-weight:700;cursor:pointer;padding:0}
.text-button:hover{text-decoration:underline}
@media (max-width:780px){.room-top,.media-card-top{align-items:flex-start;flex-direction:column}}

.align-end{align-items:end}
.panel-soft{background:var(--panel-soft,#f3f6fb);border:1px solid var(--line,#e4e7ec);border-radius:10px;padding:16px}
.media-headline{margin-top:26px}
.media-type-section{margin-top:18px}
.media-block{margin-top:14px;border:1px solid var(--line,#e4e7ec)}
.media-block.is-cover{outline:2px solid var(--primary,#2563eb);box-shadow:0 0 0 3px rgba(37,99,235,.08)}
.cover-badge{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;background:#eef2ff;color:#475467;font-size:12px;font-weight:600}
.cover-badge.active{background:var(--primary,#2563eb);color:#fff}
.cover-showcase .cover-media-frame img,.cover-showcase .cover-media-frame video{width:100%;max-height:480px;object-fit:contain;border-radius:12px;background:#0f172a}
.cover-showcase .cover-media-frame audio{width:100%}
.media-card-cover{border:1px solid var(--primary,#2563eb)}


.plan-badge{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border-radius:999px;background:#eef4ff;color:#1d4ed8;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;margin-bottom:14px}
.free-tier-card{position:relative}
.active-plan{outline:2px solid rgba(37,99,235,.16)}
.success-note{color:#15803d;font-weight:600}
.usage-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.usage-strip>div{background:var(--panel-soft);border:1px solid var(--line);border-radius:12px;padding:16px}
.usage-strip strong{display:block;font-size:13px;color:var(--muted);margin-bottom:6px}
@media (max-width: 900px){.usage-strip{grid-template-columns:1fr 1fr}}
@media (max-width: 640px){.usage-strip{grid-template-columns:1fr}}


.psych-note{margin:18px 0 8px}
.psych-grid input{min-width:0}
.audience-room-card{align-items:flex-start}


.tooltip-icon{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;margin-left:6px;border-radius:999px;background:#eef4ff;color:#1d4ed8;font-size:12px;font-weight:700;cursor:help;vertical-align:middle}
.locale-manager{margin-top:16px}
.locale-add-row{display:flex;gap:10px;align-items:center}.locale-add-row .small{padding:10px 14px}
.locale-chip-wrap{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.locale-chip{border:1px solid var(--line);background:#f5f7fb;color:#1f2937;border-radius:999px;padding:8px 12px;font:inherit;display:inline-flex;align-items:center;gap:8px;cursor:pointer}
.locale-chip-x{font-weight:700;opacity:.7}
.theme-toggle{position:fixed;right:18px;bottom:18px;z-index:140;width:44px;height:44px;border-radius:999px;border:1px solid #c7d2e3;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.12);pointer-events:auto}.cookie-banner-visible .theme-toggle{bottom:108px}@media (max-width:720px){.cookie-banner-visible .theme-toggle{bottom:152px}}
html[data-theme='dark'] body{background:#0f172a;color:#e5e7eb}
html[data-theme='dark'] .site-header,html[data-theme='dark'] .footer,html[data-theme='dark'] .panel,html[data-theme='dark'] .auth-card,html[data-theme='dark'] .list-item,html[data-theme='dark'] .chart-box,html[data-theme='dark'] .text-box,html[data-theme='dark'] .room-result,html[data-theme='dark'] .metric,html[data-theme='dark'] .surface-note{background:#111827;color:#e5e7eb;border-color:#334155}
html[data-theme='dark'] input,html[data-theme='dark'] textarea,html[data-theme='dark'] select{background:#0b1220;color:#e5e7eb;border-color:#334155}
html[data-theme='dark'] .muted,html[data-theme='dark'] .tiny-note,html[data-theme='dark'] .field-note{color:#94a3b8}
html[data-theme='dark'] .locale-chip{background:#0b1220;color:#e5e7eb;border-color:#334155}
html[data-theme='dark'] .theme-toggle{background:#111827;color:#e5e7eb;border-color:#334155}
.tour-overlay{position:fixed;inset:0;z-index:3000}.tour-backdrop{position:absolute;inset:0;background:rgba(2,6,23,.45)}.tour-popover{position:absolute;width:min(360px,calc(100vw - 32px));background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;box-shadow:0 20px 50px rgba(0,0,0,.18);z-index:3002}.tour-target{position:relative;z-index:3003 !important;outline:3px solid #2563eb;outline-offset:4px;border-radius:10px}
html[data-theme='dark'] .tour-popover{background:#111827;color:#e5e7eb;border-color:#334155}


.data-grid{width:100%;border-collapse:collapse}.data-grid th,.data-grid td{padding:12px 14px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}.data-grid th{font-size:13px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}.data-grid th.sortable{cursor:pointer}.data-grid tbody tr:hover{background:rgba(37,99,235,.04)}
.table-card{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--panel)}
.datatable-wrap{display:flex;flex-direction:column;gap:12px}.datatable-local-toolbar{display:flex;justify-content:flex-end}.datatable-search{max-width:280px;width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}
.checkout-total{padding:13px 14px;border-radius:10px;border:1px solid var(--line);background:var(--panel-soft);font-weight:800;font-size:22px}.result-pre{white-space:pre-wrap;word-break:break-word;background:var(--panel-soft);padding:18px;border-radius:14px;border:1px solid var(--line)}
html[data-theme='dark'] .datatable-search,html[data-theme='dark'] .checkout-total,html[data-theme='dark'] .result-pre{background:#0f172a;color:#e5e7eb;border-color:#334155}
html[data-theme='dark'] .data-grid tbody tr:hover{background:rgba(96,165,250,.08)}


.alert.success{background:rgba(22,163,74,.12);border:1px solid rgba(22,163,74,.35);color:#166534}
.secret-key{padding:10px 12px;border-radius:10px;background:rgba(37,99,235,.08);border:1px dashed rgba(37,99,235,.35)}

.brand-mark{background:none !important;box-shadow:none !important;width:42px;height:42px;padding:0;border-radius:12px;overflow:hidden;border:1px solid rgba(37,99,235,.18)}
.brand-mark img{width:100%;height:100%;object-fit:cover;display:block}
.site-header{background:rgba(248,251,255,.96);backdrop-filter:blur(14px)}
.site-header a{color:#13233d}
.footer{color:#475467}
html[data-theme='dark'] .site-header{background:rgba(8,17,31,.94);border-color:#213047}
html[data-theme='dark'] .site-header a,html[data-theme='dark'] .footer{color:#d7e5ff}
.theme-toggle{display:flex;align-items:center;justify-content:center;font-size:18px}
.theme-toggle-icon{line-height:1}
.simulation-status-panel{padding:14px 16px;border-radius:14px;border:1px solid #dbe3ef;background:#f8fbff;display:flex;align-items:center;gap:10px;min-height:22px}
.simulation-status-panel.is-running{background:linear-gradient(90deg,rgba(37,99,235,.10),rgba(0,164,239,.10));border-color:#93c5fd;color:#0f3d8a}
.simulation-status-panel.is-success{background:#ecfdf3;border-color:#9dd5b5;color:#067647}
.simulation-status-panel.is-error{background:#fff2f0;border-color:#f7b2a8;color:#b42318}
.spinner-dot{width:12px;height:12px;border-radius:999px;background:#2563eb;box-shadow:0 0 0 0 rgba(37,99,235,.45);animation:pulseDot 1.2s infinite}
@keyframes pulseDot{0%{transform:scale(.8);box-shadow:0 0 0 0 rgba(37,99,235,.45)}70%{transform:scale(1);box-shadow:0 0 0 12px rgba(37,99,235,0)}100%{transform:scale(.8)}}
.price-card.active-plan{border:2px solid #2563eb;box-shadow:0 18px 42px rgba(37,99,235,.12)}
.price-card .success-note{display:inline-flex;padding:7px 12px;border-radius:999px;background:#eff8ff;color:#175cd3;font-weight:700}
html[data-theme='dark'] .price-card .success-note{background:rgba(23,92,211,.16);color:#8ab4ff}
.chat-transcript{display:grid;gap:8px}
.chat-line{padding:10px 12px;border-radius:12px;background:#f8fbff;border:1px solid #dbe3ef}
.chat-speaker{font-weight:700;color:#175cd3}
html[data-theme='dark'] .chat-line{background:#0f172a;border-color:#23324a}
.checkout-total{font-size:1.35rem;font-weight:800}
.plan-current-banner{display:inline-flex;padding:8px 12px;border-radius:999px;background:#eff8ff;color:#175cd3;font-weight:700}
.tooltip-icon{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;margin-left:6px;border-radius:999px;background:#eaf2ff;color:#175cd3;font-size:12px;font-weight:700;cursor:help}
.tooltip-icon:hover::after,.tooltip-icon:focus::after{content:attr(data-tooltip);position:absolute;transform:translateY(26px);background:#13233d;color:#fff;padding:10px 12px;border-radius:10px;max-width:240px;z-index:50;font-weight:400;line-height:1.35;font-size:12px}
@media (max-width: 900px){.detail-grid,.dashboard-grid,.kpi-grid,.pricing-grid{grid-template-columns:1fr !important}.inline-actions{flex-wrap:wrap}.shell{width:min(100% - 20px,1220px)}.site-main{padding:18px 0 36px}.nav nav{gap:12px}.cover-media-frame img,.cover-media-frame video{max-height:280px;object-fit:cover}.data-grid{display:block;overflow-x:auto;white-space:nowrap}}
.surface-note-invite{
  background: #ecfdf3 !important;
  border: 1px solid #abefc6;
  color: #067647 !important;
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 14px;
}
.alert.success{background:#ecfdf3;border:1px solid #abefc6;color:#067647;padding:12px;border-radius:12px;margin-bottom:14px}
.footer-shell{padding:34px 0 22px}
.footer-top-row{display:grid;grid-template-columns:1.05fr 1.4fr;gap:34px;align-items:start}
.footer-brand-line{display:flex;align-items:center;gap:14px;margin-bottom:14px}
.footer-brand-mark{width:48px;height:48px}
.footer-subline{color:var(--muted);font-size:.95rem;margin-top:4px}
.footer-copy{max-width:520px;color:var(--muted);line-height:1.7;margin:0 0 16px}
.footer-grid-rich{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:22px;align-items:start;border-top:none;padding-top:0}
.footer-grid-rich h4{margin:0 0 10px;font-size:.94rem;color:var(--text)}
.footer-grid-rich a{display:block;margin:8px 0;color:var(--muted)}
.footer-bottom-row{display:flex;justify-content:space-between;gap:16px;align-items:center;padding-top:20px;margin-top:24px;border-top:1px solid var(--line);color:var(--muted);font-size:.95rem;flex-wrap:wrap}
.footer-bottom-links{display:flex;gap:16px;flex-wrap:wrap}
.footer-trust-row{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:.92rem;flex-wrap:wrap}
.ssl-badge{height:42px;width:auto;display:block}
.cookie-banner{position:fixed;left:18px;right:18px;bottom:18px;z-index:70;background:rgba(15,23,42,.96);color:#fff;border:1px solid rgba(255,255,255,.12);border-radius:18px;box-shadow:0 24px 60px rgba(0,0,0,.35);padding:18px 20px;display:flex;justify-content:space-between;gap:18px;align-items:center}
.cookie-banner p{margin:8px 0 0;color:rgba(255,255,255,.82);max-width:760px;line-height:1.6}
.cookie-banner a{color:#cfe0ff}
.cookie-actions{display:flex;gap:10px;flex-wrap:wrap}
.button-link.secondary{background:transparent;color:#000;border:1px solid rgba(255,255,255,.22)}
.cookie-actions .button-link.secondary,.cookie-actions .button-link.secondary:hover{color:#fff !important;border-color:rgba(255,255,255,.22);background:transparent}.cookie-actions .button-link{min-width:148px}
.study-lockable.is-locked,.psych-note.is-locked,.media-headline.is-locked,.media-type-section.is-locked{position:relative;opacity:.68}.study-lockable.is-locked::after,.media-type-section.is-locked::after{content:"Free plan";position:absolute;top:10px;right:10px;padding:6px 10px;border-radius:999px;background:#eef2ff;border:1px solid #c7d2fe;color:#4338ca;font-size:.78rem;font-weight:800;letter-spacing:.03em}.media-type-section.is-locked .media-container{pointer-events:none}.media-type-section.is-locked .split-head,.study-lockable.is-locked{filter:grayscale(.08)}.text-button[disabled],.drag-pill[disabled],.btn[disabled]{opacity:.55;cursor:not-allowed;pointer-events:none}
.page-hero.compact-hero{padding:12px 0 20px}
.page-hero.compact-hero h1{margin:8px 0 10px;font-size:clamp(2rem,4.2vw,3rem);letter-spacing:-.03em}
.legal-layout{display:grid;grid-template-columns:1.2fr .8fr;gap:20px;align-items:start}
.prose-block{padding:24px 26px;line-height:1.75}
.prose-block h2{margin-top:0.8em;margin-bottom:.4em;font-size:1.18rem}
.prose-block p{color:#475467}
.side-facts{padding:22px}
.faq-list{display:grid;gap:14px}
.faq-item{padding:18px 20px}
.faq-item summary{cursor:pointer;font-weight:800;font-size:1.04rem}
.faq-answer{padding-top:12px;color:#475467;line-height:1.7}
.stack-form{display:grid;gap:14px}
.partner-grid{grid-template-columns:1fr 1fr;margin:16px 0}
.kb-page .kb-search-wrap{padding:20px}
.kb-search-label{display:block;font-weight:800;margin-bottom:10px}
.kb-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:14px}
.kb-card{padding:0;overflow:hidden}
.kb-thumb{display:block;width:100%;height:180px;object-fit:cover;border-bottom:1px solid var(--line)}
.kb-card h3{margin:0 0 8px;padding:0 18px}
.kb-card p{padding:0 18px 18px;margin:0;color:#475467;line-height:1.65}
.kb-meta{padding:16px 18px 4px;color:var(--muted);font-size:.86rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.kb-category-pills{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.kb-category-pills span{padding:7px 10px;border-radius:999px;background:#f2f6fc;border:1px solid var(--line);color:#475467;font-size:.86rem}
.kb-hero{display:grid;grid-template-columns:1.05fr .95fr;gap:18px;align-items:end}
.kb-hero-image{width:100%;border-radius:18px;border:1px solid var(--line);margin-bottom:18px}
.howto-list{padding-left:22px;line-height:1.8}
.howto-list li{margin-bottom:8px}
@media (max-width:1120px){.footer-top-row,.legal-layout,.kb-hero,.kb-grid{grid-template-columns:1fr!important}.footer-grid-rich{grid-template-columns:repeat(2,minmax(140px,1fr))}}
@media (max-width:720px){.cookie-banner{left:12px;right:12px;bottom:12px;flex-direction:column;align-items:flex-start}.footer-grid-rich{grid-template-columns:1fr 1fr}.footer-bottom-row{align-items:flex-start;flex-direction:column}.kb-thumb{height:160px}}

/*Dark Mode Mods */
[data-theme="dark"] label{
  color:#f0f0f0 !important;
}

/* Enterprise footer refresh */
.footer-enterprise{border-top:1px solid var(--line);background:#ffffff;color:#616161;margin-top:48px}
html[data-theme='dark'] .footer-enterprise{background:#0f172a;color:#cbd5e1;border-color:#334155}
.footer-shell-enterprise{padding:38px 0 18px}
.footer-columns{display:grid;grid-template-columns:repeat(6,minmax(120px,1fr));gap:34px;align-items:start}
.footer-columns h4{margin:0 0 14px;font-size:1rem;font-weight:600;color:#1f2937}
.footer-columns a{display:block;margin:0 0 12px;color:#616161;font-size:.92rem;line-height:1.45}
.footer-columns a:hover,.footer-meta-row a:hover{color:#111827;text-decoration:underline}
.footer-meta-row{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap;padding-top:30px;margin-top:18px;font-size:.84rem;color:#616161}
.footer-meta-left,.footer-meta-right{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.footer-locale,.footer-privacy-choice,.footer-consumer-note,.footer-security-inline{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.ssl-badge-inline{height:20px;width:auto;display:block}
.footer-meta-row a{color:#616161}
html[data-theme='dark'] .footer-columns h4{color:#f8fafc}
html[data-theme='dark'] .footer-columns a,html[data-theme='dark'] .footer-meta-row,html[data-theme='dark'] .footer-meta-row a{color:#cbd5e1}
html[data-theme='dark'] .footer-columns a:hover,html[data-theme='dark'] .footer-meta-row a:hover{color:#ffffff}
@media (max-width:1200px){.footer-columns{grid-template-columns:repeat(3,minmax(160px,1fr));gap:26px}}
@media (max-width:720px){.footer-shell-enterprise{padding:28px 0 16px}.footer-columns{grid-template-columns:repeat(2,minmax(140px,1fr));gap:20px}.footer-meta-row{align-items:flex-start;flex-direction:column}.footer-meta-left,.footer-meta-right{gap:12px}}
@media (max-width:520px){.footer-columns{grid-template-columns:1fr}}


.alert.error{background:#fef3f2;border:1px solid #fecdca;color:#b42318;padding:12px;border-radius:12px;margin-bottom:14px}
.footer-container-enterprise{width:min(100% - 64px,1680px);margin:0 auto;padding:52px 0 18px}
.footer-columns{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:48px;align-items:start}
.footer-col h4{margin:0 0 16px;font-size:1rem;font-weight:600;color:#1f1f1f}
.footer-col a{display:block;margin:0 0 12px;color:#616161;font-size:.9rem;line-height:1.45}
.footer-col a:hover,.footer-meta-row a:hover{color:#111827;text-decoration:underline}
.footer-meta-row{border-top:none;padding-top:28px;margin-top:24px;justify-content:space-between;align-items:center}
.footer-meta-left,.footer-meta-right{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.footer-meta-right{justify-content:flex-end}
.kb-category-pills a{padding:7px 10px;border-radius:999px;background:#f2f6fc;border:1px solid var(--line);color:#475467;font-size:.86rem;text-decoration:none}
.kb-category-pills a.active,.kb-category-pills a:hover{background:#e8f0ff;color:#175cd3;border-color:#c7d7f8}
.kb-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:10px 0 0}
.kb-thumb-wrap{padding:20px 20px 10px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,#f8fbff,#fff)}
.kb-thumb{display:block;width:100%;height:132px;object-fit:contain;border-bottom:none;margin:0 auto}
.kb-card{display:flex;flex-direction:column}
.breadcrumbs{display:flex;gap:8px;flex-wrap:wrap;color:var(--muted);font-size:.92rem;margin-bottom:12px}
.breadcrumbs a{color:var(--muted);text-decoration:none}
.breadcrumbs a:hover{text-decoration:underline}
.crumb-sep{opacity:.6}
.kb-article-layout{display:grid;grid-template-columns:240px minmax(0,1fr) 280px;gap:20px;align-items:start}
.kb-side-nav,.kb-admin-list{padding:18px;position:sticky;top:86px}
.kb-side-nav h3,.kb-admin-list h3{margin:0 0 12px}
.kb-side-nav a,.kb-admin-list-item{display:block;padding:10px 12px;border-radius:12px;color:var(--text);text-decoration:none;background:#f8fbff;border:1px solid var(--line);margin-bottom:8px}
.kb-admin-list-item span{display:block;color:var(--muted);font-size:.86rem;margin-top:4px}
.kb-admin-list-item.active,.kb-side-nav a:hover{border-color:#c7d7f8;background:#eef4ff}
.kb-prose-block{padding:24px 28px}
.kb-hero-figure{display:flex;justify-content:center;align-items:center;margin:0 0 24px;padding:24px;border-radius:18px;background:#f8fbff;border:1px solid var(--line)}
.kb-hero-image{width:min(100%,420px);max-height:220px;object-fit:contain;border:none;margin:0}
.kb-voting{margin-top:28px;padding-top:20px;border-top:1px solid var(--line)}
.kb-vote-actions{display:flex;gap:10px;flex-wrap:wrap}
.article-meta{padding:0;color:var(--muted)}
.kb-admin-layout{display:grid;grid-template-columns:320px minmax(0,1fr);gap:20px;align-items:start}
.kb-admin-list-items{display:grid;gap:8px;max-height:70vh;overflow:auto}
.kb-admin-form-wrap{padding:22px}
.kb-admin-form .form-row.two-up{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.kb-admin-form textarea{min-height:140px}
@media (max-width:1320px){.footer-columns{grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}.kb-article-layout{grid-template-columns:1fr}.kb-side-nav,.kb-admin-list,.side-facts{position:static}.footer-container-enterprise{width:min(100% - 36px,1400px)}}
@media (max-width:820px){.footer-columns{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.kb-admin-layout{grid-template-columns:1fr}.kb-admin-form .form-row.two-up{grid-template-columns:1fr}.footer-meta-row{align-items:flex-start;flex-direction:column}.footer-meta-right{justify-content:flex-start}}
@media (max-width:520px){.footer-columns{grid-template-columns:1fr}.footer-container-enterprise{width:min(100% - 24px,1400px)}.kb-thumb{height:110px}}

.cookie-banner[hidden],.cookie-banner.is-hidden{display:none !important}
.secspecial{color:#fff !important}

/* Customer stories */
.stories-hero,.story-detail-hero{display:grid;grid-template-columns:1.2fr .8fr;gap:22px;align-items:stretch;padding:34px 0 12px}
.stories-hero-copy,.stories-hero-panel,.story-detail-hero > *{min-width:0}
.hero-chip-row{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 0}
.hero-chip{display:inline-flex;align-items:center;padding:9px 12px;border-radius:999px;background:#eef5ff;border:1px solid #d7e7ff;color:#1d4ed8;font-weight:700;font-size:.88rem}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}
.story-kpi-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.story-kpi{padding:18px;border-radius:16px;background:linear-gradient(180deg,#fff,#f8fbff);border:1px solid var(--line)}
.story-kpi strong{display:block;font-size:2rem;line-height:1;font-weight:900;letter-spacing:-.04em;margin-bottom:8px}
.story-kpi span{color:var(--muted);font-size:.95rem}
.logo-bar{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;margin-top:18px}
.logo-bar-text span{display:grid;place-items:center;text-align:center;padding:18px 12px;border-radius:14px;border:1px solid var(--line);background:var(--surface);color:#475467;font-weight:700}
.trust-strip{padding-top:8px}
.customer-stories-grid{grid-template-columns:repeat(2,1fr)}
.story-card-pro{display:grid;gap:14px}
.story-card-top,.story-card-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.story-sector{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:#f5f8ff;border:1px solid #dbe7ff;color:#1d4ed8;font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.story-primary-metric{font-size:1.1rem;font-weight:900;color:var(--primary)}
.story-primary-metric small{font-size:.78rem;color:var(--muted);font-weight:700}
.story-headline{font-size:1.08rem;font-weight:700;color:#0f172a}
.story-proof-list{display:grid;gap:10px}
.story-card-pro blockquote,.story-quote-panel blockquote{margin:0;padding:0;border:none;font-size:1.05rem;line-height:1.55;color:#111827;font-weight:600}
.story-card-actions a{font-weight:800}
.story-card-actions span{color:var(--muted);font-size:.92rem}
.story-plan-table-wrap{overflow:auto}
.story-plan-table td{vertical-align:top}
.trust-badges-panel .trust-badge-list{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0 12px}
.trust-badge-item{padding:14px 16px;border-radius:14px;background:#f8fbff;border:1px solid var(--line);font-weight:700;color:#334155}
.customer-cta-band{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:28px 30px}
.story-breadcrumbs{margin-bottom:14px}
.story-quote-panel{display:grid;align-content:start;gap:10px}
.story-quote-role,.story-quote-company{color:var(--muted);font-weight:700}
.customer-detail-grid{grid-template-columns:1.05fr .95fr}
.before-after-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px}
.story-results-stack{display:grid;gap:12px}
.compact-story-card h3{margin-bottom:4px}
.related-story-grid{grid-template-columns:repeat(3,1fr)}
.customer-mini-chart .bar-row span,.customer-detail-grid .bar-row span{font-weight:700;color:#334155}
@media (max-width:1120px){.stories-hero,.story-detail-hero,.customer-detail-grid,.stories-summary-grid,.customer-stories-grid,.related-story-grid,.logo-bar,.before-after-grid,.trust-badges-panel .trust-badge-list{grid-template-columns:1fr}}


.story-kpi-fixed-money{font-size:2rem;letter-spacing:-.04em;white-space:nowrap}
.customer-cta-band .button-link.secondary{background:#fff;color:#111827;border:1px solid rgba(17,24,39,.14)}
.customer-cta-band .button-link.secondary:hover{background:#f8fafc;color:#111827}


/* Night mode fixes */
html[data-theme="dark"]{
  --bg:#0f172a;
  --surface:#111827;
  --surface-soft:#0f172a;
  --surface-strong:#162033;
  --text:#e5e7eb;
  --muted:#94a3b8;
  --line:#334155;
  --line-strong:#475569;
  --shadow:0 20px 50px rgba(2,6,23,.45);
  --shadow-soft:0 10px 30px rgba(2,6,23,.35);
}
html[data-theme="dark"] body{background:linear-gradient(180deg,#08111f 0%,#0f172a 45%,#111827 100%);color:var(--text)}
html[data-theme="dark"] .site-main,
html[data-theme="dark"] .shell,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .panel-soft,
html[data-theme="dark"] .surface-note,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .story-card-pro,
html[data-theme="dark"] .story-kpi,
html[data-theme="dark"] .trust-badge-item,
html[data-theme="dark"] .logo-bar-text span,
html[data-theme="dark"] .kb-side-nav a,
html[data-theme="dark"] .kb-admin-list-item,
html[data-theme="dark"] .kb-hero-figure,
html[data-theme="dark"] .kb-thumb-wrap,
html[data-theme="dark"] .kb-prose-block,
html[data-theme="dark"] .kb-admin-form-wrap,
html[data-theme="dark"] .customer-cta-band,
html[data-theme="dark"] .story-quote-panel,
html[data-theme="dark"] .compact-story-card,
html[data-theme="dark"] .story-card,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .price-card,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .metric,
html[data-theme="dark"] .room-result,
html[data-theme="dark"] .chart-box,
html[data-theme="dark"] .text-box,
html[data-theme="dark"] .list-item{background:var(--surface);color:var(--text);border-color:var(--line)}
html[data-theme="dark"] .story-headline,
html[data-theme="dark"] .story-card-pro blockquote,
html[data-theme="dark"] .story-quote-panel blockquote,
html[data-theme="dark"] .footer-col h4,
html[data-theme="dark"] .kb-admin-list h3,
html[data-theme="dark"] .kb-side-nav h3,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4{color:#f8fafc}
html[data-theme="dark"] p,
html[data-theme="dark"] li,
html[data-theme="dark"] td,
html[data-theme="dark"] th,
html[data-theme="dark"] .story-kpi span,
html[data-theme="dark"] .story-card-actions span,
html[data-theme="dark"] .story-quote-role,
html[data-theme="dark"] .story-quote-company,
html[data-theme="dark"] .customer-mini-chart .bar-row span,
html[data-theme="dark"] .customer-detail-grid .bar-row span,
html[data-theme="dark"] .article-meta,
html[data-theme="dark"] .breadcrumbs,
html[data-theme="dark"] .breadcrumbs a,
html[data-theme="dark"] .muted,
html[data-theme="dark"] .tiny-note,
html[data-theme="dark"] .field-note{color:#cbd5e1}
html[data-theme="dark"] .hero-chip,
html[data-theme="dark"] .story-sector,
html[data-theme="dark"] .kb-category-pills a{background:#0b1220;border-color:#334155;color:#93c5fd}
html[data-theme="dark"] .kb-category-pills a.active,
html[data-theme="dark"] .kb-category-pills a:hover,
html[data-theme="dark"] .kb-side-nav a:hover,
html[data-theme="dark"] .kb-admin-list-item.active{background:#15233a;border-color:#3b82f6;color:#dbeafe}
html[data-theme="dark"] .customer-cta-band .button-link.secondary{background:#111827;color:#f8fafc;border-color:#334155}
html[data-theme="dark"] .customer-cta-band .button-link.secondary:hover{background:#1f2937;color:#ffffff}
html[data-theme="dark"] .footer-enterprise,
html[data-theme="dark"] .footer-container-enterprise{background:transparent}
html[data-theme="dark"] .footer-col a,
html[data-theme="dark"] .footer-meta-row,
html[data-theme="dark"] .footer-meta-row a,
html[data-theme="dark"] .footer-locale,
html[data-theme="dark"] .footer-privacy-choice,
html[data-theme="dark"] .footer-consumer-note,
html[data-theme="dark"] .footer-security-inline{color:#cbd5e1}
html[data-theme="dark"] .footer-col a:hover,
html[data-theme="dark"] .footer-meta-row a:hover{color:#ffffff}
html[data-theme="dark"] .site-header a:not(.button-link),
html[data-theme="dark"] .nav nav a:not(.button-link){color:#dbeafe}
html[data-theme="dark"] .nav nav a:not(.button-link):hover{color:#ffffff}
html[data-theme="dark"] table,
html[data-theme="dark"] .story-plan-table th,
html[data-theme="dark"] .story-plan-table td{border-color:#334155}
html[data-theme="dark"] .story-plan-table th{background:#0b1220;color:#f8fafc}
html[data-theme="dark"] .cookie-banner{background:#111827;color:#e5e7eb;border-color:#334155}
html[data-theme="dark"] .cookie-banner a{color:#93c5fd}
html[data-theme="dark"] .button-link.secondary,
html[data-theme="dark"] .btn.secondary{background:#0b1220;color:#f8fafc !important;border-color:#334155}
html[data-theme="dark"] .button-link.secondary:hover,
html[data-theme="dark"] .btn.secondary:hover{background:#172033}
html[data-theme="dark"] .footer-meta-row{border-color:#334155}

/* System status badge */
.system-status-pill{
display:inline-flex;
align-items:center;
gap:10px;
padding:8px 14px;
background:#e9f9ef;
border:2px solid #1ecb6b;
border-radius:20px;
font-size:14px;
font-weight:600;
color:#0b6b3a;
box-shadow:0 0 0 rgba(30,203,107,0.4);
animation:statusPulse 2.5s infinite;
margin-bottom:10px;
}
.status-dot{
width:10px;
height:10px;
background:#1ecb6b;
border-radius:50%;
box-shadow:0 0 10px rgba(30,203,107,.8);
}
@keyframes statusPulse{
0%{box-shadow:0 0 0 0 rgba(30,203,107,.4);}
70%{box-shadow:0 0 0 8px rgba(30,203,107,0);}
100%{box-shadow:0 0 0 0 rgba(30,203,107,0);}
}
[data-theme="dark"] .system-status-pill{
background:#0c2b1b;
border-color:#1ecb6b;
color:#79ffa9;
}


.system-status-pill-link{text-decoration:none;max-width:max-content}
.status-page{display:grid;gap:28px}
.status-hero{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(320px,.9fr);gap:22px;align-items:stretch}
.status-summary-card{display:grid;gap:16px}
.status-summary-top{display:flex;justify-content:space-between;gap:12px;align-items:center}
.status-summary-grid,.status-metrics-grid,.status-component-grid,.status-admin-component-grid{display:grid;gap:18px}
.status-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.status-component-grid{grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}
.status-metrics-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.status-stat-card,.status-sla-card{padding:18px;border:1px solid var(--line);border-radius:18px;background:var(--surface-soft)}
.status-stat-card strong,.status-sla-figure{display:block;font-size:2rem;line-height:1.1;color:var(--text)}
.status-stat-card span,.status-sla-card p{color:var(--muted)}
.status-section{display:grid;gap:18px}
.section-heading-row{display:flex;justify-content:space-between;gap:18px;align-items:end;flex-wrap:wrap}
.status-badge{display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border-radius:999px;font-size:.86rem;font-weight:700;border:1px solid transparent;white-space:nowrap}
.status-badge-operational{background:#e9f9ef;border-color:#79d8a0;color:#0b6b3a}
.status-badge-degraded{background:#fff8dd;border-color:#f4cf61;color:#855d00}
.status-badge-outage{background:#fff0f0;border-color:#f0a2a2;color:#a32020}
.status-badge-maintenance{background:#eef4ff;border-color:#8fb0ff;color:#173a8f}
.status-sub-badge{display:inline-flex;padding:7px 10px;border-radius:999px;background:var(--surface-soft);border:1px solid var(--line);font-size:.78rem;font-weight:600;color:var(--muted)}
.status-component-card,.status-incident-card{display:grid;gap:12px}
.status-component-head,.status-incident-head{display:flex;justify-content:space-between;gap:16px;align-items:start}
.status-component-head h3,.status-incident-head h3{margin:0 0 6px}
.status-component-head p,.status-incident-head p{margin:0;color:var(--muted)}
.status-component-meta{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:.9rem}
.status-incident-list{display:grid;gap:16px}
.status-incident-badges{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.status-admin-form{gap:20px}
.status-admin-component-card{padding:16px}
.checkbox-row{display:flex;gap:10px;align-items:center}
.checkbox-row input{margin:0}
html[data-theme="dark"] .status-stat-card,html[data-theme="dark"] .status-sla-card,html[data-theme="dark"] .status-sub-badge{background:#0f172a;border-color:#334155;color:#cbd5e1}
html[data-theme="dark"] .status-badge-operational{background:#0c2b1b;color:#79ffa9;border-color:#1ecb6b}
html[data-theme="dark"] .status-badge-degraded{background:#2f2506;color:#f8d97b;border-color:#d8a600}
html[data-theme="dark"] .status-badge-outage{background:#351316;color:#ffb4b4;border-color:#ff7b7b}
html[data-theme="dark"] .status-badge-maintenance{background:#0f1f44;color:#bfd4ff;border-color:#7ca3ff}
@media (max-width: 920px){.status-hero{grid-template-columns:1fr}.status-summary-grid{grid-template-columns:1fr}}


/* Patch fixes v23.4 */
.theme-toggle{position:fixed;right:22px;bottom:22px;z-index:120;width:52px;height:52px;border-radius:999px;border:1px solid var(--line-strong);background:var(--surface);color:var(--text);box-shadow:var(--shadow);display:grid;place-items:center;cursor:pointer}
.theme-toggle:hover{transform:translateY(-1px)}
.theme-toggle .theme-toggle-icon{font-size:1.1rem;line-height:1}
.system-status-pill,.system-status-pill-link,.system-status-pill-link:hover{color:#0b6b3a !important}
.system-status-pill .status-dot{flex:0 0 10px}
html[data-theme="dark"] .system-status-pill,html[data-theme="dark"] .system-status-pill-link,html[data-theme="dark"] .system-status-pill-link:hover{color:#79ffa9 !important}
.footer-col .system-status-pill-link{display:inline-flex}
.footer-col .system-status-pill-link .status-dot{display:inline-block}
.pptx-safe-note{color:var(--muted)}
/* tighten overly broad dark mode overrides */
html[data-theme="dark"] .signal-card .signal-value,html[data-theme="dark"] .preview-kpi,html[data-theme="dark"] .meta-chip,html[data-theme="dark"] .story-rail,html[data-theme="dark"] .stat-card{color:var(--text) !important}
html[data-theme="dark"] .panel-soft,html[data-theme="dark"] .panel-soft p{color:var(--text) !important}
.status-summary-card p, .status-component-card p, .status-incident-card p, .status-summary-card span, .status-component-meta, .status-sub-badge{color:var(--muted)}
html[data-theme="dark"] .status-summary-card p,html[data-theme="dark"] .status-component-card p,html[data-theme="dark"] .status-incident-card p,html[data-theme="dark"] .status-summary-card span,html[data-theme="dark"] .status-component-meta,html[data-theme="dark"] .status-sub-badge{color:#cbd5e1 !important}


.footer-build-version{
  text-align:center;
  padding:12px 20px 26px;
  color:rgba(15,23,42,.72);
  font-size:.82rem;
  letter-spacing:.14em;
  text-transform:uppercase;
}
html[data-theme='dark'] .footer-build-version{
  color:rgba(226,232,240,.72);
}


.media-preview iframe,.study-media-embed iframe,.cover-showcase .cover-media-frame iframe{width:100%;min-height:280px;border:0;border-radius:12px;background:#0f172a}
.datatable-local-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;margin:0 0 12px}
.datatable-toolbar-left,.datatable-toolbar-right{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.datatable-count{font-size:.92rem;color:var(--muted,#667085)}
.datatable-export-btn{padding:.55rem .8rem}


.datatable-lower-bar{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;margin-top:10px}
.datatable-pagesize-label{display:inline-flex;align-items:center;gap:8px;font-size:.92rem;color:var(--muted,#667085)}
.datatable-pagesize{padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:inherit}
.datatable-page-info{font-size:.92rem;color:var(--muted,#667085)}
.datatable-page-btn[disabled]{opacity:.5;cursor:not-allowed}
html[data-theme='dark'] .datatable-pagesize{background:#0f172a;color:#e5e7eb;border-color:#334155}

.datatable-wrap-full .datatable-local-toolbar,.datatable-wrap-full .datatable-lower-bar{padding:0 4px}.datatable-wrap-full .datatable-search{min-width:240px}.datatable-wrap-full .datatable-pagesize{min-width:110px}.datatable-lower-bar-search-only{justify-content:flex-start}.chat-transcript .datatable-local-toolbar{margin-bottom:14px}@media (max-width: 760px){.datatable-wrap-full .datatable-local-toolbar,.datatable-wrap-full .datatable-lower-bar{align-items:stretch}.datatable-wrap-full .datatable-toolbar-left,.datatable-wrap-full .datatable-toolbar-right{width:100%}.datatable-wrap-full .datatable-search,.datatable-wrap-full .datatable-pagesize{width:100%;max-width:none}}

.invite-accept-card{padding:24px 26px;border-radius:16px;max-width:760px}
.member-action-form{display:flex;flex-direction:column;gap:12px}
.member-switch-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.member-switch-row input[type="email"]{min-width:240px;max-width:320px}
html[data-theme='dark'] .invite-accept-card{color:inherit}


html{scroll-behavior:smooth}

.dashboard-actions-bar{
  flex-wrap: wrap;
  gap: 10px;
  justify-content: left;
}
.dashboard-actions-bar .btn{
  margin:0;
  min-height:48px;
  padding:13px 20px;
  border-radius:12px;
  font-size:.96rem;
  font-weight:700;
  letter-spacing:.01em;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.dashboard-actions-bar .btn.secondary{
  background:#ffffff;
}
.dashboard-actions-bar .btn.primary{
  min-width:172px;
}

.study-actions-bar{
  flex-wrap:wrap;
  gap:16px;
  align-items:center;
}
.study-actions-bar .btn,
.study-actions-bar form{
  margin:0;
}
.study-actions-bar .btn{
  min-height:48px;
  padding:13px 20px;
  border-radius:12px;
  font-size:.96rem;
  font-weight:700;
  letter-spacing:.01em;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.study-actions-bar form{
  display:inline-flex;
}
.study-actions-bar form .btn{
  width:100%;
}
.study-actions-bar .btn.secondary{
  background:#ffffff;
}
.study-actions-bar .btn.primary{
  min-width:172px;
}
.simulation-console-panel{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at top right, rgba(37,99,235,.12), transparent 34%),
    radial-gradient(circle at bottom left, rgba(56,189,248,.10), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}
.simulation-console-panel::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(rgba(148,163,184,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.06) 1px, transparent 1px);
  background-size:24px 24px;
  mask-image:linear-gradient(180deg, rgba(0,0,0,.8), rgba(0,0,0,.18));
}
.simulation-console-shell{
  position:relative;
  z-index:1;
}
.simulation-console-results:empty::before{
  content:"Simulation results will populate here after the run completes. The workspace is prepared to display the executive summary, quantified room signals, objections, and recommendation layer in one view.";
  display:block;
  padding:20px 22px;
  border-radius:16px;
  border:1px dashed rgba(37,99,235,.22);
  background:rgba(255,255,255,.74);
  color:#475467;
}
#run-name{
  min-width:240px;
}
.customer-stories-grid .story-card-pro blockquote{
  font-style:normal;
}
.customer-stories-grid .story-card-pro .surface-note{
  background:#f8fbff;
}
html[data-theme="dark"] .study-actions-bar .btn.secondary{
  background:#0b1220;
}
html[data-theme="dark"] .simulation-console-panel{
  background:
    radial-gradient(circle at top right, rgba(59,130,246,.16), transparent 34%),
    radial-gradient(circle at bottom left, rgba(6,182,212,.10), transparent 30%),
    linear-gradient(180deg, #0f172a 0%, #111827 100%);
}
html[data-theme="dark"] .simulation-console-panel::before{
  background:
    linear-gradient(rgba(148,163,184,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.08) 1px, transparent 1px);
}
html[data-theme="dark"] .simulation-console-results:empty::before{
  background:rgba(15,23,42,.72);
  border-color:rgba(96,165,250,.24);
  color:#cbd5e1;
}
html[data-theme="dark"] #run-name{
  background:#0b1220;
}
@media (max-width:780px){
  .study-actions-bar,
  .dashboard-actions-bar{
    width:100%;
  }
  .study-actions-bar .btn,
  .study-actions-bar form,
  .dashboard-actions-bar .btn{
    width:100%;
  }
  #run-name{
    min-width:0;
    width:100%;
  }
}
