/* RunLog Prompt Pricer - Dedicated High-Performance Style System
   Brand: RunLog ("Every run, accounted for.") - runlog.cc
*/

:root {
  --bg-main: #060913;
  --bg-surface: #0A1020;
  --bg-card: rgba(13, 21, 39, 0.75);
  --bg-card-hover: rgba(18, 30, 56, 0.9);
  --border: rgba(255, 255, 255, 0.08);
  --border-active: rgba(255, 87, 34, 0.4);
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --signal-orange: #FF5722;
  --signal-orange-glow: rgba(255, 87, 34, 0.35);
  --accent-cyan: #38BDF8;
  --accent-emerald: #10B981;
  --accent-purple: #A855F7;
  --accent-amber: #F59E0B;
  --accent-red: #EF4444;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(255, 87, 34, 0.12) 0%, transparent 55%),
    radial-gradient(circle at 85% 30%, rgba(56, 189, 248, 0.06) 0%, transparent 45%),
    linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  min-height: 100vh;
  overflow-x: hidden;
}

code, pre, .font-mono {
  font-family: 'JetBrains Mono', monospace;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(6, 9, 19, 0.88);
  backdrop-filter: blur(14px);
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--signal-orange), #FF8A50);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px var(--signal-orange-glow);
  font-weight: 800;
  color: #060913;
  font-size: 16px;
}

.brand-text {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-sub {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  margin-left: 4px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  border: 1px solid var(--border);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text-primary);
}

.currency-toggle {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px;
}

.currency-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.currency-btn.active {
  background: var(--signal-orange);
  color: #060913;
}

.btn-pro-nav {
  padding: 8px 14px;
  background: var(--signal-orange);
  color: #060913;
  font-size: 13px;
  font-weight: 800;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 0 16px var(--signal-orange-glow);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  cursor: pointer;
}

.btn-pro-nav:hover {
  background: #FF6B3D;
  transform: translateY(-1px);
}

/* Hero */
.hero {
  padding: 48px 0 28px;
  text-align: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: #CBD5E1;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--signal-orange);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--signal-orange);
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

h1 {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

h1 span.highlight {
  color: var(--signal-orange);
}

.hero p.lead {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 820px;
  margin: 0 auto 24px;
}

/* Preset Quick Select */
.presets-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.preset-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.preset-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.preset-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 87, 34, 0.3);
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* Studio Layout (Two Column Grid) */
.studio-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  margin-bottom: 48px;
}

@media (max-width: 1024px) {
  .studio-grid {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  backdrop-filter: blur(12px);
  position: relative;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-title svg {
  color: var(--signal-orange);
}

/* Tabs */
.tabs-nav {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  gap: 4px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.tab-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Textareas & Inputs */
textarea.code-editor {
  width: 100%;
  height: 220px;
  background: #080D1A;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  color: #E2E8F0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

textarea.code-editor:focus {
  border-color: var(--signal-orange);
  box-shadow: 0 0 10px rgba(255, 87, 34, 0.15);
}

.input-hint {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Sliders */
.slider-group {
  margin-top: 20px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
}

.slider-value-pill {
  font-family: 'JetBrains Mono', monospace;
  color: var(--signal-orange);
  background: rgba(255, 87, 34, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--signal-orange);
  cursor: pointer;
}

/* Token Breakdown Bar */
.token-breakdown-card {
  background: rgba(13, 21, 39, 0.9);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.token-total-display {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.token-big-num {
  font-size: 32px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: #FFFFFF;
}

.token-bar {
  display: flex;
  height: 10px;
  border-radius: 9999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 14px;
}

.bar-segment {
  height: 100%;
  transition: width 0.3s ease;
}

.bar-system { background: var(--accent-purple); }
.bar-user { background: var(--accent-cyan); }
.bar-schema { background: var(--accent-amber); }
.bar-thinking { background: var(--signal-orange); }
.bar-output { background: var(--accent-emerald); }

.legend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  font-size: 11px;
  color: var(--text-secondary);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

/* Cost Ticker Cohorts */
.cohort-ticker-card {
  background: #080D1A;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
  transition: all 0.2s;
}

.cohort-ticker-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.cohort-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cohort-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 4px;
}

.badge-frontier { background: rgba(168, 85, 247, 0.15); color: #C084FC; border: 1px solid rgba(168, 85, 247, 0.3); }
.badge-workhorse { background: rgba(16, 185, 129, 0.15); color: #34D399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-media { background: rgba(56, 189, 248, 0.15); color: #7DD3FC; border: 1px solid rgba(56, 189, 248, 0.3); }

.cohort-cost-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.cohort-model-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.cohort-price-val {
  font-size: 20px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: var(--signal-orange);
}

.cohort-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
}

/* Bloat Warning Box */
.bloat-alert-box {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 24px;
}

.bloat-alert-box.clean {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
}

.bloat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.bloat-alert-box.clean .bloat-header { color: var(--accent-emerald); }
.bloat-alert-box:not(.clean) .bloat-header { color: #F87171; }

.bloat-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.bloat-savings-banner {
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
}

/* Volume Scale Simulator Buttons */
.scale-selector {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.scale-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.scale-btn.active {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Model Catalog Table Section */
.catalog-section {
  margin-top: 40px;
  margin-bottom: 80px;
}

.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.catalog-filters {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-input {
  background: #080D1A;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 14px;
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  width: 220px;
}

.filter-select {
  background: #080D1A;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 14px;
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  cursor: pointer;
}

.cache-toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}

/* Table */
.table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow-x: auto;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

table.models-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

table.models-table th {
  background: rgba(13, 21, 39, 0.95);
  padding: 14px 18px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}

table.models-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
}

table.models-table tr:hover td {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.model-name-cell {
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
}

.model-provider-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.cost-highlight {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 14px;
  color: var(--signal-orange);
}

.cache-discount-pill {
  font-size: 10px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  font-weight: 700;
}

/* Sharing & Action Toolbar */
.action-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(13, 21, 39, 0.8);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 12px;
}

.toolbar-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.toolbar-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Pro Micro-SaaS Banner */
.pro-card-banner {
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.12) 0%, rgba(13, 21, 39, 0.95) 100%);
  border: 1px solid var(--border-active);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.pro-banner-content h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.pro-banner-content p {
  color: var(--text-secondary);
  font-size: 14px;
  max-width: 600px;
}

.pro-perks-list {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #E2E8F0;
}

.pro-perks-list span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-pro-checkout {
  padding: 14px 28px;
  background: var(--signal-orange);
  color: #060913;
  font-size: 15px;
  font-weight: 800;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 0 24px var(--signal-orange-glow);
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-pro-checkout:hover {
  background: #FF6B3D;
  transform: translateY(-2px);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0D1527;
  border: 1px solid var(--border-active);
  color: var(--text-primary);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.25s ease;
  pointer-events: none;
  z-index: 1000;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #090F1F;
  border: 1px solid var(--border-active);
  border-radius: 14px;
  max-width: 580px;
  width: 90%;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 20px;
}

.modal-close:hover {
  color: var(--text-primary);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--signal-orange);
}

/* ==========================================================================
   MULTI-TURN CONVERSATION & CONTEXT RESET ADVISOR
   ========================================================================== */
.context-advisor-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(13, 21, 39, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  animation: pulse-border 3s infinite ease-in-out;
}

@keyframes pulse-border {
  0%, 100% { border-color: rgba(245, 158, 11, 0.4); }
  50% { border-color: rgba(255, 87, 34, 0.7); }
}

.advisor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.advisor-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #FBBF24;
}

.advisor-badge {
  font-size: 11px;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.2);
  color: #FDE68A;
  padding: 2px 8px;
  border-radius: 4px;
}

.advisor-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
  font-size: 12px;
}

.advisor-stat-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 6px;
}

.advisor-stat-label {
  color: var(--text-muted);
  font-size: 11px;
}

.advisor-stat-val {
  font-size: 16px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: #FFFFFF;
}

.advisor-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.btn-handoff {
  background: var(--signal-orange);
  color: #060913;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-handoff:hover {
  background: #FF6B3D;
  transform: translateY(-1px);
}

/* ==========================================================================
   SIDECAR / DOCKED SIDE-APP MODE (440px wide for tiling next to ChatGPT/IDE)
   ========================================================================== */
body.sidecar-mode {
  max-width: 460px;
  margin: 0 auto;
  font-size: 12px;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: #060913;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.9);
}

body.sidecar-mode .container {
  max-width: 100%;
  padding: 0 14px;
}

body.sidecar-mode .hero {
  padding: 24px 0 14px;
}

body.sidecar-mode h1 {
  font-size: 26px;
}

body.sidecar-mode .hero p.lead {
  font-size: 13px;
  margin-bottom: 16px;
}

body.sidecar-mode .studio-grid {
  grid-template-columns: 1fr;
  gap: 16px;
}

body.sidecar-mode .presets-bar {
  display: none;
}

body.sidecar-mode .catalog-section {
  display: none;
}

body.sidecar-mode .pro-card-banner {
  padding: 18px;
}

body.sidecar-mode textarea.code-editor {
  height: 140px;
  font-size: 12px;
}

/* Live Feed Sync Pill */
.live-sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  padding: 3px 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 9999px;
  color: var(--accent-emerald);
  cursor: pointer;
  transition: all 0.2s;
}

.live-sync-pill:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.4);
}


/* Keep controls and grid contents usable on narrow screens. */
.studio-grid > *, .cross-sell > * { min-width: 0; }
@media (max-width: 760px) {
  nav > .container, .nav-actions { flex-wrap: wrap; gap: 12px; }
  .nav-actions { width: 100%; }
  .studio-grid { grid-template-columns: minmax(0, 1fr); }
  .card-header { flex-wrap: wrap; gap: 10px; }
  .tabs-nav { overflow-x: auto; max-width: 100%; }
  .tabs-nav .tab-btn { flex-shrink: 0; }
  .cross-sell { grid-template-columns: minmax(0, 1fr) !important; }
  .pro-card-banner { padding: 24px; }
}


/* Task-first estimator: enter a prompt, see costs, then explore optional tools. */
body.rl-experience.pricer-page .hero{padding:24px 0 12px;text-align:left}
body.rl-experience.pricer-page .hero .container{padding-top:0;padding-bottom:0}
body.rl-experience.pricer-page .hero h1{font-family:var(--body),sans-serif;font-weight:650;font-size:clamp(28px,4vw,44px);line-height:1.15;letter-spacing:-1px;margin:12px 0}
body.rl-experience.pricer-page .hero p.lead{font-size:16px;max-width:660px;margin:0}
body.rl-experience.pricer-page .hero .badge-pill{margin-bottom:0}
body.rl-experience.pricer-page main.container{padding-top:0}
body.rl-experience.pricer-page .studio-grid{gap:24px;align-items:start;margin-bottom:24px}
body.rl-experience.pricer-page .studio-grid>.card{padding:22px;margin:0}
body.rl-experience.pricer-page .studio-grid>section:nth-child(2){padding:0;margin:0}
body.rl-experience.pricer-page .card-header{margin-bottom:16px}
body.rl-experience.pricer-page .prompt-primary textarea{min-height:150px;height:150px;font-size:14px}
body.rl-experience.pricer-page .input-hint{gap:10px;flex-wrap:wrap}
body.rl-experience.pricer-page .pricer-disclosure{border:1px solid var(--border);border-radius:8px;margin:16px 0;background:var(--bg-surface);padding:0 14px}
body.rl-experience.pricer-page .pricer-disclosure>summary{cursor:pointer;padding:13px 0;min-height:44px;font-size:14px;font-weight:600;color:var(--text-primary)}
body.rl-experience.pricer-page .pricer-disclosure[open]{padding-bottom:14px}
body.rl-experience.pricer-page .pricer-disclosure .tabs-nav{margin-top:6px;flex-wrap:wrap;gap:4px;overflow:visible}
body.rl-experience.pricer-page .tab-btn{font-size:12px;padding:8px;white-space:normal;min-height:44px}
body.rl-experience.pricer-page .slider-group{padding:10px;margin-top:12px;min-height:0}
body.rl-experience.pricer-page .slider-group>div:last-child{display:none!important}
body.rl-experience.pricer-page .slider-group input[type=range]{padding:0;height:28px;min-height:28px;margin:4px 0;border:0;background:transparent}
body.rl-experience.pricer-page .slider-label-row{gap:12px;flex-wrap:wrap;font-size:14px}
body.rl-experience.pricer-page .scale-selector{flex-wrap:wrap}
body.rl-experience.pricer-page .scale-btn{min-height:44px;padding:9px;flex:1;font-size:12px}
body.rl-experience.pricer-page .studio-grid .estimate-heading{font:600 18px/1.4 var(--body);letter-spacing:0;margin:0 0 8px}
body.rl-experience.pricer-page .cohort-ticker-card{padding:16px;margin-bottom:12px}
body.rl-experience.pricer-page .cohort-cost-row{gap:12px;flex-wrap:wrap}
body.rl-experience.pricer-page .cohort-model-name{font-size:16px;overflow-wrap:anywhere}
body.rl-experience.pricer-page .cohort-price-val{font-size:26px}
body.rl-experience.pricer-page .cohort-header,body.rl-experience.pricer-page .cohort-meta{flex-wrap:wrap;gap:6px}
body.rl-experience.pricer-page .action-toolbar{margin:20px 0;flex-wrap:wrap;gap:12px}
body.rl-experience.pricer-page .product-toolbar{position:static;margin:14px 0 0;padding:0;border:0;flex-wrap:wrap;gap:12px}
body.rl-experience.pricer-page .product-toolbar .nav-actions{flex-wrap:wrap;gap:10px;min-width:0}
body.rl-experience.pricer-page .presets-bar{justify-content:flex-start;flex-wrap:wrap;margin:0}
body.rl-experience.pricer-page .cross-sell{grid-template-columns:repeat(2,minmax(0,1fr))!important}
body.rl-experience.pricer-page button:focus-visible,body.rl-experience.pricer-page summary:focus-visible{outline:2px solid var(--accent-amber);outline-offset:3px}
body.rl-experience.pricer-page .currency-toggle{display:inline-flex;margin-bottom:12px;padding:3px;height:42px}
body.rl-experience.pricer-page .currency-toggle .currency-btn{padding:3px 10px;min-height:34px;margin:0;font-size:12px}
@media(max-width:700px){
 body.rl-experience.pricer-page .container{padding-left:16px;padding-right:16px}
 body.rl-experience.pricer-page .hero{padding:16px 0 12px}
 body.rl-experience.pricer-page .hero h1{font-size:28px;margin:0 0 8px}
 body.rl-experience.pricer-page .hero .lead{font-size:15px}
 body.rl-experience.pricer-page .hero .badge-pill{display:none}
 body.rl-experience.pricer-page .studio-grid{gap:16px}
 body.rl-experience.pricer-page .studio-grid>.card{padding:14px}
 body.rl-experience.pricer-page .card-header{gap:8px;flex-wrap:wrap}
 body.rl-experience.pricer-page .card-header>span{display:none}
 body.rl-experience.pricer-page .prompt-primary textarea{height:130px;min-height:130px}
 body.rl-experience.pricer-page .slider-label-row{gap:6px;font-size:12px}
 body.rl-experience.pricer-page .slider-value-pill{font-size:12px;padding:2px 6px}
 body.rl-experience.pricer-page .scale-selector{gap:5px}
 body.rl-experience.pricer-page .cross-sell{grid-template-columns:1fr!important}
 body.rl-experience.pricer-page .pro-card-banner{padding:20px;flex-wrap:wrap}
 body.rl-experience.pricer-page .nav-actions>*,body.rl-experience.pricer-page .toolbar-btn{max-width:100%;white-space:normal}
 body.rl-experience.pricer-page .cohort-price-val{font-size:23px}
 body.rl-experience.pricer-page .studio-grid>section:nth-child(2)>.currency-toggle{float:right;margin:0 0 8px 8px}
 body.rl-experience.pricer-page .studio-grid .estimate-heading{min-height:42px;padding-top:8px}
 body.rl-experience.pricer-page .studio-grid .cohort-ticker-card{padding:14px}
 body.rl-experience.pricer-page .studio-grid .cohort-header{font-size:12px;margin-bottom:8px}
 body.rl-experience.pricer-page .studio-grid .cohort-badge{font-size:10px;letter-spacing:0;padding:3px 6px}
}

/* Keep the basic estimate readable; optional tools stay in native disclosures. */
body.rl-experience.pricer-page .pricer-help,body.rl-experience.pricer-page .pricer-example{font-size:14px;line-height:1.6;color:var(--text-secondary);margin:0 0 14px}
body.rl-experience.pricer-page .pricer-example .toolbar-btn{margin-top:8px;display:block}
body.rl-experience.pricer-page .pricer-disclosure>summary{cursor:pointer;line-height:1.5}
body.rl-experience.pricer-page .pricer-disclosure[open]>summary{margin-bottom:16px}

.pricer-estimate-jump { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 8px; font-weight: 700; }
#estimated-cost { scroll-margin-top: 24px; }
#estimate-empty-state { padding: 12px; border: 1px solid var(--border-color, #475569); border-radius: 8px; }
