:root {
  color-scheme: light;
  --ink: #071a3d;
  --muted: #53657f;
  --line: #d8e2ee;
  --panel: #ffffff;
  --soft: #f4f8fc;
  --navy: #0a2f67;
  --red: #d31222;
  --gold: #d99b00;
  --green: #1f8f55;
  --cyan: #0b91c8;
  --shadow: 0 18px 40px rgba(10, 47, 103, 0.1);
  font-family: Inter, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #eef4fb 100%);
  overflow-x: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.topbar {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 34px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-width: 310px;
  flex: 0 0 330px;
}

.brand img {
  display: block;
  width: min(330px, 100%);
  height: auto;
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
}

.topnav-item,
.tab,
.rail-link,
.bottom-item,
.auth-header-button,
.command {
  border: 0;
  background: transparent;
  color: var(--ink);
  min-width: 0;
}

.topnav-item {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 6px;
  font-weight: 700;
}

.topnav-item:hover,
.topnav-item.active {
  background: #eaf2fb;
}

.auth-header-button {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid #c9d9e8;
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 900;
  font-size: 15px;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(8, 39, 91, 0.08);
}

.auth-header-button.signed-in {
  padding: 4px 10px 4px 4px;
  background: #f8fbff;
  color: var(--ink);
}

#authHeaderLabel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.account-avatar {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--red);
  color: #ffffff;
  font-weight: 900;
}

.account-label {
  font-weight: 800;
}

.account-menu {
  position: absolute;
  right: 26px;
  top: 68px;
  z-index: 60;
  width: 240px;
  display: none;
  padding: 10px;
  border: 1px solid #c9d9e8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(5, 24, 48, 0.18);
}

.account-menu.open {
  display: block;
}

.account-menu-email {
  padding: 8px 10px 10px;
  border-bottom: 1px solid var(--line);
  color: #405879;
  font-size: 13px;
  word-break: break-word;
}

.account-menu button {
  width: 100%;
  min-height: 40px;
  margin-top: 8px;
  border: 0;
  border-radius: 6px;
  background: #f7f9fc;
  color: var(--ink);
  font-weight: 900;
  text-align: left;
  padding: 0 10px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}

.status-dot.live {
  background: var(--green);
}

.status-dot.blocked {
  background: var(--red);
}

.workspace-layout {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 20px 20px 34px;
  display: grid;
  grid-template-columns: 284px minmax(0, 1fr) 330px;
  gap: 16px;
  flex: 1;
}

.left-rail,
.right-rail,
.center-panel {
  min-width: 0;
}

.left-rail {
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 104px;
  max-height: calc(100vh - 128px);
  overflow: auto;
}

.rail-section,
.progress-card,
.center-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.rail-section {
  padding: 0 14px 12px;
}

.lifecycle-group {
  padding: 13px 0 0;
}

.left-rail .rail-section {
  background: #073f49;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.rail-eyebrow,
.section-kicker,
.card-eyebrow {
  display: block;
  color: var(--red);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 10px;
}

.left-rail .rail-eyebrow {
  color: #ffffff;
  background: transparent;
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin: 2px 0 12px;
  padding: 0 0 9px 14px;
  position: relative;
  border-bottom: 1px solid rgba(217, 155, 0, 0.54);
  text-shadow: none;
}

.left-rail .rail-eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 2px rgba(211, 18, 34, 0.16);
}

.rail-link {
  width: 100%;
  min-height: 36px;
  text-align: left;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.22;
}

.left-rail .rail-link {
  color: #f7fcff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  margin-top: 2px;
  padding-left: 10px;
  padding-right: 10px;
  font-size: 12.5px;
  font-weight: 700;
  min-height: 34px;
}

.rail-link:hover,
.rail-link.active {
  color: var(--ink);
  background: #edf4fb;
}

.left-rail .rail-link:hover,
.left-rail .rail-link.active {
  color: #ffffff;
  background: #147f8d;
  box-shadow: inset 3px 0 0 #ffffff;
}

.center-panel {
  overflow: hidden;
  max-width: 100%;
}

.surface-header {
  min-height: 0;
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: end;
}

.surface-subtitle {
  display: none;
}

.signals-page .center-panel {
  background: #ffffff;
}

.signals-page .surface-header {
  padding: 24px 24px 0;
  gap: 20px;
  border-bottom: 1px solid #d8e2ee;
  background: #ffffff;
}

.signals-page .section-kicker {
  display: none;
}

.signals-page h1 {
  font-size: clamp(38px, 3.25vw, 52px);
  line-height: 1.05;
  max-width: 920px;
  color: #071a3d;
  font-weight: 650;
  letter-spacing: 0;
}

.signals-page .surface-subtitle {
  display: block;
  margin: 12px 0 0;
  color: #435574;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.35;
  font-weight: 400;
}

.signals-page .tabbar {
  gap: 30px;
  align-items: end;
  border: 0;
}

.signals-page .tab {
  min-height: 42px;
  padding: 0 7px 11px;
  border-radius: 0;
  color: #31445f;
  background: transparent;
  font-size: 17px;
  font-weight: 500;
  border-bottom: 3px solid transparent;
}

.signals-page .tab.active {
  color: #005bd8;
  background: transparent;
  border-color: #0d63d8;
  padding: 0 7px 11px;
}

.signals-page .surface {
  padding-top: 20px;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 2.2vw, 42px);
  line-height: 1.08;
  max-width: 760px;
  letter-spacing: 0;
  font-weight: 750;
  overflow-wrap: break-word;
  word-break: normal;
}

h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: anywhere;
}

.tabbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
}

.tab {
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: #334f70;
  background: transparent;
  font-size: 16px;
  font-weight: 900;
  box-shadow: none;
}

.tab.active {
  color: #ffffff;
  background: var(--navy);
  border-color: var(--navy);
  padding: 0 16px;
}

.surface {
  padding: 24px 28px 32px;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.lead {
  color: #233c61;
  font-size: 16.5px;
  line-height: 1.5;
  max-width: 760px;
}

.surface h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.surface h2::before,
.surface h2::after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}

.grid {
  display: grid;
  gap: 14px;
}

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

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

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid.five-choice {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.info-card,
.signal-item,
.choice-card,
.runtime-banner {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.info-card strong,
.choice-card strong {
  display: block;
  font-size: 19px;
  margin-bottom: 8px;
}

.info-card p,
.choice-card p,
.signal-item p {
  color: #29476d;
  line-height: 1.45;
  margin-bottom: 0;
}

.choice-card {
  text-align: left;
  border-top: 4px solid var(--navy);
}

.choice-card:nth-child(2) {
  border-top-color: var(--gold);
}

.choice-card:nth-child(3) {
  border-top-color: var(--green);
}

.choice-card:nth-child(4) {
  border-top-color: var(--red);
}

.choice-card:nth-child(5) {
  border-top-color: var(--cyan);
}

.choice-card.active {
  outline: 3px solid rgba(10, 47, 103, 0.16);
}

.action-grid {
  margin-top: 22px;
}

.action-card {
  min-height: 190px;
  display: block;
}

.command {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 6px;
  background: var(--red);
  color: white;
  font-weight: 800;
  margin-top: 16px;
}

.workspace-cta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin: 22px 0;
  padding: 18px;
  border: 1px solid #c8d9ea;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
}

.workspace-cta .command {
  flex: 0 0 auto;
  min-width: 158px;
  min-height: 46px;
  margin-top: 0;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 15px;
  white-space: nowrap;
}

.workspace-cta strong {
  display: block;
  font-size: 20px;
  margin-bottom: 5px;
}

.workspace-cta p {
  margin: 0;
  color: #36536f;
}

.secondary-command {
  background: #ffffff;
  color: var(--navy);
  border: 1px solid var(--navy);
}

.muted-note {
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

.runtime-banner {
  background: #fffaf0;
  border-color: #efcf7a;
  color: #624500;
  margin-bottom: 18px;
}

.signal-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.intelligence-feed {
  display: grid;
  gap: 14px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.intelligence-product-panel {
  border: 1px solid #d7e2ee;
  border-radius: 8px;
  background: #ffffff;
  padding: 30px 34px 32px;
  box-shadow: 0 10px 26px rgba(17, 43, 73, 0.04);
  font-family: Inter, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
}

.intelligence-panel-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
}

.intelligence-panel-title {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 8px;
  color: #071d3a;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 750;
}

.surface .intelligence-panel-title::before,
.surface .intelligence-panel-title::after,
.surface .latest-intelligence-header h3::before,
.surface .latest-intelligence-header h3::after {
  content: none;
}

.ui-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.title-info-icon {
  width: 16px;
  height: 16px;
  color: #334f70;
  stroke-width: 2;
}

.intelligence-panel-header p {
  margin: 0;
  color: #4f617d;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 400;
}

.intelligence-panel-actions {
  display: grid;
  grid-template-columns: auto auto;
  gap: 14px;
  align-items: center;
  justify-items: end;
}

.saved-searches {
  grid-column: 1 / -1;
}

.secondary-action {
  min-height: 38px;
  border: 1px solid #cfdbe8;
  border-radius: 6px;
  background: #ffffff;
  color: #122842;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.secondary-action:disabled {
  opacity: 1;
}

.feed-health {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #435b79;
  font-size: 13px;
  font-weight: 500;
}

.feed-health span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #45b879;
}

.intelligence-control-band {
  display: grid;
  gap: 22px;
  margin-top: 4px;
}

.article-feed,
.signal-list.article-feed {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.stored-window-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.stored-window-control {
  display: grid;
  grid-template-columns: minmax(260px, 530px);
  gap: 8px;
  align-items: start;
  justify-content: start;
}

.stored-window-control label {
  color: #112842;
  font-size: 13px;
  font-weight: 700;
  text-transform: none;
}

.select-with-icon {
  position: relative;
  width: min(100%, 530px);
}

.select-with-icon .ui-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  color: #405878;
  transform: translateY(-50%);
  pointer-events: none;
}

.stored-window-control select {
  border: 1px solid #c9d8e6;
  border-radius: 6px;
  background: #ffffff;
  color: #0b2744;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  min-height: 42px;
  padding: 8px 40px 8px 42px;
  width: 100%;
}

.stored-window-tabs a,
.stored-filter-group a,
.stored-filter-clear {
  border: 1px solid #cddbe8;
  border-radius: 6px;
  color: #17395d;
  background: #ffffff;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  padding: 7px 9px;
  text-decoration: none;
}

.stored-window-tabs a.active,
.stored-filter-group a.active {
  background: #123a5c;
  border-color: #123a5c;
  color: #ffffff;
}

.stored-filter-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px 0;
  align-items: end;
  border: 1px solid #dbe6ef;
  border-radius: 8px;
  background: #ffffff;
  padding: 18px 0;
}

.stored-filter-group {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 0 22px;
  border-left: 1px solid #dbe6ef;
}

.stored-filter-group:first-child {
  border-left: 0;
}

.stored-filter-group:nth-child(2n + 1) {
  border-left: 0;
}

.stored-filter-group > span,
.stored-filter-group label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #334d6d;
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
}

.stored-filter-group > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stored-filter-group select {
  width: 100%;
  min-width: 0;
  border: 1px solid #c9d8e6;
  border-radius: 6px;
  background: #ffffff;
  color: #0b2744;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  min-height: 40px;
  padding: 8px 34px 8px 12px;
}

.filter-line-icon {
  width: 18px;
  height: 18px;
  color: #405878;
  stroke-width: 1.7;
}

.stored-filter-group em {
  color: #536b82;
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
}

.stored-filter-group small {
  font-size: 10px;
  opacity: 0.8;
}

.stored-filter-clear {
  justify-self: start;
  background: #ffffff;
  border-color: #c9d8e6;
  color: #17395d;
  margin-bottom: 0;
}

.intelligence-help-note {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 4px 0 2px;
  border: 1px solid #cfe0f4;
  border-radius: 6px;
  background: #f4f9ff;
  color: #435b79;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
  padding: 12px 16px;
}

.intelligence-help-note .ui-icon {
  width: 20px;
  height: 20px;
  color: #0d63d8;
  stroke-width: 2.2;
  flex: 0 0 auto;
}

.latest-intelligence-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

.latest-intelligence-header::after {
  content: "";
  height: 1px;
  background: #d8e3ef;
  flex: 1;
}

.latest-intelligence-header h3 {
  margin: 0;
  color: #071d3a;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 750;
}

.intelligence-article {
  border: 0;
  border-top: 1px solid #dce7f2;
  border-radius: 0;
  background: #ffffff;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.intelligence-article:last-child {
  border-bottom: 1px solid var(--line);
}

.intelligence-article .signal-row-button {
  padding: 21px 22px;
  grid-template-columns: 54px minmax(0, 1fr) 24px;
  align-items: center;
  column-gap: 18px;
  row-gap: 8px;
}

.intelligence-article .signal-row-button span {
  font-size: inherit;
  line-height: inherit;
  -webkit-line-clamp: initial;
}

.intelligence-article .signal-row-button em {
  font-size: 14px;
  line-height: 1.4;
  color: #223f61;
  -webkit-line-clamp: 3;
}

.intelligence-article .signal-row-button small {
  font-size: 13px;
  white-space: normal;
  text-align: left;
  color: #54708e;
}

.row-icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 999px;
  background: #eef6ff;
  color: #0d63d8;
  box-shadow: inset 0 0 0 1px rgba(13, 99, 216, 0.08);
  flex: 0 0 auto;
}

.row-icon .ui-icon {
  width: 23px;
  height: 23px;
  stroke-width: 2.15;
}

.signal-row-button .row-icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: visible;
  -webkit-line-clamp: initial;
  -webkit-box-orient: initial;
}

.row-icon[data-row-icon="activity"] {
  background: #eef9ff;
  color: #0b70a8;
}

.row-icon[data-row-icon="settings"] {
  background: #f1f7ff;
  color: #2456a6;
}

.row-icon[data-row-icon="shieldAlert"] {
  background: #fff2f1;
  color: #c23b31;
}

.row-icon[data-row-icon="scale"] {
  background: #f4f1ff;
  color: #6750a4;
}

.row-icon[data-row-icon="brainCircuit"] {
  background: #f0f7f5;
  color: #087966;
}

.row-icon[data-row-icon="cloudLightning"] {
  background: #eef7ff;
  color: #1466ad;
}

.row-icon[data-row-icon="package"] {
  background: #fff6e8;
  color: #9b5a05;
}

.signal-row-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.signal-news-summary {
  display: block;
  color: #405878;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.signal-news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: #435b79;
  font-size: 12px;
  font-weight: 500;
}

.signal-news-tags span {
  display: inline-flex;
  align-items: center;
  width: auto;
  overflow: visible;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.3;
  color: inherit;
}

.signal-news-tags span + span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 10px 2px 0;
  border-radius: 999px;
  background: #7e91a8;
}

.row-open-indicator {
  color: #183a5e;
  justify-self: end;
}

.row-open-indicator .ui-icon {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}

.intelligence-article.selected .signal-row-button {
  border-bottom: 1px solid #e3edf6;
}

.signal-item {
  padding: 0;
  overflow: hidden;
}

.signal-row-button {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  text-align: left;
}

.signal-row-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.signal-row-button span {
  font-size: 14px;
  line-height: 1.24;
  font-weight: 900;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.signal-row-button .signal-news-title {
  display: block;
  color: #071d3a;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  overflow: visible;
  -webkit-box-orient: initial;
  -webkit-line-clamp: initial;
}

.signal-row-button .signal-news-source {
  display: block;
  color: #536987;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  overflow: visible;
  text-overflow: clip;
}

.signal-row-button .signal-news-summary {
  display: block;
  color: #405878;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.signal-row-button .signal-news-tags,
.signal-row-button .signal-news-tags span {
  display: inline-flex;
  align-items: center;
  color: #435b79;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  overflow: visible;
}

.signal-row-button .signal-news-tags {
  flex-wrap: wrap;
}

.signal-row-button em {
  color: #29476d;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.signal-row-button small {
  color: #54708e;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.signal-source-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 10px;
  color: #54708e;
  font-size: 11px;
  font-weight: 800;
}

.intelligence-article .signal-source-strip {
  border-top: 1px solid #edf3f8;
  padding: 10px 16px 12px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.source-link {
  color: #0d5f8c;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.source-link:hover {
  color: #083d5b;
}

.signal-row-expanded {
  display: grid;
  width: auto;
  min-width: 0;
  max-width: none;
  overflow-x: hidden;
  box-sizing: border-box;
  gap: 7px;
  margin: 0 12px 12px;
  padding: 10px 12px;
  border-top: 1px solid #e3edf6;
  background: #fbfdff;
}

.intelligence-article .signal-row-expanded {
  gap: 10px;
  margin: 0 8px 12px;
  padding: 12px;
  border: 1px solid #dbe6ef;
  border-radius: 8px;
  box-sizing: border-box;
}

.expanded-news-card {
  border-left: 4px solid #147c87;
  background: #ffffff;
  padding: 12px 14px;
  width: auto;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.expanded-news-card h4 {
  margin: 0 0 8px;
  color: #071d3a;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 750;
}

.signal-row-expanded p {
  margin: 0;
  color: #29476d;
  font-size: 14px;
  line-height: 1.45;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.signal-row-expanded .article-summary {
  color: #112b49;
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 4px;
}

.story-narrative {
  color: #122f4d;
  font-size: 14px;
  line-height: 1.55;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.story-continuation {
  margin-top: 8px;
}

.story-continuation summary {
  color: #123a5c;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.story-continuation p {
  margin-top: 8px;
}

.story-section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  width: auto;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.story-section-grid div {
  border: 1px solid #dce8f2;
  border-radius: 6px;
  background: #ffffff;
  padding: 10px 11px;
  min-width: 0;
  box-sizing: border-box;
}

.story-section-grid b,
.story-section-grid span {
  display: block;
}

.story-section-grid b {
  color: #0b2744;
  font-size: 13px;
  margin-bottom: 5px;
}

.story-section-grid span {
  color: #29476d;
  font-size: 13px;
  line-height: 1.45;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.source-chart-note {
  border-left: 3px solid #5b8db8;
  padding-left: 10px;
  color: #3d5874;
  font-size: 13px;
}

.story-more-details,
.source-support-details {
  margin-top: 2px;
}

.source-support-details {
  background: #f7fafc;
  border-color: #dce8f2;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.signal-row-expanded strong {
  color: var(--ink);
}

.signal-row-expanded .inline-command {
  width: fit-content;
  max-width: 100%;
  margin-top: 2px;
  white-space: normal;
}

.article-meta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 2px;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.article-meta-grid div {
  border: 1px solid #e0eaf3;
  border-radius: 8px;
  background: #ffffff;
  padding: 9px 10px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.article-meta-grid b,
.article-meta-grid span {
  display: block;
}

.article-meta-grid b {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.article-meta-grid span {
  color: #274667;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.info-only-note {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid #d6e3ee;
  border-radius: 6px;
  background: #f7fbff;
  color: #45627f;
  font-size: 12px;
  font-weight: 900;
}

.signal-meta {
  color: #54708e;
  font-size: 13px;
  margin-top: 8px;
  font-weight: 700;
}

.signal-item.selected {
  border-color: #9fc5da;
  box-shadow: inset 4px 0 0 #147f8d;
}

.signal-bullets {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #29476d;
  line-height: 1.45;
}

.signal-bullets li + li {
  margin-top: 5px;
}

.signal-extra {
  margin: 0 18px 16px;
  padding-top: 14px;
  border-top: 1px solid #e4edf6;
}

.signal-extra p + p {
  margin-top: 8px;
}

.inline-command {
  min-height: 34px;
  margin-top: 10px;
  padding: 0 12px;
  border: 1px solid #b8cbe0;
  border-radius: 6px;
  background: #f7fbff;
  color: var(--navy);
  font-weight: 900;
}

.preview-boundary {
  display: grid;
  gap: 4px;
  margin: 16px 0 18px;
  padding: 13px 14px;
  border: 1px solid #efcf7a;
  border-radius: 8px;
  background: #fffaf0;
  color: #624500;
}

.preview-boundary strong,
.preview-boundary span {
  display: block;
}

.preview-boundary span {
  line-height: 1.35;
}

.signal-decision-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 16px;
  align-items: start;
  min-width: 0;
}

.signal-decision-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 18px;
  min-width: 0;
  overflow: hidden;
}

.collapsed-selected-panel {
  min-height: 118px;
  background: #fbfdff;
}

.signal-decision-panel h3 {
  margin: 0 0 14px;
  font-size: clamp(18px, 1.45vw, 24px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.section-line {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e4edf6;
  padding-bottom: 8px;
}

.update-section-line {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 3px;
}

.section-line h2 {
  margin: 0;
  white-space: nowrap;
}

.section-line span {
  color: #5b7088;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.update-source-line {
  color: #54708e;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 16px;
}

.context-match-card {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  padding: 13px;
  border: 1px solid #c9d9e8;
  border-radius: 8px;
  background: #f7fbff;
}

.context-match-card strong {
  color: var(--ink);
  font-size: 15px;
}

.context-match-card p {
  margin: 0;
  color: #29476d;
  font-size: 14px;
  line-height: 1.4;
}

.context-match-card .inline-command {
  width: fit-content;
  max-width: 100%;
  white-space: normal;
  margin-top: 4px;
}

.brief-details {
  margin: 14px 0;
  border: 1px solid #dbe6ef;
  border-radius: 8px;
  background: #fbfdff;
  padding: 12px 14px;
}

.brief-details summary {
  color: var(--navy);
  cursor: pointer;
  font-weight: 900;
}

.brief-details summary span {
  color: #5d748c;
  font-size: 11px;
  font-weight: 800;
  margin-left: 8px;
  text-transform: uppercase;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 10px;
}

.impact-grid div {
  min-height: 92px;
  padding: 12px;
  border: 1px solid #dbe6ef;
  border-radius: 8px;
  background: #f9fcff;
}

.impact-grid b,
.impact-grid span {
  display: block;
}

.impact-grid b {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.impact-grid span {
  color: #274667;
  line-height: 1.35;
  font-size: 12px;
  overflow-wrap: anywhere;
}

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

.context-summary-grid div {
  border: 1px solid #e0eaf3;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.context-summary-grid b,
.context-summary-grid span {
  display: block;
}

.context-summary-grid b {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.context-summary-grid span {
  color: #274667;
  font-size: 13px;
  line-height: 1.35;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.tag-cloud span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #c9d9e8;
  border-radius: 999px;
  background: #f7fbff;
  color: #183c63;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.framework-tags span {
  background: #fffaf0;
  border-color: #efcf7a;
  color: #624500;
}

.signal-boundary-grid {
  margin-top: 12px;
}

.signal-boundary-grid ul {
  margin: 0;
  padding-left: 18px;
  color: #29476d;
  line-height: 1.45;
}

.signal-workspace-object {
  margin-bottom: 18px;
}

.task210-package,
.task210-report-draft {
  margin-bottom: 18px;
  border-color: #b8d3e8;
  background: #fbfdff;
}

.task210-status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 16px;
}

.task210-status-strip span {
  min-height: 58px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  padding: 9px 10px;
  border: 1px solid #d4e3f0;
  border-radius: 8px;
  background: #ffffff;
  color: #234362;
  font-size: 12px;
  line-height: 1.25;
}

.task210-status-strip b {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.agentic-operator-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 10px;
  margin: 14px 0 16px;
}

.agentic-operator-panel > div {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: space-between;
  padding: 14px;
  border: 1px solid #c7ddec;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
}

.agentic-operator-panel strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.18;
}

.agentic-operator-panel p {
  margin: 0;
  color: #274667;
  font-size: 14px;
  line-height: 1.42;
}

.report-operator-panel > div:first-child {
  border-top: 4px solid var(--green);
}

.agentic-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.agentic-path-card {
  min-height: 164px;
}

.agentic-simulation-run,
.agentic-executive-report {
  margin: 18px 0;
}

.agentic-simulation-run > h2,
.agentic-executive-report > h2 {
  margin-top: 8px;
}

.agentic-bucket-grid,
.report-thesis-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 16px;
}

.agentic-bucket-card,
.report-thesis-card {
  min-height: 158px;
}

.agentic-bucket-card strong,
.report-thesis-card strong,
.agentic-conclusion-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

.agentic-conclusion-card {
  border-left: 4px solid var(--green);
}

.report-body-section {
  margin: 12px 0;
  box-shadow: none;
}

.task210-criteria-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 18px;
}

.criterion-chip {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #c9d9e8;
  border-radius: 8px;
  background: #ffffff;
  color: #16395f;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: capitalize;
}

.criterion-chip input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  accent-color: var(--navy);
}

.criterion-chip span {
  min-width: 0;
}

.task210-options {
  margin-bottom: 16px;
}

.business-objective-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 18px;
}

.business-objective-card {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: flex-start;
  padding: 14px;
  border: 1px solid #c9d9e8;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.business-objective-card strong {
  font-size: 15px;
  line-height: 1.22;
}

.business-objective-card span {
  color: #315170;
  font-size: 13px;
  line-height: 1.35;
}

.business-objective-card.active {
  border-color: var(--navy);
  background: #f3f8ff;
  box-shadow: inset 0 4px 0 var(--navy);
}

.custom-objective-field {
  margin-bottom: 16px;
}

.simulation-orientation {
  padding: 12px 14px;
  border: 1px solid #c9d9e8;
  border-radius: 8px;
  background: #fbfdff;
}

.simulation-line {
  margin: 10px 0;
  border: 1px solid #c9d9e8;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.simulation-line summary {
  min-height: 62px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 12px 16px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.simulation-line summary::-webkit-details-marker {
  display: none;
}

.simulation-line summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  color: var(--muted);
  font-weight: 900;
}

.simulation-line[open] summary::after {
  content: "-";
}

.simulation-line summary {
  position: relative;
}

.simulation-line summary span {
  max-width: calc(100% - 34px);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}

.simulation-line summary small {
  max-width: calc(100% - 34px);
  color: #315170;
  font-size: 13px;
  line-height: 1.3;
}

.simulation-line-body {
  padding: 0 16px 16px;
  border-top: 1px solid #e4edf5;
}

.simulation-coverage-tags {
  margin-top: 14px;
}

.business-simulation-object,
.business-simulation-run,
.business-decision-brief {
  margin: 18px 0;
}

.business-simulation-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 18px;
}

.business-simulation-summary article {
  min-height: 150px;
  padding: 14px;
  border: 1px solid #c9d9e8;
  border-radius: 8px;
  background: #fbfdff;
}

.business-simulation-summary ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #29476d;
  line-height: 1.45;
}

.business-scenario-table .queue-row {
  grid-template-columns: 0.7fr 1.05fr 0.85fr 1.25fr 1.25fr;
}

.simulation-card {
  border-top: 4px solid var(--navy);
}

.simulation-card:nth-child(2) {
  border-top-color: var(--gold);
}

.simulation-card:nth-child(3) {
  border-top-color: var(--green);
}

.signal-action-table {
  margin-bottom: 16px;
}

.mode-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.mode-summary {
  min-height: 88px;
  padding: 13px;
  border: 1px solid #c9d9e8;
  border-radius: 8px;
  background: #f8fbff;
}

.mode-summary.active {
  border-color: var(--ink);
  background: #f3f7fc;
  box-shadow: inset 0 4px 0 var(--ink);
}

.mode-summary strong,
.mode-summary span {
  display: block;
}

.mode-summary strong {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 16px;
}

.mode-summary span {
  color: #36536f;
  font-size: 13px;
  line-height: 1.35;
}

.intelligence-status {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
  margin: 16px 0;
}

.intelligence-status span {
  min-height: 66px;
  padding: 11px;
  border: 1px solid #dbe6ef;
  border-radius: 8px;
  background: #ffffff;
  color: #274667;
  font-size: 12px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.intelligence-status b {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 10px;
  margin-bottom: 5px;
}

.feed-category-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 18px;
}

.feed-category {
  min-height: 88px;
  padding: 11px 12px;
  border: 1px solid #c9d9e8;
  border-radius: 8px;
  background: #ffffff;
  color: #1d3e62;
  text-align: left;
  box-shadow: none;
}

.feed-category.active {
  border-color: #147f8d;
  background: #eefbfc;
  box-shadow: inset 4px 0 0 #147f8d;
}

.feed-category strong,
.feed-category span {
  display: block;
}

.feed-category strong {
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.18;
}

.feed-category span {
  color: #36536f;
  font-size: 11px;
  line-height: 1.28;
}

.timestamp-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.timestamp-row span {
  min-height: 58px;
  padding: 10px;
  border: 1px solid #dbe6ef;
  border-radius: 8px;
  background: #f9fcff;
  color: #274667;
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.timestamp-row b {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 10px;
  margin-bottom: 5px;
}

.source-fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.source-fact-grid ul {
  margin: 0;
  padding-left: 18px;
  color: #29476d;
  line-height: 1.45;
}

.citation-panel {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #efcf7a;
  border-radius: 8px;
  background: #fffaf0;
}

.citation-row {
  display: grid;
  gap: 5px;
  padding: 10px 0;
  border-top: 1px solid rgba(217, 155, 0, 0.34);
}

.citation-row:first-of-type {
  border-top: 0;
}

.citation-row strong {
  color: #624500;
  font-size: 13px;
}

.citation-row span {
  color: #583e00;
  font-size: 12px;
  line-height: 1.35;
}

.right-rail {
  align-self: start;
  display: grid;
  gap: 14px;
  position: sticky;
  top: 104px;
}

.progress-card {
  padding: 18px;
}

.progress-track {
  height: 10px;
  border-radius: 999px;
  background: #e7edf5;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-track span {
  display: block;
  height: 100%;
  width: 14%;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--green));
}

.runtime-list {
  margin: 0;
  display: grid;
  gap: 10px;
}

.runtime-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e8eef6;
  padding-bottom: 9px;
}

.runtime-list dt {
  color: var(--muted);
  font-weight: 700;
}

.runtime-list dd {
  margin: 0;
  text-align: right;
  font-weight: 800;
}

.runtime-summary {
  margin-top: 14px;
}

.logic-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 4px;
}

.logic-strip span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfe;
  padding: 12px;
  color: #29476d;
  line-height: 1.35;
}

.logic-strip strong {
  display: block;
  color: var(--ink);
  margin-bottom: 3px;
}

.workflow-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 22px;
}

.workflow-strip span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #c9d9e8;
  border-radius: 999px;
  background: #f7fbff;
  color: #183c63;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
}

.workflow-strip b {
  color: var(--red);
}

.decision-object {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fcff;
  padding: 18px;
}

.decision-object h3 {
  margin: 0 0 14px;
  font-size: 24px;
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.decision-grid div,
.queue-row,
.coord-row {
  border: 1px solid #dbe6ef;
  border-radius: 8px;
  background: #ffffff;
}

.decision-grid div {
  min-height: 94px;
  padding: 12px;
}

.decision-grid b,
.decision-grid span,
.coord-row strong,
.coord-row span {
  display: block;
}

.decision-grid b {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.decision-grid span {
  color: #274667;
  line-height: 1.35;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.context-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.account-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 20px 0 14px;
}

.flow-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.flow-step.active {
  border-color: #a9c6de;
  background: linear-gradient(180deg, #ffffff, #f3f9fd);
}

.flow-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--navy);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.flow-step strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 15px;
}

.flow-step p {
  margin: 0;
  color: #36536f;
  font-size: 13px;
  line-height: 1.35;
}

.context-field span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.context-field small {
  display: block;
  color: #4d6682;
  font-size: 12px;
  line-height: 1.3;
}

.context-field {
  display: grid;
  gap: 7px;
  min-height: 148px;
  padding: 13px;
  border: 1px solid #dbe6ef;
  border-radius: 8px;
  background: #ffffff;
  min-width: 0;
}

.context-field select[multiple] {
  min-height: 132px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.context-field select,
.context-field input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  font-size: 14px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
}

.context-field option {
  font-size: 14px;
  line-height: 1.35;
  white-space: normal;
}

.multi-pulldown {
  position: relative;
  min-width: 0;
}

.multi-pulldown summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #c7d5e6;
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  padding: 10px 12px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.multi-pulldown summary::after {
  content: "v";
  flex: 0 0 auto;
  color: #4d6682;
  font-size: 12px;
  font-weight: 900;
}

.multi-pulldown[open] summary {
  border-color: #147f8d;
  box-shadow: 0 0 0 3px rgba(20, 127, 141, 0.12);
}

.multi-options {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 25;
  max-height: 320px;
  overflow: auto;
  border: 1px solid #b9cbe0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(5, 24, 48, 0.18);
  padding: 8px;
}

.multi-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  min-height: 34px;
  padding: 7px 8px;
  border-radius: 6px;
}

.multi-option:hover {
  background: #eef7fb;
}

.multi-option input {
  width: 16px;
  min-height: 16px;
  margin: 1px 0 0;
  padding: 0;
}

.multi-option span {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: none;
  overflow-wrap: anywhere;
}

.other-context-input {
  min-height: 38px;
  font-size: 13px;
  background: #f8fbfe;
}

.auth-gate-card,
.auth-state-card {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: center;
  gap: 22px;
  margin: 20px 0;
  padding: 16px;
  border: 1px solid #bdd2e4;
  border-radius: 8px;
  background: #f6fbff;
}

.auth-gate-card strong,
.auth-state-card strong {
  display: block;
  font-size: 18px;
}

.auth-gate-card p,
.auth-state-card span {
  margin: 0;
  color: #36536f;
  line-height: 1.4;
}

.auth-gate-button {
  min-width: 108px;
  min-height: 48px;
  margin-top: 0;
  padding: 0 22px;
  white-space: nowrap;
  line-height: 1;
}

body.modal-open {
  overflow: hidden;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-modal.open {
  display: flex;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 18, 42, 0.58);
}

.auth-dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid #c9d9e8;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(5, 24, 48, 0.32);
  padding: 0;
}

.auth-dialog h2 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.1;
}

.auth-main {
  padding: 42px 40px 34px;
}

.auth-brand-lockup img {
  display: block;
  width: min(280px, 100%);
  height: auto;
  margin: 0 auto 26px;
}

.auth-copy {
  color: #36536f;
  line-height: 1.45;
  margin-bottom: 20px;
}

.auth-close {
  position: absolute;
  right: 16px;
  top: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid #d5e1ee;
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 900;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 18px 0 16px;
  border-bottom: 1px solid #cbd8e8;
}

.auth-tab {
  min-height: 44px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: #ffffff;
  color: var(--ink);
  font-weight: 800;
}

.auth-tab.active {
  background: #ffffff;
  border-color: var(--navy);
  color: var(--ink);
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.remember-choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1f3558;
  font-size: 14px;
}

.remember-choice input {
  width: 16px;
  min-height: 16px;
  padding: 0;
}

.remember-choice span {
  margin: 0;
  font-weight: 500;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--navy);
  font-weight: 800;
}

.auth-modal[data-mode="login"] .register-only,
.auth-modal[data-mode="login"] .confirm-only,
.auth-modal[data-mode="register"] .confirm-only,
.auth-modal[data-mode="register"] .login-only,
.auth-modal[data-mode="confirm"] .register-only,
.auth-modal[data-mode="confirm"] .login-only,
.auth-modal[data-mode="confirm"] .password-field {
  display: none;
}

.password-note {
  margin: -4px 0 4px;
  color: #516987;
  font-size: 13px;
  line-height: 1.35;
}

.auth-submit {
  width: 100%;
  min-height: 50px;
  border-radius: 8px;
  background: var(--navy);
  box-shadow: none;
  font-size: 16px;
}

.auth-submit:hover {
  background: #123f82;
}

.social-auth {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #6d7d94;
  margin-bottom: 14px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: #d7e2ee;
  flex: 1;
}

.sso-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.social-button {
  width: 100%;
  min-height: 56px;
  border: 1px solid #c7d5e6;
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 500;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
}

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

.sso-icon {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 900;
  font-size: 17px;
  background: #edf2f8;
  position: absolute;
  left: 18px;
}

.sso-icon.google {
  background: #ffffff;
  color: inherit;
}

.sso-icon.google svg {
  width: 22px;
  height: 22px;
  display: block;
}
.sso-icon.facebook { color: #ffffff; background: #1877f2; border-radius: 999px; }

.auth-footer-line {
  margin-top: 24px;
  text-align: center;
  color: #1f3558;
  font-weight: 700;
}

.auth-message {
  min-height: 22px;
  margin: 14px 0 0;
  color: #92560e;
  font-weight: 800;
  line-height: 1.35;
}

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

.queue-table {
  display: grid;
  gap: 10px;
}

.queue-row {
  display: grid;
  grid-template-columns: 1.35fr 1.2fr auto 1fr 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
}

.queue-row span {
  color: #36536f;
  font-size: 13px;
}

.coord-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  margin-top: 8px;
}

.coord-row:first-child {
  margin-top: 0;
}

.coord-row.compact {
  grid-template-columns: 1fr;
}

.coord-row strong {
  color: #112b49;
  font-size: 13px;
  line-height: 1.25;
}

.coord-row span {
  color: #53657f;
  font-size: 12px;
  line-height: 1.25;
  margin-top: 2px;
}

.mini-status {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 3px 8px;
  background: #edf3f8;
  color: #2e4c6b;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.mini-status.ready,
.mini-status.active,
.mini-status.packetready {
  background: #e3f5ec;
  color: #17663f;
}

.mini-status.review,
.mini-status.waiting,
.mini-status.invited {
  background: #fff0d7;
  color: #92560e;
}

.mini-status.blocked,
.mini-status.overdue {
  background: #ffe5e8;
  color: #a61f2f;
}

.gate-grid {
  display: grid;
  gap: 8px;
}

.gate-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border: 1px solid #dbe6ef;
  border-radius: 8px;
  background: #ffffff;
  padding: 9px;
}

.gate-pill > span:first-child {
  color: #29476d;
  font-size: 12px;
  font-weight: 800;
}

.carry-card {
  margin-top: 14px;
}

.bottom-nav {
  display: none;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

label span {
  display: block;
  font-weight: 800;
  margin-bottom: 6px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #c7d5e6;
  border-radius: 6px;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--ink);
  background: white;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.json-box {
  background: #081936;
  color: #eaf2fb;
  border-radius: 8px;
  padding: 14px;
  overflow: auto;
  font-size: 12px;
}

@media (max-width: 1120px) {
  .topbar {
    gap: 12px;
    padding: 0 16px;
  }

  .brand {
    min-width: 230px;
    flex-basis: 260px;
  }

  .topnav-item {
    padding: 0 10px;
    font-size: 14px;
  }

  .auth-header-button {
    padding: 0 14px;
    font-size: 14px;
  }

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

  .workspace-layout {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .right-rail {
    display: none;
  }
}

@media (max-width: 1320px) {
  .workspace-layout {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0 0 34px;
    overflow-x: hidden;
  }

  .left-rail,
  .right-rail {
    display: none;
  }

  .center-panel {
    width: 100%;
    max-width: 100%;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .surface-header,
  .surface {
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    overflow-x: hidden;
  }

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

  .signal-list:not(.article-feed) {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .signal-list.article-feed {
    grid-template-columns: 1fr;
  }

  .task210-status-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agentic-operator-panel,
  .agentic-path-grid {
    grid-template-columns: 1fr;
  }

  .agentic-bucket-grid,
  .report-thesis-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  body {
    background: #f4f8fc;
  }

  .stored-filter-panel {
    grid-template-columns: 1fr;
  }

  .stored-window-control {
    grid-template-columns: 1fr;
  }

  .stored-filter-clear {
    justify-self: stretch;
    text-align: center;
  }

  .intelligence-article .signal-row-button span {
    font-size: 18px;
  }

  .topbar {
    height: 72px;
    padding: 0 14px;
  }

  .brand {
    min-width: 0;
    flex: 0 1 260px;
  }

  .brand img {
    width: min(260px, 72vw);
  }

  .topnav,
  .left-rail {
    display: none;
  }

  .workspace-layout {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 14px 0 86px;
    overflow-x: hidden;
  }

  .center-panel {
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    max-width: 100%;
    overflow-x: hidden;
  }

  .surface-header {
    min-height: 0;
    padding: 20px 42px 14px 16px;
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .surface-header > div,
  .surface > * {
    min-width: 0;
    width: 100%;
  }

  h1 {
    font-size: 22px;
    line-height: 1.12;
    max-width: 300px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .tabbar {
    margin-top: 16px;
    justify-content: stretch;
  }

  .tab {
    flex: 1;
    padding: 0 8px;
  }

  .surface {
    padding: 20px 42px 24px 16px;
    max-width: 100%;
    overflow-x: hidden;
  }

  .surface *,
  .surface-header * {
    max-width: 100%;
  }

  .lead,
  .info-card,
  .choice-card,
  .signal-item,
  .runtime-banner {
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .grid.five-choice,
  .logic-strip,
  .mode-summary-grid,
  .intelligence-status,
  .feed-category-tabs,
  .timestamp-row,
  .source-fact-grid,
  .decision-grid,
  .context-grid,
  .account-flow,
  .auth-choice-row,
  .auth-fields,
  .simulation-grid,
  .agent-grid,
  .task210-status-strip,
  .task210-criteria-grid,
  .business-objective-grid,
  .business-simulation-summary,
  .agentic-operator-panel,
  .agentic-path-grid,
  .agentic-bucket-grid,
  .report-thesis-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .workspace-cta,
  .auth-gate-card,
  .auth-state-card {
    display: block;
  }

  .auth-gate-button {
    width: 100%;
    margin-top: 14px;
  }

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

  .auth-main {
    padding: 34px 20px 24px;
  }

  .auth-value-panel {
    display: none;
  }

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

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

  .signal-decision-layout,
  .impact-grid {
    grid-template-columns: 1fr;
  }

  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    min-height: 66px;
    background: #ffffff;
    border-top: 1px solid var(--line);
  }

  .bottom-item {
    font-size: 12px;
    color: var(--muted);
    font-weight: 800;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    text-overflow: clip;
  }

  .bottom-item.active {
    color: var(--red);
    background: #fff2f3;
  }
}
