/* ONEAI Page Package: founder */
/* Presentation only. Business data, handlers, auth, and service contracts remain in hq.js. */

body[data-oneai-route="founder"] .t6-section-head-flex { display: flex; align-items: center; justify-content: space-between; }
body[data-oneai-route="founder"] .t6-status-pill { padding: 3px 8px; border-radius: 999px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
body[data-oneai-route="founder"] .t6-status-pill.ready { background: rgba(46,196,169,.15); color: #2ec4a9; border: 1px solid rgba(46,196,169,.3); }
body[data-oneai-route="founder"] .t6-status-pill.waiting { background: rgba(232,163,61,.15); color: #e8a33d; border: 1px solid rgba(232,163,61,.3); }
body[data-oneai-route="founder"] .t6-eyebrow { display: block; color: var(--acc-nova); font-size: 9px; line-height: 1.3; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

/* Layout State & Sidebar Collapse */
body[data-oneai-route="founder"] .app { grid-template-columns: 200px minmax(0,1fr); }
body[data-oneai-route="founder"] .rail { display: none; }
body[data-oneai-route="founder"] .statusbar { margin-left: 200px; }
body[data-oneai-route="founder"].hq-sidebar-collapsed .app { grid-template-columns: 72px minmax(0,1fr); }
body[data-oneai-route="founder"].hq-sidebar-collapsed .statusbar { margin-left: 72px; }

/* ==========================================================================
   AI-native Founder Meeting Room — Quiet Intelligence Composition
   ========================================================================== */

/* Main Page Container: One cohesive viewport, conversation owns vertical space */
body[data-oneai-route="founder"] .t6-detail-page.founder-workspace-page {
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  max-height: none;
  box-sizing: border-box;
  padding: 16px 28px 12px;
  overflow: hidden;
  max-width: 1560px;
  margin: 0 auto;
  min-width: 0;
}

/* 1. Header & Presence: Executive room hierarchy */
body[data-oneai-route="founder"] .founder-workspace-header {
  flex: none;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-0);
}
body[data-oneai-route="founder"] .founder-workspace-title-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}
body[data-oneai-route="founder"] .founder-workspace-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
body[data-oneai-route="founder"] .founder-workspace-title h1 {
  margin: 0;
  font-size: 27px;
  font-weight: 700;
  color: var(--text-0);
  letter-spacing: -0.026em;
  line-height: 1.12;
}
body[data-oneai-route="founder"] .founder-workspace-title .t6-eyebrow {
  margin: 0 0 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.5;
}
body[data-oneai-route="founder"] .founder-workspace-title .founder-room-presence {
  margin-top: 7px;
}

/* Presence strip: very light, no cards, no participant tiles */
body[data-oneai-route="founder"] .founder-room-presence {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
}
body[data-oneai-route="founder"] .founder-room-presence-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
body[data-oneai-route="founder"] .founder-room-presence-chip .founder-workspace-avatar {
  width: 18px;
  height: 18px;
  font-size: 8.5px;
}
body[data-oneai-route="founder"] .founder-room-presence-chip .founder-workspace-avatar svg {
  width: 10px;
  height: 10px;
}
body[data-oneai-route="founder"] .founder-room-presence-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
body[data-oneai-route="founder"] .founder-room-presence-text strong {
  color: var(--text-1);
  font-size: 11px;
  font-weight: 600;
}
body[data-oneai-route="founder"] .founder-room-presence-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-3);
  display: inline-block;
}
body[data-oneai-route="founder"] .founder-room-presence-dot.is-online {
  background: var(--ok);
  box-shadow: 0 0 6px var(--ok);
}
body[data-oneai-route="founder"] .founder-room-presence-dot.is-connecting {
  background: var(--warn);
}
body[data-oneai-route="founder"] .founder-room-presence-divider {
  color: var(--text-3);
  opacity: 0.6;
}
body[data-oneai-route="founder"] .founder-room-presence-status {
  color: var(--text-3);
  font-size: 10px;
}

/* 2. Tabs = Navigation, not module */
body[data-oneai-route="founder"] .founder-workspace-toolbar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line-0);
}
body[data-oneai-route="founder"] .founder-workspace-tabs {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
body[data-oneai-route="founder"] .founder-workspace-tabs::-webkit-scrollbar { display: none; }
body[data-oneai-route="founder"] .founder-workspace-tab {
  position: relative;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--text-3);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s ease;
  white-space: nowrap;
}
body[data-oneai-route="founder"] .founder-workspace-tab:hover {
  color: var(--text-1);
}
body[data-oneai-route="founder"] .founder-workspace-tab.is-active {
  color: var(--text-0);
  font-weight: 700;
}
body[data-oneai-route="founder"] .founder-workspace-tab.is-active::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--acc-nova);
  border-radius: 2px;
}
body[data-oneai-route="founder"] .founder-workspace-history-tools {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: 0.6;
  max-width: 160px;
  transition: opacity 0.15s ease, max-width 0.15s ease;
}
body[data-oneai-route="founder"] .founder-workspace-history-tools.is-active-tab,
body[data-oneai-route="founder"] .founder-workspace-history-tools:focus-within {
  opacity: 1;
  max-width: 240px;
}
body[data-oneai-route="founder"] .founder-workspace-history-tools > label {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
}
body[data-oneai-route="founder"] .founder-workspace-history-tools input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  height: 24px;
  padding: 3px 8px;
  border: 1px solid var(--line-0);
  border-radius: 5px;
  background: var(--bg-0);
  color: var(--text-0);
  font: inherit;
  font-size: 10px;
  outline: none;
}
body[data-oneai-route="founder"] .founder-workspace-history-tools input:focus {
  border-color: var(--acc-nova);
}
body[data-oneai-route="founder"] .founder-workspace-history-search {
  flex: 0 0 24px;
  box-sizing: border-box;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--line-0);
  border-radius: 5px;
  background: transparent;
  color: var(--acc-nova);
  cursor: pointer;
}
body[data-oneai-route="founder"] .founder-workspace-history-search svg { width: 12px; height: 12px; }
body[data-oneai-route="founder"] .founder-workspace-history-label { display: none; }

/* 3. Conversation Shell & Thread: Owns the page */
body[data-oneai-route="founder"] .founder-workspace-shell {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  grid-template-columns: none !important;
  gap: 0;
  height: auto;
}
body[data-oneai-route="founder"] .founder-workspace-shell.is-context-open {
  flex-direction: row;
  align-items: stretch;
  gap: 24px;
}
body[data-oneai-route="founder"] .founder-workspace-conversation {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: auto;
  max-height: none;
}
body[data-oneai-route="founder"] .founder-workspace-shell.is-context-open .founder-workspace-conversation {
  flex: 1 1 0%;
  min-width: 0;
}
body[data-oneai-route="founder"] .founder-workspace-context-panel {
  flex: 0 0 340px;
  width: 340px;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  padding-left: 20px;
  border-left: 1px solid var(--line-0);
}
body[data-oneai-route="founder"] .founder-workspace-context-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-0);
}
body[data-oneai-route="founder"] .founder-workspace-context-header h2 {
  margin-top: 3px;
  color: var(--text-0);
  font-size: 14px;
  line-height: 1.25;
}
body[data-oneai-route="founder"] .founder-workspace-context-header p {
  max-width: 250px;
  margin-top: 5px;
  color: var(--text-3);
  font-size: 9px;
  line-height: 1.4;
}
body[data-oneai-route="founder"] .founder-workspace-context-close {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--line-0);
  border-radius: 5px;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
}
body[data-oneai-route="founder"] .founder-workspace-context-close:hover,
body[data-oneai-route="founder"] .founder-workspace-context-close:focus-visible {
  border-color: var(--acc-nova);
  color: var(--text-0);
  outline: none;
}
body[data-oneai-route="founder"] .founder-workspace-context-close svg { width: 12px; height: 12px; }
body[data-oneai-route="founder"] .founder-workspace-context-body {
  display: grid;
  gap: 10px;
  padding-top: 10px;
}
body[data-oneai-route="founder"] .founder-workspace-context-list,
body[data-oneai-route="founder"] .founder-workspace-context-history {
  display: grid;
  gap: 6px;
}
body[data-oneai-route="founder"] .founder-workspace-context-item {
  display: grid;
  gap: 7px;
  padding: 8px;
  border: 1px solid var(--line-0);
  border-radius: 6px;
  background: rgba(8, 12, 22, 0.28);
}
body[data-oneai-route="founder"] .founder-workspace-context-item-main {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
body[data-oneai-route="founder"] .founder-workspace-context-item-main > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}
body[data-oneai-route="founder"] .founder-workspace-context-item-main strong {
  overflow: hidden;
  color: var(--text-1);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body[data-oneai-route="founder"] .founder-workspace-context-item-main small {
  overflow-wrap: anywhere;
  color: var(--text-3);
  font-size: 8px;
  line-height: 1.35;
}
body[data-oneai-route="founder"] .founder-workspace-context-open {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  width: max-content;
  padding: 3px 5px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--text-3);
  font: inherit;
  font-size: 8.5px;
  cursor: pointer;
}
body[data-oneai-route="founder"] .founder-workspace-context-open:hover,
body[data-oneai-route="founder"] .founder-workspace-context-open:focus-visible {
  border-color: var(--line-1);
  color: var(--text-0);
  outline: none;
}
body[data-oneai-route="founder"] .founder-workspace-context-open svg { width: 11px; height: 11px; }
body[data-oneai-route="founder"] .founder-workspace-context-audio {
  width: 100%;
  height: 28px;
}
body[data-oneai-route="founder"] .founder-workspace-context-fields {
  display: grid;
  gap: 8px;
}
body[data-oneai-route="founder"] .founder-workspace-context-fields .founder-room-intel-field {
  padding: 8px 0;
  border-top: 1px solid var(--line-0);
}
body[data-oneai-route="founder"] .founder-workspace-context-fields .founder-room-intel-field:first-child { border-top: 0; }
body[data-oneai-route="founder"] .founder-workspace-context-actions {
  padding-top: 8px;
  border-top: 1px solid var(--line-0);
}
body[data-oneai-route="founder"] .founder-workspace-context-state {
  padding: 8px 0;
  border-top: 1px solid var(--line-0);
  color: var(--text-3);
  font-size: 9px;
}
body[data-oneai-route="founder"] .founder-workspace-context-history-entry {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line-0);
  border-radius: 6px;
  background: rgba(8, 12, 22, 0.28);
  color: var(--text-1);
  text-align: left;
  cursor: pointer;
}
body[data-oneai-route="founder"] .founder-workspace-context-history-entry:hover,
body[data-oneai-route="founder"] .founder-workspace-context-history-entry:focus-visible {
  border-color: var(--acc-nova);
  outline: none;
}
body[data-oneai-route="founder"] .founder-workspace-context-history-entry > span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
body[data-oneai-route="founder"] .founder-workspace-context-history-entry strong {
  color: var(--text-1);
  font-size: 9px;
}
body[data-oneai-route="founder"] .founder-workspace-context-history-entry time,
body[data-oneai-route="founder"] .founder-workspace-context-history-entry small {
  color: var(--text-3);
  font-size: 8px;
  line-height: 1.4;
}
body[data-oneai-route="founder"] .founder-workspace-context-history-entry small { overflow-wrap: anywhere; }
body[data-oneai-route="founder"] .founder-workspace-context-empty {
  display: grid;
  gap: 5px;
  padding: 18px 4px;
  color: var(--text-3);
  font-size: 9px;
  line-height: 1.45;
}
body[data-oneai-route="founder"] .founder-workspace-context-empty strong { color: var(--text-1); font-size: 10px; }
body[data-oneai-route="founder"] .founder-workspace-thread {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 6px 8px 0;
  display: flex;
  flex-direction: column;
}

/* 4. Messages: Continuous conversation stream — NO CARDS, NO VERTICAL ACTIONS */
body[data-oneai-route="founder"] .founder-workspace-message {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  margin: 0;
  padding: 8px 4px;
  border: none !important;
  border-bottom: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  min-height: auto !important;
  overflow: visible;
  position: static;
  transform: none;
  transition: background 0.15s ease;
}
body[data-oneai-route="founder"] .founder-workspace-message:hover {
  background: transparent !important;
}
body[data-oneai-route="founder"] .founder-workspace-message.is-user,
body[data-oneai-route="founder"] .founder-workspace-message.is-assistant {
  justify-content: flex-start;
  margin-left: 0;
  margin-right: 0;
  background: transparent !important;
}
body[data-oneai-route="founder"] .founder-workspace-message.is-user {
  justify-content: flex-end;
}
body[data-oneai-route="founder"] .founder-workspace-avatar {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  margin-top: 1px;
  display: inline-grid;
  place-items: center;
}
body[data-oneai-route="founder"] .founder-workspace-avatar-founder {
  background: linear-gradient(145deg, rgba(69, 205, 190, 0.25), rgba(139, 124, 246, 0.18));
  color: var(--text-0);
  font-size: 10px;
  font-weight: 700;
  border: 1px solid rgba(69, 205, 190, 0.2);
}
body[data-oneai-route="founder"] .founder-workspace-avatar-nova {
  background: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.95) 0 8%, rgba(88, 166, 255, 0.86) 12%, rgba(20, 36, 80, 0.96) 42%, rgba(6, 9, 22, 0.98) 72%);
  border: 1px solid rgba(88, 166, 255, 0.35);
  color: var(--text-0);
}
body[data-oneai-route="founder"] .founder-workspace-avatar-nova svg {
  width: 13px;
  height: 13px;
}
body[data-oneai-route="founder"] .founder-workspace-message-body {
  flex: 0 1 min(84%, 860px);
  max-width: min(84%, 860px);
  min-width: 0;
  height: auto;
  max-height: none;
  margin: 0;
  padding: 10px 12px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px 10px 10px 3px;
  background: rgba(88, 166, 255, 0.045);
  overflow: visible;
  position: static;
  transform: none;
}
body[data-oneai-route="founder"] .founder-workspace-shell.is-context-open .founder-workspace-message-body {
  flex: 0 1 min(92%, 860px);
  max-width: min(92%, 860px);
}
body[data-oneai-route="founder"] .founder-workspace-message.is-user .founder-workspace-avatar {
  order: 2;
}
body[data-oneai-route="founder"] .founder-workspace-message.is-user .founder-workspace-message-body {
  order: 1;
  border-color: rgba(139, 124, 246, 0.2);
  border-radius: 10px 10px 3px 10px;
  background: rgba(139, 124, 246, 0.075);
}
body[data-oneai-route="founder"] .founder-workspace-message.is-assistant .founder-workspace-avatar {
  order: 0;
}
body[data-oneai-route="founder"] .founder-workspace-message.is-assistant .founder-workspace-message-body {
  order: 1;
}
body[data-oneai-route="founder"] .founder-workspace-message.founder-message-tone-owner .founder-workspace-message-meta strong {
  color: #c9c0ff;
}
body[data-oneai-route="founder"] .founder-workspace-message.founder-message-tone-nova .founder-workspace-message-body {
  border-color: rgba(88, 166, 255, 0.18);
  background: rgba(88, 166, 255, 0.055);
}
body[data-oneai-route="founder"] .founder-workspace-message.founder-message-tone-partner .founder-workspace-message-body {
  border-color: rgba(69, 205, 190, 0.18);
  background: rgba(69, 205, 190, 0.055);
}
body[data-oneai-route="founder"] .founder-workspace-message.founder-message-tone-participant-0 .founder-workspace-message-body {
  border-color: rgba(194, 164, 97, 0.18);
  background: rgba(194, 164, 97, 0.05);
}
body[data-oneai-route="founder"] .founder-workspace-message.founder-message-tone-participant-1 .founder-workspace-message-body {
  border-color: rgba(165, 126, 220, 0.18);
  background: rgba(165, 126, 220, 0.05);
}
body[data-oneai-route="founder"] .founder-workspace-message.founder-message-tone-participant-2 .founder-workspace-message-body {
  border-color: rgba(82, 181, 208, 0.18);
  background: rgba(82, 181, 208, 0.05);
}
body[data-oneai-route="founder"] .founder-workspace-message-head {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px;
  margin-bottom: 3px;
}
body[data-oneai-route="founder"] .founder-workspace-message-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
body[data-oneai-route="founder"] .founder-workspace-message-meta strong {
  color: var(--text-0);
  font-size: 11.5px;
  font-weight: 700;
}
body[data-oneai-route="founder"] .founder-workspace-message-meta time {
  color: var(--text-3);
  font-size: 9.5px;
}

/* HORIZONTAL ACTION ROW ONLY (MESSAGE_ACTION_VERTICAL_STACK = 0) */
body[data-oneai-route="founder"] .founder-workspace-message-actions {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 2px !important;
  margin: 0 !important;
  opacity: 0;
  transition: opacity 0.15s ease;
}
body[data-oneai-route="founder"] .founder-workspace-message:hover .founder-workspace-message-actions,
body[data-oneai-route="founder"] .founder-workspace-message:focus-within .founder-workspace-message-actions {
  opacity: 1;
}
body[data-oneai-route="founder"] .founder-workspace-message-action,
body[data-oneai-route="founder"] .founder-workspace-source-link {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  transition: all 0.12s ease;
}
body[data-oneai-route="founder"] .founder-workspace-message-action:hover,
body[data-oneai-route="founder"] .founder-workspace-message-action:focus-visible,
body[data-oneai-route="founder"] .founder-workspace-source-link:hover,
body[data-oneai-route="founder"] .founder-workspace-source-link:focus-visible {
  color: var(--text-0);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-1);
  outline: none;
}
body[data-oneai-route="founder"] .founder-workspace-message-action.is-copied {
  border-color: var(--ok);
  color: var(--ok);
}
body[data-oneai-route="founder"] .founder-workspace-message-action svg,
body[data-oneai-route="founder"] .founder-workspace-source-link svg {
  width: 12px;
  height: 12px;
}
body[data-oneai-route="founder"] .founder-workspace-message-content {
  height: auto;
  max-height: none;
  color: var(--text-1);
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  overflow: visible;
  position: static;
  transform: none;
}
body[data-oneai-route="founder"] .founder-workspace-message-content p { margin: 0; }
body[data-oneai-route="founder"] .founder-workspace-message-content p + p { margin-top: 6px; }

/* Dividers & Indicators */
body[data-oneai-route="founder"] .founder-workspace-date-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 6px;
  color: var(--text-3);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
body[data-oneai-route="founder"] .founder-workspace-date-divider::before,
body[data-oneai-route="founder"] .founder-workspace-date-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line-0);
}
body[data-oneai-route="founder"] .founder-workspace-empty {
  display: grid;
  gap: 4px;
  padding: 24px 8px;
  color: var(--text-3);
  font-size: 11px;
  text-align: center;
}
body[data-oneai-route="founder"] .founder-workspace-empty strong {
  color: var(--text-1);
  font-size: 12px;
}
body[data-oneai-route="founder"] .founder-workspace-typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--text-2);
  font-size: 10.5px;
}
body[data-oneai-route="founder"] .presence-typing-dots {
  display: inline-flex;
  gap: 3px;
}
body[data-oneai-route="founder"] .presence-typing-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--acc-nova);
  animation: t6-pulse 1.4s infinite ease-in-out both;
}
body[data-oneai-route="founder"] .presence-typing-dots span:nth-child(1) { animation-delay: -0.32s; }
body[data-oneai-route="founder"] .presence-typing-dots span:nth-child(2) { animation-delay: -0.16s; }

/* Media attachments in stream */
body[data-oneai-route="founder"] .founder-workspace-media {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
body[data-oneai-route="founder"] .founder-workspace-media-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--line-0);
  border-radius: 6px;
  background: rgba(8, 12, 22, 0.4);
}
body[data-oneai-route="founder"] .founder-workspace-media-preview {
  width: 32px;
  height: 24px;
  flex: none;
  border-radius: 4px;
  object-fit: cover;
}
body[data-oneai-route="founder"] .founder-workspace-media-icon {
  display: inline-grid;
  place-items: center;
  color: var(--acc-land);
}
body[data-oneai-route="founder"] .founder-workspace-media-icon svg { width: 13px; height: 13px; }
body[data-oneai-route="founder"] .founder-workspace-media-item b {
  font-size: 9px;
  color: var(--text-1);
}
body[data-oneai-route="founder"] .founder-workspace-media-item small {
  font-size: 8px;
  color: var(--text-3);
  margin-left: 4px;
}
body[data-oneai-route="founder"] .founder-workspace-media-item.is-audio {
  flex-wrap: wrap;
}
body[data-oneai-route="founder"] .founder-workspace-audio {
  flex: 1 1 100%;
  width: 100%;
  height: 28px;
}
body[data-oneai-route="founder"] .founder-workspace-transcript-toggle {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
}
body[data-oneai-route="founder"] .founder-workspace-transcript-toggle:hover,
body[data-oneai-route="founder"] .founder-workspace-transcript-toggle:focus-visible {
  border-color: var(--line-1);
  color: var(--text-0);
  outline: none;
}
body[data-oneai-route="founder"] .founder-workspace-transcript-toggle svg { width: 12px; height: 12px; }
body[data-oneai-route="founder"] .founder-workspace-transcript {
  flex: 1 1 100%;
  padding: 6px 8px;
  border-left: 2px solid var(--acc-nova);
  background: rgba(139, 124, 246, 0.06);
  color: var(--text-2);
  font-size: 9px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
body[data-oneai-route="founder"] .founder-workspace-transcript[hidden] { display: none; }

/* 5. Composer: Integrated, compact work surface */
body[data-oneai-route="founder"] .founder-workspace-composer {
  flex: none;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line-0);
}
body[data-oneai-route="founder"] .founder-workspace-composer-label {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  color: var(--text-3);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
body[data-oneai-route="founder"] .founder-workspace-jump-latest {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  box-sizing: border-box;
  margin: 0;
  padding: 2px 6px;
  border: 1px solid rgba(139, 124, 246, 0.24);
  border-radius: 4px;
  background: rgba(139, 124, 246, 0.08);
  color: var(--acc-nova);
  font-size: 8.5px;
  cursor: pointer;
}
body[data-oneai-route="founder"] .founder-workspace-jump-latest svg { width: 10px; height: 10px; }
body[data-oneai-route="founder"] .founder-workspace-composer textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  max-height: 96px;
  box-sizing: border-box;
  padding: 8px 10px;
  resize: vertical;
  border: 1px solid var(--line-1);
  border-radius: 8px;
  background: rgba(8, 12, 22, 0.6) !important;
  color: var(--text-0);
  font: inherit;
  font-size: 11.5px;
  line-height: 1.45;
  outline: none;
  box-shadow: none !important;
}
body[data-oneai-route="founder"] .founder-workspace-composer textarea:focus {
  border-color: var(--acc-nova) !important;
  box-shadow: 0 0 0 2px rgba(139, 124, 246, 0.15) !important;
}
body[data-oneai-route="founder"] .founder-workspace-composer textarea:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
body[data-oneai-route="founder"] .founder-workspace-composer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  margin-top: 6px;
}
body[data-oneai-route="founder"] .founder-workspace-composer-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  margin-left: auto;
}
body[data-oneai-route="founder"] .founder-workspace-attach {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
body[data-oneai-route="founder"] .founder-workspace-attach input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
body[data-oneai-route="founder"] .founder-workspace-attach-icons {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 26px;
  padding: 0 6px;
  border: 1px solid var(--line-0);
  border-radius: 5px;
  color: var(--text-3);
  transition: all 0.12s ease;
}
body[data-oneai-route="founder"] .founder-workspace-attach-icons:hover {
  color: var(--text-1);
  border-color: var(--line-1);
}
body[data-oneai-route="founder"] .founder-workspace-attach-icons i {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
}
body[data-oneai-route="founder"] .founder-workspace-attach-icons svg { width: 12px; height: 12px; }
body[data-oneai-route="founder"] .founder-workspace-attach b { display: none; }
body[data-oneai-route="founder"] .founder-workspace-voice {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--line-0);
  border-radius: 5px;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  transition: all 0.12s ease;
}
body[data-oneai-route="founder"] .founder-workspace-voice:hover,
body[data-oneai-route="founder"] .founder-workspace-voice:focus-visible {
  color: var(--text-0);
  border-color: var(--acc-nova);
  outline: none;
}
body[data-oneai-route="founder"] .founder-workspace-voice.is-recording {
  border-color: var(--acc-nova);
  background: rgba(139, 124, 246, 0.12);
  color: var(--text-0);
}
body[data-oneai-route="founder"] .founder-workspace-voice:disabled { opacity: 0.5; cursor: not-allowed; }
body[data-oneai-route="founder"] .founder-workspace-voice svg { width: 13px; height: 13px; }
body[data-oneai-route="founder"] .founder-workspace-voice-cancel {
  height: 26px;
  padding: 2px 6px;
  border: 1px solid var(--line-0);
  border-radius: 5px;
  background: transparent;
  color: var(--text-3);
  font: inherit;
  font-size: 8.5px;
  cursor: pointer;
}
body[data-oneai-route="founder"] .founder-workspace-voice-cancel:hover,
body[data-oneai-route="founder"] .founder-workspace-voice-cancel:focus-visible {
  border-color: var(--acc-nova);
  color: var(--text-0);
  outline: none;
}
body[data-oneai-route="founder"] .founder-workspace-voice-state {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-3);
  font-size: 9px;
}
body[data-oneai-route="founder"] .founder-workspace-send {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--acc-nova);
  border-radius: 5px;
  background: rgba(139, 124, 246, 0.15);
  color: var(--acc-nova);
  cursor: pointer;
  margin-left: auto;
  transition: all 0.12s ease;
}
body[data-oneai-route="founder"] .founder-workspace-send:hover,
body[data-oneai-route="founder"] .founder-workspace-send:focus-visible {
  background: rgba(139, 124, 246, 0.3);
  color: #fff;
  outline: none;
}
body[data-oneai-route="founder"] .founder-workspace-send:disabled { opacity: 0.5; cursor: not-allowed; }
body[data-oneai-route="founder"] .founder-workspace-send svg { width: 13px; height: 13px; }
body[data-oneai-route="founder"] .founder-workspace-composer-note {
  margin-top: 4px;
  color: var(--text-3);
  font-size: 8px;
  line-height: 1.3;
}
body[data-oneai-route="founder"] .founder-workspace-media-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
body[data-oneai-route="founder"] .founder-workspace-media-preview span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border: 1px solid var(--line-0);
  border-radius: 4px;
  font-size: 8.5px;
  color: var(--text-2);
}
body[data-oneai-route="founder"] .founder-workspace-media-preview img,
body[data-oneai-route="founder"] .founder-workspace-media-preview video,
body[data-oneai-route="founder"] .founder-workspace-media-preview audio {
  width: 22px;
  height: 18px;
  border-radius: 2px;
  object-fit: cover;
}

/* 6. Meeting Intelligence: Lightweight disclosure bar + Continuous document */
body[data-oneai-route="founder"] .founder-room-intelligence {
  flex: none;
  margin-top: 6px;
  border: none;
  border-top: 1px solid var(--line-0);
  background: transparent;
  border-radius: 0;
}
body[data-oneai-route="founder"] .founder-room-intelligence-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 2px;
  cursor: pointer;
  list-style: none;
  font-size: 11px;
}
body[data-oneai-route="founder"] .founder-room-intelligence-summary::-webkit-details-marker { display: none; }
body[data-oneai-route="founder"] .founder-room-intelligence-title {
  color: var(--acc-nova);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
body[data-oneai-route="founder"] .founder-room-intelligence-indicators {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-3);
  font-size: 10px;
  flex: 1 1 auto;
}
body[data-oneai-route="founder"] .founder-workspace-classification {
  padding: 2px 7px;
  border: 1px solid rgba(69, 205, 190, 0.25);
  border-radius: 999px;
  color: var(--acc-land);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
body[data-oneai-route="founder"] .founder-room-intelligence-caret {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  color: var(--text-3);
  transition: transform 0.18s ease;
}
body[data-oneai-route="founder"] .founder-room-intelligence-caret svg { width: 11px; height: 11px; }
body[data-oneai-route="founder"] .founder-room-intelligence[open] .founder-room-intelligence-caret {
  transform: rotate(90deg);
}
body[data-oneai-route="founder"] .founder-room-intelligence-body {
  max-height: 40vh;
  overflow-y: auto;
  padding: 10px 4px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
body[data-oneai-route="founder"] .founder-room-intel-field {
  padding: 8px 0 0;
  border-top: 1px solid var(--line-0);
}
body[data-oneai-route="founder"] .founder-room-intel-field:first-child {
  padding-top: 0;
  border-top: 0;
}
body[data-oneai-route="founder"] .founder-room-intel-field h3 {
  margin: 0 0 4px;
  color: var(--acc-nova);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
body[data-oneai-route="founder"] .founder-room-intel-field.is-empty {
  padding: 4px 0;
}
body[data-oneai-route="founder"] .founder-room-intel-field.is-empty h3 {
  display: inline;
  color: var(--text-3);
}
body[data-oneai-route="founder"] .founder-room-intel-field.is-empty .founder-workspace-intelligence-empty {
  display: inline;
  margin-left: 8px;
}
body[data-oneai-route="founder"] .founder-room-intel-lead {
  margin: 0;
  color: var(--text-0);
  font-size: 12px;
  line-height: 1.45;
}
body[data-oneai-route="founder"] .founder-room-intel-body {
  color: var(--text-1);
  font-size: 11px;
  line-height: 1.5;
}
body[data-oneai-route="founder"] .founder-workspace-intelligence-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
body[data-oneai-route="founder"] .founder-workspace-intelligence-block-head h3 {
  color: var(--acc-nova);
}
body[data-oneai-route="founder"] .founder-workspace-intelligence-block-head > span {
  color: var(--text-3);
  font-size: 8px;
}
body[data-oneai-route="founder"] .founder-workspace-intelligence-items {
  display: grid;
  gap: 4px;
  margin-top: 4px;
}
body[data-oneai-route="founder"] .founder-workspace-intelligence-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 6px;
  align-items: start;
  padding: 4px 0;
  border-bottom: 1px solid var(--line-0);
  color: var(--text-1);
  font-size: 10px;
  line-height: 1.45;
}
body[data-oneai-route="founder"] .founder-workspace-intelligence-item:last-child {
  border-bottom: 0;
}
body[data-oneai-route="founder"] .founder-workspace-item-marker {
  display: inline-grid;
  place-items: center;
  min-height: 18px;
  padding: 0 3px;
  border-radius: 4px;
  color: var(--acc-nova);
  background: rgba(139, 124, 246, 0.1);
  font-size: 8px;
  font-weight: 800;
}
body[data-oneai-route="founder"] .founder-workspace-intelligence-empty {
  color: var(--text-3);
  font-size: 9.5px;
  line-height: 1.4;
  margin: 0;
}
body[data-oneai-route="founder"] .founder-workspace-evidence-list {
  display: grid;
  gap: 4px;
  margin-top: 4px;
}
body[data-oneai-route="founder"] .founder-workspace-evidence {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 6px;
  border: 1px solid var(--line-0);
  border-radius: 5px;
  background: rgba(8, 12, 22, 0.3);
}
body[data-oneai-route="founder"] .founder-workspace-evidence b {
  color: var(--text-1);
  font-size: 9.5px;
}
body[data-oneai-route="founder"] .founder-workspace-evidence span {
  color: var(--text-3);
  font-size: 8.5px;
}
body[data-oneai-route="founder"] .founder-workspace-bottom-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line-0);
}
body[data-oneai-route="founder"] .founder-workspace-bottom-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid var(--line-0);
  border-radius: 5px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 9px;
  cursor: pointer;
}
body[data-oneai-route="founder"] .founder-workspace-bottom-action:hover,
body[data-oneai-route="founder"] .founder-workspace-bottom-action:focus-visible {
  border-color: var(--acc-nova);
  color: var(--text-0);
  outline: none;
}
body[data-oneai-route="founder"] .founder-workspace-bottom-action svg { width: 12px; height: 12px; }
body[data-oneai-route="founder"] .founder-workspace-decision-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line-0);
}
body[data-oneai-route="founder"] .founder-workspace-decision-row > span {
  color: var(--text-3);
  font-size: 9px;
}
body[data-oneai-route="founder"] .founder-workspace-intelligence-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
body[data-oneai-route="founder"] .founder-workspace-icon-action {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--line-0);
  border-radius: 5px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
}
body[data-oneai-route="founder"] .founder-workspace-icon-action:hover,
body[data-oneai-route="founder"] .founder-workspace-icon-action:focus-visible {
  border-color: var(--acc-nova);
  color: var(--text-0);
  outline: none;
}
body[data-oneai-route="founder"] .founder-workspace-icon-action:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
body[data-oneai-route="founder"] .founder-workspace-icon-action svg { width: 12px; height: 12px; }

/* Desktop room geometry: one shared content gutter and a right-aligned
   presence row without changing the Founder Room composition. */
@media (min-width: 861px) {
  body[data-oneai-route="founder"] .founder-workspace-title-row,
  body[data-oneai-route="founder"] .founder-workspace-title {
    width: 100%;
  }

  body[data-oneai-route="founder"] .founder-room-presence {
    align-self: flex-end;
  }
}

/* 7. Mobile Viewport (390px) */
@media (max-width: 860px) {
  body[data-oneai-route="founder"] .app { grid-template-columns: minmax(0, 1fr); }
  body[data-oneai-route="founder"] .statusbar { margin-left: 0; }
  body[data-oneai-route="founder"] .t6-detail-page.founder-workspace-page {
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 12px 14px 24px;
  }
  body[data-oneai-route="founder"] .founder-workspace-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  body[data-oneai-route="founder"] .founder-workspace-title-row {
    flex-direction: column;
    gap: 6px;
  }
  body[data-oneai-route="founder"] .founder-workspace-thread {
    max-height: 480px;
  }
  body[data-oneai-route="founder"] .founder-workspace-shell.is-context-open {
    flex-direction: column;
  }
  body[data-oneai-route="founder"] .founder-workspace-context-panel {
    flex: 0 0 auto;
    width: auto;
    max-height: 320px;
    padding-top: 10px;
    padding-left: 0;
    border-top: 1px solid var(--line-0);
    border-left: 0;
  }
  body[data-oneai-route="founder"] .founder-workspace-message-actions {
    opacity: 1;
  }
  body[data-oneai-route="founder"] .founder-room-intelligence-body {
    max-height: none;
  }
}

@media (max-width: 420px) {
  body[data-oneai-route="founder"] .founder-workspace-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  body[data-oneai-route="founder"] .founder-workspace-history-tools {
    max-width: 100%;
  }
}
