:root {
  font-family: "Geist", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: #202b24;
  background: #f3f5ef;
  --muted: #5b695e;
  --border: #dce3d8;
  --green: #174637;
  --paper: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 14px; line-height: 1.5; }
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
a { color: inherit; }
:focus-visible { outline: 2px solid #468753; outline-offset: 3px; }
h1, h2, p { margin: 0; }
.shell { width: min(1380px, calc(100% - 72px)); margin-inline: auto; }
.site-head { background: #fcfdf9; border-bottom: 1px solid var(--border); }
.header-inner { min-height: 61px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-size: 16px; font-weight: 760; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-icon { display: inline-flex; align-items: end; justify-content: center; gap: 3px; width: 30px; height: 30px; padding: 7px; border-radius: 8px; background: var(--green); }
.brand-icon i { display: block; width: 3px; height: 6px; background: #d7efaa; border-radius: 1px; }
.brand-icon i:nth-child(2) { height: 10px; }
.brand-icon i:nth-child(3) { height: 15px; }
.head-link { text-decoration: none; color: var(--green); font-weight: 650; }
.head-link:hover { text-decoration: underline; }
.head-link span { padding-left: 4px; }
main { padding-block: 28px 48px; }
.hero {
  display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 34px 36px 36px;
  border-radius: 15px; color: #f5faed; background:
    radial-gradient(ellipse at 84% 0%, #327154 0%, transparent 55%),
    radial-gradient(circle, #7eaa8c66 .8px, transparent .9px) 0 0 / 18px 18px,
    #173c31;
}
.hero-context { color: #deebd6; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #cdeb9e; box-shadow: 0 0 0 4px #cdeb9e29; }
h1 { font-size: clamp(30px, 4.4vw, 53px); line-height: 1.2; letter-spacing: -.045em; margin-block: 11px 9px; font-weight: 760; }
.hero p { color: #d9e7d9; }
.hero-actions { min-width: 152px; display: grid; gap: 9px; justify-items: stretch; }
.primary { border: 0; background: #d3eca8; color: #172c21; border-radius: 8px; font-weight: 750; padding: 12px 15px; white-space: nowrap; }
.primary span { margin-left: 16px; }
.primary:hover:not(:disabled) { background: #e0f4bf; }
.hero-stop { border: 1px solid #86a695; border-radius: 8px; color: white; background: #173c31; padding: 9px 12px; font-weight: 650; }
.auto-publish { font-size: 12px; color: #e1ecde; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
input[type=checkbox] { accent-color: #28664b; width: 16px; height: 16px; margin: 0; flex: none; }
.hero input[type=checkbox] { accent-color: #d3eca8; }
.panel { background: var(--paper); border: 1px solid var(--border); border-radius: 12px; }
.notice { padding: 10px 15px; margin-top: 14px; background: #ebf5e8; border: 1px solid #cadfc7; border-radius: 9px; }
.notice.error { color: #762e1b; background: #fff1e8; border-color: #efccbc; }
.activity { display: grid; grid-template-columns: 1.4fr 1fr .6fr; gap: 16px; align-items: start; margin-block: 16px; padding: 16px 22px; }
.activity:has(#progress-wrap:not([hidden])) { grid-template-columns: 1.25fr 1.15fr .9fr .55fr; }
.activity .label { font-size: 12px; color: var(--muted); }
.activity strong { display: block; font-size: 17px; line-height: 1.45; margin-top: 4px; }
.activity p { color: var(--muted); font-size: 12px; margin-top: 1px; }
.activity .metric { border-left: 1px solid var(--border); padding-left: 18px; }
#progress-wrap { align-self: center; }
.progress-head { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; }
progress { width: 100%; height: 9px; accent-color: #347759; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(315px, 348px); align-items: start; gap: 16px; }
.left { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 16px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
h2 { font-size: 18px; line-height: 1.3; font-weight: 750; letter-spacing: -.01em; }
.panel-head p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.subscription, .settings { padding: 19px 20px; }
.url-row { display: flex; gap: 8px; margin-top: 14px; }
.url-row input { flex: 1 1 0; min-width: 0; font-family: "IBM Plex Mono", "Consolas", monospace; color: #164431; background: #f5f7f2; }
input:not([type=checkbox]), textarea, select { color: inherit; background: #fbfcf9; border: 1px solid #d4ded3; border-radius: 7px; padding: 8px 10px; }
textarea { width: 100%; resize: vertical; }
input::placeholder, textarea::placeholder { color: #687769; font-size: 12px; }
.secondary { padding: 8px 12px; color: #24563f; background: #fff; border: 1px solid #cbd9cd; border-radius: 7px; font-weight: 680; white-space: nowrap; }
.secondary:hover:not(:disabled) { background: #edf5e9; border-color: #8cae96; }
.save { background: #eaf3e6; }
.results .panel-head { padding: 19px 20px 10px; flex-wrap: wrap; }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.result-sort { background: none; padding: 2px 0; border: 0; color: inherit; font: inherit; white-space: nowrap; }
.result-sort:hover { color: var(--green); }
.result-sort span { margin-inline-start: 4px; }
.select-all { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.tabs { display: flex; gap: 16px; padding-inline: 20px; border-bottom: 1px solid var(--border); }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 9px 1px 10px; white-space: nowrap; }
.tabs button[aria-pressed=true] { border-color: #31654a; color: #214b36; font-weight: 750; }
.tabs span { font-size: 11px; padding: 1px 6px; border-radius: 20px; background: #edf1eb; }
.empty { padding: 58px 18px; color: var(--muted); text-align: center; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 11px 8px; border-bottom: 1px solid #e6ebe4; white-space: nowrap; }
th { background: #f6f8f3; color: #516255; font-size: 11px; }
th:first-child, td:first-child { padding-left: 20px; }
th:last-child, td:last-child { padding-right: 20px; }
td { font-size: 12px; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcf8; }
.address { color: #214f3c; font: 650 12px/1.5 "IBM Plex Mono", Consolas, monospace; }
.meta { color: var(--muted); font-size: 11px; }
.score { font-weight: 750; color: #1b503a; }
.source-report { border-top: 1px solid var(--border); padding: 11px 20px 13px; color: var(--muted); font-size: 12px; }
.source-report ul { padding-left: 20px; margin-block: 8px 0; overflow-wrap: anywhere; }
.form-section { min-width: 0; display: grid; gap: 8px; margin: 0; border: 0; padding: 0 0 14px; }
.form-section legend { font-weight: 750; padding: 16px 0 7px; }
.form-section + .form-section, .form-footer { border-top: 1px solid #e3e8e0; }
.form-section label { color: #45574b; font-size: 12px; }
.endpoints label { display: grid; gap: 4px; }
.endpoints input { min-width: 0; width: 100%; }
.endpoints p { color: var(--muted); font-size: 12px; }
.source-options { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 9px; }
.source-groups { display: grid; gap: 10px; }
.source-groups h3, .source-groups summary { margin: 0 0 5px; color: #42584b; font-size: 12px; font-weight: 700; }
.source-groups details { padding-top: 5px; border-top: 1px solid var(--border); }
.source-options label, .check-row { display: flex; gap: 7px; align-items: center; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.field-grid label { min-width: 0; display: grid; gap: 4px; }
.field-grid input, .field-grid select { width: 100%; min-width: 0; }
.advanced { color: var(--muted); font-size: 12px; }
.advanced .field-grid { margin-top: 8px; }
.interval { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.interval input { width: 105px; }
.form-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 13px; }
#save-state { color: var(--muted); font-size: 12px; }
dialog { border: 1px solid var(--border); border-radius: 12px; max-width: calc(100% - 32px); }
dialog::backdrop { background: #142f2588; }
dialog form { display: grid; gap: 10px; }
.dialog-actions { display: flex; gap: 8px; justify-content: end; }
.header-actions { display: flex; flex-wrap: wrap; justify-content: end; align-items: center; gap: 6px 10px; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; }
.login-card { width: min(100%, 430px); padding: 26px; }
.login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.login-brand .brand-icon { flex-shrink: 0; }
.login-brand h1 { font-size: clamp(20px, 5vw, 26px); margin: 0; }
.login-card form { display: grid; gap: 10px; }
.login-card .primary { justify-self: stretch; }
.login-help { margin-top: 18px; color: var(--muted); font-size: 13px; }
.login-help p { margin: 6px 0; }
.login-help pre { margin: 6px 0 0; padding: 9px; background: #f0f4ec; border-radius: 6px; overflow-x: auto; }
.auth-feedback { margin: 2px 0; color: #982e1d; font-size: 13px; }
.auth-feedback.success { color: var(--green); }
#password-dialog { width: min(425px, calc(100% - 32px)); }
#copy-dialog { width: min(460px, calc(100% - 32px)); }
#copy-text { width: 100%; resize: vertical; }
.clipboard-buffer { position: fixed; inset: 0 auto auto -10000px; width: 1px; height: 1px; }
@media (max-width: 1050px) {
  .shell { width: calc(100% - 40px); }
  .workspace { grid-template-columns: minmax(0, 1fr) minmax(280px, 315px); }
}
@media (max-width: 800px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .activity:has(#progress-wrap:not([hidden])) { grid-template-columns: 1fr 1fr; }
  #progress-wrap { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 550px) {
  .shell { width: calc(100% - 24px); }
  main { padding-top: 14px; }
  .hero { padding: 22px 18px; flex-direction: column; align-items: stretch; gap: 16px; }
  .hero-actions { grid-template-columns: auto 1fr; align-items: center; justify-items: start; }
  .hero-stop:not([hidden]) { grid-row: 2; }
  .activity { grid-template-columns: 1fr 1fr; padding: 13px 15px; }
  .activity > div:first-child { grid-column: 1 / -1; }
  .activity .metric { border: 0; padding-left: 0; }
  .activity strong { font-size: 15px; }
  .subscription, .settings { padding: 15px; }
}
