.company-card h2 {
  margin: 0 0 8px;
}

.company-card p {
  color: var(--muted);
  line-height: 1.5;
}

dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px 10px;
  font-size: 14px;
}

dt {
  color: var(--muted);
}

.workspace-mode-row {
  margin-bottom: 10px;
}

.pill-workspace-temp {
  background: #fff7ed;
  color: #9a3412;
  border-color: #fdba74;
}

.pill-workspace-saved {
  background: #ecfdf3;
  color: #166534;
  border-color: #86efac;
}

.workspace-cta-box {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.workspace-cta-box p {
  margin: 0 0 10px 0;
  color: var(--muted);
  line-height: 1.55;
}

.workspace-cta-box-saved {
  background: #f0fdf4;
}

.upgrade-open-btn {
  background: #111827;
  color: #fff;
}

.temp-workspace-list {
  margin: 0 0 10px 0;
}

.temp-workspace-list li {
  color: var(--text);
}

.active-workspace-card {
  min-height: 100%;
}

.active-workspace-name {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
}

.active-workspace-summary {
  color: #dbeafe;
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.active-workspace-fields {
  display: grid;
  gap: 12px;
}

.active-workspace-field {
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
}

.active-workspace-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #93c5fd;
  margin-bottom: 6px;
}

.active-workspace-value {
  color: #f8fafc;
  line-height: 1.6;
}

.active-workspace-link {
  color: #bfdbfe;
  text-decoration: none;
  word-break: break-word;
}

.workspace-summary-card h2 {
  margin: 0 0 10px 0;
  font-size: 22px;
  line-height: 1.2;
}

.workspace-summary-card p {
  margin: 0 0 14px 0;
  color: var(--muted);
  line-height: 1.6;
}

.workspace-summary .panel-title {
  margin-bottom: 12px;
}

.workspace-summary dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px 10px;
  font-size: 14px;
  margin: 0;
}

.workspace-summary dt {
  color: var(--muted);
}

.workspace-summary dd {
  margin: 0;
  word-break: break-word;
}

/* Active workspace positioning fix */
.active-workspace-field-positioning {
  align-items: stretch;
}

.active-workspace-positioning-value {
  display: block;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.7;
}

/* =========================
   PROFILE CHIP — CLICK ONLY
========================= */

/* Remove ANY hover-based opening */
.profile-chip:hover .profile-chip-menu {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Default state */
.profile-chip .profile-chip-menu {
    display: none;
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.18s ease;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 50;
}

/* Open state (controlled by JS) */
.profile-chip.is-open .profile-chip-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Make whole chip clickable */
.profile-chip {
    position: relative;
    cursor: pointer;
}

/* Optional: nicer toggle button */
.profile-menu-toggle {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    margin-right: 6px;
}


/* Profile menu spacing after removing duplicate identity block */
.profile-chip-menu {
    min-width: 180px;
    padding: 10px 0;
}

.profile-chip-link {
    display: block;
    padding: 12px 16px;
}


/* =========================================================
   Top panels typography sync
   Make Live Strategy Feed + Weekly Checklist match
   Active Workspace typography and spacing
   ========================================================= */

.activity-strip,
.weekly-checklist,
.active-workspace-card {
  min-height: 100%;
}

/* Keep same heading rhythm */
.activity-strip .panel-title,
.weekly-checklist .panel-title,
.active-workspace-card .panel-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 12px;
}

/* Live Strategy Feed: move away from mono look */
.terminal-lines,
#agent-log,
.agent-line,
.agent-text,
.agent-prefix {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.terminal-lines {
  font-size: 15px !important;
  line-height: 1.6 !important;
}

#agent-log {
  min-height: 120px;
}

.agent-line {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  font-size: 15px !important;
  line-height: 1.6 !important;
  margin-bottom: 8px !important;
}

.agent-prefix {
  color: #93c5fd !important;
  font-weight: 700;
  letter-spacing: .02em;
  flex: 0 0 auto;
}

.agent-text {
  color: #f8fafc !important;
  font-weight: 400;
  word-break: break-word;
}

/* Weekly Checklist: same visual language as Active Workspace */
.weekly-checklist-meta,
.weekly-checklist-impact,
.weekly-checklist-gate {
  font-size: 15px !important;
  line-height: 1.6 !important;
}

.weekly-checklist-meta {
  color: #dbeafe !important;
  margin-bottom: 16px !important;
}

.weekly-check-item-row {
  margin-bottom: 12px;
}

.weekly-check-item {
  border: 1px solid rgba(255,255,255,0.10) !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
  background: rgba(255,255,255,0.04) !important;
}

.weekly-check-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.weekly-check-text {
  font-size: 15px !important;
  line-height: 1.5 !important;
  color: #f8fafc !important;
  font-weight: 500;
}

.weekly-check-detail {
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: #cbd5e1 !important;
}

.weekly-check-priority {
  font-size: 11px !important;
  letter-spacing: .06em;
  border-radius: 999px !important;
  padding: 4px 8px !important;
}

.weekly-checklist-impact {
  margin-top: 16px !important;
  color: #dbeafe !important;
}

.weekly-checklist-gate {
  margin-top: 12px !important;
  color: #93c5fd !important;
}

/* Keep fix button readable against dark cards */
.weekly-check-fix-btn {
  align-self: center;
}

/* =========================================================
   migrated from compat.css - first split pass
   ========================================================= */
.panel-dark {
  background: linear-gradient(180deg, #071126 0%, #0f1d41 100%);
  color: #ecf3ff;
  border-color: #22345f;
}

.ingest-success-banner {
  margin: 16px 24px 0;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
  border-radius: 14px;
  padding: 12px 14px;
}

.weekly-checklist-form {
  display: grid;
  gap: 10px;
}

.weekly-check-item.is-free {
  opacity: 0.88;
}

.weekly-check-input {
  margin-top: 2px;
}

.weekly-checklist-form {
  display: grid;
  gap: 10px;
}

.weekly-check-item.is-free {
  opacity: 0.88;
}

.weekly-check-input {
  margin-top: 2px;
}

.workspace-summary.panel-dark h2 {
  color: #ffffff;
}

.workspace-summary.panel-dark p,
.workspace-summary.panel-dark dd {
  color: rgba(255,255,255,0.8);
}

.workspace-summary.panel-dark dt {
  color: rgba(255,255,255,0.5);
}

/* ===== live strategy feed + fixed score cards ===== */
.live-strategy-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.live-strategy-terminal {
  min-height: 230px;
  max-height: 230px;
  overflow: hidden;
}

.live-strategy-terminal .terminal-lines {
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
}

.live-strategy-scores {
  flex: 0 0 auto;
}

.live-strategy-scores .score-row {
  margin-top: 0;
  align-items: stretch;
}

.live-score-card {
  min-width: 0;
}

.live-score-card strong {
  border-width: 4px;
}

.live-score-card.score-status-good strong {
  border-color: #3ca273;
  color: #3ca273;
}

.live-score-card.score-status-warn strong {
  border-color: #d4a72c;
  color: #d4a72c;
}

.live-score-card.score-status-bad strong {
  border-color: #d9534f;
  color: #d9534f;
}

.live-strategy-terminal {
  overflow-y: auto;
  overflow-x: hidden;
}

.live-strategy-terminal .terminal-lines {
  min-height: 100%;
}
