:root {
  font-family:
    Inter,
    "Noto Sans SC",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #253142;
  background: #f0f4f9;
  font-size: 14px;
  --muted: #748094;
  --line: #e5eaf1;
  --blue: #245cc5;
  --tint: #e8effb;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.46;
}
a {
  color: var(--blue);
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #91b5ef;
  outline-offset: 3px;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
.workspace {
  height: 100dvh;
  display: grid;
  grid-template-columns: 206px minmax(0, 1fr);
}
.sidebar {
  padding: 30px 16px 18px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #26394e;
  font-size: 23px;
  font-weight: 650;
  padding: 0 8px 37px;
  letter-spacing: -0.6px;
}
.brand small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 1px;
  margin-top: 4px;
}
.brand-mark {
  background: #2c5eaa;
  color: white;
  border-radius: 12px;
  width: 38px;
  height: 43px;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 29px;
}
.nav-caption {
  color: #8d98a9;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 0 13px 13px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border-radius: 10px;
  margin-bottom: 5px;
  color: #657185;
  font-size: 13px;
}
.nav-item > span:first-child {
  font-size: 18px;
}
.nav-item.active {
  background: #e1eafa;
  color: #265cac;
  font-weight: 600;
}
.nav-count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 400;
}
.sidebar-note {
  margin-top: auto;
  padding: 18px 12px 22px;
  color: #7a889b;
  font-size: 11px;
  line-height: 1.9;
}
.sidebar-note strong {
  font-weight: 500;
  color: #526880;
}
.sidebar-note p {
  margin-top: 6px;
}
.note-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #74a390;
  border-radius: 50%;
  margin-right: 7px;
}
.sidebar-footer {
  padding: 15px 10px 0;
  border-top: 1px solid #dfe6ef;
  font-size: 9px;
  color: #8d9aad;
  letter-spacing: 2px;
}
.sidebar-footer span {
  display: block;
  font-size: 9px;
  margin-top: 6px;
  letter-spacing: 1px;
}
.main {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0 20px 20px 0;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 99px;
  padding: 20px 6px 18px;
}
.eyebrow {
  font-size: 10px;
  color: #8391a4;
  letter-spacing: 1.5px;
}
.topbar h1 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 6px;
}
.icon-button {
  width: 34px;
  height: 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 21px;
  color: #69798e;
}
.panes {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  background: white;
  border: 1px solid #e4eaf2;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 24px #344d7010;
}
.library-pane {
  border-right: 1px solid var(--line);
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #fbfcfe;
}
.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 19px 17px 12px;
  background: white;
  border: 1px solid #e0e7ef;
  border-radius: 9px;
  padding: 9px 11px;
  color: #8b98a9;
}
.search-form > span {
  font-size: 21px;
  line-height: 1;
}
.search-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: none;
  font-size: 12px;
  outline: none;
  color: #34445a;
}
.search-form button {
  font-size: 11px;
  color: var(--blue);
  padding: 3px;
}
.list-heading {
  display: flex;
  justify-content: space-between;
  padding: 5px 21px 13px;
  color: #8c98a8;
  font-size: 10px;
  letter-spacing: 0.5px;
}
.item-list {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.list-item {
  display: block;
  padding: 18px 21px;
  border-bottom: 1px solid #edf0f5;
  color: #344158;
  border-left: 3px solid transparent;
  transition: background 0.15s;
}
.list-item:hover {
  background: #f0f5fc;
}
.list-item.selected {
  background: #edf3fc;
  border-left-color: #4c7cc7;
}
.item-title {
  font-size: 13px;
  font-weight: 550;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #8b97a7;
  margin-top: 11px;
}
.item-meta .badge {
  margin-left: auto;
}
.badge {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 5px;
  background: #edf1f5;
  color: #748294;
  font-size: 10px;
  white-space: nowrap;
}
.badge.ready {
  background: #e9f3ee;
  color: #56836b;
}
.badge.busy {
  background: #eaf0fd;
  color: #527cc3;
}
.badge.problem {
  background: #fff0e9;
  color: #b87748;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: #8a97a7;
  background: #fbfcfe;
}
.quiet-button {
  padding: 6px 2px;
  color: #6e7f94;
  font-size: 11px;
}
.reader {
  overflow-y: auto;
  min-width: 0;
  background: #fff;
  overscroll-behavior: contain;
}
.empty-reader {
  height: 100%;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 30px;
  color: #9aa6b6;
}
.empty-symbol {
  font-size: 46px;
  color: #b3c5df;
  margin-bottom: 20px;
}
.empty-reader h2 {
  font-size: 18px;
  font-weight: 500;
  color: #61748d;
}
.empty-reader p {
  font-size: 12px;
  line-height: 1.8;
  margin-top: 12px;
  max-width: 290px;
}
.reading-wrap {
  max-width: 900px;
  margin: auto;
  padding: 31px 42px 65px;
}
.reader-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.back-button {
  display: inline-block;
  color: #7187a4;
  font-size: 12px;
}
.article-kicker {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #8695a9;
}
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.primary-button {
  background: #2e63bd;
  color: #fff;
  border-radius: 8px;
  padding: 10px 15px;
  font-size: 12px;
  font-weight: 500;
}
.outline-button {
  border: 1px solid #dde5ef;
  background: white;
  border-radius: 8px;
  padding: 9px 13px;
  font-size: 12px;
  color: #62758f;
}
.article-title {
  font-size: 25px;
  line-height: 1.55;
  letter-spacing: -0.4px;
  color: #25374d;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.article-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #92a0b1;
  margin-top: 15px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.analysis-panel {
  background: #f6f9fe;
  border: 1px solid #e5ecf8;
  border-radius: 11px;
  padding: 20px;
  margin: 25px 0;
}
.section-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #6481aa;
  font-size: 10px;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.summary-text {
  font-size: 13px;
  line-height: 1.95;
  color: #4d617d;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.muted-copy {
  font-size: 12px;
  color: #8b99ab;
  line-height: 1.9;
}
.processing-status {
  font-size: 12px;
  line-height: 1.8;
  margin-top: 12px;
  color: #617eaa;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.processing-status.error {
  color: #b36b47;
}
.concept-groups {
  margin: 22px 0;
}
.concept-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 11px 0;
}
.group-title {
  min-width: 45px;
  font-size: 10px;
  color: #9aa5b3;
  padding-top: 7px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  font-size: 11px;
  padding: 6px 9px;
  border-radius: 6px;
  background: #f3f6fa;
  color: #61738c;
  border: 1px solid #e8edf4;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.chip.core {
  background: #edf3fe;
  color: #3767af;
  border-color: #e0e9fa;
}
.chip.review {
  border-style: dashed;
}
.article-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 15px;
  line-height: 2.05;
  color: #3e4b5e;
  padding-top: 4px;
}
.body-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 29px 0 18px;
  font-size: 11px;
  color: #8a99ac;
  letter-spacing: 2px;
}
.body-heading:after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
.list-empty {
  padding: 35px 24px;
  color: #8a98aa;
  font-size: 12px;
  line-height: 1.9;
  text-align: center;
}
.error-box {
  border: 1px solid #f1d7cb;
  background: #fff8f4;
  border-radius: 8px;
  padding: 15px;
  color: #aa6546;
  line-height: 1.8;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(90vw, 500px);
  background: #304768;
  color: white;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 12px;
  box-shadow: 0 6px 30px #1e365035;
  z-index: 5;
}
.definition {
  font-size: 15px;
  line-height: 2;
  color: #536783;
  margin-top: 24px;
  white-space: pre-wrap;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 10px;
  z-index: 10;
  background: white;
  padding: 12px;
}
.skip-link:focus {
  top: 10px;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1550px) {
  .panes {
    grid-template-columns: 380px minmax(0, 1fr);
  }
  .reading-wrap {
    padding-top: 40px;
  }
}
@media (max-width: 1100px) {
  .workspace {
    grid-template-columns: 165px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 10px;
    padding-right: 10px;
  }
  .panes {
    grid-template-columns: 290px minmax(0, 1fr);
  }
  .reading-wrap {
    padding: 27px;
  }
  .main {
    padding-right: 14px;
  }
  .article-title {
    font-size: 22px;
  }
}
@media (max-width: 800px) {
  .workspace {
    display: block;
  }
  .sidebar {
    height: 64px;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
  }
  .brand {
    padding: 0;
    font-size: 20px;
    gap: 8px;
  }
  .brand-mark {
    width: 28px;
    height: 32px;
    font-size: 22px;
    border-radius: 8px;
  }
  .brand small,
  .nav-caption,
  .sidebar-note,
  .sidebar-footer {
    display: none;
  }
  .sidebar nav {
    display: flex;
    margin-left: auto;
    gap: 5px;
  }
  .nav-item {
    padding: 9px 11px;
    margin: 0;
    font-size: 12px;
    gap: 6px;
  }
  .nav-item > span:first-child {
    font-size: 16px;
  }
  .nav-count {
    display: none;
  }
  .main {
    height: calc(100dvh - 64px);
    padding: 0 12px 12px;
  }
  .topbar {
    min-height: 65px;
    padding: 5px 4px 15px;
  }
  .eyebrow {
    display: none;
  }
  .topbar h1 {
    font-size: 19px;
    margin: 0;
  }
  .panes {
    display: block;
    position: relative;
  }
  .library-pane {
    height: 100%;
    border-right: 0;
  }
  .reader {
    display: none;
    height: 100%;
  }
  .workspace.reading .library-pane {
    display: none;
  }
  .workspace.reading .reader {
    display: block;
  }
  .back-button {
    display: inline-block;
    color: #7187a4;
    font-size: 12px;
  }
  .reading-wrap {
    padding: 22px 23px 50px;
  }
  .reader-toolbar {
    margin-bottom: 20px;
  }
  .article-title {
    font-size: 22px;
  }
  .article-body {
    font-size: 15px;
  }
  .item-title {
    -webkit-line-clamp: 2;
  }
  .list-item {
    padding: 18px 20px;
  }
  .analysis-panel {
    padding: 16px;
  }
  .actions {
    margin-left: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
.article-insights {
  margin: 22px 0;
}
.related-section {
  margin-bottom: 24px;
}
.related-card {
  display: block;
  padding: 13px 15px;
  border: 1px solid #dce5ee;
  border-radius: 10px;
  background: #f7faff;
  margin: 9px 0;
  text-decoration: none;
  color: #253d55;
}
.related-card:hover {
  border-color: #7398bd;
  background: #eef5fc;
}
.relation-reason {
  font-size: 13px;
  color: #526c85;
  margin: 6px 0 0;
  line-height: 1.7;
}
.insight-disclosure {
  border-top: 1px solid #e2e8ef;
  padding: 14px 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.insight-disclosure > summary {
  cursor: pointer;
  font-weight: 600;
  color: #3b526c;
}
.insight-disclosure[open] > summary {
  margin-bottom: 14px;
}
.evidence-item,
.run-item {
  padding: 12px 0;
  border-bottom: 1px solid #edf1f5;
}
.evidence-name {
  font-weight: 600;
}
.evidence-quote {
  margin: 10px 0;
  padding: 8px 14px;
  border-left: 3px solid #b9ccdf;
  background: #f6f9fc;
  color: #53677c;
  white-space: pre-wrap;
  line-height: 1.8;
}
.source-row,
.receipt-row {
  font-size: 12px;
  line-height: 1.8;
}
.feedback-input {
  display: block;
  width: 100%;
  min-height: 100px;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #ccd9e6;
  border-radius: 8px;
  background: white;
  color: #253d55;
  font: inherit;
  resize: vertical;
}
.feedback-input:focus {
  outline: 2px solid #8db4db;
  outline-offset: 2px;
}
.tag-filter {
  padding: 0 17px 12px;
  border-bottom: 1px solid var(--line);
}
.tag-filter[hidden] {
  display: none;
}
.tag-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
}
.tag-heading strong {
  overflow-wrap: anywhere;
}
.tag-heading a {
  flex-shrink: 0;
  font-size: 12px;
}
.tag-tabs {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}
.tag-tab {
  flex: 1;
  border: 1px solid #dae4ef;
  border-radius: 7px;
  padding: 8px 3px;
  background: white;
  color: #536c88;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}
.tag-tab[aria-pressed="true"] {
  background: #e8f0ff;
  color: #275bb6;
  border-color: #a8c3ee;
}
.tag-hint,
.anchor-reason,
.summary-subjects {
  font-size: 12px;
  color: #687d95;
  line-height: 1.7;
  margin: 9px 0 0;
}
@media (min-width: 801px) {
  .workspace.tag-results .panes {
    grid-template-columns: minmax(0, 1fr);
  }
  .workspace.tag-results .reader {
    display: none;
  }
  .workspace.tag-results .library-pane {
    border-right: 0;
  }
  .workspace.tag-results .tag-filter {
    order: 1;
    padding: 22px 26px 14px;
  }
  .workspace.tag-results .tag-heading {
    font-size: 17px;
  }
  .workspace.tag-results .tag-tabs {
    max-width: 510px;
  }
  .workspace.tag-results .tag-tab {
    padding: 10px;
    font-size: 13px;
  }
  .workspace.tag-results .search-form {
    order: 2;
    margin: 16px 26px 6px;
    max-width: 620px;
  }
  .workspace.tag-results .list-heading {
    order: 3;
    padding-left: 26px;
    padding-right: 26px;
  }
  .workspace.tag-results .item-list {
    order: 4;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    padding: 0 26px 24px;
    align-content: start;
  }
  .workspace.tag-results .list-item {
    border: 1px solid var(--line);
    border-radius: 11px;
    background: white;
    padding: 20px;
  }
  .workspace.tag-results .list-item:hover {
    background: #f2f7ff;
    border-color: #afc7e5;
  }
  .workspace.tag-results .item-title {
    font-size: 15px;
    -webkit-line-clamp: 3;
  }
  .workspace.tag-results .list-empty {
    grid-column: 1 / -1;
  }
  .workspace.tag-results .pagination {
    order: 5;
    padding-left: 26px;
    padding-right: 26px;
  }
}
