:root {
  color-scheme: light;
  --ink: #1c302d;
  --muted: #536761;
  --line: #d9e0da;
  --paper: #f2f4ef;
  --green: #136052;
  --hot: #b34526;
  font:
    16px/1.45 Inter,
    "Segoe UI",
    Arial,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
select,
input {
  font: inherit;
  color: inherit;
}
button,
select {
  cursor: pointer;
}
button,
a,
input,
select,
summary {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #e68047;
  outline-offset: 3px;
}
a {
  color: var(--green);
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
button {
  border: 0;
  background: none;
}
.layout {
  display: grid;
  grid-template-columns: 204px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #162e2c;
  color: #e9f1e9;
  display: flex;
  flex-direction: column;
  padding: 35px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 30px;
  font-weight: 780;
  letter-spacing: -2px;
  color: inherit;
}
.brand-dot,
.page-intro h1 span {
  color: #d97047;
}
.mark {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-right: 9px;
  transform: skew(-14deg);
}
.mark i {
  width: 4px;
  height: 14px;
  background: #ec9867;
}
.mark i:nth-child(2) {
  height: 24px;
}
.mark i:nth-child(3) {
  height: 19px;
}
.side-rule {
  border-bottom: 1px solid #3b504b;
  margin: 24px 0;
}
.sidebar nav {
  display: grid;
  gap: 6px;
}
.sidebar nav a,
.sidebar-bottom button {
  color: #c2d2ca;
  text-decoration: none;
  text-align: left;
  font-weight: 550;
  font-size: 0.94rem;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 11px;
  border-radius: 5px;
}
.sidebar nav a[aria-current] {
  background: #324b43;
  color: #fff;
  box-shadow: inset 3px 0 #efa873;
}
.nav-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}
.bars-icon {
  background: repeating-linear-gradient(
    to top,
    transparent 0 4px,
    currentColor 4px 5px
  );
}
.signal-icon {
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px #234039;
  background: currentColor;
}
.book-icon {
  border-left-width: 4px;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid #3b504b;
  padding-top: 12px;
}
.info-icon {
  font-family: Georgia;
  border: 1px solid;
  border-radius: 50%;
  width: 17px;
  height: 17px;
  display: grid;
  place-content: center;
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 66px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 3.2vw, 56px);
  background: #fafbf8;
}
.product {
  font-weight: 680;
  letter-spacing: -0.4px;
}
.product-sign {
  color: var(--hot);
  font-size: 1.3em;
  margin-right: 7px;
}
.demo-badge,
.count {
  font-size: 0.84rem;
  border: 1px solid #ced7cf;
  border-radius: 20px;
  padding: 3px 10px;
  color: #4a6057;
}
.demo-badge {
  background: #ebf0e6;
}
main#main {
  max-width: 1700px;
  margin: auto;
  padding: 34px clamp(16px, 3.2vw, 56px) 70px;
}
.page-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 27px;
}
.eyeline,
.d-label,
.over-label {
  font-size: 0.77rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 750;
  color: var(--green);
}
.page-intro h1,
.story h1 {
  font:
    550 clamp(2.35rem, 4.1vw, 4.15rem) / 1.18 Spectral,
    Georgia,
    serif;
  letter-spacing: -0.055em;
  margin: 5px 0 10px;
}
.page-intro > div > p:last-child,
.source-card p,
.detail p,
.meta,
.article-card p,
.panel-foot,
.metric small {
  color: var(--muted);
}
.primary,
.secondary {
  border-radius: 6px;
  padding: 10px 16px;
  min-height: 42px;
  font-weight: 650;
  font-size: 0.92rem;
}
.primary {
  background: #254f43;
  color: #fff;
}
.primary:hover {
  background: #173a31;
}
.secondary {
  background: white;
  border: 1px solid var(--line);
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.run {
  white-space: nowrap;
}
.run span {
  font-size: 1.2rem;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 23px;
}
.metric,
.panel,
.detail,
.source-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.metric {
  padding: 17px 19px;
}
.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 610;
}
.metric > b {
  display: block;
  font-size: 2.15rem;
  font-weight: 580;
  letter-spacing: -0.07em;
  line-height: 1.35;
}
.metric small,
.meta,
.subline {
  font-size: 0.82rem;
}
.metric-shape {
  display: block;
  width: 12px;
  height: 12px;
  background: #d69466;
  border-radius: 50%;
}
.metric-shape.cluster {
  border-radius: 2px;
  background: #729e80;
}
.metric-shape.reuse {
  border-radius: 3px;
  transform: rotate(45deg);
  background: #65878e;
}
.metric-shape.draft {
  background: #aa95b6;
  border-radius: 0 10px 0 0;
}
.desk {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(270px, 1fr);
  align-items: start;
  gap: 18px;
}
.panel,
.detail {
  min-width: 0;
}
.panel-heading,
.panel-foot,
.detail-kicker,
.tool-row,
.detail-score,
.review-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.panel-heading {
  padding: 20px 20px 13px;
}
.panel-heading h2,
.detail h2,
.source-card h2,
.story h2 {
  font:
    600 1.52rem/1.3 Spectral,
    Georgia,
    serif;
  letter-spacing: -0.035em;
}
.board-tools {
  padding: 0 20px 15px;
}
.segment {
  display: inline-flex;
  padding: 3px;
  background: #edf1eb;
  border-radius: 6px;
  margin: 4px 0 14px;
}
.segment button {
  font-size: 0.85rem;
  padding: 5px 13px;
  border-radius: 4px;
}
.segment button[aria-pressed="true"] {
  background: #fff;
  box-shadow: 0 1px 4px #18372a2b;
  font-weight: 650;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #cfd8d1;
  border-radius: 5px;
  padding: 8px 11px;
  min-width: 0;
  flex: 1;
}
.search i {
  width: 12px;
  height: 12px;
  border: 1.7px solid #6b7c74;
  border-radius: 50%;
  position: relative;
  flex: none;
}
.search i:after {
  content: "";
  position: absolute;
  width: 6px;
  height: 2px;
  background: #6b7c74;
  transform: rotate(45deg);
  left: 8px;
  top: 9px;
}
.search input {
  border: 0;
  outline: 0 !important;
  width: 100%;
  min-width: 0;
  font-size: 0.93rem;
}
.search:focus-within {
  outline: 2px solid var(--green);
}
select {
  padding: 8px 23px 8px 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 0.87rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  background: #f3f6f1;
  color: #56675f;
  font-size: 0.8rem;
  font-weight: 650;
}
th,
td {
  padding: 12px 9px;
  border-block: 1px solid #e0e5df;
}
th:first-child,
td:first-child {
  padding-left: 19px;
}
th:last-child,
td:last-child {
  padding-right: 15px;
}
.queue td:first-child {
  width: 47%;
}
.queue tr[data-row] {
  cursor: pointer;
}
.queue tr.selected {
  background: #f0f5eb;
  box-shadow: inset 3px 0 #577a4c;
}
.queue tr:hover {
  background: #f5f7f2;
}
.row-title {
  text-align: left;
  padding: 0;
  line-height: 1.35;
  font-size: 0.96rem;
  font-weight: 650;
}
.subline {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.tag,
.type {
  font-weight: 650;
  font-size: 0.75rem;
  display: inline-block;
  border-radius: 4px;
  padding: 4px 7px;
  line-height: 1.3;
}
.update,
.evergreen {
  background: #e0efe5;
  color: #255e46;
}
.draft {
  background: #e6eaf7;
  color: #495d8c;
}
.review,
.type.hot {
  background: #ffecde;
  color: #9a4321;
}
.watch,
.reject {
  background: #edf0ec;
  color: #54605b;
}
.score-value {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.hot {
  color: var(--hot);
}
.ever {
  color: var(--green);
}
.missing {
  color: #708278;
}
.panel-foot {
  padding: 14px 16px;
  flex-wrap: wrap;
  font-size: 0.78rem;
}
.panel-foot label {
  display: flex;
  align-items: center;
  gap: 4px;
}
input[type="checkbox"] {
  accent-color: var(--green);
}
.detail {
  padding: 21px;
  scroll-margin-top: 16px;
  border-top: 3px solid #4d6f5c;
}
.detail-kicker {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 10px;
}
.detail h2 {
  font-size: 1.8rem;
}
.detail-score {
  margin: 15px 0;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}
.detail-score small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}
.detail-score strong {
  font-size: 2rem;
  line-height: 1.15;
}
.detail-score span {
  color: #65766b;
}
.meter-box {
  flex: 1;
  max-width: 165px;
}
progress {
  accent-color: #54795d;
  width: 100%;
  height: 7px;
}
.detail h3,
.source-card h3 {
  font-size: 1.02rem;
}
.detail section {
  margin: 15px 0;
}
.detail p {
  font-size: 0.91rem;
  margin-top: 6px;
}
.decision,
.draft-outline,
.search-overview {
  background: #f1f5ed;
  padding: 14px;
  border-radius: 6px;
}
.decision h3 {
  margin-top: 4px;
}
.detail .delta {
  padding-top: 7px;
}
.article-anchor,
.text-button,
.search-overview a {
  display: inline-block;
  color: var(--green);
  font-size: 0.87rem;
  font-weight: 650;
}
.article-anchor {
  margin-top: 9px;
}
.text-button {
  padding: 0;
  text-decoration: underline;
}
.detail details,
.batch details,
.story details {
  border-top: 1px solid var(--line);
  padding: 11px 0;
}
summary {
  cursor: pointer;
  font-size: 0.91rem;
  font-weight: 650;
}
summary span {
  float: right;
  color: var(--muted);
}
.keywords,
.evidence-list,
.score-method ul {
  padding: 0;
  list-style: none;
  margin: 7px 0;
}
.keywords li {
  font-size: 0.83rem;
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
  margin: 2px;
}
.evidence-list li,
.ref-link {
  font-size: 0.85rem;
  display: block;
  margin: 8px 0;
}
.evidence-list b,
.ref-link span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}
.score-method h4 {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}
.score-method li {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin: 5px 0;
  font-size: 0.82rem;
}
.score-method small {
  color: #65766b;
}
.review-controls {
  flex-wrap: wrap;
  justify-content: flex-start;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.empty {
  padding: 28px;
  text-align: center;
}
.empty p {
  margin: 8px;
}
.source-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}
.source-card {
  padding: 22px;
}
.source-card h2 {
  margin: 8px 0;
}
.source-card p {
  margin: 8px 0 14px;
}
.feed-error {
  display: block;
  color: var(--hot);
}
.signal-table td {
  font-size: 0.9rem;
}
.library {
  max-width: 900px;
}
.library-search {
  margin: 20px;
}
.article-card {
  display: block;
  text-decoration: none;
  padding: 18px 22px;
  border-top: 1px solid var(--line);
}
.article-card:hover {
  background: #f5f8f1;
}
.article-card h3 {
  margin: 4px 0;
  color: var(--ink);
}
.search-overview {
  margin: 18px;
}
.search-overview p {
  margin: 8px 0;
}
.reader {
  background: #f9faf5;
}
.reader-top {
  border-bottom: 1px solid var(--line);
  padding: 15px max(5vw, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.story {
  max-width: 780px;
  margin: auto;
  padding: 42px 22px 70px;
}
.story h1 {
  margin: 12px 0 20px;
}
.overview {
  border-left: 4px solid var(--green);
  padding: 18px 22px;
  background: #e7efe3;
}
.overview p {
  font-size: 1.12rem;
  margin-top: 8px;
}
.story h2 {
  margin-top: 28px;
}
.story figure {
  margin: 25px 0;
}
.story img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}
.story figcaption,
.citation,
.source-links span {
  font-size: 0.82rem;
  color: var(--muted);
}
.story-points,
.source-links,
.timeline {
  padding-left: 22px;
}
.story li {
  margin: 9px 0;
}
.timeline time {
  font-weight: 650;
}
.story footer {
  display: flex;
  gap: 20px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 10px;
  max-width: min(460px, 90vw);
  padding: 25px;
  color: var(--ink);
}
dialog p {
  margin: 14px 0;
}
dialog::backdrop {
  background: #142c2990;
}
#notice {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  background: #173a31;
  color: white;
  border-radius: 6px;
  padding: 10px 17px;
  opacity: 0;
  pointer-events: none;
  font-size: 0.9rem;
  z-index: 5;
}
#notice.visible {
  opacity: 1;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 10px;
  top: 5px;
  background: white;
  z-index: 10;
}
.table-scroll,
#op-list {
  overflow: auto;
}
@media (max-width: 1180px) {
  .layout {
    grid-template-columns: 168px minmax(0, 1fr);
  }
  .sidebar {
    padding: 27px 11px;
  }
  .desk {
    grid-template-columns: minmax(0, 1.6fr) minmax(230px, 1fr);
    gap: 12px;
  }
  main#main {
    padding-inline: 20px;
  }
  .metric {
    padding: 14px;
  }
  .queue th,
  .queue td {
    padding-inline: 7px;
  }
  .queue td:first-child,
  .queue th:first-child {
    padding-left: 12px;
  }
  .detail {
    padding: 15px;
  }
}
@media (max-width: 900px) {
  .layout {
    display: block;
  }
  .sidebar {
    height: auto;
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 18px;
  }
  .sidebar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
  }
  .sidebar nav a {
    padding: 7px;
    font-size: 0.84rem;
  }
  .sidebar-bottom {
    margin: 0;
    border: 0;
    padding: 0;
  }
  .sidebar-bottom button {
    font-size: 0;
  }
  .side-rule,
  .nav-icon {
    display: none;
  }
  .desk {
    grid-template-columns: 1fr;
  }
  .topbar {
    height: 49px;
  }
  .detail {
    padding: 20px;
  }
  .metrics {
    gap: 8px;
  }
  .source-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .sidebar {
    flex-wrap: wrap;
    padding: 9px 12px;
  }
  .brand {
    font-size: 24px;
  }
  .sidebar nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }
  .sidebar nav a {
    font-size: 0.82rem;
  }
  .topbar {
    padding-inline: 15px;
  }
  .page-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }
  .page-intro h1 {
    font-size: 2.6rem;
  }
  .page-intro p {
    font-size: 0.95rem;
  }
  main#main {
    padding: 22px 12px 50px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric {
    padding: 11px;
  }
  .metric > b {
    font-size: 1.8rem;
  }
  .panel-heading,
  .board-tools {
    padding-inline: 12px;
  }
  .queue td:first-child {
    width: 43%;
  }
  .queue td,
  .queue th {
    padding: 9px 4px;
  }
  .queue th {
    font-size: 0.73rem;
  }
  .tag {
    font-size: 0.72rem;
  }
  .row-title {
    font-size: 0.84rem;
  }
  .subline {
    font-size: 0.73rem;
  }
  .source-grid {
    grid-template-columns: 1fr;
  }
  .signal-table th,
  .signal-table td {
    padding: 8px;
    font-size: 0.82rem;
  }
  .table-scroll {
    max-width: 100%;
  }
  .tool-row {
    gap: 5px;
  }
  .story {
    padding-top: 24px;
  }
}
