:root { --ink:#20231f; --muted:#74786f; --line:#e6e7df; --paper:#fbfbf7; --white:#fff; --green:#315c4b; --green-soft:#e8f0e9; --amber:#9a651e; --amber-soft:#f8eedc; --blue:#47647e; --blue-soft:#eaf0f5; --red:#9b4f49; --red-soft:#f7e9e7; --shadow:0 18px 50px rgba(31,38,31,.12); }
* { box-sizing:border-box; }
body { margin:0; color:var(--ink); background:var(--paper); font-family:"DM Sans",sans-serif; font-size:14px; }
button,input,select,textarea { font:inherit; color:inherit; }
button { cursor:pointer; }
.app-shell { display:grid; grid-template-columns:236px 1fr; min-height:100vh; }
.sidebar { position:sticky; top:0; height:100vh; padding:30px 18px 22px; border-right:1px solid var(--line); background:#f5f5ef; display:flex; flex-direction:column; }
.brand { display:flex; align-items:center; gap:10px; padding:0 10px 36px; color:var(--ink); text-decoration:none; font-family:"Newsreader",serif; font-size:25px; font-weight:600; }
.brand-mark { display:grid; place-items:center; width:31px; height:31px; border-radius:8px 8px 8px 2px; color:#fff; background:var(--green); font-size:18px; }
.nav-label { padding:0 11px; margin:13px 0 7px; color:#999c93; font-size:10px; font-weight:600; letter-spacing:.13em; text-transform:uppercase; }
.nav-item { width:100%; display:flex; align-items:center; gap:10px; border:0; border-radius:8px; padding:9px 11px; background:transparent; text-align:left; color:#62665f; }
.nav-item:hover,.nav-item.active { color:var(--ink); background:#e9eae3; }
.nav-icon { width:16px; text-align:center; font-size:16px; }
.status-dot { width:8px; height:8px; border-radius:50%; margin:0 4px; }
.nav-count { margin-left:auto; font-size:12px; color:#969a91; }
.sidebar-note { margin-top:auto; padding:16px; border:1px solid #dedfd6; border-radius:10px; background:rgba(255,255,255,.45); }
.sidebar-note p { margin:0 0 5px; font-family:"Newsreader",serif; font-size:16px; }
.sidebar-note span { color:var(--muted); font-size:11px; line-height:1.5; }
main { min-width:0; }
.topbar { height:76px; padding:0 46px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); background:rgba(251,251,247,.9); }
.search-wrap { width:min(420px,45vw); display:flex; gap:9px; align-items:center; color:var(--muted); }
.search-wrap input { width:100%; border:0; outline:0; background:transparent; }
kbd { border:1px solid var(--line); border-radius:4px; padding:2px 7px; background:#fff; color:#999; font-size:11px; }
.button { border:1px solid var(--line); border-radius:7px; padding:9px 14px; background:#fff; font-weight:500; }
.button.primary { color:#fff; background:var(--green); border-color:var(--green); box-shadow:0 3px 10px rgba(49,92,75,.15); }
.button.ghost { background:transparent; }
.button.danger { color:var(--red); background:var(--red-soft); border-color:transparent; }
.top-actions { display:flex; gap:8px; }
.mobile-menu { display:none; border:0; background:transparent; font-size:20px; }
.content { max-width:1280px; margin:0 auto; padding:48px 46px 70px; }
.page-heading { display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:30px; }
h1,h2 { margin:0; font-family:"Newsreader",serif; font-weight:600; }
h1 { font-size:38px; letter-spacing:-.02em; }
.subtitle { margin:7px 0 0; color:var(--muted); }
.sort-label { display:flex; align-items:center; gap:9px; color:var(--muted); font-size:12px; }
select { border:1px solid var(--line); border-radius:7px; padding:8px 30px 8px 10px; background:#fff; }
.stats { display:grid; grid-template-columns:repeat(5,1fr); gap:12px; margin-bottom:32px; }
.stat { padding:17px 18px; border:1px solid var(--line); border-radius:10px; background:rgba(255,255,255,.65); }
.stat-label { color:var(--muted); font-size:11px; }
.stat-value { display:flex; align-items:baseline; gap:7px; margin-top:8px; font-family:"Newsreader",serif; font-size:26px; }
.stat-detail { color:#999c94; font-family:"DM Sans",sans-serif; font-size:10px; }
.table-toolbar { min-height:45px; display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid var(--line); }
.segmented { display:flex; gap:22px; overflow:auto; }
.filter { padding:0 0 12px; border:0; border-bottom:2px solid transparent; background:transparent; color:var(--muted); white-space:nowrap; font-size:12px; }
.filter.active { border-color:var(--green); color:var(--ink); font-weight:600; }
.result-count { color:#999c94; font-size:11px; }
.paper-list-head,.paper-row { display:grid; grid-template-columns:minmax(260px,2.25fr) minmax(135px,.9fr) minmax(105px,.68fr) minmax(145px,1fr) 105px 100px 28px; gap:16px; align-items:center; }
.paper-list-head { padding:12px 8px 9px; border-bottom:1px solid var(--line); color:#8d928a; font-size:9px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.paper-list-head button { display:flex; align-items:center; gap:5px; border:0; padding:0; background:transparent; color:inherit; font:inherit; letter-spacing:inherit; text-transform:inherit; cursor:pointer; }
.paper-list-head button:hover,.paper-list-head button.active { color:var(--green); }
.paper-list-head button:focus-visible { outline:2px solid #b8cbbb; outline-offset:3px; }
.sort-arrow::before { content:"↕"; opacity:.45; font-size:10px; }
.paper-list-head button.active[data-direction="asc"] .sort-arrow::before { content:"↑"; opacity:1; }
.paper-list-head button.active[data-direction="desc"] .sort-arrow::before { content:"↓"; opacity:1; }
.paper-row { padding:21px 8px; border-bottom:1px solid var(--line); cursor:pointer; transition:.15s; }
.paper-row:hover { background:#fff; padding-left:14px; padding-right:14px; }
.paper-title { margin:0 0 7px; font-family:"Newsreader",serif; font-size:18px; line-height:1.2; }
.paper-authors,.paper-meta { margin:0; color:var(--muted); font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.venue-cell .journal-name { margin:0; color:var(--muted); font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.stage-cell { min-width:0; color:var(--muted); font-size:10px; line-height:1.35; }
.stage-cell strong { display:block; margin-bottom:3px; color:var(--green); font-size:8px; letter-spacing:.07em; text-transform:uppercase; }
.status-pill { display:inline-flex; align-items:center; gap:7px; width:max-content; padding:5px 9px; border-radius:99px; font-size:10px; font-weight:600; }
.status-pill .status-dot { margin:0; width:6px; height:6px; }
.updated-date{color:var(--muted);font-size:10px}.updated-date time{white-space:nowrap}
.deadline { color:var(--muted); font-size:11px; }
.deadline.overdue { color:var(--red); font-weight:600; }
.row-arrow { color:#acafa7; font-size:18px; }
.empty-state { padding:80px 20px; text-align:center; }
.empty-state .empty-icon { font-size:26px; color:var(--green); }
.empty-state h2 { margin:14px 0 8px; font-size:24px; }.empty-state p { color:var(--muted); margin:0 0 20px; }
dialog { width:min(680px,calc(100% - 32px)); max-height:calc(100vh - 32px); border:0; border-radius:14px; padding:0; background:#fff; box-shadow:var(--shadow); overflow:auto; }
dialog::backdrop { background:rgba(29,33,29,.45); backdrop-filter:blur(2px); }
#paperForm { padding:28px; }
.dialog-head { display:flex; justify-content:space-between; margin-bottom:25px; }.dialog-head h2 { font-size:28px; }
.icon-button { border:0; background:transparent; font-size:27px; color:var(--muted); }
#paperForm label { position:relative; display:flex; flex-direction:column; gap:7px; margin-bottom:17px; color:#5f645d; font-size:11px; font-weight:600; }
#paperForm input,#paperForm select,#paperForm textarea { width:100%; padding:10px 11px; border:1px solid #dddeda; border-radius:7px; outline:0; background:#fdfdfb; font-size:13px; font-weight:400; }
#paperForm input:focus,#paperForm select:focus,#paperForm textarea:focus { border-color:#789283; box-shadow:0 0 0 3px #edf2ee; }
.doi-import-panel { margin:0 0 17px; padding:14px; border:1px solid var(--line,#dddeda); background:var(--surface-soft,#f7f5ee); }
.doi-import-panel > label { margin-bottom:10px !important; }
.doi-import-panel .button { width:max-content; }
.doi-import-status { display:block; margin:9px 0 0; }
.doi-import-status[data-state="success"] { color:#315c4b; }
.doi-import-status[data-state="error"] { color:#8a3f39; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:15px; }.input-suffix { position:absolute; right:11px; bottom:11px; font-weight:400; }
.dialog-actions { display:flex; align-items:center; gap:8px; margin-top:26px; padding-top:20px; border-top:1px solid var(--line); }.spacer { flex:1; }
.form-section { margin:24px 0 12px; padding-bottom:7px; border-bottom:1px solid var(--line); color:#92968e; font-size:10px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; }
.form-section:first-of-type { margin-top:0; }
.field-help { color:#969a92; font-size:10px; font-weight:400; }
.paper-detail-dialog{width:min(980px,calc(100% - 32px))}.paper-detail-shell{padding:30px}.detail-head-actions{display:flex;align-items:center;gap:8px}.journey-card{padding:20px;border:1px solid var(--line);border-radius:12px;background:linear-gradient(135deg,#f7faf7,#fff)}.journey-heading,.attempt-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}.journey-heading h3,.attempt-heading h3{margin:0;font-family:"Newsreader",serif;font-size:21px}.journey-heading>span,.attempt-heading>span{color:var(--muted);font-size:10px}.submission-path{display:flex;align-items:stretch;gap:0;margin-top:22px;padding:4px 2px 8px;overflow-x:auto}.path-node{position:relative;display:flex;flex:0 0 180px;flex-direction:column;gap:5px;padding:14px 28px 14px 15px;border:1px solid var(--line);border-radius:9px;background:#fff}.path-node:not(:last-child){margin-right:36px}.path-node:not(:last-child):after{content:"→";position:absolute;right:-29px;top:50%;transform:translateY(-50%);color:#a9aea7;font-size:19px}.path-node strong{font-family:"Newsreader",serif;font-size:15px;line-height:1.2}.path-node span{color:var(--muted);font-size:9px}.path-node .path-outcome{display:inline-flex;width:max-content;margin-top:auto;padding:4px 7px;border-radius:99px;background:var(--blue-soft);color:var(--blue);font-weight:600}.path-node.rejected .path-outcome{background:var(--red-soft);color:var(--red)}.path-node.accepted .path-outcome,.path-node.published .path-outcome{background:var(--green-soft);color:var(--green)}.attempt-section{margin-top:25px}.attempt-list{margin-top:13px;border-top:1px solid var(--line)}.attempt-row{border-bottom:1px solid var(--line)}.attempt-row summary{display:grid;grid-template-columns:28px minmax(220px,1.7fr) minmax(150px,1fr) 110px 22px;gap:12px;align-items:center;padding:17px 8px;list-style:none;cursor:pointer}.attempt-row summary::-webkit-details-marker{display:none}.attempt-number{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#edf1ec;color:var(--green);font-size:10px;font-weight:600}.attempt-venue strong{display:block;font-family:"Newsreader",serif;font-size:16px}.attempt-venue span,.attempt-id,.attempt-date{color:var(--muted);font-size:10px}.attempt-chevron{color:var(--muted);font-size:17px;transition:.15s}.attempt-row[open] .attempt-chevron{transform:rotate(90deg)}.attempt-events{position:relative;margin:0 8px 18px 48px;padding:3px 0 3px 23px;border-left:1px solid #cbd6cd}.event-item{position:relative;display:grid;grid-template-columns:105px 1fr auto;gap:15px;padding:10px 0}.event-item:before{content:"";position:absolute;left:-28px;top:15px;width:8px;height:8px;border:2px solid #fff;border-radius:50%;background:var(--green);box-shadow:0 0 0 1px #9cb0a1}.event-date{color:var(--muted);font-size:10px}.event-copy strong{display:block;font-size:12px}.event-copy span{display:block;margin-top:3px;color:var(--muted);font-size:10px;line-height:1.45}.evidence-tag{align-self:start;padding:4px 7px;border-radius:5px;background:#f0f1ed;color:var(--muted);font-size:9px}.empty-events{padding:14px 0;color:var(--muted);font-size:11px}.next-action-card{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:24px;padding:16px 18px;border-radius:10px;background:#233a31;color:#fff}.next-action-card .action-title{margin:0 0 4px;color:#c8d7cf;font-size:12px;font-weight:600}.next-action-card strong{font-size:13px}.next-action-card>span{color:#c8d7cf;font-size:10px;white-space:nowrap}
.detail-authors{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin-top:8px;color:var(--muted);font-size:11px}.author-link{border:0;border-bottom:1px solid #aebfb3;padding:1px 0;background:transparent;color:var(--green);font-weight:500}.author-link:hover{border-color:var(--green)}.author-link:focus-visible,.author-context:focus-visible{outline:3px solid #b8cbbb;outline-offset:2px}.author-self small{color:#9a9e97}.author-separator{color:#b4b7b1}.author-context{margin-top:10px;border:1px solid #cbd8ce;border-radius:99px;padding:6px 10px;background:var(--green-soft);color:var(--green);font-size:10px;font-weight:600}.author-position{display:inline-grid;place-items:center;width:16px;height:16px;margin-right:4px;border:1px solid #c4c8bd;background:#fffef9;color:#687068;font-size:9px;font-weight:700;line-height:1;vertical-align:1px}.author-order-source{margin-left:4px;padding:2px 6px;border:1px solid #c9c5b7;color:#687068;font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.evidence-tag.evidence-link{border:0;font:inherit;font-size:9px;cursor:pointer;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:2px}.evidence-link:hover,.evidence-link:focus-visible{color:var(--green);text-decoration-color:currentColor}.evidence-dialog{width:min(620px,calc(100% - 32px))}.evidence-shell{padding:28px}.evidence-details{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.evidence-details div{padding:12px;border:1px solid var(--line);border-radius:8px}.evidence-details dt{color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:.08em}.evidence-details dd{margin:5px 0 0;font-size:11px;overflow-wrap:anywhere}.evidence-summary{padding:14px;border-radius:8px;background:var(--green-soft);font-size:11px;line-height:1.55}
.import-steps { display:flex; gap:8px; margin:-5px 0 22px; color:#a0a39d; font-size:11px; }.import-steps span{padding:5px 9px;border-radius:20px;background:#f4f4f0}.import-steps .active{color:var(--green);background:var(--green-soft)}
.drop-zone { min-height:120px; align-items:center; justify-content:center; border:1px dashed #bdc6bf; border-radius:10px; background:#f8faf7!important; text-align:center; cursor:pointer; }.drop-zone strong{color:var(--ink);font-size:13px}.drop-zone span{font-weight:400}.drop-zone input{display:none}.file-preview{margin:-8px 0 18px;padding:10px 12px;border-radius:7px;background:var(--green-soft);color:var(--green);font-size:11px}.or-divider{display:flex;align-items:center;gap:12px;margin:17px 0;color:#a0a39d;font-size:10px}.or-divider:before,.or-divider:after{content:"";height:1px;background:var(--line);flex:1}.privacy-note{margin:0;color:#969a92;font-size:10px;line-height:1.5}
.review-dialog{width:min(1120px,calc(100% - 32px))}.review-shell{padding:28px}.review-summary{display:flex;align-items:center;gap:10px;margin:-8px 0 18px;color:var(--muted);font-size:11px}.review-summary span:last-child{margin-left:auto}.confidence-badge{padding:5px 9px;border-radius:99px;background:var(--green-soft);color:var(--green);font-weight:600}.confidence-badge.low{background:var(--red-soft);color:var(--red)}.confidence-badge.medium{background:var(--amber-soft);color:var(--amber)}.review-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:18px;min-height:500px}.source-panel,.proposal-panel{min-width:0;border:1px solid var(--line);border-radius:10px;background:#fdfdfb;overflow:hidden}.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;padding:15px 17px;border-bottom:1px solid var(--line);background:#f7f7f2}.panel-heading h3{margin:0;font-family:"Newsreader",serif;font-size:19px}.panel-heading>span{color:var(--muted);font-size:10px}.source-panel pre{height:calc(100% - 73px);max-height:620px;margin:0;padding:18px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font:11px/1.65 ui-monospace,SFMono-Regular,Menlo,monospace;color:#4f544e;background:#fff}.proposal-panel{padding-bottom:14px}.proposal-panel>.panel-heading{margin-bottom:15px}.proposal-panel label{display:flex;flex-direction:column;gap:6px;margin:0 16px 13px;color:#5f645d;font-size:11px;font-weight:600}.proposal-panel .form-row{margin:0 16px}.proposal-panel .form-row label{margin:0 0 13px}.proposal-panel input,.proposal-panel select,.proposal-panel textarea{width:100%;padding:9px 10px;border:1px solid #dddeda;border-radius:7px;background:#fff;font-size:12px;font-weight:400}.existing-comparison{margin:3px 16px 0;padding:11px 12px;border-radius:8px;background:var(--blue-soft);color:var(--blue);font-size:10px;line-height:1.5}
.review-inbox-notice{width:100%;display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:12px;margin:0 0 22px;padding:14px 16px;border:1px solid #b4974d;border-left:4px solid var(--green);background:var(--paper);color:var(--ink);text-align:left;cursor:pointer}.review-inbox-notice strong,.review-inbox-notice small{display:block}.review-inbox-notice small{margin-top:2px;color:var(--muted)}.review-inbox-icon{display:grid;place-items:center;width:36px;height:36px;background:var(--green);color:#fff;border-radius:50%}.review-inbox-count{display:grid;place-items:center;min-width:28px;height:28px;padding:0 7px;background:#b4974d;color:#182b20;font-weight:700;border-radius:50%}.review-status-picker{margin:0 16px 15px;padding:0;border:0}.review-status-picker legend{margin-bottom:8px;color:#5f645d;font-size:11px;font-weight:700}.review-status-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.review-status-choices button{min-height:44px;padding:8px;border:1px solid var(--line);background:var(--paper);color:var(--ink);font:600 11px/1.2 inherit;cursor:pointer}.review-status-choices button.selected{border-color:var(--green);background:var(--green);color:#fff}.review-status-picker>.field-help{display:block;margin-top:7px}.author-suggestions{margin:0 16px 15px;padding:12px;border:1px solid var(--line);background:var(--paper)}.author-suggestions>div:first-child strong,.author-suggestions>div:first-child small{display:block}.author-suggestions>div:first-child small{margin-top:3px;color:var(--muted)}.author-suggestion-list{display:flex;gap:7px;overflow-x:auto;padding:10px 1px}.author-suggestion-list button{flex:0 0 auto;min-height:44px;padding:7px 10px;border:1px solid var(--line);background:var(--white);color:var(--ink);text-align:left;cursor:pointer}.author-suggestion-list button strong,.author-suggestion-list button small{display:block}.author-suggestion-list button small{color:var(--muted)}.author-add-row{display:grid;grid-template-columns:1fr auto;gap:7px}.author-add-row input{margin:0}
.reconstruction-inbox-notice{margin-top:-12px}.reconstruction-toolbar{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:16px}.reconstruction-toolbar label{display:flex;flex-direction:column;gap:5px;color:var(--muted);font-size:11px;font-weight:600}.reconstruction-toolbar select{min-width:190px;padding:9px}.reconstruction-toolbar span{color:var(--muted);font-size:11px}.reconstruction-workspace{min-height:430px}.reconstruction-card{border:1px solid var(--line);border-top:4px solid var(--green);padding:20px;background:var(--paper)}.reconstruction-card h3{margin:4px 0 8px;font-family:"Newsreader",serif;font-size:25px}.reconstruction-meta,.reconstruction-badges{display:flex;flex-wrap:wrap;gap:7px;color:var(--muted);font-size:11px}.reconstruction-badge{padding:4px 7px;border:1px solid var(--line);background:var(--white)}.reconstruction-warning{margin:12px 0;padding:10px;border-left:3px solid var(--amber);background:var(--amber-soft);font-size:11px}.reconstruction-match{display:flex;flex-direction:column;gap:6px;margin:16px 0;color:var(--muted);font-size:11px;font-weight:600}.reconstruction-match select{padding:10px}.reconstruction-attempt{margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}.reconstruction-attempt>h4{margin:0 0 3px;font-family:"Newsreader",serif;font-size:18px}.reconstruction-event{display:grid;grid-template-columns:110px 1fr;gap:14px;margin-top:11px;padding:12px;border-left:3px solid var(--gold);background:var(--white)}.reconstruction-event p{margin:5px 0;color:var(--muted);font-size:11px}.reconstruction-event details{margin-top:8px}.reconstruction-event pre{max-height:260px;overflow:auto;white-space:pre-wrap;padding:10px;background:var(--paper);font:10px/1.5 ui-monospace,monospace}.reconstruction-confirm{display:flex;gap:7px;align-items:flex-start;margin-top:8px;font-size:11px}.reconstruction-empty{padding:44px 20px;border:1px dashed var(--line);text-align:center}.correction-original{margin-bottom:18px;padding:13px;border-left:3px solid var(--gold);background:var(--paper);font-size:11px}.correction-original strong,.correction-original span{display:block}.event-controls{display:flex;align-items:flex-start;gap:6px}.event-control{min-height:30px;padding:4px 7px;border:1px solid var(--line);background:var(--white);color:var(--green);font:600 9px/1 inherit;cursor:pointer}.event-item.corrected-event{background:var(--amber-soft);margin-left:-12px;padding-left:12px}.event-item.correction-reversed{opacity:.72}.checkbox-row{display:flex!important;flex-direction:row!important;align-items:flex-start;gap:9px!important}.checkbox-row input{width:auto!important;min-height:auto!important;margin-top:3px}
.wide-dialog{width:min(920px,calc(100% - 32px))}.target-shell{padding:28px}.target-filters{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px;margin-bottom:18px}.target-filters label,.target-form label{display:flex;flex-direction:column;gap:6px;color:#5f645d;font-size:11px;font-weight:600}.target-filters select,.target-form input,.target-form select,.target-form textarea{width:100%;padding:9px 10px;border:1px solid #dddeda;border-radius:7px;background:#fdfdfb;font-size:12px;font-weight:400}.target-list{display:grid;grid-template-columns:1fr 1fr;gap:9px;max-height:240px;overflow:auto}.target-card{display:flex;flex-direction:column;gap:5px;padding:13px;border:1px solid var(--line);border-radius:8px;background:#fff;text-align:left}.target-card:hover{border-color:#9aac9f}.target-card span{color:var(--muted);font-size:10px}.target-card .metric-line{color:var(--green)}.target-empty{grid-column:1/-1;padding:24px;border:1px dashed var(--line);border-radius:8px;color:var(--muted);text-align:center;font-size:11px}.target-form{margin-top:20px}.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.source-row{display:flex;align-items:center;gap:12px;margin-top:14px;color:var(--muted);font-size:10px}.compact-drop{display:inline-flex!important;flex-direction:row!important;margin:0!important;padding:8px 11px;border:1px dashed #bdc6bf;border-radius:7px;background:#f8faf7;cursor:pointer}.compact-drop input{display:none}.target-form .privacy-note{margin-top:12px}
.toast { position:fixed; right:22px; bottom:22px; transform:translateY(20px); opacity:0; padding:11px 15px; border-radius:8px; color:#fff; background:#252a25; box-shadow:var(--shadow); transition:.2s; pointer-events:none; }.toast.show { opacity:1; transform:none; }
@media(max-width:1100px){.paper-list-head,.paper-row{grid-template-columns:minmax(230px,2fr) 135px 110px 145px 95px 22px}.paper-list-head .head-deadline,.paper-row>.deadline{display:none}}
@media(max-width:900px){.app-shell{grid-template-columns:1fr}.sidebar{position:fixed;z-index:10;transform:translateX(-100%);transition:.2s;box-shadow:var(--shadow)}.sidebar.open{transform:none}.mobile-menu{display:block}.topbar{padding:0 22px;gap:15px}.content{padding:35px 22px}.stats{grid-template-columns:repeat(2,1fr)}.paper-list-head,.paper-row{grid-template-columns:minmax(220px,2fr) 135px 115px 95px 22px}.paper-list-head .head-stage,.paper-row>.stage-cell{display:none}.review-grid{grid-template-columns:1fr;min-height:0}.source-panel pre{max-height:260px}}
@media(max-width:600px){.topbar{height:66px}.search-wrap{width:auto;flex:1}.search-wrap kbd{display:none}.button.primary{white-space:nowrap}.page-heading{align-items:flex-start}.heading-actions{display:none}.stats{grid-template-columns:1fr 1fr}.stat{padding:14px}.paper-list-head,.paper-row{grid-template-columns:1fr auto 18px;gap:10px}.paper-list-head .head-venue,.paper-list-head .head-stage,.paper-list-head .head-updated,.paper-list-head .head-deadline,.paper-row>.venue-cell,.paper-row>.stage-cell,.paper-row>.updated-date,.paper-row>.deadline{display:none}.content{padding:28px 16px}.segmented{gap:17px}.form-row,.target-filters,.metric-grid,.target-list{grid-template-columns:1fr}.dialog-actions{flex-wrap:wrap}.paper-detail-shell{padding:20px}.journey-heading,.attempt-heading{align-items:flex-start;flex-direction:column}.attempt-row summary{grid-template-columns:28px 1fr 20px}.attempt-id,.attempt-date{display:none}.attempt-events{margin-left:20px}.event-item{grid-template-columns:80px 1fr}.evidence-tag{display:none}.next-action-card{align-items:flex-start;flex-direction:column}.review-status-choices{grid-template-columns:1fr 1fr}.review-inbox-notice{grid-template-columns:auto 1fr auto;padding:12px}.review-inbox-notice>span:last-child{display:none}}
@media(max-width:600px){.reconstruction-toolbar{align-items:stretch;flex-direction:column}.reconstruction-toolbar select{width:100%}.reconstruction-event{grid-template-columns:1fr}.reconstruction-actions .spacer{display:none}.reconstruction-actions .button{flex:1 1 42%}.event-controls{grid-column:2}.correction-original{margin-top:4px}}
.event-item.superseded-event .event-copy{opacity:.58}.event-item.superseded-event .event-copy strong{text-decoration:line-through;text-decoration-thickness:1px}.event-item.superseded-event:after{content:"Superseded";position:absolute;right:0;top:8px;color:var(--amber);font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}

.button.compact{padding:7px 10px;font-size:11px}.button:active,.icon-button:active,.nav-item:active,.filter:active,.action-item:active{transform:scale(.98)}.button:focus-visible,.icon-button:focus-visible,.nav-item:focus-visible,.filter:focus-visible,.paper-row:focus-visible,.action-item:focus-visible{outline:3px solid #b8cbbb;outline-offset:2px}
.action-board{margin:0 0 30px;padding:18px;border:1px solid var(--line);border-radius:12px;background:#fff}.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:14px}.section-heading h2{font-size:22px}.action-lanes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.action-lane{min-width:0;padding:11px;border-radius:9px;background:#f7f7f2}.action-lane-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px;color:#676c65;font-size:10px;text-transform:uppercase;letter-spacing:.08em}.action-lane-head span{display:grid;place-items:center;min-width:20px;height:20px;border-radius:50%;background:#e8eae4}.action-item{width:100%;min-width:0;display:block;padding:9px 7px;border:0;border-top:1px solid var(--line);background:transparent;text-align:left;transition:.15s}.action-item:hover{background:#fff;border-radius:6px}.action-item span,.action-item small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.action-item span{font-family:"Newsreader",serif;font-size:14px}.action-item small{margin-top:4px;color:var(--muted);font-size:9px}.action-empty{margin:15px 4px 8px;color:#a0a49c;font-size:10px}.toolbar-end{display:flex;align-items:center;gap:10px;flex:0 0 auto}.advanced-filters{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr)) auto;gap:10px;align-items:end;margin:12px 0 4px;padding:13px;border:1px solid var(--line);border-radius:9px;background:#f7f7f2}.advanced-filters[hidden]{display:none}.advanced-filters label{min-width:0;display:flex;flex-direction:column;gap:5px;color:var(--muted);font-size:10px}.advanced-filters select{width:100%;min-width:0}.event-date small{display:block;margin-top:3px;color:#9ca198;font-size:8px}
.stats[hidden],.action-board[hidden]{display:none}
.update-dialog{width:min(760px,calc(100% - 32px))}.update-form{padding:28px}.update-form label{display:flex;flex-direction:column;gap:7px;margin-bottom:15px;color:#5f645d;font-size:11px;font-weight:600}.update-form input,.update-form select,.update-form textarea{width:100%;padding:10px 11px;border:1px solid #dddeda;border-radius:7px;outline:0;background:#fdfdfb;font-size:12px;font-weight:400}.update-form input:focus,.update-form select:focus,.update-form textarea:focus{border-color:#789283;box-shadow:0 0 0 3px #edf2ee}
@media(max-width:1100px){.advanced-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.action-lanes{grid-template-columns:1fr}.advanced-filters{grid-template-columns:1fr 1fr}.action-board{padding:14px}.section-heading{align-items:flex-start}.update-form{padding:20px}}
@media(max-width:480px){.advanced-filters{grid-template-columns:1fr}.toolbar-end .result-count{display:none}.table-toolbar{gap:10px}.dialog-head{gap:12px}.dialog-head h2{font-size:24px}}
@media(max-width:600px){.detail-head-actions #recordFromDetail{display:inline-flex;padding:7px 9px;font-size:10px}}
/* Account, profile, settings, and reporting */
.sidebar-account{margin-top:auto;position:relative;padding-top:10px;border-top:1px solid var(--line)}
.sidebar-legal{display:flex;gap:12px;padding:0 9px 10px}.sidebar-legal a{color:var(--muted);font-size:10px;text-decoration:none}.sidebar-legal a:hover,.sidebar-legal a:focus-visible{color:var(--green);text-decoration:underline;text-underline-offset:3px}
.account-trigger{width:100%;min-height:48px;display:flex;align-items:center;gap:10px;padding:7px 9px;border:0;border-radius:9px;background:transparent;color:inherit;text-align:left;cursor:pointer}.account-trigger:hover,.account-trigger[aria-expanded="true"]{background:#eceee9}
.account-trigger-copy{min-width:0;flex:1;display:flex;flex-direction:column}.account-trigger-copy strong,.account-trigger-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-trigger-copy small{color:var(--muted);font-size:11px;margin-top:2px}
.mini-avatar,.profile-avatar{display:grid;place-items:center;flex:none;border-radius:50%;background:#dce8e1;color:var(--green);font-weight:700;background-position:center;background-size:cover}.mini-avatar{width:34px;height:34px;font-size:12px}.profile-avatar{width:112px;height:112px;font-family:var(--serif);font-size:32px;border:5px solid #eef3ef;box-shadow:0 0 0 1px var(--line)}.has-photo{color:transparent}
.account-chevron{color:var(--muted);font-size:12px}.account-menu{position:absolute;left:0;right:0;bottom:58px;padding:6px;border:1px solid var(--line);border-radius:10px;background:var(--paper);box-shadow:0 16px 38px rgba(25,40,30,.18);z-index:20}.account-menu-heading{display:flex;align-items:center;gap:10px;padding:10px 9px 12px;margin-bottom:4px;border-bottom:1px solid var(--line)}.account-menu-heading>span:last-child{min-width:0;display:flex;flex-direction:column}.account-menu-heading strong,.account-menu-heading small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-menu-heading small{margin-top:2px;color:var(--muted);font-size:10px}.account-menu button{display:flex;width:100%;align-items:center;gap:10px;padding:9px 10px;border:0;border-radius:7px;background:transparent;text-align:left;color:inherit;cursor:pointer}.account-menu button>span{width:18px;color:var(--muted);text-align:center}.account-menu button:hover{background:var(--soft)}.menu-icon{display:grid;flex:0 0 18px;place-items:center}.menu-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.account-menu-separator{height:1px;margin:5px 4px;background:var(--line)}
.profile-shell,.reports-shell{padding:28px}.profile-layout{display:grid;grid-template-columns:165px minmax(0,1fr);gap:30px}.profile-photo-panel{align-self:start;display:flex;align-items:center;flex-direction:column;gap:10px;padding:22px 14px;border:1px solid var(--line);border-radius:14px;background:#f8faf7;text-align:center}.profile-photo-panel small{color:var(--muted);font-size:11px;line-height:1.4}.text-button{border:0;background:none;color:var(--green);cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.legal-page{min-height:100vh;background:var(--paper)}.legal-shell{width:min(760px,calc(100% - 32px));margin:0 auto;padding:56px 0 80px}.legal-brand{width:max-content;padding:0 0 48px}.legal-shell h1{font-size:44px}.legal-shell h2{margin:38px 0 10px;font-size:22px}.legal-shell p{color:var(--muted);font-size:15px;line-height:1.75}.legal-shell .legal-lede{font-size:18px;color:var(--ink)}.legal-footer{display:flex;gap:20px;margin-top:48px;padding-top:20px;border-top:1px solid var(--line)}.legal-footer a{color:var(--green);font-weight:600}.error-shell{padding-top:15vh}.error-shell h1{max-width:620px}.legal-action{display:inline-block;margin-top:18px;text-decoration:none}@media(max-width:600px){.legal-shell{padding:32px 0 56px}.legal-brand{padding-bottom:36px}.legal-shell h1{font-size:36px}.legal-shell .legal-lede{font-size:16px}}
.profile-fields{min-width:0}.profile-dialog label,.account-dialog label{display:flex;flex-direction:column;gap:7px;margin-bottom:15px;color:#5f645d;font-size:11px;font-weight:600}.profile-dialog input,.profile-dialog textarea,.account-dialog input,.account-dialog select{width:100%;padding:10px 11px;border:1px solid #d8dbd5;border-radius:8px;outline:0;background:#fff;color:var(--ink);font:inherit;font-size:12px;font-weight:400}.profile-dialog input:focus,.profile-dialog textarea:focus,.account-dialog input:focus,.account-dialog select:focus{border-color:#789283;box-shadow:0 0 0 3px #edf2ee}.profile-dialog .form-section{margin-top:8px}.orcid-panel{margin:22px 0;padding:18px;border:1px solid #d7e2da;border-radius:14px;background:#f7faf7}.orcid-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px}.orcid-controls label{margin:0}.import-status{margin-top:10px;color:var(--muted);font-size:12px;line-height:1.45}.import-status:empty{display:none}.account-data-actions{display:flex;align-items:center;gap:12px;margin-top:18px}
.profile-optional{margin:10px 0;border:1px solid var(--line);background:var(--white)}.profile-optional>summary{min-height:48px;padding:13px 15px;color:var(--ink);font-size:14px;font-weight:600;cursor:pointer}.profile-optional>summary:focus-visible{outline:2px solid var(--green);outline-offset:2px}.profile-optional-content{padding:8px 15px 15px;border-top:1px solid var(--line)}
.revision-round-status{display:block;margin-bottom:6px;color:var(--muted);font-size:12px;font-weight:600}
.external-publications{margin-top:20px;padding:18px;border:1px solid var(--line);border-radius:14px;background:var(--soft)}.external-publication{display:flex;justify-content:space-between;gap:16px;padding:11px 0;border-top:1px solid var(--line)}.external-publication:first-child{border-top:0}.external-publication span{min-width:0}.external-publication strong,.external-publication small{display:block}.external-publication small{margin-top:3px;color:var(--muted)}.external-publication em{flex:none;color:var(--green);font-size:10px;font-style:normal;text-transform:uppercase;letter-spacing:.04em}
.profile-conflicts{margin-top:12px;padding:10px;border:1px solid #e5c3bd;border-radius:8px;background:#fff4f2;color:#783a34;font-size:11px;line-height:1.45}
.materials-shell{padding:28px}.materials-authors{display:grid;gap:14px;margin-top:18px}.material-author{padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--paper)}.material-author-head{display:flex;justify-content:space-between;gap:12px}.material-author-head small{display:block;color:var(--muted)}.material-options{display:flex;flex-wrap:wrap;gap:14px;margin:14px 0}.material-options label{display:flex;align-items:center;gap:6px;font-size:11px}.material-options input{width:auto}.material-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.material-fields label:first-child{grid-column:1/-1}.material-fields textarea{width:100%;min-height:72px;padding:9px;border:1px solid var(--line);border-radius:8px;font:inherit;font-size:12px}.material-save{display:flex;justify-content:flex-end;margin-top:10px}@media(max-width:700px){.material-fields{grid-template-columns:1fr}.material-fields label:first-child{grid-column:auto}}
.settings-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.settings-group{border:1px solid var(--line);border-radius:14px;padding:4px 16px}.setting-row{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:14px 0;border-top:1px solid var(--line)}.setting-row:first-of-type{border-top:0}.setting-row span{display:flex;flex-direction:column;gap:3px}.setting-row small{color:var(--muted);line-height:1.35}.setting-row input[type="checkbox"]{width:20px;height:20px;accent-color:var(--green)}.setting-row input[type="number"],.setting-row select{width:145px}.setting-row.disabled{opacity:.55}
.report-toolbar{display:flex;align-items:end;gap:12px;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--soft)}.report-toolbar label{min-width:170px}.report-toolbar .button{margin-left:auto}.report-summary{display:grid;grid-template-columns:repeat(7,minmax(100px,1fr));gap:10px;margin:18px 0}.report-metric{padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--paper)}.report-metric span,.report-metric small{display:block;color:var(--muted)}.report-metric span{font-size:11px;text-transform:uppercase;letter-spacing:.05em}.report-metric strong{display:block;margin:6px 0 2px;font-family:var(--serif);font-size:28px}.report-metric small{font-size:10px}
.report-export-actions{display:flex;gap:8px;margin-left:auto}.report-export-actions .button{margin-left:0}
.report-columns{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(420px,1.2fr);gap:22px}.report-columns>section{min-width:0;border:1px solid var(--line);border-radius:14px;padding:16px}.report-list-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0;border-top:1px solid var(--line)}.report-list-row:first-child{border-top:0}.report-list-row span{min-width:0;display:flex;flex-direction:column}.report-list-row strong,.report-list-row small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.report-list-row small,.report-empty{color:var(--muted)}
#sharePaperAuthors .report-list-row,#workInvitationsList .report-list-row{flex-wrap:wrap}
#sharePaperAuthors .report-list-row label{display:inline-flex;align-items:center;gap:8px;flex-basis:100%;font-size:.875rem}
.network-wrap{min-height:250px}.network-wrap svg{display:block;width:100%;max-height:330px}.network-wrap line{stroke:#cad8cf}.network-self{fill:var(--green)}.network-self-label{fill:white;text-anchor:middle;font-weight:700}.network-person{cursor:pointer}.network-person circle{fill:#e9f0eb;stroke:#8da799;stroke-width:1.5}.network-person:hover circle,.network-person:focus circle{fill:#cfe0d5;stroke:var(--green);stroke-width:3}.network-person text{fill:var(--green);font-size:10px;font-weight:700;text-anchor:middle;pointer-events:none}.collaborator-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.collaborator-list button{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px;border:0;border-radius:9px;background:var(--soft);color:inherit;text-align:left;cursor:pointer}.collaborator-list button:hover{background:#e5eee8}.collaborator-list span:first-child{min-width:0;display:flex;flex-direction:column}.collaborator-list strong,.collaborator-list small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.collaborator-list small{color:var(--muted)}
.collaborator-shell{padding:28px}.collaborator-links{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.collaborator-links a{color:var(--green);text-decoration:underline;text-underline-offset:3px}.collaborator-links .privacy-note{margin:0}.collaborator-papers{display:grid;gap:8px}.collaborator-papers button{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:52px;padding:12px;border:1px solid var(--line);background:var(--white);color:var(--ink);text-align:left;cursor:pointer}.collaborator-papers button:hover,.collaborator-papers button:focus-visible{border-color:var(--green)}.collaborator-papers span{min-width:0}.collaborator-papers small{flex:none;color:var(--muted)}
.author-name{display:inline}.author-self-name{font-weight:750;color:var(--ink)}.corresponding-author{color:#2d6d58}.paper-authors .corresponding-author{color:#39745f}.author-link.corresponding-author{color:#2d6d58;text-decoration-color:#8fb6a7}
@media (max-width:1100px){.report-summary{grid-template-columns:repeat(4,1fr)}.report-columns{grid-template-columns:1fr}.settings-list{grid-template-columns:1fr}}
@media (max-width:700px){.profile-layout{grid-template-columns:1fr}.profile-photo-panel{padding-bottom:10px}.orcid-controls{grid-template-columns:1fr}.report-toolbar{align-items:stretch;flex-direction:column}.report-toolbar label,.report-toolbar .button{width:100%;margin-left:0}.report-summary{grid-template-columns:repeat(2,1fr)}.report-columns{display:block}.report-columns>section+section{margin-top:14px}.collaborator-list{grid-template-columns:1fr}.settings-group{padding:4px 12px}.setting-row{align-items:flex-start}.account-data-actions{align-items:flex-start;flex-direction:column}}
@media (max-width:700px){.collaborator-shell{padding:20px}.collaborator-papers button{align-items:flex-start;flex-direction:column;gap:5px}}
@media (max-width:700px){.report-export-actions{width:100%;flex-direction:column;margin-left:0}}
.signed-out-view{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:24px;background:#f3f4ef}.signed-out-view[hidden]{display:none}.signed-out-card{width:min(390px,100%);padding:38px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--shadow);text-align:center}.signed-out-card .brand-mark{margin:0 auto 20px}.signed-out-card h1{margin:5px 0 10px;font-size:32px}.signed-out-card > p{margin:0 0 24px;color:var(--muted)}
.next-action-card small{display:block;margin-top:5px;color:#a9c1b5;font-size:9px}.next-action-controls{display:flex;align-items:center;gap:12px}.next-action-controls>span{color:#c8d7cf;font-size:10px;white-space:nowrap}.action-complete{border-color:#829b8f;background:#fff;color:#183f35}.record-panel{margin-top:24px;padding:18px;border:1px solid var(--line);border-radius:12px;background:#fff}.record-panel[hidden]{display:none}.record-panel-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:15px}.record-panel-heading h3{margin:0;font-family:"Newsreader",serif;font-size:20px}.record-panel-heading>span{color:var(--muted);font-size:10px}.evidence-issue{margin-top:10px;padding:10px 12px;border-left:3px solid #c58b45;border-radius:0 7px 7px 0;background:#fff8ec;color:#644d31;font-size:11px;line-height:1.5}.evidence-issue.conflict{border-left-color:#a75951;background:#fff2f0;color:#713d38}.evidence-issue strong{display:block;margin-bottom:2px}.publication-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0 0}.publication-fields div{padding:10px;border-radius:8px;background:#f7f7f2}.publication-fields dt{color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:.06em}.publication-fields dd{margin:4px 0 0;font-size:12px;overflow-wrap:anywhere}
@media(max-width:600px){.publication-fields{grid-template-columns:1fr 1fr}.next-action-controls{align-items:flex-start;flex-direction:column}}
.simulated-auth-form{display:grid;gap:12px;margin-top:20px;text-align:left}.simulated-auth-form .button{justify-content:center}.simulated-user-create{margin-top:22px;padding-top:18px;border-top:1px solid var(--line);text-align:left}.simulated-user-create summary{cursor:pointer;color:var(--ink);font-weight:600}.simulated-auth-form .checkbox-row{display:flex;align-items:flex-start;gap:9px;font-weight:400;color:var(--muted)}.simulated-auth-form .checkbox-row input{width:auto;margin-top:3px}.auth-error{margin-top:16px!important;color:#8b342e!important;font-size:13px}
.security-settings{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:8px}.security-settings>div{display:flex;align-items:flex-start;flex-direction:column;gap:8px;padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--paper)}.security-settings span{min-height:34px;color:var(--muted);font-size:10px;line-height:1.4}.security-settings .button{margin-top:auto}.security-settings .button:disabled{cursor:not-allowed;opacity:.55}
.profile-choice-group,.profile-visibility{display:flex;flex-wrap:wrap;gap:10px 16px;margin:16px 0;padding:14px;border:1px solid var(--line);border-radius:10px}.profile-choice-group legend{padding:0 5px;color:var(--muted);font-size:11px;font-weight:600}.profile-choice-group label,.profile-visibility label{display:flex;align-items:center;gap:6px;margin:0}.profile-choice-group input,.profile-visibility input{width:auto}.private-profile-materials,.profile-import-panel,.profile-visibility{margin-top:20px;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--soft)}.profile-import-panel .button{display:inline-flex;margin:10px 10px 0 0}
[data-theme="dark"]{--ink:#edf1ec;--muted:#aeb7af;--line:#3b463f;--paper:#171d19;--white:#202823;--green:#86bca4;--green-soft:#263b31;--amber:#e0ad67;--amber-soft:#413523;--blue:#9ebbd3;--blue-soft:#253643;--red:#e19b95;--red-soft:#422c2b;--shadow:0 18px 50px rgba(0,0,0,.4)}
[data-theme="dark"] body,[data-theme="dark"] dialog{background:var(--paper);color:var(--ink)}[data-theme="dark"] .sidebar{background:#141a16}[data-theme="dark"] .topbar{background:rgba(23,29,25,.94)}[data-theme="dark"] .button,[data-theme="dark"] input,[data-theme="dark"] select,[data-theme="dark"] textarea,[data-theme="dark"] kbd,[data-theme="dark"] .path-node,[data-theme="dark"] .record-panel,[data-theme="dark"] .material-author,[data-theme="dark"] .report-metric,[data-theme="dark"] .signed-out-card{background:var(--white);color:var(--ink);border-color:var(--line)}[data-theme="dark"] .button.primary{background:#4f8b72;color:#fff}[data-theme="dark"] .nav-item:hover,[data-theme="dark"] .nav-item.active,[data-theme="dark"] .account-trigger:hover,[data-theme="dark"] .account-trigger[aria-expanded="true"]{background:#263029}[data-theme="dark"] .stat,[data-theme="dark"] .journey-card{background:#202722}[data-theme="dark"] .action-lane,[data-theme="dark"] .advanced-filters,[data-theme="dark"] .publication-fields div,[data-theme="dark"] .external-publications,[data-theme="dark"] .settings-group,[data-theme="dark"] .report-toolbar,[data-theme="dark"] .collaborator-list button{background:#1e2621}[data-theme="dark"] .account-menu{background:#202823}[data-theme="dark"] .evidence-issue{background:#3b3325;color:#efd8ad}[data-theme="dark"] .evidence-issue.conflict,[data-theme="dark"] .profile-conflicts{background:#3d2928;color:#efb7b2}[data-theme="dark"] .next-action-card{background:#294637}[data-theme="dark"] .signed-out-view{background:#111612}[data-theme="dark"] .network-person circle{fill:#283a30}[data-theme="dark"] .network-person text{fill:#d8eee2}
@media(max-width:700px){.security-settings{grid-template-columns:1fr}}
.profile-import-review{margin-top:1rem;padding:1rem;border:1px solid var(--line);border-radius:12px;background:var(--paper)}
.profile-import-field{display:grid;grid-template-columns:auto 1fr;gap:.65rem;margin-top:.75rem;padding-top:.75rem;border-top:1px solid var(--line)}
.profile-import-field label{display:block}.profile-import-field input[type="text"],.profile-import-field textarea{width:100%;margin-top:.35rem}.profile-import-field small{display:block;margin-top:.3rem;color:var(--muted)}
.profile-import-actions{display:flex;justify-content:flex-end;gap:.5rem;margin-top:1rem}
.paper-materials{display:grid;gap:12px;margin:16px 0;padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--surface-soft)}
.paper-materials label{display:grid;gap:6px;font-size:.84rem;font-weight:700;color:var(--muted)}
.paper-materials textarea{width:100%;resize:vertical}
.private-notes form{display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,.35fr) auto;gap:10px;align-items:end;margin:14px 0}.private-notes form label{display:grid;gap:5px;font-size:.82rem;font-weight:700;color:var(--muted)}.private-notes textarea,.private-notes input{width:100%}.private-note{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid var(--line)}.private-note p{margin:0 0 4px;white-space:pre-wrap}.private-note small{color:var(--muted)}.private-note>div:last-child{display:flex;align-items:center;gap:6px}.private-note.completed p{text-decoration:line-through;color:var(--muted)}
@media(max-width:720px){.private-notes form{grid-template-columns:1fr}.private-note{align-items:flex-start}}
.push-settings{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:16px 0;padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--surface-soft)}.push-settings p{margin:4px 0 0}
.active-sessions{margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}.active-sessions-heading,.active-session{display:flex;align-items:center;justify-content:space-between;gap:14px}.active-sessions-heading .form-section{margin:0}.active-session{padding:12px 0;border-bottom:1px solid var(--line)}.active-session>div{display:grid;gap:3px}.active-session small{color:var(--muted);font-size:.75rem}.current-session{padding:4px 8px;border-radius:999px;background:var(--surface-soft);color:var(--muted);font-size:.72rem;font-weight:700}

/* Scholarly register visual system — editorial, institutional, and deliberately flat. */
:root {
  --ink:#20251f;
  --muted:#687068;
  --line:#d8d6c9;
  --paper:#f7f5ed;
  --white:#fffef9;
  --green:#173f34;
  --green-soft:#e7ece6;
  --gold:#ad8436;
  --gold-dark:#806020;
  --soft:#efede4;
  --surface-soft:#efede4;
  --serif:"Source Serif 4",Georgia,serif;
  --sans:"Source Sans 3","Helvetica Neue",Arial,sans-serif;
  --shadow:0 20px 55px rgba(25,35,29,.16);
}

body { font-family:var(--sans); font-size:15px; line-height:1.4; }
h1,h2,.paper-title,.stat-value,.brand,.sidebar-note p,.journey-heading h3,.attempt-heading h3,.attempt-venue strong,.path-node strong,.panel-heading h3,.record-panel-heading h3,.action-item span { font-family:var(--serif); }
.app-shell { grid-template-columns:248px minmax(0,1fr); }
.sidebar { padding:29px 18px 20px; border-right:0; background:var(--green); color:#f7f2e5; }
.brand { position:relative; gap:12px; padding:0 9px 31px; color:#fffdf5; font-size:27px; letter-spacing:.01em; }
.brand:after { content:"Research record"; position:absolute; left:52px; bottom:19px; color:#c9c4b4; font:600 9px/1 var(--sans); letter-spacing:.13em; text-transform:uppercase; }
.brand-mark { width:32px; height:38px; border:1px solid rgba(206,174,105,.8); border-radius:0; background:transparent; color:#d3b46e; font-family:var(--serif); font-size:20px; }
.nav-label { margin:16px 0 5px; padding:0 10px; color:#aebbb5; font-size:10px; letter-spacing:.1em; }
.nav-item { min-height:38px; border-radius:0; padding:9px 10px; color:#d0d8d3; }
.nav-item:hover { color:#fff; background:rgba(255,255,255,.055); }
.nav-item.active { position:relative; color:#fff; background:rgba(255,255,255,.085); }
.nav-item.active:before { content:""; position:absolute; left:0; top:7px; bottom:7px; width:2px; background:var(--gold); }
.nav-icon { color:#cab477; font-size:14px; }
.nav-count { color:#9fafa7; font-variant-numeric:tabular-nums; }
.sidebar .status-dot { outline:1px solid rgba(255,255,255,.2); }
.sidebar-account { border-color:rgba(255,255,255,.16); }
.account-trigger { border-radius:0; color:#f7f2e5; }
.account-trigger:hover,.account-trigger[aria-expanded="true"] { background:rgba(255,255,255,.07); }
.account-trigger-copy small,.account-chevron { color:#aebbb5; }
.mini-avatar { background:#e8e1cf; color:var(--green); }
.account-menu { border-color:#c8c5b8; border-radius:2px; background:#fffef9; color:var(--ink); box-shadow:0 15px 35px rgba(12,25,19,.28); }
.account-menu button { border-radius:0; }
.account-menu button:hover { background:var(--soft); }
.topbar { height:70px; padding:0 48px; border-bottom:1px solid #cecbbb; background:rgba(247,245,237,.96); }
.search-wrap { width:min(460px,45vw); border-bottom:1px solid #aaa99f; padding:7px 1px; }
.search-wrap:focus-within { border-color:var(--green); box-shadow:0 1px 0 var(--green); }
kbd { border-radius:1px; background:transparent; }
.content { max-width:1380px; padding:44px 48px 76px; }
.page-heading { margin-bottom:27px; padding-bottom:21px; border-bottom:1px solid var(--gold); }
h1 { font-size:42px; line-height:1.05; letter-spacing:-.025em; }
.subtitle { font-size:14px; }

.button,select,#paperForm input,#paperForm select,#paperForm textarea,.update-form input,.update-form select,.update-form textarea,.profile-dialog input,.profile-dialog textarea,.account-dialog input,.account-dialog select,.proposal-panel input,.proposal-panel select,.proposal-panel textarea,.target-filters select,.target-form input,.target-form select,.target-form textarea,.material-fields textarea { border-color:#bdbdb3; border-radius:2px; background:#fffef9; }
.button { padding:8px 13px; font-weight:600; }
.button:hover { border-color:#777d76; background:#f4f1e7; }
.button.primary { border-color:var(--green); border-radius:2px; background:var(--green); box-shadow:none; }
.button.primary:hover { background:#235044; }
.button.danger { border-color:#d8b8b2; background:transparent; }
.icon-button { font-family:var(--sans); font-weight:300; }

.stats { grid-template-columns:repeat(5,minmax(0,1fr)); gap:0; margin:0 0 31px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.stat { min-height:94px; padding:15px 18px 13px; border:0; border-right:1px solid var(--line); border-radius:0; background:transparent; }
.stat:first-child { padding-left:0; }
.stat:last-child { border-right:0; }
.stat-label { font-size:12px; }
.stat-value { margin-top:4px; font-size:30px; line-height:1; }
.stat-detail { font-family:var(--sans); font-size:11px; }

.action-board { margin-bottom:31px; padding:20px 0 0; border:0; border-top:3px double var(--green); border-bottom:1px solid var(--line); border-radius:0; background:transparent; }
.section-heading { padding:0 0 15px; }
.section-heading h2 { font-size:25px; }
.action-lanes { gap:0; border-top:1px solid var(--line); }
.action-lane { min-height:126px; padding:12px 17px 15px; border-right:1px solid var(--line); border-radius:0; background:transparent; }
.action-lane:first-child { padding-left:0; }
.action-lane:last-child { border-right:0; }
.action-lane-head { color:#535b54; font-size:11px; letter-spacing:.06em; }
.action-lane-head span { border-radius:50%; background:transparent; color:var(--gold-dark); }
.action-item { padding:9px 3px; }
.action-item:hover { border-radius:0; background:#fffdf7; }
.action-item span { font-size:15px; }

.table-toolbar { border-top:1px solid var(--line); }
.filter { font-size:13px; }
.filter.active { border-color:var(--gold); color:var(--green); }
.advanced-filters { border-radius:0; background:var(--soft); }
.paper-list-head { padding:11px 7px; border-top:1px solid var(--line); border-bottom:2px solid var(--green); color:#5e655f; font-size:10px; letter-spacing:.06em; }
.paper-row { position:relative; min-height:82px; padding:17px 7px; border-bottom:1px solid #d4d2c7; transition:background .12s ease; }
.paper-row:hover { padding-left:7px; padding-right:7px; background:#fffdf6; box-shadow:inset 3px 0 0 var(--gold); }
.paper-title { margin-bottom:5px; font-size:19px; line-height:1.22; }
.paper-authors,.paper-meta,.venue-cell .journal-name { font-size:12px; }
.stage-cell { font-size:11px; }
.stage-cell strong { font-size:10px; letter-spacing:.05em; }
.status-pill { gap:7px; padding:2px 0; border-radius:0; background:transparent!important; font-size:11px; }
.status-pill .status-dot { width:7px; height:7px; }
.row-arrow { color:var(--gold-dark); }

dialog { border:1px solid #b9b8ad; border-top:4px solid var(--green); border-radius:2px; background:#fffef9; }
dialog::backdrop { background:rgba(21,34,28,.56); backdrop-filter:none; }
.dialog-head { padding-bottom:17px; border-bottom:1px solid var(--line); }
.dialog-head h2 { font-size:30px; }
.form-section { color:var(--green); font-size:11px; letter-spacing:.07em; border-bottom-color:var(--gold); }
.journey-card { padding:20px 0; border:0; border-top:3px double var(--green); border-bottom:1px solid var(--line); border-radius:0; background:transparent; }
.path-node { border-radius:1px; border-top:2px solid var(--gold); }
.path-node .path-outcome,.author-context,.confidence-badge,.current-session { border-radius:1px; }
.next-action-card { border-radius:1px; border-left:4px solid var(--gold); background:var(--green); }
.record-panel,.material-author,.paper-materials,.push-settings,.profile-import-review,.private-profile-materials,.profile-import-panel,.profile-visibility,.profile-choice-group,.security-settings>div { border-radius:1px; background:transparent; }
.source-panel,.proposal-panel,.evidence-details div,.evidence-summary,.target-card,.target-empty,.profile-photo-panel,.orcid-panel,.external-publications,.settings-group,.report-toolbar,.report-metric,.report-columns>section,.signed-out-card { border-radius:1px; }
.profile-photo-panel,.orcid-panel,.external-publications,.report-toolbar { background:var(--soft); }
.settings-list { gap:22px; }
.settings-group { border-top:3px double var(--green); }
.report-summary { gap:0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.report-metric { border-width:0 1px 0 0; background:transparent; }
.report-metric:last-child { border-right:0; }
.report-columns>section { border-top:3px double var(--green); }
.signed-out-card { border-top:4px solid var(--green); box-shadow:0 18px 45px rgba(30,39,33,.14); }
.auth-entry-actions{display:grid;gap:9px}.auth-entry-actions .button{width:100%;justify-content:center;min-height:44px}.signed-out-card .auth-entry-note{margin:16px 0 0;font-size:12px;line-height:1.5;text-align:left}.onboarding-dialog{width:min(430px,calc(100% - 28px));padding:0;border:1px solid var(--line);border-top:4px solid var(--green);border-radius:1px;background:var(--white);color:var(--ink)}.onboarding-dialog::backdrop{background:rgba(10,24,17,.6)}.onboarding-content{padding:26px}.onboarding-content .brand-mark{display:grid;place-items:center;margin-bottom:18px}.onboarding-content h2{margin:0 0 8px;font-family:var(--serif);font-size:29px}.onboarding-content p{margin:0 0 22px;color:var(--muted);line-height:1.5}.onboarding-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:9px}.onboarding-actions .button{min-height:44px}@media(max-width:480px){.onboarding-actions .button{width:100%;justify-content:center}}
.social-auth-options{display:grid;gap:9px;margin-top:18px}.social-auth-options[hidden],.social-auth-options .button[hidden]{display:none}.social-auth-options span{color:var(--muted);font-size:12px}.social-auth-options .button{min-height:44px;width:100%;justify-content:center}
.toast { border-radius:1px; }

[data-theme="dark"] {
  --ink:#eeeade;
  --muted:#abb4ad;
  --line:#465049;
  --paper:#18201c;
  --white:#202923;
  --green:#80b49c;
  --green-soft:#273a31;
  --gold:#c7a65d;
  --gold-dark:#d0b471;
  --soft:#212a25;
  --surface-soft:#212a25;
}
[data-theme="dark"] .sidebar { background:#101712; }
[data-theme="dark"] .topbar { background:rgba(24,32,28,.96); }
[data-theme="dark"] .search-wrap { border-color:#59635c; }
[data-theme="dark"] .paper-row:hover,[data-theme="dark"] .action-item:hover { background:#202923; }
[data-theme="dark"] .paper-list-head,[data-theme="dark"] .paper-list-head button,[data-theme="dark"] .action-lane-head { color:#b8c5bd; }
[data-theme="dark"] .action-item,[data-theme="dark"] .action-item span,[data-theme="dark"] .paper-title { color:#f2eee2; }
[data-theme="dark"] .action-item small,[data-theme="dark"] .paper-authors,[data-theme="dark"] .paper-meta,[data-theme="dark"] .venue-cell .journal-name,[data-theme="dark"] .stage-cell,[data-theme="dark"] .updated-date,[data-theme="dark"] .deadline,[data-theme="dark"] .result-count,[data-theme="dark"] .stat-label,[data-theme="dark"] .stat-detail { color:#aebbb3; }
[data-theme="dark"] .stage-cell strong,[data-theme="dark"] .filter.active { color:#91c7ae; }

@media(max-width:900px) {
  .sidebar { box-shadow:8px 0 35px rgba(11,24,17,.28); }
  .topbar { padding-inline:22px; }
  .content { padding:34px 24px 60px; }
}
@media(max-width:600px) {
  .content { padding:26px 16px 50px; }
  .page-heading { padding-bottom:17px; }
  h1 { font-size:35px; }
  .stats { grid-template-columns:1fr 1fr; }
  .stat { min-height:82px; border-bottom:1px solid var(--line); }
  .stat:nth-child(2n) { border-right:0; padding-right:0; }
  .stat:nth-child(2n+1) { padding-left:0; }
  .stat:last-child { border-bottom:0; }
  .action-lanes { border-top:0; }
  .action-lane,.action-lane:first-child { padding:12px 0; border-right:0; border-top:1px solid var(--line); }
  .paper-row { min-height:74px; }
}

/* Mobile-first application shell. Phone is the baseline; wider screens add density. */
.app-shell { display:block; min-height:100dvh; }
main { padding-bottom:76px; }
.sidebar {
  position:fixed;
  inset:auto 0 0;
  z-index:30;
  width:100%;
  height:68px;
  padding:0 max(6px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(6px,env(safe-area-inset-left));
  border:0;
  border-top:1px solid rgba(211,180,110,.45);
  display:flex;
  flex-direction:row;
  align-items:stretch;
  box-shadow:0 -8px 24px rgba(13,27,20,.16);
  transform:none;
  transition:none;
}
.sidebar .brand,.sidebar nav .nav-label,.sidebar nav #statusNav { display:none; }
.sidebar nav { min-width:0; flex:1; display:flex; align-items:stretch; }
.sidebar .nav-item {
  min-width:0;
  min-height:56px;
  flex:1;
  flex-direction:column;
  justify-content:center;
  gap:2px;
  padding:6px 2px;
  text-align:center;
  font-size:10px;
  line-height:1.15;
}
.sidebar .nav-item.active:before { inset:0 16px auto; width:auto; height:2px; }
.sidebar .nav-icon { width:auto; font-size:18px; line-height:1; }
.sidebar .nav-count { display:none; }
.sidebar-account { width:62px; margin:0; padding:0; border:0; border-left:1px solid rgba(255,255,255,.14); }
.account-trigger { height:100%; min-height:56px; justify-content:center; padding:6px; }
.account-trigger-copy,.account-chevron { display:none; }
.mini-avatar { width:32px; height:32px; }
.account-menu { position:fixed; left:10px; right:10px; bottom:76px; width:auto; padding:7px; }
.account-menu button { min-height:44px; }

.topbar {
  position:sticky;
  top:0;
  z-index:20;
  height:60px;
  padding:8px 12px;
  gap:9px;
}
.mobile-menu { display:none; }
.search-wrap { width:auto; min-width:0; flex:1; padding:6px 1px; }
.search-wrap input { min-width:0; font-size:16px; }
.search-wrap kbd { display:none; }
.top-actions { flex:none; }
.top-actions .button.primary { min-height:44px; padding:8px 11px; white-space:nowrap; }
.content { width:100%; padding:25px 15px 38px; }
.page-heading { align-items:flex-start; margin-bottom:20px; padding-bottom:16px; }
.page-heading h1 { font-size:34px; }
.page-heading .subtitle { max-width:32rem; }

.stats { grid-template-columns:1fr 1fr; }
.stat { min-height:80px; padding:13px 12px; border-bottom:1px solid var(--line); }
.stat:nth-child(odd) { padding-left:0; }
.stat:nth-child(even) { padding-right:0; border-right:0; }
.stat:last-child { border-bottom:0; }
.action-board { padding-top:16px; }
.section-heading { align-items:flex-start; }
.section-heading h2 { font-size:22px; }
.action-lanes { grid-template-columns:1fr; border-top:0; }
.action-lane,.action-lane:first-child {
  min-height:0;
  padding:12px 0;
  border-top:1px solid var(--line);
  border-right:0;
}
.action-item { min-height:44px; }
.table-toolbar { align-items:flex-end; gap:12px; }
.segmented { gap:18px; }
.filter { min-height:44px; padding-top:10px; }
.advanced-filters { grid-template-columns:1fr; }
.advanced-filters select,.advanced-filters .button { min-height:44px; }
.paper-list-head { display:none; }
.paper-row { grid-template-columns:minmax(0,1fr) auto 16px; gap:10px; min-height:76px; padding:15px 3px; }
.paper-row:hover { padding-inline:3px; }
.paper-row>.venue-cell,.paper-row>.stage-cell,.paper-row>.updated-date,.paper-row>.deadline { display:none; }
.paper-title { font-size:18px; }
.status-pill { max-width:112px; white-space:normal; }

dialog {
  width:100%;
  max-width:none;
  height:100dvh;
  max-height:100dvh;
  margin:0;
  border-width:4px 0 0;
  overflow:auto;
}
dialog.paper-detail-dialog,dialog.evidence-dialog,dialog.review-dialog,dialog.wide-dialog,dialog.update-dialog { width:100%; max-width:none; }
dialog[open] { inset:0; }
#paperForm,.paper-detail-shell,.evidence-shell,.materials-shell,.review-shell,.target-shell,.profile-shell,.reports-shell,.update-form { padding:19px 16px 28px; }
.dialog-head { position:relative; align-items:flex-start; gap:12px; margin-bottom:20px; }
.dialog-head h2 { font-size:27px; line-height:1.08; }
.icon-button { min-width:44px; min-height:44px; margin:-9px -8px 0 0; }
.form-row,.review-grid,.target-filters,.target-list,.metric-grid,.profile-layout,.material-fields,.settings-list,.report-summary,.security-settings,.publication-fields { grid-template-columns:1fr; }
#paperForm input,#paperForm select,#paperForm textarea,.update-form input,.update-form select,.update-form textarea,.profile-dialog input,.profile-dialog textarea,.account-dialog input,.account-dialog select { min-height:44px; font-size:16px; }
.dialog-actions { position:sticky; bottom:0; z-index:4; margin-inline:-16px; padding:13px 16px calc(13px + env(safe-area-inset-bottom)); background:rgba(255,254,249,.96); }
.dialog-actions .button { min-height:44px; }
.journey-heading,.attempt-heading,.record-panel-heading { align-items:flex-start; flex-direction:column; }
.submission-path { scroll-snap-type:x proximity; }
.path-node { flex-basis:min(78vw,270px); scroll-snap-align:start; }
.attempt-row summary { grid-template-columns:28px minmax(0,1fr) 20px; min-height:56px; }
.attempt-id,.attempt-date { display:none; }
.attempt-events { margin-left:20px; }
.event-item { grid-template-columns:76px minmax(0,1fr); }
.evidence-tag { display:none; }
.next-action-card,.push-settings { align-items:flex-start; flex-direction:column; }
.next-action-controls { width:100%; align-items:flex-start; flex-direction:column; }
.review-grid { min-height:0; }
.source-panel pre { max-height:32vh; }
.profile-photo-panel { padding:16px; }
.report-toolbar { align-items:stretch; flex-direction:column; }
.report-toolbar label,.report-toolbar .button { width:100%; margin-left:0; }
.report-export-actions { width:100%; flex-direction:column; margin-left:0; }
.report-columns { display:block; }
.report-columns>section+section { margin-top:16px; }
.collaborator-list { grid-template-columns:1fr; }
.setting-row { align-items:flex-start; }
.private-notes form { grid-template-columns:1fr; }
.active-session { align-items:flex-start; }

@media(min-width:700px) {
  .topbar { height:66px; padding-inline:24px; }
  .content { padding:34px 28px 54px; }
  .page-heading h1 { font-size:40px; }
  .stats { grid-template-columns:repeat(5,1fr); }
  .stat,.stat:nth-child(odd),.stat:nth-child(even) { min-height:92px; padding:15px 16px; border-right:1px solid var(--line); border-bottom:0; }
  .stat:first-child { padding-left:0; }
  .stat:last-child { padding-right:0; border-right:0; }
  .action-lanes { grid-template-columns:repeat(3,minmax(0,1fr)); border-top:1px solid var(--line); }
  .action-lane,.action-lane:first-child { min-height:126px; padding:12px 15px; border-top:0; border-right:1px solid var(--line); }
  .action-lane:first-child { padding-left:0; }
  .action-lane:last-child { padding-right:0; border-right:0; }
  .advanced-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .paper-list-head { display:grid; grid-template-columns:minmax(240px,2fr) 140px 120px 100px 22px; }
  .paper-list-head .head-stage,.paper-list-head .head-deadline { display:none; }
  .paper-row { grid-template-columns:minmax(240px,2fr) 140px 120px 100px 22px; }
  .paper-row>.venue-cell,.paper-row>.updated-date { display:block; }
  .form-row,.target-list,.material-fields,.settings-list,.security-settings { grid-template-columns:1fr 1fr; }
  .profile-layout { grid-template-columns:165px minmax(0,1fr); }
  .target-filters { grid-template-columns:2fr 1fr 1fr; }
  .metric-grid { grid-template-columns:repeat(4,1fr); }
  dialog { width:min(720px,calc(100% - 40px)); height:auto; max-height:calc(100dvh - 40px); margin:auto; border-width:4px 1px 1px; }
  dialog.paper-detail-dialog { width:min(980px,calc(100% - 40px)); max-width:980px; }
  dialog.evidence-dialog { width:min(620px,calc(100% - 40px)); max-width:620px; }
  dialog.review-dialog { width:min(1120px,calc(100% - 40px)); max-width:1120px; }
  dialog.wide-dialog { width:min(920px,calc(100% - 40px)); max-width:920px; }
  dialog.update-dialog { width:min(760px,calc(100% - 40px)); max-width:760px; }
  .dialog-actions { margin-inline:0; padding-inline:0; background:var(--white); }
  .publication-fields { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

@media(min-width:960px) {
  .app-shell { display:grid; grid-template-columns:248px minmax(0,1fr); }
  main { padding-bottom:0; }
  .sidebar {
    position:sticky;
    inset:0 auto auto;
    width:auto;
    height:100vh;
    padding:29px 18px 20px;
    border-top:0;
    border-right:1px solid rgba(211,180,110,.22);
    flex-direction:column;
    align-items:stretch;
    box-shadow:none;
  }
  .sidebar .brand { display:flex; }
  .sidebar nav { display:block; }
  .sidebar nav .nav-label { display:block; }
  .sidebar nav #statusNav { display:block; }
  .sidebar .nav-item { width:100%; min-height:38px; flex:none; flex-direction:row; justify-content:flex-start; gap:10px; padding:9px 10px; text-align:left; font-size:14px; }
  .sidebar .nav-item.active:before { inset:7px auto 7px 0; width:2px; height:auto; }
  .sidebar .nav-icon { width:16px; font-size:14px; }
  .sidebar .nav-count { display:block; }
  .sidebar-account { width:auto; margin-top:auto; padding-top:10px; border-left:0; border-top:1px solid rgba(255,255,255,.16); }
  .account-trigger { height:auto; min-height:48px; justify-content:flex-start; padding:7px 9px; }
  .account-trigger-copy,.account-chevron { display:flex; }
  .account-menu { position:absolute; left:0; right:0; bottom:58px; }
  .topbar { padding-inline:48px; }
  .content { max-width:1380px; padding:44px 48px 76px; }
  .advanced-filters { grid-template-columns:repeat(5,minmax(120px,1fr)) auto; }
  .paper-list-head,.paper-row { grid-template-columns:minmax(260px,2.25fr) minmax(135px,.9fr) minmax(105px,.68fr) minmax(145px,1fr) 105px 100px 28px; }
  .paper-list-head .head-stage,.paper-list-head .head-deadline { display:flex; }
  .paper-row>.stage-cell,.paper-row>.deadline { display:block; }
  .review-grid { grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); min-height:500px; }
  .report-summary { grid-template-columns:repeat(7,minmax(100px,1fr)); }
}

[data-theme="dark"] .dialog-actions { background:rgba(32,41,35,.96); }

/* Revision workspace */
.revision-shell { padding:19px 16px 28px; }
.revision-toolbar { display:flex; align-items:flex-end; gap:10px; margin-bottom:18px; }
.revision-toolbar label { min-width:0; flex:1; display:grid; gap:5px; color:var(--muted); font-size:12px; font-weight:600; }
.revision-toolbar select { width:100%; min-height:44px; }
.revision-round-form { margin:18px 0; padding:16px 0; border-top:3px double var(--green); border-bottom:1px solid var(--line); }
.revision-round-form label,.revision-item-form label,.revision-response-intro,.revision-item-fields label { display:grid; gap:6px; margin-bottom:14px; color:var(--muted); font-size:12px; font-weight:600; }
.revision-round-form input,.revision-round-form select,.revision-round-form textarea,.revision-item-form input,.revision-item-form select,.revision-item-form textarea,.revision-response-intro textarea,.revision-item-fields input,.revision-item-fields textarea,.revision-item-head select { width:100%; min-height:44px; border:1px solid #bdbdb3; border-radius:2px; padding:9px 10px; background:var(--white); color:var(--ink); font:inherit; font-size:16px; }
.revision-form-actions,.revision-round-actions,.revision-item-actions { display:flex; justify-content:flex-end; gap:8px; }
.revision-overview { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; padding:18px 0; border-top:3px double var(--green); border-bottom:1px solid var(--line); }
.revision-overview h3 { margin:0; font:600 24px/1.15 var(--serif); }
.revision-overview p:last-child { margin:5px 0 0; color:var(--muted); font-size:12px; text-transform:capitalize; }
.revision-progress { flex:none; min-width:88px; padding-left:14px; border-left:1px solid var(--gold); text-align:right; }
.revision-progress strong,.revision-progress span { display:block; }
.revision-progress strong { font:600 28px/1 var(--serif); }
.revision-progress span { margin-top:4px; color:var(--muted); font-size:10px; }
.revision-response-intro { margin:18px 0 0; }
.revision-round-actions { padding-bottom:18px; border-bottom:1px solid var(--line); }
.revision-items { margin-top:10px; }
.revision-item { display:grid; grid-template-columns:28px minmax(0,1fr); gap:10px; padding:18px 0; border-bottom:1px solid var(--line); }
.revision-item.completed { box-shadow:inset 3px 0 0 #4c826b; }
.revision-item-number { display:grid; place-items:center; align-self:start; width:26px; height:26px; border:1px solid var(--gold); color:var(--gold-dark); font:600 13px var(--serif); }
.revision-item-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.revision-item-head span,.revision-item-head strong,.revision-item-head small { display:block; }
.revision-item-head strong { font:600 17px var(--serif); }
.revision-item-head small { margin-top:2px; color:var(--muted); font-size:11px; }
.revision-item-head select { width:140px; min-height:38px; font-size:13px; }
.revision-request { margin:12px 0; padding:12px 14px; border-left:3px solid var(--gold); background:var(--soft); white-space:pre-wrap; }
.revision-item-fields { display:grid; grid-template-columns:1fr; gap:0; }
.revision-item-actions { align-items:center; }
.revision-item-actions .text-button { margin-left:auto; color:var(--red); }
.revision-item-form { margin-top:24px; padding-top:16px; border-top:3px double var(--green); }
.revision-empty { padding:55px 20px; border-top:3px double var(--green); text-align:center; }
.revision-empty p,.revision-no-items { color:var(--muted); }
[data-theme="dark"] .revision-round-form input,[data-theme="dark"] .revision-round-form select,[data-theme="dark"] .revision-round-form textarea,[data-theme="dark"] .revision-item-form input,[data-theme="dark"] .revision-item-form select,[data-theme="dark"] .revision-item-form textarea,[data-theme="dark"] .revision-response-intro textarea,[data-theme="dark"] .revision-item-fields input,[data-theme="dark"] .revision-item-fields textarea,[data-theme="dark"] .revision-item-head select { border-color:var(--line); background:var(--white); }

/* One primary action per surface; secondary actions remain available at every width. */
.top-actions,.detail-head-actions { align-items:center; }
.top-action-menu,.detail-action-menu { position:relative; flex:none; }
.top-action-menu summary,.detail-action-menu summary { display:inline-flex; align-items:center; justify-content:center; min-height:44px; list-style:none; cursor:pointer; white-space:nowrap; }
.top-action-menu summary::-webkit-details-marker,.detail-action-menu summary::-webkit-details-marker { display:none; }
.top-action-menu summary::after,.detail-action-menu summary::after { content:"⌄"; margin-left:8px; }
.action-menu-panel { position:absolute; z-index:20; top:calc(100% + 6px); right:0; width:max-content; min-width:190px; padding:5px; border:1px solid var(--line); background:var(--white); box-shadow:0 10px 24px rgba(18,33,25,.14); }
.action-menu-panel button { display:block; width:100%; min-height:44px; border:0; padding:10px 12px; background:transparent; text-align:left; color:var(--ink); white-space:nowrap; }
.action-menu-panel button:hover,.action-menu-panel button:focus-visible { background:var(--green-soft); color:var(--ink); }
.top-action-menu summary:focus-visible,.detail-action-menu summary:focus-visible,.action-menu-panel button:focus-visible { outline:3px solid var(--gold); outline-offset:2px; }
.paper-detail-dialog .dialog-head { align-items:flex-start; gap:16px; }
.paper-detail-dialog .dialog-head>div:first-child { min-width:0; flex:1; }
.paper-detail-dialog .dialog-head h2 { overflow-wrap:anywhere; }
.paper-mobile-venue { display:none; }
.stats { grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr)); }
.action-lanes { grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr)); }
[data-theme="dark"] .action-menu-panel { background:var(--white); }
[data-theme="dark"] .action-menu-panel button { color:var(--ink); }
@media(max-width:900px) {
  .paper-detail-dialog .dialog-head { flex-wrap:wrap; }
  .paper-detail-dialog .detail-head-actions { width:100%; justify-content:flex-end; }
}
@media(max-width:699px) {
  .paper-mobile-venue { display:block; overflow:hidden; margin:5px 0 0; color:var(--muted); font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
  .top-actions { gap:5px; }
  .top-action-menu summary { padding-inline:8px; }
  .top-actions #newPaperButton { padding-inline:9px; }
  .detail-head-actions { flex-wrap:wrap; }
}

@media(min-width:700px) {
  .revision-shell { padding:28px; }
  .revision-item { grid-template-columns:38px minmax(0,1fr); gap:14px; }
  .revision-item-fields { grid-template-columns:minmax(180px,.35fr) minmax(0,1fr); gap:14px; }
  .revision-overview h3 { font-size:27px; }
}
.share-author-tools{display:grid;gap:.8rem;padding:1rem 0;border-bottom:1px solid var(--border, #d8d5c8)}
.share-author-tools label,.share-author-row label{display:grid;gap:.25rem}
.share-add-author-form{display:flex;flex-wrap:wrap;align-items:end;gap:.6rem}
.share-add-author-form label{flex:1 1 12rem}
.share-author-row{align-items:end;flex-wrap:wrap;gap:.7rem}
.share-author-row>span{flex:1 1 11rem}
.share-author-row input[type="email"]{max-width:18rem}
@media(max-width:600px){.share-add-author-form>*{width:100%}.share-author-row>label,.share-author-row>button{width:100%}.share-author-row input[type="email"]{max-width:none}}
.getting-started{padding:1.25rem;margin:0 0 1.2rem;border:1px solid var(--line);border-radius:10px;background:var(--white)}
.getting-started h2{margin:0 0 .35rem;font-family:"Newsreader",serif;font-size:1.45rem}
.getting-started p{margin:.2rem 0 1rem;max-width:60ch;color:var(--muted)}
.getting-started-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(11rem,1fr));gap:.55rem}
.getting-started-actions button{padding:.8rem;text-align:left;border:1px solid var(--line);border-radius:7px;background:var(--paper)}
.getting-started-actions button:hover,.getting-started-actions button:focus-visible{border-color:var(--green);outline-color:var(--green)}
.orcid-works-list { display: grid; gap: .65rem; margin-top: .8rem; }
.orcid-work-row { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; padding: .8rem; border: 1px solid var(--line); border-radius: .45rem; }
.orcid-work-row span { display: grid; min-width: 0; gap: .2rem; }
.orcid-work-row small { overflow-wrap: anywhere; }
@media (max-width: 600px) { .orcid-work-row { flex-direction: column; } .orcid-work-row button { width: 100%; } }
