:root { --paper: #f7f5ee; --white: #fffefa; --ink: #18313b; --muted: #758087; --line: #e5e6dd; --orange: #bd512d; --orange-light: #f8e9df; --green: #34745c; --green-light: #e9f2eb; --radius: 20px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; color: var(--ink); background: var(--paper); font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; font-size: 14px; line-height: 1.65; -webkit-text-size-adjust: 100%; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #d9976b; outline-offset: 3px; }
[hidden] { display: none !important; }
.page-shell { max-width: 1120px; margin: 0 auto; padding: 0 42px; }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 116px; gap: 16px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 13px; font-size: 21px; font-weight: 650; letter-spacing: -.7px; line-height: 1.3; text-decoration: none; }
.brand-mark { display: grid; place-items: center; background: var(--ink); color: var(--white); height: 44px; width: 44px; border-radius: 13px; font-family: Georgia, serif; font-size: 31px; }
.brand-subtitle { display: block; font-size: 10px; font-weight: 500; color: var(--muted); letter-spacing: 2px; margin-top: 5px; }
.connection-badge { display: flex; gap: 7px; align-items: center; color: #6c797c; font-size: 11px; border: 1px solid #dee2d9; border-radius: 100px; padding: 7px 12px; white-space: nowrap; }
.status-dot { background: #9ca69c; width: 6px; height: 6px; border-radius: 50%; }
.connection-badge.connected { color: var(--green); background: var(--green-light); border-color: #d9e6da; }
.connected .status-dot { background: var(--green); }
.intro { padding: 48px 0 40px; position: relative; }
.eyebrow, .section-number { font-size: 10px; font-weight: 600; letter-spacing: 2px; margin: 0 0 11px; color: var(--muted); }
.eyebrow { color: var(--orange); }
h1 { font-size: clamp(32px, 4.2vw, 48px); font-weight: 650; letter-spacing: -1.9px; line-height: 1.4; margin: 0; }
.orange-dot { color: var(--orange); }
.intro-description { margin: 18px 0 0; font-size: 13px; line-height: 1.9; color: #6f7b7e; }
.flow { display: flex; align-items: center; position: absolute; right: 0; bottom: 58px; font-size: 12px; gap: 14px; color: #8c9390; }
.flow b { font-size: 10px; color: var(--orange); margin-right: 7px; font-weight: 500; }
.flow-line { height: 1px; width: 28px; background: #d9ded4; }
.connection-panel { padding: 22px 26px; border: 1px solid #dce0d4; border-radius: var(--radius); margin-bottom: 26px; background: #eff1e9; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.section-heading h2 { font-size: 22px; font-weight: 600; margin: 0; letter-spacing: -.7px; line-height: 1.45; }
.section-heading.compact { margin-bottom: 15px; }
.compact .section-number { font-size: 10px; margin-bottom: 3px; letter-spacing: 1px; }
.compact h2 { font-size: 16px; letter-spacing: 0; }
.key-row { display: flex; gap: 10px; }
.key-row input { flex: 1; min-width: 0; }
.key-row .button { white-space: nowrap; }
.check-label { display: flex; align-items: flex-start; gap: 9px; margin: 12px 0 0; font-size: 12px; font-weight: 400; line-height: 1.7; cursor: pointer; }
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; min-width: 16px; margin: 2px 0 0; accent-color: var(--orange); }
.workspace-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 26px; align-items: start; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: 0 3px 2px #18313b02; }
.heading-icon { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid #e5e7df; border-radius: 50%; color: var(--orange); font-size: 24px; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
label { display: block; font-size: 12px; font-weight: 500; margin: 0 0 7px; }
input[type="text"], input[type="password"], textarea, select { width: 100%; padding: 12px 14px; border: 1px solid #dde2db; border-radius: 10px; color: var(--ink); background: #fffefa; outline: none; transition: border-color .15s; }
textarea { resize: vertical; min-height: 82px; line-height: 1.8; display: block; }
input::placeholder, textarea::placeholder { color: #99a09b; }
textarea:focus, input:focus, select:focus { border-color: #bc825b; }
fieldset:disabled input, fieldset:disabled textarea, fieldset:disabled select { background: #f9f9f4; opacity: .75; }
select { appearance: auto; min-height: 47px; }
.required { color: var(--orange); }
.optional { font-size: 10px; color: var(--muted); font-weight: 400; margin-left: 8px; }
.field-help, .list-help { font-size: 11px; color: var(--muted); line-height: 1.8; margin: 7px 0 20px; }
.connection-panel .field-help { margin-bottom: 0; }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.label-row label { margin-bottom: 7px; }
.label-row .text-button { margin-top: -7px; }
.text-button { padding: 7px 0; min-height: 36px; border: 0; color: var(--orange); background: transparent; font-size: 11px; white-space: nowrap; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; border: 0; border-radius: 10px; min-height: 45px; padding: 10px 17px; font-size: 12px; font-weight: 500; transition: filter .15s, transform .15s; }
.button:hover:not(:disabled) { filter: brightness(.94); }
.button:active:not(:disabled) { transform: translateY(1px); }
.button-primary { color: #fffdfa; background: var(--orange); }
.button-dark { color: #fffefa; background: var(--ink); }
.button-subtle { color: var(--ink); background: #edf0e8; }
.submit-capture { justify-content: space-between; width: 100%; margin-top: 23px; padding: 13px 18px; font-size: 13px; }
.submit-capture span:last-child { font-size: 20px; line-height: 1; }
.new-category-row { display: flex; gap: 8px; margin-top: 9px; }
.new-category-row input { min-width: 0; }
.new-category-row .button { flex-shrink: 0; }
.feedback { font-size: 12px; margin: 12px 0 0; line-height: 1.8; overflow-wrap: anywhere; color: var(--green); }
.feedback:empty { display: none; }
.feedback.error { color: #ab3d2b; }
.feedback.small { font-size: 11px; margin: 5px 0 18px; }
#category-feedback:empty { display: block; height: 0; margin: 0 0 20px; }
.privacy-note { margin: 14px 0 0; font-size: 10px; color: #8b9290; line-height: 1.9; }
.demo-box { padding: 12px 14px; margin-top: 16px; border: 1px dashed #dcb69a; border-radius: 10px; background: #fff5e9; }
.demo-box .check-label { margin: 0; }
.demo-box p { font-size: 10px; color: #9a6b47; margin: 7px 0 0 25px; }
.tasks-panel .section-heading { margin-bottom: 10px; }
.count { font-size: 11px; font-weight: 400; border: 1px solid #e2e5dc; border-radius: 20px; display: inline-block; min-width: 26px; text-align: center; padding: 2px 7px; vertical-align: middle; margin-left: 6px; letter-spacing: 0; }
.list-help { margin: 0 0 18px; }
.task-list { display: grid; gap: 0; }
.empty-state { padding: 42px 14px 57px; text-align: center; }
.empty-symbol { display: grid; place-items: center; width: 47px; height: 47px; border: 1px dashed #d1d9cf; border-radius: 14px; color: #a2afa1; font-size: 23px; margin: 0 auto 17px; }
.empty-state p { font-size: 13px; margin: 0 0 5px; }
.empty-state > span:last-child { font-size: 10px; color: var(--muted); }
.task-card { border-top: 1px solid #e9ece3; padding: 17px 0; }
.task-card:first-child { border-top: 0; }
.task-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.platform-label { color: #889187; font-size: 10px; letter-spacing: .3px; }
.status-pill { font-size: 10px; border-radius: 5px; padding: 3px 7px; color: #697f87; background: #edf2f3; white-space: nowrap; }
.status-pill[data-status="NEEDS_INPUT"], .status-pill[data-status="RETRY_WAIT"] { color: #ab7037; background: #fbefdf; }
.status-pill[data-status="FAILED"] { color: #aa493a; background: #f8e8e3; }
.status-pill[data-status="READY"], .status-pill[data-status="ACKED"] { color: var(--green); background: var(--green-light); }
.task-title { display: block; text-align: left; width: 100%; padding: 0; border: 0; background: none; font-weight: 500; color: var(--ink); font-size: 13px; line-height: 1.75; overflow-wrap: anywhere; }
.task-title:hover { color: var(--orange); }
.task-bottomline { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; color: #919a95; font-size: 10px; }
.task-category { max-width: 65%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-reason { font-size: 11px; color: #9b7759; margin: 8px 0 0; overflow-wrap: anywhere; }
.list-footer { color: #a0a79e; font-size: 10px; border-top: 1px solid var(--line); padding-top: 16px; margin: 3px 0 0; }
.detail-panel { margin-top: 26px; scroll-margin-top: 18px; }
.detail-panel .section-heading { margin-bottom: 15px; }
.detail-panel h2 { overflow-wrap: anywhere; }
.detail-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 11px; }
.detail-source { font-size: 12px; margin: 12px 0; }
.detail-source a { color: var(--orange); }
.reason-box { background: #f5f3eb; border-radius: 10px; padding: 13px 16px; font-size: 12px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-panel h3 { font-size: 15px; font-weight: 550; margin: 22px 0 8px; }
.completeness { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 14px; }
.completeness legend { font-size: 12px; font-weight: 500; margin-bottom: 6px; }
.completeness .check-label { margin: 0; }
.rights-check { margin-bottom: 16px; }
.detail-actions { display: flex; gap: 10px; margin-top: 16px; }
.task-id { font-family: ui-monospace, monospace; font-size: 10px; color: #a1a69d; margin: 18px 0 0; overflow-wrap: anywhere; }
.note-preview { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 4px; }
.note-preview p, .note-preview li { font-size: 13px; overflow-wrap: anywhere; white-space: pre-wrap; }
.note-preview blockquote { color: #758078; padding-left: 13px; margin: 8px 0 15px; border-left: 2px solid #dce2d6; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.note-preview ul { padding-left: 20px; }
.note-mode { color: var(--orange); font-size: 11px !important; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px 0 36px; margin-top: 20px; color: #98a092; font-size: 10px; }
.site-footer span:first-child { letter-spacing: 1px; }
.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; }
.skip-link { position: absolute; top: -60px; left: 16px; background: var(--ink); color: white; padding: 12px; z-index: 5; }
.skip-link:focus { top: 12px; }
@media (max-width: 760px) {
  .page-shell { padding: 0 22px; }
  .site-header { min-height: 94px; }
  .brand { font-size: 18px; gap: 10px; }
  .brand-mark { width: 38px; height: 38px; border-radius: 11px; font-size: 28px; }
  .brand-subtitle { font-size: 8px; letter-spacing: 1.6px; }
  .connection-badge { padding: 6px 9px; font-size: 10px; }
  .intro { padding: 36px 0 30px; }
  h1 { font-size: 35px; letter-spacing: -1.4px; }
  .intro-description { font-size: 12px; margin-top: 16px; }
  .flow { position: static; margin-top: 24px; gap: 12px; font-size: 11px; }
  .flow-line { width: 32px; }
  .connection-panel { padding: 20px; margin-bottom: 20px; border-radius: 16px; }
  .workspace-grid { grid-template-columns: 1fr; gap: 20px; }
  .panel { padding: 24px 21px; border-radius: 16px; }
  .section-heading { margin-bottom: 23px; }
  .section-heading h2 { font-size: 21px; }
  .compact h2 { font-size: 16px; }
  input[type="text"], input[type="password"], textarea, select { font-size: 16px; }
  input::placeholder, textarea::placeholder { font-size: 13px; }
  .key-row { flex-wrap: wrap; }
  .key-row input { flex-basis: 100%; }
  .key-row .button { width: 100%; }
  .check-label { font-size: 12px; }
  .text-button { min-height: 44px; }
  .button { min-height: 47px; }
  .field-help, .privacy-note, .list-help { font-size: 11px; }
  .site-footer { flex-direction: column; gap: 4px; text-align: center; padding-bottom: calc(26px + env(safe-area-inset-bottom)); }
  .detail-panel { margin-top: 20px; }
  .task-card { padding: 18px 0; }
  .task-title { font-size: 14px; min-height: 32px; }
  .empty-state { padding: 35px 10px 45px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
