:root{--paper:#f6f4ee;--white:#fffefa;--ink:#262c29;--muted:#67716c;--line:#dedfd5;--green:#245a48;--green-soft:#e9f0e9;--gold:#a97c3e;--gold-soft:#f4ead9;--red:#9a3b33;--radius:12px;--serif:Georgia,"Noto Serif CJK SC","Songti SC",serif;--sans:ui-sans-serif,system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:14px/1.6 var(--sans)}[hidden]{display:none!important}a{color:var(--green);text-underline-offset:3px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.48;cursor:not-allowed}button,a,input,textarea,select{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #bd8f43;outline-offset:3px}button{border:0;border-radius:7px;padding:10px 15px;min-height:42px;background:transparent;color:inherit}h1,h2,h3,p{margin-top:0}h1,h2,h3{line-height:1.2}h1,h2{font-family:var(--serif);font-weight:400}h1{font-size:clamp(32px,4vw,51px);letter-spacing:-1.5px}h2{font-size:25px}h3{font-size:16px}.primary{background:var(--green);color:white;border:1px solid var(--green)}.primary:hover{background:#174834}.secondary{border:1px solid #bac6bb;background:var(--white);color:var(--green)}.secondary:hover{background:var(--green-soft)}.link-button{padding:8px 7px;color:var(--green)}.icon-button{border:1px solid var(--line);background:var(--white)}.help{font-size:12px;color:var(--muted);line-height:1.65}.eyebrow{font:600 10px/1.4 var(--sans);letter-spacing:1.7px;color:var(--muted);margin:0 0 10px;text-transform:uppercase}.mono,pre,code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.mono{font-size:11px;overflow-wrap:anywhere}.muted{color:var(--muted)}.skip{position:absolute;left:16px;top:-60px;z-index:100;background:white;padding:10px}.skip:focus{top:12px}.masthead{height:88px;padding:0 4%;display:flex;align-items:center;justify-content:space-between;background:var(--white);border-bottom:1px solid var(--line);gap:20px}.wordmark{display:flex;align-items:center;gap:13px;color:var(--ink);text-decoration:none;font:31px/1.05 var(--serif)}.wordmark small{display:block;font:8px/1.8 var(--sans);letter-spacing:1.7px;margin-top:4px}.brand-glyph{border:1px solid #c9b992;display:grid;place-items:center;width:43px;height:48px;font-style:italic;color:var(--green);border-radius:50% 50% 4px 4px}.masthead-end{display:flex;align-items:center;gap:18px}.back-link{color:var(--muted);text-decoration:none;font-size:12px}.account-label{max-width:180px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:12px}.language{display:flex;border:1px solid var(--line);border-radius:7px;padding:2px}.language button{padding:5px 9px;min-height:30px;font-size:11px}.language button[aria-pressed=true]{background:var(--green-soft);color:var(--green)}main{max-width:1590px;margin:0 auto;padding:0 4% 40px}.project-strip{display:flex;align-items:center;gap:16px;border-bottom:1px solid var(--line);padding:19px 0}.project-control{display:flex;align-items:center;gap:15px;flex:1}.project-control .eyebrow{margin:0}.project-control select{max-width:330px;border:0;background:transparent;font-weight:600;padding:8px}.project-heading{padding:36px 0 26px;display:flex;justify-content:space-between;gap:35px;align-items:flex-end}.project-heading h1{margin-bottom:12px}.lede{color:var(--muted);max-width:750px;margin:0;font-size:14px}.membership-summary{min-width:180px;font-size:12px;text-align:right}.membership-summary strong{display:block;color:var(--green);font-size:14px}.membership-summary small{display:block;color:var(--muted);max-width:260px}.workspace-toolbar{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:18px}.reader-tabs{display:flex;gap:5px;border-bottom:1px solid var(--line)}.reader-tabs button{border-radius:0;min-width:84px;padding:12px 15px;border-bottom:2px solid transparent;color:var(--muted)}.reader-tabs button.active{border-color:var(--green);color:var(--green);font-weight:650}.workspace-grid{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:22px;align-items:start}.edition-panel,.work-panel{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);min-width:0;overflow:hidden}.resource-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 25px;border-bottom:1px solid var(--line);background:#fafaf5}.resource-bar label{font-size:11px;color:var(--muted);white-space:nowrap}.resource-bar select{border:0;background:transparent;max-width:75%;color:var(--green);font-size:12px}.reading{padding:34px 38px 36px;min-height:460px}.reading-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.reading-header h2{font-size:32px;margin-bottom:10px}.badges{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 18px}.badge{display:inline-block;padding:3px 8px;border-radius:4px;background:#edf0eb;color:#536358;font-size:10px;line-height:1.6}.badge.warn{background:var(--gold-soft);color:#865f29}.badge.accepted{background:var(--green-soft);color:var(--green)}.badge.declined{background:#f3e4e0;color:var(--red)}.passage-text{font:22px/1.95 var(--serif);white-space:pre-wrap;overflow-wrap:anywhere;margin:28px 0 24px}.reading-note{border-left:2px solid #c7b588;padding:10px 17px;color:var(--muted);font-size:13px;background:#f8f6ef;white-space:pre-wrap}.source-meta{display:grid;grid-template-columns:110px 1fr;gap:9px 16px;font-size:12px;margin-top:25px}.source-meta dt{color:var(--muted)}.source-meta dd{margin:0;overflow-wrap:anywhere}.empty{padding:37px 28px;color:var(--muted);text-align:center}.empty .empty-glyph{font:44px var(--serif);color:#b3bdaa;display:block;margin-bottom:15px}.empty h3{color:var(--ink);font:24px var(--serif);margin-bottom:12px}.work-heading{padding:25px 23px 15px}.work-heading h2{font-size:23px;margin-bottom:8px}.work-heading .help{margin:0}.work-tabs{display:flex;flex-wrap:wrap;gap:5px;padding:0 16px 16px;border-bottom:1px solid var(--line)}.work-tabs button{font-size:10px;padding:7px 8px;min-height:34px;border-radius:5px;color:var(--muted)}.work-tabs button.active{background:var(--green-soft);color:var(--green);font-weight:600}.proposal-card{width:100%;text-align:left;border-radius:0;padding:18px 23px;border-bottom:1px solid var(--line);display:block;background:var(--white)}.proposal-card:hover{background:#f7f8f1}.proposal-card h3{font:18px/1.35 var(--serif);margin:7px 0 9px}.proposal-card .card-top{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:var(--muted)}.proposal-card .card-foot{display:flex;gap:12px;color:var(--muted);font-size:10px}.proposal-card p{font-size:12px;color:var(--muted);margin-bottom:9px}.workspace-foot{display:flex;align-items:center;gap:8px;padding:17px 0;color:var(--muted);font-size:10px}.status-dot{width:6px;height:6px;background:var(--green);border-radius:50%;display:inline-block}.pilot-label{margin-left:auto}.notice{max-width:1100px;margin:15px auto;padding:12px 18px;border:1px solid #c9d8cb;border-radius:8px;background:#eff5ec;color:var(--green);font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.notice.error{background:#fbefea;color:var(--red);border-color:#e9c9bf}.notice.inline{margin:16px 0 0}.auth-panel{max-width:1110px;margin:7vh auto;padding:20px 30px;display:grid;grid-template-columns:1.25fr 1fr;gap:100px;align-items:center}.auth-panel h1{white-space:pre-line;font-size:66px;margin:20px 0 30px;line-height:1.1}.auth-panel>div>p:not(.eyebrow){font-size:17px;color:var(--muted);line-height:1.9}.auth-rule{display:grid;grid-template-columns:25px 1fr;margin-top:30px;column-gap:12px}.auth-rule span{color:var(--gold);font-size:10px}.auth-rule p{font-size:12px;margin-bottom:10px}.signin-card{background:var(--white);padding:34px;border:1px solid var(--line);border-radius:12px;box-shadow:0 15px 45px #21382706}.signin-card h2{font-size:29px;margin-bottom:26px}.signin-card .primary{width:100%;margin-top:10px}.signin-card a{font-size:12px}label{display:block;font-size:12px;font-weight:550;margin:12px 0 7px}input,select,textarea{width:100%;border:1px solid #c9cfc5;background:#fffefa;border-radius:6px;color:var(--ink);padding:10px 12px}textarea{resize:vertical;line-height:1.7}input[type=number]{padding:8px}dialog{border:1px solid var(--line);border-radius:14px;background:var(--white);color:var(--ink);padding:28px;width:min(540px,calc(100vw - 30px));max-height:90vh;box-shadow:0 24px 90px #1b2e2b40}dialog::backdrop{background:#24362c65;backdrop-filter:blur(3px)}dialog form .primary{margin-top:12px}.dialog-heading{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;border-bottom:1px solid var(--line);margin:0 0 20px;padding-bottom:16px}.dialog-heading h2{margin:0}.close{font-size:24px;line-height:1;padding:5px 10px;min-width:35px;min-height:35px;color:var(--muted)}.proposal-dialog{width:min(790px,calc(100vw - 30px))}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-actions{display:flex;gap:10px;justify-content:flex-end;align-items:center;margin-top:20px}.form-actions .primary{margin:0}.visibility-note{display:flex;gap:10px;padding:12px 14px;background:var(--green-soft);border-radius:6px;margin-top:16px;color:var(--green)}.visibility-note p{font-size:11px;line-height:1.7;margin:0}.proposal-summary{border-bottom:1px solid var(--line);padding:0 0 20px;margin-bottom:18px}.proposal-summary .body{white-space:pre-wrap;overflow-wrap:anywhere;font:18px/1.75 var(--serif)}.detail-operations{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0}.discussion-item{padding:14px 0;border-bottom:1px solid var(--line)}.discussion-item p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;margin:7px 0}.discussion-item small{font-size:10px;color:var(--muted)}.discussion-section{margin-top:24px;padding-top:15px;border-top:1px solid var(--line)}.discussion-section h3{margin-bottom:14px}details{font-size:12px;margin:12px 0}summary{cursor:pointer;color:var(--green);padding:7px 0}pre{font-size:11px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;background:#f0f2ec;padding:14px;border-radius:6px;max-height:340px;overflow:auto}.journal-event{padding:15px 22px;border-bottom:1px solid var(--line)}.journal-event h3{font-size:12px;line-height:1.5;margin-bottom:5px}.journal-event small{font-size:10px;color:var(--muted)}.journal-event p{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}.load-more{display:block;margin:15px auto}.proof-head{padding:23px 27px 15px}.proof-head h2{margin:5px 0 12px}.proof-head p{margin:0}.media-placeholder{margin:0 25px 22px;min-height:280px;border:1px dashed #c6cdbc;border-radius:8px;display:grid;place-items:center;text-align:center;padding:35px;background:repeating-linear-gradient(45deg,#f4f5ed,#f4f5ed 14px,#f7f8f1 14px,#f7f8f1 28px)}.media-placeholder p{max-width:350px;font-size:12px;color:var(--muted)}.media-placeholder .media-glyph{font:54px var(--serif);color:#a5b097}.media-tools{padding:9px 20px;display:flex;flex-wrap:wrap;gap:5px;align-items:center;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#f7f8f2}.media-tools button{font-size:11px;padding:7px 10px;min-height:36px;border:1px solid transparent}.media-tools button.active{border-color:#89a38b;background:var(--green-soft)}.image-viewport{max-height:610px;overflow:auto;background:#ebeae2;padding:20px;position:relative}.image-surface{position:relative;margin:auto;width:100%;line-height:0;user-select:none}.image-surface img{width:100%;height:auto;display:block;pointer-events:none}.image-surface.drawing{cursor:crosshair;touch-action:none}.region-overlay{position:absolute;border:2px solid #1769be;background:#48a9ef24;box-shadow:0 0 0 1px #fff9;pointer-events:none}.region-label{position:absolute;background:#17588e;color:white;font:10px var(--sans);padding:3px 5px;left:-2px;top:-22px;white-space:nowrap}.region-controls{padding:16px 24px;border-bottom:1px solid var(--line)}.region-inputs{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.region-inputs label{font-size:10px;margin:4px 0}.region-controls .form-actions{justify-content:flex-start;margin-top:10px}.region-controls .help{margin:10px 0 0}.source-footer{padding:12px 25px 22px}.source-footer details{margin-bottom:0}.model-container{height:420px;background:#eeeae0}model-viewer{width:100%;height:100%;--poster-color:#eeeae0}.compare-grid{display:grid;grid-template-columns:1fr 1fr;gap:0}.compare-column{padding:25px 24px;min-width:0}.compare-column+div{border-left:1px solid var(--line)}.compare-column h3{font:20px var(--serif);margin-top:18px}.compare-column .passage-text{font-size:17px}.compare-column img{width:100%;height:auto}.team-member{display:flex;justify-content:space-between;gap:15px;padding:13px 0;border-bottom:1px solid var(--line)}.team-member small{display:block;color:var(--muted)}.anchor-chip{font-size:11px;margin-top:10px;padding:10px;border:1px solid #bad1d9;background:#edf5f7;border-radius:6px}.record-list{padding-left:18px;font-size:12px}.record-list li{margin-bottom:9px}.account-label button{font-size:12px;padding:5px}.loading{color:var(--muted);padding:35px;text-align:center}.copy-row{display:flex;gap:10px;align-items:center}.copy-row button{white-space:nowrap}.code-display{width:100%;min-height:130px;font-size:12px}.compare-toolbar{padding:15px 24px;background:#fafaf4;border-bottom:1px solid var(--line)}.compare-toolbar p{margin:0}
.accepted-comparison{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin:25px 0}.accepted-comparison>section{min-width:0;border-top:2px solid var(--line);padding-top:17px}.accepted-comparison>section+section{border-color:var(--green)}.accepted-comparison h3{font-size:12px;color:var(--muted)}.accepted-comparison .passage-text{font-size:19px;margin:15px 0}.resource-bar #resource-new{font-size:11px;white-space:nowrap;min-height:32px;padding:5px 8px}
@media(max-width:600px){.accepted-comparison{grid-template-columns:1fr}}
@media(min-width:1450px){.workspace-grid{grid-template-columns:minmax(0,1fr) 390px}.reading{padding:45px 58px}}
@media(max-width:1050px){.workspace-grid{grid-template-columns:minmax(0,1fr) 310px;gap:15px}.reading{padding:25px}.reading-header h2{font-size:28px}.project-heading h1{font-size:39px}.auth-panel{gap:45px}.auth-panel h1{font-size:52px}.back-link{display:none}.project-control .eyebrow{display:none}}
@media(max-width:820px){.workspace-grid{grid-template-columns:1fr}.work-panel{margin-top:5px}.masthead{height:73px;padding:0 20px}.masthead-end{gap:8px}.account-label{max-width:100px}.wordmark{font-size:25px}.wordmark small{font-size:6px}.brand-glyph{width:34px;height:39px}.project-strip{gap:7px}.project-control{min-width:0}.project-control select{max-width:100%;font-size:12px}.project-strip button{font-size:11px;padding:7px 9px}.project-heading{padding:27px 0 22px;align-items:flex-start;gap:15px}.membership-summary{min-width:110px;max-width:135px}.membership-summary small{font-size:10px}.project-heading h1{font-size:34px;letter-spacing:-.7px}.lede{font-size:12px}.reader-tabs button{min-width:0;padding:10px 13px;font-size:12px}.workspace-toolbar>.primary{font-size:11px;padding:9px 11px}.workspace-foot{flex-wrap:wrap}.pilot-label{margin-left:0;width:100%}.work-tabs button{font-size:12px}.work-panel .work-heading{padding:22px 24px 12px}.auth-panel{max-width:670px;grid-template-columns:1fr;gap:25px;margin:25px auto}.auth-panel h1{font-size:44px}.auth-panel>div>p:not(.eyebrow){font-size:14px}.auth-rule{display:none}.signin-card{padding:27px}.image-viewport{max-height:480px}.resource-bar{padding:12px 18px}.resource-bar select{font-size:11px}.passage-text{font-size:21px}.proof-head{padding:23px}.form-grid{grid-template-columns:1fr;gap:0}}
@media(max-width:480px){main{padding:0 15px 25px}.masthead{padding:0 15px}.masthead-end{gap:6px}.account-label{display:none}.language button{padding:5px 6px}.masthead #signout{font-size:11px}.project-heading{display:block}.membership-summary{text-align:left;max-width:100%;display:flex;gap:8px;align-items:baseline;margin-top:17px;flex-wrap:wrap}.membership-summary small{max-width:none}.project-strip #refresh{font-size:0;padding:8px}.project-strip #refresh::after{content:'↻';font-size:18px}.project-strip #team-open{max-width:73px}.workspace-toolbar{gap:5px}.reader-tabs button{padding:9px 10px}.workspace-toolbar>.primary{max-width:123px;line-height:1.3}.reading{padding:24px 21px}.reading-header{display:block}.reading-header h2{font-size:29px}.source-meta{grid-template-columns:85px 1fr;gap:8px}.compare-grid{grid-template-columns:1fr}.compare-column+div{border-left:0;border-top:1px solid var(--line)}dialog{padding:22px 18px}.form-actions{flex-wrap:wrap}.form-actions button{flex:1}.region-inputs{gap:6px}.region-inputs input{padding:6px;font-size:11px}.media-placeholder{margin-left:18px;margin-right:18px}.resource-bar{display:block}.resource-bar label{margin:0 0 3px}.resource-bar select{max-width:100%}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* Bounded source intake and explicit reconciliation. */
.evidence-choice{display:flex;align-items:flex-start;gap:.65rem;margin:.55rem 0}.evidence-choice input{width:auto;margin-top:.3rem}.evidence-choice small{color:var(--muted)}
#proposal-evidence{max-height:13rem;overflow:auto}#reconcile-panel{margin:1rem 0;overflow-wrap:anywhere}#reconcile-panel .passage-text{max-height:16rem;overflow:auto}#media-progress{width:100%}.resource-bar{flex-wrap:wrap}fieldset{border:1px solid #d9d9cd;border-radius:8px;margin:1rem 0;padding:1rem}

.prep-dialog{width:min(1060px,calc(100vw - 24px))}.prep-history{margin:24px 0}.prep-job{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border-bottom:1px solid var(--line);border-radius:0}.prep-job strong{flex:1}.prep-job small{font-size:10px;color:var(--muted)}.prep-detail-head{display:flex;align-items:center;justify-content:space-between;margin-top:24px}.prep-detail-head h3{margin:0}.prep-stages{list-style:none;display:flex;flex-wrap:wrap;gap:8px;padding:0;margin:20px 0;color:var(--green);font-size:12px}.prep-stages li{border:1px solid var(--line);border-radius:20px;padding:7px 12px}.prep-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;margin-top:24px}.prep-pair section{min-width:0}.prep-image-stage{background:#ece9e1;max-height:440px;overflow:auto;padding:8px}.prep-image-stage img{display:block;width:100%;height:auto}.prep-pair canvas{max-width:100%;height:auto;background:#ece9e1;border:1px solid var(--line)}#prep-comparison .anchor-chip{overflow-wrap:anywhere}#prep-create-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}#prep-create-form label{grid-column:1/-1}#prep-create-form button{margin:0}.prep-job small{overflow-wrap:anywhere}#preparation-open{margin:12px 0 0}
@media(max-width:640px){.prep-pair{grid-template-columns:minmax(0,1fr)}.prep-job{flex-wrap:wrap}.prep-job small{width:100%}#prep-create-form{grid-template-columns:minmax(0,1fr)}.prep-dialog{padding:20px}.prep-stages{font-size:10px}.prep-stages li{padding:5px 8px}}

.prep-crop-stage{overflow:auto;max-height:420px;border:1px solid var(--line);background:#ece9e1}.prep-pair .prep-crop-stage canvas{max-width:none;display:block;image-rendering:pixelated;border:0}#prep-detail-zoom{max-width:120px}.prep-scale-note{min-height:3.3em}

/* Account administration is separate from project editorship. */
.administrator-link{font-size:12px;white-space:nowrap}.account-authority{font-size:12px;line-height:1.6;color:var(--muted);border-bottom:1px solid var(--line);padding:12px 0;margin:0}
@media(max-width:480px){.administrator-link{font-size:10px}.account-authority{font-size:11px}}

.preservation-bar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid var(--line)}.preservation-bar p{flex:1;min-width:230px;margin:0}.preservation-bar button{font-size:12px}.draft-actions{display:flex;flex-wrap:wrap;gap:8px}.draft-actions button{font-size:12px}.draft-row{padding:18px 0;border-bottom:1px solid var(--line)}.draft-row strong{font-size:13px}.draft-excerpt{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.portability-dialog{width:min(800px,calc(100vw - 28px))}.portability-dialog section{padding:10px 0}.portability-dialog hr{border:0;border-top:1px solid var(--line);margin:25px 0}.portability-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere}.portability-dialog input[type=file]{margin-bottom:15px}#draft-dialog{width:min(780px,calc(100vw - 28px))}#draft-list{margin-top:20px}#import-confirm{margin-top:18px}#import-history article{padding:15px 0;border-bottom:1px solid var(--line)}
/* Long checksums and imported filenames must wrap inside narrow dialogs. */
.portability-dialog,#draft-dialog{overflow-wrap:anywhere}.portability-dialog select,.portability-dialog input,#draft-dialog input{min-width:0;max-width:100%}

/* Stage A: scoped recovery and source workflow; heavy evidence stays opt-in. */
#workflow-dialog{width:min(820px,calc(100vw - 24px));max-height:92vh;overflow:auto}
#workflow-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.82rem;max-height:22rem;overflow:auto}
#workflow-dialog .wf-text{font-family:inherit;font-size:1rem;line-height:1.8}
#workflow-dialog section{margin-block:1.5rem}#workflow-dialog select[multiple]{min-height:6rem}
.workflow-source-actions{display:flex;gap:.6rem;flex-wrap:wrap;margin:1rem 0}
.scriba-form-save-status{padding:.65rem;border-left:3px solid var(--accent,#8b5941);background:rgba(139,89,65,.05);overflow-wrap:anywhere}
.scriba-form-save-status.error{border-left-color:#b33}

/* Keep edition actions reachable on narrow screens. */
@media(max-width:480px){.workspace-toolbar{flex-wrap:wrap}.workspace-toolbar .reader-tabs{flex:1 0 100%;min-width:0}}
