:root {
  --ink: #10233c; --muted: #68778a; --line: #dce4ec; --surface: #fff;
  --canvas: #f7f6f3; --brand: #ff6c00; --brand-dark: #d95700;
  --brand-soft: #fff0e6; --green: #167c55; --green-soft: #e6f6ef;
  --orange: #a95b05; --orange-soft: #fff3dd; --red: #b12b39;
  --red-soft: #ffeaec; --shadow: 0 14px 38px rgba(16,35,60,.07);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink); background: var(--canvas); font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 85% 0, #fff0e3 0, transparent 29rem), var(--canvas); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.topbar { height: 76px; display: flex; align-items: center; gap: 24px; padding: 0 max(24px, calc((100vw - 1320px) / 2)); background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); min-width: 318px; }
.brand:hover { text-decoration: none; }
.brand img { display: block; width: 172px; height: auto; object-fit: contain; }
.brand-product { border-left: 1px solid #d9dee5; padding-left: 14px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; }
.brand small { color: var(--muted); margin-top: 2px; font-size: 11px; }
.main-nav { display: flex; align-self: stretch; gap: 6px; }
.main-nav a { color: #506074; font-weight: 650; font-size: 14px; display: flex; align-items: center; padding: 0 13px; border-bottom: 3px solid transparent; white-space: nowrap; }
.main-nav a:hover { text-decoration: none; color: var(--ink); }
.main-nav a.active { color: var(--brand); border-bottom-color: var(--brand); }
.user-menu { margin-left: auto; display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; }
.user-menu form { margin: 0; }
.link-button { border: 0; background: none; padding: 6px; color: var(--brand); }
.page-shell { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 38px 0 80px; }
.page-heading { margin-bottom: 28px; }
.page-heading h1 { font-size: clamp(29px,4vw,43px); letter-spacing: -.04em; margin: 5px 0 10px; line-height: 1.1; }
.page-heading p:not(.eyebrow) { color: var(--muted); margin: 0; line-height: 1.7; }
.split-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.eyebrow { color: var(--brand); text-transform: uppercase; letter-spacing: .13em; font-weight: 800; font-size: 11px; margin: 0; }
.muted { color: var(--muted); line-height: 1.65; }
.card { background: var(--surface); border: 1px solid rgba(214,224,234,.88); border-radius: 18px; box-shadow: var(--shadow); padding: 25px; }
.section-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.section-heading h2 { font-size: 20px; margin: 4px 0 0; letter-spacing: -.02em; }
.tag, .progress-pill { font-size: 12px; font-weight: 700; background: #edf2f7; color: #55667a; border-radius: 999px; padding: 6px 10px; white-space: nowrap; }
.progress-pill { color: var(--brand-dark); background: var(--brand-soft); }
.metric-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 18px; }
.metric-card { background: rgba(255,255,255,.86); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: 0 8px 24px rgba(16,35,60,.04); }
.metric-card.accent { color: white; background: linear-gradient(140deg,#e55600,#ff7b18); border: 0; }
.metric-card span, .metric-card small { display: block; }
.metric-card span { font-size: 13px; font-weight: 650; color: var(--muted); }
.metric-card strong { display: block; font-size: 34px; margin: 12px 0 4px; letter-spacing: -.04em; }
.metric-card small { color: #7e8b9b; }
.metric-card.accent span, .metric-card.accent small { color: rgba(255,255,255,.82); }
.two-column { display: grid; grid-template-columns: 1.12fr .88fr; gap: 18px; }
.collect-grid { align-items: start; margin-bottom: 18px; }
label > span, .textarea-label span { font-size: 13px; font-weight: 700; display: block; margin-bottom: 7px; }
input, select, textarea { width: 100%; border: 1px solid #cbd6e2; background: #fbfcfd; color: var(--ink); border-radius: 10px; padding: 11px 13px; outline: none; transition: border .15s,box-shadow .15s; }
textarea { resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255,108,0,.14); background: white; }
.form-footer { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 14px; }
.form-footer small, .stacked-form small { color: var(--muted); line-height: 1.5; }
.primary-button, .secondary-button, .danger-button, .small-button, .copy-button { border-radius: 10px; border: 0; padding: 10px 15px; font-weight: 750; white-space: nowrap; }
.primary-button { background: var(--brand); color: white; box-shadow: 0 5px 12px rgba(255,108,0,.22); }
.primary-button:hover { background: var(--brand-dark); text-decoration: none; }
.secondary-button, .small-button, .copy-button { color: var(--ink); background: #edf2f7; border: 1px solid #dce4ec; }
.danger-button { color: white; background: var(--red); }
.button-link { display: inline-flex; align-items: center; justify-content: center; }
.wide { width: 100%; }
.date-picker { min-width: 300px; }
.date-picker label { display: block; font-size: 12px; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.date-picker > div { display: flex; gap: 8px; }
.source-list { display: grid; }
.source-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-top: 1px solid #edf1f5; }
.source-row:first-child { border-top: 0; }
.source-main { display: flex; align-items: center; gap: 11px; min-width: 0; }
.source-main strong, td strong { display: block; font-size: 14px; }
.source-main small, td small { display: block; margin-top: 4px; color: var(--muted); line-height: 1.4; }
.status-dot { width: 9px; height: 9px; border-radius: 99px; background: #9aa7b5; flex: none; display: inline-block; }
.status-has_articles { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.status-confirmed_no_update { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.status-failed { background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.status-label { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; background: #eef2f6; color: #5a6878; font-size: 11px; font-weight: 800; white-space: nowrap; }
.status-label-has_articles, .run-succeeded { background: var(--green-soft); color: var(--green); }
.status-label-video, .run-queued, .run-running { background: var(--orange-soft); color: var(--orange); }
.status-label-failed, .run-failed, .run-cancelled { background: var(--red-soft); color: var(--red); }
.run-superseded { background: #eef0f4; color: #677384; }
.article-list-card, .result-card, .danger-card { margin-top: 18px; }
.filter-panel { display: grid; grid-template-columns: 1fr 1.25fr 1fr 1.8fr auto; gap: 14px; align-items: end; }
.filter-actions { display: flex; gap: 8px; }
.pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin-top: 20px; }
.pagination a:last-child { justify-self: end; }
.pagination strong { color: var(--muted); font-size: 13px; }
.metric-date { font-size: clamp(24px,2.5vw,31px) !important; }
.generation-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 19px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 12px; border-bottom: 1px solid #e9eef3; text-align: left; vertical-align: middle; font-size: 13px; }
th { color: #758396; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
tr:last-child td { border-bottom: 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; }
.actions a, .copy-button { font-size: 12px; font-weight: 700; }
.copy-button { padding: 5px 8px; }
.empty-state { text-align: center; padding: 34px 20px; color: var(--muted); border: 1px dashed #cad5df; border-radius: 13px; background: #fafcfd; }
.empty-state strong { color: var(--ink); }
.empty-state p { margin: 7px 0 0; line-height: 1.6; }
.empty-state.compact { padding: 18px; }
.form-error, .flash-error { background: var(--red-soft); color: #83212d; border: 1px solid #f1b9c0; border-radius: 10px; padding: 12px 14px; overflow-wrap: anywhere; }
.form-error { margin: 14px 0; }
.form-error p { margin: 6px 0 0; }
.flash-stack { display: grid; gap: 8px; margin-bottom: 18px; }
.flash { padding: 12px 15px; border-radius: 10px; }
.flash-success { color: #0e6143; background: var(--green-soft); border: 1px solid #aee0cc; }
.detail-grid { grid-template-columns: repeat(2,1fr); margin-bottom: 18px; }
.compact-source-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.compact-source-grid > div { display: grid; grid-template-columns: 12px 1fr; column-gap: 9px; align-items: center; }
.compact-source-grid small { grid-column: 2; color: var(--muted); margin-top: 3px; }
.stacked-form { display: grid; gap: 13px; }
.inline-note, .privacy-note { color: #42576d; background: #f1f6fb; border: 1px solid #dbe8f4; padding: 14px; border-radius: 11px; line-height: 1.6; }
.warning-banner { display: flex; gap: 9px; align-items: center; margin-bottom: 18px; padding: 14px 18px; border-radius: 13px; color: #7e4607; background: var(--orange-soft); border: 1px solid #efd2a2; }
.failure-list { display: grid; gap: 10px; }
.failure-list article { display: flex; justify-content: space-between; gap: 16px; padding: 14px; border: 1px solid #f0d0d5; border-radius: 11px; background: #fffafb; }
.failure-list p { margin: 5px 0; }
.failure-list small { color: var(--muted); overflow-wrap: anywhere; }
.run-list { display: grid; gap: 12px; }
.run-list article { border: 1px solid var(--line); border-radius: 13px; padding: 16px; display: grid; grid-template-columns: minmax(210px,1fr) 2fr; gap: 18px; }
.run-list article > div:first-child strong, .run-list article > div:first-child small { display: block; margin-top: 8px; }
.run-list article > div:first-child small { color: var(--muted); font-family: ui-monospace,monospace; }
.run-list dl { margin: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.run-list dt { color: var(--muted); font-size: 11px; }
.run-list dd { font-size: 12px; margin: 4px 0 0; }
.run-error, .run-reason { grid-column: 1/-1; margin: 0; font-size: 13px; padding: 9px; border-radius: 8px; background: var(--red-soft); }
.run-reason { background: #f2f5f8; }
.artifact-block { padding: 13px 0; border-top: 1px solid #edf1f5; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.artifact-block:first-of-type { border-top: 0; }
.notification-list { display: grid; gap: 10px; }
.notification-list div { padding: 11px; background: #f6f8fa; border-radius: 9px; }
.notification-list strong, .notification-list small { display: block; }
.notification-list small { color: var(--muted); margin-top: 4px; }
.preview-toolbar { display: flex; justify-content: flex-end; gap: 9px; margin-bottom: 16px; }
.preview-text { white-space: pre-wrap; line-height: 1.9; font-size: 15px; max-width: 820px; margin: 26px auto 10px; color: #25384e; }
.login-layout { min-height: calc(100vh - 190px); display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: center; }
.login-intro h1 { margin: 10px 0 18px; font-size: clamp(38px,5vw,64px); line-height: 1.12; letter-spacing: -.055em; }
.login-intro > p:last-child { color: var(--muted); max-width: 560px; font-size: 17px; line-height: 1.8; }
.login-card { display: grid; gap: 18px; padding: 32px; }
.login-card h2 { margin: 5px 0 0; font-size: 25px; }
.error-page { min-height: 60vh; text-align: center; display: grid; place-content: center; justify-items: center; }
.error-page > span { color: #b7c5d4; font-size: 80px; font-weight: 900; letter-spacing: -.06em; }
.error-page h1 { margin: 0; font-size: 32px; }
.error-page p { color: var(--muted); max-width: 600px; margin-bottom: 25px; }
.poster-product-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; margin-bottom: 22px; }
.poster-product-card { display: flex; flex-direction: column; gap: 20px; }
.poster-product-meta { display: grid; gap: 12px; }
.poster-product-meta div { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.poster-product-meta dt { color: var(--muted); }
.poster-product-meta dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.poster-card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.inline-button { display: inline-flex; align-items: center; justify-content: center; width: auto; text-decoration: none; }
.poster-publication-list { display: grid; gap: 10px; }
.poster-publication-list article { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.poster-publication-list article:last-child { border-bottom: 0; }
.poster-publication-list strong, .poster-publication-list small { display: block; }
.poster-publication-list small { color: var(--muted); margin-top: 4px; }
.verify-body { background: #f4f6f9; color: var(--ink); }
.verify-shell { width: min(1180px,calc(100% - 32px)); margin: 0 auto; padding: 32px 0 48px; }
.verify-brand { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.verify-brand img { width: 220px; height: auto; }
.verify-brand h1 { margin: 4px 0 0; font-size: 30px; }
.verify-status { padding: 28px; border-radius: 20px; margin-bottom: 24px; color: #fff; background: linear-gradient(135deg,#ff6c00,#d94a00); }
.verify-status.historic { background: linear-gradient(135deg,#596579,#303846); }
.verify-status span { display: inline-flex; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.18); font-weight: 750; }
.verify-status strong { display: block; font-size: clamp(26px,5vw,48px); letter-spacing: .04em; margin: 15px 0 8px; overflow-wrap: anywhere; }
.verify-status p { margin: 0; opacity: .9; }
.verify-layout { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(320px,.8fr); gap: 24px; align-items: start; }
.verify-image-card { background: #10151d; border-radius: 20px; padding: 12px; box-shadow: 0 18px 50px rgba(23,32,45,.12); }
.verify-image-card img { display: block; width: 100%; height: auto; border-radius: 12px; }
.verify-details { position: sticky; top: 24px; }
.verify-details h2 { margin-top: 0; }
.verify-details dl { display: grid; gap: 12px; }
.verify-details dl div { padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.verify-details dt { color: var(--muted); font-size: 13px; }
.verify-details dd { margin: 5px 0 0; font-weight: 700; }
.hash-value { font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: 11px; overflow-wrap: anywhere; }
.verify-download { display: flex; justify-content: center; text-decoration: none; margin-top: 12px; }
.verify-summary { margin-top: 24px; }
.verify-summary ol { margin: 18px 0 0; padding-left: 24px; display: grid; gap: 14px; }
.verify-summary small { display: block; color: var(--muted); margin-top: 4px; }
.verify-footer { text-align: center; color: var(--muted); padding: 28px 0 0; }
.evidence-intro { margin-bottom: 20px; }
.evidence-intro .preview-toolbar form { margin: 0; }
.confirmed-evidence-list { display: grid; gap: 12px; }
.confirmed-evidence-list article { border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.confirmed-evidence-list p { margin: 0 0 8px; font-weight: 700; line-height: 1.8; }
.confirmed-evidence-list small { color: var(--muted); }
.confirmed-evidence-list form { margin-top: 10px; }
.evidence-review-form { display: grid; gap: 20px; }
.evidence-grid { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(360px, 1.1fr); gap: 24px; align-items: start; }
.evidence-original { max-height: 720px; overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: #f5f6f8; }
.evidence-original img { display: block; width: 100%; height: auto; }
.evidence-candidates { display: grid; gap: 12px; }
.evidence-candidates label { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; border: 1px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; }
.evidence-candidates label:has(input:checked) { border-color: var(--brand); background: #fff5ec; }
.evidence-candidates input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--brand); }
.evidence-candidates span { line-height: 1.75; }
.evidence-submit { position: sticky; bottom: 16px; display: flex; justify-content: flex-end; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.94); box-shadow: 0 8px 28px rgba(15,23,42,.12); }
@media (max-width:900px) {
  .topbar { padding: 0 18px; } .brand { min-width: 0; } .brand img { width: 142px; } .brand-product, .user-menu > span { display: none; }
  .main-nav { margin-left: auto; overflow-x: auto; } .user-menu { margin-left: 0; }
  .metric-grid { grid-template-columns: repeat(2,1fr); } .two-column, .login-layout { grid-template-columns: 1fr; }
  .filter-panel { grid-template-columns: repeat(2,1fr); } .filter-search, .filter-actions { grid-column: span 2; }
  .login-layout { gap: 30px; } .login-intro { padding-top: 35px; } .login-intro h1 { font-size: 42px; }
  .poster-product-grid, .verify-layout, .evidence-grid { grid-template-columns: 1fr; }
  .verify-details { position: static; }
  .verify-brand { align-items: flex-start; flex-direction: column; }
  .poster-publication-list article { grid-template-columns: 1fr auto; }
  .poster-publication-list article > a { grid-column: 1/-1; }
}
@media (max-width:620px) {
  .page-shell { width: min(100% - 24px,1240px); padding-top: 24px; }
  .topbar { height: auto; min-height: 66px; flex-wrap: wrap; gap: 0 12px; padding-top: 8px; }
  .brand { order: 1; } .brand img { width: 132px; } .user-menu { order: 2; } .main-nav { order: 3; width: 100%; height: 42px; }
  .main-nav a { padding: 0 12px; } .split-heading { align-items: stretch; flex-direction: column; }
  .date-picker { min-width: 0; } .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card { padding: 15px; } .metric-card strong { font-size: 28px; } .card { padding: 18px; border-radius: 14px; }
  .form-footer, .source-row, .artifact-block, .warning-banner { align-items: stretch; flex-direction: column; }
  .form-footer .primary-button, .source-row form, .source-row .small-button { width: 100%; }
  .compact-source-grid { grid-template-columns: 1fr; } .run-list article { grid-template-columns: 1fr; }
  .run-list dl { grid-template-columns: 1fr; } .login-intro { display: none; }
  .login-layout { min-height: calc(100vh - 130px); }
  .filter-panel { grid-template-columns: 1fr; } .filter-search, .filter-actions { grid-column: auto; }
  .filter-actions > * { flex: 1; }
}
