.layout.publish-layout{grid-template-columns:minmax(0,1fr);align-items:start}
.publish-tabs{display:flex;gap:6px;border-bottom:1px solid var(--border);margin-bottom:18px;flex-wrap:wrap}
.publish-tabs button{border:0;border-bottom:3px solid transparent;border-radius:8px 8px 0 0;background:transparent;padding:13px 20px;color:var(--muted)}
.publish-tabs button.active{background:var(--soft);border-bottom-color:var(--blue);color:var(--blue)}
#single-mode[hidden],.mode-panel[hidden]{display:none!important}
.custom-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.batch-row{border:1px solid var(--border);border-radius:9px;padding:16px;margin:12px 0;min-width:0;overflow-wrap:anywhere}
.batch-row select,.batch-row input,#batch-records,#batch-queries{width:100%;min-width:0;max-width:100%}
.batch-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin:12px 0}
.batch-fields label,.batch-row>label{display:block;font-size:12px}
.batch-check input{width:auto}
.batch-row .toolbar{flex-wrap:wrap}
.batch-row .toolbar input{flex:1 1 180px}
#batch-mode .toolbar{flex-wrap:wrap}
#batch-records{flex:1 1 180px;width:auto}
.custom-grid input,.custom-grid select{min-width:0;width:100%}
.custom-wide{grid-column:1/-1}
.custom-types{border:0;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:12px}
.custom-types legend{font-size:13px;margin-bottom:10px}
.custom-types label{display:flex;align-items:center;gap:8px;padding:12px;border:1px solid var(--border);border-radius:9px;cursor:pointer}
.custom-types label:has(input:checked){border-color:var(--blue);background:var(--soft)}
.custom-types input{width:auto}.custom-types small{color:var(--muted)}
.custom-actions{display:flex;align-items:end;gap:18px;flex-wrap:wrap}
.custom-actions button{margin-left:auto}
button:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:720px){.custom-grid{grid-template-columns:minmax(0,1fr)}.custom-actions{align-items:stretch}.custom-actions button{margin-left:0;width:100%}.publish-tabs button{padding:11px 12px}}
.publish-main.request-configuring{display:grid;grid-template-columns:minmax(0,.92fr) minmax(340px,1.08fr);grid-template-areas:"lookup request" "help help";align-items:start;gap:12px 20px;padding:18px}
.literature-panel{grid-area:lookup;min-width:0}
.literature-panel>h2{margin:0}
.literature-panel>.tiny{margin:8px 0}
.literature-panel>#literature-search{margin:12px 0}
.publish-main.request-configuring>#single-publish{grid-area:request;grid-template-columns:minmax(0,1fr);min-width:0;max-width:none;width:100%;gap:8px;margin:0}
#single-publish input{min-width:0}
.publish-main{min-width:0}
#single-publish[hidden],#selected-literature[hidden]{display:none!important}
#single-publish .field[hidden]{display:none!important}
#literature-results[hidden]{display:none!important}
#literature-results{display:grid;gap:8px}
.candidate-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;width:100%;margin:0;padding:15px 16px;border:1px solid var(--border);border-radius:9px;background:var(--bg);line-height:1.7}
.candidate-copy{min-width:0}
.candidate-copy strong,.candidate-copy small{display:block}
.candidate-card strong{font-size:14px;color:var(--text)}
.candidate-card small{margin-top:4px;color:var(--muted);font-size:12px}
.candidate-select{white-space:nowrap}
.selected-literature{padding:15px 17px;margin:14px 0 22px;border:1px solid #a9c2ff;border-radius:9px;background:var(--soft);line-height:1.8}
.selected-literature p{margin:5px 0 0;font-size:12px}
.selected-literature .selected-doi{color:var(--text);overflow-wrap:anywhere;font-family:ui-monospace,Consolas,monospace}
.scope-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.scope-option{display:flex;align-items:flex-start;gap:9px;min-width:0;padding:13px;border:1px solid var(--border);border-radius:9px;background:var(--card);cursor:pointer}
.scope-option:has(input:checked){border-color:var(--blue);box-shadow:0 0 0 2px #3166ed18}
.scope-option input{margin:3px 0 0;padding:0;accent-color:var(--blue)}
.scope-option span,.scope-option small{display:block}
.scope-option{padding:16px 13px;border-width:2px;min-height:104px}
.scope-option strong{font-size:16px;font-weight:800;line-height:1.5;color:var(--text)}
.scope-option input{width:18px;height:18px;flex-shrink:0}
.scope-option:has(input:checked){background:var(--soft);border-color:var(--blue);box-shadow:0 0 0 2px #3166ed18}
.scope-option:has(input:checked) strong{color:var(--blue)}
.reward-control{display:flex;align-items:stretch;gap:9px;min-width:0}
.reward-control input{flex:1;width:0;min-width:0}
.reward-increase{flex-shrink:0;background:var(--soft);border:1px solid var(--blue);color:var(--blue);font-weight:800;min-height:44px;padding:10px 15px}
.single-online{border:1px solid #f1b3bd;background:#fff5f6;padding:14px;border-radius:9px;min-width:0}
#single-online[hidden]{display:none!important}
.single-online-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;color:#a92543}
.single-online-head strong{font-size:16px}.single-online-head span{font-size:12px}
.single-online p{margin:7px 0 10px;font-size:13px;line-height:1.7;color:var(--text)}
#single-publish .single-download{background:#cd3655;color:#fff;border:1px solid #cd3655;font-weight:700;min-height:44px}
.single-online .single-online-error{color:#b32843}
.single-online [data-body-fallback]{margin-top:8px}
body.dark .single-online{background:#352332;border-color:#8d4257}
body.dark .single-online-head,body.dark .single-online .single-online-error{color:#ffadbe}
.scope-option small{margin-top:5px;color:var(--muted);font-size:12px;line-height:1.6}
.price-summary{margin:0;line-height:1.9}
.publish-help{grid-area:help;margin-top:12px;padding-top:12px;border-top:1px solid var(--border);color:var(--muted);font-size:12px}
.publish-help summary{cursor:pointer;width:fit-content}
.publish-help-content{padding-top:12px}
.publish-help .notice{margin-bottom:0}
.publish-help ul{padding-left:19px;margin:0 0 18px;color:var(--muted);font-size:12px;line-height:1.9}
.publish-help li+li{margin-top:7px}
@media(max-width:980px){.publish-main.request-configuring{grid-template-columns:minmax(0,1fr);grid-template-areas:"lookup" "request" "help"}}
@media(max-width:720px){.scope-grid{grid-template-columns:1fr}.scope-option{align-items:center}.candidate-card{grid-template-columns:minmax(0,1fr);gap:10px;padding:13px}.candidate-select{width:100%}.publish-main.request-configuring{gap:10px;padding:17px}.publish-main.request-configuring>#single-publish{gap:10px}}
