:root{font-family:"Poppins","Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif;color:#2b2823;background:#f6f1e9;font-synthesis:none;line-height:1.62;font-size:16px;--paper:#fffdfa;--paper-soft:#fbf7f1;--ink:#2b2823;--muted:#7d766d;--line:#e8dfd3;--line-soft:#efe7dc;--accent:#b95638;--accent-ink:#913d26;--sage:#e8eee5;--sage-ink:#4d5f49;--blush:#f6e7e2;--sand:#f3e9dc}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;background:var(--paper-soft)}
button,input,textarea,select{font:inherit}
a{color:var(--accent-ink);text-underline-offset:4px}
button,.primary{display:inline-block;border:1px solid transparent;border-radius:10px;background:var(--accent);color:#fffdfa;padding:10px 20px;cursor:pointer;text-decoration:none;font-weight:600}
button:disabled{opacity:.65;cursor:wait}
button.quiet{background:transparent;color:#756f67;padding:6px 10px}
:focus-visible{outline:3px solid #71826e;outline-offset:4px}
.masthead{display:flex;align-items:center;gap:22px;min-height:76px;padding:14px 5vw;border-bottom:1px solid var(--line);background:#fffdfa}
.masthead img{height:auto;object-fit:contain}
.space-label{border-left:1px solid var(--line);padding-left:22px;font-size:14px;color:var(--muted)}
.home-link{font-size:14px;color:var(--muted);text-decoration:none;white-space:nowrap}
.home-link:hover{color:var(--accent-ink)}
#account{margin-left:auto;display:flex;align-items:center;gap:18px;font-size:14px;flex-wrap:wrap}
#email{overflow-wrap:anywhere}
main{max-width:1120px;margin:48px auto 56px;padding:0 28px}
.page-intro{margin:0 0 28px;padding:0 4px}
.eyebrow{font-size:13px;color:var(--accent-ink);font-weight:600;letter-spacing:.06em;margin:0 0 10px}
h1{font-size:34px;font-weight:600;letter-spacing:.01em;line-height:1.3;margin:0 0 10px}
h2{font-size:22px;line-height:1.5;margin:0 0 12px;font-weight:600;overflow-wrap:anywhere}
h3{font-size:16px;margin:0 0 8px}
p{margin:0 0 18px;color:var(--muted)}
.lede{font-size:15px;color:var(--muted);max-width:720px;margin:0}
.panel{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:32px}
.section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:20px}
.privacy{font-size:12px;color:var(--sage-ink);background:var(--sage);border-radius:30px;padding:3px 10px;flex-shrink:0;font-weight:500}
label{font-size:14px;display:block;margin-bottom:8px}
.form-row{display:flex;gap:12px}
input{width:100%;min-width:0;background:#fbf8f3;border:1px solid var(--line);border-radius:10px;padding:12px 14px;color:var(--ink)}
.form-row button{white-space:nowrap}
#form-error{font-size:14px;margin:10px 0;color:var(--accent-ink)}
ul{list-style:none;padding:0;margin:24px 0 0}
li{border-top:1px solid var(--line)}
li a{display:block;padding:20px 4px;color:var(--ink);text-decoration:none;overflow-wrap:anywhere}
li a:hover{color:var(--accent-ink);background:#fbf8f3}
.back{display:inline-block;margin-bottom:24px;font-size:14px;color:var(--accent-ink);text-decoration:none}
.back:hover{text-decoration:underline}
.next-note{background:#f5f0e9;border-radius:12px;padding:22px;margin-top:26px}
.next-note p{margin:0}
.footnote{font-size:13px;margin:22px 4px;color:#8b857c;max-width:1120px}
.private-materials{margin-top:18px}
.material-section{border-top:1px solid #ddd4c8;padding:28px 0 8px}
.material-section h3{font-size:20px;font-weight:600;margin-bottom:12px}
.material-section h4{font-size:16px;font-weight:600;margin:0 0 6px}
.material-form{display:grid;gap:16px;margin:18px 0 24px;max-width:680px}
.material-form label{margin:0}
.material-form label>span{display:block;margin-bottom:7px}
.material-form input[type=checkbox]{width:auto;min-height:20px;accent-color:#71826e}
.material-form input[type=file]{font-size:14px}
.material-form textarea,.material-form select{width:100%;max-width:100%;background:#fbf8f3;border:1px solid #ddd4c8;border-radius:10px;padding:12px 14px;color:#292722}
.material-form textarea{resize:vertical;min-height:140px;line-height:1.7}
.material-form button{justify-self:start}
.material-form p{margin:0;font-size:14px}
.material-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}
.material-tabs button{border:1px solid #ddd4c8;max-width:100%;overflow-wrap:anywhere;text-align:left}
.material-tabs button[aria-pressed=true]{background:#e8eee5;color:#354332;border-color:#71826e}
.material-section summary{cursor:pointer;font-size:14px;color:#913d26;padding:12px 0}
.material-section details details{padding-left:16px;border-left:2px solid #ddd4c8}
.material-section pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:360px;overflow:auto;font:inherit;font-size:14px;background:#fbf8f3;padding:18px;border-radius:10px}
.source-address{overflow-wrap:anywhere;font-size:14px}
.material-feedback{padding:14px 18px;border-left:3px solid #71826e;background:#f0f3ed;color:#354332;border-radius:0 10px 10px 0}
.saved-version{border-top:1px solid #ddd4c8;padding:20px 0}
.saved-version p{margin:0 0 8px;font-size:14px}
.saved-version a{font-size:14px}
.personal-checks:not(:empty){margin-top:18px}
.personal-checks h3{font-size:20px;font-weight:600;margin:0 0 12px}
.personal-checks h4{font-size:17px;font-weight:600;line-height:1.5;margin:0 0 10px;overflow-wrap:anywhere}
.personal-checks p{overflow-wrap:anywhere}
/* Copy confirmation is one optional, quiet step inside the existing check flow. It uses the
   same paper/line palette and does not become a second configuration dashboard. */
.copy-confirmation{margin:22px 0 18px;padding:18px 20px;background:#fffdfa;border:1px solid var(--line);border-radius:12px;min-width:0}
.copy-confirmation .copy-title{margin-bottom:6px}
.copy-guidance{max-width:68ch}
.copy-confirmation label{display:grid;gap:6px;margin:12px 0 0;font-size:14px;color:var(--ink)}
.copy-confirmation select,.copy-confirmation textarea,.copy-confirmation input[type=text]{width:100%;max-width:100%;background:#fbf8f3;border:1px solid #ddd4c8;border-radius:9px;padding:10px 12px;color:var(--ink);font:inherit;font-size:14px}
.copy-confirmation textarea{resize:vertical;min-height:62px;line-height:1.6}
.copy-confirmation button{margin-top:10px}
.copy-source-review,.copy-existing,.brief-picker{margin:10px 0 0;max-width:100%}
.copy-source-review summary,.copy-existing summary,.brief-picker summary{cursor:pointer;font-size:13px;color:var(--accent-ink);padding:4px 0}
.copy-source-text{white-space:pre-wrap;overflow-wrap:anywhere;max-height:220px;overflow:auto;background:#fbf8f3;border-radius:9px;padding:12px;font:inherit;font-size:13px;line-height:1.65;margin:4px 0 0}
.confirm-copy-items{margin:8px 0 0;max-width:100%}
.confirm-copy-items summary{cursor:pointer;font-size:13px;color:var(--accent-ink);padding:4px 0}
.confirm-copy-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.6;margin:3px 0}
.brief-picker-list{list-style:none;margin:6px 0 0;padding:0 4px 0 0;max-height:360px;overflow:auto;border-top:1px solid var(--line-soft);scrollbar-gutter:stable}
.brief-picker-item{display:flex;align-items:flex-start;gap:12px;padding:9px 0;border-bottom:1px solid var(--line-soft);min-width:0}
.brief-picker-text{display:block;flex:1;min-width:0;font-size:13px;line-height:1.55;overflow-wrap:anywhere}
.brief-picker-item button{flex:none;margin:0;white-space:nowrap}
.brief-picker + .check-note{margin-top:8px}
.copy-existing{padding-top:2px}
.copy-composer{margin-top:16px;padding:14px 0 0;border-top:1px solid var(--line-soft)}
.copy-manual-toggle{margin-top:12px}
.copy-composer-title{font-size:14px;font-weight:600;color:var(--ink);margin:0}
.copy-item-actions{display:flex;align-items:center;gap:14px;margin-top:5px}
.copy-item-actions button{margin:0}
.copy-item.is-editing{padding-left:10px;border-left:2px solid var(--accent)}
.copy-list{list-style:none;margin:14px 0 0;padding:0;display:grid;gap:8px}
.copy-item{padding:10px 0;border-top:1px solid var(--line-soft);min-width:0}
.copy-item strong,.copy-item span{display:block;overflow-wrap:anywhere}
.copy-text{font-size:14px;line-height:1.6;margin-top:3px}
.copy-meta,.copy-warning{font-size:12.5px;color:var(--muted);margin-top:3px}
.copy-structured-note{font-size:12.5px;color:var(--muted)}
.copy-warning{color:#8a5b2d}
.copy-selected{font-weight:500;color:var(--sage-ink)}
.copy-notice{font-size:13px;color:var(--sage-ink)}
.copy-confirmation .text-action{margin:8px 0 0}
.copy-confirmation .copy-item-actions .text-action{margin:0}
@media(max-width:600px){.copy-confirmation{padding:16px}.copy-confirmation select,.copy-confirmation textarea,.copy-confirmation input[type=text]{font-size:16px}.brief-picker-list{max-height:none;padding-bottom:4px}.brief-picker-item{display:block}.brief-picker-item button{display:inline-flex;margin-top:6px;min-height:40px}}
.check-result{margin-top:30px;padding-top:24px;border-top:1px solid #ddd4c8}
.result-page-link{display:inline-block;margin:0 0 14px;font-size:13px;color:#913d26}
.result-page-link:hover{text-decoration:underline}
.result-cta{margin:14px 0 0}
.check-item{padding:24px 0;border-top:1px solid #ddd4c8}
.check-method{font-size:13px;color:#4f624c}
/* Result summary: one block that states what the comparison did. The difference variant uses
   the same shape as other notices so it inherits their fluid, wrap-safe layout. */
.check-summary{padding:14px 18px;border-left:3px solid #ddd4c8;background:#fbf8f3;border-radius:0 10px 10px 0;margin:0 0 18px;min-width:0;overflow-wrap:anywhere}
.check-summary p{margin:0}
.check-summary .check-note{font-size:13px;color:#756f67;margin:6px 0 0}
.check-summary-headline{font-size:15px;font-weight:600;color:#292722}
/* Pending Landing check: one primary line, one supporting line, a light refresh action. */
.check-pending-main{margin:0 0 6px;font-size:15px;font-weight:600;line-height:1.6;color:#292722}
.check-result .check-pending-main + .check-note{margin:0 0 12px;font-size:13px;line-height:1.6;color:#756f67}
.check-result button.quiet{margin:6px 0 0;padding:4px 0;min-height:32px;background:transparent;color:#913d26;text-decoration:underline;text-underline-offset:3px;display:inline-flex;align-items:center}
.personal-checks .check-history{margin-top:18px}
.personal-checks .check-history summary{padding:6px 0;font-size:13px;font-weight:400;color:#756f67}
.check-difference{border-left-color:#b0813a;background:#fdf5e6}
.check-difference .check-summary-headline{color:#6b4711}
.batch-item .batch-fact{font-size:13px;color:#6b4711;margin:2px 0 0;overflow-wrap:anywhere}
.check-evidence{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:16px 0}
.check-evidence>div{min-width:0;background:#fbf8f3;padding:16px;border-radius:10px}
.check-evidence h5{font:inherit;font-size:13px;font-weight:600;margin:0 0 10px;color:#756f67}
.check-evidence p{font-size:14px;margin-bottom:10px;white-space:pre-wrap}
.check-next{font-size:14px;color:#354332;padding-left:14px;border-left:2px solid #71826e}
.personal-checks summary{cursor:pointer;padding:16px 0;color:#913d26;font-size:14px}
.personal-checks details>button{display:block;margin:8px 0;background:#f0f3ed;color:#354332;text-align:left;max-width:100%;overflow-wrap:anywhere}
.personal-checks button:disabled{cursor:not-allowed}
.handling-panel{margin-top:20px;padding:0 18px;background:#fbf8f3;border:1px solid #ddd4c8;border-radius:12px;min-width:0}
.handling-panel:empty{display:none}
.handling-panel p{font-size:14px;white-space:pre-wrap}
.handling-panel details details{border-left:2px solid #ddd4c8;padding-left:16px;margin-bottom:16px}
.handling-form{display:grid;gap:16px;padding:0 0 20px;max-width:680px}
.handling-form label{margin:0;min-width:0}
.handling-form label>span{display:block;margin-bottom:7px}
.handling-form textarea,.handling-form select{width:100%;max-width:100%;border:1px solid #ddd4c8;border-radius:8px;background:#fffdfa;color:#292722;padding:10px 12px;line-height:1.65}
.handling-form textarea{resize:vertical;min-height:80px}
.handling-form button{justify-self:start;font-size:14px}
.handling-panel [role=status]{padding:14px 0;color:#354332;margin:0}
.handoff-section:not(:empty){margin-top:28px;padding:24px 0;border-top:1px solid #ddd4c8;min-width:0}
.handoff-actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}
.handoff-content{background:#fbf8f3;border:1px solid #ddd4c8;border-radius:12px;padding:20px;margin:18px 0;min-width:0}
.handoff-content p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}
.handoff-content h4:not(:first-child){margin-top:22px}
.handoff-section textarea{width:100%;max-width:100%;min-height:200px;resize:vertical;border:1px solid #ddd4c8;border-radius:10px;background:#fffdfa;padding:14px;line-height:1.65}
/* Three-step detail: each step reads as work to do, in order. */
.detail-step{margin-top:30px;padding-top:6px}
.detail-step+.detail-step{border-top:1px solid #ece5da}
.step-heading{font-size:20px;font-weight:600;margin:0 0 10px}
.step-hint{font-size:14px;color:#756f67;margin:0 0 14px;max-width:680px}
.helper{font-size:13px;color:#756f67;margin:0}
.action-heading{font-size:16px;font-weight:600;margin:18px 0 6px}
/* Primary actions are visible; only provenance and history stay collapsed. */
.content-actions{display:flex;flex-wrap:wrap;gap:10px;margin:4px 0 6px}
.content-composer,.version-composer{background:#fbf8f3;border-radius:12px;padding:18px 20px;margin:14px 0}
.composer-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.content-list{list-style:none;margin:18px 0 0;padding:0;display:grid;gap:14px}
.content-card{border:1px solid #ddd4c8;border-radius:12px;padding:18px 20px;background:#fffdfa}
.content-card[aria-current=true]{border-color:#71826e}
.content-name{font-size:16px;font-weight:600;margin:0 0 4px;overflow-wrap:anywhere}
.content-meta{font-size:13px;color:#756f67;margin:0 0 12px}
.content-card-actions{display:flex;flex-wrap:wrap;gap:14px;align-items:center}
.content-card-actions a{font-size:14px}
/* Row actions are secondary by default: opening a material for checking is ordinary management,
not the page's primary call to action, so it must not compete with 上传新版本 styling. */
.content-card-actions button.quiet{border:1px solid #ddd4c8;background:#fffdfa;color:#913d26;padding:6px 12px}
.content-card-actions button.quiet:hover:not(:disabled){border-color:#b95638}
.content-card-actions button.quiet:disabled{background:#f4efe7;color:#756f67;cursor:default}
.content-card-actions :focus-visible{outline:3px solid #71826e;outline-offset:3px}
.content-history{margin-top:14px}
.content-history>summary{cursor:pointer;font-size:14px;color:#913d26;padding:6px 0}
.content-history .saved-version{border-top:1px solid #ddd4c8;padding:16px 0}
/* A historical check record is navigation into past results, so it uses the same quiet action
treatment as the row controls rather than reading as a primary button. */
.content-history button.quiet{display:inline-block;border:1px solid #ddd4c8;border-radius:10px;
 background:#fffdfa;color:#913d26;padding:6px 12px;font:inherit;font-size:13px;text-align:left;
 cursor:pointer;max-width:100%;overflow-wrap:anywhere}
.content-history button.quiet:hover{border-color:#b95638}
.content-history :focus-visible{outline:3px solid #71826e;outline-offset:3px}
.reference-block .material-form{margin:0 0 10px}
.reference-block .action-heading:first-of-type{margin-top:14px}
.private-reference{margin-top:18px}
.private-reference:empty{display:none}
.private-reference .material-section{border-top:0;padding-top:0}
.reference-action{margin-top:12px;max-width:680px}
.confirm-card{background:#fbf8f3;border:1px solid #ddd4c8;border-radius:12px;padding:20px;max-width:680px}
.confirm-card h4{font-size:16px;font-weight:600;margin:0 0 8px}
.confirm-card p{font-size:14px;margin:0 0 16px}
.confirm-actions{display:flex;flex-wrap:wrap;gap:10px}
.check-scope{margin:4px 0 14px;max-width:680px}
.check-scope>summary{cursor:pointer;font-size:14px;color:#913d26;padding:6px 0}
/* Collapsed it is one quiet line; only an opened disclosure becomes the tinted panel. */
.check-scope[open]{background:#f0f3ed;border-left:3px solid #71826e;border-radius:0 10px 10px 0;padding:16px 20px}
.check-scope p{font-size:14px;margin:0 0 8px}
.check-scope p:last-child{margin-bottom:0}
.version-status{color:#756f67}
@media(max-width:600px){.check-evidence{grid-template-columns:1fr}}
@media(max-width:600px){.masthead{flex-wrap:wrap;gap:14px}#account{width:100%;margin-left:0;gap:12px}main{margin:36px auto;padding:0 18px}.panel{padding:22px}h1{font-size:28px}.form-row{flex-direction:column}.section-heading{flex-wrap:wrap;gap:8px;margin-bottom:18px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* Step 2 reference files: one inline block, quiet helper text, no nested admin UI. */
.reference-file{margin:14px 0 4px}
.file-flow{margin-top:10px}
.file-flow input[type=file]{max-width:100%}
.file-status{margin:6px 0 0;font-size:14px;color:#756f67}
.file-meta{margin:4px 0 0;font-size:14px;color:#3f3a34;word-break:break-all}
.file-warning{margin:8px 0 0;font-size:14px;color:#8a4b2a}
.file-preview{margin-top:10px}
.file-preview textarea{width:100%;box-sizing:border-box;font:inherit;padding:10px 12px;border:1px solid #ddd4c8;border-radius:6px;background:#fdfbf7}
.vision-notice{margin-top:10px;padding:12px 14px;border:1px solid #e3d8c8;border-radius:8px;background:#fbf7f0}
.vision-notice p{margin:0;font-size:14px;color:#4a443c}
.reference-file-name{margin:2px 0 0;font-size:14px;color:#756f67;word-break:break-all}
@media (max-width:520px){
 .reference-file .composer-actions{flex-direction:column;align-items:stretch}
 .reference-file .composer-actions button{width:100%}
}

/* D2: the fact-source extraction preview must stay inside its own step. Widths are
   constrained rather than clipped, and long strings wrap instead of overflowing. */
.reference-block,.reference-file,.file-flow,.file-preview{min-width:0;max-width:100%}
.file-meta,.file-status,.file-warning,.reference-file-name{overflow-wrap:anywhere;word-break:break-word}
.file-preview textarea{width:100%;max-width:100%;display:block;overflow-wrap:anywhere;resize:vertical}

/* CFD-3-UX4 Personal core check page v2.
   Step 1 (事实源) is the verification basis; step 2 (待检查物料) is the subject under
   check, so the two must never read as two identical attachment boxes. Each step is
   expanded while it is the current task, collapses to a compact summary once it is
   done, and stays visually quiet while it is still ahead. */
.reference-block,.content-block{min-width:0;max-width:100%}
.reference-block{background:#f6f8f4;border-left:3px solid #71826e;border-radius:0 14px 14px 0;padding:20px 22px}
.content-block{background:#fdfaf6;border-left:3px solid #c98a5e;border-radius:0 14px 14px 0;padding:20px 22px}
.content-block.is-waiting{background:#fbf9f5;border-left-color:#e2dad0}
.content-block.is-waiting .step-hint{color:#8b857c}

/* Step 1 entry choices: two usable entries and one visible-as-unavailable preview, all
   at the same level. Only a usable entry expands. */
.source-choices{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));margin:16px 0 4px}
.source-choice{display:grid;gap:6px;text-align:left;background:#fffdfa;border:1px solid #ddd4c8;color:#292722;padding:16px 18px;min-width:0}
.source-choice:hover{border-color:#71826e}
.source-choice[aria-pressed=true]{background:#eef2ea;border-color:#71826e}
.source-choice-title{font-size:16px;overflow-wrap:anywhere}
.source-choice-hint{font-size:13px;font-weight:400;color:#756f67;overflow-wrap:anywhere}
/* A planned integration never looks like a working one: muted fill, dashed border, no
   hover response, and the unavailable state readable without a click. */
.source-choice.is-unavailable{background:#fbf9f5;border-style:dashed;border-color:#e2dad0;cursor:default}
.source-choice.is-unavailable .source-choice-title{color:#6d675f}
.source-choice.is-unavailable .source-choice-hint{color:#8b857c}
.source-choice-soon{font-size:12px;color:#8b857c;background:#f2ede5;border-radius:20px;padding:2px 10px;justify-self:start}

/* Compact summaries for a completed step. */
.source-summary,.material-summary{background:#fffdfa;border:1px solid #ddd4c8;border-radius:12px;padding:18px 20px;min-width:0}
.source-summary.is-compact{margin:12px 0 4px;background:#fbf9f5}
.summary-label{font-size:13px;font-weight:600;color:#756f67;margin:0 0 4px}
.summary-name{font-size:16px;font-weight:600;color:#292722;margin:0 0 2px;overflow-wrap:anywhere}
.summary-origin{font-size:14px;color:#4f624c;margin:0}
.summary-actions{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center;margin-top:10px}
/* Controls must never collide or break mid-label: a wrapped row moves whole buttons to the
   next line, and each label stays on a single line inside its own button. */
.summary-actions button{white-space:nowrap;flex:0 1 auto;max-width:100%}
/* Primary and secondary actions keep a visible gap AND a visible hierarchy, so a filled
   primary and a bordered secondary never read as a single control. */
.summary-actions .primary,.summary-actions button:not(.quiet){margin-right:2px}
.summary-actions button.quiet{border:1px solid #ddd4c8;background:transparent;padding:6px 12px}
.summary-actions :focus-visible{outline:3px solid #71826e;outline-offset:3px}
.summary-actions a{font-size:14px}
/* The OCR confirmation row (继续检查 / 取消). This is a different container from
   .summary-actions, so it needs its own rule: the two controls must never sit flush, the
   secondary must read as secondary, and focus must stay visible. */
.check-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:10px}
.check-actions button{white-space:nowrap;flex:0 1 auto;max-width:100%}
.check-actions button.quiet{border:1px solid #ddd4c8;background:transparent;padding:6px 12px}
.check-actions :focus-visible{outline:3px solid #71826e;outline-offset:3px}
/* The OCR privacy notice keeps its full wording but loses its visual weight: it is accurate
   disclosure before an OCR run, not an error or a warning banner. */
.ocr-notice{font-size:13px;line-height:1.6;color:#756f67;margin:0}
/* Recognized OCR text is CONTENT, not code: it must read in Frida's normal body font with
   comfortable leading and wrapping. A <pre> only supplies the preserved line breaks. */
.ocr-readable{margin:8px 0 0;padding:12px 14px;border:1px solid #e6ded2;border-radius:10px;background:#fbf9f5;
 color:#292722;font-family:inherit;font-size:15px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere;
 max-height:22em;overflow-y:auto}
/* Removal asks before it acts, so the warning reads as a calm aside rather than an alarm. */
.removal-confirm{margin-top:12px;padding:12px 14px;border:1px solid #e6ded2;border-radius:10px;background:#fbf9f5}
.removal-confirm .removal-warning{font-size:14px;color:#4f624c;margin:0}
.source-paste{margin-top:16px}

/* Saved fact-source history stays secondary and collapsed, inside the open step. */
.source-history{margin-top:12px}
.source-history>summary{cursor:pointer;font-size:14px;color:#913d26;padding:6px 0}

/* Step 2 entry choices are choices, not competing primary actions: the filled primary
   button is reserved for the current stage's own confirmation and for the Step 3 CTA. */
.content-actions button{background:#fffdfa;color:#913d26;border-color:#ddd4c8}
.content-actions button:hover{border-color:#b95638}

/* Step 3 scope disclosure and the single primary action. */
.check-start{margin-top:20px}
/* Multi-image checking. The batch rows are a calm status list, not a dashboard: one row per
material, and the only filled primary remains the single start action. */
.check-batch{margin-top:20px;padding-top:16px;border-top:1px solid #e6ded2}
.check-batch h5{margin:0 0 8px;font-size:15px;color:#292722}
.check-batch p{margin:6px 0 0;font-size:14px;line-height:1.65;color:#4a453e;overflow-wrap:anywhere}
.batch-items{margin-top:10px;display:flex;flex-direction:column;gap:8px}
.batch-item{padding:8px 0;border-bottom:1px solid #efe8dd}
.batch-item:last-child{border-bottom:none}
.batch-item p{margin:0}
.batch-item .batch-name{margin:0 0 2px;font-size:15px;color:#292722}
.batch-item .batch-status{font-size:13px;color:#756f67}
/* Retry and close are secondary: a retry must never look like the main call to action. */
.check-batch .check-actions{margin-top:12px}
.check-batch .check-actions button{background:#fffdfa;color:#913d26;border:1px solid #ddd4c8}
.check-batch .check-actions button:hover{border-color:#b95638}

/* ---------------------------------------------------------------------------
   Confluence as one Step 1 source method.

   The flow has to read as part of Step 1 rather than a new subsystem: same card
   colours and borders as the surrounding source choices, one filled primary button
   per state, and quiet text actions for the alternative source methods.
   --------------------------------------------------------------------------- */

/* The work-tools group sits above the upload and paste choices. */
.source-choices-group{grid-column:1/-1;font-size:13px;font-weight:600;color:#756f67;margin:4px 0 0}
.source-choices-row{grid-column:1/-1;display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}

.confluence-source{grid-column:1/-1;margin-top:16px;min-width:0}
.confluence-connect,.confluence-connected,.confluence-reading,.confluence-review,.confluence-empty,.confluence-error,.confluence-notice,.confluence-completed{
  background:#fffdfa;border:1px solid #ddd4c8;border-radius:12px;padding:18px 20px;min-width:0;
}
.confluence-title,.confluence-connected-heading,.confluence-review-heading,.confluence-empty-heading,.confluence-error-heading,.confluence-reading-heading,.confluence-notice-heading{
  font-size:16px;font-weight:600;color:#292722;margin:0 0 4px;
}
.confluence-support{font-size:14px;color:#756f67;margin:0 0 14px;max-width:680px;overflow-wrap:anywhere}
.confluence-field-label{display:block;font-size:13px;font-weight:600;color:#4f624c;margin:0 0 6px}

/* Actions: the filled button is this stage's own next step; alternatives stay quiet. */
.confluence-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:14px 0 0}
.confluence-secondary{margin-top:10px}

/* The one quiet continuation line, present in every state that cannot continue here. */
.confluence-alternatives{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:14px;padding-top:12px;border-top:1px solid #ece5da}
.confluence-alternatives-label{font-size:13px;color:#8b857c}
.confluence-alternatives button{font-size:13px}

/* URL entry. */
.confluence-url-form{display:grid;gap:6px;margin:0}
.confluence-url-input{
  font:inherit;font-size:15px;width:100%;min-width:0;background:#fff;border:1px solid #ddd4c8;
  border-radius:8px;padding:11px 12px;color:#292722;
}
.confluence-url-input:focus-visible,.confluence-review-text:focus-visible{outline:2px solid #71826e;outline-offset:1px;border-color:#71826e}

/* Reading: a quiet, non-blocking progress note that keeps the link visible. */
.confluence-url-echo{margin:0;font-size:13px;color:#8b857c;overflow-wrap:anywhere}
.confluence-reading[role=status]{border-color:#e2dad0;background:#fbf9f5}

/* Review. The fact text is the main object; the warning only sits next to it. */
.confluence-review-text{
  font:inherit;font-size:15px;line-height:1.6;width:100%;min-width:0;background:#fff;
  border:1px solid #ddd4c8;border-radius:8px;padding:14px 16px;color:#292722;resize:vertical;
}
/* Noticeable through the border and a text label, never through colour alone. */
.confluence-partial{margin:0 0 16px;padding:12px 14px;border:1px solid #e0c9a8;border-left:4px solid #c08a4a;border-radius:8px;background:#fdf8ef}
.confluence-partial-label{display:block;font-size:13px;font-weight:600;color:#8a5a22;margin:0 0 2px}
.confluence-partial-heading{font-size:14px;font-weight:600;color:#5c4626;margin:0 0 4px}
.confluence-partial-copy{font-size:14px;color:#6d5b40;margin:0}

/* Empty and error states are calm cards, not alert banners. */
.confluence-empty[role=status]{background:#fbf9f5}
.confluence-error{background:#fdf8f4;border-color:#e3d3c4}

/* Completion: the compact summary that replaces the step. */
.confluence-completed{background:#fbf9f5}
.confluence-completed-line{display:flex;flex-wrap:wrap;gap:10px;align-items:baseline;margin:0}
.confluence-completed-label{font-size:15px;font-weight:600;color:#4f624c}
.confluence-completed-source{font-size:14px;color:#756f67;overflow-wrap:anywhere}
.confluence-completed-actions{display:flex;flex-wrap:wrap;gap:14px;align-items:center;margin-top:10px}
.confluence-completed-actions button{font-size:14px}

/* A callback refusal is a quiet notice with the same continuation options. */
.confluence-notice{background:#fbf9f5}
.confluence-notice-heading{font-size:15px;font-weight:600;color:#292722;margin:0 0 12px}

/* The alternative source methods read as one compact continuation line rather than a
   mini menu: left-aligned, wrapped, and separated by a decorative dot rule. */
.confluence-alternatives{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:baseline;margin-top:14px;padding-top:12px;border-top:1px solid #ece5da}
.confluence-alternatives-label{font-size:13px;color:#8b857c;flex:0 0 auto}
.confluence-alt-sep{color:#c9c0b4;font-size:13px;line-height:1;user-select:none}
.confluence-alternatives button{
  font-size:13px;font-weight:400;background:none;border:0;padding:2px 0;color:#756f67;
  text-decoration:underline;text-underline-offset:3px;text-decoration-color:#d8cec0;
}
.confluence-alternatives button:hover{color:#4f624c;text-decoration-color:#71826e}

/* Narrow widths: the recovery action stays the dominant full-width control, while the
   alternatives keep their compact left-aligned line instead of becoming a centred stack
   of small buttons. This is the only place the two treatments differ on purpose. */
@media(max-width:768px){
  .source-choices-row{grid-template-columns:1fr}
  .confluence-connect,.confluence-connected,.confluence-reading,.confluence-review,.confluence-empty,.confluence-error,.confluence-notice,.confluence-completed{padding:16px}
  .confluence-actions button{width:100%}
  .confluence-completed-actions{flex-direction:column;align-items:stretch}
  .confluence-completed-actions button{width:100%}
  .confluence-review-text{min-height:220px}
  .confluence-alternatives{gap:4px 8px;margin-top:12px;padding-top:10px}
}
@media(max-width:520px){
  .confluence-connect,.confluence-connected,.confluence-reading,.confluence-review,.confluence-empty,.confluence-error,.confluence-notice,.confluence-completed{padding:14px}
  .confluence-review-text{font-size:15px}
}

/* ---------------------------------------------------------------------------
   MA v1 preparation page.

   One white workspace, three numbered steps, and quiet rows. The numbered
   sequence carries the information architecture; terracotta is reserved for
   the row's upload action and the one check call to action.
   --------------------------------------------------------------------------- */

.workspace{background:var(--paper);border:1px solid var(--line);border-radius:22px;padding:26px 36px 30px;box-shadow:0 1px 2px rgba(43,40,35,.03)}
.project-head{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin:0}
.project-head h2{font-size:24px;line-height:1.35;margin:0;letter-spacing:.01em}
.project-head .privacy{font-size:12px}

.task-choice{margin:22px 0 6px;padding:16px 18px;border:1px solid #e4d9cc;border-radius:14px;background:#fffdfa}
.task-choice-head .task-choice-title{margin:0 0 4px;font-size:16px;color:var(--ink)}
.task-choice-head p{margin:0;color:#8b8177;font-size:13px;line-height:1.6}
.task-choice-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}
.task-option{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;padding:11px 12px;border:1px solid #e4d9cc;border-radius:10px;background:#fff;color:var(--ink);cursor:pointer;font:inherit}
.task-option:hover{border-color:#c9b5a2;background:#fdf8f2}
.task-option[aria-pressed="true"]{border-color:#b95638;background:#fbf1eb;box-shadow:inset 0 0 0 1px #b95638}
.task-option[aria-pressed="true"]::after{content:"已选择";align-self:flex-start;margin-top:2px;padding:1px 7px;border-radius:999px;background:#b95638;color:#fff;font-size:11px;font-weight:600}
.task-option:focus-visible{outline:3px solid rgba(185,86,56,.45);outline-offset:2px}
.task-option strong{font-size:13px;font-weight:600}
.task-option small{font-size:12px;line-height:1.5;color:#8b8177}
.task-choice-note{margin:10px 0 0;font-size:12.5px;color:#8b8177}
.task-choice-action{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin-top:8px}
.task-choice-status{margin:0;font-size:12.5px;color:#756f67;line-height:1.6}
.task-action{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 15px;border:1px solid #b95638;border-radius:8px;background:#b95638;color:#fff;font:inherit;font-size:13px;font-weight:600;white-space:nowrap;cursor:pointer}
.task-action:hover{background:#9e3d21;border-color:#9e3d21}
.task-action:disabled{opacity:.6;cursor:wait}
.task-action:focus-visible{outline:3px solid rgba(185,86,56,.45);outline-offset:2px}
@media(max-width:720px){.task-choice{padding:14px}.task-choice-options{grid-template-columns:1fr}.task-option{min-height:44px}.task-choice-action{flex-direction:column;align-items:stretch}.task-action{width:100%;white-space:normal}}
.prep-steps{list-style:none;margin:10px 0 0;padding:0}
.prep-step{position:relative;display:grid;grid-template-columns:38px minmax(0,1fr);gap:18px;padding:26px 0 30px;border:0}
.prep-step+.prep-step{border-top:1px solid var(--line-soft)}
.prep-step:not(:last-child)::after{content:'';position:absolute;left:18px;top:58px;bottom:-2px;width:1px;background:var(--line)}
.step-marker{width:38px;height:38px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;line-height:1;position:relative;z-index:1}
.prep-step[data-step=source] .step-marker{background:var(--sage);color:var(--sage-ink)}
.prep-step[data-step=material] .step-marker{background:var(--blush);color:#8a5b4e}
.prep-step[data-step=check] .step-marker{background:var(--sand);color:#7b654c}
.step-body{min-width:0;padding-bottom:2px}
.step-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin:0 0 14px}
.step-heading-group{min-width:0}
.step-heading{font-size:19px;font-weight:600;line-height:1.4;margin:0 0 4px;letter-spacing:.01em}
.step-copy{font-size:14px;line-height:1.65;color:var(--muted);margin:0;max-width:700px}
.step-head-action{flex:0 0 auto}
.step-add{background:transparent;border:1px solid #dcc3b5;color:var(--accent-ink);padding:8px 14px;border-radius:9px;font-size:13px;font-weight:500;white-space:nowrap}
.step-add:hover:not(:disabled){background:#fbf1eb;border-color:var(--accent)}

.private-reference,.private-materials,.personal-checks{margin-top:0}
.private-reference:empty,.private-materials:empty,.personal-checks:empty{display:none}
/* The step heading now owns the explanatory copy and the step container, so the old tinted
   per-step blocks and their left rules are no longer part of the hierarchy. */
.reference-block,.content-block{background:transparent;border:0;border-radius:0;padding:0;min-width:0}
.content-block.is-waiting,.content-block.is-current,.content-block.is-editing,.content-block.is-done,
.reference-block.is-waiting,.reference-block.is-current,.reference-block.is-editing,.reference-block.is-done{background:transparent;border:0;border-radius:0;padding:0}

.source-summary{background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:0;min-width:0}
.source-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:8px 14px;align-items:center;padding:14px 16px}
.source-main,.material-main{min-width:0}
.source-icon,.material-icon{width:30px;height:36px;border:1px solid #d9cfc1;border-radius:6px;background:#fbf8f3;position:relative;display:block;flex:0 0 auto}
.source-icon::before,.material-icon::before{content:'';position:absolute;left:6px;top:11px;width:16px;height:1px;background:#c9beb0;box-shadow:0 5px 0 #c9beb0,0 10px 0 #c9beb0}
.source-icon::after,.material-icon::after{content:'';position:absolute;right:-1px;top:-1px;border-style:solid;border-width:0 8px 8px 0;border-color:transparent #e5dbcf transparent transparent}
.summary-label{font-size:12px;font-weight:600;color:#8b857c;margin:0 0 2px}
.summary-name{font-size:15px;font-weight:600;color:var(--ink);margin:0;overflow-wrap:anywhere}
.summary-origin{font-size:12.5px;color:#8b857c;margin:2px 0 0}
.source-address{font-size:12px;color:#8b857c;margin:2px 0 0;overflow-wrap:anywhere}
.row-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
button.row-primary{background:transparent;color:var(--accent-ink);border:1px solid #dcc3b5;padding:7px 14px;font-size:13px;font-weight:500;border-radius:8px}
button.row-primary:hover:not(:disabled){background:#fbf1eb;border-color:var(--accent)}

.row-menu{position:relative}
.row-menu-toggle{list-style:none;width:38px;height:36px;display:flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:#6d675f;cursor:pointer}
.row-menu-toggle::-webkit-details-marker{display:none}
.row-menu-toggle::marker{content:''}
.row-menu[open]>.row-menu-toggle{border-color:#cbb9a9;background:#fbf7f1}
.row-menu-dots{letter-spacing:1px;font-size:14px;line-height:1}
.menu-panel{position:absolute;right:0;top:calc(100% + 6px);z-index:30;min-width:176px;background:var(--paper);border:1px solid var(--line);border-radius:10px;box-shadow:0 14px 34px rgba(60,46,34,.14);padding:6px}
.menu-panel a,.menu-panel button{display:block;width:100%;text-align:left;background:transparent;border:0;border-radius:6px;padding:8px 10px;font-size:13px;color:var(--ink);text-decoration:none;cursor:pointer;font-weight:400}
.menu-panel a:hover,.menu-panel button:hover{background:#f7f1e9;color:var(--accent-ink)}

.content-list{margin:0;display:grid;gap:10px}
.content-list>li{border:0;padding:0}
.material-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:8px 14px;align-items:center;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--paper);margin:0}
.material-line{display:flex;align-items:center;gap:10px;min-width:0;flex-wrap:nowrap}
.content-name{font-size:15px;font-weight:600;color:var(--ink);margin:0;min-width:0;flex:0 1 auto;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal;word-break:keep-all;line-height:1.4}
.material-kind{font-size:11px;font-weight:500;color:#7d766d;background:#f1eae0;border-radius:20px;padding:2px 8px;flex:0 0 auto;line-height:1.5}
.content-meta{font-size:12.5px;color:#8b857c;margin:3px 0 0}
.content-card-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0}
button.row-upload{background:#fbf2ec;border:1px solid #dcc3b5;color:var(--accent-ink);padding:7px 14px;border-radius:8px;font-size:13px;white-space:nowrap;font-weight:600}
button.row-upload:hover:not(:disabled){background:#f7e7de;border-color:var(--accent)}
button.row-registration{background:#fffdfa;border:1px solid #dcc3b5;color:var(--accent-ink);padding:7px 14px;border-radius:8px;font-size:13px;white-space:nowrap;font-weight:600}
button.row-registration:hover:not(:disabled){background:#fbf1eb;border-color:var(--accent)}
.empty-note{font-size:14px;color:var(--muted);margin:0;padding:14px 0}
.material-remove-confirm{grid-column:1/-1;margin-top:2px}
.remove-confirm-button{background:transparent;color:var(--accent-ink);border:1px solid #dcc3b5;padding:7px 14px;font-size:13px;font-weight:500;border-radius:8px}
.remove-confirm-button:hover:not(:disabled){background:#fbf1eb;border-color:var(--accent)}
.menu-remove{color:#8a5b4e}
.removed-materials{margin-top:14px;border-top:1px solid var(--line-soft);padding-top:8px}
.removed-materials-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;list-style:none;cursor:pointer;padding:6px 0;font-size:13px;font-weight:500;color:#7b6b58}
.removed-materials-summary::-webkit-details-marker{display:none}
.removed-materials-summary::marker{content:''}
.removed-materials-chevron{font-size:16px;line-height:1;transform:translateY(-1px)}
.removed-materials[open] .removed-materials-chevron{transform:rotate(90deg)}
.removed-material-list{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:8px}
.removed-material-item{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--line-soft);border-radius:10px;padding:10px 12px;background:var(--paper-soft)}
.removed-material-main{min-width:0}
.removed-material-name{font-size:13.5px;font-weight:500;color:var(--ink);margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.removed-material-meta{font-size:12px;color:#8b857c;margin:2px 0 0}
.removed-material-restore{background:transparent;border:1px solid #dcc3b5;color:var(--accent-ink);padding:7px 12px;border-radius:8px;font-size:13px;white-space:nowrap;flex:0 0 auto}
.removed-material-restore:hover:not(:disabled){background:#fbf1eb;border-color:var(--accent)}

/* Step 1's entry choices stay quiet: one compact choice per method, no large
   selection cards competing with the source that is already confirmed. */
.source-choices{gap:10px;margin:8px 0 4px;grid-template-columns:repeat(2,minmax(0,1fr))}
.source-choices-row{grid-template-columns:repeat(2,minmax(0,1fr))}
.source-choice{padding:12px 14px;border-radius:10px;background:var(--paper);border-color:var(--line);gap:3px}
.source-choice-title{font-size:14px;font-weight:600}
.source-choice-hint{font-size:12.5px}
.source-choice[aria-pressed=true]{background:#f3f7f1;border-color:#9aaa92}
.source-choices-group{font-size:12px}
.source-paste{margin-top:12px}
.source-confirmation-note{font-size:13px;line-height:1.7;color:var(--muted);margin:14px 0 0;max-width:680px}

.content-composer{border:1px solid var(--line);background:var(--paper-soft);border-radius:12px;padding:16px 18px;margin:0 0 12px}
.composer-title{font-size:14px;font-weight:600;color:var(--ink);margin:0 0 12px}
.composer-choices{display:flex;flex-wrap:wrap;gap:10px}
.add-choice{background:var(--paper);color:var(--accent-ink);border:1px solid var(--line);padding:10px 16px;border-radius:9px;font-weight:500}
.add-choice:hover:not(:disabled){border-color:var(--accent);background:#fbf1eb}
.material-form{gap:12px;margin:0}
.material-form label>span{font-size:13px;color:var(--ink);font-weight:500}
.material-form .composer-actions{margin-top:2px}
.version-composer{grid-column:1/-1;width:100%;border:1px solid var(--line);background:var(--paper-soft);border-radius:10px;padding:14px 16px;margin-top:2px}
.version-composer .helper{margin-top:10px}
.row-panel{grid-column:1/-1;width:100%;border:1px solid var(--line);border-radius:10px;background:var(--paper-soft);padding:12px 16px;margin-top:2px}
.row-panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.row-panel-title{font-size:13px;font-weight:600;color:var(--ink);margin:0}
.row-panel .saved-version{border-top:1px solid var(--line-soft);padding:10px 0}
.row-panel .saved-version:first-of-type{border-top:0;padding-top:6px}

/* Step 3 range selection. The tinted field separates the decision from the
   management rows above without adding another card inside the card. */
.selection-panel{background:#fbf4ec;border:1px solid #efe1d3;border-radius:14px;padding:14px 16px 8px}
.selection-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;padding:0 0 10px;border-bottom:1px solid #eee2d5}
.selection-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
button.text-action{background:none;border:0;padding:2px 0;color:var(--accent-ink);font-size:13px;font-weight:500;border-radius:0;text-decoration:none;cursor:pointer}
button.text-action:hover:not(:disabled){text-decoration:underline}
button.text-action:disabled{color:#b3a99d;opacity:1;cursor:default;text-decoration:none}
.selection-count{font-size:12.5px;color:#857b6f;margin-left:2px}
.scope-help{margin-left:auto}
.scope-help[open]{width:100%;margin-left:0;order:3}
.scope-help>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:6px;font-size:12.5px;color:#8b5a42;font-weight:500}
.scope-help>summary::-webkit-details-marker{display:none}
.scope-help>summary::marker{content:''}
.scope-help>summary::after{content:'›';font-size:16px;line-height:1;transform:translateY(-1px)}
.scope-help[open]>summary::after{transform:rotate(90deg)}
.scope-body{padding:8px 0 4px;max-width:720px}
.scope-body p{font-size:13px;line-height:1.65;color:#6f675d;margin:0 0 6px}
.scope-body p:last-child{margin-bottom:0}
.selection-list{list-style:none;margin:0;padding:0}
.selection-item{border:0;padding:0;margin:0}
.selection-row{display:grid;grid-template-columns:18px 30px minmax(0,1fr);gap:12px;align-items:center;padding:11px 4px;border:0;border-bottom:1px solid #f0e5d8;cursor:pointer}
.selection-list>li:last-child .selection-row{border-bottom:0}
.selection-row.is-blocked{opacity:.72;cursor:default}
.selection-row:focus-within{outline:3px solid #71826e;outline-offset:2px;border-radius:8px}
.selection-check{margin:0;display:flex;align-items:center;justify-content:center;min-width:18px}
.selection-check input{width:16px;height:16px;min-height:0;margin:0;accent-color:var(--accent);cursor:pointer}
.selection-check input:disabled{cursor:default}
.selection-main{min-width:0}
.selection-line{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:nowrap}
.selection-name{font-size:14px;font-weight:500;color:var(--ink);min-width:0;flex:0 1 auto;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal;word-break:keep-all;line-height:1.4}
.selection-meta{font-size:12px;color:#8b857c;margin:2px 0 0}
.selection-status{font-size:12px;color:#7b6b58;margin:2px 0 0}
.selection-reason{font-size:12px;color:#9a5a40;margin:2px 0 0}
.selection-empty{font-size:13px;line-height:1.6;color:#6f675d;background:#fdf9f4;border:1px solid #efe4d8;border-radius:10px;padding:11px 13px;margin:10px 0 2px}
.check-cta{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-top:18px}
.check-primary{display:inline-flex;align-items:center;gap:8px;background:var(--accent);border:1px solid var(--accent);color:#fffdfa;border-radius:10px;padding:11px 20px;font-size:15px;font-weight:600}
.check-primary::before{content:'✦';font-size:13px;color:#f7d9c9;line-height:1}
.check-primary:hover:not(:disabled){background:#a84b30}
.cta-note{font-size:12.5px;color:#8b857c;margin:0}
.cta-warning{color:#8b5a42;margin-top:8px}
.check-note,#check-readiness{font-size:13px;color:var(--muted);margin:8px 0 0;line-height:1.6}
#check-readiness{max-width:680px}

.check-confirmation{margin-top:18px;border:1px solid var(--line);border-radius:12px;background:var(--paper);padding:16px 18px}
.confirm-title{font-size:15px;font-weight:600;margin:0 0 10px}
.confirm-list{list-style:none;margin:0 0 8px;padding:0;display:grid;gap:6px}
.confirm-item{display:flex;justify-content:space-between;gap:16px;border:0;padding:0;font-size:13.5px}
.confirm-name{color:var(--ink);min-width:0;overflow-wrap:anywhere}
.confirm-version{color:var(--muted);font-size:12.5px;flex:0 0 auto}
.confirm-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.confirm-warning{font-size:12.5px;color:#8b5a42;margin:8px 0 0}

.check-batch{margin-top:22px;padding-top:18px;border-top:1px solid var(--line-soft)}
.check-batch h5{font-size:15px;margin:0 0 10px;color:var(--ink)}
.batch-items{display:grid;gap:8px;margin-top:10px}
.batch-item{border:1px solid var(--line-soft);border-radius:10px;padding:10px 12px;background:var(--paper);margin:0}
.batch-item p{margin:0}
.batch-name{font-size:14px;font-weight:500;color:var(--ink)}
.batch-status{font-size:12px;color:var(--muted);margin-top:2px!important}
.check-scope{margin:4px 0 14px;max-width:680px}
.check-scope>summary{cursor:pointer;font-size:13px;color:#8b5a42;padding:4px 0}
.check-scope[open]{background:#fbf7f0;border-left:2px solid #dcc3b5;border-radius:0 8px 8px 0;padding:12px 16px}
.check-scope p{font-size:13px;color:#6f675d;margin:0 0 6px}
.check-scope p:last-child{margin-bottom:0}
.check-start{margin-top:16px}

@media(max-width:760px){
  main{margin:28px auto 40px;padding:0 16px}
  .page-intro{margin-bottom:20px}
  h1{font-size:30px}
  .workspace{padding:20px 18px 24px;border-radius:18px}
  .project-head h2{font-size:21px}
  .prep-step{grid-template-columns:30px minmax(0,1fr);gap:12px;padding:22px 0 26px}
  .step-marker{width:30px;height:30px;font-size:13px}
  .prep-step:not(:last-child)::after{left:14px;top:46px}
  .step-head{flex-direction:column;gap:10px}
  .step-head-action{width:100%}
  .step-add{width:100%;text-align:center}
  .source-row{grid-template-columns:30px minmax(0,1fr)}
  .source-row .row-actions{grid-column:1/-1;justify-content:flex-start;margin-top:2px}
  .material-row{grid-template-columns:30px minmax(0,1fr)}
  .material-row .content-card-actions{grid-column:1/-1;justify-content:flex-start;margin-top:2px}
  .row-menu-toggle{width:44px;height:44px}
  button.row-upload,button.row-registration{min-height:44px}
  .selection-row{min-height:48px;padding:12px 4px}
  .removed-material-item{flex-wrap:wrap}
  .removed-material-main{flex:1 1 100%}
  .removed-material-restore{min-height:44px}
  .menu-panel{right:auto;left:0;max-width:calc(100vw - 84px)}
  .source-choices,.source-choices-row{grid-template-columns:1fr}
  .selection-panel{padding:12px 12px 6px}
  .selection-bar{gap:10px}
  .scope-help{margin-left:0;width:100%}
  .scope-help>summary{padding:2px 0}
  .check-cta{align-items:stretch;gap:8px}
  .check-primary{width:100%;justify-content:center}
  .cta-note{width:100%}
  .confirm-item{flex-direction:column;gap:2px}
  .masthead{min-height:68px;padding:12px 18px;gap:14px;flex-wrap:wrap}
  .space-label{padding-left:14px}
  #account{width:100%;margin-left:0;gap:12px}
  .footnote{margin:18px 2px}
}

/* HANDOFF-25B: lightweight right-side Handoff Composer drawer. */
.handoff-drawer-overlay{position:fixed;inset:0;z-index:80;display:flex;justify-content:flex-end;background:rgba(43,40,35,.28);backdrop-filter:blur(2px)}
.handoff-drawer{width:min(440px,100%);height:100dvh;background:var(--paper);border-left:1px solid var(--line);box-shadow:-16px 0 50px rgba(43,40,35,.16);display:flex;flex-direction:column;min-width:0}
.handoff-drawer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:24px 24px 16px;border-bottom:1px solid var(--line-soft)}
.handoff-drawer-kicker{font-size:12px;letter-spacing:.08em;color:var(--accent-ink);font-weight:600;margin:0 0 4px}
.handoff-drawer-title{font-size:21px;line-height:1.35;margin:0;color:var(--ink)}
.handoff-drawer-close{border:1px solid transparent;background:transparent;color:var(--muted);font-size:26px;line-height:1;padding:2px 8px;border-radius:8px}
.handoff-drawer-close:hover{background:var(--paper-soft);color:var(--ink)}
.handoff-drawer-body{padding:20px 24px 28px;overflow-y:auto;min-height:0;display:flex;flex-direction:column;gap:16px}
.handoff-fixed-summary{background:var(--paper-soft);border:1px solid var(--line);border-radius:14px;padding:16px 17px}
.handoff-summary-label{font-size:12px;font-weight:600;color:var(--sage-ink);margin:0 0 5px}
.handoff-fixed-summary h3{font-size:16px;line-height:1.45;margin:0 0 5px;overflow-wrap:anywhere}
.handoff-summary-meta{font-size:12px;color:var(--muted);margin:0;overflow-wrap:anywhere}
.handoff-summary-note{font-size:12px;color:var(--muted);margin:9px 0 0;line-height:1.55}
.handoff-field{display:flex;flex-direction:column;gap:7px;font-size:13px;color:var(--ink);margin:0}
.handoff-field input,.handoff-field select,.handoff-field textarea{width:100%;min-width:0;border:1px solid var(--line);border-radius:10px;background:#fffdfa;color:var(--ink);padding:10px 12px;font:inherit;font-size:14px;line-height:1.55}
.handoff-field textarea{resize:vertical;min-height:88px}
.handoff-counter{align-self:flex-end;color:var(--muted);font-size:11px;margin-top:-3px}
.handoff-channel-state{font-size:12px;color:var(--muted);margin:-7px 0 0}
.handoff-channel-state.is-unavailable{color:var(--accent-ink)}
.handoff-drawer-status{font-size:13px;line-height:1.55;margin:0;color:var(--sage-ink);min-height:20px;overflow-wrap:anywhere}
.handoff-drawer-status.is-error{color:var(--accent-ink)}
.handoff-drawer-actions{display:flex;gap:10px;flex-wrap:wrap;border-top:1px solid var(--line-soft);padding-top:16px}
.handoff-drawer-actions button{flex:1;min-width:140px}
.handoff-drawer-actions button.handoff-secondary{background:transparent;border-color:var(--line);color:var(--muted)}
.handoff-drawer-actions button:disabled{opacity:.55;cursor:not-allowed}
.handoff-drawer-fineprint{font-size:11px;line-height:1.6;color:var(--muted);margin:0}
@media (max-width:620px){
  .handoff-drawer{width:100%;border-left:0;box-shadow:none}
  .handoff-drawer-head{padding:18px 18px 14px}
  .handoff-drawer-body{padding:16px 18px 24px;gap:14px}
  .handoff-drawer-actions{flex-direction:column}
  .handoff-drawer-actions button{width:100%;min-width:0}
}
