/* =========================================================
   compat.css
   Generated from legacy.css after removing dashboard-safe
   duplicated selectors.
   This file is the temporary compatibility layer replacing
   legacy.css at runtime.
   ========================================================= */

:root {
  --bg: #eef3fb;
  --bg-grad-top: #e9eef8;
  --bg-grad-bottom: #f6f8fd;
  --panel: #f7f8fc;
  --panel-strong: #ffffff;
  --text: #101828;
  --muted: #667085;
  --line: #dde3ee;
  --accent: #0f6fff;
  --good: #15a46b;
  --warn: #c98700;
  --bad: #d92d20;

  --pill-bg: #ffffff;
  --pill-text: #344054;

  --drawer-bg: #171314;
  --drawer-surface: #070708;
  --drawer-text: #f6f1ec;
  --drawer-line: rgba(255,255,255,0.08);

  --shadow: 0 10px 25px rgba(16,24,40,.05);
}html,
body {
  margin: 0;
  padding: 0;
}body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, var(--bg-grad-top) 0%, var(--bg-grad-bottom) 100%);
  color: var(--text);
}.shell {
  padding: 18px;
}.topbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 16px;
}h1 {
  margin: 4px 0 0;
  font-size: 30px;
}.url-form,
.chat-input {
  display: flex;
  gap: 10px;
  align-items: center;
}.url-form input,
.chat-input input {
  min-width: 320px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
}button {
  border: 0;
  border-radius: 12px;
  padding: 11px 16px;
  background: #111827;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}.theme-toggle {
  border: 1px solid rgba(15,23,42,0.15);
  background: #fff;
  color: #111827;
  padding: 11px 14px;
}.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
}.panel-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 12px;
}.panel-dark .panel-title {
  color: #b8caf7;
}.grid {
  display: grid;
  grid-template-columns: 1.1fr 1.25fr 1fr .95fr;
  gap: 16px;
  align-items: start;
}.subpanel {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}.score span {
  color: var(--muted);
  font-size: 13px;
}.chat-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 520px;
}.msg {
  border-radius: 14px;
  padding: 12px 14px;
  line-height: 1.5;
}.msg.assistant {
  background: #fff7e6;
  border: 1px solid #eed9a2;
}.chat-input input {
  min-width: 0;
  width: 100%;
}.repair-drawer .pill-tone-low {
  background: rgba(34,197,94,0.18);
  color: #bbf7d0;
  border-color: rgba(34,197,94,0.35);
}.repair-drawer .pill-tone-medium {
  background: rgba(245,158,11,0.18);
  color: #fde68a;
  border-color: rgba(245,158,11,0.35);
}.repair-drawer .pill-tone-high,
.repair-drawer .pill-tone-critical {
  background: rgba(239,68,68,0.18);
  color: #fecaca;
  border-color: rgba(239,68,68,0.35);
}.muted {
  opacity: 0.7;
  font-size: 12px;
}@media (max-width: 1400px) {
  .grid { grid-template-columns: 1fr 1fr; }
}@media (max-width: 1100px) {
  .repair-drawer {
    width: 100%;
    max-width: 100%;
  }
}@media (max-width: 900px) {
  .topbar,
  .topbar-actions,
  .chat-input,
  .url-form {
    flex-direction: column;
    align-items: stretch;
  }

  .grid { grid-template-columns: 1fr; }

  .url-form input,
  .chat-input input {
    min-width: 0;
    width: 100%;
  }
}@media (max-width: 700px) {
  .competitor-snapshot-grid {
    grid-template-columns: 1fr;
  }
}@media (max-width: 700px) {
  .brand-voice-tone-grid {
    grid-template-columns: 1fr;
  }
}.user-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  min-width: 170px;
}.user-chip-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}.user-chip-meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
}.guest-chip {
  min-width: 110px;
}.msg.user {
  background: #e8f0ff;
  border: 1px solid #c7d7ff;
  align-self: flex-end;
}.chat-col {
  display: flex;
  flex-direction: column;
  min-height: 640px;
  max-height: 640px;
  overflow: hidden;
}#chat-box.chat-box,
.chat-box {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}.chat-input {
  flex: 0 0 auto;
  margin-top: 12px;
}.chat-box::-webkit-scrollbar {
  width: 8px;
}.chat-box::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.35);
}.rec-actions {
  margin-top: 12px;
}.user-chip {
  position: relative;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(15,23,42,0.95);
  color: #fff;
  border-radius: 14px;
  padding: 10px 14px;
  min-width: 220px;
}.user-chip-name {
  display: block;
  font-weight: 700;
}.user-chip-meta {
  display: block;
  font-size: 12px;
  color: #cbd5e1;
}.empty-hero-copy h1 {
  font-size: 40px;
  line-height: 1.1;
  margin: 8px 0 14px;
  max-width: 760px;
}.empty-hero-copy p {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 20px;
}.empty-hero-form {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  align-items: stretch;
}.empty-hero-form input[type="url"] {
  flex: 1;
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 0 16px;
  font-size: 15px;
  background: #fff;
}.empty-hero-form button {
  min-height: 52px;
  border-radius: 14px;
  border: 0;
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
}.empty-plan-note {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}.empty-preview-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: #fff;
}.empty-preview-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
}.empty-feature-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}@media (max-width: 960px) {
  .empty-hero {
    grid-template-columns: 1fr;
  }

  .empty-hero-copy h1 {
    font-size: 32px;
  }

  .empty-hero-form {
    flex-direction: column;
  }
}.empty-error-banner {
  margin-bottom: 16px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  border-radius: 14px;
  padding: 12px 14px;
}.activity-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 16px;
  margin-bottom: 16px;
}@media (max-width: 1080px) {
  .activity-grid {
    grid-template-columns: 1fr;
  }
}.activity-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 16px;
  margin-bottom: 16px;
}@media (max-width: 1080px) {
  .activity-grid {
    grid-template-columns: 1fr;
  }
}.profile-chip-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  padding: 8px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(15,23,42,0.95);
  color: #fff;
}.profile-chip-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}.profile-chip-name {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
}.profile-chip-meta {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.2;
}.profile-chip:focus-within .profile-chip-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}.profile-chip-menu-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}.profile-chip-main {
  padding-right: 38px;
}.profile-chip.open .profile-chip-menu,
.profile-chip:focus-within .profile-chip-menu {
  display: block;
}.top-insight-grid .activity-strip,
.top-insight-grid .weekly-checklist,
.top-insight-grid .workspace-summary {
  min-height: 100%;
}@media (max-width: 1180px) {
  .top-insight-grid {
    grid-template-columns: 1fr;
  }
}.chat-col {
  display: flex;
  flex-direction: column;
  min-height: 640px;
  max-height: 640px;
  overflow: hidden;
}#chat-box.chat-box,
.chat-box {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 420px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}@media (max-width: 1200px) {
  .impact-score-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .impact-columns {
    grid-template-columns: 1fr;
  }
}.top-overview-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.2fr 0.95fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}.impact-site-stack {
  display: grid;
  gap: 16px;
}.bottom-layout-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.45fr;
  gap: 16px;
  align-items: start;
}.right-rail-stack {
  display: grid;
  gap: 16px;
}.compact-chat-col {
  min-height: 440px;
  max-height: 440px;
}.compact-chat-col #chat-box.chat-box,
.compact-chat-col .chat-box {
  min-height: 0;
  max-height: 320px;
}/* =========================
   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;
}/* =========================================================
   Top panels typography sync
   Make Live Strategy Feed + Weekly Checklist match
   Active Workspace typography and spacing
   ========================================================= */

.activity-strip {
  min-height: 100%;
}/* Keep same heading rhythm */
.activity-strip .panel-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 12px;
}/* Live Strategy Feed: move away from mono look */
.terminal-lines {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}/* Weekly Checklist: same visual language as Active Workspace */
.weekly-checklist-meta {
  font-size: 15px !important;
  line-height: 1.6 !important;
}/* Keep fix button readable against dark cards */
.weekly-check-fix-btn {
  align-self: center;
}@media (max-width: 1200px) {
  .top-overview-grid {
    grid-template-columns: 1fr;
  }

  .bottom-layout-grid {
    grid-template-columns: 1fr;
  }
}
