.s207-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 18px 6px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: rgba(0,0,0,0.12);
  flex: 0 0 auto;
}

.tb .s207-tabs.s243-header-tabs {
  min-height: 34px;
  height: 34px;
  padding: 0;
  border-bottom: 0;
  background: transparent;
  gap: 4px;
}

.tb .s207-tabs.s243-header-tabs .s207-tab {
  height: 30px;
  min-width: 64px;
  border-radius: 8px;
  font-size: 13px;
}

body.ia-clean:not(.technical-view) .tb-r > :not(#s207-center-tabs):not(#tb-founder-focus):not(#tb-technical-view) {
  display: none !important;
}

body.ia-clean:not(.technical-view) .tb-l .future-control {
  display: none !important;
}

body.ia-clean:not(.technical-view) #tb-founder-focus {
  display: none !important;
}

body.ia-clean:not(.technical-view) .tb {
  min-height: 48px;
}

body.ia-clean:not(.technical-view) .tb-pill {
  max-width: min(560px, 52vw);
}

body.ia-clean:not(.technical-view) .tb-project-wrap {
  min-width: 0;
  color: rgba(236,236,241,0.56);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s207-tab {
  height: 30px;
  min-width: 72px;
  border: 0;
  border-radius: 9px;
  padding: 0 13px;
  background: transparent;
  color: rgba(236,236,241,0.72);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.s207-tab:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(236,236,241,0.94);
}

.s207-tab.is-active {
  background: rgba(255,255,255,0.10);
  color: #fff;
}

.s207-browser-panel {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 20px 26px 30px;
  background: #191a1d;
}

.s207-browser-shell,
.hq-page {
  max-width: 1120px;
  margin: 0 auto;
  color: #f4f4f5;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.s207-browser-module {
  max-width: none;
  height: calc(100vh - 178px);
  min-height: 560px;
  display: flex;
  flex-direction: column;
}

.s207-browser-head,
.hq-page-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.s207-browser-title,
.hq-page-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  color: rgba(255,255,255,0.94);
  letter-spacing: 0;
}

.s207-browser-route,
.hq-page-subtitle {
  font-size: 12px;
  color: rgba(236,236,241,0.52);
  white-space: nowrap;
}

.s207-browser-frame {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: #0b0c10;
  color-scheme: dark;
}

.s207-browser-card,
.hq-card {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--ox-radius-card, 10px);
  background: var(--ox-card-bg, rgba(255,255,255,0.035));
  padding: 15px 16px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.02) inset;
}

.s207-browser-card + .s207-browser-card {
  margin-top: 10px;
}

.s207-browser-grid,
.hq-grid {
  display: grid;
  gap: 10px;
}

.s207-browser-row,
.hq-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.s207-browser-row:last-child {
  border-bottom: 0;
}

.s207-browser-muted,
.hq-empty-state {
  color: rgba(236,236,241,0.60);
}

.s207-browser-card p,
.hq-card p {
  margin: 8px 0 0;
  line-height: 1.45;
}

.s207-browser-card p:first-child,
.hq-card p:first-child {
  margin-top: 0;
}

.s207-browser-card strong,
.hq-card strong {
  color: rgba(255,255,255,0.94);
  font-weight: 640;
}

.s207-browser-card > .s207-browser-row > span:first-child,
.hq-card > .hq-action-row > span:first-child {
  color: rgba(236,236,241,0.70);
}

.s207-browser-card[data-real-empty="1"],
.s207-browser-card[data-module-unavailable="1"],
.hq-empty-state,
.hq-card[data-real-empty="1"] {
  border-style: dashed;
  background: rgba(255,255,255,0.022);
}

.s207-browser-card[data-real-empty="1"],
.hq-empty-state,
.hq-card[data-real-empty="1"] {
  color: rgba(236,236,241,0.56);
}

.s207-browser-card[data-module-unavailable="1"] {
  border-color: rgba(244,178,93,0.24);
  background: rgba(244,178,93,0.075);
}

.s207-browser-card[data-module-unavailable="1"] .s207-browser-row strong {
  color: rgba(255,214,163,0.94);
}

.s207-browser-card[data-auth-blocked-real="1"] {
  border-color: rgba(93,139,255,0.22);
  background: rgba(93,139,255,0.07);
}

.s207-browser-card[data-auth-blocked-real="1"] .s207-browser-row strong {
  color: rgba(198,214,255,0.94);
}

.s207-browser-card[data-real-row="1"] {
  min-height: 96px;
}

.s207-app-builder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.s207-app-builder-button {
  height: 32px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.92);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.s207-app-builder-button:hover:not(:disabled) {
  background: rgba(255,255,255,0.09);
}

.s207-app-builder-button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.s207-app-builder-image {
  width: 100%;
  height: auto;
  margin-top: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
}

.s207-app-builder-pre {
  margin: 10px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: rgba(236,236,241,0.82);
}

.s207-search-box {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.s207-search-box input,
.hq-browser-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: inherit;
  padding: 0 12px;
  transition: border-color 120ms ease, background-color 120ms ease;
}

.s207-search-box button,
.hq-browser-button {
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.08);
  color: inherit;
  padding: 0 14px;
  font-weight: 650;
  transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease;
}

.s207-search-box input:focus,
.hq-browser-input:focus,
.s207-real-form input:focus,
.s207-real-form textarea:focus,
.hq-browser-form input:focus,
.hq-browser-form textarea:focus,
.hq-browser-form select:focus {
  outline: none;
  border-color: rgba(93,139,255,0.56);
  background: rgba(255,255,255,0.055);
}

.s207-search-box button:hover,
.hq-browser-button:hover,
.s207-real-form button:hover {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.11);
}

.s207-chip-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}

.s207-chip {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 999px;
  background: rgba(255,255,255,0.035);
  color: rgba(236,236,241,0.72);
  font-size: 12px;
}

.s207-real-form,
.hq-browser-form {
  display: grid;
  gap: 10px;
  margin: 10px 0;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
}

.s207-real-form label {
  display: grid;
  gap: 6px;
  color: rgba(236,236,241,0.76);
  font-size: 12px;
}

.s35-mc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
}

.s35-mc-action {
  min-width: 124px;
}

.s35-mc-action.is-active {
  border-color: rgba(93,139,255,0.40);
  background: rgba(93,139,255,0.16);
  color: rgba(255,255,255,0.96);
}

.s35-mc-action[disabled],
.s35-mc-action.is-disabled {
  opacity: 0.56;
  cursor: not-allowed;
}

.s35-mc-panel[hidden] {
  display: none !important;
}

.s35-mc-alert {
  border-color: rgba(244,178,93,0.24);
  background: rgba(244,178,93,0.075);
}

.s35-mc-alert .s207-browser-row strong {
  color: rgba(255,214,163,0.94);
}

.s35-mc-queue-grid {
  margin-top: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.s207-real-form input,
.s207-real-form textarea,
.hq-browser-form input,
.hq-browser-form textarea,
.hq-browser-form select {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  background: rgba(0,0,0,0.20);
  color: inherit;
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  transition: border-color 120ms ease, background-color 120ms ease;
}

.s207-real-form textarea {
  resize: vertical;
  min-height: 110px;
}

.s207-real-form button,
.s207-persona-card {
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.055);
  color: inherit;
  cursor: pointer;
}

.s207-real-form button {
  min-height: 36px;
  border-radius: 8px;
  padding: 0 13px;
  justify-self: start;
  font-weight: 650;
}

.s207-real-form button:hover,
.s207-persona-card:hover {
  background: rgba(255,255,255,0.07);
}

.center.s207-tab-browser #msgs,
.center.s207-tab-browser .composer-starters,
.center.s207-tab-browser .founder-flow-dock,
.center.s207-tab-browser .active-run,
.center.s207-tab-browser .composer,
.center.s207-tab-browser .comp-queue {
  display: none !important;
}

.center.s207-tab-chat .s207-browser-panel,
.center.s207-tab-chat .knowledge-library,
.center.s207-tab-chat .capabilities-center,
.center.s207-tab-chat .skills-center,
.center.s207-tab-chat .architecture-brain {
  display: none !important;
}

.center.s207-tab-browser .knowledge-library,
.center.s207-tab-browser .capabilities-center,
.center.s207-tab-browser .skills-center,
.center.s207-tab-browser .architecture-brain {
  max-height: none;
}

.lsb .q-item:hover,
.lsb .lsb-title:hover,
.lsb .lsb-list button:hover,
.lsb .lsb-list a:hover,
.hq-table-row:hover,
.hq-table tbody tr:hover,
table tbody tr:hover,
td:hover {
  background-color: rgba(255,255,255,0.055);
  transform: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

.lsb .q-item,
.lsb .lsb-title,
.lsb .lsb-list button,
.lsb .lsb-list a,
.hq-table-row,
.hq-table tbody tr,
table tbody tr,
td {
  transition-property: background-color;
  transition-duration: 120ms;
}

.hq-table,
.hq-table table,
.s207-browser-card table {
  width: 100%;
  border-collapse: collapse;
}

.hq-table-row,
.hq-table tbody tr,
.s207-browser-card table tbody tr {
  min-height: 34px;
}

.hq-table td,
.hq-table th,
.s207-browser-card td,
.s207-browser-card th {
  padding: 9px 0;
  vertical-align: top;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.hq-table tbody tr:last-child td,
.s207-browser-card table tbody tr:last-child td {
  border-bottom: 0;
}

[data-lsb-group="agents"],
[data-lsb-group="tools"],
.s180-ctx-menu {
  display: none !important;
}

/* S208 · limpeza cirurgica do S207 restaurado */
.skip-link {
  position: absolute !important;
  left: -9999px !important;
  top: 8px !important;
  z-index: 9999 !important;
  transform: none !important;
}

.skip-link:focus {
  left: 12px !important;
  top: 12px !important;
}

body.ia-clean:not(.technical-view) [data-nav-group="operation"],
body.ia-clean:not(.technical-view) [data-nav-group="wealth"],
body.ia-clean:not(.technical-view) [data-nav-group="advanced"],
body.ia-clean:not(.technical-view) #q-technical-view-link,
body.ia-clean:not(.technical-view) #lsb-layout-reset,
body.ia-clean:not(.technical-view) #lsb-chat-add,
body.ia-clean:not(.technical-view) #tb-technical-view,
body.ia-clean:not(.technical-view) #rp-detail-toggle,
body.ia-clean:not(.technical-view) .s182-vertec,
body.ia-clean:not(.technical-view) .s183-see-more,
body.ia-clean:not(.technical-view) .s183-project-home-link,
body.ia-clean:not(.technical-view) .lsb-project-new-chat,
body.ia-clean:not(.technical-view) .s185-project-actions,
body.ia-clean:not(.technical-view) .s185-project-new {
  display: none !important;
}

body.ia-clean:not(.technical-view) .lsb-quick #q-search-sidebar,
body.ia-clean:not(.technical-view) .lsb-quick #q-knowledge-library,
body.ia-clean:not(.technical-view) .lsb-quick #q-capabilities-center,
body.ia-clean:not(.technical-view) .lsb-quick #q-wealth-os,
body.ia-clean:not(.technical-view) .lsb-quick #q-governance-center,
body.ia-clean:not(.technical-view) .lsb-quick #q-black-mission,
body.ia-clean:not(.technical-view) .lsb-quick #q-black-results,
body.ia-clean:not(.technical-view) .lsb-quick #q-black-advanced {
  display: flex !important;
}

body.ia-clean:not(.technical-view) #q-new-chat .ic-i {
  display: none !important;
}

body.ia-clean:not(.technical-view) .lsb-quick .sidebar-os-group {
  display: block !important;
  margin-top: 2px;
  padding-top: 0 !important;
  border-top: 0 !important;
}

body.ia-clean:not(.technical-view) .lsb-quick .sidebar-os-title {
  height: 38px;
  min-height: 38px;
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border-radius: 10px;
  color: inherit;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  text-transform: none !important;
  letter-spacing: 0 !important;
  list-style: none;
}

body.ia-clean:not(.technical-view) .lsb-quick .sidebar-os-title::-webkit-details-marker {
  display: none;
}

body.ia-clean:not(.technical-view) .lsb-quick details > .sidebar-os-title::after {
  content: "▸";
  margin-left: auto;
  color: rgba(236,236,241,0.58);
  font-size: 13px;
}

body.ia-clean:not(.technical-view) .lsb-quick details[open] > .sidebar-os-title::after {
  content: "▾";
}

body.ia-clean:not(.technical-view) .lsb-quick .sidebar-os-title:hover {
  background-color: rgba(255,255,255,0.055);
  transform: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

body.ia-clean:not(.technical-view) [data-lsb-group="chats"] .lsb-title-tools {
  display: none !important;
}

body.ia-clean:not(.technical-view) .s185-project-block[data-active="false"] .s185-project-groups,
body.ia-clean:not(.technical-view) .lsb-project-tree:not(.active) .lsb-project-chats {
  display: none !important;
}

body.ia-clean:not(.technical-view) .lsb-quick [data-nav-group="operation"],
body.ia-clean:not(.technical-view) .lsb-quick [data-nav-group="wealth"],
body.ia-clean:not(.technical-view) .lsb-quick [data-nav-group="advanced"],
body.ia-clean:not(.technical-view) #tb-technical-view,
body.ia-clean:not(.technical-view) #q-technical-view-link,
body.ia-clean:not(.technical-view) .s182-vertec {
  display: none !important;
}

/* S208C: Founder normal must never fall back to the old 64px focus rail. */
body.ia-clean:not(.technical-view) .app.nav-normal-sidebar {
  grid-template-columns: 288px minmax(0,1fr) 300px !important;
}

body.ia-clean:not(.technical-view) .app.nav-normal-sidebar.rp-collapsed {
  grid-template-columns: 288px minmax(0,1fr) 0 !important;
}

body.ia-clean:not(.technical-view) .app.nav-normal-sidebar .lsb {
  width: 288px !important;
  min-width: 288px !important;
}

body.ia-clean:not(.technical-view) .app.lsb-collapsed,
body.ia-clean:not(.technical-view) .app.nav-focus-rail,
body.ia-clean:not(.technical-view) .app.founder-focus-mode {
  grid-template-columns: 288px minmax(0,1fr) 300px !important;
}

body.ia-clean:not(.technical-view) .app.lsb-collapsed.rp-collapsed,
body.ia-clean:not(.technical-view) .app.nav-focus-rail.rp-collapsed,
body.ia-clean:not(.technical-view) .app.founder-focus-mode.rp-collapsed {
  grid-template-columns: 288px minmax(0,1fr) 0 !important;
}

body.ia-clean:not(.technical-view) .app.lsb-collapsed .lsb,
body.ia-clean:not(.technical-view) .app.nav-focus-rail .lsb,
body.ia-clean:not(.technical-view) .app.founder-focus-mode .lsb {
  width: 288px !important;
  min-width: 288px !important;
  overflow: hidden !important;
}

body.ia-clean:not(.technical-view) .app.lsb-collapsed .lsb-title,
body.ia-clean:not(.technical-view) .app.nav-focus-rail .lsb-title,
body.ia-clean:not(.technical-view) .app.founder-focus-mode .lsb-title,
body.ia-clean:not(.technical-view) .app.lsb-collapsed .lsb-list,
body.ia-clean:not(.technical-view) .app.nav-focus-rail .lsb-list,
body.ia-clean:not(.technical-view) .app.founder-focus-mode .lsb-list,
body.ia-clean:not(.technical-view) .app.lsb-collapsed .sidebar-os-group,
body.ia-clean:not(.technical-view) .app.nav-focus-rail .sidebar-os-group,
body.ia-clean:not(.technical-view) .app.founder-focus-mode .sidebar-os-group,
body.ia-clean:not(.technical-view) .app.lsb-collapsed .sidebar-os-title,
body.ia-clean:not(.technical-view) .app.nav-focus-rail .sidebar-os-title,
body.ia-clean:not(.technical-view) .app.founder-focus-mode .sidebar-os-title {
  display: flex !important;
}

body.ia-clean:not(.technical-view) .app.lsb-collapsed .lsb-quick .q-item span:not(.ic-i),
body.ia-clean:not(.technical-view) .app.nav-focus-rail .lsb-quick .q-item span:not(.ic-i),
body.ia-clean:not(.technical-view) .app.founder-focus-mode .lsb-quick .q-item span:not(.ic-i),
body.ia-clean:not(.technical-view) .app.lsb-collapsed .lsb-foot .q-item span:not(.ic-i),
body.ia-clean:not(.technical-view) .app.nav-focus-rail .lsb-foot .q-item span:not(.ic-i),
body.ia-clean:not(.technical-view) .app.founder-focus-mode .lsb-foot .q-item span:not(.ic-i) {
  display: inline-flex !important;
}

/* S209: modern visual recovery from the best S193-era surface, without S189/S205 runtime. */
body.ia-clean:not(.technical-view) .lsb {
  background: #303038 !important;
  color: #ECECF1 !important;
  padding: 12px 12px 10px !important;
  border-right: 1px solid rgba(255,255,255,0.08) !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

body.ia-clean:not(.technical-view) .lsb,
body.ia-clean:not(.technical-view) .lsb * {
  box-sizing: border-box !important;
}

body.ia-clean:not(.technical-view) .lsb-head {
  flex: 0 0 auto !important;
  min-height: 34px !important;
  padding: 0 4px 6px !important;
  margin: 0 !important;
  gap: 4px !important;
  justify-content: flex-end !important;
}

body.ia-clean:not(.technical-view) .lsb-head .future-control {
  display: none !important;
}

body.ia-clean:not(.technical-view) .lsb-brand,
body.ia-clean:not(.technical-view) .lsb-active-context {
  display: none !important;
}

body.ia-clean:not(.technical-view) .lsb-scroll {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 4px 0 10px !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.16) transparent;
}

body.ia-clean:not(.technical-view) .lsb-quick {
  display: grid !important;
  gap: 2px !important;
  margin: 0 0 10px !important;
}

body.ia-clean:not(.technical-view) .q-item,
body.ia-clean:not(.technical-view) .sidebar-os-title,
body.ia-clean:not(.technical-view) .history-item,
body.ia-clean:not(.technical-view) .s185-project-head,
body.ia-clean:not(.technical-view) .s185-chat-row {
  width: 100% !important;
  min-height: 40px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: transparent !important;
  color: #ECECF1 !important;
  text-align: left !important;
  text-decoration: none !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  line-height: 1.2 !important;
}

body.ia-clean:not(.technical-view) .q-item,
body.ia-clean:not(.technical-view) .sidebar-os-title {
  padding: 0 12px !important;
}

body.ia-clean:not(.technical-view) .q-item:hover,
body.ia-clean:not(.technical-view) .sidebar-os-title:hover,
body.ia-clean:not(.technical-view) .history-item:hover,
body.ia-clean:not(.technical-view) .s185-project-head:hover,
body.ia-clean:not(.technical-view) .s185-chat-row:hover {
  background-color: rgba(255,255,255,0.06) !important;
  transform: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

body.ia-clean:not(.technical-view) .sidebar-os-group {
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}

body.ia-clean:not(.technical-view) .sidebar-os-group:not([open]) > .q-item {
  display: none !important;
}

body.ia-clean:not(.technical-view) .sidebar-os-group[open] > .q-item {
  display: flex !important;
  min-height: 36px !important;
  padding-left: 34px !important;
  color: rgba(236,236,241,0.82) !important;
  font-size: 14px !important;
}

body.ia-clean:not(.technical-view) .sidebar-os-title::after {
  content: "▸";
  margin-left: auto;
  color: rgba(236,236,241,0.58);
  font-size: 13px;
}

body.ia-clean:not(.technical-view) .sidebar-os-group[open] > .sidebar-os-title::after {
  content: "▾";
}

body.ia-clean:not(.technical-view) .lsb-group {
  margin-top: 8px !important;
}

body.ia-clean:not(.technical-view) .lsb-title {
  min-height: 34px !important;
  padding: 0 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  color: rgba(236,236,241,0.76) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

body.ia-clean:not(.technical-view) .lsb-title .lsb-toggle {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  color: inherit !important;
  font: inherit !important;
}

body.ia-clean:not(.technical-view) .lsb-list,
body.ia-clean:not(.technical-view) .history-list {
  display: grid !important;
  gap: 2px !important;
}

body.ia-clean:not(.technical-view) .history-item {
  padding: 0 8px 0 10px !important;
}

body.ia-clean:not(.technical-view) .history-main,
body.ia-clean:not(.technical-view) .s185-chat-main {
  min-width: 0 !important;
  flex: 1 1 auto !important;
  display: block !important;
}

body.ia-clean:not(.technical-view) .history-title,
body.ia-clean:not(.technical-view) .s185-chat-title,
body.ia-clean:not(.technical-view) .s185-project-name {
  display: block !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.ia-clean:not(.technical-view) .history-summary,
body.ia-clean:not(.technical-view) .history-meta,
body.ia-clean:not(.technical-view) .s185-chat-meta,
body.ia-clean:not(.technical-view) .s185-group-head {
  display: none !important;
}

body.ia-clean:not(.technical-view) .hq-sidebar-time,
body.ia-clean:not(.technical-view) .s183-time,
body.ia-clean:not(.technical-view) .s185-time {
  margin-left: auto !important;
  flex: 0 0 auto !important;
  color: rgba(236,236,241,0.52) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}

body.ia-clean:not(.technical-view) .history-pin,
body.ia-clean:not(.technical-view) [data-s185-pin] {
  width: 26px !important;
  height: 26px !important;
  flex: 0 0 26px !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: rgba(236,236,241,0.52) !important;
  opacity: .72 !important;
  background: transparent !important;
}

body.ia-clean:not(.technical-view) .history-pin::before,
body.ia-clean:not(.technical-view) [data-s185-pin]::before {
  content: "⌖";
  font-size: 14px;
  line-height: 1;
}

body.ia-clean:not(.technical-view) .history-pin.active,
body.ia-clean:not(.technical-view) [data-s185-pin].active {
  color: #ECECF1 !important;
  opacity: 1 !important;
}

body.ia-clean:not(.technical-view) .s185-project-tree {
  display: grid !important;
  gap: 4px !important;
}

body.ia-clean:not(.technical-view) .s185-project-block {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  overflow: visible !important;
}

body.ia-clean:not(.technical-view) .s185-project-head {
  min-height: 38px !important;
  padding: 0 8px !important;
}

body.ia-clean:not(.technical-view) .s185-project-groups {
  display: grid !important;
  gap: 2px !important;
  padding: 0 0 3px 10px !important;
}

body.ia-clean:not(.technical-view) .s185-chat-row {
  min-height: 34px !important;
  padding: 0 8px 0 14px !important;
}

/* S210 · forensic final: keep the S193/S195 surface even when old rail/technical
   localStorage is contaminated. This is visual-only; handlers stay in S207/S183/S185. */
body.ia-clean .app.nav-normal-sidebar,
body.ia-clean .app.lsb-collapsed,
body.ia-clean .app.nav-focus-rail,
body.ia-clean .app.founder-focus-mode,
body.ia-clean .app.technical-view {
  grid-template-columns: 288px minmax(0,1fr) 300px !important;
}

body.ia-clean .app.nav-normal-sidebar.rp-collapsed,
body.ia-clean .app.lsb-collapsed.rp-collapsed,
body.ia-clean .app.nav-focus-rail.rp-collapsed,
body.ia-clean .app.founder-focus-mode.rp-collapsed,
body.ia-clean .app.technical-view.rp-collapsed {
  grid-template-columns: 288px minmax(0,1fr) 0 !important;
}

body.ia-clean .lsb,
body.ia-clean .app.lsb-collapsed .lsb,
body.ia-clean .app.nav-focus-rail .lsb,
body.ia-clean .app.founder-focus-mode .lsb,
body.ia-clean .app.technical-view .lsb {
  width: 288px !important;
  min-width: 288px !important;
  height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 12px 12px 10px !important;
  overflow: hidden !important;
  background: #303038 !important;
  color: #ECECF1 !important;
  border-right: 1px solid rgba(255,255,255,0.08) !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

body.ia-clean .lsb-head {
  flex: 0 0 auto !important;
  min-height: 34px !important;
  height: 34px !important;
  padding: 0 4px 6px !important;
  margin: 0 !important;
  justify-content: flex-end !important;
}

body.ia-clean .lsb-head #lsb-search,
body.ia-clean .lsb-head .future-control,
body.ia-clean .lsb-brand,
body.ia-clean .lsb-active-context {
  display: none !important;
}

body.ia-clean .lsb-scroll {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 6px 0 10px !important;
}

body.ia-clean .lsb-quick {
  display: grid !important;
  gap: 2px !important;
  margin: 0 0 12px !important;
}

body.ia-clean .q-item,
body.ia-clean .sidebar-os-title,
body.ia-clean .history-item,
body.ia-clean .s185-project-head,
body.ia-clean .s185-chat-row {
  min-height: 44px !important;
  height: auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  padding: 0 12px !important;
  border-radius: 12px !important;
  color: #ECECF1 !important;
  background: transparent !important;
  border: 0 !important;
  text-align: left !important;
  text-decoration: none !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  transform: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

body.ia-clean .q-item:hover,
body.ia-clean .sidebar-os-title:hover,
body.ia-clean .history-item:hover,
body.ia-clean .s185-project-head:hover,
body.ia-clean .s185-chat-row:hover {
  background: rgba(255,255,255,0.06) !important;
  color: #ECECF1 !important;
}

body.ia-clean #q-new-chat.primary {
  background: rgba(255,255,255,0.10) !important;
}

body.ia-clean #q-new-chat .ic-i,
body.ia-clean:not(.technical-view) #q-new-chat .ic-i,
body.ia-clean.technical-view #q-new-chat .ic-i,
body.ia-clean .sidebar-os-title .ic-i,
body.ia-clean .q-item .ic-i,
body.ia-clean .history-dot,
body.ia-clean .s185-chat-dot {
  width: 20px !important;
  min-width: 20px !important;
  height: 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 20px !important;
  color: currentColor !important;
}

body.ia-clean .sidebar-os-group {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

body.ia-clean .sidebar-os-title {
  cursor: pointer !important;
  list-style: none !important;
}

body.ia-clean .sidebar-os-title::-webkit-details-marker {
  display: none !important;
}

body.ia-clean .sidebar-os-title::after {
  content: "▸" !important;
  margin-left: auto !important;
  color: rgba(236,236,241,0.58) !important;
  font-size: 13px !important;
}

body.ia-clean .sidebar-os-group[open] > .sidebar-os-title::after {
  content: "▾" !important;
}

body.ia-clean .sidebar-os-group:not([open]) > .q-item {
  display: none !important;
}

body.ia-clean .sidebar-os-group[open] > .q-item {
  display: flex !important;
  min-height: 36px !important;
  padding-left: 44px !important;
  color: rgba(236,236,241,0.82) !important;
  font-size: 14px !important;
}

/* S212 · group menus only: no layout animation, no expensive hover, no parent fetch. */
body.ia-clean .sidebar-os-group[data-s212-group] {
  contain: layout paint !important;
}

body.ia-clean .sidebar-os-group[data-s212-group] > .sidebar-os-title,
body.ia-clean .sidebar-os-group[data-s212-group] > .q-item {
  transition: background-color 120ms ease, color 120ms ease !important;
  transform: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

body.ia-clean .lsb-group {
  margin-top: 12px !important;
}

body.ia-clean .lsb-title {
  min-height: 34px !important;
  padding: 0 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  color: rgba(236,236,241,0.76) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

body.ia-clean .lsb-foot {
  flex: 0 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  padding: 10px 0 0 !important;
  margin: 0 !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
}

body.ia-clean .lsb-new-project,
body.ia-clean .lsb-title-tools .ic,
body.ia-clean #lsb-project-add,
body.ia-clean #lsb-project-add svg {
  color: rgba(236,236,241,0.58) !important;
  stroke: currentColor !important;
  background: transparent !important;
  border-color: rgba(255,255,255,0.08) !important;
  box-shadow: none !important;
}

body.ia-clean .app.lsb-collapsed .lsb-quick .q-item span:not(.ic-i),
body.ia-clean .app.nav-focus-rail .lsb-quick .q-item span:not(.ic-i),
body.ia-clean .app.founder-focus-mode .lsb-quick .q-item span:not(.ic-i),
body.ia-clean .app.technical-view .lsb-quick .q-item span:not(.ic-i),
body.ia-clean .app.lsb-collapsed .sidebar-os-title span,
body.ia-clean .app.nav-focus-rail .sidebar-os-title span,
body.ia-clean .app.founder-focus-mode .sidebar-os-title span,
body.ia-clean .app.technical-view .sidebar-os-title span,
body.ia-clean .app.lsb-collapsed .lsb-title,
body.ia-clean .app.nav-focus-rail .lsb-title,
body.ia-clean .app.founder-focus-mode .lsb-title,
body.ia-clean .app.technical-view .lsb-title {
  display: inline-flex !important;
}

body.ia-clean #q-technical-view-link,
body.ia-clean #lsb-layout-reset,
body.ia-clean #lsb-chat-add,
body.ia-clean #tb-technical-view,
body.ia-clean #rp-detail-toggle,
body.ia-clean .s182-vertec,
body.ia-clean .s183-see-more,
body.ia-clean .s183-project-home-link,
body.ia-clean .lsb-project-new-chat,
body.ia-clean .s185-project-actions,
body.ia-clean .s185-project-new {
  display: none !important;
}
