/* Shared finish: original electric blue restored, brand red/gray used as accents. */
body {
  --blue: var(--rota-blue);
  --red: var(--rota-red);
  --cyan: var(--rota-cyan);
  --ui-bg: #F5F6F8;
  --ui-surface: #FFFFFF;
  --ui-soft: #EEF1F5;
  --ui-text: #252E39;
  --ui-muted: var(--rota-gray);
  --ui-line: #D8DEE5;
  --ui-accent: var(--rota-deep-blue);
  --ui-rose: #AF2332;
  --ui-grid: #0869DC0C;
  --ui-highlight: #FFFFFFCC;
}
body[data-theme="dark"] {
  --ui-bg: var(--rota-canvas);
  --ui-surface: var(--rota-surface);
  --ui-soft: var(--rota-surface-raised);
  --ui-text: var(--rota-text);
  --ui-muted: var(--rota-muted);
  --ui-line: var(--rota-line);
  --ui-accent: #71CFFF;
  --ui-rose: #F18D99;
  --ui-grid: #71CFFF14;
  --ui-highlight: #DDE8F010;
}
body[data-theme] :is(.mining-heading,.mining-workspace,.plugin-workspace) {
  --work-bg: var(--ui-surface);
  --work-soft: var(--ui-soft);
  --work-text: var(--ui-text);
  --work-muted: var(--ui-muted);
  --work-line: var(--ui-line);
  --work-accent: var(--ui-accent);
  --work-selected: color-mix(in srgb,var(--rota-blue) 12%,var(--ui-surface));
  --work-grid: var(--ui-grid);
  --work-highlight: var(--ui-highlight);
}
body[data-theme] .app-shell {
  --finish-text: var(--ui-text); --finish-muted: var(--ui-muted);
  --finish-surface: var(--ui-surface); --finish-raised: var(--ui-soft);
  --finish-line: var(--ui-line); --finish-accent: var(--ui-accent);
}
body[data-theme] .app-shell .sidebar { background: var(--rota-navy); border-color: #293B4A; }
body[data-theme] .app-shell .nav-item.active { background: #172F43; border-color: #37607A; box-shadow: inset 2px 0 var(--rota-red); }
body[data-theme] .app-shell .nav-item.active .nav-icon { color: var(--rota-cyan); }
body[data-theme] .app-shell .nav-item.active::before { background: var(--rota-red); box-shadow: none; }
body[data-theme] .app-shell .nav-label { font-weight: 550; }
body[data-theme] .app-shell .eyebrow { color: var(--ui-accent); }
body[data-theme] .profile-button { background: linear-gradient(145deg,#269AFF,#0869DC); border-color: #71CFFF66; box-shadow: inset 0 1px #FFFFFF26; }
body[data-theme] .app-shell .primary-button:not(:disabled),
body[data-theme] .workspace-send {
  background: linear-gradient(135deg,#269AFF,#0878FF 65%); border-color: #1688FF;
  box-shadow: inset 0 1px #FFFFFF26; color: white;
}
body[data-theme] .workspace-send:hover:not(:disabled),
body[data-theme] .app-shell .primary-button:hover:not(:disabled) { background: #0869DC; box-shadow: inset 0 1px #FFFFFF26,0 4px 14px #0878FF18; }
body[data-theme] .app-shell :is(button,a,input,select,textarea):focus-visible { outline-color: var(--ui-accent); }
body[data-theme] .app-shell :is(.agent-usage-fill,.agent-usage-progress > span) { background: var(--rota-blue); }
body[data-theme] .app-shell .agent-usage-track { background: var(--ui-soft); border-color: var(--ui-line); box-shadow: none; }
body[data-theme] .app-shell .agent-usage-track > span { background: var(--rota-blue); box-shadow: none; }
body[data-theme] .research-stepper [aria-current] > span { background: var(--rota-blue); border-color: var(--rota-blue); }
body[data-theme] .tone-blue { --tone: #269FFF; }
body[data-theme] .tone-rose { --tone: var(--rota-red); }
body[data-theme] .research-choices .research-specialty-choice { border-color: var(--rota-blue); box-shadow: inset 0 0 0 1px var(--rota-blue); }
body[data-theme] .research-choices .research-specialty-choice::after { background: var(--rota-red); }
body[data-theme] .research-header::before { background: linear-gradient(90deg,var(--rota-blue),var(--rota-cyan) 65%,var(--rota-red)); }
body[data-theme] .research-step-final.is-current { color: var(--ui-rose); }
body[data-theme] .plugin-heading .workspace-eyebrow { color: color-mix(in srgb,var(--active-agent) 68%,var(--ui-text)); }
body[data-theme] .research-board-header { border-top: 2px solid var(--rota-red); }
body[data-theme] .research-board-header h4 { color: var(--work-text); }
body[data-theme] :is(.research-choices,.plugin-language,.plugin-visual-choices) input { accent-color: var(--rota-blue); }
body[data-theme] .research-progress progress { accent-color: var(--rota-blue); }
body[data-theme] .app-shell .hotmart-range output { color: var(--ui-accent); }
body[data-theme] .app-shell .hotmart-range input { accent-color: var(--rota-blue); }
body[data-theme] .app-shell .hotmart-code-card { border-top-color: var(--rota-blue); }
body[data-theme] .app-shell .landing-plan-card { --plan-tone: var(--rota-blue); }
body[data-theme] .app-shell .landing-plan-card:nth-child(2) { --plan-tone: var(--rota-gray); }
body[data-theme] .app-shell .landing-plan-card:nth-child(3) { --plan-tone: var(--rota-red); }
body[data-theme] .app-shell .landing-plan-card.current > em { color: var(--ui-accent); }
body[data-theme] .app-shell .landing-plan-card .plan-choice-button:not(:disabled) { border-color: var(--rota-blue); color: var(--ui-text); background: #0878FF1A; }
body[data-theme] .app-shell .landing-plan-card.featured .plan-choice-button:not(:disabled) { background: var(--rota-blue); border-color: #68B5FF; color: #FFF; }
body[data-theme] .app-shell .landing-plan-card li::before { color: var(--ui-accent); }
#authScreen .auth-submit { background: var(--rota-blue); border-color: #68B5FF; }
#authScreen .auth-form :is(.auth-link,.auth-forgot-link) { color: var(--rota-cyan); }
#authScreen .auth-form input:focus { border-color: var(--rota-blue); }

/* Sales page: the same palette with more emphasis reserved for the conversion action. */
body:not([data-theme]) {
  --bg: var(--rota-canvas); --panel: var(--rota-surface);
  --panel-2: var(--rota-surface-raised); --line: var(--rota-line);
  --line-strong: var(--rota-blue); --text: var(--rota-text); --muted: var(--rota-muted);
}
.site-header, .site-header.is-scrolled, .site-header.menu-is-open { background: var(--rota-canvas); border-bottom-color: #6B72802B; }
.hero-panel::before { background-image: linear-gradient(to right,#35D7FF16 1px,transparent 1px),linear-gradient(to bottom,#35D7FF16 1px,transparent 1px); }
.hero-panel::after { background: radial-gradient(ellipse at 50% 45%,#0D172200 28%,#0D17228C 66%,#0D1722FA 100%); }
.site-header .section-menu a:hover, .site-header .section-menu a:focus-visible { color: var(--rota-cyan); background: #0878FF14; }
.site-header .section-menu-button { border-color: #35D7FF68; color: var(--rota-text); background: #0878FF14; }
.hero-copy .status-chip, .section .section-kicker { color: #BCECFF; border-color: #35D7FF38; background: #35D7FF08; }
.hero-copy .status-chip::before { background: var(--rota-cyan); box-shadow: 0 0 0 4px #35D7FF12; }
:is(h1,h2,h3) .headline-highlight { background: none; color: #62D2FF; -webkit-text-fill-color: #62D2FF; }
@supports (background-clip: text) { :is(h1,h2,h3) .headline-highlight { background-image: linear-gradient(105deg,#6BAFFF,#35D7FF); background-clip: text; -webkit-background-clip: text; color: transparent; -webkit-text-fill-color: transparent; } }
.hero-actions .primary-button, .closing-card .primary-button {
  background: var(--rota-red); border-color: #ED6D7A; color: #FFF;
  box-shadow: inset 0 1px #FFFFFF30,0 0 22px #D7263828;
}
.hero-actions .primary-button::before { background: linear-gradient(110deg,transparent 20%,#FFFFFF22 48%,transparent 70%); }
.hero-actions .primary-button:hover, .hero-actions .primary-button:focus-visible, .closing-card .primary-button:hover { background: #BD2030; border-color: #ED6D7A; box-shadow: inset 0 1px #FFFFFF40,0 0 26px #D7263840; }
.brief-block-grid article, .refined-function-grid article, .price-card {
  background: linear-gradient(135deg,#71CFFF08,transparent 70%),var(--rota-surface);
  border-color: var(--rota-line); box-shadow: inset 0 1px #FFFFFF08;
}
.brief-block-grid article:nth-child(2), .price-card:nth-child(2) { background: linear-gradient(135deg,#6B728014,transparent 70%),var(--rota-surface); }
.price-card.featured { background: linear-gradient(135deg,#D726380A,transparent 70%),var(--rota-surface); }
.price-card.featured { border-color: #D7263899; box-shadow: inset 0 2px var(--rota-red); }
.brief-block-grid article:nth-child(3) { background: linear-gradient(135deg,#71CFFF08,transparent 70%),var(--rota-surface); border-top-color: var(--rota-blue); box-shadow: inset 0 2px var(--rota-blue); }
.closing-card { border-top-color: var(--rota-red); }
.price-card.featured > em { background: #D7263810; color: #F0A3AC; border-color: #D726384D; }
.price-card a { border-color: #71CFFF80; background: #0878FF14; }
.price-card.featured a, .price-card.featured a:hover { background: var(--rota-red); border-color: #ED6D7A; }
.section::before { background: var(--rota-blue); }
.faq-grid details { border-color: var(--rota-line); }
.system-feature figure { border-color: var(--rota-line); box-shadow: none; }
@media (max-width: 760px) { .site-header .section-menu { background: var(--rota-canvas); border-color: var(--rota-line); } }
@media (forced-colors: active) { :is(h1,h2,h3) .headline-highlight { color: CanvasText; -webkit-text-fill-color: CanvasText; } }
