:root {
  color-scheme: light;
  --paper: #f3f4ec;
  --white: #fbfcf7;
  --ink: #192d27;
  --muted: #56685d;
  --line: #d4dbce;
  --deep: #16362e;
  --leaf: #d9ee9d;
  --leaf-hover: #c6e67c;
  --danger: #9a362b;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { min-width: 300px; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
:focus-visible { outline: 2px solid #4d762d; outline-offset: 3px; }
.skip { position: absolute; top: 5px; left: 5px; z-index: 5; transform: translateY(-150%); padding: 10px; background: white; }
.skip:focus { transform: none; }
.frame { width: min(1240px, calc(100% - 72px)); margin-inline: auto; }
.header { background: var(--deep); color: #f8fbef; }
.topline { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand, nav, .local { display: flex; align-items: center; }
.brand { gap: 10px; font-weight: 780; white-space: nowrap; }
.brand-mark { width: 32px; aspect-ratio: 1; display: grid; place-items: center; background: var(--leaf); color: var(--ink); border-radius: 8px 8px 8px 1px; font-size: 24px; font-weight: 600; }
nav { gap: 8px; }
nav { flex-wrap: wrap; }
nav a { padding: 10px 13px; color: #dce9d9; font-size: 14px; border-radius: 5px; white-space: nowrap; }
nav a:hover, nav a[aria-current=page] { background: #2d5145; color: white; }
.header :focus-visible { outline-color: var(--leaf); }
.local { gap: 7px; color: #d0ddd0; white-space: nowrap; font-size: 12px; }
.local i { background: var(--leaf); width: 7px; height: 7px; border-radius: 50%; }
.main { flex: 1; padding-block: 43px 63px; }
.legal-copy { width: min(100%, 700px); }
.legal-copy h1 { font-size: clamp(36px,5vw,54px); margin: 8px 0 24px; }
.legal-copy section { margin: 0 0 24px; }
.legal-copy h2 { font-size: 19px; margin-bottom: 6px; }
.legal-copy p { line-height: 1.75; }
.legal-copy p a { text-decoration: underline; text-underline-offset: .15em; }
.legal-links, .launch-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.legal-links a:hover, .legal-links a:focus-visible { text-decoration: underline; }
.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: 1.45fr 1fr; gap: 50px; align-items: center; padding: 46px 52px; background: #e2ecd5; border: 1px solid #ceddc5; min-height: 370px; overflow: hidden; }
.hero::after { content: ""; z-index: -1; position: absolute; inset: 0 0 0 47%; pointer-events: none; opacity: .38; background-image: radial-gradient(#799577 1px, transparent 1px); background-size: 16px 16px; mask-image: linear-gradient(100deg,transparent,#000 70%); }
h1, h2, h3, p { margin: 0; }
h1 { letter-spacing: -.055em; }
.eyebrow { font-size: 13px; letter-spacing: .12em; font-weight: 750; color: #446253; }
.hero h1 { margin: 14px 0 16px; font-size: clamp(43px, 6vw, 83px); line-height: 1.05; font-weight: 850; }
.hero-intro { color: #43574b; font-size: 16px; margin-bottom: 24px; line-height: 1.55; }
.button {
  min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 9px 13px; border-radius: 6px; border: 1px solid transparent; white-space: nowrap; font-size: 14px; font-weight: 730;
}
.primary { background: var(--leaf); border-color: #acc177; color: #243821; }
.primary:hover { background: var(--leaf-hover); }
.action { background: var(--deep); color: #fafbf5; }
.action:hover { background: #2d5447; }
.quiet { background: var(--white); border-color: var(--line); color: var(--ink); }
.quiet:hover:not(:disabled) { background: #eaf0e3; }
.overview { background: #244538; color: white; padding: 27px 28px; box-shadow: 7px 7px 0 #b6ccb3; }
.overview .eyebrow { color: #d2e0cf; padding-bottom: 14px; border-bottom: 1px solid #577163; }
.overview dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.overview dl div { padding: 18px 8px 10px 0; }
.overview dt { color: #d1ded0; font-size: 13px; }
.overview dd { margin: 7px 0 0; font-size: clamp(26px,4vw,46px); color: #e4f3ad; font-weight: 760; line-height: 1; font-variant-numeric: tabular-nums; }
.overview #home-source { margin: 12px 0 0; font-size: 13px; color: #d2e0cf; }
.overview #home-source .outlink, .overview #home-source .outlink span { color: #e4f3ad; }
.workspace { margin-top: 33px; }
.workspace h2 { font-size: 17px; margin-bottom: 14px; }
.workspace-row { display: grid; grid-template-columns: auto 1fr auto; gap: 15px; align-items: center; border-top: 1px solid var(--line); padding: 15px 7px; }
.workspace-row:last-child { border-bottom: 1px solid var(--line); }
.workspace-row:hover { background: #e8edde; }
.tile-icon { background: #dfe9d4; border-radius: 5px; width: 40px; height: 40px; display: grid; place-items: center; color: #375745; font-size: 19px; }
.workspace-row h3 { font-size: 16px; margin-bottom: 4px; }
.workspace-row p { font-size: 13px; color: var(--muted); line-height: 1.45; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.page-heading h1 { font-size: clamp(36px,4.4vw,56px); line-height: 1.13; margin: 6px 0 10px; }
.page-heading p { line-height: 1.55; color: var(--muted); }
.back { color: #426452; font-weight: 680; font-size: 13px; }
.back:hover { text-decoration: underline; }
.panel { background: var(--white); border: 1px solid var(--line); }
.controls { margin-bottom: 16px; padding: 17px 19px; }
.filters { display: grid; grid-template-columns: 1.7fr repeat(3,minmax(104px,1fr)) auto; gap: 12px; align-items: end; }
label { display: grid; gap: 6px; color: #405448; font-weight: 650; font-size: 12px; }
input, select, textarea { min-width: 0; width: 100%; padding: 8px 10px; min-height: 39px; border: 1px solid #c9d3c5; border-radius: 5px; background: #fff; color: var(--ink); font-size: 14px; }
input::placeholder, textarea::placeholder { color: #68786f; }
textarea { resize: vertical; }
.advanced { margin-top: 12px; }
.advanced summary { font-weight: 700; color: #456051; font-size: 13px; }
.advanced-fields { display: grid; gap: 11px; grid-template-columns: repeat(auto-fit,minmax(130px,1fr)); margin-top: 13px; }
.result-bar { min-height: 57px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 19px; }
.result-bar h2 { font-size: 17px; }
.result-bar span, .status, .pagination { color: var(--muted); font-size: 13px; }
.empty { display: grid; gap: 8px; padding: 45px 20px; text-align: center; }
.empty strong { font-size: 17px; }
.empty p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
th, td { padding: 12px 13px; border-bottom: 1px solid #e2e7de; vertical-align: middle; }
th { background: #edf2e7; color: #486152; font-size: 12px; white-space: nowrap; font-weight: 720; }
td { font-variant-numeric: tabular-nums; }
tr:hover td { background: #f3f6ef; }
.site-cell { min-width: 180px; max-width: 315px; }
.site-cell div { display: inline-block; vertical-align: middle; max-width: calc(100% - 31px); }
small { display: block; color: var(--muted); line-height: 1.4; margin-top: 4px; overflow-wrap: anywhere; }
.ordinal { display: inline-block; vertical-align: middle; margin-right: 9px; width: 21px; color: #637469; font-size: 12px; }
.outlink { color: #254c3e; font-weight: 750; overflow-wrap: anywhere; }
.outlink span { font-size: .85em; color: #587764; }
.outlink:hover { text-decoration: underline; }
.spark { height: 28px; display: inline-flex; gap: 4px; align-items: end; }
.spark i { width: 7px; height: var(--bar); background: #517c60; border-radius: 2px 2px 0 0; }
.spark i:last-child { background: #9cb351; }
.spark i.missing { background: #d7e0d4; }
.positive { color: #206346; font-weight: 730; }
.negative, .problem { color: var(--danger)!important; }
.marks { display: flex; gap: 5px; }
.marks button { background: none; border: 1px solid transparent; padding: 4px; color: #4e6456; white-space: nowrap; border-radius: 4px; }
.marks button:hover, .marks button[aria-pressed=true] { background: #e8efdf; border-color: #ceddca; color: #234838; }
.marks button span { font-size: 11px; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; padding: 12px 17px; }
.pagination span { margin-right: 8px; }
.pagination label { display: flex; align-items: center; gap: 5px; }
.pagination input { width: 78px; }
dialog { max-width: 550px; width: calc(100% - 38px); border: 1px solid var(--line); border-radius: 8px; padding: 23px; color: var(--ink); background: var(--white); }
dialog::backdrop { background: #142b23a6; }
.dialog-top, .dialog-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
dialog p { margin: 11px 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
dialog form { display: grid; gap: 12px; }
dialog .dialog-actions { justify-content: flex-end; }
.status { min-height: 18px; padding-inline: 19px; }
.source-panel { margin-bottom: 16px; }
.source-form, .watch-filters { display: flex; align-items: end; gap: 10px; padding: 15px 19px 9px; }
.source-form label { flex: 1; }
.source-list { list-style: none; padding: 0; margin: 10px 0 0; }
.source-list li { display: grid; grid-template-columns: 2fr 1fr auto auto; align-items: center; gap: 10px; padding: 10px 18px; border-top: 1px solid var(--line); }
.source-status { color: var(--muted); font-size: 12px; }
.source-details { margin-top: 5px; font-size: 12px; color: var(--muted); }
.source-details p { margin-top: 5px; }
.source-details pre { max-height: 240px; white-space: pre-wrap; overflow-wrap: anywhere; overflow: auto; }
.inline-link { color: #2b5b46; text-decoration: underline; text-underline-offset: 2px; }
.rank-intel { display: inline-block; margin-top: 4px; font-size: 12px; }
.intel-panel { margin-block: 0 16px; }
.intel-section, .intel-details, .import-report { padding: 15px 19px; }
.intel-section p, .more-sources { line-height: 1.55; }
.intel-form, .intel-tools, .intel-actions { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.intel-form { padding: 15px 19px 9px; }
.intel-form label { flex: 1; min-width: min(100%,210px); }
.intel-tools { align-items: center; margin-bottom: 17px; }
.intel-panel .status { margin-bottom: 9px; }
.intel-details { border-top: 1px solid var(--line); }
.intel-details summary { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.intel-panel td { overflow-wrap: anywhere; }
.fact-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px 14px; margin: 12px 0 0; }
.fact-grid div { border-top: 1px solid var(--line); padding: 9px 0; }
.fact-grid dt, .subtle { font-size: 13px; color: var(--muted); }
.fact-grid dd { margin: 5px 0 0; overflow-wrap: anywhere; font-size: 14px; }
.issues, .claims { padding-inline-start: 20px; margin: 10px 0; line-height: 1.6; }
.issues { color: #763d2f; }
.more-sources { margin: 13px 19px; font-size: 14px; }
.import-report { display: grid; gap: 9px; padding-inline: 0; }
.import-report button { justify-self: start; }
#discovery-detail { padding: 15px 18px 0; }
#alerts-count { color: var(--leaf); font-variant-numeric: tabular-nums; }
@media(max-width: 1000px) { nav { gap: 1px; } nav a { padding-inline: 8px; } }
@media(max-width: 600px) { .fact-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
.watch-filters { padding-bottom: 14px; }
.watch-filters label { min-width: 105px; }
.watch-filters[hidden] { display: none; }
.public-sitemap-note { margin: 10px 19px; color: var(--muted); font-size: 13px; }
.public-sitemap-note:empty { display: none; }
.public-keywords { padding: 6px 19px; }
.public-keywords h3 { margin: 0 0 8px; font-size: 15px; }
.public-keywords ol { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.public-keywords li span { color: var(--muted); margin-left: 4px; }
.url-cell { min-width: 150px; }
.tag { background: #e7eee1; color: #365848; font-size: 12px; border-radius: 4px; padding: 4px 6px; white-space: nowrap; }
.footer { border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footline { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
@media(max-width: 760px) {
  .frame { width: calc(100% - 30px); }
  .topline { flex-wrap: wrap; gap: 3px 10px; padding-top: 11px; padding-bottom: 7px; }
  nav { width: 100%; order: 1; gap: 2px; }
  nav a { padding: 8px; font-size: 13px; }
  .main { padding-block: 23px 36px; }
  .hero { grid-template-columns: 1fr; gap: 23px; padding: 27px 22px; }
  .overview { padding: 17px; margin-right: 5px; }
  .hero::after { inset: 0 0 0 25%; }
  .page-heading { align-items: start; flex-direction: column; gap: 12px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filter-query { grid-column: span 2; }
  .source-list li { grid-template-columns: 1fr auto auto; }
  .source-list li > div:first-child { grid-column: 1 / -1; }
  .watch-filters { flex-wrap: wrap; }
  .watch-filters label { flex: 1; }
  th, td { padding: 10px 8px; }
}
@media(max-width: 430px) {
  .source-form { align-items: stretch; flex-direction: column; }
  .source-form button { align-self: start; }
}
