:root {
  --ink: #19352f;
  --ink-soft: #526a63;
  --muted: #8a9a94;
  --line: #dfe8e3;
  --wash: #f4f8f5;
  --paper: #ffffff;
  --green: #1b5e4b;
  --green-light: #e8f1ed;
  --orange: #c86e3c;
  --amber: #9e641d;
  --amber-bg: #fff7e9;
  --shadow: 0 12px 35px rgba(28, 64, 52, .07);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: #f8fbf9; }
body { margin: 0; color: var(--ink); background: #f8fbf9; font-size: 14px; line-height: 1.55; }
button, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(200, 110, 60, .28); outline-offset: 2px; }
.topbar { height: 66px; display: flex; align-items: center; justify-content: space-between; padding: 0 40px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.88); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 19px; font-weight: 750; letter-spacing: -.04em; }
.brand-light { color: #739087; font-weight: 500; }
.brand-icon { width: 30px; height: 30px; display: grid; place-items: center; color: white; border-radius: 8px; background: var(--green); }
.brand-icon svg { width: 20px; height: 20px; }
.top-meta { display: flex; gap: 14px; align-items: center; color: var(--muted); font-size: 12px; }
.model-badge { display: inline-flex; gap: 5px; align-items: center; padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--green); background: var(--wash); font-size: 11px; }
.model-badge::before { width: 6px; height: 6px; content: ""; border-radius: 50%; background: #66a48e; }
.workspace { width: min(1400px, calc(100% - 80px)); margin: 0 auto; }
.intro { display: flex; min-height: 170px; align-items: flex-end; justify-content: space-between; gap: 40px; padding: 40px 0 34px; }
.eyebrow { display: block; margin: 0 0 9px; color: var(--orange); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: clamp(28px, 3vw, 42px); line-height: 1.12; letter-spacing: -.055em; font-weight: 760; }
.intro-copy { max-width: 510px; margin: 0; color: var(--ink-soft); font-size: 15px; }
.workflow-strip { display: flex; align-items: center; gap: 13px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.workflow-strip b { margin-right: 4px; color: var(--green); font-size: 10px; }
.workflow-strip i { color: #b5c6bd; font-style: normal; font-size: 18px; }
.layout { display: grid; grid-template-columns: 355px minmax(0, 1fr); gap: 28px; align-items: start; }
.sidebar { min-width: 0; }
.panel { border: 1px solid var(--line); border-radius: 13px; background: var(--paper); box-shadow: var(--shadow); }
.search-panel { padding: 23px 22px 18px; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
h2 { margin-bottom: 0; font-size: 16px; letter-spacing: -.02em; }
.small-tag, .trace-count { color: var(--muted); font-size: 10px; }
.small-tag { padding: 4px 7px; border: 1px solid var(--line); border-radius: 5px; }
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; margin: 21px 0 20px; padding: 3px; border-radius: 8px; background: var(--wash); }
.mode-button { border: 0; border-radius: 6px; padding: 8px; color: var(--muted); background: transparent; font-size: 12px; }
.mode-button.active { color: var(--ink); background: white; box-shadow: 0 2px 8px rgba(30,70,55,.08); font-weight: 700; }
fieldset { min-width: 0; border: 0; margin: 0; padding: 0; }
.field-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
label { display: block; margin-bottom: 7px; color: var(--ink-soft); font-size: 11px; font-weight: 700; }
textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: #fcfefd; font-size: 13px; }
textarea { display: block; resize: vertical; min-height: 76px; padding: 11px 12px; line-height: 1.55; }
select { height: 37px; padding: 0 9px; }
textarea:focus, select:focus { border-color: #82aa9a; outline: 2px solid rgba(96, 152, 129, .12); }
.field-help { margin: 7px 0 10px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.text-button { border: 0; padding: 0; color: var(--green); background: transparent; font-size: 11px; text-decoration: underline; text-underline-offset: 2px; }
.text-button:hover { color: var(--orange); }
.example-chips { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 19px; }
.example-chips button { padding: 4px 7px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink-soft); background: white; font-size: 10px; }
.example-chips button:hover { border-color: #9bbbac; color: var(--green); background: var(--green-light); }
.quota-fields { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .75fr); gap: 9px; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 39px; border-radius: 7px; font-weight: 700; text-decoration: none; transition: transform .15s, background .15s, border-color .15s; }
.primary-button { width: 100%; margin-top: 21px; border: 1px solid var(--green); color: white; background: var(--green); font-size: 12px; }
.primary-button:hover { transform: translateY(-1px); background: #124b3b; }
.primary-button:disabled { cursor: wait; opacity: .65; transform: none; }
.secondary-button { padding: 8px 12px; border: 1px solid #b7d0c4; color: var(--green); background: white; font-size: 11px; }
.secondary-button:hover { border-color: var(--green); background: var(--green-light); }
.form-note { margin: 12px 0 0; color: var(--muted); font-size: 10px; text-align: center; }
.demo-notice { margin-bottom: 15px; padding: 9px 10px; border-left: 3px solid #d9a25f; border-radius: 5px; color: #7c591f; background: var(--amber-bg); font-size: 11px; line-height: 1.45; }
.settings { margin-top: 17px; border-top: 1px solid var(--line); padding-top: 13px; }
.settings summary { cursor: pointer; color: var(--ink-soft); font-size: 11px; font-weight: 700; list-style: none; }
.settings summary::-webkit-details-marker { display: none; }
.settings summary::before { display: inline-block; width: 15px; content: "＋"; color: var(--green); }
.settings[open] summary::before { content: "−"; }
.settings summary span { float: right; color: var(--muted); font-size: 10px; font-weight: 400; }
.settings-content { padding-top: 13px; }
.settings-content label:not(.checkbox-label) { margin-top: 10px; }
.checkbox-label { display: flex; gap: 7px; align-items: center; margin: 12px 0 0; color: var(--ink-soft); font-size: 10px; font-weight: 500; }
.checkbox-label input { accent-color: var(--green); }
.trace-panel { margin-top: 15px; padding: 17px 18px 15px; box-shadow: none; }
.trace-placeholder { margin: 14px 0 2px; color: var(--muted); font-size: 11px; }
.timeline { display: flex; flex-direction: column; gap: 0; margin: 15px 0 0; padding: 0; list-style: none; }
.timeline li { position: relative; display: grid; grid-template-columns: 19px 1fr; gap: 8px; min-height: 35px; color: var(--ink-soft); font-size: 10px; }
.timeline li:not(:last-child)::before { position: absolute; top: 17px; bottom: 0; left: 8px; width: 1px; content: ""; background: var(--line); }
.timeline .dot { z-index: 1; width: 17px; height: 17px; border: 2px solid #bdd5c9; border-radius: 50%; background: white; }
.timeline li.done .dot { border-color: var(--green); background: var(--green); box-shadow: inset 0 0 0 3px white; }
.timeline li.running .dot { border-color: var(--orange); box-shadow: 0 0 0 3px #fceee7; }
.timeline strong { display: block; color: var(--ink); font-size: 11px; font-weight: 650; }
.timeline small { display: block; margin-top: 1px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-foot { padding: 15px 2px; color: #a8b5af; font-size: 10px; line-height: 1.6; }
.results-column { min-width: 0; }
.results-heading { display: flex; justify-content: space-between; align-items: end; min-height: 60px; margin-bottom: 17px; }
.results-heading h2 { font-size: 22px; letter-spacing: -.04em; }
.results-heading .eyebrow { margin-bottom: 5px; }
.download-actions { display: flex; gap: 13px; align-items: center; }
.empty-state { display: flex; min-height: 490px; flex-direction: column; align-items: center; justify-content: center; padding: 38px; text-align: center; box-shadow: none; }
.empty-art { position: relative; width: 108px; height: 112px; margin-bottom: 25px; }
.art-sheet { position: absolute; width: 70px; height: 88px; border: 1px solid #cbded4; border-radius: 5px; background: #f4faf6; transform: rotate(-7deg); }
.art-sheet.back { left: 12px; top: 9px; opacity: .7; }
.art-sheet.front { left: 29px; top: 0; display: flex; flex-direction: column; gap: 7px; align-items: flex-start; padding: 17px 12px; border-color: #8fb9a5; background: #fbfffc; transform: rotate(4deg); box-shadow: 0 4px 14px rgba(35,90,68,.09); }
.art-line { display: block; width: 43px; height: 3px; border-radius: 2px; background: #c1dbce; }
.art-line.short { width: 27px; background: #78ad94; }.art-line.medium { width: 34px; }
.art-tick { position: absolute; right: -11px; bottom: 15px; display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: white; background: var(--orange); font-size: 13px; font-weight: 800; transform: rotate(-4deg); }
.empty-state h3 { margin-bottom: 8px; font-size: 17px; letter-spacing: -.03em; }.empty-state p { margin-bottom: 22px; color: var(--ink-soft); font-size: 12px; }
.empty-features { display: flex; gap: 17px; margin-top: 32px; color: #9aaca3; font-size: 10px; }.empty-features span::before { display: inline-block; width: 5px; height: 5px; margin: 0 5px 1px 0; content: ""; border-radius: 50%; background: #9cc0ad; }
.running-state { display: flex; min-height: 120px; align-items: center; gap: 17px; padding: 25px 30px; }.running-state h3 { margin-bottom: 4px; font-size: 15px; }.running-state p { margin: 0; color: var(--muted); font-size: 12px; }.running-state > span { margin-left: auto; color: var(--muted); font-size: 11px; }
.spinner { width: 23px; height: 23px; border: 3px solid #d9e8e0; border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.notice { margin-bottom: 14px; padding: 13px 15px; border: 1px solid #cce2d6; border-radius: 8px; color: #275f4e; background: #f0f8f3; font-size: 12px; }.notice.amber { border-color: #f0d4a8; color: #825820; background: var(--amber-bg); }
.metrics { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }.metric { padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink-soft); background: white; font-size: 10px; }.metric b { margin-right: 3px; color: var(--green); font-size: 13px; }
.paper-list { display: flex; flex-direction: column; gap: 11px; }.paper-card { padding: 20px 22px; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: 0 4px 14px rgba(28,64,52,.04); }.paper-card-head { display: flex; gap: 13px; align-items: flex-start; }.paper-number { display: grid; flex: 0 0 27px; width: 27px; height: 27px; place-items: center; border-radius: 7px; color: var(--green); background: var(--green-light); font-size: 11px; font-weight: 800; }.paper-card h3 { margin: 1px 0 5px; font-size: 15px; line-height: 1.35; letter-spacing: -.02em; }.paper-card h3 a { color: var(--ink); text-decoration: none; }.paper-card h3 a:hover { color: var(--green); }.paper-meta { margin: 0; color: var(--muted); font-size: 10px; }.category-pill { display: inline-block; margin-left: 6px; padding: 2px 6px; border-radius: 4px; color: #2a765d; background: #edf7f0; font-size: 9px; }.category-pill.no { color: #82918a; background: #f2f5f3; }.paper-reason { margin: 14px 0 9px; color: var(--ink-soft); font-size: 12px; }.evidence { margin: 0; padding: 10px 12px; border-left: 3px solid #abcdbb; color: #60776d; background: #f7faf8; font-size: 11px; line-height: 1.55; }.evidence::before { margin-right: 5px; content: "“"; color: var(--orange); font-size: 18px; font-weight: 800; vertical-align: -2px; }.result-footnote { margin: 14px 2px 35px; color: var(--muted); font-size: 10px; }.page-footer { display: flex; justify-content: space-between; width: min(1400px, calc(100% - 80px)); margin: 20px auto 0; padding: 20px 0 28px; border-top: 1px solid var(--line); color: #a0afa8; font-size: 10px; }
.error-message { margin-top: 12px; padding: 9px 11px; border-radius: 5px; color: #934c39; background: #fff0eb; font-size: 11px; }.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }.hidden { display: none !important; }
@media (max-width: 900px) { .topbar { padding: 0 22px; }.local-label { display: none; }.workspace { width: min(100% - 36px, 680px); }.intro { display: block; padding: 32px 0 25px; }.workflow-strip { margin-top: 24px; }.layout { display: block; }.sidebar { margin-bottom: 24px; }.trace-panel { max-height: 350px; overflow: auto; }.results-heading { min-height: 50px; }.empty-state { min-height: 390px; }.page-footer { width: calc(100% - 36px); } }
@media (max-width: 500px) { .topbar { height: 58px; padding: 0 16px; }.brand { font-size: 17px; }.model-badge { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.workspace { width: calc(100% - 24px); }.intro { padding-top: 27px; }.intro h1 { font-size: 29px; }.workflow-strip { gap: 7px; font-size: 9px; }.workflow-strip i { font-size: 14px; }.search-panel { padding: 18px 15px; }.results-heading { align-items: center; }.results-heading h2 { font-size: 19px; }.download-actions { gap: 8px; }.paper-card { padding: 16px 14px; }.paper-card h3 { font-size: 14px; }.empty-state { padding: 25px 15px; }.empty-features { gap: 8px; }.page-footer { display: block; line-height: 1.8; }.page-footer span { display: block; } }
