* {
  box-sizing: border-box;
}

:root {
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: #f4f5f7;
  background: #090a0c;
  font-synthesis: none;
  --bg: #090a0c;
  --sidebar: #0d0f12;
  --surface: #111318;
  --surface-2: #15181d;
  --surface-3: #1a1e24;
  --border: #252a32;
  --border-strong: #343b46;
  --text: #f4f5f7;
  --muted: #949ba7;
  --subtle: #6d7480;
  --accent: #9fb2ff;
  --accent-soft: rgba(111, 137, 232, 0.12);
  --success: #7ce5aa;
  --warning: #ffd08a;
  --danger: #ffb1bc;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.44);
}

html,
body {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
}

body.modal-open,
body.drawer-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

.hidden {
  display: none !important;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.notice-panel {
  width: min(720px, calc(100% - 32px));
  margin: 40px auto;
  display: grid;
  gap: 5px;
  border: 1px solid #504426;
  border-radius: 12px;
  background: #19150d;
  padding: 18px;
  color: #e9d18f;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid #38404d;
  border-radius: 8px;
  background: linear-gradient(145deg, #1d2230, #101217);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: var(--accent);
}

.brand-mark::before {
  width: 12px;
  height: 2px;
  transform: rotate(45deg);
}

.brand-mark::after {
  width: 12px;
  height: 2px;
  transform: rotate(-45deg);
}

.brand-mark span {
  width: 4px;
  height: 4px;
  box-shadow:
    0 -7px 0 #c8d2ff,
    0 7px 0 #7287e8;
}

/* Auth */

.auth-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 100vh;
  padding: 34px 0 60px;
}

.auth-brand,
.sidebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 760;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.auth-brand {
  font-size: 0.96rem;
}

.auth-layout {
  min-height: calc(100vh - 130px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(380px, 0.8fr);
  gap: 100px;
  align-items: center;
}

.auth-copy {
  max-width: 680px;
}

.auth-copy h1 {
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 7vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.auth-copy > p:not(.eyebrow) {
  max-width: 560px;
  margin-bottom: 28px;
  color: #a4abb7;
  font-size: 1.04rem;
  line-height: 1.65;
}

.auth-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-proof span {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #111318;
  padding: 8px 11px;
  color: #acb2bd;
  font-size: 0.76rem;
}

.auth-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #101216;
  box-shadow: var(--shadow);
  padding: 30px;
}

.auth-card-heading {
  margin-bottom: 26px;
}

.auth-card-heading h2 {
  margin-bottom: 8px;
  font-size: 1.62rem;
  letter-spacing: -0.035em;
}

.auth-card-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Main shell */

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: var(--sidebar);
  padding: 20px 14px 14px;
}

.sidebar-brand {
  height: 42px;
  margin: 0 8px 22px;
  font-size: 0.91rem;
}

.sidebar-nav {
  display: grid;
  gap: 3px;
}

.nav-item {
  min-height: 42px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  padding: 0 10px;
  color: #939aa5;
  text-align: left;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}

.nav-item:hover {
  color: #d4d8df;
  background: #13161b;
}

.nav-item.is-active {
  color: #edf0f5;
  background: #171a20;
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 22px;
  color: #7f8794;
  font-size: 0.86rem;
}

.nav-item.is-active .nav-icon {
  color: var(--accent);
}

.nav-count {
  min-width: 22px;
  border-radius: 999px;
  background: #20242b;
  padding: 3px 6px;
  color: #8f96a1;
  font-size: 0.66rem;
  text-align: center;
}

.sidebar-spacer {
  flex: 1;
}

.sidebar-plan {
  margin: 0 6px 12px;
  border-top: 1px solid #20242b;
  padding: 16px 4px 4px;
}

.sidebar-plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #cfd3da;
  font-size: 0.76rem;
}

.sidebar-plan-head strong {
  color: #9ba8da;
  font-size: 0.72rem;
}

.plan-track {
  height: 4px;
  margin: 10px 0 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #232831;
}

.plan-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #8095e6;
  transition: width 0.2s ease;
}

.sidebar-plan p {
  margin-bottom: 0;
  color: #707783;
  font-size: 0.66rem;
}

.sidebar-account {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border-top: 1px solid #20242b;
  padding: 14px 6px 0;
}

.account-dot {
  width: 29px;
  height: 29px;
  border-radius: 9px;
  background:
    radial-gradient(circle at 35% 35%, #a8b7f1 0 3px, transparent 4px),
    #1a1f29;
  border: 1px solid #2f3743;
}

.sidebar-account-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.sidebar-account-copy strong {
  overflow: hidden;
  color: #d7dbe2;
  font-size: 0.7rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-account-copy span {
  color: #6f7681;
  font-size: 0.62rem;
}

.workspace {
  min-width: 0;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 38px 44px 76px;
}

.workspace-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.workspace-header h1 {
  margin-bottom: 0;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.workspace-view {
  min-width: 0;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.7fr);
  gap: 14px;
  align-items: start;
}

.overview-side {
  display: grid;
  gap: 14px;
}

.content-panel,
.mini-panel {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.content-panel {
  overflow: hidden;
}

.mini-panel {
  padding: 18px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--border);
  padding: 17px 18px;
}

.panel-head.compact {
  border-bottom: 0;
  padding: 0 0 14px;
}

.panel-head h2,
.section-toolbar h2 {
  margin-bottom: 4px;
  font-size: 0.96rem;
  letter-spacing: -0.02em;
}

.panel-head p,
.section-toolbar p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.text-button {
  border: 0;
  background: transparent;
  padding: 2px 0;
  color: #96a7eb;
  font-size: 0.72rem;
  font-weight: 680;
}

.summary-list {
  display: grid;
}

.summary-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #21262d;
  padding: 12px 0;
}

.summary-list > div:first-child {
  border-top: 0;
}

.summary-list span {
  color: #8d949f;
  font-size: 0.75rem;
}

.summary-list strong {
  font-size: 0.92rem;
}

.quick-watch-list {
  display: grid;
  gap: 5px;
}

.quick-watch {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  border: 0;
  border-radius: 9px;
  background: transparent;
  padding: 8px;
  color: inherit;
  text-align: left;
}

.quick-watch:hover {
  background: #16191e;
}

.quick-watch-icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid #2c333d;
  border-radius: 8px;
  background: #171a20;
  color: #9fb0ee;
  font-size: 0.72rem;
}

.quick-watch-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.quick-watch-copy strong {
  overflow: hidden;
  color: #d7dbe1;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-watch-copy span,
.quick-watch-count {
  color: #747b86;
  font-size: 0.64rem;
}

/* Signals */

.signal-inbox {
  display: grid;
}

.signal-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #20252c;
  background: transparent;
  padding: 14px 18px;
  color: inherit;
  text-align: left;
  transition: background 0.15s ease;
}

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

.signal-row:hover {
  background: #15181d;
}

.signal-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #7f95eb;
  box-shadow: 0 0 0 4px rgba(127, 149, 235, 0.08);
}

.signal-row-copy {
  min-width: 0;
}

.signal-row-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.signal-row-title strong {
  overflow: hidden;
  color: #e5e8ed;
  font-size: 0.79rem;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signal-row-title span {
  flex: 0 0 auto;
  color: #727985;
  font-size: 0.66rem;
}

.signal-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 13px;
  margin-top: 4px;
  color: #7f8792;
  font-size: 0.67rem;
}

.signal-row-meta span {
  position: relative;
}

.signal-row-meta span + span::before {
  content: "·";
  position: absolute;
  left: -8px;
  color: #4f5660;
}

.signal-row-time {
  color: #747b85;
  font-size: 0.66rem;
  white-space: nowrap;
}

.signal-inbox-full .signal-row {
  padding-block: 15px;
}

.section-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.filter-field {
  display: grid;
  gap: 5px;
  color: #777e89;
  font-size: 0.67rem;
}

.filter-field select {
  width: 220px;
  margin-top: 0;
}

.inline-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 34px 18px;
  color: var(--muted);
}

.inline-empty-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #303640;
  border-radius: 11px;
  background: #171a20;
  color: #91a5f1;
}

.inline-empty strong {
  display: block;
  margin-bottom: 4px;
  color: #d5d9df;
  font-size: 0.8rem;
}

.inline-empty p {
  margin-bottom: 0;
  font-size: 0.72rem;
}

/* Watches */

.watch-table {
  overflow: visible;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface);
}

.watch-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 105px 88px auto;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  border-bottom: 1px solid #20252c;
  padding: 12px 14px;
}

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

.watch-row:hover {
  background: #14171c;
}

.watch-main-button {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  text-align: left;
}

.watch-type-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #2e3540;
  border-radius: 10px;
  background: #171a20;
  color: #9fb0ef;
  font-size: 0.78rem;
}

.watch-row-copy {
  min-width: 0;
}

.watch-row-copy strong {
  display: block;
  overflow: hidden;
  margin-bottom: 3px;
  color: #e6e9ee;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watch-row-copy span {
  color: #747b86;
  font-size: 0.66rem;
}

.watch-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.keyword {
  border: 1px solid #2d333c;
  border-radius: 999px;
  background: #171a20;
  padding: 4px 7px;
  color: #969eaa;
  font-size: 0.63rem;
}

.watch-signal-cell {
  display: grid;
  gap: 3px;
}

.watch-signal-cell strong {
  font-size: 0.76rem;
}

.watch-signal-cell span {
  color: #757c87;
  font-size: 0.63rem;
}

.watch-status-cell {
  display: flex;
  justify-content: flex-start;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.pill-active {
  background: rgba(84, 211, 143, 0.1);
  color: var(--success);
}

.pill-paused {
  background: rgba(255, 188, 87, 0.1);
  color: var(--warning);
}

.action-menu {
  position: relative;
}

.action-menu summary {
  list-style: none;
}

.action-menu summary::-webkit-details-marker {
  display: none;
}

.menu-trigger,
.icon-button {
  display: grid;
  place-items: center;
  border: 1px solid #2d333c;
  background: #15181d;
  color: #9ca3ae;
}

.menu-trigger {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 1rem;
  line-height: 1;
}

.menu-popover {
  position: absolute;
  z-index: 15;
  top: 40px;
  right: 0;
  width: 150px;
  overflow: hidden;
  border: 1px solid #303640;
  border-radius: 10px;
  background: #15181d;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  padding: 5px;
}

.menu-popover button {
  width: 100%;
  border: 0;
  border-radius: 7px;
  background: transparent;
  padding: 9px 10px;
  color: #c4c9d1;
  font-size: 0.7rem;
  text-align: left;
}

.menu-popover button:hover {
  background: #1d2127;
}

.menu-popover button.danger {
  color: var(--danger);
}

/* Drawer */

.drawer-backdrop,
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 7, 0.62);
  backdrop-filter: blur(5px);
}

.drawer-backdrop {
  z-index: 40;
}

.signal-drawer {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  width: min(500px, 92vw);
  height: 100vh;
  overflow-y: auto;
  border-left: 1px solid #303640;
  background: #101216;
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.38);
  padding: 24px;
}

.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #252a32;
  padding-bottom: 18px;
}

.drawer-head h2 {
  margin-bottom: 0;
  font-size: 1.26rem;
  line-height: 1.28;
  letter-spacing: -0.03em;
}

.drawer-content {
  display: grid;
  gap: 22px;
  padding-top: 20px;
}

.drawer-section {
  display: grid;
  gap: 9px;
}

.drawer-section-title {
  color: #727a86;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.drawer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.drawer-field {
  display: grid;
  gap: 4px;
  border-top: 1px solid #252a32;
  padding-top: 9px;
}

.drawer-field span {
  color: #717985;
  font-size: 0.66rem;
}

.drawer-field strong {
  color: #d5d9e0;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.45;
  word-break: break-word;
}

.drawer-source {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  color: #9fb0ef;
  font-size: 0.72rem;
  text-decoration: none;
}

.drawer-source:hover {
  text-decoration: underline;
}

/* Forms */

.form-grid {
  display: grid;
  gap: 17px;
}

.field-label,
label {
  color: #d5d8de;
  font-size: 0.8rem;
  font-weight: 650;
}

input,
select {
  width: 100%;
  margin-top: 7px;
  border: 1px solid #2b3139;
  border-radius: 9px;
  outline: none;
  background: #0e1013;
  color: var(--text);
  padding: 11px 12px;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

input:focus,
select:focus {
  border-color: #7287dd;
  box-shadow: 0 0 0 3px rgba(114, 135, 221, 0.1);
}

small {
  display: block;
  margin-top: 6px;
  color: #7a818c;
  font-size: 0.68rem;
  line-height: 1.45;
}

.button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9px;
  padding: 0 13px;
  font-weight: 720;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease,
    background 0.15s ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.button-primary {
  background: #edf0ff;
  color: #101216;
}

.button-secondary {
  border: 1px solid #303640;
  background: #15181d;
  color: #e6e8ed;
}

.button-with-icon {
  gap: 7px;
}

.auth-actions,
.builder-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.icon-button {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 1.15rem;
  line-height: 1;
}

.icon-button.subtle {
  border-color: transparent;
  background: transparent;
}

.status-message {
  min-height: 18px;
  margin: 14px 0 0;
  color: var(--accent);
  font-size: 0.78rem;
}

.status-message.error {
  color: #ff9ca8;
}

/* Watch modal */

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 26px;
}

.modal-backdrop {
  z-index: 0;
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: calc(100vh - 52px);
  overflow-y: auto;
  border: 1px solid #303640;
  border-radius: 20px;
  background: #101216;
  box-shadow: var(--shadow);
  padding: 26px;
}

.modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
}

.modal-heading h2 {
  margin-bottom: 6px;
  font-size: 1.4rem;
  letter-spacing: -0.035em;
}

.modal-heading p:last-child,
.step-heading p,
.builder-footer p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.watch-builder {
  display: grid;
}

.builder-step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 16px;
  border-top: 1px solid #242932;
  padding: 20px 0;
}

.step-number {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #384158;
  border-radius: 999px;
  background: #171b24;
  color: #aebcff;
  font-size: 0.7rem;
  font-weight: 800;
}

.step-content {
  display: grid;
  gap: 15px;
}

.step-heading h3 {
  margin-bottom: 4px;
  font-size: 0.94rem;
  letter-spacing: -0.02em;
}

.builder-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.coverage-card {
  display: grid;
  gap: 4px;
  border: 1px solid #2e3850;
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(86, 108, 193, 0.09), rgba(17, 20, 26, 0.7));
  padding: 12px 13px;
}

.coverage-card strong {
  font-size: 0.86rem;
}

.coverage-card > span:last-child {
  color: #959dab;
  font-size: 0.72rem;
  line-height: 1.45;
}

.coverage-label {
  color: #8fa6ff;
  font-size: 0.62rem;
  font-weight: 820;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.advanced-options {
  border-top: 1px solid #242932;
  padding-top: 12px;
}

.advanced-options summary {
  cursor: pointer;
  color: #abb2bc;
  font-size: 0.75rem;
  font-weight: 700;
}

.advanced-grid {
  display: grid;
  gap: 14px;
  padding-top: 14px;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-row input {
  width: 17px;
  height: 17px;
  margin: 0;
}

.builder-footer {
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #242932;
  padding-top: 18px;
}

.builder-footer strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.84rem;
}

/* Empty states */

.empty-state {
  display: grid;
  justify-items: center;
  border: 1px dashed #303640;
  border-radius: 15px;
  background: #101216;
  padding: 62px 24px;
  text-align: center;
}

.empty-state h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.empty-state p {
  max-width: 470px;
  margin-bottom: 19px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border: 1px solid #323945;
  border-radius: 12px;
  background: #151920;
  color: #9eb0ff;
}

/* Legacy history page compatibility */

.history-shell {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 70px;
}

.history-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 28px;
}

.history-header h1 {
  margin-bottom: 8px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.history-meta-line {
  color: var(--muted);
  font-size: 0.8rem;
}

.history-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.history-summary > div {
  display: grid;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 17px;
}

.history-stat-label {
  color: var(--subtle);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.history-summary strong {
  font-size: 1.35rem;
}

.signal-list {
  display: grid;
  gap: 10px;
}

.signal-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 18px;
}

.signal-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.signal-item h3 {
  margin: 5px 0 0;
  font-size: 0.95rem;
}

.signal-date {
  color: var(--accent);
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
}

.signal-status {
  border-radius: 999px;
  background: rgba(87, 211, 144, 0.1);
  padding: 5px 8px;
  color: var(--success);
  font-size: 0.62rem;
  font-weight: 800;
}

.signal-location {
  margin: 9px 0 0;
  color: #9ca3af;
  font-size: 0.78rem;
}

.signal-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}

.signal-detail {
  display: grid;
  gap: 4px;
  border-top: 1px solid #252a32;
  padding-top: 9px;
}

.signal-detail span {
  color: #777f8b;
  font-size: 0.66rem;
}

.signal-detail strong {
  color: #d7dae0;
  font-size: 0.76rem;
  font-weight: 600;
}

/* Responsive */

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .workspace {
    padding-inline: 28px;
  }

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

  .overview-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .watch-row {
    grid-template-columns: minmax(0, 1fr) 130px 90px auto;
  }
}

@media (max-width: 760px) {
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 38px;
  }

  .auth-copy {
    display: none;
  }

  .auth-card {
    width: min(520px, 100%);
    margin: 0 auto;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    height: auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 9px 12px;
  }

  .sidebar-brand {
    margin: 0;
  }

  .sidebar-nav {
    display: flex;
    justify-content: flex-end;
    gap: 2px;
  }

  .nav-item {
    width: auto;
    min-height: 38px;
    display: flex;
    padding: 0 8px;
  }

  .nav-item > span:nth-child(2),
  .nav-count,
  .sidebar-spacer,
  .sidebar-plan,
  .sidebar-account {
    display: none;
  }

  .workspace {
    padding: 28px 16px 64px;
  }

  .workspace-header {
    align-items: stretch;
    flex-direction: column;
  }

  .workspace-header .button {
    width: 100%;
  }

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

  .section-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-field select {
    width: 100%;
  }

  .watch-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .watch-keywords,
  .watch-signal-cell,
  .watch-status-cell {
    display: none;
  }

  .signal-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .signal-row-time {
    display: none;
  }

  .drawer-grid,
  .builder-fields,
  .history-summary,
  .signal-details {
    grid-template-columns: 1fr;
  }

  .modal-shell {
    padding: 0;
    place-items: end center;
  }

  .modal-card {
    width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    padding: 22px 18px;
  }

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

  .builder-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .builder-footer .button {
    width: 100%;
  }

  .signal-drawer {
    width: 100%;
  }
}


/* Standalone history page compatibility */
.app-header {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--border);
  background: var(--sidebar);
  padding: 0 max(20px, calc((100vw - 980px) / 2));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 760;
  text-decoration: none;
}

.button-quiet {
  border: 1px solid transparent;
  background: transparent;
  color: #9ba2ad;
}


/* Linear / Vercel inspired refinement */
:root {
  --bg: #0a0a0b;
  --sidebar: #0d0d0f;
  --surface: #111113;
  --surface-2: #151518;
  --surface-3: #1a1a1e;
  --border: #27272b;
  --border-strong: #35353b;
  --text: #f2f2f3;
  --muted: #9a9aa1;
  --subtle: #707078;

  --accent: #8ea2ff;
  --accent-soft: rgba(142, 162, 255, 0.11);
  --accent-strong: #c7d0ff;

  --blue: #7aa2f7;
  --blue-soft: rgba(122, 162, 247, 0.11);
  --violet: #b39df3;
  --violet-soft: rgba(179, 157, 243, 0.11);
  --amber: #e6b86a;
  --amber-soft: rgba(230, 184, 106, 0.11);
  --cyan: #67c7d8;
  --cyan-soft: rgba(103, 199, 216, 0.11);

  --success: #6fd6a0;
  --warning: #e6b86a;
  --danger: #ec8f9c;
}

body,
button,
input,
select {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

body {
  letter-spacing: 0.006em;
  background:
    radial-gradient(
      circle at 74% -8%,
      rgba(105, 123, 180, 0.07),
      transparent 30rem
    ),
    var(--bg);
}

/* Type hierarchy */
.auth-copy h1,
.workspace-header h1,
.history-header h1 {
  letter-spacing: -0.018em;
  font-weight: 600;
}

.auth-copy h1 {
  line-height: 0.96;
}

.workspace-header h1 {
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1.05;
}

.panel-head h2,
.section-toolbar h2,
.modal-heading h2,
.auth-card-heading h2 {
  letter-spacing: -0.008em;
  font-weight: 600;
}

.sidebar-brand,
.auth-brand,
.watch-row-copy strong,
.signal-row-title strong,
.quick-watch-copy strong {
  letter-spacing: 0;
}

.eyebrow,
.coverage-label,
.drawer-section-title,
.history-stat-label {
  letter-spacing: 0.13em;
}

.sidebar-nav,
.sidebar-plan,
.sidebar-account,
.panel-head,
.section-toolbar,
.watch-table,
.signal-inbox,
.quick-watch-list,
.summary-list {
  letter-spacing: 0.004em;
}

/* Logo */
.brand-mark {
  border-color: #34343b;
  background:
    linear-gradient(145deg, rgba(142, 162, 255, 0.09), transparent 60%),
    #141417;
}

.brand-mark::before {
  background: linear-gradient(90deg, var(--blue), var(--violet));
}

.brand-mark::after {
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.brand-mark span {
  background: var(--violet);
  box-shadow:
    0 -7px 0 var(--blue),
    0 7px 0 var(--cyan);
}

/* Sidebar */
.sidebar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.01), transparent 18%),
    var(--sidebar);
}

.sidebar-brand {
  color: #f1f1f2;
}

.nav-item {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #83838a;
  font-size: 0.78rem;
  font-weight: 500;
}

.nav-item:hover {
  background: #131316;
  color: #d5d5d8;
}

.nav-item.is-active {
  border-color: #2b2b30;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.024), transparent),
    #17171a;
  color: #f0f0f2;
}

.nav-item.is-active .nav-icon {
  color: var(--accent);
}

.nav-count {
  background: #202024;
  color: #8e8e95;
}

.sidebar-plan-head span,
.sidebar-account-copy strong {
  color: #cfcfd3;
}

/* Workspace + surfaces */
.workspace {
  padding-top: 34px;
}

.workspace-header {
  margin-bottom: 26px;
}

.content-panel,
.mini-panel,
.watch-table,
.auth-card,
.modal-card,
.signal-drawer {
  border-color: var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.01), transparent),
    var(--surface);
}

.content-panel,
.mini-panel,
.watch-table {
  border-radius: 12px;
}

.panel-head {
  padding: 15px 17px;
}

.panel-head h2,
.section-toolbar h2 {
  font-size: 0.92rem;
}

.panel-head p,
.section-toolbar p {
  color: #85858c;
  font-size: 0.72rem;
}

.summary-list > div {
  min-height: 41px;
}

.summary-list strong {
  color: #e8e8ea;
  font-weight: 600;
}

/* Functional color */
.signal-type-icon,
.quick-watch-icon,
.watch-type-icon {
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  color: var(--accent);
}

.signal-type-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-size: 0.72rem;
}

.tone-construction {
  color: var(--blue);
  background: var(--blue-soft);
}

.tone-business {
  color: var(--amber);
  background: var(--amber-soft);
}

.tone-professional {
  color: var(--violet);
  background: var(--violet-soft);
}

.tone-neutral {
  color: var(--cyan);
  background: var(--cyan-soft);
}

/* Signal inbox */
.signal-row {
  min-height: 62px;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  padding: 12px 16px;
}

.signal-row:hover {
  background: rgba(255, 255, 255, 0.022);
}

.signal-row-title {
  gap: 10px;
}

.signal-row-title strong {
  color: #ededee;
  font-size: 0.78rem;
  font-weight: 550;
}

.signal-row-title span {
  color: #76767e;
  font-size: 0.64rem;
}

.signal-row-meta,
.signal-row-time {
  color: #77777f;
}

.signal-row-meta {
  margin-top: 5px;
}

.text-button {
  color: #9cacf0;
}

.text-button:hover {
  color: #c2cbf7;
}

/* Watches */
.watch-row {
  min-height: 70px;
  border-bottom-color: #232327;
}

.watch-row:hover {
  background: rgba(255, 255, 255, 0.018);
}

.watch-row-copy strong {
  color: #ededee;
  font-weight: 550;
}

.watch-row-copy span,
.watch-signal-cell span {
  color: #77777f;
}

.keyword {
  border-color: #303035;
  background: #17171a;
  color: #9999a0;
}

.pill-active {
  background: rgba(111, 214, 160, 0.1);
  color: var(--success);
}

.pill-paused {
  background: rgba(230, 184, 106, 0.1);
  color: var(--warning);
}

/* Buttons: Vercel-like neutral hierarchy */
.button {
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 600;
}

.button-primary {
  border: 1px solid #f0f0f2;
  background: #f0f0f2;
  color: #111113;
}

.button-primary:hover:not(:disabled) {
  background: #ffffff;
}

.button-secondary,
.icon-button,
.menu-trigger {
  border-color: #303035;
  background: #17171a;
}

.button-secondary:hover:not(:disabled),
.icon-button:hover,
.menu-trigger:hover {
  background: #1d1d21;
}

.menu-popover {
  border-color: #34343a;
  background: #161619;
}

.menu-popover button:hover {
  background: #202024;
}

/* Inputs */
input,
select {
  border-color: #303035;
  border-radius: 8px;
  background: #0f0f11;
  letter-spacing: 0.01em;
}

input:focus,
select:focus {
  border-color: #6575b8;
  box-shadow: 0 0 0 3px rgba(110, 128, 194, 0.09);
}

.field-label,
label {
  color: #d4d4d8;
  letter-spacing: 0.008em;
}

/* Coverage / contextual messages */
.coverage-card {
  border-color: rgba(122, 162, 247, 0.25);
  background:
    linear-gradient(135deg, rgba(122, 162, 247, 0.08), transparent 72%),
    #121216;
}

.coverage-label {
  color: var(--blue);
}

.status-message {
  color: var(--cyan);
}

.status-message.error {
  color: var(--danger);
}

.inline-empty-icon {
  color: var(--violet);
  border-color: rgba(179, 157, 243, 0.25);
  background: var(--violet-soft);
}

/* Drawer */
.signal-drawer {
  width: min(520px, 94vw);
}

.signal-drawer[data-tone="construction"] .drawer-head {
  box-shadow: inset 3px 0 0 var(--blue);
  padding-left: 14px;
}

.signal-drawer[data-tone="business"] .drawer-head {
  box-shadow: inset 3px 0 0 var(--amber);
  padding-left: 14px;
}

.signal-drawer[data-tone="professional"] .drawer-head {
  box-shadow: inset 3px 0 0 var(--violet);
  padding-left: 14px;
}

.drawer-head h2 {
  letter-spacing: -0.01em;
  font-weight: 600;
}

.drawer-source {
  color: var(--blue);
}

/* Modal */
.modal-card {
  border-radius: 14px;
}

.modal-heading h2 {
  font-weight: 600;
}

.step-heading h3 {
  letter-spacing: -0.004em;
  font-weight: 600;
}

.step-number {
  border-color: rgba(142, 162, 255, 0.28);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

/* Auth */
.auth-card {
  border-radius: 14px;
}

.auth-copy > p:not(.eyebrow) {
  color: #a0a0a7;
}

.auth-proof span {
  border-color: #2d2d31;
  background: #121214;
}

/* Responsive polish */
@media (max-width: 760px) {
  body {
    letter-spacing: 0.004em;
  }

  .workspace-header h1 {
    font-size: 1.8rem;
  }

  .signal-row {
    grid-template-columns: 30px minmax(0, 1fr);
  }
}


/* UX/UI polish v2 — hierarchy, rhythm, iconography and interaction */
:root {
  --canvas: #09090a;
  --surface-0: #0c0c0e;
  --surface-1: #101012;
  --surface-2: #141417;
  --surface-3: #1a1a1e;
  --line-soft: #202024;
  --line: #29292e;
  --line-strong: #37373e;

  --bg: var(--canvas);
  --sidebar: var(--surface-0);
  --surface: var(--surface-1);
  --border: var(--line);
  --border-strong: var(--line-strong);
}

body {
  letter-spacing: 0.01em;
  line-height: 1.45;
}

.app-shell {
  grid-template-columns: 216px minmax(0, 1fr);
}

.sidebar {
  border-right-color: var(--line-soft);
  padding: 18px 12px 14px;
}

.sidebar-brand {
  margin: 0 9px 24px;
  gap: 11px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.012em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.sidebar-nav {
  gap: 2px;
}

.nav-item {
  position: relative;
  min-height: 39px;
  border: 0;
  border-radius: 7px;
  padding-inline: 9px;
  color: #83838b;
  font-size: 0.78rem;
  letter-spacing: 0.012em;
}

.nav-item::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 9px;
  width: 2px;
  height: 21px;
  border-radius: 0 2px 2px 0;
  background: transparent;
}

.nav-item.is-active {
  border: 0;
  background: rgba(255, 255, 255, 0.035);
  color: #eeeeef;
}

.nav-item.is-active::before {
  background: var(--accent);
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.025);
}

.nav-icon {
  width: 20px;
  height: 20px;
}

.nav-icon svg,
.signal-type-icon svg,
.quick-watch-icon svg,
.watch-type-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-count {
  min-width: 20px;
  padding: 2px 6px;
  background: #1c1c20;
  color: #8e8e96;
  font-size: 0.64rem;
}

.sidebar-plan,
.sidebar-account {
  border-color: var(--line-soft);
}

.workspace {
  max-width: 1380px;
  padding: 38px 48px 80px;
}

.workspace-header {
  align-items: center;
  margin-bottom: 28px;
}

.workspace-header .eyebrow {
  margin-bottom: 6px;
}

.workspace-header h1 {
  font-size: clamp(2rem, 2.8vw, 2.65rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.006em;
}

.eyebrow {
  color: #7f8fcf;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.overview-grid {
  grid-template-columns: minmax(0, 1.9fr) minmax(280px, 0.7fr);
  gap: 16px;
}

.content-panel {
  border-color: var(--line);
  background: var(--surface-1);
}

.overview-side .mini-panel {
  border-color: #222226;
  background: var(--surface-0);
}

.mini-panel {
  padding: 17px;
}

.panel-head {
  min-height: 64px;
  align-items: center;
  padding: 15px 17px;
}

.panel-head.compact {
  min-height: auto;
  align-items: flex-start;
  padding: 0 0 13px;
}

.panel-head h2,
.section-toolbar h2 {
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.002em;
}

.panel-head p,
.section-toolbar p {
  margin-top: 3px;
  color: #85858d;
  font-size: 0.73rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.text-button {
  font-size: 0.7rem;
  letter-spacing: 0.015em;
}

/* More visual, lower-noise account status */
.summary-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.summary-metric {
  min-width: 0;
  display: grid;
  gap: 6px;
  border: 1px solid #222226;
  border-radius: 9px;
  background: #101012;
  padding: 12px 10px;
}

.summary-metric strong {
  color: #eeeeef;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
}

.summary-metric span {
  color: #777780;
  font-size: 0.61rem;
  line-height: 1.25;
}

/* Signal inbox */
.signal-row {
  min-height: 70px;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 13px;
  padding: 14px 17px;
  border-bottom-color: #222226;
}

.signal-row:hover {
  background: var(--surface-2);
}

.signal-row:hover .signal-type-icon {
  transform: translateY(-1px);
}

.signal-type-icon,
.quick-watch-icon,
.watch-type-icon {
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}

.signal-type-icon {
  width: 32px;
  height: 32px;
  border-width: 1px;
  border-radius: 9px;
}

.signal-row-title {
  gap: 9px;
  align-items: center;
}

.signal-row-title strong {
  font-size: 0.79rem;
  font-weight: 550;
  line-height: 1.35;
  letter-spacing: 0.008em;
}

.signal-category {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 20px;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 0.58rem !important;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
}

.signal-row-meta {
  gap: 7px 14px;
  margin-top: 6px;
  color: #808089;
  font-size: 0.69rem;
  letter-spacing: 0.008em;
}

.signal-row-time {
  color: #74747c;
  font-size: 0.68rem;
  letter-spacing: 0.01em;
}

/* Quick Watches */
.quick-watch {
  min-height: 48px;
  padding: 8px 7px;
  border: 1px solid transparent;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.quick-watch:hover {
  border-color: #26262b;
  background: #121215;
  transform: translateX(1px);
}

.quick-watch-icon {
  width: 29px;
  height: 29px;
}

.quick-watch-copy strong {
  font-size: 0.72rem;
  font-weight: 550;
  letter-spacing: 0.006em;
}

.quick-watch-copy span {
  margin-top: 1px;
  font-size: 0.64rem;
}

.quick-watch-end {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.quick-watch-count {
  min-width: 22px;
  border: 1px solid #29292e;
  border-radius: 999px;
  background: #17171a;
  padding: 3px 6px;
  color: #92929a;
  font-size: 0.61rem;
  text-align: center;
}

.quick-watch-arrow {
  color: #5f5f67;
  font-size: 1rem;
  line-height: 1;
  transition:
    color 0.15s ease,
    transform 0.15s ease;
}

.quick-watch:hover .quick-watch-arrow {
  color: #a9a9b0;
  transform: translateX(2px);
}

/* Watches table */
.watch-table {
  border-color: var(--line);
  background: var(--surface-1);
}

.watch-row {
  min-height: 74px;
  border-bottom-color: #222226;
}

.watch-row:hover {
  background: var(--surface-2);
}

.watch-row-copy strong {
  font-size: 0.79rem;
  font-weight: 550;
  letter-spacing: 0.008em;
}

.watch-row-copy span,
.watch-signal-cell span {
  font-size: 0.67rem;
  letter-spacing: 0.008em;
}

.watch-type-icon {
  width: 35px;
  height: 35px;
}

.keyword {
  font-size: 0.63rem;
  letter-spacing: 0.01em;
}

/* Four neutral surface levels */
.auth-card,
.modal-card,
.signal-drawer {
  background: var(--surface-1);
}

.menu-popover,
input,
select {
  background: var(--surface-0);
}

.button-secondary,
.icon-button,
.menu-trigger,
.keyword {
  background: var(--surface-2);
}

/* Primary actions and micro-interaction */
.button {
  letter-spacing: 0.008em;
}

.button-primary {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

.button-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.48) inset,
    0 5px 18px rgba(0, 0, 0, 0.18);
}

/* Refine logo without changing its form */
.brand-mark::before {
  background: linear-gradient(90deg, #8da4ff, #b09cf1);
}

.brand-mark::after {
  background: linear-gradient(90deg, #74c6d2, #8da4ff);
}

.brand-mark span {
  background: #b09cf1;
  box-shadow:
    0 -7px 0 #8da4ff,
    0 7px 0 #74c6d2;
}

/* Text rhythm */
.sidebar-account-copy strong,
.sidebar-plan-head span,
.field-label,
label {
  letter-spacing: 0.012em;
}

.drawer-head h2,
.modal-heading h2,
.auth-card-heading h2 {
  letter-spacing: 0;
}

.drawer-field strong,
.watch-signal-cell strong {
  letter-spacing: 0.006em;
}

@media (max-width: 1180px) {
  .workspace {
    padding-inline: 34px;
  }

  .overview-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.75fr);
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .workspace {
    padding-inline: 26px;
  }

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

  .overview-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .watch-row {
    grid-template-columns: minmax(0, 1fr) 120px 96px 84px auto;
  }
}

@media (max-width: 760px) {
  .workspace {
    padding-inline: 15px;
  }

  .workspace-header h1 {
    font-size: 1.75rem;
  }

  .summary-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .signal-category {
    display: none;
  }

  .quick-watch-arrow {
    display: none;
  }
}


/* Fine polish v3 — lighter hierarchy and tighter product proportions */
:root {
  --blue: #8197e6;
  --blue-soft: rgba(129, 151, 230, 0.09);
  --violet: #a995e4;
  --violet-soft: rgba(169, 149, 228, 0.09);
  --cyan: #70bcc9;
  --cyan-soft: rgba(112, 188, 201, 0.09);
}

.app-shell {
  grid-template-columns: 198px minmax(0, 1fr);
}

.sidebar {
  padding-inline: 10px;
}

.sidebar-brand {
  margin-inline: 8px;
}

.nav-item::before {
  left: -10px;
}

.workspace {
  max-width: 1410px;
  padding: 34px 48px 80px;
}

.workspace-header {
  margin-bottom: 22px;
}

.workspace-header h1 {
  font-size: clamp(1.8rem, 2.45vw, 2.25rem);
  font-weight: 590;
  letter-spacing: -0.004em;
}

.workspace-header .eyebrow {
  margin-bottom: 5px;
}

.button-primary {
  border-color: #dedee2;
  background: #dedee2;
}

.button-primary:hover:not(:disabled) {
  background: #eeeeef;
}

#new-watch-button {
  min-height: 35px;
  padding-inline: 12px;
  font-size: 0.72rem;
}

.overview-grid {
  grid-template-columns: minmax(0, 2fr) minmax(270px, 0.68fr);
}

/* Lower contrast on secondary right rail */
.overview-side {
  gap: 14px;
}

.overview-side .mini-panel {
  border-color: #202024;
  background: #0e0e10;
}

.summary-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid #1f1f23;
  border-bottom: 1px solid #1f1f23;
}

.summary-metric {
  min-width: 0;
  gap: 5px;
  border: 0;
  border-right: 1px solid #1f1f23;
  border-radius: 0;
  background: transparent;
  padding: 12px 10px;
}

.summary-metric:first-child {
  padding-left: 0;
}

.summary-metric:last-child {
  border-right: 0;
  padding-right: 0;
}

.summary-metric strong {
  font-size: 1.04rem;
  font-weight: 570;
}

.summary-metric span {
  color: #7c7c84;
  font-size: 0.6rem;
  line-height: 1.3;
}

/* Signal list hierarchy */
.signal-row {
  min-height: 72px;
  padding-block: 15px;
}

.signal-row-title strong {
  font-size: 0.8rem;
  font-weight: 500;
  color: #e8e8ea;
}

.signal-row-meta {
  color: #8a8a92;
  font-size: 0.7rem;
}

.signal-row-time {
  color: #7d7d85;
}

.signal-category {
  min-height: 18px;
  border-color: color-mix(in srgb, currentColor 48%, transparent);
  padding: 2px 6px;
  font-size: 0.55rem !important;
  font-weight: 560;
  opacity: 0.88;
}

.signal-type-icon {
  border-color: color-mix(in srgb, currentColor 58%, transparent);
}

.tone-construction {
  color: var(--blue);
  background: var(--blue-soft);
}

.tone-business {
  color: var(--amber);
  background: var(--amber-soft);
}

.tone-professional {
  color: var(--violet);
  background: var(--violet-soft);
}

/* Quick Watches: quieter badges, more breathing room */
.quick-watch-list {
  gap: 8px;
}

.quick-watch {
  min-height: 51px;
  padding-block: 9px;
}

.quick-watch-count {
  min-width: 20px;
  border-color: #26262b;
  background: #141417;
  color: #818189;
  padding: 2px 5px;
  font-size: 0.58rem;
}

.quick-watch-arrow {
  color: #585860;
}

.quick-watch:hover .quick-watch-count {
  color: #a1a1a8;
  border-color: #303036;
}

/* Logo color contrast */
.brand-mark::before {
  background: linear-gradient(90deg, #91a7ff, #b8a4f4);
}

.brand-mark::after {
  background: linear-gradient(90deg, #7bcbd6, #91a7ff);
}

.brand-mark span {
  background: #beaaf6;
  box-shadow:
    0 -7px 0 #91a7ff,
    0 7px 0 #7bcbd6;
}

/* Slightly calmer labels and metadata */
.panel-head p,
.section-toolbar p,
.quick-watch-copy span,
.watch-row-copy span,
.watch-signal-cell span {
  color: #888890;
}

.sidebar-plan-head span,
.sidebar-account-copy strong {
  letter-spacing: 0.016em;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .workspace {
    padding-inline: 34px;
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 184px minmax(0, 1fr);
  }
}


/* Public home */
html {
  scroll-behavior: smooth;
}

.marketing-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 68% 10%, rgba(109, 126, 190, 0.10), transparent 30rem),
    radial-gradient(circle at 18% 38%, rgba(119, 190, 202, 0.05), transparent 24rem),
    var(--bg);
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  width: min(1180px, calc(100% - 40px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(38, 38, 43, 0.76);
  background: rgba(10, 10, 11, 0.76);
  backdrop-filter: blur(18px);
}

.landing-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.landing-links a {
  color: #888890;
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.012em;
  text-decoration: none;
  transition: color 0.15s ease;
}

.landing-links a:hover {
  color: #e8e8ea;
}

.landing-login-link {
  border: 1px solid #303035;
  border-radius: 8px;
  background: #141417;
  padding: 8px 11px;
  color: #d8d8dc !important;
}

.landing-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.landing-hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(480px, 1.05fr);
  gap: 74px;
  align-items: center;
  padding: 76px 0 70px;
}

.hero-copy {
  max-width: 600px;
}

.hero-copy .eyebrow {
  margin-bottom: 16px;
}

.hero-copy h1 {
  max-width: 650px;
  margin-bottom: 22px;
  font-size: clamp(3.15rem, 6.3vw, 6rem);
  font-weight: 590;
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.hero-lead {
  max-width: 560px;
  margin-bottom: 26px;
  color: #a0a0a8;
  font-size: 1rem;
  line-height: 1.68;
  letter-spacing: 0.008em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-actions .button {
  min-height: 40px;
  padding-inline: 15px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 17px;
  color: #74747c;
  font-size: 0.68rem;
}

.hero-note-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(111, 214, 160, 0.07);
}

.hero-product {
  position: relative;
  min-width: 0;
}

.preview-window {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid #303036;
  border-radius: 15px;
  background: #0d0d0f;
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.015) inset;
}

.preview-toolbar {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #232327;
  padding: 0 14px;
}

.preview-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #dcdce0;
  font-size: 0.69rem;
  font-weight: 600;
}

.preview-logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  transform: scale(0.88);
}

.preview-live {
  border: 1px solid rgba(111, 214, 160, 0.20);
  border-radius: 999px;
  background: rgba(111, 214, 160, 0.07);
  padding: 4px 7px;
  color: var(--success);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.preview-body {
  min-height: 390px;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
}

.preview-sidebar {
  display: grid;
  align-content: start;
  gap: 4px;
  border-right: 1px solid #212125;
  background: #0b0b0d;
  padding: 16px 10px;
}

.preview-sidebar span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
  border-radius: 7px;
  padding: 0 8px;
  color: #66666e;
  font-size: 0.6rem;
}

.preview-sidebar b {
  font-size: 0.56rem;
  font-weight: 600;
}

.preview-sidebar .preview-nav-active {
  background: #151518;
  color: #d6d6da;
}

.preview-content {
  padding: 21px;
}

.preview-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.preview-title-row div {
  display: grid;
  gap: 5px;
}

.preview-title-row small {
  margin: 0;
  color: #7888c7;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.preview-title-row strong {
  color: #ededee;
  font-size: 1.05rem;
  font-weight: 580;
}

.preview-title-row > span {
  color: #6d6d75;
  font-size: 0.58rem;
}

.preview-signal {
  min-height: 72px;
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  border-top: 1px solid #202024;
}

.preview-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-size: 0.68rem;
}

.preview-blue {
  color: var(--blue);
  background: var(--blue-soft);
}

.preview-amber {
  color: var(--amber);
  background: var(--amber-soft);
}

.preview-violet {
  color: var(--violet);
  background: var(--violet-soft);
}

.preview-signal div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.preview-signal strong {
  overflow: hidden;
  color: #d7d7da;
  font-size: 0.65rem;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-signal span {
  color: #74747d;
  font-size: 0.57rem;
}

.preview-signal time {
  color: #65656d;
  font-size: 0.56rem;
}

.preview-glow {
  position: absolute;
  z-index: 1;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.28;
  pointer-events: none;
}

.preview-glow-one {
  width: 190px;
  height: 190px;
  right: 4%;
  top: -8%;
  background: #7b91e2;
}

.preview-glow-two {
  width: 150px;
  height: 150px;
  left: 4%;
  bottom: -8%;
  background: #72bdc8;
}

.landing-section {
  border-top: 1px solid #202024;
  padding: 88px 0;
}

.landing-section-head {
  max-width: 650px;
  margin-bottom: 34px;
}

.landing-section-head h2,
.landing-value h2,
.access-copy h2 {
  margin-bottom: 12px;
  color: #eeeeef;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 570;
  line-height: 1.12;
  letter-spacing: -0.018em;
}

.landing-section-head > p:last-child,
.access-copy > p {
  margin-bottom: 0;
  color: #92929a;
  font-size: 0.86rem;
  line-height: 1.65;
}

.how-grid,
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.how-card {
  position: relative;
  min-height: 245px;
  overflow: hidden;
  border: 1px solid #25252a;
  border-radius: 13px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.018), transparent 60%),
    #101012;
  padding: 20px;
}

.how-number {
  position: absolute;
  top: 18px;
  right: 18px;
  color: #4f4f57;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.how-icon,
.coverage-home-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid currentColor;
  border-radius: 10px;
  font-size: 0.78rem;
}

.how-card h3,
.coverage-home-card h3 {
  margin: 52px 0 8px;
  color: #e5e5e8;
  font-size: 0.9rem;
  font-weight: 570;
  letter-spacing: 0.004em;
}

.how-card p,
.coverage-home-card p {
  margin-bottom: 0;
  color: #85858d;
  font-size: 0.75rem;
  line-height: 1.65;
}

.coverage-head {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.beta-pill {
  border: 1px solid rgba(142, 162, 255, 0.20);
  border-radius: 999px;
  background: rgba(142, 162, 255, 0.07);
  padding: 5px 8px;
  color: #9aaaf0;
  font-size: 0.6rem;
  font-weight: 650;
}

.coverage-home-card {
  min-height: 225px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 15px;
  border: 1px solid #242429;
  border-radius: 13px;
  background: #0f0f11;
  padding: 19px;
}

.coverage-home-card > div:last-child {
  min-width: 0;
}

.coverage-home-card > div:last-child > span {
  display: block;
  margin-bottom: 7px;
  color: #707078;
  font-size: 0.62rem;
  font-weight: 600;
}

.coverage-home-card h3 {
  margin: 0 0 9px;
}

.coverage-home-card:hover {
  border-color: #303036;
  background: #111114;
}

.landing-value {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 70px;
  border-top: 1px solid #202024;
  padding: 88px 0;
}

.value-points {
  display: grid;
  border-top: 1px solid #242429;
}

.value-points > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 20px;
  border-bottom: 1px solid #242429;
  padding: 17px 0;
}

.value-points strong {
  color: #d8d8dc;
  font-size: 0.77rem;
  font-weight: 560;
}

.value-points span {
  color: #818189;
  font-size: 0.74rem;
  line-height: 1.55;
}

.access-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.72fr);
  gap: 90px;
  align-items: center;
  border-top: 1px solid #202024;
  padding: 90px 0 100px;
}

.access-copy {
  max-width: 570px;
}

.access-checks {
  display: grid;
  gap: 9px;
  margin-top: 22px;
  color: #9898a0;
  font-size: 0.73rem;
}

.home-auth-card {
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.012) inset;
}

.google-auth-button {
  width: 100%;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #303035;
  border-radius: 8px;
  background: #f0f0f2;
  color: #161618;
  font-size: 0.76rem;
  font-weight: 600;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}

.google-auth-button:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.google-auth-button svg {
  width: 17px;
  height: 17px;
}

.auth-divider {
  position: relative;
  margin: 20px 0;
  text-align: center;
}

.auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: #25252a;
}

.auth-divider span {
  position: relative;
  background: #101012;
  padding: 0 9px;
  color: #6f6f77;
  font-size: 0.62rem;
}

.home-auth-card .auth-actions .button {
  flex: 1;
}

.landing-footer {
  width: min(1180px, calc(100% - 40px));
  min-height: 90px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #202024;
  color: #686870;
  font-size: 0.66rem;
}

.landing-footer .auth-brand {
  font-size: 0.76rem;
}

.landing-footer .brand-mark {
  width: 23px;
  height: 23px;
  transform: scale(0.9);
}

@media (max-width: 980px) {
  .landing-hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 56px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-product {
    width: min(760px, 100%);
  }

  .how-grid,
  .coverage-grid {
    grid-template-columns: 1fr;
  }

  .how-card,
  .coverage-home-card {
    min-height: auto;
  }

  .landing-value,
  .access-section {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .home-auth-card {
    width: min(520px, 100%);
  }
}

@media (max-width: 680px) {
  .landing-nav,
  .landing-main,
  .landing-footer {
    width: min(100% - 28px, 1180px);
  }

  .landing-links a:not(.landing-login-link) {
    display: none;
  }

  .landing-hero {
    min-height: 0;
    padding: 50px 0 64px;
  }

  .hero-copy h1 {
    font-size: clamp(2.7rem, 14vw, 4.3rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

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

  .preview-sidebar {
    display: none;
  }

  .preview-content {
    padding: 15px;
  }

  .preview-signal {
    grid-template-columns: 29px minmax(0, 1fr);
  }

  .preview-signal time {
    display: none;
  }

  .landing-section,
  .landing-value,
  .access-section {
    padding-block: 64px;
  }

  .coverage-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .coverage-home-card {
    grid-template-columns: 1fr;
  }

  .value-points > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .landing-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 22px;
  }
}


/* Authenticated app themes */
.sidebar-appearance {
  margin: 0 6px 12px;
  border-top: 1px solid #20242b;
  padding: 14px 4px 2px;
}

.sidebar-section-label {
  display: block;
  margin-bottom: 8px;
  color: #707783;
  font-size: 0.61rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  border: 1px solid #26262b;
  border-radius: 9px;
  background: #111114;
  padding: 3px;
}

.theme-option {
  min-width: 0;
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #707078;
  font-size: 0.62rem;
  font-weight: 600;
}

.theme-option svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-option:hover {
  color: #c8c8cd;
}

.theme-option.is-active {
  background: #1d1d21;
  color: #eeeeef;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.workspace {
  position: relative;
}

.workspace-header,
.workspace-view {
  position: relative;
  z-index: 2;
}

.workspace-signal-network {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 28px;
  width: min(620px, 52%);
  height: 145px;
  overflow: hidden;
  opacity: 0.11;
  pointer-events: none;
}

.workspace-signal-network svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.workspace-signal-network path {
  fill: none;
  stroke: #8798da;
  stroke-width: 1;
  stroke-dasharray: 2 6;
}

.network-node {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #8197e6;
  box-shadow: 0 0 0 4px rgba(129, 151, 230, 0.08);
}

.network-node.node-a { left: 19%; top: 72%; }
.network-node.node-b { left: 38%; top: 37%; }
.network-node.node-c {
  left: 56%;
  top: 58%;
  width: 12px;
  height: 12px;
  background: #a995e4;
  box-shadow:
    0 0 0 5px rgba(169, 149, 228, 0.11),
    0 0 0 10px rgba(169, 149, 228, 0.04);
}
.network-node.node-d { left: 75%; top: 29%; background: #70bcc9; }
.network-node.node-e { left: 89%; top: 66%; }

/* Dark mode remains the current product style */
body[data-app-theme="dark"] {
  background: #09090a;
  color: #f4f5f7;
}

body[data-app-theme="dark"] .app-shell {
  color: #f4f5f7;
  background: #09090a;
}

/* Light mode — signal / node identity */
body[data-app-theme="light"] {
  --light-canvas: #f6f7fb;
  --light-sidebar: #fbfbfd;
  --light-surface: #ffffff;
  --light-surface-soft: #f7f8fc;
  --light-surface-hover: #f1f3fb;
  --light-line: #e2e5ed;
  --light-line-strong: #d7dbe6;
  --light-text: #17182b;
  --light-text-soft: #646b80;
  --light-text-faint: #8b91a3;
  --light-accent: #5f63f2;
  --light-accent-2: #7a5cf3;
  --light-cyan: #11a9c3;
  --light-green: #18a966;
  background: var(--light-canvas);
  color: var(--light-text);
}

body[data-app-theme="light"] .app-shell {
  color: var(--light-text);
  background:
    radial-gradient(circle at 72% 2%, rgba(97, 104, 245, 0.045), transparent 29rem),
    var(--light-canvas);
}

body[data-app-theme="light"] .sidebar {
  border-right-color: var(--light-line);
  background:
    linear-gradient(180deg, rgba(96, 99, 242, 0.018), transparent 28%),
    var(--light-sidebar);
}

body[data-app-theme="light"] .sidebar-brand {
  color: #191a2c;
}

body[data-app-theme="light"] .brand-mark {
  border-color: #d9ddea;
  background:
    linear-gradient(145deg, rgba(95, 99, 242, 0.08), rgba(17, 169, 195, 0.04)),
    #ffffff;
  box-shadow: 0 1px 2px rgba(30, 33, 66, 0.05);
}

body[data-app-theme="light"] .nav-item {
  color: #73798c;
}

body[data-app-theme="light"] .nav-item:hover {
  color: #30334a;
  background: #f1f2f8;
}

body[data-app-theme="light"] .nav-item.is-active {
  color: #22243a;
  background:
    linear-gradient(90deg, rgba(95, 99, 242, 0.085), rgba(95, 99, 242, 0.035));
}

body[data-app-theme="light"] .nav-item.is-active::before {
  background: #6467f2;
}

body[data-app-theme="light"] .nav-item.is-active .nav-icon {
  color: #5f63f2;
}

body[data-app-theme="light"] .nav-count {
  background: #eef0f6;
  color: #687087;
}

body[data-app-theme="light"] .sidebar-appearance,
body[data-app-theme="light"] .sidebar-plan,
body[data-app-theme="light"] .sidebar-account {
  border-color: var(--light-line);
}

body[data-app-theme="light"] .sidebar-section-label,
body[data-app-theme="light"] .sidebar-plan p,
body[data-app-theme="light"] .sidebar-account-copy span {
  color: #9197a8;
}

body[data-app-theme="light"] .theme-switcher {
  border-color: #e0e3eb;
  background: #f1f2f6;
}

body[data-app-theme="light"] .theme-option {
  color: #7e8494;
}

body[data-app-theme="light"] .theme-option:hover {
  color: #30334a;
}

body[data-app-theme="light"] .theme-option.is-active {
  background: #ffffff;
  color: #4f55d8;
  box-shadow:
    0 1px 2px rgba(36, 42, 82, 0.08),
    0 0 0 1px rgba(216, 220, 232, 0.72);
}

body[data-app-theme="light"] .sidebar-plan-head span,
body[data-app-theme="light"] .sidebar-account-copy strong {
  color: #363a4f;
}

body[data-app-theme="light"] .sidebar-plan-head strong {
  color: #5f63e7;
}

body[data-app-theme="light"] .plan-track {
  background: #e7e9f0;
}

body[data-app-theme="light"] .plan-track span {
  background: linear-gradient(90deg, #5f63f2, #8d74f5);
}

body[data-app-theme="light"] .account-dot {
  border-color: #dbe0ec;
  background:
    radial-gradient(circle at 35% 35%, #7789ef 0 3px, transparent 4px),
    #eef1fa;
}

body[data-app-theme="light"] .icon-button.subtle {
  color: #6d7488;
}

body[data-app-theme="light"] .workspace-signal-network {
  opacity: 0.72;
}

body[data-app-theme="light"] .workspace-signal-network path {
  stroke: #aeb9ef;
  stroke-width: 0.85;
}

body[data-app-theme="light"] .network-node {
  background: #8293ee;
  box-shadow: 0 0 0 4px rgba(130, 147, 238, 0.12);
}

body[data-app-theme="light"] .network-node.node-c {
  background: #7965f0;
  box-shadow:
    0 0 0 5px rgba(121, 101, 240, 0.16),
    0 0 0 11px rgba(121, 101, 240, 0.055);
}

body[data-app-theme="light"] .network-node.node-d {
  background: #43bdd0;
}

body[data-app-theme="light"] .workspace-header .eyebrow,
body[data-app-theme="light"] .eyebrow {
  color: #5f63e7;
}

body[data-app-theme="light"] .workspace-header h1,
body[data-app-theme="light"] .section-toolbar h2,
body[data-app-theme="light"] .panel-head h2 {
  color: #17182b;
}

body[data-app-theme="light"] .content-panel,
body[data-app-theme="light"] .mini-panel,
body[data-app-theme="light"] .watch-table {
  border-color: var(--light-line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 1px 2px rgba(37, 43, 78, 0.025),
    0 8px 28px rgba(37, 43, 78, 0.025);
}

body[data-app-theme="light"] .overview-side .mini-panel {
  border-color: var(--light-line);
  background: rgba(255, 255, 255, 0.78);
}

body[data-app-theme="light"] .panel-head {
  border-bottom-color: #e8eaf0;
}

body[data-app-theme="light"] .panel-head p,
body[data-app-theme="light"] .section-toolbar p {
  color: #81879a;
}

body[data-app-theme="light"] .text-button {
  color: #5f63e7;
}

body[data-app-theme="light"] .text-button:hover {
  color: #464bd0;
}

body[data-app-theme="light"] .summary-metrics {
  border-color: #e5e8ef;
}

body[data-app-theme="light"] .summary-metric {
  border-color: #e5e8ef;
}

body[data-app-theme="light"] .summary-metric strong {
  color: #1f2134;
}

body[data-app-theme="light"] .summary-metric span {
  color: #858b9c;
}

/* Light signal inbox with node/timeline language */
body[data-app-theme="light"] .signal-inbox {
  position: relative;
}

body[data-app-theme="light"] .signal-inbox::before {
  content: "";
  position: absolute;
  left: 31px;
  top: 17px;
  bottom: 17px;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(95, 99, 242, 0.14),
    rgba(95, 99, 242, 0.05)
  );
  pointer-events: none;
}

body[data-app-theme="light"] .signal-row {
  position: relative;
  border-bottom-color: #eaecf1;
  background: transparent;
}

body[data-app-theme="light"] .signal-row:hover {
  background:
    linear-gradient(
      90deg,
      rgba(95, 99, 242, 0.045),
      rgba(95, 99, 242, 0.018)
    );
}

body[data-app-theme="light"] .signal-row-title strong {
  color: #27293d;
}

body[data-app-theme="light"] .signal-row-meta,
body[data-app-theme="light"] .signal-row-time {
  color: #858b9d;
}

body[data-app-theme="light"] .signal-type-icon {
  z-index: 1;
  box-shadow: 0 0 0 4px #ffffff;
}

body[data-app-theme="light"] .tone-construction {
  color: #5b70e5;
  background: #eef2ff;
}

body[data-app-theme="light"] .tone-business {
  color: #b3791f;
  background: #fff5df;
}

body[data-app-theme="light"] .tone-professional {
  color: #7c5be6;
  background: #f2efff;
}

body[data-app-theme="light"] .tone-neutral {
  color: #139bb1;
  background: #e8f8fb;
}

body[data-app-theme="light"] .signal-category {
  background: color-mix(in srgb, currentColor 7%, white);
  opacity: 1;
}

body[data-app-theme="light"] .quick-watch {
  color: #2d3044;
}

body[data-app-theme="light"] .quick-watch:hover {
  border-color: #e4e6ed;
  background: #f7f8fb;
}

body[data-app-theme="light"] .quick-watch-copy strong {
  color: #2b2e43;
}

body[data-app-theme="light"] .quick-watch-copy span {
  color: #858b9d;
}

body[data-app-theme="light"] .quick-watch-count {
  border-color: #e0e3eb;
  background: #f0f2f7;
  color: #6e7588;
}

body[data-app-theme="light"] .quick-watch-arrow {
  color: #9aa0b0;
}

body[data-app-theme="light"] .watch-row {
  border-bottom-color: #e9ebf1;
}

body[data-app-theme="light"] .watch-row:hover {
  background: #f7f8fb;
}

body[data-app-theme="light"] .watch-row-copy strong,
body[data-app-theme="light"] .watch-signal-cell strong {
  color: #2a2c40;
}

body[data-app-theme="light"] .watch-row-copy span,
body[data-app-theme="light"] .watch-signal-cell span {
  color: #858b9a;
}

body[data-app-theme="light"] .keyword {
  border-color: #dfe2e9;
  background: #f2f4f8;
  color: #6f7689;
}

body[data-app-theme="light"] .pill-active {
  background: #e9f8f0;
  color: #16945b;
}

body[data-app-theme="light"] .pill-paused {
  background: #fff4dd;
  color: #a96d15;
}

body[data-app-theme="light"] .button-primary {
  border-color: #5f63f2;
  background: linear-gradient(180deg, #6c6ff7, #565bea);
  color: #ffffff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 5px 14px rgba(83, 88, 228, 0.18);
}

body[data-app-theme="light"] .button-primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #777af8, #6065ee);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 7px 18px rgba(83, 88, 228, 0.22);
}

body[data-app-theme="light"] .button-secondary,
body[data-app-theme="light"] .icon-button,
body[data-app-theme="light"] .menu-trigger {
  border-color: #dfe2e9;
  background: #ffffff;
  color: #61687a;
}

body[data-app-theme="light"] .button-secondary:hover:not(:disabled),
body[data-app-theme="light"] .icon-button:hover,
body[data-app-theme="light"] .menu-trigger:hover {
  background: #f4f5f8;
}

body[data-app-theme="light"] input,
body[data-app-theme="light"] select {
  border-color: #dfe2e9;
  background: #ffffff;
  color: #25273a;
}

body[data-app-theme="light"] input:focus,
body[data-app-theme="light"] select:focus {
  border-color: #8a90ee;
  box-shadow: 0 0 0 3px rgba(95, 99, 242, 0.09);
}

body[data-app-theme="light"] .field-label,
body[data-app-theme="light"] label {
  color: #45495f;
}

body[data-app-theme="light"] small {
  color: #8e94a5;
}

body[data-app-theme="light"] .coverage-card {
  border-color: #dce1fa;
  background:
    linear-gradient(135deg, rgba(95, 99, 242, 0.055), transparent 72%),
    #fafbff;
}

body[data-app-theme="light"] .coverage-card strong {
  color: #292c43;
}

body[data-app-theme="light"] .coverage-card > span:last-child {
  color: #777e92;
}

body[data-app-theme="light"] .modal-backdrop,
body[data-app-theme="light"] .drawer-backdrop {
  background: rgba(30, 33, 54, 0.22);
  backdrop-filter: blur(7px);
}

body[data-app-theme="light"] .modal-card,
body[data-app-theme="light"] .signal-drawer {
  border-color: #dfe2ea;
  background: #ffffff;
  color: #25273a;
  box-shadow: 0 28px 80px rgba(35, 41, 78, 0.18);
}

body[data-app-theme="light"] .modal-heading,
body[data-app-theme="light"] .drawer-head,
body[data-app-theme="light"] .builder-step,
body[data-app-theme="light"] .builder-footer,
body[data-app-theme="light"] .advanced-options {
  border-color: #e7e9ef;
}

body[data-app-theme="light"] .modal-heading h2,
body[data-app-theme="light"] .drawer-head h2,
body[data-app-theme="light"] .step-heading h3,
body[data-app-theme="light"] .builder-footer strong {
  color: #24263a;
}

body[data-app-theme="light"] .modal-heading p:last-child,
body[data-app-theme="light"] .step-heading p,
body[data-app-theme="light"] .builder-footer p {
  color: #858b9c;
}

body[data-app-theme="light"] .step-number {
  border-color: #d8ddfb;
  background: #f1f3ff;
  color: #5e63e8;
}

body[data-app-theme="light"] .advanced-options summary {
  color: #697084;
}

body[data-app-theme="light"] .drawer-field {
  border-color: #e7e9ef;
}

body[data-app-theme="light"] .drawer-field span,
body[data-app-theme="light"] .drawer-section-title {
  color: #8b91a2;
}

body[data-app-theme="light"] .drawer-field strong {
  color: #303347;
}

body[data-app-theme="light"] .drawer-source {
  color: #5f63e7;
}

body[data-app-theme="light"] .menu-popover {
  border-color: #dfe2e9;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(35, 41, 78, 0.14);
}

body[data-app-theme="light"] .menu-popover button {
  color: #50566a;
}

body[data-app-theme="light"] .menu-popover button:hover {
  background: #f3f4f8;
}

body[data-app-theme="light"] .empty-state {
  border-color: #dfe2ea;
  background: rgba(255, 255, 255, 0.68);
}

body[data-app-theme="light"] .empty-state h3,
body[data-app-theme="light"] .inline-empty strong {
  color: #303347;
}

body[data-app-theme="light"] .empty-state p,
body[data-app-theme="light"] .inline-empty {
  color: #858b9d;
}

body[data-app-theme="light"] .empty-icon,
body[data-app-theme="light"] .inline-empty-icon {
  border-color: #dde2fb;
  background: #f2f4ff;
  color: #6d70e9;
}

@media (max-width: 760px) {
  .sidebar-appearance {
    display: none;
  }

  .workspace-signal-network {
    width: 78%;
    right: -24px;
    opacity: 0.08;
  }

  body[data-app-theme="light"] .workspace-signal-network {
    opacity: 0.34;
  }
}


/* Reference UI match — authenticated app */
.workspace-subtitle {
  margin: 7px 0 0;
  color: #777e92;
  font-size: 0.86rem;
  line-height: 1.5;
  letter-spacing: 0.008em;
}

.overview-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.overview-stat-card {
  position: relative;
  min-height: 118px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 17px 18px;
}

.overview-stat-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
}

.overview-stat-icon svg,
.panel-mini-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.overview-stat-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.overview-stat-copy > span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 500;
}

.overview-stat-copy strong {
  color: var(--text);
  font-size: 1.48rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.overview-stat-copy small {
  margin: 0;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.35;
}

.stat-positive,
.stat-growth {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stat-positive i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--success);
}

.stat-growth {
  color: var(--success) !important;
}

.overview-stat-chevron {
  position: absolute;
  right: 16px;
  top: 50%;
  color: var(--subtle);
  font-size: 1.25rem;
  transform: translateY(-50%);
}

.panel-title-with-icon {
  display: flex;
  align-items: center;
  gap: 11px;
}

.panel-mini-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.panel-mini-icon svg {
  width: 17px;
  height: 17px;
}

.status-panel-head {
  align-items: flex-start;
}

.account-active-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  color: var(--success);
  font-size: 0.62rem;
  font-weight: 600;
  white-space: nowrap;
}

.account-active-badge i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.status-list {
  display: grid;
  padding-top: 3px;
}

.status-list > div {
  min-height: 39px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--border);
}

.status-list > div:first-child {
  border-top: 0;
}

.status-list span {
  color: var(--muted);
  font-size: 0.69rem;
}

.status-list strong {
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 600;
  text-align: right;
}

.quick-watches-panel .panel-head.compact {
  margin-bottom: 5px;
}

@media (max-width: 1180px) {
  .overview-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .overview-stats {
    grid-template-columns: 1fr;
  }
}

/* Light reference theme */
body[data-app-theme="light"] {
  --light-canvas: #f8f9fd;
  --light-sidebar: #fbfcff;
  --light-surface: #ffffff;
  --light-surface-soft: #f6f7fc;
  --light-surface-hover: #f3f5fb;
  --light-line: #e5e8f0;
  --light-line-strong: #d8dde8;
  --light-text: #12162d;
  --light-text-soft: #65708c;
  --light-text-faint: #8d96ab;
  --light-accent: #5d5cf3;
  --light-accent-2: #7359f0;
  --light-cyan: #0eb6d1;
  --light-green: #16ad68;
  background: var(--light-canvas);
}

body[data-app-theme="light"] .app-shell {
  grid-template-columns: 248px minmax(0, 1fr);
  background:
    radial-gradient(circle at 78% 0%, rgba(103, 92, 244, 0.045), transparent 35rem),
    #f8f9fd;
}

body[data-app-theme="light"] .sidebar {
  padding: 24px 14px 14px;
  border-right-color: #e2e6ef;
  background:
    linear-gradient(180deg, rgba(101, 103, 242, 0.018), transparent 32%),
    #fbfcff;
}

body[data-app-theme="light"] .sidebar-brand {
  margin: 0 10px 28px;
  gap: 12px;
  color: #15182d;
  font-size: 1.04rem;
  font-weight: 650;
  letter-spacing: -0.006em;
}

body[data-app-theme="light"] .sidebar-brand .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

body[data-app-theme="light"] .sidebar-nav {
  gap: 5px;
}

body[data-app-theme="light"] .nav-item {
  min-height: 48px;
  border-radius: 11px;
  padding-inline: 13px;
  color: #59627b;
  font-size: 0.79rem;
  font-weight: 530;
}

body[data-app-theme="light"] .nav-item::before {
  display: none;
}

body[data-app-theme="light"] .nav-item:hover {
  background: #f1f3fa;
  color: #30364c;
}

body[data-app-theme="light"] .nav-item.is-active {
  background:
    linear-gradient(90deg, rgba(92, 94, 243, 0.105), rgba(92, 94, 243, 0.055));
  color: #252940;
  box-shadow: 0 1px 2px rgba(68, 72, 122, 0.025);
}

body[data-app-theme="light"] .nav-icon {
  color: #62749b;
}

body[data-app-theme="light"] .nav-item.is-active .nav-icon {
  color: #5d5cf3;
}

body[data-app-theme="light"] .nav-count {
  min-width: 25px;
  background: #eef1f7;
  padding: 4px 7px;
  color: #5f6981;
  font-size: 0.66rem;
}

body[data-app-theme="light"] .sidebar-appearance {
  margin-inline: 2px;
  padding-inline: 7px;
}

body[data-app-theme="light"] .sidebar-section-label {
  display: none;
}

body[data-app-theme="light"] .theme-switcher {
  width: 84px;
  margin-left: auto;
  border-color: #e0e4ec;
  background: #eef1f6;
}

body[data-app-theme="light"] .theme-option {
  min-height: 27px;
}

body[data-app-theme="light"] .theme-option > span {
  display: none;
}

body[data-app-theme="light"] .sidebar-plan {
  margin: 0 0 14px;
  border: 1px solid #e3e7ef;
  border-radius: 11px;
  background: #ffffff;
  padding: 14px 12px 12px;
  box-shadow: 0 4px 18px rgba(52, 61, 97, 0.025);
}

body[data-app-theme="light"] .sidebar-account {
  margin: 0;
  border: 1px solid #e3e7ef;
  border-radius: 11px;
  background: #ffffff;
  padding: 10px 11px;
  box-shadow: 0 4px 18px rgba(52, 61, 97, 0.025);
}

body[data-app-theme="light"] .workspace {
  max-width: none;
  padding: 30px 26px 64px 28px;
}

body[data-app-theme="light"] .workspace-header {
  min-height: 128px;
  align-items: flex-start;
  margin-bottom: 4px;
  padding-top: 4px;
}

body[data-app-theme="light"] .workspace-header h1 {
  color: #12162d;
  font-size: clamp(2.35rem, 3.4vw, 3.05rem);
  font-weight: 630;
  line-height: 1;
  letter-spacing: -0.025em;
}

body[data-app-theme="light"] .workspace-header .eyebrow {
  margin-bottom: 9px;
  color: #605ff0;
  font-size: 0.64rem;
  letter-spacing: 0.13em;
}

body[data-app-theme="light"] .workspace-subtitle {
  max-width: 680px;
  margin-top: 10px;
  color: #6f7891;
  font-size: 0.9rem;
}

body[data-app-theme="light"] #new-watch-button {
  min-height: 44px;
  margin-top: 8px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(180deg, #6d63f6, #5454df);
  padding-inline: 18px;
  font-size: 0.75rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.32) inset,
    0 8px 22px rgba(79, 78, 221, 0.22);
}

body[data-app-theme="light"] .workspace-signal-network {
  top: -8px;
  right: 24px;
  width: min(680px, 58%);
  height: 170px;
  opacity: 0.8;
}

body[data-app-theme="light"] .workspace-signal-network path {
  stroke: #b9c3f3;
  stroke-width: 0.8;
  stroke-dasharray: 2 5;
}

body[data-app-theme="light"] .network-node.node-c {
  width: 14px;
  height: 14px;
  box-shadow:
    0 0 0 5px rgba(105, 100, 239, 0.20),
    0 0 0 10px rgba(105, 100, 239, 0.06),
    0 0 24px rgba(105, 100, 239, 0.16);
}

body[data-app-theme="light"] .overview-stats {
  gap: 14px;
  margin-bottom: 20px;
}

body[data-app-theme="light"] .overview-stat-card {
  min-height: 124px;
  border-color: #e1e5ed;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 253, 255, 0.95));
  box-shadow:
    0 1px 2px rgba(41, 48, 82, 0.03),
    0 8px 28px rgba(41, 48, 82, 0.025);
}

body[data-app-theme="light"] .overview-stat-icon {
  color: #5d6de6;
  background: #eef2ff;
}

body[data-app-theme="light"] .stat-signal-card .overview-stat-icon {
  color: #03a9c8;
  background: #e6f8fb;
}

body[data-app-theme="light"] .stat-coverage-card .overview-stat-icon {
  color: #755cf0;
  background: #f0edff;
}

body[data-app-theme="light"] .stat-plan-card .overview-stat-icon {
  color: #12aa68;
  background: #e7f8f0;
}

body[data-app-theme="light"] .overview-stat-copy > span {
  color: #64708c;
}

body[data-app-theme="light"] .overview-stat-copy strong {
  color: #14172d;
}

body[data-app-theme="light"] .overview-stat-copy small {
  color: #7d879f;
}

body[data-app-theme="light"] .stat-positive {
  color: #65708b !important;
}

body[data-app-theme="light"] .stat-growth {
  color: #16a962 !important;
}

body[data-app-theme="light"] .overview-stat-chevron {
  color: #a2aac0;
}

body[data-app-theme="light"] .overview-grid {
  grid-template-columns: minmax(0, 2.6fr) minmax(290px, 1fr);
  gap: 16px;
}

body[data-app-theme="light"] .content-panel,
body[data-app-theme="light"] .mini-panel,
body[data-app-theme="light"] .watch-table {
  border-color: #e1e5ed;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 1px 2px rgba(41, 48, 82, 0.025),
    0 9px 30px rgba(41, 48, 82, 0.025);
}

body[data-app-theme="light"] .overview-side {
  gap: 14px;
}

body[data-app-theme="light"] .overview-side .mini-panel {
  border-color: #e1e5ed;
  background: #ffffff;
}

body[data-app-theme="light"] .panel-head {
  min-height: 88px;
  padding: 18px 20px;
  border-bottom-color: #e8ebf1;
}

body[data-app-theme="light"] .panel-head.compact {
  min-height: 0;
  padding: 0 0 13px;
}

body[data-app-theme="light"] .panel-head h2 {
  color: #15182d;
  font-size: 1.04rem;
  font-weight: 620;
}

body[data-app-theme="light"] .panel-head p {
  margin-top: 4px;
  color: #7a849d;
  font-size: 0.71rem;
}

body[data-app-theme="light"] .text-button {
  color: #615ff0;
  font-weight: 600;
}

body[data-app-theme="light"] .overview-signals .panel-head h2::before {
  content: "〽";
  display: inline-block;
  margin-right: 10px;
  color: #6764f2;
  font-size: 1.05rem;
  transform: translateY(-1px);
}

body[data-app-theme="light"] .signal-inbox::before {
  left: 18px;
  top: 22px;
  bottom: 22px;
  background: linear-gradient(
    180deg,
    rgba(91, 96, 232, 0.19),
    rgba(91, 96, 232, 0.07)
  );
}

body[data-app-theme="light"] .signal-row {
  min-height: 78px;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 13px;
  margin: 0 10px;
  width: calc(100% - 20px);
  border-bottom-color: #e9ecf2;
  padding: 12px 8px 12px 11px;
}

body[data-app-theme="light"] .signal-row:first-child {
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(98, 95, 239, 0.065), rgba(98, 95, 239, 0.03));
}

body[data-app-theme="light"] .signal-row:hover {
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(98, 95, 239, 0.075), rgba(98, 95, 239, 0.035));
}

body[data-app-theme="light"] .signal-type-icon {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  box-shadow: none;
}

body[data-app-theme="light"] .signal-type-icon::before {
  content: "";
  position: absolute;
  left: -18px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #b9c4df;
  box-shadow: 0 0 0 3px #ffffff;
}

body[data-app-theme="light"] .signal-row:first-child .signal-type-icon::before {
  background: #635ff0;
  box-shadow:
    0 0 0 3px #ffffff,
    0 0 0 6px rgba(99, 95, 240, 0.07);
}

body[data-app-theme="light"] .signal-type-icon svg {
  width: 19px;
  height: 19px;
}

body[data-app-theme="light"] .signal-row-title strong {
  color: #171a2f;
  font-size: 0.73rem;
  font-weight: 600;
}

body[data-app-theme="light"] .signal-row-meta {
  margin-top: 5px;
  color: #74809a;
  font-size: 0.67rem;
}

body[data-app-theme="light"] .signal-category {
  min-height: 23px;
  border: 0;
  background: #eeedff;
  padding: 4px 10px;
  color: #5e61c7;
  font-size: 0.58rem !important;
  font-weight: 500;
}

body[data-app-theme="light"] .signal-category::before {
  content: "●";
  margin-right: 5px;
  color: #736bf4;
  font-size: 0.48rem;
}

body[data-app-theme="light"] .signal-row-time {
  min-width: 48px;
  color: #7d879e;
  font-size: 0.64rem;
  text-align: right;
}

body[data-app-theme="light"] .account-status-panel,
body[data-app-theme="light"] .quick-watches-panel {
  padding: 20px;
}

body[data-app-theme="light"] .panel-mini-icon {
  color: #5f63e7;
  background: #f0f1ff;
}

body[data-app-theme="light"] .panel-mini-icon-violet {
  color: #675ef0;
  background: #efedff;
}

body[data-app-theme="light"] .account-active-badge {
  color: #12a761;
}

body[data-app-theme="light"] .status-list > div {
  min-height: 39px;
  border-color: #e9ecf2;
}

body[data-app-theme="light"] .status-list span {
  color: #65718d;
}

body[data-app-theme="light"] .status-list strong {
  color: #1f2238;
}

body[data-app-theme="light"] .quick-watch-list {
  gap: 0;
  border-top: 1px solid #e9ecf2;
}

body[data-app-theme="light"] .quick-watch {
  min-height: 68px;
  border: 0;
  border-bottom: 1px solid #e9ecf2;
  border-radius: 0;
  padding: 10px 4px;
}

body[data-app-theme="light"] .quick-watch:last-child {
  border-bottom: 0;
}

body[data-app-theme="light"] .quick-watch:hover {
  background: #f8f9fc;
  transform: none;
}

body[data-app-theme="light"] .quick-watch-icon {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 11px;
  background: #eef2ff;
  color: #5a70e8;
}

body[data-app-theme="light"] .quick-watch-copy strong {
  color: #1d2035;
  font-size: 0.7rem;
  font-weight: 600;
}

body[data-app-theme="light"] .quick-watch-copy span {
  color: #7b859c;
}

body[data-app-theme="light"] .quick-watch-count {
  min-width: 28px;
  border: 0;
  background: #eef1f7;
  padding: 5px 7px;
  color: #536078;
}

body[data-app-theme="light"] .quick-watch-arrow {
  color: #8f99af;
}

@media (max-width: 1220px) {
  body[data-app-theme="light"] .app-shell {
    grid-template-columns: 215px minmax(0, 1fr);
  }

  body[data-app-theme="light"] .overview-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-app-theme="light"] .overview-grid {
    grid-template-columns: 1fr;
  }

  body[data-app-theme="light"] .overview-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body[data-app-theme="light"] .app-shell {
    display: block;
  }

  body[data-app-theme="light"] .workspace {
    padding: 24px 15px 64px;
  }

  body[data-app-theme="light"] .workspace-header {
    min-height: 0;
    margin-bottom: 20px;
  }

  body[data-app-theme="light"] .workspace-header h1 {
    font-size: 2rem;
  }

  body[data-app-theme="light"] .workspace-subtitle {
    font-size: 0.78rem;
  }

  body[data-app-theme="light"] .overview-side {
    grid-template-columns: 1fr;
  }

  body[data-app-theme="light"] .signal-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }
}


/* Landing — light Signal identity */
.marketing-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 4%, rgba(102, 96, 242, 0.065), transparent 28rem),
    radial-gradient(circle at 18% 34%, rgba(17, 169, 195, 0.045), transparent 24rem),
    #f8f9fd;
  color: #14172d;
}

.marketing-shell .landing-nav {
  width: min(1180px, calc(100% - 40px));
  height: 72px;
  border-bottom-color: rgba(224, 228, 238, 0.88);
  background: rgba(248, 249, 253, 0.86);
  backdrop-filter: blur(18px);
}

.marketing-shell .auth-brand {
  color: #171a30;
  font-size: 0.96rem;
  font-weight: 650;
  letter-spacing: -0.006em;
}

.marketing-shell .brand-mark {
  border-color: #dbe0ec;
  background:
    linear-gradient(145deg, rgba(95, 99, 242, 0.08), rgba(17, 169, 195, 0.045)),
    #ffffff;
  box-shadow:
    0 1px 2px rgba(35, 42, 80, 0.05),
    0 0 0 1px rgba(255, 255, 255, 0.7) inset;
}

.marketing-shell .landing-links {
  gap: 22px;
}

.marketing-shell .landing-links a {
  color: #6f7890;
  font-size: 0.72rem;
  font-weight: 520;
}

.marketing-shell .landing-links a:hover {
  color: #282d46;
}

.marketing-shell .landing-login-link {
  border-color: #dfe3ec;
  background: #ffffff;
  color: #31364f !important;
  box-shadow: 0 1px 2px rgba(40, 46, 78, 0.035);
}

.marketing-shell .landing-main {
  position: relative;
}

.marketing-shell .landing-hero {
  position: relative;
  min-height: 720px;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  gap: 74px;
  padding: 84px 0 78px;
}

.landing-node-network {
  position: absolute;
  z-index: 0;
  inset: 8px -20px auto 30%;
  height: 470px;
  overflow: hidden;
  opacity: 0.78;
  pointer-events: none;
}

.landing-node-network svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.landing-node-network path {
  fill: none;
  stroke: #c6cef4;
  stroke-width: 1;
  stroke-dasharray: 2 6;
}

.landing-node {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #8d9af1;
  box-shadow: 0 0 0 4px rgba(141, 154, 241, 0.11);
}

.landing-node.node-1 { left: 20%; top: 61%; }
.landing-node.node-2 { left: 37%; top: 33%; }
.landing-node.node-3 {
  left: 54%;
  top: 48%;
  width: 15px;
  height: 15px;
  background: #6b63ed;
  box-shadow:
    0 0 0 5px rgba(107, 99, 237, 0.20),
    0 0 0 11px rgba(107, 99, 237, 0.055),
    0 0 28px rgba(107, 99, 237, 0.18);
}
.landing-node.node-4 { left: 69%; top: 22%; background: #54bfd0; }
.landing-node.node-5 { left: 84%; top: 58%; background: #a38eea; }
.landing-node.node-6 { left: 92%; top: 31%; }

.marketing-shell .hero-copy,
.marketing-shell .hero-product {
  position: relative;
  z-index: 2;
}

.marketing-shell .hero-copy {
  max-width: 620px;
}

.marketing-shell .hero-copy .eyebrow,
.marketing-shell .landing-section .eyebrow,
.marketing-shell .landing-value .eyebrow,
.marketing-shell .access-copy .eyebrow,
.marketing-shell .auth-card .eyebrow {
  color: #605ff0;
}

.marketing-shell .hero-copy h1 {
  max-width: 720px;
  margin-bottom: 24px;
  color: #11152d;
  font-size: clamp(3.35rem, 5.9vw, 6.1rem);
  font-weight: 620;
  line-height: 0.97;
  letter-spacing: -0.045em;
}

.marketing-shell .hero-lead {
  max-width: 590px;
  color: #69738e;
  font-size: 1rem;
  line-height: 1.7;
}

.marketing-shell .hero-actions .button {
  min-height: 44px;
  border-radius: 9px;
  padding-inline: 17px;
  font-size: 0.75rem;
}

.marketing-shell .button-primary {
  border-color: #5f63f2;
  background: linear-gradient(180deg, #6f68f7, #5557df);
  color: #ffffff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 8px 22px rgba(77, 79, 214, 0.20);
}

.marketing-shell .button-primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #7771f8, #5e60e8);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.34) inset,
    0 10px 26px rgba(77, 79, 214, 0.23);
}

.marketing-shell .button-secondary {
  border-color: #dfe3ec;
  background: #ffffff;
  color: #343a51;
  box-shadow: 0 1px 2px rgba(40, 46, 78, 0.03);
}

.marketing-shell .button-secondary:hover:not(:disabled) {
  background: #f7f8fb;
}

.marketing-shell .hero-note {
  color: #7d879c;
}

.marketing-shell .hero-note-dot {
  background: #16ad68;
  box-shadow: 0 0 0 4px rgba(22, 173, 104, 0.08);
}

.hero-micro-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-top: 22px;
}

.hero-micro-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: #7d879a;
  font-size: 0.66rem;
}

.hero-micro-stats strong {
  color: #303650;
  font-size: 0.72rem;
  font-weight: 650;
}

/* Product preview */
.marketing-shell .preview-window {
  border-color: #dde2ec;
  border-radius: 16px;
  background: #ffffff;
  box-shadow:
    0 32px 90px rgba(53, 62, 102, 0.13),
    0 0 0 1px rgba(255, 255, 255, 0.9) inset;
}

.marketing-shell .preview-toolbar {
  border-bottom-color: #e8ebf1;
  background: #fbfcff;
}

.marketing-shell .preview-brand {
  color: #272b42;
}

.marketing-shell .preview-live {
  border-color: rgba(22, 173, 104, 0.18);
  background: #eaf8f1;
  color: #15965a;
}

.marketing-shell .preview-body {
  grid-template-columns: 126px minmax(0, 1fr);
  background: #ffffff;
}

.marketing-shell .preview-sidebar {
  border-right-color: #e7eaf0;
  background: #fbfcff;
}

.marketing-shell .preview-sidebar span {
  color: #8992a7;
}

.marketing-shell .preview-sidebar .preview-nav-active {
  background: linear-gradient(
    90deg,
    rgba(95, 99, 242, 0.095),
    rgba(95, 99, 242, 0.04)
  );
  color: #3a4057;
}

.marketing-shell .preview-content {
  position: relative;
  background:
    radial-gradient(circle at 80% 0%, rgba(95, 99, 242, 0.035), transparent 15rem),
    #ffffff;
}

.marketing-shell .preview-title-row small {
  color: #6564e8;
}

.marketing-shell .preview-title-row strong {
  color: #20243a;
}

.marketing-shell .preview-title-row > span {
  color: #9299aa;
}

.marketing-shell .preview-content::before {
  content: "";
  position: absolute;
  left: 34px;
  top: 86px;
  bottom: 26px;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(95, 99, 242, 0.18),
    rgba(95, 99, 242, 0.045)
  );
}

.marketing-shell .preview-signal {
  position: relative;
  min-height: 78px;
  border-top-color: #eceef3;
}

.marketing-shell .preview-signal.is-current {
  margin-inline: -8px;
  border-radius: 10px;
  background: linear-gradient(
    90deg,
    rgba(95, 99, 242, 0.06),
    rgba(95, 99, 242, 0.018)
  );
  padding-inline: 8px;
}

.preview-timeline-node {
  position: absolute;
  z-index: 3;
  left: -18px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #b9c3dc;
  box-shadow: 0 0 0 3px #ffffff;
}

.preview-signal.is-current .preview-timeline-node {
  background: #625ff0;
  box-shadow:
    0 0 0 3px #ffffff,
    0 0 0 6px rgba(98, 95, 240, 0.07);
}

.marketing-shell .preview-icon {
  border: 0;
  border-radius: 10px;
}

.marketing-shell .preview-icon svg,
.marketing-shell .how-icon svg,
.marketing-shell .coverage-home-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.marketing-shell .preview-blue {
  color: #5e72e7;
  background: #edf2ff;
}

.marketing-shell .preview-amber {
  color: #ad771f;
  background: #fff4de;
}

.marketing-shell .preview-violet {
  color: #7659e4;
  background: #f0edff;
}

.marketing-shell .preview-signal strong {
  color: #31364b;
}

.marketing-shell .preview-signal span,
.marketing-shell .preview-signal time {
  color: #8991a4;
}

.marketing-shell .preview-glow-one {
  background: #8c92f5;
  opacity: 0.18;
}

.marketing-shell .preview-glow-two {
  background: #6fc1cf;
  opacity: 0.14;
}

/* Sections */
.marketing-shell .landing-section,
.marketing-shell .landing-value,
.marketing-shell .access-section {
  border-top-color: #e3e7ef;
}

.marketing-shell .landing-section-head h2,
.marketing-shell .landing-value h2,
.marketing-shell .access-copy h2 {
  color: #171b31;
}

.marketing-shell .landing-section-head > p:last-child,
.marketing-shell .access-copy > p {
  color: #737d94;
}

.marketing-shell .how-grid,
.marketing-shell .coverage-grid {
  gap: 14px;
}

.marketing-shell .how-card,
.marketing-shell .coverage-home-card {
  border-color: #e0e4ed;
  background:
    linear-gradient(160deg, rgba(96, 99, 242, 0.025), transparent 58%),
    #ffffff;
  box-shadow:
    0 1px 2px rgba(40, 48, 82, 0.025),
    0 9px 28px rgba(40, 48, 82, 0.025);
}

.marketing-shell .how-card {
  min-height: 260px;
}

.marketing-shell .how-number {
  color: #a2a9b8;
}

.marketing-shell .how-icon,
.marketing-shell .coverage-home-icon {
  border: 0;
  border-radius: 11px;
}

.marketing-shell .how-card h3,
.marketing-shell .coverage-home-card h3 {
  color: #20243a;
}

.marketing-shell .how-card p,
.marketing-shell .coverage-home-card p {
  color: #7c859a;
}

.marketing-shell .coverage-home-card > div:last-child > span {
  color: #9299aa;
}

.marketing-shell .coverage-home-card:hover,
.marketing-shell .how-card:hover {
  border-color: #d4d9e7;
  background:
    linear-gradient(160deg, rgba(96, 99, 242, 0.04), transparent 58%),
    #ffffff;
  transform: translateY(-2px);
  box-shadow:
    0 2px 4px rgba(40, 48, 82, 0.035),
    0 14px 38px rgba(40, 48, 82, 0.05);
}

.marketing-shell .how-card,
.marketing-shell .coverage-home-card {
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.marketing-shell .beta-pill {
  border-color: rgba(95, 99, 242, 0.16);
  background: rgba(95, 99, 242, 0.065);
  color: #6264dd;
}

.marketing-shell .landing-value {
  position: relative;
}

.marketing-shell .landing-value::after {
  content: "";
  position: absolute;
  right: 0;
  top: 26px;
  width: 220px;
  height: 150px;
  opacity: 0.45;
  background:
    radial-gradient(circle at 18% 68%, #8191ec 0 4px, transparent 5px),
    radial-gradient(circle at 58% 34%, #6fc2d0 0 4px, transparent 5px),
    radial-gradient(circle at 82% 70%, #a38dea 0 5px, transparent 6px);
  pointer-events: none;
}

.marketing-shell .value-points {
  border-top-color: #e3e7ef;
}

.marketing-shell .value-points > div {
  border-bottom-color: #e3e7ef;
}

.marketing-shell .value-points strong {
  color: #2c3149;
}

.marketing-shell .value-points span {
  color: #7d879a;
}

/* Access */
.marketing-shell .access-section {
  position: relative;
}

.marketing-shell .access-section::before {
  content: "";
  position: absolute;
  inset: 28px -28px;
  z-index: 0;
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 15%, rgba(95, 99, 242, 0.055), transparent 18rem),
    radial-gradient(circle at 88% 72%, rgba(17, 169, 195, 0.04), transparent 18rem);
  pointer-events: none;
}

.marketing-shell .access-copy,
.marketing-shell .home-auth-card {
  position: relative;
  z-index: 1;
}

.marketing-shell .access-checks {
  color: #747e94;
}

.marketing-shell .home-auth-card {
  border-color: #dde2ec;
  background: #ffffff;
  box-shadow:
    0 24px 70px rgba(43, 52, 91, 0.10),
    0 0 0 1px rgba(255, 255, 255, 0.85) inset;
}

.marketing-shell .auth-card-heading h2 {
  color: #20243a;
}

.marketing-shell .auth-card-heading p:last-child {
  color: #7d869a;
}

.marketing-shell .google-auth-button {
  border-color: #dfe3ec;
  background: #ffffff;
  color: #292e45;
  box-shadow: 0 1px 2px rgba(40, 46, 78, 0.04);
}

.marketing-shell .google-auth-button:hover {
  background: #f7f8fb;
}

.marketing-shell .auth-divider::before {
  background: #e5e8ef;
}

.marketing-shell .auth-divider span {
  background: #ffffff;
  color: #9aa1b1;
}

.marketing-shell .field-label {
  color: #50576c;
}

.marketing-shell input {
  border-color: #dfe3ec;
  background: #ffffff;
  color: #25293e;
}

.marketing-shell input:focus {
  border-color: #8a8fee;
  box-shadow: 0 0 0 3px rgba(95, 99, 242, 0.09);
}

.marketing-shell .status-message {
  color: #5f63e7;
}

.marketing-shell .landing-footer {
  border-top-color: #e3e7ef;
  color: #8b93a6;
}

.marketing-shell .landing-footer .auth-brand {
  color: #33384f;
}

/* Landing responsive */
@media (max-width: 1040px) {
  .marketing-shell .landing-hero {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .landing-node-network {
    inset: 10px -10px auto 22%;
    opacity: 0.56;
  }

  .marketing-shell .hero-product {
    width: min(780px, 100%);
  }
}

@media (max-width: 680px) {
  .marketing-shell .landing-nav {
    height: 64px;
  }

  .marketing-shell .hero-copy h1 {
    font-size: clamp(2.8rem, 13vw, 4.4rem);
  }

  .landing-node-network {
    left: 0;
    right: -120px;
    top: -15px;
    opacity: 0.34;
  }

  .hero-micro-stats {
    display: grid;
    gap: 7px;
  }

  .marketing-shell .preview-body {
    grid-template-columns: 1fr;
  }

  .marketing-shell .preview-sidebar {
    display: none;
  }

  .marketing-shell .preview-content {
    padding: 16px;
  }

  .marketing-shell .preview-content::before {
    left: 31px;
  }
}


/* Opportunity detail drawer — actionable signal view */
.signal-drawer {
  width: min(920px, 96vw);
  padding: 0;
}

.drawer-head {
  position: sticky;
  z-index: 3;
  top: 0;
  margin: 0;
  background: rgba(16, 16, 18, 0.96);
  backdrop-filter: blur(16px);
  padding: 24px 28px 20px;
}

.drawer-content {
  gap: 18px;
  padding: 20px 28px 34px;
}

.opportunity-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #777f8b;
  font-size: 0.67rem;
}

.opportunity-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--success);
  font-size: 0.61rem;
  font-weight: 750;
  letter-spacing: 0.07em;
}

.opportunity-status i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(111, 214, 160, 0.08);
}

.opportunity-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(310px, 0.84fr);
  gap: 18px;
  align-items: start;
}

.opportunity-column {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.drawer-card {
  min-width: 0;
  display: grid;
  gap: 14px;
  border: 1px solid #29292e;
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent),
    #111113;
  padding: 17px;
}

.drawer-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.drawer-card-heading > a {
  color: var(--blue);
  font-size: 0.67rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.drawer-card-heading > a:hover {
  text-decoration: underline;
}

.opportunity-summary {
  margin: 0;
  color: #d7dae0;
  font-size: 0.84rem;
  line-height: 1.65;
}

.match-card {
  border-color: rgba(142, 162, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(142, 162, 255, 0.075), transparent 70%),
    #111113;
}

.match-confidence {
  border: 1px solid rgba(111, 214, 160, 0.2);
  border-radius: 999px;
  background: rgba(111, 214, 160, 0.07);
  padding: 4px 7px;
  color: var(--success);
  font-size: 0.57rem;
  font-weight: 650;
}

.match-reason {
  margin: 0;
  color: #c5c9d2;
  font-size: 0.76rem;
  line-height: 1.62;
}

.match-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.match-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid #303035;
  border-radius: 999px;
  background: #17171a;
  padding: 4px 8px;
  color: #9da3ae;
  font-size: 0.61rem;
  line-height: 1;
}

.excluded-tags span {
  color: #b78b92;
}

.match-tags em {
  color: #777e89;
  font-size: 0.66rem;
  font-style: normal;
}

.drawer-detail-list {
  display: grid;
}

.drawer-detail-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.34fr) minmax(0, 0.66fr);
  gap: 18px;
  border-top: 1px solid #242429;
  padding: 10px 0;
}

.drawer-detail-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.drawer-detail-row:last-child {
  padding-bottom: 0;
}

.drawer-detail-row span {
  color: #777f8b;
  font-size: 0.65rem;
}

.drawer-detail-row strong {
  color: #d8dbe1;
  font-size: 0.72rem;
  font-weight: 560;
  line-height: 1.5;
  word-break: break-word;
}

.verification-grid,
.watch-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 14px;
}

.verification-grid > div,
.watch-settings-grid > div {
  display: grid;
  gap: 4px;
  border-top: 1px solid #242429;
  padding-top: 9px;
}

.verification-grid span,
.watch-settings-grid span,
.contact-info-list span,
.watch-filter-block > span {
  color: #777f8b;
  font-size: 0.63rem;
}

.verification-grid strong,
.watch-settings-grid strong,
.contact-info-list strong {
  color: #d5d9df;
  font-size: 0.7rem;
  font-weight: 560;
  line-height: 1.45;
  word-break: break-word;
}

.verification-state {
  font-size: 0.58rem;
  font-weight: 650;
  white-space: nowrap;
}

.verification-checking {
  color: var(--warning);
}

.verification-verified {
  color: var(--success);
}

.verification-unavailable {
  color: #8b919d;
}

.location-card {
  overflow: hidden;
}

.drawer-map {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid #29292e;
  border-radius: 10px;
  background: #0d0d0f;
}

.drawer-map iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  filter: saturate(0.88) contrast(0.96);
}

.location-address {
  margin: -2px 0 0;
  color: #8b919c;
  font-size: 0.67rem;
  line-height: 1.5;
}

.contact-info-list {
  display: grid;
  border-top: 1px solid #242429;
}

.contact-info-list > div {
  min-height: 39px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #242429;
}

.contact-info-list a {
  color: var(--blue);
  text-decoration: none;
}

.contact-info-list a:hover {
  text-decoration: underline;
}

.public-contacts {
  display: grid;
  gap: 0;
  margin-top: 2px;
}

.public-contacts-label {
  margin-bottom: 7px;
  color: #777f8b;
  font-size: 0.62rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #242429;
  padding: 9px 0;
}

.contact-item > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.contact-item strong {
  color: #d7dae0;
  font-size: 0.69rem;
  font-weight: 570;
  word-break: break-word;
}

.contact-item span,
.contact-item small {
  margin: 0;
  color: #777f8b;
  font-size: 0.61rem;
  line-height: 1.35;
}

.contact-item small {
  flex: 0 0 auto;
  max-width: 120px;
  text-align: right;
}

.contact-empty {
  border: 1px dashed #303035;
  border-radius: 9px;
  background: #0e0e10;
  padding: 13px;
  color: #777f8b;
  font-size: 0.66rem;
  line-height: 1.5;
}

.watch-settings-card {
  gap: 15px;
}

.watch-filter-block {
  display: grid;
  gap: 7px;
}

.drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.drawer-actions .button {
  flex: 1 1 120px;
  min-height: 38px;
}

/* Light opportunity detail */
body[data-app-theme="light"] .drawer-head {
  border-bottom-color: #e7e9ef;
  background: rgba(255, 255, 255, 0.94);
}

body[data-app-theme="light"] .opportunity-meta-row {
  color: #8a91a4;
}

body[data-app-theme="light"] .drawer-card {
  border-color: #e4e7ef;
  background:
    linear-gradient(180deg, rgba(95, 99, 242, 0.01), transparent),
    #ffffff;
  box-shadow: 0 1px 2px rgba(36, 42, 82, 0.025);
}

body[data-app-theme="light"] .match-card {
  border-color: #dfe2fb;
  background:
    linear-gradient(135deg, rgba(95, 99, 242, 0.05), transparent 72%),
    #fbfbff;
}

body[data-app-theme="light"] .opportunity-summary,
body[data-app-theme="light"] .match-reason {
  color: #44495e;
}

body[data-app-theme="light"] .match-tags span {
  border-color: #dfe2ea;
  background: #f3f5f9;
  color: #667086;
}

body[data-app-theme="light"] .excluded-tags span {
  border-color: #efdfe2;
  background: #fff5f6;
  color: #9b606a;
}

body[data-app-theme="light"] .match-tags em,
body[data-app-theme="light"] .drawer-detail-row span,
body[data-app-theme="light"] .verification-grid span,
body[data-app-theme="light"] .watch-settings-grid span,
body[data-app-theme="light"] .contact-info-list span,
body[data-app-theme="light"] .watch-filter-block > span,
body[data-app-theme="light"] .public-contacts-label,
body[data-app-theme="light"] .contact-item span,
body[data-app-theme="light"] .contact-item small,
body[data-app-theme="light"] .location-address {
  color: #8a91a4;
}

body[data-app-theme="light"] .drawer-detail-row,
body[data-app-theme="light"] .verification-grid > div,
body[data-app-theme="light"] .watch-settings-grid > div,
body[data-app-theme="light"] .contact-info-list,
body[data-app-theme="light"] .contact-info-list > div,
body[data-app-theme="light"] .contact-item {
  border-color: #e8eaf0;
}

body[data-app-theme="light"] .drawer-detail-row strong,
body[data-app-theme="light"] .verification-grid strong,
body[data-app-theme="light"] .watch-settings-grid strong,
body[data-app-theme="light"] .contact-info-list strong,
body[data-app-theme="light"] .contact-item strong {
  color: #303347;
}

body[data-app-theme="light"] .drawer-map {
  border-color: #e1e4eb;
  background: #f2f4f8;
}

body[data-app-theme="light"] .drawer-map iframe {
  filter: saturate(0.92) contrast(0.98);
}

body[data-app-theme="light"] .contact-empty {
  border-color: #dfe2ea;
  background: #f8f9fc;
  color: #8a91a4;
}

body[data-app-theme="light"] .contact-info-list a,
body[data-app-theme="light"] .drawer-card-heading > a {
  color: #5f63e7;
}

@media (max-width: 860px) {
  .signal-drawer {
    width: min(680px, 100vw);
  }

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

@media (max-width: 560px) {
  .drawer-head {
    padding: 20px 18px 16px;
  }

  .drawer-content {
    padding: 16px 18px 26px;
  }

  .drawer-card {
    padding: 15px;
  }

  .drawer-detail-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .verification-grid,
  .watch-settings-grid {
    grid-template-columns: 1fr;
  }

  .drawer-card-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-item {
    flex-direction: column;
  }

  .contact-item small {
    max-width: none;
    text-align: left;
  }
}


/* Product continuity v4 — shared hierarchy across landing, app and signal details */
:root {
  --signal-violet: #625ff1;
  --signal-violet-strong: #514fdc;
  --signal-violet-soft: rgba(98, 95, 241, 0.08);
  --signal-blue: #5975e8;
  --signal-cyan: #12a9c4;
  --signal-green: #17a865;
  --signal-amber: #b77a1c;
  --signal-ink: #14172d;
  --signal-muted: #727d97;
  --signal-line: #e2e6ef;
  --signal-surface: #ffffff;
  --signal-surface-soft: #f7f8fc;
  --signal-shadow:
    0 1px 2px rgba(37, 44, 83, 0.025),
    0 12px 36px rgba(37, 44, 83, 0.035);
}

/* Shared section hero language */
.workspace-header {
  position: relative;
  overflow: hidden;
  border: 1px solid #292a31;
  border-radius: 18px;
  background:
    radial-gradient(circle at 86% 10%, rgba(142, 162, 255, 0.10), transparent 18rem),
    linear-gradient(135deg, rgba(142, 162, 255, 0.045), transparent 58%),
    #101012;
  padding: 24px 26px;
}

.workspace-header::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -120px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(112, 188, 201, 0.055);
  filter: blur(4px);
  pointer-events: none;
}

.workspace-header > * {
  position: relative;
  z-index: 2;
}

.workspace-header h1 {
  max-width: 760px;
}

.workspace-subtitle {
  max-width: 720px;
}

.section-toolbar {
  min-height: 66px;
  margin-bottom: 14px;
  border: 1px solid #27282e;
  border-radius: 12px;
  background: #101012;
  padding: 13px 15px;
}

.section-toolbar h2 {
  margin-bottom: 2px;
}

.filter-field select {
  min-height: 36px;
}

/* Watches become discrete actionable cards instead of a flat admin table */
.watch-table {
  display: grid;
  gap: 10px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.watch-row {
  min-height: 82px;
  border: 1px solid #28292f;
  border-radius: 13px;
  background: #101012;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.watch-row:last-child {
  border-bottom: 1px solid #28292f;
}

.watch-row:hover {
  border-color: #35363e;
  background: #131316;
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.10);
}

.watch-row-copy strong {
  font-size: 0.81rem;
}

.watch-signal-cell strong {
  color: var(--accent-strong);
}

/* Watch builder gets the same hero hierarchy */
.modal-heading {
  margin: -26px -26px 0;
  border-bottom: 1px solid #292a31;
  border-radius: 14px 14px 0 0;
  background:
    radial-gradient(circle at 92% -10%, rgba(142, 162, 255, 0.12), transparent 15rem),
    linear-gradient(135deg, rgba(142, 162, 255, 0.055), transparent 65%),
    #111113;
  padding: 24px 26px 20px;
}

.watch-builder {
  padding-top: 6px;
}

/* Signal detail hero */
.signal-drawer {
  animation: signalDrawerIn 0.24s cubic-bezier(0.22, 0.8, 0.3, 1);
}

.drawer-backdrop:not(.hidden) {
  animation: signalBackdropIn 0.2s ease-out;
}

@keyframes signalDrawerIn {
  from {
    opacity: 0.72;
    transform: translateX(22px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes signalBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.drawer-head {
  min-height: 142px;
  overflow: hidden;
  border-bottom: 1px solid #30313a;
  background:
    radial-gradient(circle at 88% 8%, rgba(142, 162, 255, 0.15), transparent 17rem),
    radial-gradient(circle at 54% 145%, rgba(112, 188, 201, 0.08), transparent 16rem),
    linear-gradient(125deg, rgba(142, 162, 255, 0.07), transparent 62%),
    rgba(16, 16, 18, 0.97);
}

.drawer-head::after {
  content: "";
  position: absolute;
  right: 80px;
  top: -24px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(142, 162, 255, 0.08);
  border-radius: 999px;
  pointer-events: none;
}

.drawer-head h2 {
  max-width: 730px;
  margin-top: 5px;
  color: #f1f1f4;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 680;
  line-height: 1.2;
  letter-spacing: -0.018em;
}

.drawer-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 15px;
  margin-top: 12px;
}

.drawer-hero-meta span {
  position: relative;
  color: #9ca4b4;
  font-size: 0.68rem;
  font-weight: 520;
}

.drawer-hero-meta span + span::before {
  content: "·";
  position: absolute;
  left: -9px;
  color: #666d7b;
}

.opportunity-meta-row {
  min-height: 32px;
  padding-inline: 3px;
}

.opportunity-label {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(142, 162, 255, 0.25);
  border-radius: 999px;
  background: rgba(142, 162, 255, 0.09);
  padding: 4px 8px;
  color: #aebaff;
  font-size: 0.56rem;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.priority-card {
  border-color: rgba(142, 162, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(142, 162, 255, 0.055), transparent 70%),
    #111113;
}

.operational-card {
  border-color: #2b2c32;
}

.trace-card {
  border-color: #24252a;
  background: #0f0f11;
}

.trace-card .drawer-section-title {
  color: #696f7a;
}

.trace-note {
  color: #6f7682;
  font-size: 0.59rem;
  font-weight: 600;
}

.opportunity-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #292a30;
  border-radius: 10px;
  background: #0e0e10;
}

.opportunity-highlights > div {
  min-width: 0;
  display: grid;
  gap: 5px;
  border-right: 1px solid #292a30;
  padding: 11px 12px;
}

.opportunity-highlights > div:last-child {
  border-right: 0;
}

.opportunity-highlights strong {
  overflow: hidden;
  color: #e9e9ec;
  font-size: 0.73rem;
  font-weight: 680;
  line-height: 1.3;
  text-overflow: ellipsis;
}

.opportunity-highlights span {
  color: #747b87;
  font-size: 0.58rem;
}

.opportunity-highlights .highlight-status strong {
  color: var(--success);
}

.opportunity-highlights .highlight-work strong {
  color: #aebaff;
}

.opportunity-highlights .highlight-date strong {
  color: #a8dfe8;
}

.drawer-detail-row strong {
  font-weight: 620;
}

.drawer-detail-row:nth-child(3) strong,
.drawer-detail-row:nth-child(5) strong,
.drawer-detail-row:nth-child(6) strong {
  color: #e8e9ee;
}

.match-reason {
  font-size: 0.79rem;
}

.match-tags span:first-child {
  border-color: rgba(142, 162, 255, 0.30);
  background: rgba(142, 162, 255, 0.10);
  color: #b2bdff;
  font-weight: 650;
}

.compact-contact-empty {
  display: grid;
  gap: 4px;
}

.compact-contact-empty strong {
  color: #cfd3db;
  font-size: 0.7rem;
  font-weight: 620;
}

.compact-contact-empty span {
  color: #777f8b;
  font-size: 0.64rem;
  line-height: 1.45;
}

.contact-item {
  transition:
    background 0.14s ease,
    padding 0.14s ease;
}

.contact-item:hover {
  margin-inline: -7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  padding-inline: 7px;
}

.contact-item strong {
  font-weight: 660;
}

.contact-item span {
  color: #969fb0;
  font-weight: 540;
}

.verification-verified {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(111, 214, 160, 0.08);
  padding: 4px 7px;
}

.drawer-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin: 0 -2px -2px;
  border: 1px solid #292a30;
  border-radius: 11px;
  background: rgba(16, 16, 18, 0.92);
  backdrop-filter: blur(14px);
  padding: 9px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
}

/* Scroll affordance */
.drawer-scroll-cue {
  position: fixed;
  z-index: 80;
  right: calc(min(920px, 96vw) / 2 - 60px);
  bottom: 22px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(95, 99, 242, 0.28);
  border-radius: 999px;
  background: rgba(22, 23, 38, 0.90);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.025) inset;
  padding: 0 12px;
  color: #bdc5ff;
  font-size: 0.62rem;
  font-weight: 650;
  backdrop-filter: blur(14px);
  animation: scrollCueFloat 1.8s ease-in-out infinite;
}

.drawer-scroll-cue svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes scrollCueFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.drawer-content.is-refreshing {
  animation: verifiedRefresh 0.28s ease-out;
}

@keyframes verifiedRefresh {
  from { opacity: 0.74; }
  to { opacity: 1; }
}

/* Light app: shared hero and section hierarchy */
body[data-app-theme="light"] .workspace-header {
  min-height: 148px;
  margin-bottom: 18px;
  border-color: #dfe3ee;
  border-radius: 19px;
  background:
    radial-gradient(circle at 88% 5%, rgba(98, 95, 241, 0.12), transparent 22rem),
    radial-gradient(circle at 62% 145%, rgba(17, 169, 195, 0.07), transparent 20rem),
    linear-gradient(125deg, rgba(98, 95, 241, 0.055), transparent 62%),
    #ffffff;
  padding: 26px 28px;
  box-shadow: var(--signal-shadow);
}

body[data-app-theme="light"] .workspace-header h1 {
  font-size: clamp(2.25rem, 3.1vw, 2.9rem);
}

body[data-app-theme="light"] .workspace-header .eyebrow {
  color: var(--signal-violet);
}

body[data-app-theme="light"] .workspace-subtitle {
  color: var(--signal-muted);
}

body[data-app-theme="light"] .workspace-signal-network {
  top: 10px;
  right: 36px;
  z-index: 1;
  height: 140px;
  opacity: 0.58;
}

body[data-app-theme="light"] .section-toolbar {
  border-color: #e2e6ef;
  background: rgba(255, 255, 255, 0.80);
  box-shadow: 0 1px 2px rgba(37, 44, 83, 0.02);
}

body[data-app-theme="light"] .section-toolbar h2 {
  color: var(--signal-ink);
}

body[data-app-theme="light"] .watch-table {
  border: 0;
  background: transparent;
  box-shadow: none;
}

body[data-app-theme="light"] .watch-row {
  border: 1px solid #e1e5ed;
  background: #ffffff;
  box-shadow: var(--signal-shadow);
}

body[data-app-theme="light"] .watch-row:last-child {
  border-bottom: 1px solid #e1e5ed;
}

body[data-app-theme="light"] .watch-row:hover {
  border-color: #d7dced;
  background:
    linear-gradient(90deg, rgba(98, 95, 241, 0.028), transparent 55%),
    #ffffff;
  box-shadow:
    0 1px 2px rgba(37, 44, 83, 0.03),
    0 13px 32px rgba(37, 44, 83, 0.055);
}

body[data-app-theme="light"] .watch-type-icon {
  border: 0;
  box-shadow: none;
}

body[data-app-theme="light"] .watch-signal-cell strong {
  color: #565ade;
}

body[data-app-theme="light"] .modal-heading {
  border-bottom-color: #e5e8ef;
  background:
    radial-gradient(circle at 92% -10%, rgba(98, 95, 241, 0.12), transparent 17rem),
    linear-gradient(135deg, rgba(98, 95, 241, 0.045), transparent 65%),
    #ffffff;
}

body[data-app-theme="light"] .modal-heading .eyebrow {
  color: var(--signal-violet);
}

/* Light signal detail */
body[data-app-theme="light"] .drawer-head {
  border-bottom-color: #e2e6ef;
  background:
    radial-gradient(circle at 88% 8%, rgba(98, 95, 241, 0.13), transparent 19rem),
    radial-gradient(circle at 52% 145%, rgba(17, 169, 195, 0.07), transparent 18rem),
    linear-gradient(125deg, rgba(98, 95, 241, 0.055), transparent 64%),
    rgba(255, 255, 255, 0.97);
}

body[data-app-theme="light"] .drawer-head::after {
  border-color: rgba(98, 95, 241, 0.09);
}

body[data-app-theme="light"] .drawer-head h2 {
  color: #161a31;
}

body[data-app-theme="light"] .drawer-hero-meta span {
  color: #717d98;
}

body[data-app-theme="light"] .drawer-hero-meta span + span::before {
  color: #a0a8ba;
}

body[data-app-theme="light"] .opportunity-label {
  border-color: #d9ddfb;
  background: #f0f1ff;
  color: #5d60df;
}

body[data-app-theme="light"] .priority-card {
  border-color: #dfe2fb;
  background:
    linear-gradient(135deg, rgba(98, 95, 241, 0.045), transparent 70%),
    #ffffff;
}

body[data-app-theme="light"] .trace-card {
  border-color: #e9ebf1;
  background: #fafbfc;
}

body[data-app-theme="light"] .trace-card .drawer-section-title,
body[data-app-theme="light"] .trace-note {
  color: #8991a4;
}

body[data-app-theme="light"] .opportunity-highlights {
  border-color: #e4e7ef;
  background: #f8f9fc;
}

body[data-app-theme="light"] .opportunity-highlights > div {
  border-color: #e4e7ef;
}

body[data-app-theme="light"] .opportunity-highlights strong {
  color: #25293f;
}

body[data-app-theme="light"] .opportunity-highlights .highlight-status strong {
  color: #16975a;
}

body[data-app-theme="light"] .opportunity-highlights .highlight-work strong {
  color: #565ade;
}

body[data-app-theme="light"] .opportunity-highlights .highlight-date strong {
  color: #138ca2;
}

body[data-app-theme="light"] .match-tags span:first-child {
  border-color: #d9ddfb;
  background: #f0f1ff;
  color: #565ade;
}

body[data-app-theme="light"] .compact-contact-empty strong {
  color: #3f455b;
}

body[data-app-theme="light"] .compact-contact-empty span {
  color: #8a91a4;
}

body[data-app-theme="light"] .contact-item:hover {
  background: #f6f7fb;
}

body[data-app-theme="light"] .contact-item span {
  color: #707b95;
}

body[data-app-theme="light"] .verification-verified {
  background: #eaf8f1;
  color: #16975a;
}

body[data-app-theme="light"] .drawer-actions {
  border-color: #e1e5ed;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 -8px 24px rgba(42, 48, 86, 0.055),
    0 1px 2px rgba(42, 48, 86, 0.025);
}

body[data-app-theme="light"] .drawer-scroll-cue {
  border-color: #d7dbfb;
  background: rgba(255, 255, 255, 0.94);
  color: #565ade;
  box-shadow:
    0 10px 28px rgba(45, 51, 91, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

/* Landing continuity */
.marketing-shell .landing-hero {
  isolation: isolate;
}

.marketing-shell .landing-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 24px -30px 28px;
  border: 1px solid #e0e4ee;
  border-radius: 28px;
  background:
    radial-gradient(circle at 84% 6%, rgba(98, 95, 241, 0.105), transparent 24rem),
    radial-gradient(circle at 58% 118%, rgba(17, 169, 195, 0.055), transparent 21rem),
    linear-gradient(125deg, rgba(98, 95, 241, 0.035), transparent 58%),
    rgba(255, 255, 255, 0.76);
  box-shadow:
    0 1px 2px rgba(37, 44, 83, 0.025),
    0 20px 60px rgba(37, 44, 83, 0.035);
}

.marketing-shell .hero-copy h1 {
  color: #12162d;
  font-weight: 660;
}

.marketing-shell .hero-lead {
  color: #66718c;
}

.marketing-shell .hero-primary {
  border-color: var(--signal-violet);
  background: linear-gradient(180deg, #6c69f5, #5655df);
  color: #ffffff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.26) inset,
    0 8px 24px rgba(80, 79, 220, 0.19);
}

.marketing-shell .hero-primary:hover {
  background: linear-gradient(180deg, #7774f7, #6160e7);
}

.marketing-shell .preview-window {
  border-color: #dfe3ec;
  background: #ffffff;
  box-shadow:
    0 2px 4px rgba(37, 44, 83, 0.035),
    0 24px 62px rgba(37, 44, 83, 0.10);
}

.marketing-shell .preview-toolbar,
.marketing-shell .preview-sidebar {
  border-color: #e7eaf1;
  background: #fafbfe;
}

.marketing-shell .preview-content {
  background: #ffffff;
}

.marketing-shell .preview-brand,
.marketing-shell .preview-title-row strong,
.marketing-shell .preview-signal strong {
  color: #1b1f36;
}

.marketing-shell .preview-sidebar span,
.marketing-shell .preview-title-row > span,
.marketing-shell .preview-signal span,
.marketing-shell .preview-signal time {
  color: #818ba2;
}

.marketing-shell .preview-sidebar .preview-nav-active {
  background: #efefff;
  color: #5558d8;
}

.marketing-shell .preview-signal {
  border-color: #e8ebf1;
}

.marketing-shell .landing-section,
.marketing-shell .landing-value,
.marketing-shell .access-section {
  border-top-color: #e2e6ef;
}

.marketing-shell .how-card,
.marketing-shell .coverage-home-card {
  border-color: #e1e5ed;
  background:
    linear-gradient(160deg, rgba(98, 95, 241, 0.018), transparent 62%),
    #ffffff;
  box-shadow: var(--signal-shadow);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.marketing-shell .how-card:hover,
.marketing-shell .coverage-home-card:hover {
  border-color: #d6dbeb;
  background:
    linear-gradient(160deg, rgba(98, 95, 241, 0.035), transparent 62%),
    #ffffff;
  transform: translateY(-2px);
  box-shadow:
    0 1px 2px rgba(37, 44, 83, 0.03),
    0 16px 38px rgba(37, 44, 83, 0.06);
}

.marketing-shell .how-card h3,
.marketing-shell .coverage-home-card h3,
.marketing-shell .landing-section-head h2,
.marketing-shell .landing-value h2,
.marketing-shell .access-copy h2 {
  color: #171a31;
}

.marketing-shell .how-card p,
.marketing-shell .coverage-home-card p,
.marketing-shell .landing-section-head > p:last-child,
.marketing-shell .access-copy > p,
.marketing-shell .value-points span {
  color: #747f98;
}

.marketing-shell .how-number {
  color: #a0a8bb;
}

.marketing-shell .landing-value {
  align-items: start;
}

.marketing-shell .value-points {
  border-top-color: #e2e6ef;
}

.marketing-shell .value-points > div {
  border-bottom-color: #e2e6ef;
}

.marketing-shell .value-points strong {
  color: #30354c;
}

.marketing-shell .access-section {
  position: relative;
}

.marketing-shell .home-auth-card {
  border-color: #dfe3ec;
  background:
    radial-gradient(circle at 90% -4%, rgba(98, 95, 241, 0.08), transparent 13rem),
    #ffffff;
  box-shadow: var(--signal-shadow);
}

/* Consistent actionable color emphasis */
body[data-app-theme="light"] .overview-stat-card strong,
body[data-app-theme="light"] .status-list strong,
body[data-app-theme="light"] .watch-row-copy strong {
  font-weight: 650;
}

body[data-app-theme="light"] .stat-watch-card .overview-stat-copy strong {
  color: #5559dd;
}

body[data-app-theme="light"] .stat-signal-card .overview-stat-copy strong {
  color: #0d98b2;
}

body[data-app-theme="light"] .stat-coverage-card .overview-stat-copy strong {
  color: #7158df;
}

body[data-app-theme="light"] .stat-plan-card .overview-stat-copy strong {
  color: #15935a;
}

/* Mobile continuity */
@media (max-width: 980px) {
  .marketing-shell .landing-hero::before {
    inset-inline: -16px;
  }

  .opportunity-grid {
    gap: 14px;
  }
}

@media (max-width: 760px) {
  .workspace-header {
    border-radius: 15px;
    padding: 20px 18px;
  }

  body[data-app-theme="light"] .workspace-header {
    min-height: 0;
    margin-bottom: 16px;
    padding: 20px 18px;
  }

  .section-toolbar {
    border-radius: 10px;
  }

  .watch-row {
    min-height: 72px;
  }

  .drawer-head {
    min-height: 132px;
  }

  .drawer-scroll-cue {
    right: calc(50vw - 56px);
    bottom: 16px;
  }

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

  .opportunity-highlights > div {
    border-right: 0;
    border-bottom: 1px solid #292a30;
  }

  .opportunity-highlights > div:last-child {
    border-bottom: 0;
  }

  body[data-app-theme="light"] .opportunity-highlights > div {
    border-color: #e4e7ef;
  }

  .marketing-shell .landing-hero::before {
    inset: 14px -8px 18px;
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .signal-drawer,
  .drawer-backdrop:not(.hidden),
  .drawer-scroll-cue,
  .drawer-content.is-refreshing {
    animation: none;
  }

  .watch-row,
  .marketing-shell .how-card,
  .marketing-shell .coverage-home-card {
    transition: none;
  }
}


/* Product workflow v5 — stronger primary action, Watch builder and signal triage */

/* Primary New Watch CTA */
#new-watch-button {
  min-width: 168px;
  min-height: 54px;
  display: inline-grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  justify-content: start;
  border-radius: 12px;
  padding: 7px 14px 7px 9px;
  text-align: left;
}

.new-watch-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 1.1rem;
  line-height: 1;
}

.new-watch-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.new-watch-copy strong {
  font-size: 0.76rem;
  font-weight: 720;
  line-height: 1.2;
}

.new-watch-copy small {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.58rem;
  font-weight: 520;
  line-height: 1.2;
}

body[data-app-theme="light"] #new-watch-button {
  min-height: 54px;
  margin-top: 0;
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 255, 255, 0.20), transparent 9rem),
    linear-gradient(180deg, #746bf8, #5555e3);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.34) inset,
    0 10px 28px rgba(79, 78, 221, 0.25);
}

body[data-app-theme="light"] #new-watch-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.40) inset,
    0 14px 34px rgba(79, 78, 221, 0.29);
}

body[data-app-theme="light"] .new-watch-icon {
  background: rgba(255, 255, 255, 0.17);
}

body[data-app-theme="light"] .new-watch-copy small {
  color: rgba(255, 255, 255, 0.74);
}

/* Signal search + triage */
.signal-toolbar {
  align-items: end;
}

.signal-filter-bar {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 9px;
}

.signal-filter-bar .filter-field {
  min-width: 128px;
}

.signal-filter-bar .filter-search {
  min-width: 230px;
}

.signal-filter-bar input,
.signal-filter-bar select {
  min-height: 36px;
  margin-top: 5px;
  padding-block: 8px;
}

.signal-row-end {
  min-width: 78px;
  display: grid;
  justify-items: end;
  gap: 5px;
}

.signal-workflow-badge {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 0.53rem;
  font-weight: 760;
  letter-spacing: 0.055em;
}

.signal-workflow-new {
  background: rgba(142, 162, 255, 0.10);
  color: #aebaff;
}

.signal-workflow-saved {
  background: rgba(112, 188, 201, 0.10);
  color: #8dd8e4;
}

.signal-workflow-contacted {
  background: rgba(111, 214, 160, 0.10);
  color: var(--success);
}

.signal-workflow-dismissed {
  background: rgba(150, 150, 160, 0.08);
  color: #85858e;
}

.signal-state-dismissed {
  opacity: 0.58;
}

.signal-state-saved .signal-type-icon,
.signal-state-contacted .signal-type-icon {
  box-shadow: 0 0 0 3px rgba(142, 162, 255, 0.045);
}

/* Signal workflow actions inside the opportunity drawer */
.signal-workflow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: -3px;
}

.workflow-action {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #303139;
  border-radius: 9px;
  background: #151518;
  padding: 0 11px;
  color: #a7adb9;
  font-size: 0.64rem;
  font-weight: 620;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}

.workflow-action:hover {
  border-color: #3a3c46;
  background: #1b1b20;
  color: #d9dce3;
  transform: translateY(-1px);
}

.workflow-action.is-active {
  border-color: rgba(142, 162, 255, 0.34);
  background: rgba(142, 162, 255, 0.10);
  color: #bcc6ff;
}

.workflow-dismiss.is-active {
  border-color: rgba(236, 143, 156, 0.26);
  background: rgba(236, 143, 156, 0.08);
  color: #e6a2ac;
}

.workflow-reset {
  margin-left: auto;
  border-color: transparent;
  background: transparent;
  color: #707783;
}

.opportunity-status-saved {
  color: #64c6d6;
}

.opportunity-status-contacted {
  color: var(--success);
}

.opportunity-status-dismissed {
  color: #8b919b;
}

/* Opportunity overview stat */
.stat-opportunity-card {
  cursor: pointer;
}

.stat-opportunity-card .overview-stat-icon {
  color: #73b8c6;
  background: rgba(112, 188, 201, 0.10);
}

/* Source health */
.watch-health-inline {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  font-size: 0.59rem !important;
}

.watch-health-inline i,
.watch-preview-health i {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.health-healthy {
  color: var(--success) !important;
}

.health-stale {
  color: var(--warning) !important;
}

.health-error {
  color: var(--danger) !important;
}

.health-unknown {
  color: #777e89 !important;
}

.opportunity-toolbar-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.opportunity-toolbar-meta span {
  border: 1px solid #2c2d34;
  border-radius: 999px;
  background: #151518;
  padding: 6px 9px;
  color: #808792;
  font-size: 0.62rem;
}

.opportunity-toolbar-meta strong {
  color: #d7d9df;
  font-weight: 680;
}

/* Watch builder */
.watch-modal-card {
  width: min(1060px, 100%);
  padding: 0;
  overflow: hidden auto;
}

.watch-modal-heading {
  margin: 0;
  border-radius: 0;
  padding: 26px 28px 22px;
}

.watch-modal-heading h2 {
  font-size: 1.55rem;
}

.watch-template-section {
  display: grid;
  gap: 13px;
  border-bottom: 1px solid #25262c;
  padding: 20px 28px;
}

.watch-template-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.watch-template-head p {
  margin: 4px 0 0;
  color: #7f8793;
  font-size: 0.68rem;
  line-height: 1.45;
}

.watch-template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.watch-template-card {
  min-width: 0;
  min-height: 112px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-content: center;
  border: 1px solid #2b2c33;
  border-radius: 11px;
  background: #111113;
  padding: 13px;
  color: inherit;
  text-align: left;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.watch-template-card:hover {
  border-color: #373944;
  background: #151519;
  transform: translateY(-1px);
}

.watch-template-card.is-selected {
  border-color: rgba(142, 162, 255, 0.40);
  background:
    linear-gradient(135deg, rgba(142, 162, 255, 0.085), transparent 75%),
    #131318;
  box-shadow: 0 0 0 2px rgba(142, 162, 255, 0.04);
}

.watch-template-icon {
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
}

.watch-template-icon svg,
.watch-preview-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.watch-template-card strong {
  overflow: hidden;
  color: #e8e9ed;
  font-size: 0.7rem;
  font-weight: 640;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watch-template-card > span:last-child {
  align-self: start;
  color: #7c838f;
  font-size: 0.61rem;
  line-height: 1.4;
}

.watch-builder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 0;
}

.watch-builder-layout .watch-builder {
  min-width: 0;
  padding: 0 28px 26px;
}

.watch-builder-layout .builder-step:first-child {
  border-top: 0;
}

.watch-preview {
  position: sticky;
  top: 0;
  align-self: start;
  display: grid;
  gap: 14px;
  border-left: 1px solid #25262c;
  background:
    radial-gradient(circle at 80% 2%, rgba(142, 162, 255, 0.08), transparent 14rem),
    #0f0f11;
  padding: 24px 20px;
}

.watch-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.watch-preview-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  background: rgba(111, 214, 160, 0.08);
  padding: 4px 7px;
  color: var(--success);
  font-size: 0.54rem;
  font-weight: 720;
  letter-spacing: 0.06em;
}

.watch-preview-live i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.watch-preview-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 12px;
}

.watch-preview > strong {
  color: #ececef;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.35;
}

.watch-preview > p {
  margin: -5px 0 0;
  color: #7d8591;
  font-size: 0.67rem;
  line-height: 1.5;
}

.watch-preview-list {
  display: grid;
  border-top: 1px solid #292a30;
}

.watch-preview-list > div {
  display: grid;
  gap: 3px;
  border-bottom: 1px solid #292a30;
  padding: 9px 0;
}

.watch-preview-list span {
  color: #747c88;
  font-size: 0.58rem;
}

.watch-preview-list strong {
  color: #d3d6dd;
  font-size: 0.67rem;
  font-weight: 590;
  line-height: 1.4;
}

.watch-preview-health {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  border: 1px solid #2b2d34;
  border-radius: 9px;
  background: #131316;
  padding: 10px;
  color: #7d8591;
}

.watch-preview-health i {
  margin-top: 4px;
}

.watch-preview-health span {
  font-size: 0.61rem;
  line-height: 1.45;
}

.watch-builder-layout .builder-footer {
  margin-bottom: 0;
}

.watch-builder-layout #watch-form-message {
  margin-bottom: 0;
}

/* Light workflow */
body[data-app-theme="light"] .signal-filter-bar input,
body[data-app-theme="light"] .signal-filter-bar select {
  background: #ffffff;
}

body[data-app-theme="light"] .signal-workflow-new {
  background: #f0f1ff;
  color: #5c60df;
}

body[data-app-theme="light"] .signal-workflow-saved {
  background: #eaf8fb;
  color: #168aa1;
}

body[data-app-theme="light"] .signal-workflow-contacted {
  background: #eaf8f1;
  color: #16975a;
}

body[data-app-theme="light"] .signal-workflow-dismissed {
  background: #f0f1f4;
  color: #848b9b;
}

body[data-app-theme="light"] .workflow-action {
  border-color: #dfe3eb;
  background: #ffffff;
  color: #646d82;
}

body[data-app-theme="light"] .workflow-action:hover {
  border-color: #d3d8e5;
  background: #f6f7fb;
  color: #30364c;
}

body[data-app-theme="light"] .workflow-action.is-active {
  border-color: #d8dcfb;
  background: #f0f1ff;
  color: #565ade;
}

body[data-app-theme="light"] .workflow-dismiss.is-active {
  border-color: #f0dfe2;
  background: #fff4f5;
  color: #a35d68;
}

body[data-app-theme="light"] .workflow-reset {
  border-color: transparent;
  background: transparent;
  color: #9299aa;
}

body[data-app-theme="light"] .opportunity-toolbar-meta span {
  border-color: #e0e4ec;
  background: #ffffff;
  color: #7c859b;
}

body[data-app-theme="light"] .opportunity-toolbar-meta strong {
  color: #32364c;
}

body[data-app-theme="light"] .stat-opportunity-card .overview-stat-icon {
  color: #148fa5;
  background: #e8f8fb;
}

body[data-app-theme="light"] .watch-template-section {
  border-color: #e5e8ef;
  background: #fcfcff;
}

body[data-app-theme="light"] .watch-template-head p {
  color: #818a9f;
}

body[data-app-theme="light"] .watch-template-card {
  border-color: #e1e5ed;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(37, 44, 83, 0.02);
}

body[data-app-theme="light"] .watch-template-card:hover {
  border-color: #d8ddec;
  background: #fbfbff;
  box-shadow: 0 9px 24px rgba(37, 44, 83, 0.045);
}

body[data-app-theme="light"] .watch-template-card.is-selected {
  border-color: #ced4fb;
  background:
    linear-gradient(135deg, rgba(98, 95, 241, 0.065), transparent 76%),
    #ffffff;
  box-shadow: 0 0 0 2px rgba(98, 95, 241, 0.035);
}

body[data-app-theme="light"] .watch-template-card strong {
  color: #252940;
}

body[data-app-theme="light"] .watch-template-card > span:last-child {
  color: #818a9f;
}

body[data-app-theme="light"] .watch-preview {
  border-color: #e5e8ef;
  background:
    radial-gradient(circle at 82% 2%, rgba(98, 95, 241, 0.075), transparent 14rem),
    #fafbfe;
}

body[data-app-theme="light"] .watch-preview > strong {
  color: #252940;
}

body[data-app-theme="light"] .watch-preview > p,
body[data-app-theme="light"] .watch-preview-list span {
  color: #858da1;
}

body[data-app-theme="light"] .watch-preview-list,
body[data-app-theme="light"] .watch-preview-list > div {
  border-color: #e5e8ef;
}

body[data-app-theme="light"] .watch-preview-list strong {
  color: #44495f;
}

body[data-app-theme="light"] .watch-preview-health {
  border-color: #e1e5ed;
  background: #ffffff;
  color: #858da1;
}

@media (max-width: 980px) {
  .signal-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .signal-filter-bar {
    justify-content: stretch;
  }

  .signal-filter-bar .filter-field,
  .signal-filter-bar .filter-search {
    flex: 1;
    min-width: 0;
  }

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

  .watch-preview {
    position: static;
    border-top: 1px solid #25262c;
    border-left: 0;
  }

  body[data-app-theme="light"] .watch-preview {
    border-color: #e5e8ef;
  }
}

@media (max-width: 760px) {
  #new-watch-button {
    width: 100%;
    min-width: 0;
  }

  .signal-filter-bar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .signal-filter-bar .filter-field,
  .signal-filter-bar .filter-search {
    width: 100%;
  }

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

  .watch-template-section {
    padding-inline: 18px;
  }

  .watch-builder-layout .watch-builder {
    padding-inline: 18px;
  }

  .watch-preview {
    padding-inline: 18px;
  }

  .signal-workflow-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .workflow-reset {
    margin-left: 0;
  }
}


/* Opportunity workflow v6 — notes, tags, exports and triage polish */
.export-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.export-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.opportunity-toolbar {
  align-items: end;
}

.opportunity-toolbar > div:first-child {
  display: grid;
  gap: 5px;
}

.opportunity-toolbar .opportunity-toolbar-meta {
  margin-top: 4px;
}

.signal-row-tags {
  color: #8aa7d8 !important;
  font-size: 0.57rem !important;
  font-weight: 620;
}

.opportunity-workspace-card {
  border-color: rgba(112, 188, 201, 0.24);
  background:
    radial-gradient(circle at 92% 0%, rgba(112, 188, 201, 0.07), transparent 14rem),
    linear-gradient(135deg, rgba(142, 162, 255, 0.045), transparent 74%),
    #111113;
}

.opportunity-workspace-card .drawer-card-heading > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.workspace-helper {
  margin: 0;
  color: #737b88;
  font-size: 0.64rem;
  line-height: 1.45;
}

.private-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border: 1px solid rgba(112, 188, 201, 0.22);
  border-radius: 999px;
  background: rgba(112, 188, 201, 0.07);
  padding: 3px 7px;
  color: #7bc9d6;
  font-size: 0.52rem;
  font-weight: 760;
  letter-spacing: 0.065em;
}

.opportunity-note-field,
.opportunity-tags-field {
  display: grid;
  gap: 6px;
}

.opportunity-note-field > span,
.opportunity-tags-field > span {
  color: #808896;
  font-size: 0.62rem;
  font-weight: 620;
}

.opportunity-note-field textarea,
.opportunity-tags-field input {
  width: 100%;
  border: 1px solid #303139;
  border-radius: 9px;
  outline: none;
  background: #0e0e10;
  padding: 10px 11px;
  color: #d9dce3;
  font: inherit;
  font-size: 0.7rem;
  line-height: 1.5;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.opportunity-note-field textarea {
  min-height: 96px;
  resize: vertical;
}

.opportunity-note-field textarea:focus,
.opportunity-tags-field input:focus {
  border-color: rgba(142, 162, 255, 0.46);
  background: #111115;
  box-shadow: 0 0 0 3px rgba(142, 162, 255, 0.06);
}

.opportunity-tags-field small {
  color: #666e7a;
  font-size: 0.58rem;
  line-height: 1.4;
}

.opportunity-workspace-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #292a30;
  padding-top: 11px;
}

.opportunity-workspace-footer > span {
  color: #737b88;
  font-size: 0.59rem;
}

.opportunity-workspace-footer .button {
  min-height: 34px;
}

.opportunity-workspace-hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px dashed #303139;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.012);
  padding: 13px 14px;
}

.opportunity-workspace-hint > span {
  flex: 0 0 auto;
  color: #9eabed;
  font-size: 1rem;
  line-height: 1;
}

.opportunity-workspace-hint > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.opportunity-workspace-hint strong {
  color: #cdd1d9;
  font-size: 0.66rem;
  font-weight: 640;
}

.opportunity-workspace-hint p {
  margin: 0;
  color: #727a87;
  font-size: 0.61rem;
  line-height: 1.45;
}

/* Light opportunity workflow */
body[data-app-theme="light"] .signal-row-tags {
  color: #5972c6 !important;
}

body[data-app-theme="light"] .opportunity-workspace-card {
  border-color: #d9e9ed;
  background:
    radial-gradient(circle at 92% 0%, rgba(17, 169, 195, 0.06), transparent 14rem),
    linear-gradient(135deg, rgba(98, 95, 241, 0.035), transparent 74%),
    #ffffff;
}

body[data-app-theme="light"] .workspace-helper {
  color: #858da1;
}

body[data-app-theme="light"] .private-badge {
  border-color: #d5ebef;
  background: #eef9fb;
  color: #168ba1;
}

body[data-app-theme="light"] .opportunity-note-field > span,
body[data-app-theme="light"] .opportunity-tags-field > span {
  color: #7c859a;
}

body[data-app-theme="light"] .opportunity-note-field textarea,
body[data-app-theme="light"] .opportunity-tags-field input {
  border-color: #e0e4ec;
  background: #ffffff;
  color: #32364b;
}

body[data-app-theme="light"] .opportunity-note-field textarea:focus,
body[data-app-theme="light"] .opportunity-tags-field input:focus {
  border-color: #cfd4fb;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(98, 95, 241, 0.055);
}

body[data-app-theme="light"] .opportunity-tags-field small,
body[data-app-theme="light"] .opportunity-workspace-footer > span {
  color: #9097a8;
}

body[data-app-theme="light"] .opportunity-workspace-footer {
  border-color: #e5e8ef;
}

body[data-app-theme="light"] .opportunity-workspace-hint {
  border-color: #dfe3eb;
  background: #fafbfe;
}

body[data-app-theme="light"] .opportunity-workspace-hint > span {
  color: #6265df;
}

body[data-app-theme="light"] .opportunity-workspace-hint strong {
  color: #3e4359;
}

body[data-app-theme="light"] .opportunity-workspace-hint p {
  color: #8a91a4;
}

@media (max-width: 980px) {
  .opportunity-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .opportunity-workspace-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .opportunity-workspace-footer .button {
    width: 100%;
  }

  .export-button {
    width: 100%;
    justify-content: center;
  }
}


/* Follow-up workflow v7 */
.panel-mini-icon-cyan {
  color: #7ac7d5;
  background: rgba(112, 188, 201, 0.10);
}

.follow-up-panel {
  gap: 14px;
}

.follow-up-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #292a30;
  border-radius: 10px;
  background: #101012;
}

.follow-up-summary > div {
  min-width: 0;
  display: grid;
  gap: 4px;
  border-right: 1px solid #292a30;
  padding: 10px 11px;
}

.follow-up-summary > div:last-child {
  border-right: 0;
}

.follow-up-summary span {
  color: #747c88;
  font-size: 0.57rem;
}

.follow-up-summary strong {
  color: #e1e3e8;
  font-size: 0.82rem;
  font-weight: 700;
}

.follow-up-summary-overdue strong {
  color: #e9a0aa;
}

.follow-up-list {
  display: grid;
  gap: 2px;
}

.follow-up-row {
  width: 100%;
  min-height: 56px;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 14px;
  gap: 10px;
  align-items: center;
  border: 0;
  border-top: 1px solid #24252b;
  background: transparent;
  padding: 9px 3px;
  color: inherit;
  text-align: left;
  transition:
    background 0.14s ease,
    transform 0.14s ease;
}

.follow-up-row:hover {
  margin-inline: -7px;
  width: calc(100% + 14px);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  padding-inline: 10px;
}

.follow-up-row-date {
  display: grid;
  gap: 2px;
}

.follow-up-row-date strong {
  color: #9aa4b6;
  font-size: 0.56rem;
  font-weight: 760;
  letter-spacing: 0.05em;
}

.follow-up-row-date small {
  color: #6f7682;
  font-size: 0.57rem;
}

.follow-up-row-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.follow-up-row-copy strong {
  overflow: hidden;
  color: #d6d9df;
  font-size: 0.66rem;
  font-weight: 630;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.follow-up-row-copy span {
  overflow: hidden;
  color: #737b87;
  font-size: 0.59rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.follow-up-row.follow-up-overdue .follow-up-row-date strong {
  color: #e9a0aa;
}

.follow-up-row.follow-up-today .follow-up-row-date strong {
  color: #8fd6a9;
}

.compact-empty {
  padding: 11px 0 0;
}

.signal-follow-up-meta {
  font-weight: 610;
}

.signal-follow-up-meta.follow-up-overdue {
  color: #c97884 !important;
}

.signal-follow-up-meta.follow-up-today {
  color: #4fa66f !important;
}

.signal-follow-up-meta.follow-up-upcoming {
  color: #6f84ce !important;
}

/* Follow-up editor inside Opportunity workspace */
.follow-up-editor {
  display: grid;
  gap: 11px;
  border: 1px solid #2b2c33;
  border-radius: 10px;
  background: #0f0f11;
  padding: 13px;
}

.follow-up-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.follow-up-editor-head > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.follow-up-editor-head p {
  margin: 0;
  color: #707985;
  font-size: 0.61rem;
  line-height: 1.45;
}

.follow-up-state {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  border-radius: 999px;
  background: rgba(142, 162, 255, 0.08);
  padding: 3px 7px;
  color: #aab7fb;
  font-size: 0.51rem;
  font-weight: 760;
  letter-spacing: 0.06em;
}

.follow-up-overdue .follow-up-state {
  background: rgba(232, 128, 144, 0.08);
  color: #e39aa5;
}

.follow-up-today .follow-up-state {
  background: rgba(111, 214, 160, 0.08);
  color: var(--success);
}

.follow-up-completed .follow-up-state {
  background: rgba(111, 214, 160, 0.08);
  color: var(--success);
}

.follow-up-date-field {
  display: grid;
  gap: 6px;
}

.follow-up-date-field > span {
  color: #7d8592;
  font-size: 0.61rem;
  font-weight: 620;
}

.follow-up-date-field input {
  min-height: 38px;
  border: 1px solid #303139;
  border-radius: 9px;
  outline: none;
  background: #111114;
  padding: 8px 10px;
  color: #d8dbe2;
  font: inherit;
  font-size: 0.69rem;
}

.follow-up-date-field input:focus {
  border-color: rgba(142, 162, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(142, 162, 255, 0.055);
}

.follow-up-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.follow-up-presets button {
  min-height: 28px;
  border: 1px solid #303139;
  border-radius: 8px;
  background: #151518;
  padding: 0 9px;
  color: #929aa8;
  font-size: 0.58rem;
  font-weight: 610;
}

.follow-up-presets button:hover {
  border-color: #3b3d47;
  background: #1a1a1f;
  color: #d1d4dc;
}

.follow-up-presets .follow-up-clear {
  margin-left: auto;
  border-color: transparent;
  background: transparent;
  color: #8f6c73;
}

.follow-up-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #292a30;
  padding-top: 10px;
}

.follow-up-current > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.follow-up-current span {
  color: #737b87;
  font-size: 0.57rem;
}

.follow-up-current strong {
  color: #d7dae1;
  font-size: 0.67rem;
  font-weight: 630;
}

.follow-up-current .button {
  min-height: 32px;
  flex: 0 0 auto;
}

/* Light follow-up workflow */
body[data-app-theme="light"] .panel-mini-icon-cyan {
  color: #138da3;
  background: #e9f8fb;
}

body[data-app-theme="light"] .follow-up-summary {
  border-color: #e3e6ee;
  background: #f9fafc;
}

body[data-app-theme="light"] .follow-up-summary > div {
  border-color: #e3e6ee;
}

body[data-app-theme="light"] .follow-up-summary span,
body[data-app-theme="light"] .follow-up-row-date small,
body[data-app-theme="light"] .follow-up-row-copy span {
  color: #8b93a6;
}

body[data-app-theme="light"] .follow-up-summary strong,
body[data-app-theme="light"] .follow-up-row-copy strong {
  color: #34394f;
}

body[data-app-theme="light"] .follow-up-summary-overdue strong,
body[data-app-theme="light"] .follow-up-row.follow-up-overdue .follow-up-row-date strong {
  color: #b65f6c;
}

body[data-app-theme="light"] .follow-up-row {
  border-color: #e7e9ef;
}

body[data-app-theme="light"] .follow-up-row:hover {
  background: #f6f7fb;
}

body[data-app-theme="light"] .follow-up-row.follow-up-today .follow-up-row-date strong {
  color: #188e57;
}

body[data-app-theme="light"] .follow-up-editor {
  border-color: #e0e4ec;
  background: #fafbfe;
}

body[data-app-theme="light"] .follow-up-editor-head p,
body[data-app-theme="light"] .follow-up-date-field > span,
body[data-app-theme="light"] .follow-up-current span {
  color: #8991a4;
}

body[data-app-theme="light"] .follow-up-state {
  background: #eef0ff;
  color: #5d61df;
}

body[data-app-theme="light"] .follow-up-overdue .follow-up-state {
  background: #fff0f2;
  color: #ae5c68;
}

body[data-app-theme="light"] .follow-up-today .follow-up-state,
body[data-app-theme="light"] .follow-up-completed .follow-up-state {
  background: #eaf8f1;
  color: #178d56;
}

body[data-app-theme="light"] .follow-up-date-field input {
  border-color: #dfe3eb;
  background: #ffffff;
  color: #353a50;
}

body[data-app-theme="light"] .follow-up-date-field input:focus {
  border-color: #ccd2fb;
  box-shadow: 0 0 0 3px rgba(98, 95, 241, 0.055);
}

body[data-app-theme="light"] .follow-up-presets button {
  border-color: #e0e4ec;
  background: #ffffff;
  color: #737c91;
}

body[data-app-theme="light"] .follow-up-presets button:hover {
  border-color: #d5dae7;
  background: #f5f6fa;
  color: #3c4258;
}

body[data-app-theme="light"] .follow-up-presets .follow-up-clear {
  border-color: transparent;
  background: transparent;
  color: #a56670;
}

body[data-app-theme="light"] .follow-up-current {
  border-color: #e3e6ee;
}

body[data-app-theme="light"] .follow-up-current strong {
  color: #3e4359;
}

@media (max-width: 560px) {
  .follow-up-summary {
    grid-template-columns: 1fr;
  }

  .follow-up-summary > div {
    border-right: 0;
    border-bottom: 1px solid #292a30;
  }

  .follow-up-summary > div:last-child {
    border-bottom: 0;
  }

  body[data-app-theme="light"] .follow-up-summary > div {
    border-color: #e3e6ee;
  }

  .follow-up-editor-head,
  .follow-up-current {
    align-items: stretch;
    flex-direction: column;
  }

  .follow-up-current .button {
    width: 100%;
  }

  .follow-up-presets .follow-up-clear {
    margin-left: 0;
  }
}


/* Opportunity Intelligence v8 — premium research layer */
.sidebar-intelligence-usage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-top: 12px;
  border-top: 1px solid #292a30;
  padding-top: 10px;
}

.sidebar-intelligence-usage > span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #868e9d;
  font-size: 0.59rem;
  font-weight: 600;
}

.sidebar-intelligence-usage i {
  color: #aab6fb;
  font-size: 0.69rem;
  font-style: normal;
}

.sidebar-intelligence-usage strong {
  flex: 0 0 auto;
  color: #c5c9d4;
  font-size: 0.59rem;
  font-weight: 680;
}

#sidebar-intelligence-note {
  display: block;
  margin-top: 4px;
  color: #666e7a;
  font-size: 0.54rem;
  line-height: 1.35;
}

.signal-intelligence-meta {
  color: #6b65d9 !important;
  font-size: 0.57rem !important;
  font-weight: 680;
}

.intelligence-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(112, 116, 244, 0.27);
  background:
    radial-gradient(circle at 94% -10%, rgba(112, 116, 244, 0.12), transparent 16rem),
    radial-gradient(circle at 12% 112%, rgba(36, 166, 190, 0.06), transparent 16rem),
    linear-gradient(145deg, rgba(112, 116, 244, 0.055), transparent 62%),
    #101013;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.08),
    0 13px 36px rgba(0, 0, 0, 0.06);
}

.intelligence-card::before {
  content: "";
  position: absolute;
  top: -58px;
  right: -36px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(142, 162, 255, 0.08);
  border-radius: 999px;
  pointer-events: none;
}

.intelligence-card > * {
  position: relative;
  z-index: 1;
}

.intelligence-title {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.intelligence-title > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.intelligence-title p {
  margin: 0;
  color: #747c89;
  font-size: 0.62rem;
  line-height: 1.45;
}

.intelligence-glyph {
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(142, 162, 255, 0.22);
  border-radius: 9px;
  background:
    linear-gradient(145deg, rgba(142, 162, 255, 0.15), rgba(112, 188, 201, 0.06));
  color: #b7c1ff;
  font-size: 0.8rem;
  box-shadow: 0 6px 18px rgba(72, 70, 176, 0.10);
}

.intelligence-glyph.is-working {
  animation: intelligencePulse 1.45s ease-in-out infinite;
}

@keyframes intelligencePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

.intelligence-head-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.intelligence-plan-badge,
.intelligence-relevance {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.51rem;
  font-weight: 760;
  letter-spacing: 0.065em;
  white-space: nowrap;
}

.intelligence-plan-badge {
  border: 1px solid rgba(142, 162, 255, 0.25);
  background: rgba(142, 162, 255, 0.09);
  color: #b6c0ff;
}

.intelligence-relevance {
  border: 1px solid #303139;
  background: #151518;
  color: #9ca4b2;
}

.intelligence-high {
  border-color: rgba(111, 214, 160, 0.22);
  background: rgba(111, 214, 160, 0.08);
  color: var(--success);
}

.intelligence-medium {
  border-color: rgba(112, 188, 201, 0.22);
  background: rgba(112, 188, 201, 0.08);
  color: #77cad7;
}

.intelligence-promise,
.intelligence-locked-copy {
  display: grid;
  gap: 5px;
  border: 1px solid #2b2c33;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
  padding: 12px;
}

.intelligence-promise strong,
.intelligence-locked-copy strong {
  color: #d9dce4;
  font-size: 0.72rem;
  font-weight: 650;
}

.intelligence-promise p,
.intelligence-locked-copy p,
.intelligence-error-copy {
  margin: 0;
  color: #7d8592;
  font-size: 0.65rem;
  line-height: 1.55;
}

.intelligence-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.intelligence-capabilities span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(142, 162, 255, 0.16);
  border-radius: 999px;
  background: rgba(142, 162, 255, 0.055);
  padding: 4px 8px;
  color: #939de0;
  font-size: 0.58rem;
  font-weight: 610;
}

.intelligence-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #292a30;
  padding-top: 12px;
}

.intelligence-card-footer > span {
  color: #717987;
  font-size: 0.58rem;
  line-height: 1.4;
}

.intelligence-run {
  min-height: 36px;
  box-shadow: 0 7px 20px rgba(88, 87, 221, 0.14);
}

.intelligence-disabled {
  justify-self: start;
  opacity: 0.65;
}

.intelligence-skeleton {
  display: grid;
  gap: 8px;
}

.intelligence-skeleton span {
  height: 44px;
  overflow: hidden;
  border-radius: 9px;
  background:
    linear-gradient(
      90deg,
      #17171b 0%,
      #202027 44%,
      #17171b 82%
    );
  background-size: 220% 100%;
  animation: intelligenceShimmer 1.5s linear infinite;
}

.intelligence-skeleton span:nth-child(2) {
  width: 84%;
}

.intelligence-skeleton span:nth-child(3) {
  width: 66%;
}

@keyframes intelligenceShimmer {
  from { background-position: 100% 0; }
  to { background-position: -120% 0; }
}

.intelligence-entity {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(112, 188, 201, 0.20);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(112, 188, 201, 0.065), transparent),
    #111215;
  padding: 13px;
}

.intelligence-entity > span {
  color: #78c5d2;
  font-size: 0.52rem;
  font-weight: 760;
  letter-spacing: 0.07em;
}

.intelligence-entity strong {
  color: #e7e9ee;
  font-size: 0.85rem;
  font-weight: 680;
  line-height: 1.35;
}

.intelligence-entity p {
  margin: 0;
  color: #7d8592;
  font-size: 0.62rem;
  line-height: 1.45;
}

.intelligence-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #292a30;
  border-radius: 10px;
  background: #0e0e10;
}

.intelligence-metrics > div {
  min-width: 0;
  display: grid;
  gap: 4px;
  border-right: 1px solid #292a30;
  padding: 10px 9px;
}

.intelligence-metrics > div:last-child {
  border-right: 0;
}

.intelligence-metrics strong {
  color: #e5e6eb;
  font-size: 0.82rem;
  font-weight: 710;
}

.intelligence-metrics span {
  color: #737b88;
  font-size: 0.54rem;
  line-height: 1.3;
}

.intelligence-verification {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #717987;
  font-size: 0.59rem;
}

.intelligence-verification span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  padding: 4px 8px;
}

.intelligence-verification .is-verified {
  background: rgba(111, 214, 160, 0.075);
  color: var(--success);
}

.intelligence-verification strong {
  color: #98a1b2;
  font-size: 0.59rem;
  font-weight: 620;
}

.intelligence-section {
  display: grid;
  gap: 10px;
  border-top: 1px solid #292a30;
  padding-top: 12px;
}

.intelligence-factors {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.intelligence-factors li {
  position: relative;
  padding-left: 15px;
  color: #aab0bd;
  font-size: 0.64rem;
  line-height: 1.5;
}

.intelligence-factors li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #75c898;
  font-weight: 700;
}

.intelligence-direct-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.intelligence-direct-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  border: 1px solid #303139;
  border-radius: 8px;
  background: #151518;
  padding: 4px 8px;
  color: #aab6fb;
  font-size: 0.59rem;
  font-weight: 620;
  text-decoration: none;
}

.intelligence-direct-contact a:hover {
  border-color: #3b3d48;
  background: #1a1a1f;
}

.intelligence-contact-list,
.intelligence-related-list {
  display: grid;
}

.intelligence-contact-list > div,
.intelligence-related-list > div {
  display: grid;
  gap: 3px;
  border-top: 1px solid #25262c;
  padding: 9px 0;
}

.intelligence-contact-list > div:first-child,
.intelligence-related-list > div:first-child {
  border-top: 0;
  padding-top: 0;
}

.intelligence-contact-list > div:last-child,
.intelligence-related-list > div:last-child {
  padding-bottom: 0;
}

.intelligence-contact-list span {
  color: #727a87;
  font-size: 0.56rem;
}

.intelligence-contact-list strong {
  color: #d0d4dc;
  font-size: 0.66rem;
  font-weight: 630;
}

.intelligence-contact-list small {
  color: #737b87;
  font-size: 0.57rem;
}

.intelligence-related-list > div {
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 10px;
}

.intelligence-related-date {
  color: #798190;
  font-size: 0.57rem;
}

.intelligence-related-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.intelligence-related-copy strong {
  overflow: hidden;
  color: #cfd3db;
  font-size: 0.64rem;
  font-weight: 620;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.intelligence-related-copy small {
  color: #717987;
  font-size: 0.57rem;
  line-height: 1.4;
}

.intelligence-next-step {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(142, 162, 255, 0.19);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(142, 162, 255, 0.07), transparent 78%),
    #111115;
  padding: 12px 13px;
}

.intelligence-next-step span {
  color: #98a4eb;
  font-size: 0.51rem;
  font-weight: 760;
  letter-spacing: 0.07em;
}

.intelligence-next-step strong {
  color: #d7dae2;
  font-size: 0.67rem;
  font-weight: 590;
  line-height: 1.55;
}

.intelligence-error {
  border-color: rgba(229, 132, 145, 0.23);
}

.intelligence-error-copy {
  border: 1px solid rgba(229, 132, 145, 0.16);
  border-radius: 9px;
  background: rgba(229, 132, 145, 0.05);
  padding: 10px;
  color: #c98993;
}

/* Light Opportunity Intelligence */
body[data-app-theme="light"] .sidebar-intelligence-usage {
  border-color: #e3e6ee;
}

body[data-app-theme="light"] .sidebar-intelligence-usage > span,
body[data-app-theme="light"] #sidebar-intelligence-note {
  color: #858da0;
}

body[data-app-theme="light"] .sidebar-intelligence-usage i,
body[data-app-theme="light"] .signal-intelligence-meta {
  color: #5c60df !important;
}

body[data-app-theme="light"] .sidebar-intelligence-usage strong {
  color: #555a70;
}

body[data-app-theme="light"] .intelligence-card {
  border-color: #dcdffa;
  background:
    radial-gradient(circle at 94% -10%, rgba(98, 95, 241, 0.11), transparent 16rem),
    radial-gradient(circle at 12% 112%, rgba(17, 169, 195, 0.055), transparent 16rem),
    linear-gradient(145deg, rgba(98, 95, 241, 0.045), transparent 62%),
    #ffffff;
  box-shadow:
    0 1px 2px rgba(37, 44, 83, 0.025),
    0 13px 36px rgba(37, 44, 83, 0.04);
}

body[data-app-theme="light"] .intelligence-title p,
body[data-app-theme="light"] .intelligence-promise p,
body[data-app-theme="light"] .intelligence-locked-copy p,
body[data-app-theme="light"] .intelligence-card-footer > span {
  color: #838c9f;
}

body[data-app-theme="light"] .intelligence-glyph {
  border-color: #dadffc;
  background:
    linear-gradient(145deg, #eeefff, #eef9fb);
  color: #5d61e0;
  box-shadow: 0 6px 16px rgba(79, 78, 221, 0.08);
}

body[data-app-theme="light"] .intelligence-plan-badge {
  border-color: #d9ddfb;
  background: #f0f1ff;
  color: #5a5edf;
}

body[data-app-theme="light"] .intelligence-relevance {
  border-color: #e0e4ec;
  background: #f7f8fb;
  color: #858da0;
}

body[data-app-theme="light"] .intelligence-high {
  border-color: #d2ebdf;
  background: #eaf8f1;
  color: #168d56;
}

body[data-app-theme="light"] .intelligence-medium {
  border-color: #d5ebef;
  background: #eaf8fb;
  color: #168aa1;
}

body[data-app-theme="light"] .intelligence-promise,
body[data-app-theme="light"] .intelligence-locked-copy {
  border-color: #e2e5ed;
  background: rgba(248, 249, 252, 0.78);
}

body[data-app-theme="light"] .intelligence-promise strong,
body[data-app-theme="light"] .intelligence-locked-copy strong {
  color: #34394f;
}

body[data-app-theme="light"] .intelligence-capabilities span {
  border-color: #dfe2fb;
  background: #f4f4ff;
  color: #6064d9;
}

body[data-app-theme="light"] .intelligence-card-footer,
body[data-app-theme="light"] .intelligence-section {
  border-color: #e5e8ef;
}

body[data-app-theme="light"] .intelligence-skeleton span {
  background:
    linear-gradient(
      90deg,
      #f1f2f6 0%,
      #e7e9f0 44%,
      #f1f2f6 82%
    );
  background-size: 220% 100%;
}

body[data-app-theme="light"] .intelligence-entity {
  border-color: #d8ebef;
  background:
    linear-gradient(135deg, rgba(17, 169, 195, 0.055), transparent),
    #fbfeff;
}

body[data-app-theme="light"] .intelligence-entity > span {
  color: #168ca2;
}

body[data-app-theme="light"] .intelligence-entity strong {
  color: #30354b;
}

body[data-app-theme="light"] .intelligence-entity p,
body[data-app-theme="light"] .intelligence-metrics span,
body[data-app-theme="light"] .intelligence-related-date,
body[data-app-theme="light"] .intelligence-related-copy small {
  color: #8991a4;
}

body[data-app-theme="light"] .intelligence-metrics {
  border-color: #e3e6ee;
  background: #f9fafc;
}

body[data-app-theme="light"] .intelligence-metrics > div {
  border-color: #e3e6ee;
}

body[data-app-theme="light"] .intelligence-metrics strong {
  color: #34394f;
}

body[data-app-theme="light"] .intelligence-verification {
  color: #8b93a6;
}

body[data-app-theme="light"] .intelligence-verification span {
  background: #f3f4f7;
}

body[data-app-theme="light"] .intelligence-verification .is-verified {
  background: #eaf8f1;
  color: #168d56;
}

body[data-app-theme="light"] .intelligence-verification strong {
  color: #727b90;
}

body[data-app-theme="light"] .intelligence-factors li {
  color: #555d74;
}

body[data-app-theme="light"] .intelligence-direct-contact a {
  border-color: #dfe3eb;
  background: #ffffff;
  color: #565ade;
}

body[data-app-theme="light"] .intelligence-direct-contact a:hover {
  border-color: #d2d7e4;
  background: #f6f7fb;
}

body[data-app-theme="light"] .intelligence-contact-list > div,
body[data-app-theme="light"] .intelligence-related-list > div {
  border-color: #e6e8ef;
}

body[data-app-theme="light"] .intelligence-contact-list span,
body[data-app-theme="light"] .intelligence-contact-list small {
  color: #8991a4;
}

body[data-app-theme="light"] .intelligence-contact-list strong,
body[data-app-theme="light"] .intelligence-related-copy strong {
  color: #42475d;
}

body[data-app-theme="light"] .intelligence-next-step {
  border-color: #dde0fa;
  background:
    linear-gradient(135deg, rgba(98, 95, 241, 0.055), transparent 78%),
    #fbfbff;
}

body[data-app-theme="light"] .intelligence-next-step span {
  color: #5b5fdd;
}

body[data-app-theme="light"] .intelligence-next-step strong {
  color: #41465c;
}

body[data-app-theme="light"] .intelligence-error-copy {
  border-color: #f0dadd;
  background: #fff4f5;
  color: #a45d68;
}

@media (max-width: 760px) {
  .intelligence-card-footer,
  .intelligence-verification {
    align-items: stretch;
    flex-direction: column;
  }

  .intelligence-card-footer .button {
    width: 100%;
  }

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

  .intelligence-metrics > div:nth-child(2) {
    border-right: 0;
  }

  .intelligence-metrics > div:nth-child(-n+2) {
    border-bottom: 1px solid #292a30;
  }

  body[data-app-theme="light"] .intelligence-metrics > div:nth-child(-n+2) {
    border-color: #e3e6ee;
  }

  .intelligence-related-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}


/* Landing · Opportunity Intelligence */
.landing-intelligence {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 56px;
  align-items: center;
  border-top: 1px solid #e3e7ef;
  padding: 84px 0;
}

.landing-intelligence-copy {
  display: grid;
  gap: 28px;
}

.landing-intelligence-copy h2 {
  max-width: 560px;
  margin: 8px 0 12px;
  color: #171b31;
  font-size: clamp(2rem, 3.4vw, 3.15rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.landing-intelligence-copy > div:first-child > p:last-child {
  max-width: 560px;
  margin: 0;
  color: #737d94;
  font-size: 0.93rem;
  line-height: 1.7;
}

.intelligence-value-list {
  display: grid;
  gap: 12px;
}

.intelligence-value-list > div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.intelligence-value-list > div > span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid #dfe2fb;
  border-radius: 8px;
  background: #f4f4ff;
  color: #5f63df;
  font-size: 0.55rem;
  font-weight: 720;
}

.intelligence-value-list p {
  margin: 2px 0 0;
  color: #7d879a;
  font-size: 0.72rem;
  line-height: 1.55;
}

.intelligence-value-list strong {
  color: #34394f;
  font-weight: 650;
}

.intelligence-beta-note {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  border: 1px solid #d9ddfb;
  border-radius: 999px;
  background: #f1f2ff;
  padding: 7px 10px;
  color: #5d61dd;
  font-size: 0.62rem;
  font-weight: 650;
}

.landing-intelligence-preview {
  position: relative;
}

.landing-intelligence-preview::before {
  content: "";
  position: absolute;
  inset: 8% -5% -8% 14%;
  z-index: 0;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(95, 99, 242, 0.12), rgba(17, 169, 195, 0.03) 52%, transparent 72%);
  filter: blur(12px);
  pointer-events: none;
}

.landing-intelligence-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  border: 1px solid #dce0ee;
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% -6%, rgba(95, 99, 242, 0.12), transparent 16rem),
    radial-gradient(circle at 6% 112%, rgba(17, 169, 195, 0.06), transparent 15rem),
    #ffffff;
  padding: 22px;
  box-shadow:
    0 2px 4px rgba(37, 44, 83, 0.025),
    0 26px 70px rgba(37, 44, 83, 0.10);
}

.landing-intelligence-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.landing-intelligence-head > div {
  display: flex;
  gap: 10px;
  align-items: center;
}

.landing-intelligence-head > div > div {
  display: grid;
  gap: 3px;
}

.intelligence-preview-glyph {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background:
    linear-gradient(145deg, #efefff, #edf9fb);
  color: #5c60df;
  font-weight: 700;
}

.landing-intelligence-head small {
  color: #6564e8;
  font-size: 0.52rem;
  font-weight: 760;
  letter-spacing: 0.07em;
}

.landing-intelligence-head strong {
  color: #252a42;
  font-size: 0.72rem;
  font-weight: 660;
}

.intelligence-preview-badge {
  border: 1px solid #d2ebdf;
  border-radius: 999px;
  background: #eaf8f1;
  padding: 5px 8px;
  color: #168d56;
  font-size: 0.5rem;
  font-weight: 760;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.intelligence-preview-entity {
  display: grid;
  gap: 4px;
  border: 1px solid #d8ebef;
  border-radius: 11px;
  background:
    linear-gradient(135deg, rgba(17, 169, 195, 0.05), transparent),
    #fbfeff;
  padding: 14px;
}

.intelligence-preview-entity span,
.intelligence-preview-next span {
  color: #168ca2;
  font-size: 0.5rem;
  font-weight: 760;
  letter-spacing: 0.07em;
}

.intelligence-preview-entity strong {
  color: #30354b;
  font-size: 0.82rem;
  font-weight: 680;
}

.intelligence-preview-entity small {
  color: #8991a4;
  font-size: 0.59rem;
}

.intelligence-preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #e3e6ee;
  border-radius: 10px;
  background: #f9fafc;
}

.intelligence-preview-metrics > div {
  display: grid;
  gap: 3px;
  border-right: 1px solid #e3e6ee;
  padding: 11px;
}

.intelligence-preview-metrics > div:last-child {
  border-right: 0;
}

.intelligence-preview-metrics strong {
  color: #34394f;
  font-size: 0.82rem;
  font-weight: 700;
}

.intelligence-preview-metrics span {
  color: #8991a4;
  font-size: 0.54rem;
}

.intelligence-preview-factors {
  display: grid;
  gap: 7px;
  border-top: 1px solid #e6e8ef;
  border-bottom: 1px solid #e6e8ef;
  padding: 12px 0;
}

.intelligence-preview-factors span {
  color: #555d74;
  font-size: 0.62rem;
}

.intelligence-preview-next {
  display: grid;
  gap: 5px;
  border: 1px solid #dde0fa;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(98, 95, 241, 0.055), transparent 78%),
    #fbfbff;
  padding: 12px;
}

.intelligence-preview-next span {
  color: #5b5fdd;
}

.intelligence-preview-next strong {
  color: #41465c;
  font-size: 0.64rem;
  font-weight: 590;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .landing-intelligence {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .landing-intelligence-preview {
    width: min(760px, 100%);
  }
}

@media (max-width: 620px) {
  .landing-intelligence {
    padding-block: 62px;
  }

  .landing-intelligence-head {
    flex-direction: column;
  }

  .intelligence-preview-metrics {
    grid-template-columns: 1fr;
  }

  .intelligence-preview-metrics > div {
    border-right: 0;
    border-bottom: 1px solid #e3e6ee;
  }

  .intelligence-preview-metrics > div:last-child {
    border-bottom: 0;
  }
}


/* Guided Watch creation v9 */
.watch-focus-field select {
  min-height: 46px;
  border-radius: 10px;
  font-weight: 620;
}

.watch-focus-summary {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  border: 1px solid #2b2d35;
  border-radius: 11px;
  background:
    linear-gradient(135deg, rgba(142, 162, 255, 0.055), transparent 72%),
    #111114;
  padding: 11px 12px;
}

.watch-focus-summary-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(142, 162, 255, 0.09);
  color: #aeb9fa;
}

.watch-focus-summary-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.watch-focus-summary > span:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.watch-focus-summary strong {
  color: #dfe2e8;
  font-size: 0.69rem;
  font-weight: 650;
}

.watch-focus-summary small {
  color: #767f8c;
  font-size: 0.59rem;
  line-height: 1.4;
}

.filter-advanced-options {
  margin-top: 2px;
  border-top: 0;
}

.filter-advanced-options > summary {
  color: #828b99;
}

.filter-advanced-options[open] {
  border: 1px solid #2b2d34;
  border-radius: 10px;
  background: #101012;
  padding: 0 12px 12px;
}

.filter-advanced-options[open] > summary {
  margin-inline: -1px;
  padding-block: 11px;
}

.filter-advanced-options .advanced-grid {
  padding-top: 1px;
}

/* Light guided Watch creation */
body[data-app-theme="light"] .watch-focus-summary {
  border-color: #e0e4ec;
  background:
    linear-gradient(135deg, rgba(98, 95, 241, 0.04), transparent 72%),
    #fbfcff;
}

body[data-app-theme="light"] .watch-focus-summary-icon {
  background: #eff0ff;
  color: #5d61df;
}

body[data-app-theme="light"] .watch-focus-summary strong {
  color: #353a50;
}

body[data-app-theme="light"] .watch-focus-summary small,
body[data-app-theme="light"] .filter-advanced-options > summary {
  color: #858da1;
}

body[data-app-theme="light"] .filter-advanced-options[open] {
  border-color: #e1e5ed;
  background: #fafbfe;
}


/* Structured Opportunity Matching v10 */
.structured-filter-panel{display:grid;gap:13px;border:1px solid #2c2e36;border-radius:11px;background:linear-gradient(145deg,rgba(112,188,201,.045),transparent 68%),#101113;padding:13px}
.structured-filter-panel.hidden,.structured-filter-grid .field-label.hidden{display:none}
.structured-filter-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.structured-filter-head>div{min-width:0;display:grid;gap:4px}
.structured-filter-head p{margin:0;color:#757e8b;font-size:.61rem;line-height:1.45}
.structured-filter-badge{flex:0 0 auto;display:inline-flex;align-items:center;min-height:21px;border:1px solid rgba(112,188,201,.23);border-radius:999px;background:rgba(112,188,201,.075);padding:3px 7px;color:#7ecbd8;font-size:.49rem;font-weight:760;letter-spacing:.065em}
.structured-filter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.structured-filter-grid .field-label{margin:0}
.money-input{min-height:42px;display:grid;grid-template-columns:30px minmax(0,1fr);align-items:center;overflow:hidden;border:1px solid #303139;border-radius:9px;background:#111114}
.money-input:focus-within{border-color:rgba(142,162,255,.45);box-shadow:0 0 0 3px rgba(142,162,255,.055)}
.money-input>span{display:grid;place-items:center;height:100%;border-right:1px solid #292a30;color:#7f8794;font-size:.67rem}
.money-input input{min-height:40px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.structured-filter-summary{display:flex;flex-wrap:wrap;gap:6px;border-top:1px solid #292a30;padding-top:10px}
.structured-filter-summary span{display:inline-flex;align-items:center;min-height:24px;border:1px solid rgba(111,214,160,.16);border-radius:999px;background:rgba(111,214,160,.055);padding:4px 8px;color:#83cf9f;font-size:.56rem;font-weight:620}
body[data-app-theme="light"] .structured-filter-panel{border-color:#dfe5ec;background:linear-gradient(145deg,rgba(17,169,195,.035),transparent 68%),#fbfcfe}
body[data-app-theme="light"] .structured-filter-head p{color:#8790a3}
body[data-app-theme="light"] .structured-filter-badge{border-color:#d4eaee;background:#edf9fb;color:#168ca2}
body[data-app-theme="light"] .money-input{border-color:#dfe3eb;background:#fff}
body[data-app-theme="light"] .money-input>span{border-color:#e6e8ef;color:#8d95a8}
body[data-app-theme="light"] .structured-filter-summary{border-color:#e5e8ef}
body[data-app-theme="light"] .structured-filter-summary span{border-color:#d7ebdf;background:#edf9f3;color:#168d56}
@media(max-width:620px){.structured-filter-grid{grid-template-columns:1fr}.structured-filter-head{align-items:stretch;flex-direction:column}.structured-filter-badge{width:fit-content}}


/* Opportunity Score v11 */
.intelligence-score-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(142, 162, 255, 0.22);
  border-radius: 12px;
  background:
    radial-gradient(circle at 0 0, rgba(112, 188, 201, 0.08), transparent 46%),
    linear-gradient(135deg, rgba(142, 162, 255, 0.075), transparent 70%),
    #111115;
  padding: 14px;
}

.opportunity-score-value {
  width: 64px;
  height: 64px;
  display: grid;
  place-content: center;
  border: 1px solid #30323a;
  border-radius: 50%;
  background: #0d0d10;
  text-align: center;
}

.opportunity-score-value strong {
  color: #e9ebf0;
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 760;
}

.opportunity-score-value span {
  margin-top: 3px;
  color: #777f8d;
  font-size: 0.5rem;
  font-weight: 650;
}

.opportunity-score-value.intelligence-high {
  border-color: rgba(111, 214, 160, 0.30);
  box-shadow: inset 0 0 0 5px rgba(111, 214, 160, 0.055);
}

.opportunity-score-value.intelligence-medium {
  border-color: rgba(112, 188, 201, 0.28);
  box-shadow: inset 0 0 0 5px rgba(112, 188, 201, 0.055);
}

.opportunity-score-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.opportunity-score-copy > span {
  color: #999ff1;
  font-size: 0.49rem;
  font-weight: 760;
  letter-spacing: 0.075em;
}

.opportunity-score-copy > strong {
  color: #e1e4ea;
  font-size: 0.79rem;
  font-weight: 680;
}

.opportunity-score-copy p {
  max-width: 470px;
  margin: 0;
  color: #7a8290;
  font-size: 0.6rem;
  line-height: 1.45;
}

.opportunity-score-confidence {
  display: grid;
  gap: 3px;
  justify-items: end;
}

.opportunity-score-confidence span {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(142, 162, 255, 0.18);
  border-radius: 999px;
  background: rgba(142, 162, 255, 0.06);
  padding: 4px 8px;
  color: #aab3f4;
  font-size: 0.48rem;
  font-weight: 740;
  letter-spacing: 0.05em;
}

.opportunity-score-confidence small {
  color: #707987;
  font-size: 0.53rem;
}

.opportunity-score-breakdown {
  display: grid;
  gap: 8px;
  border: 1px solid #292a30;
  border-radius: 11px;
  background: #0f0f12;
  padding: 12px;
}

.opportunity-score-row {
  display: grid;
  gap: 5px;
}

.opportunity-score-row + .opportunity-score-row {
  border-top: 1px solid #25262c;
  padding-top: 8px;
}

.opportunity-score-row-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.opportunity-score-row-head span {
  color: #a7aebb;
  font-size: 0.61rem;
  font-weight: 620;
}

.opportunity-score-row-head strong {
  color: #d8dbe2;
  font-size: 0.59rem;
  font-weight: 680;
}

.opportunity-score-track {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #202127;
}

.opportunity-score-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6f72ec, #72bec9);
}

.opportunity-score-row small {
  color: #707987;
  font-size: 0.55rem;
  line-height: 1.4;
}

.opportunity-score-row.is-unavailable {
  opacity: 0.62;
}

.opportunity-score-method {
  margin: -2px 0 0;
  color: #69717e;
  font-size: 0.54rem;
  line-height: 1.45;
}

.opportunity-score-legacy {
  display: grid;
  gap: 5px;
  border: 1px dashed rgba(142, 162, 255, 0.24);
  border-radius: 10px;
  background: rgba(142, 162, 255, 0.045);
  padding: 11px 12px;
}

.opportunity-score-legacy span {
  color: #9da7ed;
  font-size: 0.49rem;
  font-weight: 760;
  letter-spacing: 0.07em;
}

.opportunity-score-legacy strong {
  color: #c9cdd7;
  font-size: 0.63rem;
  font-weight: 590;
  line-height: 1.45;
}

/* Light Opportunity Score */
body[data-app-theme="light"] .intelligence-score-card {
  border-color: #dce0fa;
  background:
    radial-gradient(circle at 0 0, rgba(17, 169, 195, 0.055), transparent 46%),
    linear-gradient(135deg, rgba(98, 95, 241, 0.055), transparent 70%),
    #fcfcff;
}

body[data-app-theme="light"] .opportunity-score-value {
  border-color: #dfe3eb;
  background: #ffffff;
}

body[data-app-theme="light"] .opportunity-score-value strong,
body[data-app-theme="light"] .opportunity-score-copy > strong {
  color: #34394f;
}

body[data-app-theme="light"] .opportunity-score-value span,
body[data-app-theme="light"] .opportunity-score-copy p,
body[data-app-theme="light"] .opportunity-score-confidence small,
body[data-app-theme="light"] .opportunity-score-row small,
body[data-app-theme="light"] .opportunity-score-method {
  color: #858da0;
}

body[data-app-theme="light"] .opportunity-score-copy > span {
  color: #5c60df;
}

body[data-app-theme="light"] .opportunity-score-confidence span {
  border-color: #dde0fa;
  background: #f1f2ff;
  color: #5d61dd;
}

body[data-app-theme="light"] .opportunity-score-breakdown {
  border-color: #e2e5ed;
  background: #fafbfc;
}

body[data-app-theme="light"] .opportunity-score-row + .opportunity-score-row {
  border-color: #e7e9ef;
}

body[data-app-theme="light"] .opportunity-score-row-head span {
  color: #5f6679;
}

body[data-app-theme="light"] .opportunity-score-row-head strong {
  color: #3e4358;
}

body[data-app-theme="light"] .opportunity-score-track {
  background: #e7e9f0;
}

body[data-app-theme="light"] .opportunity-score-legacy {
  border-color: #dcdffa;
  background: #f7f7ff;
}

body[data-app-theme="light"] .opportunity-score-legacy span {
  color: #5e62dd;
}

body[data-app-theme="light"] .opportunity-score-legacy strong {
  color: #4b5167;
}

@media (max-width: 720px) {
  .intelligence-score-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .opportunity-score-confidence {
    grid-column: 1 / -1;
    justify-items: start;
    padding-left: 78px;
  }
}


/* Automated Lead Brief v12 */
.lead-brief-card {
  display: grid;
  gap: 13px;
  border: 1px solid rgba(111, 214, 160, 0.19);
  border-radius: 12px;
  background:
    radial-gradient(circle at 100% 0, rgba(111, 214, 160, 0.07), transparent 36%),
    linear-gradient(145deg, rgba(112, 188, 201, 0.045), transparent 70%),
    #101214;
  padding: 14px;
}

.lead-brief-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.lead-brief-head > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.lead-brief-head span,
.lead-brief-grid span,
.lead-brief-next span {
  color: #7ed09e;
  font-size: 0.49rem;
  font-weight: 760;
  letter-spacing: 0.075em;
}

.lead-brief-head strong {
  color: #e4e7ec;
  font-size: 0.83rem;
  font-weight: 680;
  line-height: 1.35;
}

.lead-brief-copy {
  flex: 0 0 auto;
  min-height: 31px;
  padding-inline: 10px;
  font-size: 0.57rem;
}

.lead-brief-summary {
  margin: 0;
  color: #a1a8b5;
  font-size: 0.66rem;
  line-height: 1.6;
}

.lead-brief-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.lead-brief-grid > div {
  display: grid;
  gap: 5px;
  border: 1px solid #292b31;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.015);
  padding: 10px;
}

.lead-brief-grid p {
  margin: 0;
  color: #8f97a5;
  font-size: 0.6rem;
  line-height: 1.5;
}

.lead-brief-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lead-brief-evidence span {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  border: 1px solid rgba(111, 214, 160, 0.14);
  border-radius: 999px;
  background: rgba(111, 214, 160, 0.045);
  padding: 4px 8px;
  color: #8dcba4;
  font-size: 0.54rem;
  font-weight: 590;
}

.lead-brief-next {
  display: grid;
  gap: 5px;
  border-top: 1px solid #292b31;
  padding-top: 11px;
}

.lead-brief-next strong {
  color: #d0d5dd;
  font-size: 0.64rem;
  font-weight: 590;
  line-height: 1.55;
}

.lead-brief-disclaimer {
  color: #68717e;
  font-size: 0.52rem;
  line-height: 1.45;
}

/* Light Automated Lead Brief */
body[data-app-theme="light"] .lead-brief-card {
  border-color: #d6eadf;
  background:
    radial-gradient(circle at 100% 0, rgba(30, 170, 95, 0.055), transparent 36%),
    linear-gradient(145deg, rgba(17, 169, 195, 0.035), transparent 70%),
    #fcfefd;
}

body[data-app-theme="light"] .lead-brief-head span,
body[data-app-theme="light"] .lead-brief-grid span,
body[data-app-theme="light"] .lead-brief-next span {
  color: #168d56;
}

body[data-app-theme="light"] .lead-brief-head strong {
  color: #34394f;
}

body[data-app-theme="light"] .lead-brief-summary {
  color: #687186;
}

body[data-app-theme="light"] .lead-brief-grid > div {
  border-color: #e2e6ec;
  background: #ffffff;
}

body[data-app-theme="light"] .lead-brief-grid p {
  color: #717b90;
}

body[data-app-theme="light"] .lead-brief-evidence span {
  border-color: #d7ebdf;
  background: #edf9f3;
  color: #168d56;
}

body[data-app-theme="light"] .lead-brief-next {
  border-color: #e4e8ee;
}

body[data-app-theme="light"] .lead-brief-next strong {
  color: #4a5066;
}

body[data-app-theme="light"] .lead-brief-disclaimer {
  color: #8b93a5;
}

@media (max-width: 720px) {
  .lead-brief-head {
    flex-direction: column;
  }

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

  .lead-brief-copy {
    width: 100%;
  }
}


/* Priority Inbox v13 */
.priority-inbox-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 16px;
}

.priority-summary-card {
  min-width: 0;
  display: grid;
  gap: 3px;
  border: 1px solid #2b2d34;
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.018), transparent),
    #111114;
  padding: 10px 11px;
}

.priority-summary-card > span {
  color: #737b89;
  font-size: .48rem;
  font-weight: 760;
  letter-spacing: .07em;
}

.priority-summary-card > strong {
  color: #e1e4e9;
  font-size: 1.05rem;
  font-weight: 730;
  line-height: 1.1;
}

.priority-summary-card > small {
  overflow: hidden;
  color: #747d8a;
  font-size: .54rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.priority-summary-card.priority-summary-high {
  border-color: rgba(111,214,160,.20);
  background:
    linear-gradient(145deg, rgba(111,214,160,.065), transparent 78%),
    #111414;
}

.priority-summary-high > span,
.priority-summary-high > strong {
  color: #76c997;
}

.priority-summary-card.priority-summary-top {
  border-color: rgba(142,162,255,.22);
  background:
    linear-gradient(145deg, rgba(142,162,255,.065), transparent 78%),
    #111116;
}

.priority-summary-top > span {
  color: #9ca8ee;
}

.priority-filter-shell {
  display: grid;
  gap: 8px;
  width: 100%;
}

.priority-filter-primary {
  align-items: end;
}

.priority-more-filters {
  width: 100%;
  border-top: 1px solid #292a30;
  padding-top: 8px;
}

.priority-more-filters > summary {
  width: fit-content;
  cursor: pointer;
  color: #7d8694;
  font-size: .59rem;
  font-weight: 620;
  list-style: none;
}

.priority-more-filters > summary::-webkit-details-marker {
  display: none;
}

.priority-more-filters > summary::before {
  content: "＋";
  margin-right: 5px;
  color: #919af0;
}

.priority-more-filters[open] > summary::before {
  content: "−";
}

.priority-filter-secondary {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 8px;
  margin-top: 9px;
}

.priority-score-pill {
  flex: 0 0 auto;
  min-width: 50px;
  min-height: 43px;
  display: grid;
  place-content: center;
  gap: 2px;
  border: 1px solid #303139;
  border-radius: 9px;
  background: #141417;
  padding: 5px 7px;
  text-align: center;
}

.priority-score-pill strong {
  color: #e1e4e9;
  font-size: .77rem;
  font-weight: 760;
  line-height: 1;
}

.priority-score-pill small {
  color: #7a8390;
  font-size: .42rem;
  font-weight: 760;
  letter-spacing: .055em;
}

.priority-score-pill.priority-high {
  border-color: rgba(111,214,160,.25);
  background: rgba(111,214,160,.065);
}

.priority-score-pill.priority-high strong,
.priority-score-pill.priority-high small {
  color: #77cb99;
}

.priority-score-pill.priority-medium {
  border-color: rgba(112,188,201,.23);
  background: rgba(112,188,201,.06);
}

.priority-score-pill.priority-medium strong,
.priority-score-pill.priority-medium small {
  color: #77c5d1;
}

.priority-score-pill.priority-standard {
  border-color: rgba(142,162,255,.20);
  background: rgba(142,162,255,.05);
}

.priority-score-pill.priority-standard strong {
  color: #adb7ef;
}

.priority-score-pill.priority-unscored {
  border-style: dashed;
  opacity: .72;
}

.signal-row-end {
  min-width: 118px;
}

body[data-app-theme="light"] .priority-summary-card {
  border-color: #e1e4eb;
  background:
    linear-gradient(145deg, rgba(255,255,255,.8), transparent),
    #fafbfc;
}

body[data-app-theme="light"] .priority-summary-card > span,
body[data-app-theme="light"] .priority-summary-card > small {
  color: #8790a3;
}

body[data-app-theme="light"] .priority-summary-card > strong {
  color: #34394f;
}

body[data-app-theme="light"] .priority-summary-card.priority-summary-high {
  border-color: #d6eadf;
  background:
    linear-gradient(145deg, rgba(30,170,95,.05), transparent 78%),
    #fbfefc;
}

body[data-app-theme="light"] .priority-summary-high > span,
body[data-app-theme="light"] .priority-summary-high > strong {
  color: #168d56;
}

body[data-app-theme="light"] .priority-summary-card.priority-summary-top {
  border-color: #dde0fa;
  background:
    linear-gradient(145deg, rgba(98,95,241,.05), transparent 78%),
    #fcfcff;
}

body[data-app-theme="light"] .priority-summary-top > span {
  color: #5d61dd;
}

body[data-app-theme="light"] .priority-more-filters {
  border-color: #e4e7ed;
}

body[data-app-theme="light"] .priority-more-filters > summary {
  color: #778096;
}

body[data-app-theme="light"] .priority-score-pill {
  border-color: #dfe3eb;
  background: #f7f8fa;
}

body[data-app-theme="light"] .priority-score-pill strong {
  color: #3b4055;
}

body[data-app-theme="light"] .priority-score-pill.priority-high {
  border-color: #d4eadf;
  background: #ebf8f1;
}

body[data-app-theme="light"] .priority-score-pill.priority-high strong,
body[data-app-theme="light"] .priority-score-pill.priority-high small {
  color: #168d56;
}

body[data-app-theme="light"] .priority-score-pill.priority-medium {
  border-color: #d6eaee;
  background: #edf9fb;
}

body[data-app-theme="light"] .priority-score-pill.priority-medium strong,
body[data-app-theme="light"] .priority-score-pill.priority-medium small {
  color: #168ba2;
}

body[data-app-theme="light"] .priority-score-pill.priority-standard {
  border-color: #dfe2fa;
  background: #f3f3ff;
}

body[data-app-theme="light"] .priority-score-pill.priority-standard strong {
  color: #5f63da;
}

@media (max-width: 1040px) {
  .priority-inbox-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .priority-filter-secondary {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

@media (max-width: 680px) {
  .priority-inbox-summary,
  .priority-filter-secondary {
    grid-template-columns: 1fr;
  }

  .priority-score-pill {
    min-width: 44px;
  }
}


/* Password Recovery v14 */
.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.text-link-button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: #8f99ee;
  font: inherit;
  font-size: .58rem;
  font-weight: 620;
  cursor: pointer;
}

.text-link-button:hover {
  color: #aeb5ff;
  text-decoration: underline;
}

.password-recovery-card {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  border-top: 1px solid #292b31;
  padding-top: 18px;
}

.password-recovery-card.hidden {
  display: none;
}

.auth-card-heading.compact {
  gap: 4px;
}

.auth-card-heading.compact h3 {
  margin: 0;
  color: #eef0f5;
  font-size: 1rem;
  font-weight: 680;
}

.auth-card-heading.compact p:last-child {
  margin: 0;
  color: #7e8796;
  font-size: .64rem;
  line-height: 1.5;
}

body[data-app-theme="light"] .text-link-button {
  color: #5e62dd;
}

body[data-app-theme="light"] .text-link-button:hover {
  color: #4549c7;
}

body[data-app-theme="light"] .password-recovery-card {
  border-color: #e3e6ed;
}

body[data-app-theme="light"] .auth-card-heading.compact h3 {
  color: #34394f;
}

body[data-app-theme="light"] .auth-card-heading.compact p:last-child {
  color: #7f8799;
}


/* Account & Security v15 */
.sidebar-account-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.account-settings-card {
  width: min(720px, calc(100vw - 32px));
  max-height: min(820px, calc(100vh - 36px));
  overflow: auto;
}

.account-settings-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.account-settings-section {
  display: grid;
  gap: 14px;
  border: 1px solid #2b2d34;
  border-radius: 12px;
  background: #111216;
  padding: 14px;
}

.account-settings-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.account-settings-section-head > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.account-settings-section-head p {
  margin: 0;
  color: #7a8391;
  font-size: .62rem;
  line-height: 1.5;
}

.account-security-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border: 1px solid rgba(111,214,160,.18);
  border-radius: 999px;
  background: rgba(111,214,160,.055);
  padding: 4px 8px;
  color: #79ca99;
  font-size: .48rem;
  font-weight: 760;
  letter-spacing: .065em;
}

.account-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.account-detail-grid > div {
  min-width: 0;
  display: grid;
  gap: 4px;
  border: 1px solid #292b31;
  border-radius: 9px;
  background: #0e0f12;
  padding: 10px;
}

.account-detail-grid span {
  color: #747d8c;
  font-size: .52rem;
  font-weight: 650;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.account-detail-grid strong {
  overflow: hidden;
  color: #dfe3e9;
  font-size: .65rem;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-security-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.account-security-form .account-security-actions,
.account-security-form .status-message {
  grid-column: 1 / -1;
}

.account-security-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.danger-zone {
  border-color: rgba(238,101,112,.20);
  background:
    linear-gradient(145deg, rgba(238,101,112,.035), transparent 72%),
    #121114;
}

.button-danger-secondary {
  width: fit-content;
  border: 1px solid rgba(238,101,112,.28);
  background: rgba(238,101,112,.045);
  color: #e9828b;
}

.button-danger-secondary:hover {
  border-color: rgba(238,101,112,.42);
  background: rgba(238,101,112,.075);
}

.button-danger {
  border: 1px solid #d85e69;
  background: #d85e69;
  color: #fff;
}

.button-danger:hover {
  border-color: #e36b76;
  background: #e36b76;
}

.button-danger:disabled,
.button-danger-secondary:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.delete-account-confirm {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border-top: 1px solid rgba(238,101,112,.14);
  padding-top: 13px;
}

.delete-account-confirm.hidden {
  display: none;
}

.delete-account-confirm .danger-warning,
.delete-account-confirm .account-security-actions,
.delete-account-confirm .status-message {
  grid-column: 1 / -1;
}

.danger-warning {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(238,101,112,.18);
  border-radius: 9px;
  background: rgba(238,101,112,.045);
  padding: 10px;
}

.danger-warning strong {
  color: #ef969e;
  font-size: .66rem;
  font-weight: 680;
}

.danger-warning p {
  margin: 0;
  color: #8c7a80;
  font-size: .58rem;
  line-height: 1.5;
}

body[data-app-theme="light"] .account-settings-section {
  border-color: #e1e5ec;
  background: #fbfcfd;
}

body[data-app-theme="light"] .account-settings-section-head p {
  color: #818a9d;
}

body[data-app-theme="light"] .account-security-badge {
  border-color: #d7ebdf;
  background: #edf9f3;
  color: #168d56;
}

body[data-app-theme="light"] .account-detail-grid > div {
  border-color: #e3e6ed;
  background: #fff;
}

body[data-app-theme="light"] .account-detail-grid span {
  color: #8b93a5;
}

body[data-app-theme="light"] .account-detail-grid strong {
  color: #3a4055;
}

body[data-app-theme="light"] .danger-zone {
  border-color: #f1d8dc;
  background:
    linear-gradient(145deg, rgba(216,94,105,.035), transparent 72%),
    #fffdfd;
}

body[data-app-theme="light"] .button-danger-secondary {
  border-color: #edccd1;
  background: #fff7f8;
  color: #c6535e;
}

body[data-app-theme="light"] .danger-warning {
  border-color: #f0d5d9;
  background: #fff7f8;
}

body[data-app-theme="light"] .danger-warning strong {
  color: #b94c56;
}

body[data-app-theme="light"] .danger-warning p {
  color: #92777b;
}

@media (max-width: 720px) {
  .account-detail-grid,
  .account-security-form,
  .delete-account-confirm {
    grid-template-columns: 1fr;
  }

  .account-settings-card {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }

  .account-settings-body {
    padding: 12px;
  }

  .account-settings-section-head {
    flex-direction: column;
  }
}


/* First-run onboarding v16 */
.first-run-onboarding {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(290px, .75fr);
  gap: 18px;
  margin-bottom: 18px;
  border: 1px solid rgba(142,162,255,.20);
  border-radius: 16px;
  background:
    radial-gradient(circle at 0 0, rgba(112,188,201,.08), transparent 42%),
    linear-gradient(135deg, rgba(142,162,255,.075), transparent 70%),
    #111216;
  padding: 20px;
}

.first-run-onboarding.hidden {
  display: none;
}

.first-run-copy {
  display: grid;
  align-content: start;
  gap: 9px;
}

.first-run-copy h2 {
  margin: 0;
  max-width: 620px;
  color: #eef0f5;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.025em;
}

.first-run-copy > p:last-of-type {
  max-width: 660px;
  margin: 0;
  color: #8790a0;
  font-size: .67rem;
  line-height: 1.6;
}

.first-run-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 8px;
  margin-top: 8px;
}

.first-run-steps > div {
  display: grid;
  gap: 5px;
  border: 1px solid #2b2e36;
  border-radius: 10px;
  background: rgba(255,255,255,.018);
  padding: 11px;
}

.first-run-steps span {
  color: #8f98ef;
  font-size: .49rem;
  font-weight: 760;
  letter-spacing: .07em;
}

.first-run-steps strong {
  color: #dce0e7;
  font-size: .64rem;
  font-weight: 650;
}

.first-run-steps small {
  color: #707988;
  font-size: .55rem;
  line-height: 1.45;
}

.first-run-starters {
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid #2c2f37;
  border-radius: 12px;
  background: #0f1013;
  padding: 13px;
}

.onboarding-watch-card {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #2a2c33;
  border-radius: 9px;
  background: #141519;
  padding: 10px;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color .16s ease,
    background .16s ease,
    transform .16s ease;
}

.onboarding-watch-card:hover {
  border-color: #44485a;
  background: #181a20;
  transform: translateY(-1px);
}

.onboarding-watch-card.featured {
  border-color: rgba(142,162,255,.27);
  background:
    linear-gradient(135deg, rgba(142,162,255,.07), transparent 72%),
    #15161b;
}

.onboarding-watch-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 750;
}

.onboarding-watch-card > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.onboarding-watch-card strong {
  color: #dfe3ea;
  font-size: .62rem;
  font-weight: 650;
}

.onboarding-watch-card small {
  color: #747d8c;
  font-size: .53rem;
  line-height: 1.4;
}

.onboarding-watch-arrow {
  color: #818b9c;
  font-size: .9rem;
}

.onboarding-custom-watch {
  justify-self: start;
  margin-top: 2px;
}

.first-watch-success {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
  border: 1px solid rgba(111,214,160,.20);
  border-radius: 11px;
  background: rgba(111,214,160,.055);
  padding: 11px 12px;
}

.first-watch-success.hidden {
  display: none;
}

.first-watch-success-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(111,214,160,.11);
  color: #79cd99;
  font-size: .68rem;
  font-weight: 800;
}

.first-watch-success > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.first-watch-success strong {
  color: #dfe5e4;
  font-size: .65rem;
  font-weight: 680;
}

.first-watch-success p {
  margin: 0;
  color: #7f8f88;
  font-size: .56rem;
  line-height: 1.45;
}

body[data-app-theme="light"] .first-run-onboarding {
  border-color: #dde0fa;
  background:
    radial-gradient(circle at 0 0, rgba(17,169,195,.05), transparent 42%),
    linear-gradient(135deg, rgba(98,95,241,.05), transparent 70%),
    #fcfcff;
}

body[data-app-theme="light"] .first-run-copy h2 {
  color: #34394f;
}

body[data-app-theme="light"] .first-run-copy > p:last-of-type {
  color: #778095;
}

body[data-app-theme="light"] .first-run-steps > div,
body[data-app-theme="light"] .first-run-starters,
body[data-app-theme="light"] .onboarding-watch-card {
  border-color: #e1e5ec;
  background: #fff;
}

body[data-app-theme="light"] .onboarding-watch-card.featured {
  border-color: #dce0fa;
  background:
    linear-gradient(135deg, rgba(98,95,241,.045), transparent 72%),
    #fdfdff;
}

body[data-app-theme="light"] .first-run-steps strong,
body[data-app-theme="light"] .onboarding-watch-card strong {
  color: #40465b;
}

body[data-app-theme="light"] .first-run-steps small,
body[data-app-theme="light"] .onboarding-watch-card small {
  color: #8790a3;
}

body[data-app-theme="light"] .first-watch-success {
  border-color: #d7ebdf;
  background: #edf9f3;
}

body[data-app-theme="light"] .first-watch-success strong {
  color: #24563b;
}

body[data-app-theme="light"] .first-watch-success p {
  color: #648070;
}

@media (max-width: 900px) {
  .first-run-onboarding {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .first-run-steps {
    grid-template-columns: 1fr;
  }

  .first-run-onboarding {
    padding: 14px;
  }
}


/* System health banner v17 */
.system-health-banner {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  border: 1px solid rgba(237,180,83,.22);
  border-radius: 10px;
  background: rgba(237,180,83,.055);
  padding: 10px 12px;
}

.system-health-banner.hidden {
  display: none;
}

.system-health-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(237,180,83,.12);
  color: #e3b256;
  font-size: .68rem;
  font-weight: 800;
}

.system-health-banner > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.system-health-banner strong {
  color: #e1d0ae;
  font-size: .62rem;
  font-weight: 670;
}

.system-health-banner p {
  margin: 0;
  color: #9a8c72;
  font-size: .55rem;
  line-height: 1.45;
}

body[data-app-theme="light"] .system-health-banner {
  border-color: #efdcae;
  background: #fffaf0;
}

body[data-app-theme="light"] .system-health-icon {
  background: #fff0cb;
  color: #b98020;
}

body[data-app-theme="light"] .system-health-banner strong {
  color: #73531f;
}

body[data-app-theme="light"] .system-health-banner p {
  color: #92784e;
}


.account-inline-note {
  align-self: center;
  color: #7c8595;
  font-size: .57rem;
  line-height: 1.45;
}

body[data-app-theme="light"] .account-inline-note {
  color: #818a9d;
}


/* Dynamic pricing v18 */
.pricing-section {
  display: grid;
  gap: 18px;
  padding: 56px 0;
}

.pricing-section.hidden {
  display: none;
}

.pricing-heading {
  max-width: 720px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.pricing-card {
  position: relative;
  display: grid;
  gap: 18px;
  border: 1px solid #2b2e36;
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.018), transparent),
    #111216;
  padding: 18px;
}

.pricing-card.featured {
  border-color: rgba(142,162,255,.28);
  background:
    linear-gradient(145deg, rgba(142,162,255,.07), transparent 72%),
    #121319;
}

.pricing-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border: 1px solid rgba(142,162,255,.20);
  border-radius: 999px;
  background: rgba(142,162,255,.07);
  padding: 4px 8px;
  color: #a9b2f4;
  font-size: .47rem;
  font-weight: 760;
  letter-spacing: .065em;
}

.pricing-card-head {
  display: grid;
  gap: 10px;
}

.pricing-card-head > span {
  color: #a7afbd;
  font-size: .66rem;
  font-weight: 650;
}

.pricing-card-head > strong {
  color: #eef0f5;
  font-size: 1.85rem;
  line-height: 1;
  font-weight: 720;
  letter-spacing: -.04em;
}

.pricing-card-head small {
  color: #727b8a;
  font-size: .58rem;
  font-weight: 520;
  letter-spacing: 0;
}

.pricing-features {
  display: grid;
  gap: 8px;
  border-top: 1px solid #292b31;
  padding-top: 14px;
}

.pricing-features span {
  color: #8992a1;
  font-size: .59rem;
  line-height: 1.45;
}

.pricing-cta {
  width: 100%;
  justify-content: center;
}

.pricing-footnote {
  margin: 0;
  color: #737c8b;
  font-size: .56rem;
  line-height: 1.5;
}

body[data-app-theme="light"] .pricing-card {
  border-color: #e1e5ec;
  background: #fff;
}

body[data-app-theme="light"] .pricing-card.featured {
  border-color: #dce0fa;
  background:
    linear-gradient(145deg, rgba(98,95,241,.045), transparent 72%),
    #fdfdff;
}

body[data-app-theme="light"] .pricing-card-head > span,
body[data-app-theme="light"] .pricing-features span,
body[data-app-theme="light"] .pricing-footnote {
  color: #7f889b;
}

body[data-app-theme="light"] .pricing-card-head > strong {
  color: #34394f;
}

body[data-app-theme="light"] .pricing-features {
  border-color: #e5e8ee;
}


/* Soonfind brand system */
.brand-mark {
  width: 30px !important;
  height: 30px !important;
  flex: 0 0 30px;
  border: 0 !important;
  border-radius: 0 !important;
  background: url("./soonfind-mark.svg") center / contain no-repeat !important;
  box-shadow: none !important;
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  display: none !important;
}

.auth-brand,
.sidebar-brand,
.preview-brand {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.marketing-shell .brand-mark,
body[data-app-theme="light"] .brand-mark,
body[data-app-theme="dark"] .brand-mark {
  background: url("./soonfind-mark.svg") center / contain no-repeat !important;
}
