/* S179 FINAL EXECUTIVE SURFACE CONSOLIDATION
   Last-mile surface policy: Founder View is quiet; Technical View keeps depth.
   This layer intentionally adds no polling and no new dashboard surface. */

html body.s179-final-surface {
  --s179-panel-bg: rgba(255,255,255,.022);
  --s179-panel-border: rgba(255,255,255,.055);
  --s179-muted: var(--tx-3, rgba(232,236,245,.58));
}

html body.s179-final-surface .app {
  isolation: isolate;
}

/* Founder View: one operational surface, no raw runtime chatter. */
html body.s179-final-surface:not(.technical-view) .app:not(.technical-view) #tb-runtime,
html body.s179-final-surface:not(.technical-view) .app:not(.technical-view) #rp-codex-style,
html body.s179-final-surface:not(.technical-view) .app:not(.technical-view) #rp-onboarding,
html body.s179-final-surface:not(.technical-view) .app:not(.technical-view) #rp-founder-dashboard,
html body.s179-final-surface:not(.technical-view) .app:not(.technical-view) #rp-stability,
html body.s179-final-surface:not(.technical-view) .app:not(.technical-view) #rp-parallel-run,
html body.s179-final-surface:not(.technical-view) .app:not(.technical-view) #rp-runs,
html body.s179-final-surface:not(.technical-view) .app:not(.technical-view) #rp-providers,
html body.s179-final-surface:not(.technical-view) .app:not(.technical-view) #rp-provider-control,
html body.s179-final-surface:not(.technical-view) .app:not(.technical-view) #rp-provider-ledger,
html body.s179-final-surface:not(.technical-view) .app:not(.technical-view) #rp-context,
html body.s179-final-surface:not(.technical-view) .app:not(.technical-view) .rp-tabs,
html body.s179-final-surface:not(.technical-view) .app:not(.technical-view) .rp-head,
html body.s179-final-surface:not(.technical-view) .app:not(.technical-view) .focus-technical,
html body.s179-final-surface:not(.technical-view) .app:not(.technical-view) .msg-trace,
html body.s179-final-surface:not(.technical-view) .app:not(.technical-view) .msg-runstate,
html body.s179-final-surface:not(.technical-view) .app:not(.technical-view) .msg-provider-debug,
html body.s179-final-surface:not(.technical-view) .app:not(.technical-view) .live-reasoning-feed,
html body.s179-final-surface:not(.technical-view) .app:not(.technical-view) .execution-movements-ledger,
html body.s179-final-surface:not(.technical-view) .app:not(.technical-view) .founder-presence-copilot,
html body.s179-final-surface:not(.technical-view) .app:not(.technical-view) .recovery-status-banner,
html body.s179-final-surface:not(.technical-view) .app:not(.technical-view) [data-technical-only="1"] {
  display: none !important;
}

html body.s179-final-surface:not(.technical-view) .rp {
  background:
    linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,.008)),
    var(--panel, rgba(11,12,16,.88));
}

html body.s179-final-surface:not(.technical-view) .rp .s182-container {
  display: block !important;
  padding: 10px 0 18px;
}

html body.s179-final-surface:not(.technical-view) .s182-panel {
  margin: 10px 12px;
  border-color: var(--s179-panel-border);
  background: var(--s179-panel-bg);
  border-radius: 12px;
  box-shadow: none;
}

html body.s179-final-surface:not(.technical-view) .s182-panel-header {
  padding: 13px 14px 11px;
}

html body.s179-final-surface:not(.technical-view) .s182-panel-title {
  letter-spacing: 0;
}

html body.s179-final-surface:not(.technical-view) .s182-vertec {
  display: inline-flex;
  margin: 8px 18px 0;
  color: var(--s179-muted);
  font-size: 12px;
  text-decoration: none;
}

html body.s179-final-surface:not(.technical-view) .s182-vertec:hover {
  color: var(--tx-1, #f4f7ff);
}

html body.s179-final-surface:not(.technical-view) .msg .artifact-card,
html body.s179-final-surface:not(.technical-view) .artifact-card,
html body.s179-final-surface:not(.technical-view) .s181-artifact-card {
  border-color: rgba(255,255,255,.055);
  background: rgba(255,255,255,.025);
  box-shadow: none;
}

/* Reduce legacy page/product feeling in embedded sections without deleting routes. */
html body.s179-final-surface:not(.technical-view) .knowledge-eyebrow,
html body.s179-final-surface:not(.technical-view) .debug-eyebrow,
html body.s179-final-surface:not(.technical-view) .runtime-eyebrow {
  display: none !important;
}

html body.s179-final-surface:not(.technical-view) .main,
html body.s179-final-surface:not(.technical-view) .chat-shell,
html body.s179-final-surface:not(.technical-view) #msgs {
  scroll-behavior: smooth;
}

/* Technical View: restore diagnostic depth explicitly. */
html body.s179-final-surface.technical-view #tb-runtime,
html body.s179-final-surface .app.technical-view #tb-runtime {
  display: inline-flex !important;
}

html body.s179-final-surface.technical-view .rp .rp-head,
html body.s179-final-surface .app.technical-view .rp .rp-head,
html body.s179-final-surface.technical-view .rp .rp-tabs,
html body.s179-final-surface .app.technical-view .rp .rp-tabs,
html body.s179-final-surface.technical-view .rp #rp-context,
html body.s179-final-surface .app.technical-view .rp #rp-context {
  display: revert !important;
}

html body.s179-final-surface.technical-view .s182-vertec::after,
html body.s179-final-surface .app.technical-view .s182-vertec::after {
  content: " ativo";
  color: var(--tx-3, rgba(232,236,245,.58));
}

@media (max-width: 980px) {
  html body.s179-final-surface:not(.technical-view) .rp .s182-container {
    padding-bottom: 10px;
  }
}
