:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #263a34;
  background: #f6f7f4;
  font-size: 14px;
  line-height: 1.55;
  --green: #24594a;
  --ink: #18392f;
  --muted: #748078;
  --border: #e2e7df;
  --pale: #edf2e9;
  --white: #fff;
  --orange: #b26d34;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: radial-gradient(circle at 80% 15%, #e5eddc 0, transparent 31%), #f6f7f4;
}
.login-card {
  width: min(440px, 100%);
  padding: 42px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(26, 57, 47, 0.1);
}
.login-card .brand {
  width: fit-content;
  padding: 0 0 42px;
}
.login-card h1 {
  margin: 4px 0 8px;
  font-size: 30px;
  letter-spacing: -1px;
}
.login-card form {
  margin-top: 26px;
}
.login-card button[type='submit'] {
  width: 100%;
  margin-top: 8px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #a4c8a7;
  outline-offset: 3px;
}
button {
  border: 1px solid var(--border);
  background: white;
  border-radius: 7px;
  color: var(--ink);
  padding: 9px 14px;
  font-weight: 550;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
button:hover:not(:disabled) {
  background: #f1f5ed;
}
button.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
button.primary:hover:not(:disabled) {
  background: #173f33;
}
button.quiet {
  background: transparent;
  border: 0;
  padding: 7px 9px;
}
button.small,
.button.small {
  font-size: 12px;
  padding: 5px 10px;
}
.button {
  display: inline-flex;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: white;
  font-weight: 550;
  align-items: center;
  gap: 6px;
}
.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.shell {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #fdfefb;
  border-right: 1px solid var(--border);
  padding: 28px 18px 20px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  padding: 0 12px 31px;
  font-size: 27px;
  font-weight: 750;
  letter-spacing: -1.5px;
}
.brand-mark {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 28px;
  background: var(--green);
  color: #eef4d7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  letter-spacing: 0;
}
.brand small {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 1px;
  display: block;
  margin-top: -7px;
}
.workspace-control {
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 25px;
  background: white;
}
.workspace-control label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}
.workspace-control select {
  border: 0;
  padding: 4px 0;
  width: 100%;
  font-weight: 600;
  background: transparent;
}
.nav-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: #8b958d;
  padding: 0 12px;
  margin-bottom: 9px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav button {
  border: 0;
  background: transparent;
  justify-content: flex-start;
  padding: 11px 13px;
  color: #68766c;
  font-size: 13px;
  font-weight: 500;
}
.nav button.active {
  background: #e8efe3;
  color: #224c3c;
  font-weight: 650;
}
.nav button:hover {
  background: #edf2e8;
}
.nav .count {
  margin-left: auto;
  background: white;
  border-radius: 4px;
  padding: 0 6px;
  font-size: 10px;
  color: #67775e;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 20px 10px 0;
}
.local-status {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 11px;
  color: #778477;
}
.dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  background: #69a477;
}
.sidebar-bottom p {
  font-size: 11px;
  color: #94a08f;
}
.main-column {
  min-width: 0;
}
.topbar {
  height: 70px;
  border-bottom: 1px solid var(--border);
  background: #fdfefbd9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
}
.breadcrumb {
  color: #8b968c;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.breadcrumb strong {
  color: #4a5c50;
  font-weight: 500;
}
.topbar-right {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 11px;
  color: #768276;
}
.avatar {
  display: flex;
  width: 31px;
  height: 31px;
  align-items: center;
  justify-content: center;
  background: #e7eddc;
  border: 1px solid #d7e0ce;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  color: #4f6244;
}
.main {
  max-width: 1450px;
  margin: auto;
  padding: 33px 38px 40px;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 26px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.6px;
  font-weight: 650;
  color: #7b8c74;
  margin: 0 0 7px;
  text-transform: uppercase;
}
h1 {
  font-size: 28px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -1px;
  margin: 0 0 9px;
}
h2 {
  font-size: 16px;
  letter-spacing: -0.25px;
  font-weight: 600;
  margin: 0;
}
h3 {
  font-size: 14px;
  margin: 0 0 7px;
}
p {
  margin: 0 0 12px;
}
.subtitle {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.intro {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 30px;
  background: #eaf0e3;
  border: 1px solid #dce6d3;
  border-radius: 10px;
  padding: 27px 28px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}
.intro h2 {
  font-size: 21px;
  line-height: 1.4;
  max-width: 450px;
  margin: 6px 0 11px;
  letter-spacing: -0.5px;
}
.intro p {
  color: #6a7c61;
  font-size: 12px;
  max-width: 430px;
}
.intro .primary {
  font-size: 12px;
  margin-top: 5px;
}
.orbit {
  position: relative;
  min-height: 165px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.orbit-circle {
  position: absolute;
  border: 1px dashed #bbcdb1;
  border-radius: 50%;
  width: 240px;
  height: 150px;
  transform: rotate(-25deg);
}
.orbit-circle.second {
  width: 170px;
  height: 205px;
  transform: rotate(32deg);
}
.orbit-center {
  width: 60px;
  height: 60px;
  background: #285843;
  color: #ecf4dc;
  border: 7px solid #dee8d2;
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.orbit-center .icon {
  width: 28px;
  height: 28px;
}
.orbit-chip {
  position: absolute;
  background: #fcfef9;
  border: 1px solid #dce6d4;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 10px;
  color: #5c7256;
  box-shadow: 0 4px 10px #50653e05;
  display: flex;
  align-items: center;
  gap: 7px;
}
.orbit-chip.one {
  left: 7%;
  top: 8px;
}
.orbit-chip.two {
  right: 0;
  top: 65px;
}
.orbit-chip.three {
  left: 15%;
  bottom: 0;
}
.orbit-chip .icon {
  width: 13px;
  height: 13px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 24px;
}
.metric {
  background: white;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 18px 19px;
}
.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #73806e;
}
.metric-top .icon {
  width: 16px;
  height: 16px;
  color: #95a28e;
}
.metric-value {
  font-size: 31px;
  font-weight: 550;
  letter-spacing: -1px;
  line-height: 1.3;
  margin: 13px 0 7px;
  color: #263c2e;
}
.metric-value small {
  font-size: 12px;
  font-weight: 400;
  color: #8c9887;
  letter-spacing: 0;
}
.metric-note {
  font-size: 10px;
  color: #899380;
}
.grid-two {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
  margin-bottom: 22px;
}
.panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
  margin-bottom: 20px;
}
.panel-head {
  padding: 18px 21px;
  border-bottom: 1px solid #edf0e9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.panel-head p {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0 0;
}
.panel-body {
  padding: 20px;
}
.grid-two > .panel {
  margin: 0;
}
.muted {
  color: var(--muted);
}
.small-text {
  font-size: 11px;
}
.empty {
  padding: 37px 24px;
  text-align: center;
  color: #8b9587;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.empty .empty-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f0f4ed;
  color: #79906d;
  margin-bottom: 12px;
}
.empty h3 {
  color: #4f6148;
  font-size: 13px;
  font-weight: 550;
}
.empty p {
  font-size: 11px;
  max-width: 330px;
  line-height: 1.7;
  margin-bottom: 17px;
}
.chart-empty {
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 48px,
    #f0f3ed 49px,
    #f0f3ed 50px
  );
  margin: 0 20px 12px;
}
.trend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0 24px 24px;
}
.trend-card {
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fbfcfa;
}
.trend-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.trend-title span,
.trend-legend {
  color: var(--muted);
  font-size: 11px;
}
.trend-chart {
  display: block;
  width: 100%;
  min-height: 160px;
}
.trend-chart line {
  stroke: #e2e7df;
  stroke-width: 1;
}
.trend-chart text {
  fill: #7d887f;
  font-size: 10px;
}
.trend-chart polyline {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.trend-chart .mention-line,
.trend-chart .mention-dot {
  stroke: var(--green);
  fill: var(--green);
}
.trend-chart .citation-line,
.trend-chart .citation-dot {
  stroke: #b26d34;
  fill: #b26d34;
}
.trend-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.trend-legend span::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 50%;
  background: #cbd2cc;
}
.trend-legend .mention-key::before {
  background: var(--green);
}
.trend-legend .citation-key::before {
  background: #b26d34;
}
.pill-tabs.compact {
  margin: 0;
}
.pill-tabs.compact button {
  padding: 5px 9px;
  font-size: 11px;
}
.setup-step {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #edf0e9;
  align-items: flex-start;
}
.setup-step:last-child {
  border-bottom: 0;
}
.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  border: 1px solid #dce5d5;
  border-radius: 50%;
  font-size: 11px;
  color: #7b8d70;
}
.step-number.done {
  background: #e9f1e1;
  color: #507341;
}
.setup-step h3 {
  font-size: 12px;
  margin: 0 0 4px;
}
.setup-step p {
  font-size: 11px;
  color: #8b9784;
  margin: 0;
}
.setup-step > button {
  margin-left: auto;
  font-size: 11px;
  white-space: nowrap;
  padding: 3px 6px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 550;
  white-space: nowrap;
  background: #f0f3eb;
  color: #6c7f5e;
}
.badge.green {
  background: #e6f2e6;
  color: #437644;
}
.badge.orange {
  background: #fff0df;
  color: #a9773b;
}
.badge.red {
  background: #faeae7;
  color: #b16455;
}
.badge.blue {
  background: #eaf0f9;
  color: #657f9a;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
th {
  text-align: left;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.65px;
  color: #8e9987;
  background: #fcfdf9;
  padding: 12px 19px;
  font-weight: 500;
  white-space: nowrap;
}
td {
  padding: 16px 19px;
  border-top: 1px solid #edf0e9;
  vertical-align: middle;
}
td.long {
  min-width: 260px;
  max-width: 500px;
}
td .secondary {
  font-size: 10px;
  color: #8d9787;
  margin-top: 4px;
}
tr:hover td {
  background: #fdfefb;
}
.row-title {
  font-weight: 550;
  color: #405338;
}
.footer-note {
  font-size: 10px;
  color: #929b8b;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.toolbar input {
  max-width: 320px;
}
.toolbar .spacer {
  flex: 1;
}
.notice {
  padding: 13px 17px;
  background: #eef3e9;
  border: 1px solid #dfe8d8;
  border-radius: 7px;
  font-size: 12px;
  color: #64795a;
  margin-bottom: 20px;
}
.notice.warning {
  background: #fff6e9;
  color: #8f6f40;
  border-color: #ede0c8;
}
.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.content-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
}
.content-card-top {
  padding: 20px;
  background: #f1f4ed;
  border-bottom: 1px solid #e6ebdf;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.content-card-top .icon {
  color: #8b9b7d;
}
.content-card-body {
  padding: 20px;
}
.content-card h3 {
  font-size: 15px;
  line-height: 1.5;
  min-height: 45px;
}
.content-card p {
  font-size: 12px;
  color: #829078;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 53px;
}
.content-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #edf0e9;
  padding: 13px 20px;
  font-size: 10px;
  color: #899580;
}
.task-row {
  display: flex;
  gap: 14px;
  padding: 19px 21px;
  border-bottom: 1px solid #edf0e9;
  align-items: flex-start;
}
.task-row:last-child {
  border-bottom: 0;
}
.task-row h3 {
  font-size: 13px;
  margin: 0 0 5px;
}
.task-row p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  max-width: 740px;
}
.task-row .badge {
  margin-left: auto;
}
.check-button {
  padding: 0;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
  border-radius: 5px;
}
.check-button.done {
  background: var(--green);
  color: white;
}
.done-title {
  text-decoration: line-through;
  color: #899480;
}
.connection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.connection {
  background: white;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 24px;
}
.connection-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}
.connection-logo {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eff3e9;
  border: 1px solid #e0e7d6;
  border-radius: 9px;
  font-size: 16px;
  font-weight: 650;
}
.connection .badge {
  margin-left: auto;
}
.connection p {
  font-size: 12px;
  color: #7f8e73;
}
.connection pre {
  font-size: 11px;
  white-space: pre-wrap;
  background: #f6f8f2;
  padding: 13px;
  border-radius: 6px;
  color: #657d53;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.form-grid .full {
  grid-column: 1/-1;
}
label {
  display: block;
  color: #647459;
  font-size: 12px;
  margin-bottom: 6px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #dce3d5;
  border-radius: 6px;
  padding: 10px 11px;
  color: #33472b;
  background: #fff;
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #7b9b6c;
}
textarea {
  resize: vertical;
  min-height: 95px;
  line-height: 1.7;
}
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  margin: 10px 0;
}
.checkbox input {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 3px;
  accent-color: var(--green);
}
.hint {
  font-size: 10px;
  color: #8a9780;
  margin-top: 5px;
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  justify-content: flex-end;
  margin-top: 22px;
}
.form-error {
  color: #ab5146;
  font-size: 12px;
  margin-top: 14px;
}
.loading {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 15px;
}
.loading p {
  color: #829278;
}
dialog {
  border: 1px solid #dfe6d6;
  border-radius: 12px;
  box-shadow: 0 24px 100px #17261b30;
  padding: 0;
  width: min(670px, calc(100vw - 32px));
  max-height: 90vh;
  color: var(--ink);
}
dialog.wide {
  width: min(1050px, calc(100vw - 32px));
}
dialog::backdrop {
  background: #1d332a55;
  backdrop-filter: blur(3px);
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 24px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: white;
  z-index: 2;
}
.dialog-body {
  padding: 24px;
}
.editor-layout {
  display: grid;
  grid-template-columns: 1fr 265px;
  gap: 23px;
}
.editor-layout textarea.article {
  min-height: 320px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.9;
}
.editor-aside {
  padding-left: 20px;
  border-left: 1px solid var(--border);
}
.editor-aside h3 {
  font-size: 12px;
  margin-top: 18px;
}
.editor-aside h3:first-child {
  margin-top: 0;
}
.editor-aside p {
  font-size: 11px;
  color: #8a977e;
}
.editor-aside button {
  width: 100%;
  margin: 5px 0;
  font-size: 11px;
}
.editor-aside select {
  font-size: 11px;
}
.editor-aside .badge {
  margin-bottom: 10px;
}
.editor-aside a.button {
  width: 100%;
  justify-content: center;
  font-size: 11px;
}
.source-text {
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.85;
  color: #576a4c;
  overflow-wrap: anywhere;
}
.evidence-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 20px;
}
.source-links {
  padding-left: 18px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.source-links li {
  margin: 8px 0;
}
details {
  border-top: 1px solid var(--border);
  padding: 13px 0;
  font-size: 12px;
}
summary {
  cursor: pointer;
  color: #6f815e;
}
.history-entry {
  font-size: 11px;
  color: #839474;
  padding: 8px 0;
}
.activity {
  padding: 14px 20px;
  border-bottom: 1px solid #edf0e9;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
}
.activity time {
  margin-left: auto;
  color: #97a08f;
  font-size: 10px;
}
.provider-split {
  padding: 13px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #edf0e9;
  font-size: 12px;
}
.provider-split strong {
  margin-left: auto;
}
.mini-bars {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 18px;
}
.mini-bars i {
  display: block;
  width: 4px;
  height: 12px;
  background: #bbcdb0;
}
.mini-bars i:nth-child(2) {
  height: 18px;
}
.mini-bars i:nth-child(3) {
  height: 9px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
  transition: 0.2s;
  background: #204838;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 10px 30px #253e3020;
  font-size: 12px;
  z-index: 20;
  max-width: 90vw;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
#toast.error {
  background: #9d5147;
}
.report-page {
  background: white;
}
.report-page main {
  max-width: 1050px;
  margin: 45px auto;
  padding: 25px;
}
.report-page h2 {
  margin: 30px 0 13px;
}
.report-page p {
  font-size: 13px;
  line-height: 1.9;
}
.report-page li {
  margin: 8px 0;
}
.report-page table {
  border: 1px solid var(--border);
}
.report-page .eyebrow {
  margin-bottom: 20px;
}
.readiness {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 11px;
  color: #718166;
}
.pill-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
}
.pill-tabs button {
  font-size: 11px;
  background: transparent;
  border-color: transparent;
}
.pill-tabs .selected {
  background: white;
  border-color: var(--border);
}
@media (min-width: 1500px) {
  .main {
    padding-top: 40px;
  }
  .intro {
    padding: 32px;
  }
  .sidebar {
    padding-top: 30px;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 195px 1fr;
  }
  .main {
    padding: 26px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .content-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .intro {
    grid-template-columns: 1fr;
  }
  .orbit {
    display: none;
  }
  .grid-two {
    grid-template-columns: 1fr;
  }
  .connection-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .brand {
    padding: 0 0 12px;
    font-size: 23px;
  }
  .brand small {
    display: none;
  }
  .workspace-control {
    position: absolute;
    right: 14px;
    top: 13px;
    width: 180px;
    margin: 0;
    padding: 4px 9px;
  }
  .workspace-control label {
    display: none;
  }
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  .nav {
    flex-direction: row;
    overflow: auto;
    gap: 2px;
    margin-top: 10px;
  }
  .nav button {
    font-size: 11px;
    padding: 9px;
    white-space: nowrap;
  }
  .nav .icon,
  .nav .count {
    display: none;
  }
  .topbar {
    height: 48px;
    padding: 0 18px;
  }
  .topbar-right > span:first-child {
    display: none;
  }
  .main {
    padding: 24px 16px;
  }
  .heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
  h1 {
    font-size: 25px;
  }
  .intro {
    padding: 22px;
  }
  .intro h2 {
    font-size: 20px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 14px;
  }
  .metric-value {
    font-size: 27px;
  }
  .metric-note {
    font-size: 9px;
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .trend-grid {
    grid-template-columns: 1fr;
    padding: 0 14px 16px;
  }
  .trend-title {
    flex-direction: column;
    gap: 2px;
  }
  .form-grid,
  .editor-layout {
    grid-template-columns: 1fr;
  }
  .editor-aside {
    border-left: 0;
    border-top: 1px solid var(--border);
    padding: 20px 0 0;
  }
  .dialog-body {
    padding: 18px;
  }
  .connection {
    padding: 19px;
  }
  .task-row .badge {
    display: none;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .actions {
    gap: 6px;
  }
  .actions button {
    font-size: 11px;
  }
  .report-page main {
    padding: 15px;
    margin: 10px auto;
  }
  .setup-step > button {
    font-size: 10px;
  }
  .footer-note {
    align-items: flex-start;
  }
}
@media print {
  body {
    background: white;
  }
  .report-page main {
    margin: 0;
    padding: 0;
    max-width: none;
  }
  a {
    color: inherit;
    text-decoration: none;
  }
  tr {
    break-inside: avoid;
  }
  h2 {
    break-after: avoid;
  }
  .table-wrap {
    overflow: visible;
  }
}

.search-suggestions {
  width: 100%;
  height: 150px;
  border: 0;
  margin: 18px 0;
  background: white;
}

.blog-preview { margin-top: 1rem; padding: 1rem; border: 1px solid var(--border, #ddd); border-radius: 12px; overflow-wrap: anywhere; }
.blog-preview h2, .blog-preview h3 { margin-top: 1rem; }
.blog-preview p { line-height: 1.7; }

.media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:18px;margin-top:24px}.media-card{padding:16px;border:1px solid var(--border,#ddd);border-radius:12px;background:white;overflow:hidden}.media-card img{width:100%;height:150px;object-fit:cover;border-radius:8px}.media-card p{overflow-wrap:anywhere}.media-card input{width:100%;margin:8px 0}.cover-picker .media-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}

.content-wizard { max-width: 820px; margin: 0 auto; }
dialog.wide:has(.production-preview) { width: min(1400px, 96vw); max-width: 96vw; }
.production-preview iframe { width: 100%; height: 65vh; border: 1px solid var(--border); border-radius: 8px; background: white; }
.production-controls { display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; padding-top: 16px; }
.wizard-top p { margin: 10px 0 18px; color: var(--muted); }
.wizard-steps { display: flex; gap: 10px; margin: 0 0 24px; }
.wizard-steps button { flex: 1; background: var(--pale); }
.wizard-steps button[aria-current="step"] { background: var(--green); color: white; }
.wizard-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.wizard-fields .article { min-height: 280px; }
.wizard-options { margin: 18px 0; padding: 14px; border: 1px solid var(--border); border-radius: 10px; }
.wizard-options summary { color: var(--green); cursor: pointer; }
.wizard-options fieldset { margin: 16px 0; }
.wizard-upload { margin-top: 20px; padding: 16px; border: 1px dashed var(--border); border-radius: 10px; }
.wizard-upload button { margin-top: 10px; }
.wizard-footer { position: sticky; bottom: 0; z-index: 1; background: white; display: flex; justify-content: space-between; gap: 10px; padding: 16px 0 12px; margin-top: 18px; border-top: 1px solid var(--border); }
.wizard-footer > div { display: flex; flex-wrap: wrap; gap: 8px; }
.content-wizard [hidden] { display: none !important; }
@media(max-width:700px) { .wizard-footer { flex-direction: column-reverse; } .wizard-footer > div { justify-content: flex-end; } .wizard-steps { gap: 5px; } .wizard-steps button { padding: 10px 5px; } }

/* Visual summaries keep labels and values readable without relying on color. */
.visual-body {
  padding: 0 24px 24px;
}
.visual-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.visual-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(145deg, #fbfdf9, #fff);
}
.visual-card h3 {
  font-size: 16px;
  line-height: 1.5;
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.visual-card .eyebrow {
  font-size: 10px;
  line-height: 1.6;
}
.visual-bar {
  margin: 18px 0;
}
.visual-bar-label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  margin-bottom: 8px;
}
.visual-bar-label span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.visual-bar-label strong {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.visual-track {
  height: 9px;
  border-radius: 20px;
  background: #edf1e9;
  overflow: hidden;
}
.visual-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}
.visual-fill.amber {
  background: #b26d34;
}
.visual-fill.blue {
  background: #477ca0;
}
.visual-callout {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  background: #eff5e9;
  border-radius: 12px;
}
.visual-callout strong {
  font-size: 30px;
}
.visual-callout span {
  font-size: 13px;
}
.traffic-chart {
  display: block;
  width: 100%;
  height: auto;
}
.traffic-chart line {
  stroke: #e2e7df;
}
.traffic-chart text {
  fill: #58645a;
  font-size: 12px;
}
.traffic-chart .traffic-line {
  stroke-width: 3;
}
.traffic-chart .green {
  stroke: var(--green);
  fill: var(--green);
}
.traffic-chart .blue {
  stroke: #477ca0;
  fill: #477ca0;
}
.traffic-chart .amber {
  stroke: #b26d34;
  fill: #b26d34;
}
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 14px 0;
  font-size: 12px;
}
.chart-legend span::before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--green);
}
.chart-legend .blue::before {
  background: #477ca0;
}
.chart-legend .amber::before {
  background: #b26d34;
}
.report-timeline {
  list-style: none;
  padding: 0 0 0 24px;
  margin: 0 0 0 8px;
  border-left: 2px solid #d8e4cf;
}
.report-timeline li {
  position: relative;
  margin-bottom: 24px;
}
.report-timeline li:last-child {
  margin-bottom: 0;
}
.report-timeline li::before {
  content: '';
  position: absolute;
  left: -31px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px #f1f6ed;
}
.report-timeline time {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 10px;
}
.report-facts {
  display: flex;
  gap: 32px;
  margin: 18px 0;
}
.report-facts strong {
  font-size: 26px;
}
.report-facts small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
/* Keep trend paths transparent; their dots carry the series color. */
.trend-chart polyline.mention-line,
.trend-chart polyline.citation-line {
  fill: none;
}
@media (max-width: 1100px) {
  .visual-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .visual-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .visual-body {
    padding: 0 16px 20px;
  }
  .visual-card {
    padding: 16px;
  }
  .visual-callout {
    flex-wrap: wrap;
    gap: 8px;
  }
  .trend-title {
    flex-wrap: wrap;
  }
}
.data-details > summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
}
@media print {
  .visual-card {
    break-inside: avoid;
  }
  .visual-track,
  .visual-fill {
    print-color-adjust: exact;
  }
}
svg.visual-track {
  display: block;
  width: 100%;
}
rect.visual-fill {
  fill: var(--green);
}
rect.visual-fill.amber {
  fill: #b26d34;
}
rect.visual-fill.blue {
  fill: #477ca0;
}
@media (max-width: 650px) {
  .traffic-chart text { font-size: 22px; }
  .trend-chart text { font-size: 18px; }
}

.format-tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.format-tools button { min-height: 44px; border: 1px solid var(--border); }
.format-tools [data-format="bold"] { font-weight: 750; }
.format-tools [data-format="italic"] { font-style: italic; }
.writing-preview { margin: 12px 0 20px; }
.writing-preview summary { cursor: pointer; color: var(--green); }
.blog-preview blockquote { border-left: 3px solid var(--green); padding-left: 16px; margin-left: 0; color: var(--muted); }
.blog-preview li { line-height: 1.7; }

.graph-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.visual-card h3 { overflow-wrap: anywhere; }
.visual-card .trend-title { flex-wrap: wrap; }
.visual-card [aria-pressed="true"] { border-color: var(--green); }

.cumulative-chart { width: 100%; display: block; min-height: 200px; }
.cumulative-chart text { fill: var(--muted); font-size: 14px; }
.cumulative-legend { display: flex; flex-wrap: wrap; gap: 16px; margin: 16px 0; }
.cumulative-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cumulative-key { width: 32px; height: 12px; flex: 0 0 32px; }
@media (max-width: 600px) { .cumulative-chart text { font-size: 22px; } }

.news-bot-panel { margin-bottom: 24px; }
.news-bot-panel .actions { flex-wrap: wrap; }
.news-review { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr); gap: 24px; }
.news-review aside { border-right: 1px solid var(--line, #e0e5ea); padding-right: 20px; }
.news-review .source-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.news-review section { min-width: 0; }
@media (max-width: 700px) {
  .news-review { grid-template-columns: 1fr; }
  .news-review aside { border-right: 0; border-bottom: 1px solid #e0e5ea; padding: 0 0 16px; }
}
