:root {
  --bg: var(--ap-canvas, #f4f6f2);
  --paper: var(--ap-surface, #fff);
  --ink: var(--ap-text, #1e302c);
  --muted: var(--ap-muted, #718078);
  --line: var(--ap-line, #e2e8e1);
  --primary: var(--ap-accent, #245b4d);
  --dark: var(--ap-solid, #153f38);
  --soft: var(--ap-tint, #eaf2e8);
  --accent: var(--ap-tint, #d8e5be);
  --danger: var(--ap-danger, #a84840);
  --warning: var(--ap-warning, #9c712b);
  --radius: 14px;
  --shadow: 0 8px 30px var(--ap-shadow, #14372b08);
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  font-size: 14px;
  line-height: 1.6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: var(--primary);
  text-underline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--ap-focus, #83bba4);
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -0.9px;
  line-height: 1.35;
  font-weight: 650;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.3px;
  font-weight: 650;
}
h3 {
  font-size: 15px;
  font-weight: 650;
}
small {
  font-size: 12px;
}
svg.icon {
  width: 18px;
  height: 18px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
input,
select,
textarea {
  width: 100%;
  color: var(--ink);
  background: var(--ap-surface, #fff);
  border: 1px solid var(--ap-line, #dce3db);
  border-radius: 8px;
  padding: 10px 12px;
  min-height: 42px;
  transition: border-color 0.15s;
}
input::placeholder,
textarea::placeholder {
  color: var(--ap-muted, #98a39b);
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  outline: 2px solid #245b4d13;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
input[type="checkbox"] {
  width: 16px;
  min-height: 16px;
  height: 16px;
  accent-color: var(--primary);
  flex: none;
}
input[type="file"] {
  padding: 8px;
  background: var(--ap-surface, #f9fbf8);
}
input[type="date"] {
  max-width: 100%;
}
hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 20px 0;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  word-break: break-all;
}
.nowrap {
  white-space: nowrap;
}
.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.flex {
  display: flex;
  align-items: center;
  gap: 10px;
}
.spread {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.grow {
  flex: 1;
  min-width: 0;
}
.wrap {
  flex-wrap: wrap;
}
.spacer {
  height: 8px;
}
.prewrap {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.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;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 15px;
  min-height: 39px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--ap-surface, white);
  color: var(--ink);
  font-weight: 550;
  font-size: 13px;
  white-space: nowrap;
  text-decoration: none;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.btn:hover {
  background: var(--ap-tint, #f1f5ef);
  border-color: var(--ap-line, #c6d4c6);
}
.btn.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--ap-on-solid, #fff);
}
.btn.primary:hover {
  background: var(--ap-solid, #184739);
}
.btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.btn.ghost:hover {
  background: var(--ap-tint, #e9efe6);
  color: var(--ink);
}
.btn.small {
  font-size: 12px;
  padding: 5px 10px;
  min-height: 30px;
}
.btn.danger {
  color: var(--danger);
  border-color: var(--ap-line, #eccfc9);
  background: var(--ap-surface, #fff8f6);
}
.btn.icon-only {
  padding: 9px;
  width: 39px;
}
.btn.small.icon-only {
  width: 30px;
  padding: 5px;
}
.button-row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 232px;
  padding: 27px 19px 20px;
  background: var(--dark);
  color: var(--ap-on-solid, #dce7df);
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 28px;
  color: var(--ap-on-solid, white);
  text-decoration: none;
}
.brand-symbol {
  width: 37px;
  height: 37px;
  border-radius: 10px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -5px;
  padding-right: 5px;
}
.brand-title {
  font-size: 21px;
  font-weight: 650;
  letter-spacing: 4px;
}
.brand-sub {
  font-size: 9px;
  letter-spacing: 1.9px;
  color: var(--ap-muted, #9fb8aa);
  margin-top: 1px;
}
.nav-label {
  padding: 17px 13px 10px;
  font-size: 10px;
  letter-spacing: 1.4px;
  color: var(--ap-muted, #82a395);
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 9px;
  color: var(--ap-muted, #b4cbbf);
  text-decoration: none;
  font-size: 13px;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav a:hover {
  color: var(--ap-on-solid, #fff);
  background: #ffffff0b;
}
.nav a.active {
  background: var(--ap-tint, #d8e5be);
  color: var(--ap-accent, #193b30);
  font-weight: 600;
}
.nav a .nav-arrow {
  margin-left: auto;
  font-size: 15px;
  opacity: 0.6;
}
.sidebar-bottom {
  margin-top: auto;
}
.workspace-note {
  background: #ffffff06;
  border: 1px solid #ffffff0e;
  border-radius: 11px;
  padding: 15px 13px;
  margin-top: 28px;
}
.workspace-note h3 {
  font-size: 12px;
  color: var(--ap-on-solid, #d6e4dc);
  font-weight: 500;
  margin-bottom: 6px;
}
.workspace-note p {
  font-size: 11px;
  line-height: 1.8;
  color: var(--ap-muted, #86a597);
}
.owner {
  border-top: 1px solid #ffffff12;
  margin: 21px 4px 0;
  padding-top: 17px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 33px;
  height: 33px;
  background: var(--ap-solid, #31564b);
  border: 1px solid #ffffff15;
  color: var(--ap-on-solid, #dce8d1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.owner-name {
  font-size: 12px;
  color: var(--ap-on-solid, #dce7df);
}
.owner-label {
  font-size: 10px;
  color: var(--ap-muted, #86a597);
}
.owner .btn {
  color: var(--ap-muted, #a9c3b4);
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  background: var(--ap-surface, #f9faf7);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.crumb {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 12px;
  color: var(--muted);
}
.crumb span:last-child {
  color: var(--ink);
}
.top-right {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
}
.connection {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
}
.dot {
  width: 6px;
  height: 6px;
  background: var(--ap-solid, #63937b);
  border-radius: 50%;
  display: inline-block;
  flex: none;
}
.top-separator {
  height: 18px;
  width: 1px;
  background: var(--line);
}
.mobile-toggle {
  display: none;
}
.page {
  padding: 34px 40px 50px;
  max-width: 1660px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: var(--ap-muted, #7b8d7a);
  font-weight: 600;
  margin-bottom: 8px;
}
.page-description {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  max-width: 760px;
  line-height: 1.8;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 23px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}
.panel-head .small {
  margin-top: 3px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.grid-main {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr);
  gap: 22px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 24px;
}
.stat {
  padding: 20px 22px;
  background: var(--ap-surface, white);
  border: 1px solid var(--line);
  border-radius: 12px;
  position: relative;
}
.stat-icon {
  position: absolute;
  top: 21px;
  right: 19px;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ap-muted, #59816d);
  background: var(--ap-tint, #f0f5ec);
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 11px;
}
.stat-value {
  font-size: 31px;
  line-height: 1.2;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.stat-foot {
  margin-top: 11px;
  color: var(--ap-muted, #87958a);
  font-size: 10px;
}
.hero {
  padding: 25px 27px;
  background: var(--ap-tint, #e6eedc);
  border: 1px solid var(--ap-line, #dce7d0);
  border-radius: var(--radius);
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  overflow: hidden;
  position: relative;
}
.hero h2 {
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 7px;
  color: var(--ap-accent, #294a38);
}
.hero p {
  font-size: 12px;
  color: var(--ap-muted, #71846b);
}
.hero-symbol {
  width: 64px;
  height: 64px;
  border: 1px solid var(--ap-line, #a6ba93);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--ap-muted, #749461);
  position: relative;
}
.hero-symbol:after {
  position: absolute;
  content: "";
  inset: 8px;
  border: 1px solid var(--ap-line, #b3c7a0);
  border-radius: 50%;
}
.hero-symbol .icon {
  width: 25px;
  height: 25px;
}
.section-gap {
  margin-top: 24px;
}
.empty {
  text-align: center;
  padding: 42px 20px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 11px;
}
.empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--ap-tint, #f0f5ed);
  color: var(--ap-muted, #7d9879);
  border-radius: 16px;
  margin-bottom: 3px;
}
.empty-icon .icon {
  width: 23px;
  height: 23px;
}
.empty h3 {
  font-size: 14px;
}
.empty p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 400px;
}
.empty .btn {
  margin-top: 5px;
}
.notice {
  padding: 13px 15px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border-radius: 9px;
  border: 1px solid var(--ap-line, #dce6d6);
  background: var(--ap-tint, #f5f8ef);
  color: var(--ap-muted, #6c7e63);
  font-size: 12px;
  line-height: 1.8;
}
.notice.warning {
  background: var(--ap-surface, #fff9eb);
  border-color: var(--ap-line, #eee3c5);
  color: var(--ap-warning, #98742f);
}
.notice.danger {
  background: var(--ap-surface, #fff5f2);
  border-color: var(--ap-line, #eddad4);
  color: var(--ap-danger, #9b554b);
}
.notice .icon {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex: none;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--ap-tint, #f0f3ee);
  color: var(--ap-muted, #73816f);
  font-size: 10px;
  line-height: 1.5;
  white-space: nowrap;
  font-weight: 500;
}
.badge.good {
  color: var(--ap-accent, #3e7b57);
  background: var(--ap-tint, #eaf5e9);
}
.badge.warn {
  color: var(--ap-warning, #9e7736);
  background: var(--ap-tint, #fcf3df);
}
.badge.bad {
  color: var(--ap-accent, #ad6356);
  background: var(--ap-tint, #f9eae5);
}
.badge.blue {
  color: var(--ap-muted, #59788b);
  background: var(--ap-tint, #eef3f6);
}
.badge.teal {
  color: var(--ap-accent, #3a7467);
  background: var(--ap-tint, #e8f3ed);
}
.pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.pill {
  padding: 2px 8px;
  background: var(--ap-tint, #f5f6f1);
  border: 1px solid var(--ap-line, #e7ebe1);
  border-radius: 5px;
  font-size: 10px;
  color: var(--ap-muted, #7b8874);
}
.filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 21px;
}
.filters input,
.filters select {
  width: auto;
  background: var(--ap-surface, white);
  font-size: 12px;
  min-height: 39px;
}
.filters .search-input {
  flex: 1;
  min-width: 210px;
}
.search-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
}
.search-wrap .icon {
  position: absolute;
  left: 12px;
  top: 12px;
  color: var(--ap-muted, #879887);
  width: 16px;
  height: 16px;
}
.search-wrap input {
  width: 100%;
  padding-left: 37px;
}
.filters .date {
  width: 142px;
}
.tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
  overflow-x: auto;
}
.tab {
  background: transparent;
  border: 0;
  padding: 11px 14px 12px;
  color: var(--muted);
  font-size: 12px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}
.content-list {
  display: flex;
  flex-direction: column;
}
.content-row {
  padding: 20px 0;
  border-bottom: 1px solid var(--ap-line, #edf0e9);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.content-row:first-child {
  padding-top: 0;
}
.content-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.content-index {
  font-size: 11px;
  line-height: 25px;
  color: var(--ap-muted, #a4afa0);
  font-variant-numeric: tabular-nums;
  min-width: 18px;
}
.content-title {
  font-size: 14px;
  line-height: 1.7;
  font-weight: 600;
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  color: var(--ink);
  display: block;
}
.content-title:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.content-summary {
  font-size: 12px;
  line-height: 1.85;
  color: var(--ap-muted, #83907f);
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.content-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  font-size: 10px;
  color: var(--ap-muted, #91a08a);
  margin-top: 11px;
}
.content-meta .dot {
  width: 3px;
  height: 3px;
  background: var(--ap-tint, #c0cbb8);
}
.content-actions {
  display: flex;
  gap: 6px;
  flex: none;
  align-items: center;
}
.source-card {
  padding: 23px;
  background: var(--ap-surface, white);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.source-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--ap-tint, #f0f5ed);
  color: var(--ap-muted, #617d58);
  display: grid;
  place-items: center;
  flex: none;
}
.source-header {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 20px;
}
.source-kind {
  font-size: 10px;
  color: var(--ap-muted, #98a18e);
  margin-top: 2px;
}
.source-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 19px 0 15px;
  gap: 10px;
}
.source-numbers div:not(:last-child) {
  border-right: 1px solid var(--line);
}
.source-numbers strong {
  font-size: 20px;
  font-weight: 550;
  display: block;
  line-height: 1.2;
}
.source-numbers span {
  font-size: 10px;
  color: var(--ap-muted, #8d9b85);
  display: block;
  margin-top: 6px;
}
.coverage-track {
  height: 5px;
  background: var(--ap-tint, #edf1e7);
  border-radius: 5px;
  overflow: hidden;
  margin: 10px 0;
}
.coverage-track > span {
  display: block;
  background: var(--ap-solid, #91ae82);
  height: 100%;
  min-width: 0;
}
.coverage-track.unknown > span {
  width: 100%;
  background: repeating-linear-gradient(
    110deg,
    var(--ap-tint, #e1e9d8),
    var(--ap-tint, #e1e9d8) 7px,
    var(--ap-tint, #eff3e9) 7px,
    var(--ap-tint, #eff3e9) 14px
  );
}
.source-note {
  min-height: 37px;
  font-size: 11px;
  line-height: 1.8;
  color: var(--ap-muted, #89987e);
  margin: 11px 0 17px;
}
.source-footer {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.source-time {
  font-size: 10px;
  color: var(--ap-muted, #95a18b);
}
.source-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--ap-line, #edf0e9);
}
.source-mini:first-child {
  padding-top: 0;
}
.source-mini:last-child {
  padding-bottom: 0;
  border: 0;
}
.source-mini .source-icon {
  width: 35px;
  height: 35px;
  border-radius: 9px;
}
.source-mini-title {
  font-size: 12px;
  font-weight: 550;
}
.source-mini-sub {
  font-size: 10px;
  color: var(--ap-muted, #91a087);
  margin-top: 3px;
}
.coverage-balance {
  text-align: right;
  font-size: 12px;
  font-weight: 550;
}
.coverage-balance small {
  display: block;
  font-size: 10px;
  color: var(--ap-muted, #9aa58f);
  font-weight: 400;
  margin-top: 3px;
}
.job-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ap-line, #eef1e8);
}
.job-row:last-child {
  border: 0;
}
.job-marker {
  margin-top: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ap-solid, #9fb592);
}
.job-marker.error {
  background: var(--ap-solid, #c88e78);
}
.job-label {
  font-size: 12px;
}
.job-detail {
  font-size: 10px;
  color: var(--ap-muted, #929e88);
  margin-top: 3px;
}
.table-wrap {
  overflow: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.table th {
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.4px;
  font-weight: 500;
  color: var(--ap-muted, #8b9881);
  background: var(--ap-surface, #f7f9f3);
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
}
.table td {
  padding: 14px 13px;
  border-bottom: 1px solid var(--ap-line, #edf0e8);
  vertical-align: top;
}
.table tr:last-child td {
  border-bottom: 0;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 11px;
  color: var(--muted);
}
.rules-layout {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 22px;
}
.rule-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rule-card {
  background: var(--ap-surface, #fff);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  text-align: left;
  width: 100%;
  color: var(--ink);
}
.rule-card.active {
  border-color: var(--ap-rule, #78956a);
  background: var(--ap-tint, #f4f8ed);
}
.rule-card:hover {
  border-color: var(--ap-line, #a3b596);
}
.rule-card p {
  font-size: 11px;
  color: var(--ap-muted, #8b997e);
  margin-top: 7px;
  line-height: 1.8;
}
.rule-footer {
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1px solid var(--ap-line, #e8eddf);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.rec-card {
  padding: 23px;
  background: var(--ap-surface, white);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.rec-card + .rec-card {
  margin-top: 14px;
}
.rec-reason {
  font-size: 11px;
  color: var(--ap-muted, #7d9171);
  background: var(--ap-tint, #f4f8ef);
  padding: 9px 11px;
  border-radius: 6px;
  margin-top: 14px;
}
.rec-foot {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.annotation-card {
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: var(--ap-surface, #fff);
  border-radius: 12px;
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.annotation-card input[type="checkbox"] {
  margin-top: 5px;
}
.annotation-card.revoked {
  opacity: 0.65;
}
.annotation-note {
  font-size: 13px;
  line-height: 1.9;
  margin: 13px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.annotation-history {
  font-size: 11px;
  margin-top: 12px;
  color: var(--ap-muted, #89937e);
}
.history-item {
  border-left: 2px solid var(--ap-line, #dbe3d2);
  padding: 5px 10px;
  margin-top: 8px;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.form-field.full {
  grid-column: 1 / -1;
}
.form-label {
  font-size: 12px;
  font-weight: 550;
}
.form-hint {
  font-size: 10px;
  line-height: 1.8;
  color: var(--ap-muted, #8c9a81);
}
.form-section-title {
  font-size: 12px;
  margin-bottom: 14px;
  color: var(--ap-muted, #6d825e);
  font-weight: 600;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  cursor: pointer;
}
.checkbox-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.advanced {
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 18px;
}
.advanced summary {
  cursor: pointer;
  margin-bottom: 13px;
}
.form-error {
  color: var(--danger);
  background: var(--ap-surface, #fff4ef);
  border: 1px solid var(--ap-line, #f1dcd3);
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 12px;
  margin-top: 12px;
}
.dialog-backdrop {
  position: fixed;
  inset: 0;
  background: var(--ap-scrim, #122a23a3);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}
.dialog {
  background: var(--ap-surface, #fff);
  border: 1px solid var(--ap-line, #dce4d4);
  border-radius: 17px;
  width: 600px;
  max-width: 100%;
  max-height: calc(100dvh - 48px);
  overflow: auto;
  box-shadow: 0 24px 100px var(--ap-shadow, #09160d30);
  animation: appear 0.16s ease-out;
}
.dialog.wide {
  width: 830px;
}
.dialog-header {
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  background: var(--ap-surface, #fff);
  z-index: 1;
}
.dialog-header h2 {
  font-size: 17px;
}
.dialog-body {
  padding: 24px 26px;
}
.dialog-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 23px;
  margin-top: 23px;
  border-top: 1px solid var(--line);
}
.detail-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.detail-title {
  font-size: 24px;
  line-height: 1.6;
  margin-bottom: 15px;
}
.detail-body {
  font-size: 13px;
  line-height: 2;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 22px 0;
  color: var(--ap-muted, #4e6350);
}
.detail-summary {
  background: var(--ap-tint, #f6f8f0);
  border-radius: 8px;
  padding: 16px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--ap-muted, #718369);
}
.detail-extra {
  font-size: 11px;
  color: var(--ap-muted, #93a087);
}
.chat-layout {
  max-width: 920px;
  margin: auto;
}
.chat-welcome {
  padding: 36px 25px 28px;
  text-align: center;
}
.chat-emblem {
  width: 55px;
  height: 55px;
  background: var(--ap-tint, #e5eedc);
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin: 0 auto 17px;
  color: var(--ap-muted, #5c7c4e);
}
.chat-emblem .icon {
  width: 26px;
  height: 26px;
}
.chat-welcome h2 {
  font-size: 24px;
  margin-bottom: 10px;
}
.chat-welcome p {
  font-size: 12px;
  line-height: 1.9;
  color: var(--ap-muted, #8a997f);
  max-width: 540px;
  margin: auto;
}
.chat-examples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 25px 0;
}
.chat-example {
  padding: 17px;
  text-align: left;
  background: var(--ap-surface, #fff);
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ap-muted, #77886c);
  font-size: 12px;
  line-height: 1.8;
}
.chat-example:hover {
  border-color: var(--ap-line, #9fb58c);
  background: var(--ap-surface, #fafcf6);
}
.chat-example strong {
  display: block;
  color: var(--ap-muted, #506949);
  font-size: 12px;
  margin-bottom: 5px;
}
.chat-composer {
  background: var(--ap-surface, #fff);
  border: 1px solid var(--ap-line, #cad8bc);
  border-radius: 13px;
  padding: 16px;
  box-shadow: 0 5px 20px var(--ap-shadow, #1e402609);
  margin-top: 22px;
}
.chat-composer textarea {
  border: 0;
  outline: none;
  padding: 4px;
  resize: vertical;
  min-height: 95px;
  font-size: 13px;
  background: transparent;
}
.chat-composer textarea:focus {
  outline: none;
}
.composer-bottom {
  border-top: 1px solid var(--ap-line, #edf1e6);
  margin-top: 10px;
  padding-top: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.chat-options {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.chat-options label {
  font-size: 11px;
  color: var(--ap-muted, #87987a);
}
.chat-message {
  margin: 25px 0;
}
.chat-user {
  margin-left: 70px;
  background: var(--ap-tint, #e8efdf);
  border: 1px solid var(--ap-line, #dfe8d2);
  border-radius: 13px 13px 3px 13px;
  padding: 16px 19px;
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.chat-answer {
  margin-top: 18px;
  display: flex;
  gap: 13px;
}
.assistant-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  background: var(--primary);
  color: var(--ap-on-solid, white);
  border-radius: 8px;
  margin-top: 2px;
}
.assistant-avatar .icon {
  width: 16px;
  height: 16px;
}
.chat-answer-content {
  flex: 1;
  min-width: 0;
}
.answer-body {
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 2;
  color: var(--ap-muted, #4b6048);
  margin-top: 10px;
  overflow-wrap: anywhere;
}
.citations {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin-top: 17px;
}
.citation {
  border: 1px solid var(--line);
  background: var(--ap-surface, white);
  border-radius: 8px;
  padding: 11px 13px;
  font-size: 11px;
  line-height: 1.7;
  text-decoration: none;
  display: block;
}
.citation:hover {
  border-color: var(--ap-line, #a8bd95);
}
.citation small {
  display: block;
  font-size: 10px;
  color: var(--ap-muted, #92a187);
  margin-top: 4px;
}
.task-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.task-column {
  background: var(--ap-tint, #eaf0e3);
  border: 1px solid var(--ap-line, #e0e7d7);
  padding: 15px;
  border-radius: 12px;
}
.task-column-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 12px;
  font-weight: 550;
  color: var(--ap-muted, #718364);
}
.task-card {
  background: var(--ap-surface, white);
  border: 1px solid var(--ap-line, #dfe6d6);
  border-radius: 10px;
  padding: 16px;
  margin-top: 11px;
  box-shadow: 0 2px 5px var(--ap-shadow, #20321303);
}
.task-card p {
  font-size: 11px;
  color: var(--ap-muted, #8a987e);
  margin-top: 7px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.task-card-title {
  font-size: 13px;
  font-weight: 550;
}
.task-foot {
  display: flex;
  justify-content: space-between;
  gap: 9px;
  align-items: center;
  border-top: 1px solid var(--ap-line, #ecf0e6);
  margin-top: 14px;
  padding-top: 12px;
  font-size: 10px;
  color: var(--ap-muted, #99a38f);
}
.task-foot select {
  font-size: 10px;
  min-height: 28px;
  padding: 4px 7px;
  max-width: 90px;
}
.profile-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ap-surface, #fff);
}
.profile-body {
  font-size: 12px;
  line-height: 1.9;
  color: var(--ap-muted, #7e9071);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 15px 0;
  max-height: 250px;
  overflow: auto;
}
.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 22px;
}
.settings-panel {
  padding: 25px;
}
.settings-panel + .settings-panel {
  margin-top: 22px;
}
.settings-panel h2 {
  font-size: 16px;
  margin-bottom: 5px;
}
.settings-panel .settings-desc {
  font-size: 11px;
  color: var(--ap-muted, #8b9b7e);
  line-height: 1.8;
  margin-bottom: 23px;
}
.settings-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}
.definition {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 0;
  font-size: 12px;
  border-bottom: 1px solid var(--ap-line, #edf0e6);
}
.definition:last-child {
  border: 0;
}
.definition span:first-child {
  color: var(--ap-muted, #8a9a7d);
}
.boot {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
}
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--ap-line, #dae3d2);
  border-top-color: var(--ap-rule, #63875b);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
.loading {
  padding: 80px;
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: center;
  color: var(--ap-muted, #8b9b7d);
  font-size: 12px;
}
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--ap-surface, #f8faf5);
}
.login-story {
  background: var(--dark);
  padding: 65px 70px;
  color: var(--ap-on-solid, #dce8d0);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.login-story:before {
  content: "";
  position: absolute;
  width: 470px;
  height: 470px;
  right: -170px;
  bottom: 30px;
  border: 1px solid #b6c9a321;
  border-radius: 50%;
  box-shadow:
    0 0 0 62px var(--ap-shadow, #ffffff02),
    0 0 0 125px var(--ap-shadow, #ffffff02),
    0 0 0 190px var(--ap-shadow, #ffffff02);
  pointer-events: none;
}
.login-story .brand {
  padding: 0;
}
.login-story-content {
  position: relative;
  margin: 65px 0;
}
.login-story h1 {
  font-size: 43px;
  line-height: 1.6;
  letter-spacing: -1px;
  font-weight: 500;
}
.login-story p {
  font-size: 13px;
  line-height: 2;
  color: var(--ap-muted, #9bb69b);
  margin-top: 25px;
  max-width: 360px;
}
.login-story-footer {
  font-size: 10px;
  letter-spacing: 1.6px;
  color: var(--ap-muted, #8ba88b);
}
.login-form-area {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
}
.login-card {
  width: 365px;
  max-width: 100%;
}
.login-card h2 {
  font-size: 27px;
  margin-bottom: 9px;
}
.login-card .login-mode {
  display:flex;
  gap:20px;
  margin-bottom:20px;
  border-bottom:1px solid var(--ap-line,#cfdad5);
}
.login-mode a {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 3px;
  color:var(--ap-muted,#52645d);
  font-size:15px;
  text-decoration:none;
  border-bottom:2px solid transparent;
}
.login-mode a[aria-current="page"] {
  color:var(--ap-accent,#20594b);
  border-bottom-color:currentColor;
  font-weight:700;
}
.login-mode a:focus-visible {outline:2px solid var(--ap-focus,#286751);outline-offset:2px}
.login-card .login-desc {
  font-size: 12px;
  color: var(--ap-muted, #89987b);
  line-height: 1.9;
  margin-bottom: 30px;
}
.login-card form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.login-card .btn {
  min-height: 45px;
}
.login-foot {
  font-size: 10px;
  color: var(--ap-muted, #9ba88f);
  line-height: 1.9;
  text-align: center;
  margin-top: 25px;
}
.toasts {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(430px, calc(100vw - 40px));
}
.toast {
  padding: 13px 18px;
  border: 1px solid var(--ap-line, #d8e4cf);
  border-radius: 10px;
  background: var(--ap-surface, #fff);
  box-shadow: 0 6px 35px var(--ap-shadow, #19361d1a);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  animation: appear 0.18s ease-out;
}
.toast.error {
  border-color: var(--ap-line, #eed6cd);
  color: var(--ap-danger, #a86454);
}
.toast .icon {
  color: var(--ap-muted, #7e9a68);
}
.toast.error .icon {
  color: var(--ap-danger, #b9816c);
}
.mobile-scrim {
  display: none;
}
.template-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.template-item {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  text-align: left;
  background: var(--ap-surface, #fff);
}
.template-item:hover {
  border-color: var(--ap-line, #a2b98d);
  background: var(--ap-surface, #f7faf2);
}
.template-item h3 {
  font-size: 13px;
}
.template-item p {
  font-size: 11px;
  color: var(--ap-muted, #8c9d7d);
  margin-top: 5px;
  line-height: 1.8;
}
.selectable-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tag-check {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--ap-tint, #f5f8ef);
  border: 1px solid var(--ap-line, #e2e9d8);
  border-radius: 6px;
  padding: 6px 9px;
  font-size: 11px;
  color: var(--ap-muted, #7a8c6e);
}
.capability {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--ap-line, #edf0e6);
}
.capability:last-child {
  border: 0;
}
.capability p {
  font-size: 10px;
  color: var(--ap-muted, #95a386);
  margin-top: 3px;
  line-height: 1.8;
}
.capability h3 {
  font-size: 12px;
}
.source-warning {
  font-size: 11px;
  color: var(--ap-warning, #a07842);
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.mt-16 {
  margin-top: 16px;
}
.mt-24 {
  margin-top: 24px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1600px) {
  .page {
    padding-top: 43px;
  }
  .stats {
    gap: 22px;
  }
  .source-card {
    padding: 26px;
  }
}
@media (max-width: 1240px) {
  .shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .sidebar {
    width: 210px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .page {
    padding: 29px;
  }
  .topbar {
    padding: 0 29px;
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-main {
    grid-template-columns: minmax(0, 1.35fr) minmax(250px, 1fr);
  }
  .stat {
    padding: 18px;
  }
  .stat-icon {
    display: none;
  }
  .rules-layout {
    grid-template-columns: 250px minmax(0, 1fr);
  }
  .settings-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .settings-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .settings-sidebar .settings-panel {
    margin: 0;
  }
  .login-story {
    padding: 50px;
  }
  .login-story h1 {
    font-size: 36px;
  }
}
@media (max-width: 1000px) {
  .grid-main {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 12px;
  }
  .stat-value {
    font-size: 27px;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .top-right .current-date {
    display: none;
  }
  .rules-layout {
    grid-template-columns: 1fr;
  }
  .rule-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .task-board {
    gap: 10px;
  }
  .task-column {
    padding: 10px;
  }
  .chat-examples {
    grid-template-columns: 1fr;
  }
  .chat-example {
    padding: 12px 16px;
  }
  .login-story {
    padding: 40px;
  }
  .login-story h1 {
    font-size: 30px;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 232px;
  }
  .shell.menu-open .sidebar {
    transform: translateX(0);
  }
  .mobile-scrim {
    position: fixed;
    inset: 0;
    background: var(--ap-solid, #172b1e80);
    z-index: 25;
  }
  .shell.menu-open .mobile-scrim {
    display: block;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .topbar {
    height: 61px;
    padding: 0 17px;
  }
  .crumb {
    gap: 8px;
  }
  .crumb .root-crumb,
  .crumb .slash {
    display: none;
  }
  .top-right {
    gap: 9px;
  }
  .top-right .top-separator {
    display: none;
  }
  .top-right .connection {
    font-size: 10px;
  }
  .page {
    padding: 25px 18px 35px;
  }
  .page-heading {
    margin-bottom: 23px;
    gap: 12px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading .button-row {
    justify-content: flex-end;
  }
  .page-heading .btn {
    padding: 8px 10px;
    font-size: 11px;
  }
  .page-description {
    font-size: 12px;
  }
  .hero {
    padding: 21px;
  }
  .hero h2 {
    font-size: 16px;
  }
  .hero-symbol {
    display: none;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .stat {
    padding: 17px;
  }
  .stat-value {
    font-size: 28px;
  }
  .stat-label {
    font-size: 11px;
  }
  .stat-foot {
    font-size: 9px;
  }
  .panel {
    padding: 20px;
  }
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .content-row {
    gap: 9px;
  }
  .content-title {
    font-size: 13px;
  }
  .content-summary {
    font-size: 11px;
  }
  .content-actions {
    flex-direction: column;
  }
  .content-actions .btn {
    font-size: 10px;
    padding: 5px 7px;
  }
  .source-card {
    padding: 21px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-field.full {
    grid-column: auto;
  }
  .dialog-backdrop {
    padding: 12px;
  }
  .dialog {
    max-height: calc(100dvh - 24px);
    border-radius: 13px;
  }
  .dialog-header {
    padding: 17px 20px;
  }
  .dialog-body {
    padding: 20px;
  }
  .detail-title {
    font-size: 20px;
  }
  .filters {
    gap: 8px;
  }
  .filters .search-wrap {
    min-width: 100%;
  }
  .filters input,
  .filters select {
    font-size: 11px;
    flex: 1;
    min-width: 100px;
  }
  .filters .date {
    min-width: 125px;
  }
  .rule-list {
    grid-template-columns: 1fr;
  }
  .toolbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .task-board {
    grid-template-columns: 1fr;
  }
  .task-column {
    padding: 15px;
  }
  .settings-sidebar {
    grid-template-columns: 1fr;
  }
  .chat-welcome {
    padding: 22px 6px;
  }
  .chat-welcome h2 {
    font-size: 21px;
  }
  .chat-options {
    gap: 10px;
  }
  .composer-bottom {
    align-items: flex-end;
  }
  .chat-options {
    flex-direction: column;
  }
  .chat-user {
    margin-left: 30px;
  }
  .citations {
    grid-template-columns: 1fr;
  }
  .login-page {
    display: block;
  }
  .login-story {
    padding: 28px 30px;
  }
  .login-story-content {
    margin: 30px 0 0;
  }
  .login-story h1 {
    font-size: 26px;
    line-height: 1.5;
  }
  .login-story p,
  .login-story-footer {
    display: none;
  }
  .login-form-area {
    padding: 35px 25px;
  }
  .login-card h2 {
    font-size: 23px;
  }
  .table {
    min-width: 610px;
  }
  .toasts {
    bottom: 18px;
    right: 18px;
    max-width: calc(100vw - 36px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.dialog-footer {
  flex-wrap: wrap;
}
.content-row .content-title {
  margin-top: 0;
}
[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
/* Live newsroom, explicit recommendation feedback, and account onboarding. */
.sidebar {
  overflow-y: auto;
}
.mt-8 {
  margin-top: 8px;
}
.mb-20 {
  margin-bottom: 20px;
}
.live-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ap-muted, #7f9273);
  font-size: 10px;
  white-space: nowrap;
}
.onboarding-panel {
  border: 1px solid var(--ap-line, #d9e5cf);
  border-radius: 12px;
  background: var(--ap-surface, #f9fcf4);
  padding: 5px 20px;
  margin-bottom: 24px;
}
.onboarding-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 0;
}
.onboarding-step + .onboarding-step {
  border-top: 1px solid var(--ap-line, #e4ebda);
}
.onboarding-number {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--ap-tint, #e8f0dc);
  display: grid;
  place-items: center;
  color: var(--ap-muted, #7f976b);
  font-size: 11px;
  flex: none;
}
.onboarding-step h3 {
  font-size: 13px;
}
.onboarding-step p {
  font-size: 11px;
  color: var(--ap-muted, #8b9a7d);
  line-height: 1.8;
  margin-top: 4px;
}
.warning-step .onboarding-number {
  background: var(--ap-tint, #f8edd7);
  color: var(--ap-warning, #aa844b);
}
.news-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.news-toolbar .tabs {
  border: 0;
}
.news-toolbar select {
  font-size: 11px;
  min-height: 35px;
  width: auto;
  padding: 6px 9px;
}
.news-toolbar > .flex {
  padding-bottom: 8px;
  gap: 15px;
}
.news-summary-line {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: var(--ap-muted, #8c9c7f);
  font-size: 11px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px;
}
.news-card {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--ap-surface, #fff);
  padding: 23px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.news-card-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 10px;
  color: var(--ap-muted, #8b9b7c);
  align-items: flex-start;
}
.news-source {
  color: var(--ap-muted, #65805a);
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}
.news-card-top time {
  white-space: nowrap;
  flex: none;
}
.news-title {
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.2px;
  font-weight: 600;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  margin-top: 17px;
  color: var(--ap-accent, #284533);
}
.news-title:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.news-excerpt {
  font-size: 12px;
  line-height: 1.95;
  color: var(--ap-muted, #74896a);
  margin-top: 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.news-keypoints {
  margin: 15px 0 0;
  padding-left: 17px;
  font-size: 11px;
  line-height: 1.85;
  color: var(--ap-muted, #8b9c7c);
}
.news-keypoints li + li {
  margin-top: 5px;
}
.news-card-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--ap-line, #edf1e6);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}
.analysis-section {
  margin-top: 26px;
}
.analysis-section h3 {
  font-size: 13px;
  color: var(--ap-muted, #59764e);
  margin-bottom: 12px;
}
.analysis-section p {
  font-size: 13px;
  line-height: 2;
  color: var(--ap-muted, #607854);
  overflow-wrap: anywhere;
}
.analysis-points {
  padding-left: 20px;
  margin: 0;
  color: var(--ap-muted, #718567);
  line-height: 1.95;
  font-size: 12px;
}
.analysis-points li + li {
  margin-top: 9px;
}
.model-commentary {
  padding: 19px 20px;
  border: 1px solid var(--ap-line, #d9e7d0);
  background: var(--ap-tint, #f6f9f0);
  border-radius: 10px;
}
.model-commentary .flex {
  color: var(--ap-muted, #6c8b5a);
  margin-bottom: 10px;
}
.model-commentary .flex h3 {
  margin-bottom: 0;
}
.citation-link {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.citation-link .icon {
  width: 13px;
  height: 13px;
  margin-top: 2px;
}
.score-detail {
  font-size: 11px;
  color: var(--ap-muted, #809474);
  background: var(--ap-tint, #f6f9f0);
  padding: 10px 12px;
  border-radius: 7px;
}
.score-detail summary {
  cursor: pointer;
  font-weight: 500;
}
.score-detail ul {
  padding-left: 17px;
  margin: 9px 0 0;
  line-height: 1.9;
}
.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 4px;
}
.feedback-actions .btn {
  flex: 1;
  min-width: 84px;
  font-size: 11px;
  padding: 6px 9px;
}
.feedback-actions .btn.selected {
  background: var(--ap-tint, #e5efda);
  color: var(--ap-accent, #3c6031);
  border-color: var(--ap-line, #a7bd92);
}
.feedback-actions .icon {
  width: 14px;
  height: 14px;
}
.feedback-receipt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  color: var(--ap-muted, #80936e);
  margin-top: 12px;
  background: var(--ap-tint, #f4f8ee);
  border-radius: 6px;
  padding: 7px 10px;
}
.feedback-receipt > span {
  overflow-wrap: anywhere;
  min-width: 0;
}
.preference-summary {
  padding: 17px;
  border: 1px solid var(--ap-line, #dfe8d3);
  border-radius: 10px;
  background: var(--ap-surface, #f8faf3);
  color: var(--ap-muted, #738c64);
}
.preference-summary strong {
  font-size: 11px;
  font-weight: 550;
}
.preference-summary .icon {
  width: 15px;
  height: 15px;
}
.preference-summary p {
  font-size: 10px;
  line-height: 1.9;
  margin: 9px 0 4px;
}
.weight-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 45px;
  gap: 14px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--ap-line, #edf1e5);
}
.weight-row:last-child {
  border: 0;
}
.weight-label {
  display: block;
  font-size: 12px;
  color: var(--ap-muted, #60784f);
  overflow-wrap: anywhere;
}
.weight-row small {
  font-size: 9px;
}
.weight-row strong {
  font-size: 12px;
  font-weight: 550;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.weight-track {
  height: 8px;
  background: var(--ap-tint, #f0f4e8);
  border-radius: 4px;
  position: relative;
}
.weight-track:after {
  content: "";
  position: absolute;
  left: 50%;
  top: -3px;
  height: 14px;
  width: 1px;
  background: var(--ap-tint, #b9c6ac);
}
.weight-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 4px;
}
.weight-fill.positive {
  left: 50%;
  background: var(--ap-solid, #a6c18c);
}
.weight-fill.negative {
  right: 50%;
  background: var(--ap-tint, #d8b590);
}
.weight-positive {
  color: var(--ap-muted, #76955f);
}
.weight-negative {
  color: var(--ap-accent, #b18a5e);
}
.feedback-history-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ap-surface, #fff);
}
.feedback-history-card.inactive {
  background: var(--ap-surface, #f9fbf6);
  color: var(--ap-muted, #8e9c80);
}
.feedback-history-card h3 {
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.email-options {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.email-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--ap-surface, #fff);
  border: 1px solid var(--line);
  border-radius: 11px;
  text-align: left;
  color: var(--ink);
}
.email-option:hover {
  background: var(--ap-surface, #f7faf1);
  border-color: var(--ap-line, #9bb586);
}
.email-option h3 {
  font-size: 14px;
}
.email-option p {
  font-size: 11px;
  color: var(--ap-muted, #8b9e7b);
  margin-top: 3px;
}
.email-option > .icon {
  color: var(--ap-muted, #92a481);
  width: 15px;
}
.email-preset-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  padding: 12px;
  background: var(--ap-tint, #f6f9ef);
  border: 1px solid var(--ap-line, #e5ecd9);
  border-radius: 9px;
}
.connection-guide {
  padding: 17px 18px;
  border: 1px solid var(--ap-line, #dbe7d0);
  background: var(--ap-surface, #f7faf1);
  border-radius: 10px;
}
.connection-guide h3 {
  font-size: 13px;
  color: var(--ap-muted, #647f52);
}
.connection-guide ol {
  margin: 14px 0 0;
  padding-left: 20px;
  line-height: 1.9;
  font-size: 11px;
  color: var(--ap-muted, #81966f);
}
.connection-guide li + li {
  margin-top: 7px;
}
.connection-guide .form-hint {
  margin-top: 11px;
}
.browser-platform-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.browser-platform-options > div {
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ap-surface, #fff);
}
.browser-pairing-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.browser-pairing-panel textarea {
  overflow-wrap: anywhere;
  font-size: 11px;
}
.browser-connection-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.browser-connection-status strong {
  flex: 1 1 140px;
  font-size: 12px;
}
.codex-status {
  padding: 16px;
  border: 1px solid var(--ap-line, #dae7ce);
  background: var(--ap-tint, #f6f9ef);
  border-radius: 9px;
}
.codex-status strong {
  font-size: 12px;
}
.news-card .content-summary {
  -webkit-line-clamp: 4;
}
.preference-summary .btn {
  padding-left: 0;
}
.rec-card .content-title {
  font-size: 16px;
}
@media (max-width: 1100px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
  .news-toolbar {
    align-items: flex-start;
    gap: 10px;
  }
  .weight-row {
    grid-template-columns: minmax(0, 1fr) 90px 42px;
    gap: 10px;
  }
  .news-toolbar > .flex {
    width: 100%;
    justify-content: space-between;
  }
}
@media (max-width: 760px) {
  .onboarding-panel {
    padding: 3px 16px;
  }
  .onboarding-step {
    flex-wrap: wrap;
    gap: 11px;
  }
  .onboarding-step .grow {
    min-width: 230px;
  }
  .onboarding-step > .btn {
    margin-left: 43px;
  }
  .onboarding-number {
    width: 30px;
    height: 30px;
  }
  .news-card {
    padding: 20px;
  }
  .news-title {
    font-size: 16px;
  }
  .news-card-top {
    font-size: 9px;
    gap: 9px;
    flex-wrap: wrap;
  }
  .news-card-top time {
    white-space: normal;
  }
  .news-toolbar .tabs {
    width: 100%;
    justify-content: space-between;
  }
  .news-toolbar .tab {
    padding-left: 12px;
    padding-right: 12px;
  }
  .news-excerpt {
    font-size: 12px;
  }
  .news-keypoints {
    font-size: 11px;
  }
  .news-summary-line {
    font-size: 10px;
    gap: 5px;
  }
  .feedback-actions .btn {
    flex: 1 1 calc(50% - 8px);
  }
  .feedback-receipt {
    align-items: flex-start;
  }
  .weight-row {
    grid-template-columns: minmax(0, 1fr) 83px 40px;
    gap: 10px;
  }
  .feedback-history-card {
    padding: 18px;
  }
  .connection-guide .spread {
    align-items: flex-start;
  }
  .connection-guide .btn {
    font-size: 10px;
    padding: 6px 9px;
  }
  .rec-card .rec-foot {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .model-commentary {
    padding: 16px;
  }
  .analysis-section p {
    font-size: 12px;
  }
  .onboarding-step .grow {
    min-width: 0;
    flex-basis: calc(100% - 45px);
  }
  .email-option {
    padding: 16px;
  }
  .news-toolbar .live-status {
    font-size: 9px;
  }
  .settings-panel .checkbox-label {
    line-height: 1.8;
  }
}
.readable-text p {
  margin: 0 0 15px;
}
.readable-text p:last-child {
  margin-bottom: 0;
}
.readable-text strong {
  font-weight: 650;
  color: var(--ap-accent, #48653d);
}
.readable-text code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.93em;
  padding: 2px 4px;
  background: var(--ap-tint, #eaf0e2);
  border-radius: 4px;
  overflow-wrap: anywhere;
}
.readable-text h4 {
  font-size: 13px;
  margin: 18px 0 10px;
  color: var(--ap-accent, #4d6c40);
}
.readable-text ul {
  font-size: 13px;
  line-height: 2;
  color: var(--ap-muted, #607854);
  padding-left: 20px;
}
.readable-text li + li {
  margin-top: 6px;
}
:root { --runtime-gap: 18px; }
.runtime-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--runtime-gap); }
.runtime-item { padding: 4px 0; min-width: 0; }
.runtime-item > strong { display: block; font-size: 22px; margin: 8px 0; }
.runtime-item > p { line-height: 1.7; margin: 0; overflow-wrap: anywhere; }
@media (max-width: 1000px) { .runtime-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .runtime-grid { grid-template-columns: 1fr; } }
