:root{--bg:#f4f6f9;--panel:#fff;--ink:#182230;--muted:#667085;--navy:#17365d;--blue:#eaf2fb;--red:#b42318;--redbg:#fef3f2;--amber:#b54708;--amberbg:#fffaeb;--green:#067647;--greenbg:#ecfdf3;--border:#e4e7ec;--shadow:0 8px 24px rgba(16,24,40,.06)}
*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Segoe UI","Microsoft YaHei",sans-serif;background:var(--bg);color:var(--ink)}button,input,select,textarea{font:inherit}.topbar{height:82px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 36px;position:sticky;top:0;z-index:5}.topbar h1{margin:1px 0 0;font-size:24px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.12em;color:#53759b}.top-actions{display:flex;gap:10px}main{max-width:1380px;margin:0 auto;padding:28px 34px 60px}.hero{display:flex;justify-content:space-between;gap:28px;align-items:center;margin-bottom:22px}.hero h2{font-size:30px;margin:4px 0 6px}.muted{color:var(--muted);margin:0}.kpis{display:grid;grid-template-columns:repeat(4,130px);gap:10px}.kpi{background:#fff;border:1px solid var(--border);border-radius:14px;padding:16px;display:flex;flex-direction:column;box-shadow:var(--shadow)}.kpi b{font-size:26px}.kpi span{font-size:13px;color:var(--muted);margin-top:3px}.kpi.danger{background:var(--redbg)}.kpi.warn{background:var(--amberbg)}button{border:0;border-radius:10px;padding:10px 14px;cursor:pointer;font-weight:700}.primary{background:var(--navy);color:#fff}.ghost{background:#fff;border:1px solid var(--border);color:var(--ink)}.tabs{display:flex;gap:6px;border-bottom:1px solid var(--border);margin-bottom:20px}.tab{background:transparent;color:var(--muted);border-radius:9px 9px 0 0;padding:11px 18px;width:112px;text-align:center;justify-content:center}.tab.active{color:var(--navy);background:#fff;border:1px solid var(--border);border-bottom-color:#fff;margin-bottom:-1px}.tabpage{display:none}.tabpage.active{display:block}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:18px}.lower{margin-top:18px}.panel{background:var(--panel);border:1px solid var(--border);border-radius:16px;padding:18px;box-shadow:var(--shadow)}.danger-panel{border-color:#fecdca}.panel-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.panel-title h3{margin:0;font-size:18px}.pill{background:#f2f4f7;border-radius:99px;padding:4px 9px;font-size:12px;color:var(--muted)}.list{display:flex;flex-direction:column;gap:10px}.item{border:1px solid var(--border);border-radius:12px;padding:13px 14px;background:#fff;display:flex;gap:14px;align-items:center;justify-content:space-between}.item-main{min-width:0}.item h4{margin:0 0 4px;font-size:15px}.meta{color:var(--muted);font-size:12px;display:flex;gap:10px;flex-wrap:wrap}.actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.mini{padding:7px 9px;font-size:12px}.mini.done{background:var(--greenbg);color:var(--green)}.mini.warn{background:var(--amberbg);color:var(--amber)}.mini.danger{background:var(--redbg);color:var(--red)}.dialog-delete-btn{background:var(--redbg);color:var(--red);border:0;border-radius:10px;padding:10px 14px;font-size:inherit;font-weight:700;min-height:40px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.empty{padding:28px;text-align:center;color:var(--muted);border:1px dashed var(--border);border-radius:12px}.section-head{display:flex;justify-content:space-between;align-items:center;margin:8px 0 16px}.section-head h2{margin:0}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.card{background:#fff;border:1px solid var(--border);border-radius:15px;padding:17px;box-shadow:var(--shadow)}.card h3{margin:0 0 5px}.badge{display:inline-block;font-size:11px;font-weight:800;border-radius:99px;padding:4px 8px;background:#f2f4f7;color:#475467}.badge.red{background:var(--redbg);color:var(--red)}.badge.amber{background:var(--amberbg);color:var(--amber)}.badge.green{background:var(--greenbg);color:var(--green)}.next{margin-top:13px;padding:10px;border-radius:10px;background:var(--blue);font-size:13px}
dialog{border:0;border-radius:18px;padding:0;box-shadow:0 24px 80px rgba(16,24,40,.22);width:min(620px,92vw);max-height:92vh}dialog::backdrop{background:rgba(15,23,42,.35)}dialog form{padding:22px;max-height:92vh;overflow:auto}.dialog-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:18px}.dialog-head h2{margin:2px 0}.icon{font-size:24px;background:transparent;padding:2px 8px;color:var(--muted)}label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:700;margin:12px 0}input,select,textarea{width:100%;border:1px solid #d0d5dd;border-radius:10px;padding:10px 11px;background:#fff;color:var(--ink)}textarea{min-height:78px;resize:vertical}.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:18px}.type-picker{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.type-picker button{background:#f2f4f7;color:#475467}.type-picker button.selected{background:var(--navy);color:white}
.testbar{margin:0 auto;max-width:1380px;padding:10px 34px 0;color:#667085;font-size:12px}.testbar b{color:#17365d}.notice{background:#eef5fb;border:1px solid #cfe0f2;padding:9px 12px;border-radius:10px}
@media(max-width:900px){.topbar{padding:0 18px}main{padding:20px 16px}.testbar{padding:10px 16px 0}.hero{grid-template-columns:1fr;padding:24px 22px;border-radius:22px}.hero h2{font-size:31px}.kpis{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:2px}.grid2,.cards{grid-template-columns:1fr}.item{align-items:flex-start;flex-direction:column}.actions{justify-content:flex-start}.type-picker{grid-template-columns:1fr 1fr}}

.workflow-strip{
  display:flex;
  gap:10px;
  overflow-x:auto;
  padding:3px 0 14px;
  margin-bottom:14px;
  scrollbar-width:thin;
}
.workflow-step{
  flex:0 0 auto;
  min-width:106px;
  padding:9px 12px;
  border-radius:12px;
  background:#ffffff;
  color:#475467;
  font-size:13px;
  font-weight:600;
  letter-spacing:.01em;
  text-align:center;
  border:1px solid #e4e7ec;
  cursor:pointer;
  white-space:nowrap;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  box-shadow:0 1px 2px rgba(16,24,40,.03);
  transition:all .16s ease;
}
.workflow-step:hover{
  background:#f8fafc;
  border-color:#cfd8e3;
  transform:translateY(-1px);
  box-shadow:0 3px 8px rgba(16,24,40,.05);
}
.workflow-step.active{
  background:#1b416d;
  color:#fff;
  border-color:#1b416d;
  box-shadow:0 4px 10px rgba(27,65,109,.16);
}
.step-label{
  line-height:1;
}
.step-count{
  min-width:22px;
  height:22px;
  padding:0 7px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#f2f4f7;
  color:#667085;
  font-size:11px;
  font-weight:700;
  line-height:1;
}
.workflow-step.active .step-count{
  background:rgba(255,255,255,.16);
  color:#fff;
}
.stage-view{
  background:#fff; border:1px solid var(--border); border-radius:16px;
  overflow:hidden; box-shadow:var(--shadow)
}
.stage-view-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 18px; border-bottom:1px solid var(--border); background:#f8fafc
}
.stage-view-head h3{margin:0;font-size:17px}
.stage-count{
  font-size:12px;color:#667085;background:#fff;border:1px solid var(--border);
  border-radius:999px;padding:3px 8px
}
.paper-row{
  display:grid;
  grid-template-columns:minmax(180px,1.2fr) minmax(160px,.9fr) minmax(260px,1.8fr) auto 190px;
  gap:16px; align-items:center;
  padding:14px 18px; border-bottom:1px solid #eef2f6
}
.paper-row:last-child{border-bottom:0}
.paper-row:hover{background:#fbfcfe}
.paper-title{min-width:0}
.paper-title strong{display:block;font-size:15px;margin-bottom:3px}

.paper-basic-edit-trigger{
  cursor:pointer;
  border-radius:9px;
  transition:background .14s ease,box-shadow .14s ease;
}
.paper-basic-edit-trigger:hover{background:#f7f9fc}
.paper-basic-edit-trigger:focus-visible{outline:2px solid #a9c4e6;outline-offset:2px}
.paper-title-line.paper-basic-edit-trigger{padding:3px 5px;margin:-3px -5px 0}
.paper-journal-edit-trigger{display:inline-flex;align-items:center;min-width:0;max-width:100%;padding:3px 5px;margin-left:-5px;color:inherit}
#paperBasicsDialog{width:min(720px,94vw)}
#paperBasicsDialog textarea{min-height:92px}
.paper-basics-helper{font-size:12px;color:#98a2b3;line-height:1.55;margin-top:-2px}
#paperBasicsJournal:disabled{background:#f5f7fa;color:#667085;border-color:#e1e6ed;box-shadow:none;cursor:not-allowed}
.journal-input-wrap.journal-locked{background:#f5f7fa;border-radius:12px}
.journal-input-wrap.journal-locked .journal-picker-btn{opacity:.38;cursor:not-allowed;pointer-events:none}
.paper-basic-edit-trigger.journal-locked-view{color:#667085}
.paper-sub{font-size:12px;color:#667085;white-space:nowrap;overflow:hidden;display:flex;align-items:center;min-width:0}
.paper-sub .paper-journal-edit-trigger{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.paper-sub .journal-meta-badges{flex:0 0 auto}
.paper-next-inline{font-size:13px;line-height:1.45;color:#344054}
.paper-next-inline b{display:block;color:#101828;margin-bottom:2px}
.row-badges{display:flex;gap:6px;flex-wrap:nowrap;justify-content:flex-start;align-items:center;min-width:0}
.stage-select{
  width:100%; border:1px solid #d0d5dd; border-radius:9px;
  padding:8px 10px; background:#fff; color:#182230
}
.stage-empty{padding:34px;text-align:center;color:#98a2b3}
.paper-addbar{display:flex;justify-content:flex-end;margin-bottom:12px}
@media(max-width:1050px){
  .paper-row{grid-template-columns:1fr 1fr;gap:10px}
  .paper-next-inline{grid-column:1 / -1}
  .row-badges{justify-content:flex-start}
}
@media(max-width:680px){
  .paper-row{grid-template-columns:1fr}
  .hero h2{font-size:28px}
  .kpis{grid-template-columns:repeat(2,1fr)}
}


.paper-row-wrap{border-bottom:1px solid #eef2f6}
.paper-row-wrap:last-child{border-bottom:0}
.paper-row{border-bottom:0}
.assignment-toggle{
  background:#f2f4f7;color:#344054;border:1px solid #e4e7ec;
  border-radius:8px;padding:7px 10px;font-size:12px;font-weight:700;white-space:nowrap
}
.assignment-toggle:hover{background:#e9eef5}
.assignments-panel{
  display:none;background:#fbfcfe;border-top:1px dashed #d0d5dd;
  padding:12px 18px 15px
}
.assignments-panel.open{display:block}
.assignment-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}
.assignment-head strong{font-size:13px}
.assignment-list{display:flex;flex-direction:column;gap:7px}
.assignment-row{
  display:grid;grid-template-columns:150px minmax(240px,1fr) 130px 130px 100px auto;
  gap:10px;align-items:center;background:#fff;border:1px solid var(--border);
  border-radius:10px;padding:9px 10px;font-size:12px
}
.assignment-person{font-weight:800}
.assignment-status{display:inline-block;border-radius:999px;padding:4px 7px;background:#f2f4f7;color:#475467;font-weight:700}
.assignment-status.waiting{background:var(--amberbg);color:var(--amber)}
.assignment-status.done{background:var(--greenbg);color:var(--green)}
.assignment-empty{padding:12px;color:#98a2b3;font-size:12px;text-align:center}
.add-assignment{background:var(--navy);color:#fff;padding:7px 10px;font-size:12px}
.assignment-actions{display:flex;gap:5px;justify-content:flex-end}
@media(max-width:1100px){
  .assignment-row{grid-template-columns:130px 1fr 110px 100px}
  .assignment-row .assignment-date2,.assignment-row .assignment-actions{grid-column:auto}
}
@media(max-width:760px){
  .assignment-row{grid-template-columns:1fr}
}


.field-label-row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.inline-link{
  background:transparent;color:var(--navy);padding:0;border:0;
  font-size:12px;font-weight:800;text-decoration:underline;cursor:pointer
}
.collab-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:4px 0 12px}
.collab-search{flex:1;min-width:0}
.collab-list{display:flex;flex-direction:column;gap:8px;max-height:360px;overflow-y:auto;overflow-x:hidden;padding-right:2px}
.collab-row{
  display:grid;grid-template-columns:1.1fr 1.4fr 1.5fr 1.2fr auto;
  gap:10px;align-items:center;border:1px solid var(--border);
  border-radius:10px;padding:10px;background:#fff;font-size:12px;box-sizing:border-box;max-width:100%
}
.collab-row>*{min-width:0}
.collab-row strong{font-size:13px}
.collab-muted{color:#667085;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.collab-actions{display:flex;gap:6px;justify-content:flex-end;align-items:center;white-space:nowrap}
.collab-empty{padding:24px;text-align:center;color:#98a2b3;border:1px dashed var(--border);border-radius:10px}
.collab-library-helper{font-size:12px;color:#98a2b3;margin:-3px 2px 10px}
#authorPickerDialog{width:min(820px,94vw)}
#authorPickerDialog .collab-list{overflow-y:auto;overflow-x:hidden}
#authorPickerDialog .author-picker-row{grid-template-columns:minmax(150px,.85fr) minmax(0,1.8fr) auto;gap:14px;padding:12px}
#authorPickerDialog .author-picker-main{min-width:0}
#authorPickerDialog .author-picker-affiliations{min-width:0;overflow:hidden}
#authorPickerDialog .author-picker-add{min-width:66px;white-space:nowrap;padding-left:12px;padding-right:12px}
#collaboratorLibraryDialog{width:min(940px,96vw)}
#collaboratorLibraryDialog .collab-row{grid-template-columns:minmax(150px,.8fr) minmax(230px,1.55fr) minmax(190px,1fr) auto;gap:14px;padding:12px}
#collaboratorLibraryDialog .collab-contact{line-height:1.65}
.paper-addbar{gap:10px}
.paper-library-btn{background:#fff}
.collab-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:start;grid-auto-rows:max-content}
.collab-form-grid label{margin:0}
.affiliations-editor{grid-column:1 / -1;padding:2px 0 0;margin:6px 0 6px;background:transparent;display:flex;flex-direction:column;align-items:stretch;align-self:start}
.affiliations-editor-head{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-bottom:8px}
.affiliations-editor-title{font-size:13px;font-weight:800;color:#101828}
.affiliations-editor-note{font-size:11px;color:#98a2b3;font-weight:500}
.affiliations-list{display:flex;flex-direction:column;gap:8px}
.affiliation-editor-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 10px;align-items:end}
.affiliation-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px;min-width:0}
.affiliation-pair label{min-width:0}
.affiliation-remove{align-self:end;margin-bottom:2px;white-space:nowrap}
.affiliation-row-hint{grid-column:1 / -1;margin-top:0}.affiliation-row-hint:empty{display:none}
.affiliations-add{margin-top:8px;align-self:flex-start;justify-self:start}

/* Softer custom institution picker chevron */
.affiliation-input-wrap{position:relative;min-width:0}
.affiliation-input-wrap .collab-aff-zh{padding-right:42px!important}
.affiliation-input-wrap .collab-aff-zh::-webkit-calendar-picker-indicator{opacity:0!important;display:none!important;-webkit-appearance:none!important}
.affiliation-input-wrap .collab-aff-zh::-webkit-list-button{opacity:0!important;display:none!important}
.affiliation-picker-btn{
  position:absolute;right:6px;top:50%;transform:translateY(-50%);
  width:30px;height:30px;padding:0;border:0;border-radius:8px;
  background:transparent;display:flex;align-items:center;justify-content:center;
  color:#667085;cursor:pointer;transition:background .14s ease,color .14s ease
}
.affiliation-picker-btn:hover{background:#f2f4f7;color:#344054}
.affiliation-picker-btn:focus-visible{outline:2px solid rgba(23,54,93,.16);outline-offset:1px}
.affiliation-picker-btn svg{width:16px;height:16px;display:block;pointer-events:none}


/* Compact PaperBloom-owned institution suggestion panel */
.institution-picker-menu{
  position:absolute;z-index:1400;width:100%;min-width:0;
  padding:5px;background:#fff;border:1px solid #e4e7ec;border-radius:12px;
  box-shadow:0 12px 28px rgba(16,24,40,.14);overflow:auto;max-height:220px
}
.institution-picker-menu[hidden]{display:none!important}
.institution-picker-option{
  width:100%;padding:7px 10px;border:0;border-radius:8px;background:transparent;
  text-align:left;display:flex;flex-direction:column;gap:2px;cursor:pointer;color:#182230
}
.institution-picker-option:hover,.institution-picker-option.is-active{background:#f5f7fa}
.institution-picker-zh{font-size:14px;line-height:1.28;font-weight:600;color:#475467;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.institution-picker-en{font-size:12px;line-height:1.25;font-weight:500;color:#7b8798;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.institution-picker-empty{padding:7px 10px;color:#98a2b3;font-size:12px;line-height:1.3}


/* Journal memory picker: same soft chevron language as institution picker,
   with a PaperBloom-owned suggestion panel instead of the browser datalist UI. */
.journal-input-wrap{position:relative;display:block;min-width:0}
.journal-input-wrap > input{padding-right:42px!important}
.journal-picker-btn{
  position:absolute;right:6px;top:50%;transform:translateY(-50%);
  width:30px;height:30px;padding:0;border:0;border-radius:8px;
  background:transparent;display:flex;align-items:center;justify-content:center;
  color:#667085;cursor:pointer;transition:background .14s ease,color .14s ease
}
.journal-picker-btn:hover{background:#f2f4f7;color:#344054}
.journal-picker-btn:focus-visible{outline:2px solid rgba(23,54,93,.16);outline-offset:1px}
.journal-picker-btn svg{width:16px;height:16px;display:block;pointer-events:none}
.journal-picker-menu{
  position:absolute;z-index:1200;min-width:240px;max-width:calc(100% - 16px);
  padding:6px;background:#fff;border:1px solid #e4e7ec;border-radius:12px;
  box-shadow:0 14px 34px rgba(16,24,40,.16);overflow:auto;max-height:224px
}
.journal-picker-menu[hidden]{display:none!important}
.journal-picker-option{
  width:100%;height:40px;padding:0 12px;border:0;border-radius:8px;background:transparent;
  color:#182230;text-align:left;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  font:inherit;font-size:14px;font-weight:600;color:#475467;cursor:pointer
}
.journal-picker-option:hover,.journal-picker-option.is-active{background:#f5f7fa}
.journal-picker-empty{padding:10px 12px;color:#98a2b3;font-size:12px;white-space:nowrap}
dialog.pb-journal-host{overflow:visible}
.author-picker-row{cursor:pointer;transition:background .14s ease,border-color .14s ease,transform .14s ease}
.author-picker-row:hover{background:#f7faff;border-color:#cfd9ea}
.author-picker-row:active{transform:translateY(1px)}
@media(max-width:760px){
  .collab-row,#authorPickerDialog .author-picker-row,#collaboratorLibraryDialog .collab-row{grid-template-columns:1fr}
  #authorPickerDialog .author-picker-add{justify-self:start}
  .collab-form-grid{grid-template-columns:1fr}
  .affiliations-editor{grid-column:auto}
  .affiliation-editor-row{grid-template-columns:1fr}
  .affiliation-pair{grid-template-columns:1fr}
  .affiliation-remove{margin:0;justify-self:start}
  .affiliation-row-hint{grid-column:1}
}


select{
  -webkit-appearance:none;
  appearance:none;
  background-color:#fff;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath d='M2 3l5 5 5-5' fill='none' stroke='%23344054' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 14px center;
  background-size:14px 10px;
  padding-right:42px !important;
}


.author-block{
  margin:14px 0 2px;
  border:1px solid #e4e7ec;
  border-radius:12px;
  padding:12px;
  background:#fbfcfe;
}
.author-block-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px
}
.author-block-head strong{font-size:13px}
.author-list{display:flex;flex-direction:column;gap:7px}
.author-item{
  display:grid;
  grid-template-columns:34px minmax(170px,1fr) minmax(160px,1.2fr) auto;
  gap:9px;align-items:center;
  background:#fff;border:1px solid #e4e7ec;border-radius:10px;padding:8px 9px;
  font-size:12px
}
.author-order{
  width:26px;height:26px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:#eef4fb;color:#1b416d;font-weight:800
}
.author-name{font-weight:800}
.author-affil{color:#667085;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.author-controls{display:flex;gap:5px;justify-content:flex-end}
.author-empty{
  color:#98a2b3;text-align:center;padding:13px;border:1px dashed #d0d5dd;border-radius:9px
}
.author-actions-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:9px}
.secondary-small{
  background:#fff;color:#344054;border:1px solid #d0d5dd;
  padding:7px 10px;font-size:12px
}
.author-chipline{
  display:flex;align-items:center;gap:7px;flex-wrap:wrap;
  color:#667085;font-size:12px;margin-top:5px
}
.author-chip{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:24px;height:22px;padding:0 7px;border-radius:999px;
  background:#f2f4f7;color:#475467;font-weight:700
}
.paper-author-btn{
  background:#f2f4f7;color:#344054;border:1px solid #e4e7ec;
  border-radius:8px;padding:7px 10px;font-size:12px;font-weight:700;white-space:nowrap
}
.paper-author-btn:hover{background:#e9eef5}
.author-manager-list{display:flex;flex-direction:column;gap:8px;max-height:360px;overflow:auto}
.author-manager-row{
  display:grid;grid-template-columns:34px 1fr 1.2fr auto;
  gap:10px;align-items:center;border:1px solid #e4e7ec;border-radius:10px;padding:9px 10px
}
@media(max-width:760px){
  .author-item,.author-manager-row{grid-template-columns:34px 1fr}
  .author-affil,.author-controls{grid-column:2}
}


.workflow-step[data-stage="归档"]{
  color:#667085;
}
.workflow-step[data-stage="归档"].active{
  background:#667085;
  color:#fff;
  border-color:#667085;
  box-shadow:0 4px 10px rgba(71,84,103,.16);
}


.stage-people{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  min-width:0;
  color:#475467;
  font-size:12px;
  white-space:nowrap;
}
.stage-people-label{
  color:#98a2b3;
  font-weight:600;
}
.stage-people-names{
  max-width:180px;
  overflow:hidden;
  text-overflow:ellipsis;
  font-weight:700;
  color:#344054;
}


.institution-hint{font-size:11px;color:#86868b;font-weight:500;margin-top:4px;min-height:16px}
.institution-hint.matched{color:#067647}
.institution-hint.new{color:#667085}


.author-role-cell{
  display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:220px
}
.author-role-toggle{
  border:1px solid #d0d5dd;background:#fff;color:#475467;
  border-radius:999px;padding:6px 9px;font-size:11px;font-weight:750;cursor:pointer;
  transition:all .14s ease
}
.author-role-toggle:hover{background:#f8fafc}
.author-role-toggle.active-cofirst{
  background:#f2edff;border-color:#d8c8ff;color:#6941c6
}
.author-role-toggle.active-corresponding{
  background:#fff3e7;border-color:#f0d1b0;color:#ad5608
}
.self-badge{
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:999px;padding:5px 8px;background:#edf4ff;color:#245ea8;
  font-size:11px;font-weight:800;white-space:nowrap
}
.set-self-btn{
  border:1px solid #d0d5dd;background:#fff;color:#475467;
  border-radius:999px;padding:5px 8px;font-size:11px;font-weight:700;cursor:pointer
}
.set-self-btn:hover{background:#f8fafc}
.identity-badge{
  display:inline-flex;align-items:center;justify-content:center;height:24px;
  border-radius:999px;padding:0 8px;font-size:11px;font-weight:800;white-space:nowrap
}
.identity-badge.first{background:#edf4ff;color:#245ea8;border:1px solid #cfe0fb}
.identity-badge.cofirst{background:#f2edff;color:#6941c6;border:1px solid #d8c8ff}
.identity-badge.corresponding{background:#fff3e7;color:#ad5608;border:1px solid #f0d1b0}
.author-item{
  grid-template-columns:34px minmax(170px,1fr) minmax(160px,1.05fr) minmax(250px,1.2fr) auto;
}
.author-manager-row{
  grid-template-columns:34px minmax(170px,1fr) minmax(160px,1.05fr) minmax(250px,1.2fr) auto;
}
.paper-row{
  grid-template-columns:minmax(260px,1.35fr) minmax(260px,1.05fr) minmax(220px,.9fr) auto 190px;
  gap:18px;
}
.my-identity-wrap{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
@media(max-width:1100px){
  .author-item,.author-manager-row{grid-template-columns:34px 1fr}
  .author-affil,.author-role-cell,.author-controls{grid-column:2}
}


/* 草稿：只保存未完成的论文基本信息，不进入阶段计划 / 分工 / 时间管理 */
.draft-paper-row{display:grid;grid-template-columns:minmax(280px,1.5fr) minmax(220px,1fr) minmax(200px,.8fr) auto;gap:18px;align-items:center;padding:16px 18px;border-bottom:1px solid #eef2f6;background:#fff}
.draft-paper-row:last-child{border-bottom:0}.draft-paper-row:hover{background:#fbfcfe}.draft-paper-main{min-width:0}.draft-paper-name{font-size:15px;font-weight:800;color:#182230;line-height:1.35}.draft-paper-title{font-size:12px;color:#667085;margin-top:5px;line-height:1.45;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.draft-paper-meta{font-size:12px;color:#667085;line-height:1.6}.draft-paper-missing{font-size:12px;color:#b54708;line-height:1.55}.draft-paper-missing.ready{color:#067647}.draft-paper-actions{display:flex;gap:8px;justify-content:flex-end;align-items:center;white-space:nowrap}.draft-continue-btn{background:#1f4b7a;color:#fff;padding:9px 13px;font-size:12px}.draft-delete-btn{background:#fff4f2;color:#b42318;border:1px solid #fecdca;padding:9px 11px;font-size:12px}.paper-draft-status{margin:-3px 0 8px;min-height:18px;color:#667085;font-size:12px;font-weight:500}.paper-draft-status.saved{color:#067647}.paper-draft-status.ready{color:#245ea8}@media(max-width:900px){.draft-paper-row{grid-template-columns:1fr}.draft-paper-actions{justify-content:flex-start}}

.stage-plan-box{
  min-width:150px;
  padding:8px 10px;
  border:1px solid #e4e7ec;
  border-radius:12px;
  background:#fbfcfe;
  cursor:pointer;
  transition:all .14s ease;
}
.stage-plan-box:hover{background:#f5f8fc;border-color:#cfd8e3}
.stage-plan-label{display:block;color:#98a2b3;font-size:11px;font-weight:700;margin-bottom:3px}
.stage-plan-date{display:block;color:#344054;font-size:13px;font-weight:800;line-height:1.2}
.stage-plan-reminder{display:block;color:#667085;font-size:11px;margin-top:3px}
.stage-plan-box.overdue{background:#fff6f5;border-color:#fecdca}
.stage-plan-box.overdue .stage-plan-date{color:#b42318}
.stage-plan-box.due-soon{background:#fffbf2;border-color:#fedf89}
.stage-plan-box.unset{border-style:dashed;background:#fff}
.stage-plan-box.unset .stage-plan-date{color:#667085;font-weight:700}
.stage-jump-select{
  width:112px!important;
  min-width:112px;
  border:1px solid #d0d5dd;
  border-radius:10px;
  padding:9px 34px 9px 10px!important;
  background-color:#fff;
  font-size:12px;
  font-weight:700;
}
.stage-complete-btn{
  min-width:132px;
  border:0;
  border-radius:11px;
  padding:10px 13px;
  background:#1f4b7a;
  color:#fff;
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
  cursor:pointer;
  box-shadow:0 3px 8px rgba(31,75,122,.12);
}
.stage-complete-btn:hover{background:#173c64}
.stage-complete-btn.archive{background:#667085}
.stage-transition-summary{
  border:1px solid #e4e7ec;
  border-radius:14px;
  background:#f8fafc;
  padding:12px 14px;
  margin:12px 0 4px;
}
.stage-transition-summary .fromto{font-size:14px;font-weight:800;color:#344054}
.stage-transition-summary .note{font-size:12px;color:#667085;margin-top:5px;line-height:1.45}
.stage-plan-warning{
  margin-top:10px;
  padding:9px 11px;
  border-radius:10px;
  background:#fff8eb;
  color:#9a4b06;
  font-size:12px;
  line-height:1.45;
  display:none;
}
.stage-plan-warning.show{display:block}
.paper-row{
  grid-template-columns:minmax(235px,1.25fr) 150px minmax(250px,1fr) minmax(170px,.78fr) auto 112px 132px!important;
  gap:14px!important;
  min-height:112px;
}
@media(max-width:1250px){
  .paper-row{grid-template-columns:minmax(220px,1.2fr) 145px minmax(230px,.95fr) minmax(165px,.75fr) auto 112px 132px!important}
}
@media(max-width:1050px){
  .paper-row{grid-template-columns:1fr 1fr!important;gap:10px!important}
}
@media(max-width:680px){
  .paper-row{grid-template-columns:1fr!important}
}

/* Author manager: wider desktop dialog to keep author info, roles and controls on one line */
#paperAuthorManagerDialog{
  width:min(1120px,96vw);
  max-width:1120px;
}
#paperAuthorManagerDialog form{
  padding:26px;
}
#paperAuthorManagerDialog .author-manager-list{
  max-height:440px;
  overflow-y:auto;
  overflow-x:hidden;
}
#paperAuthorManagerDialog .author-manager-row{
  grid-template-columns:38px minmax(180px,1.05fr) minmax(190px,1.15fr) minmax(260px,1.25fr) auto;
  gap:14px;
  width:100%;
}
#paperAuthorManagerDialog .author-affil{
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
  line-height:1.35;
}
#paperAuthorManagerDialog .author-role-cell{
  min-width:0;
}
#paperAuthorManagerDialog .author-controls{
  white-space:nowrap;
}
@media(max-width:900px){
  #paperAuthorManagerDialog{
    width:min(760px,96vw);
  }
  #paperAuthorManagerDialog .author-manager-row{
    grid-template-columns:38px 1fr;
  }
  #paperAuthorManagerDialog .author-affil,
  #paperAuthorManagerDialog .author-role-cell,
  #paperAuthorManagerDialog .author-controls{
    grid-column:2;
  }
}


#paperAuthorManagerDialog .edit-author,
#paperDialog .edit-author{
  background:#eef4fb;
  border-color:#d5e2f0;
  color:#214d7d;
}
#paperAuthorManagerDialog .edit-author:hover,
#paperDialog .edit-author:hover{
  background:#e3edf8;
}


/* v1.4.3 Today dashboard redesign */
.kpis{grid-template-columns:repeat(2,150px)!important}
.today-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.today-panel{min-height:250px}
.today-panel.mine{border-color:#f3d6a8;background:linear-gradient(180deg,#fff,#fffdfa)}
.today-panel.chase{border-color:#f6c7c2;background:linear-gradient(180deg,#fff,#fffafa)}
.today-panel .panel-title h3{font-size:19px}
.secondary-section{margin-top:18px}
.secondary-panel{padding:15px 18px;background:rgba(255,255,255,.82)}
.secondary-panel .panel-title{margin-bottom:8px}
.secondary-panel .panel-title h3{font-size:15px;color:#344054}
.node-list{display:flex;gap:8px;flex-wrap:wrap}
.node-item{display:flex;align-items:center;gap:9px;padding:9px 11px;border:1px solid #e4e7ec;border-radius:11px;background:#fff;font-size:12px;color:#475467}
.node-item strong{color:#182230;font-size:13px}
.node-days{font-weight:800;color:#667085;background:#f2f4f7;border-radius:999px;padding:3px 7px;white-space:nowrap}
.risk-strip{display:none;margin-top:12px;border:1px solid #fedf89;background:#fffaeb;border-radius:14px;padding:12px 14px}
.risk-strip.show{display:block}
.risk-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:7px}
.risk-head strong{color:#93370d;font-size:14px}
.risk-list{display:flex;flex-direction:column;gap:6px}
.risk-item{display:flex;gap:8px;align-items:flex-start;color:#7a2e0e;font-size:12px;line-height:1.45}
.risk-dot{width:6px;height:6px;border-radius:50%;background:#f79009;margin-top:5px;flex:0 0 auto}
.risk-item.red .risk-dot{background:#d92d20}
.risk-item.red{color:#912018}
.risk-item.red .item-action-hint{color:#b42318}
.reminder-state{display:inline-flex;align-items:center;border-radius:999px;padding:3px 7px;font-size:11px;font-weight:800}
.reminder-state.soon{background:#fff4e5;color:#b54708}
.reminder-state.today{background:#fef3f2;color:#b42318}
.reminder-state.overdue{background:#fee4e2;color:#912018}
@media(max-width:900px){.today-grid{grid-template-columns:1fr}.kpis{grid-template-columns:repeat(2,1fr)!important}}



/* Today must-do card: short name + deadline tag on the same first row */
.today-mine-item{
  display:grid;
  grid-template-columns:minmax(0,1fr) max-content;
  grid-template-rows:auto auto;
  column-gap:14px;
  row-gap:4px;
  align-items:start;
  min-height:76px;
}
.today-mine-head{
  grid-column:1;
  grid-row:1;
  min-width:0;
}
.today-mine-task{
  margin:0;
  min-width:0;
  color:var(--text);
  white-space:normal;
  overflow-wrap:anywhere;
  line-height:1.35;
}
.today-mine-task .reminder-state{
  display:inline-flex;
  vertical-align:middle;
  margin-left:8px;
  transform:translateY(-1px);
}
.today-mine-title{
  grid-column:1;
  grid-row:2;
  min-width:0;
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
  white-space:normal;
  overflow-wrap:anywhere;
}
.today-mine-actions{
  grid-column:2;
  grid-row:1 / span 2;
  align-self:center;
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  white-space:nowrap;
}
.today-mine-actions .mini{
  flex:0 0 auto;
  white-space:nowrap;
}
.today-chase-task{
  display:flex;
  align-items:center;
  gap:8px;
  width:fit-content;
  max-width:100%;
  margin:0;
  min-width:0;
  line-height:1.35;
}
.today-chase-paper{
  display:block;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  flex:0 1 auto;
}
.today-chase-person{
  display:inline-flex;
  align-items:center;
  color:var(--muted);
  font-size:12px;
  font-weight:600;
  white-space:nowrap;
  flex:0 0 auto;
}
.today-chase-task .reminder-state{
  margin:0;
  transform:none;
  white-space:nowrap;
  flex:0 0 auto;
}
@media(max-width:720px){
  .today-mine-item{
    grid-template-columns:minmax(0,1fr) max-content;
    grid-template-rows:auto auto;
  }
  .today-mine-head{grid-column:1;grid-row:1}
  .today-mine-title{grid-column:1;grid-row:2}
  .today-mine-actions{grid-column:2;grid-row:1 / span 2}
}
@media(max-width:900px){
  .today-action-item{
    grid-template-columns:1fr;
    row-gap:10px;
    align-items:start;
  }
  .today-actions{
    justify-content:flex-start;
  }
}

/* Clickable reminder items: action-oriented, without hyperlink styling */
.node-item.clickable, .risk-item.clickable{
  cursor:pointer;
  border-radius:10px;
  transition:background .15s ease, transform .15s ease, box-shadow .15s ease;
  outline:none;
}
.node-item.clickable{padding:10px 12px;}
.node-item.clickable:hover, .node-item.clickable:focus-visible{
  background:#f8fafc;
  transform:translateY(-1px);
  box-shadow:0 3px 10px rgba(16,24,40,.05);
}
.risk-item.clickable{padding:7px 8px;margin:0 -8px;}
.risk-item.clickable:hover, .risk-item.clickable:focus-visible{
  background:rgba(247,144,9,.09);
}
.item-action-hint{
  margin-left:auto;
  color:#98a2b3;
  font-size:11px;
  font-weight:700;
  white-space:nowrap;
}
.risk-item.clickable .item-action-hint{color:#b54708;}


.step-count.has-items{
  background:#ff3b30;
  color:#fff;
  box-shadow:0 2px 6px rgba(255,59,48,.22);
}
.workflow-step.active .step-count.has-items{
  background:#ff453a;
  color:#fff;
  box-shadow:0 2px 7px rgba(255,69,58,.30);
}
/* 有论文，但本人并非一作 / 共一 / 通讯：只表达“有内容”，不作为重点提醒。 */
.step-count.regular-items{
  background:#dce8f5;
  color:#526a84;
  box-shadow:none;
}
.workflow-step.active .step-count.regular-items{
  background:#dce8f5;
  color:#526a84;
  box-shadow:none;
}
.step-count.empty{
  background:#f2f4f7;
  color:#98a2b3;
  box-shadow:none;
}
.workflow-step.active .step-count.empty{
  background:rgba(255,255,255,.16);
  color:#fff;
}


.workflow-step[data-stage="录用"] .step-count.has-items{
  background:#34c759;
  color:#fff;
  box-shadow:0 2px 6px rgba(52,199,89,.24);
}
.workflow-step[data-stage="录用"].active .step-count.has-items{
  background:#30d158;
  color:#fff;
  box-shadow:0 2px 7px rgba(48,209,88,.30);
}
.workflow-step[data-stage="归档"] .step-count,
.workflow-step[data-stage="归档"] .step-count.has-items,
.workflow-step[data-stage="归档"] .step-count.empty{
  background:#f2f4f7;
  color:#98a2b3;
  box-shadow:none;
}
.workflow-step[data-stage="归档"].active .step-count,
.workflow-step[data-stage="归档"].active .step-count.has-items,
.workflow-step[data-stage="归档"].active .step-count.empty{
  background:rgba(255,255,255,.16);
  color:#fff;
  box-shadow:none;
}


.journal-history-link{
  display:inline-flex;align-items:center;gap:5px;
  height:24px;padding:0 8px;border-radius:999px;
  background:#f2f4f7;color:#475467;border:0;
  font-size:11px;font-weight:800;cursor:pointer;white-space:nowrap;
}
.journal-history-link:hover{background:#e9eef5}
.journal-meta-badges{display:inline-flex;align-items:center;gap:6px;margin-left:8px;white-space:nowrap}
.journal-node-box{
  min-width:135px;border:1px solid #e4e7ec;border-radius:12px;
  padding:9px 11px;background:#fbfcfe;display:flex;flex-direction:column;gap:3px
}
.journal-node-label{font-size:11px;color:#98a2b3;font-weight:700}
.journal-node-value{font-size:13px;color:#344054;font-weight:800}
.journal-node-date{font-size:11px;color:#667085}
.submission-timeline{display:flex;flex-direction:column;gap:8px;max-height:420px;overflow:auto}
.submission-event{
  display:grid;grid-template-columns:105px minmax(180px,1fr) 100px minmax(180px,1.2fr);
  gap:12px;align-items:center;border:1px solid #e4e7ec;background:#fff;
  border-radius:12px;padding:10px 12px;font-size:12px
}
.submission-event-date{color:#667085;font-weight:650}
.submission-event-journal{font-weight:800;color:#182230}
.submission-event-type{
  display:inline-flex;width:max-content;border-radius:999px;padding:5px 9px;
  background:#eef4fb;color:#245b91;font-weight:800
}
.submission-event-type.revision{background:#fff4e8;color:#b55708}
.submission-event-type.accept{background:#eaf8ef;color:#08783f}
.submission-event-type.reject{background:#fff1f1;color:#c43d3d}
.submission-event-note{color:#667085;line-height:1.4}
.submission-event.chronology-error{border-color:#fda29b;background:#fffafa}
.submission-time-warning{display:block;margin-top:4px;color:#d92d20;font-size:11px;font-weight:700;line-height:1.35}
.submission-event-note-line{display:block}
.submission-event-note-line + .submission-event-note-line{margin-top:2px}
.submission-empty{padding:28px;text-align:center;color:#98a2b3;border:1px dashed #d0d5dd;border-radius:12px}
.journal-confirm-card{
  padding:16px;border:1px solid #e4e7ec;border-radius:14px;background:#fbfcfe;
  font-size:14px;line-height:1.6;color:#344054
}
.journal-confirm-arrow{
  display:flex;align-items:center;justify-content:center;gap:12px;
  font-size:18px;font-weight:850;color:#1f4b7a;margin-bottom:8px
}
.journal-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.reject-btn{
  background:#fff1f1;color:#c43d3d;border:1px solid #f3cccc;
  border-radius:10px;padding:8px 11px;font-size:12px;font-weight:800
}
@media(max-width:760px){
  .submission-event{grid-template-columns:1fr}
}


.paper-title-line{
  display:flex;align-items:center;gap:9px;min-width:0;
}
.paper-year-no{
  flex:0 0 auto;
  min-width:26px;height:26px;padding:0 7px;
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:8px;background:#eef4fb;color:#1f4b7a;
  border:1px solid #d7e4f2;font-size:12px;font-weight:850;
  box-shadow:0 1px 2px rgba(16,24,40,.03);
}
.paper-title-line strong{
  min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.node-entry-box{
  width:145px;min-width:0;box-sizing:border-box;justify-self:center;
  border:1px solid #dce6f2;border-radius:12px;
  padding:9px 11px;background:#f7faff;display:flex;flex-direction:column;gap:3px;
  cursor:pointer;
}
.node-entry-label{font-size:11px;color:#8091a7;font-weight:700}
.node-entry-date{font-size:15px;color:#1f4b7a;font-weight:850;letter-spacing:-.01em}
.node-entry-detail{font-size:11px;color:#667085}
.paper-priority-badge{white-space:nowrap;flex:0 0 62px;text-align:center}
.row-badges .badge,.row-badges .identity-badge{white-space:nowrap;flex:0 0 auto}
.row-badges .my-identity-wrap{flex-wrap:nowrap;min-width:0}
.review-node-box{cursor:pointer}


.history-action-bar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid #eef2f6;
}
.history-action-bar .action-primary,
.history-action-bar .action-secondary{
  border-radius:11px;
  padding:9px 13px;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
}

/* Pre-submission review: reserve the same separate action row for every paper. */
.author-chipline:has(> .submission-info-inline-btn){
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
}
.author-chipline:has(> .submission-info-inline-btn) > span:nth-child(2){
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.author-chipline > .submission-info-inline-btn{
  grid-column:1 / -1;
  justify-self:end;
}

/* Submission author review and export */
.submission-info-inline-btn{margin-left:auto;flex:0 0 auto;min-height:28px;padding:5px 9px;border:1px solid #cfd8e3;border-radius:9px;background:#fff;color:#315f7f;font-size:11px;font-weight:750;cursor:pointer;white-space:nowrap}
.submission-info-inline-btn:hover{background:#f5f9fe;border-color:#b8c8da}
.submission-info-inline-btn.confirmed{background:#eef9f2;border-color:#cfe7d7;color:#187743}
#submissionAuthorDialog{width:min(1020px,96vw);max-width:1020px;max-height:94vh}
#submissionAuthorDialog form{padding:24px;max-height:94vh;overflow:auto}
.submission-author-tabs{display:flex;gap:4px;padding:4px;background:#f2f4f7;border-radius:12px;margin-bottom:18px}
.submission-author-tab{flex:1;border:0;background:transparent;color:#667085;border-radius:9px;padding:9px 12px;font-size:13px;font-weight:750;cursor:pointer}
.submission-author-tab.active{background:#fff;color:#17365d;box-shadow:0 1px 4px rgba(16,24,40,.09)}
.submission-author-pane{display:none}.submission-author-pane.active{display:block}
.submission-author-status{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:12px}
.submission-author-pill{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:750}
.submission-author-pill.ok{background:#ecfdf3;color:#067647}.submission-author-pill.warn{background:#fffaeb;color:#b54708}.submission-author-pill.err{background:#fef3f2;color:#b42318}
.submission-author-card{border:1px solid #e4e7ec;border-radius:14px;background:#fff;margin-bottom:12px;overflow:hidden}
.submission-author-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;background:#fbfcfe;border-bottom:1px solid #eef2f6}
.submission-author-heading{display:flex;align-items:center;gap:9px;min-width:0}.submission-author-no{width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#edf4fb;color:#285887;font-size:12px;font-weight:800;flex:0 0 auto}
.submission-author-identity{display:flex;align-items:center;gap:8px;min-width:0}.submission-author-name{font-size:14px;font-weight:800;color:#182230;white-space:nowrap}.submission-role-tags{display:flex;gap:5px;flex-wrap:nowrap;margin-top:0}.submission-role-tag{display:inline-flex;border-radius:999px;padding:2px 6px;font-size:10px;font-weight:750;background:#f2f4f7;color:#667085;white-space:nowrap}.submission-role-tag.first{background:#edf4ff;color:#245ea8}.submission-role-tag.cofirst{background:#f2edff;color:#6941c6}.submission-role-tag.corresponding{background:#fff3e7;color:#ad5608}
.submission-author-body{padding:12px 14px}.submission-author-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.submission-author-grid label{margin:0}.submission-author-wide{grid-column:1/-1}.submission-affiliations{margin-top:12px;padding-top:10px;border-top:1px solid #eef2f6}.submission-affiliations strong{font-size:12px;color:#344054}.submission-affiliation-choice{display:flex;align-items:flex-start;gap:9px;padding:8px 9px;margin:6px 0;border:1px solid #e7eaf0;border-radius:10px;background:#fbfcfe;color:#344054;font-size:12px;line-height:1.45}.submission-affiliation-choice input{width:16px;height:16px;margin:1px 0 0;flex:0 0 auto}
.submission-author-actions,.submission-output-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:16px;padding-top:14px;border-top:1px solid #eef2f6}.submission-author-actions button,.submission-output-actions button,.submission-copy-author{min-height:36px;border-radius:10px;padding:0 12px;font-size:12px;font-weight:750;cursor:pointer;white-space:nowrap}.submission-primary{border:1px solid #1f4b7a;background:#1f4b7a;color:#fff}.submission-secondary,.submission-copy-author{border:1px solid #d0d5dd;background:#fff;color:#344054}
.submission-fields{padding:6px 14px 12px}.submission-field-row{display:grid;grid-template-columns:130px minmax(0,1fr) 38px;gap:12px;align-items:center;min-height:42px;border-bottom:1px solid #f0f2f5}.submission-field-label{color:#667085;font-size:12px;font-weight:700}.submission-field-value{min-width:0;color:#182230;font-size:13px;overflow-wrap:anywhere}.submission-field-copy{width:30px;height:30px;padding:0;border:0;border-radius:8px;background:transparent;color:#667085;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.submission-field-copy:hover{background:#eef4fb;color:#1f4b7a}.submission-field-copy:disabled{opacity:.25;cursor:default}.submission-field-copy.copied{visibility:hidden}.submission-field-copy svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.submission-title-shell{border:1px solid #e4e7ec;border-radius:15px;background:#fff;padding:26px 28px;min-height:320px}.submission-title-preview{max-width:780px;margin:0 auto;color:#111827;font-family:Georgia,"Times New Roman",serif;font-size:15px;line-height:1.62}.submission-title-heading{text-align:center;font-weight:700;font-size:18px;margin-bottom:20px}.submission-title-authors{font-weight:700;margin-bottom:16px}.submission-title-aff{margin:3px 0}.submission-title-note,.submission-title-correspondence{margin-top:16px}.submission-title-preview sup{font-size:.72em;line-height:0;vertical-align:super}
@media(max-width:760px){#submissionAuthorDialog{width:97vw}.submission-author-grid{grid-template-columns:1fr}.submission-author-wide{grid-column:auto}.submission-field-row{grid-template-columns:96px minmax(0,1fr) 38px}.submission-author-card-head{align-items:flex-start;flex-direction:column}}
.history-action-bar .action-primary{
  background:#1f4b7a;
  color:#fff;
  border:1px solid #1f4b7a;
}
.history-action-bar .action-secondary{
  background:#fff8ef;
  color:#a1530a;
  border:1px solid #f0cfac;
}
.rework-box{
  padding:14px 15px;
  border:1px solid #f0cfac;
  border-radius:13px;
  background:#fffaf4;
  color:#7a4512;
  font-size:13px;
  line-height:1.55;
  margin-bottom:12px;
}


/* Unified minimalist Chinese dialog titles */
.dialog-head{align-items:center;margin-bottom:20px}
.dialog-head h2{
  margin:0;
  color:#1d1d1f;
  font-size:22px;
  line-height:1.25;
  font-weight:700;
  letter-spacing:-.02em;
}
.dialog-head .icon{flex:0 0 auto}


.history-action-centered{
  justify-content:center;
  align-items:center;
  border-top:1px solid #eef2f6;
  padding-top:16px;
  margin-top:16px;
}
.history-action-centered .action-secondary{
  background:#fff;
  color:#a1530a;
  border:1px solid #e7b980;
  min-width:120px;
}
.history-action-centered .action-primary{
  background:#1f4b7a;
  color:#fff;
  border:1px solid #1f4b7a;
  min-width:120px;
}


.transition-task-label{
  margin-top:16px;
  margin-bottom:7px;
  font-size:13px;
  font-weight:800;
  color:#182230;
}
.transition-task-sub{
  margin:0 0 10px;
  color:#98a2b3;
  font-size:11px;
  line-height:1.45;
}
.transition-task-section{
  width:100%;
  border:1px solid #e4e7ec;
  border-radius:14px;
  background:#fbfcfe;
  padding:12px;
  overflow:hidden;
}
.transition-task-head{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  margin-bottom:10px;
}
.transition-task-actions{
  display:inline-grid;
  grid-template-columns:1fr 1fr;
  gap:3px;
  padding:3px;
  background:#eef2f6;
  border-radius:11px;
}
.transition-task-choice{
  min-width:96px;
  border:0;
  background:transparent;
  color:#667085;
  border-radius:8px;
  padding:7px 12px;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  transition:.15s ease;
}
.transition-task-choice:hover{
  color:#344054;
}
.transition-task-choice.active{
  background:#fff;
  color:#17365d;
  box-shadow:0 1px 4px rgba(16,24,40,.10);
}
.transition-task-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.transition-task-row{
  position:relative;
  display:grid;
  grid-template-columns:minmax(150px,.8fr) minmax(240px,1.6fr);
  gap:10px 12px;
  width:100%;
  background:#fff;
  border:1px solid #e4e7ec;
  border-radius:12px;
  padding:12px;
}
.transition-task-row label{
  margin:0;
  min-width:0;
  font-size:11px;
  color:#667085;
  font-weight:700;
}
.transition-task-row label input,
.transition-task-row label select{
  width:100%;
  min-width:0;
  margin-top:5px;
}
.transition-task-row .task-main{
  min-width:0;
}
.transition-task-row .task-meta{
  grid-column:1 / -1;
  display:grid;
  grid-template-columns:minmax(160px,1fr) minmax(140px,.8fr) auto;
  gap:10px;
  align-items:end;
}
.transition-task-empty{
  padding:16px 12px;
  text-align:center;
  color:#98a2b3;
  border:1px dashed #d0d5dd;
  border-radius:10px;
  font-size:12px;
}
.transition-task-footer{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  align-items:center;
  margin-top:10px;
  flex-wrap:wrap;
}
.transition-task-add{
  border:1px solid #d0d5dd;
  background:#fff;
  color:#344054;
  border-radius:9px;
  padding:7px 10px;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}
.transition-task-add:hover{
  background:#f8fafc;
}
.transition-task-remove{
  border:0;
  background:#fff1f1;
  color:#c43d3d;
  border-radius:9px;
  padding:8px 10px;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  white-space:nowrap;
}
@media(max-width:760px){
  .transition-task-row{
    grid-template-columns:1fr;
  }
  .transition-task-row .task-meta{
    grid-column:1;
    grid-template-columns:1fr;
  }
  .transition-task-actions{
    width:100%;
  }
  .transition-task-choice{
    min-width:0;
  }
}


/* Unified lightweight helper text inside dialogs */
dialog .dialog-helper,
dialog .hint,
#journalConfirmText,
.stage-transition-summary .note,
.transition-task-sub,
.stage-plan-warning{
  font-size:12px;
  font-weight:400;
  line-height:1.55;
  letter-spacing:0;
}

#journalConfirmText,
.stage-transition-summary .note{
  color:#7b8492;
}

#journalRevisionDueWrap .hint,
.transition-task-sub{
  color:#98a2b3;
  margin-top:6px;
}

.journal-confirm-card{
  padding:15px 16px;
  border:1px solid #e6e9ee;
  border-radius:14px;
  background:#fafbfc;
  color:#344054;
}

.journal-confirm-arrow{
  margin-bottom:10px;
  font-size:17px;
  font-weight:700;
  letter-spacing:-.01em;
  color:#244f7d;
}

.stage-transition-summary .fromto{
  font-size:14px;
  font-weight:700;
  color:#344054;
}

.stage-plan-warning{
  font-weight:400;
  color:#9a5a1d;
}


/* Transition task card typography: align with the fields above */
.transition-task-row label{
  font-size:13px;
  font-weight:700;
  color:#475467;
}
.transition-task-row label input,
.transition-task-row label select{
  font-size:14px;
  font-weight:500;
  color:#182230;
  min-height:42px;
}
.transition-task-row .task-main input{
  font-size:14px;
}
.transition-task-remove{
  font-size:13px;
  min-height:40px;
}


.stage-plan-warning.blocking{
  background:#fff4ed;
  border:1px solid #f7c7a3;
  color:#a14b10;
  font-weight:500;
}
#transitionConfirmBtn:disabled{
  background:#d0d5dd !important;
  border-color:#d0d5dd !important;
  color:#ffffff !important;
  cursor:not-allowed;
  box-shadow:none !important;
  opacity:1;
}


/* Submission history rows: prevent horizontal overflow */
#submissionHistoryDialog{
  width:min(860px,96vw);
  max-width:860px;
}
#submissionHistoryDialog .submission-timeline{
  overflow-y:auto;
  overflow-x:hidden;
  max-height:430px;
  padding-right:2px;
}
#submissionHistoryDialog .submission-event{
  display:grid;
  grid-template-columns:110px minmax(170px,1fr) 90px minmax(160px,1.15fr) 54px;
  gap:10px 12px;
  align-items:center;
  width:100%;
  min-width:0;
  padding:14px 12px 11px;
}
#submissionHistoryDialog .submission-event-edit{
  justify-self:end;
  border:1px solid #d0d5dd;
  background:#fff;
  color:#475467;
  border-radius:9px;
  padding:6px 10px;
  font-size:11px;
  font-weight:750;
  white-space:nowrap;
  cursor:pointer;
}
#submissionHistoryDialog .submission-event-edit:hover{background:#f8fafc;color:#1f4b7a}
#submissionHistoryDialog .submission-event-updated{
  display:block;
  margin-top:4px;
  color:#98a2b3;
  font-size:10px;
  line-height:1.35;
}
#editSubmissionEventDialog{width:min(640px,94vw);max-width:640px}
#editSubmissionEventDialog .history-edit-kind{
  display:inline-flex;align-items:center;width:max-content;
  margin-bottom:14px;padding:5px 9px;border-radius:999px;
  background:#eef4fb;color:#245b91;font-size:12px;font-weight:800;
}
#editSubmissionEventDialog .history-edit-help{
  margin-top:-4px;margin-bottom:14px;color:#98a2b3;font-size:12px;line-height:1.5;
}
#editSubmissionEventDialog .history-date-rule{
  margin:-4px 0 12px;color:#98a2b3;font-size:11px;line-height:1.5;
}
#editSubmissionEventDialog .history-date-rule.error{color:#d92d20;font-weight:650;}
#editSubmissionEventDialog .history-structured-box{
  margin-top:12px;padding:13px;border:1px solid #e4e7ec;border-radius:12px;background:#fbfcfe;
}
#editSubmissionEventDialog .history-structured-box[hidden]{display:none}
#editSubmissionEventDialog #editHistoryPublishedWrap{margin-top:12px}
#editSubmissionEventDialog #editHistoryPublishedWrap[hidden]{display:none}

#submissionHistoryDialog .submission-event > *{
  min-width:0;
}
#submissionHistoryDialog .submission-event-date{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#submissionHistoryDialog .submission-event-journal{
  white-space:normal;
  overflow-wrap:anywhere;
  line-height:1.35;
}
#submissionHistoryDialog .submission-event-note{
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:break-word;
  line-height:1.45;
}
#submissionHistoryDialog .submission-event-type{
  white-space:nowrap;
}
@media(max-width:720px){
  #submissionHistoryDialog .submission-event{
    grid-template-columns:95px 1fr auto;
  }
  #submissionHistoryDialog .submission-event-type,
  #submissionHistoryDialog .submission-event-note{
    grid-column:2 / 4;
  }
  #submissionHistoryDialog .submission-event-edit{
    grid-column:3;grid-row:1;
  }
}


#revisionSubmitConfirmBtn:disabled{
  background:#d0d5dd !important;
  border-color:#d0d5dd !important;
  color:#fff !important;
  cursor:not-allowed;
  box-shadow:none !important;
}


.review-round-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:24px;
  padding:0 8px;
  border-radius:999px;
  background:#eef4ff;
  color:#315f9a;
  border:0;
  font-size:11px;
  font-weight:800;
  white-space:nowrap;
}


.history-action-centered.review-decision-actions{
  display:grid;
  grid-template-columns:repeat(3,minmax(118px,1fr));
  gap:10px;
  max-width:520px;
  margin-left:auto;
  margin-right:auto;
}
.history-action-centered.revision-only-actions{
  display:flex;
  justify-content:center;
}
.history-action-bar .action-accept{
  border-radius:11px;
  padding:9px 13px;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
  min-width:120px;
  background:#ecfdf3;
  color:#08783f;
  border:1px solid #b7ebc9;
}
.history-action-bar .action-accept:hover{
  background:#e3f9eb;
}
@media(max-width:620px){
  .history-action-centered.review-decision-actions{
    grid-template-columns:1fr;
    max-width:none;
  }
}


.field-invalid{
  border-color:#f04438 !important;
  box-shadow:0 0 0 3px rgba(240,68,56,.08) !important;
}
.transition-task-error{
  grid-column:1 / -1;
  margin-top:-4px;
  color:#d92d20;
  font-size:12px;
  font-weight:500;
  line-height:1.4;
}


/* Accepted / archived papers use a simplified outcome-information view */
.outcome-paper-wrap{
  border-bottom:1px solid #eef2f6;
}
.outcome-paper-wrap:last-child{
  border-bottom:0;
}
.outcome-paper-row{
  display:grid;
  grid-template-columns:minmax(300px,1.45fr) minmax(210px,.8fr) minmax(340px,1.35fr) minmax(150px,.62fr) auto;
  gap:22px;
  align-items:center;
  padding:20px 22px;
  background:#fff;
}
.outcome-paper-row:hover{
  background:#fbfcfe;
}
.outcome-title-line{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.outcome-title-line strong{
  font-size:16px;
  line-height:1.35;
}
.outcome-full-title{
  margin-top:6px;
  color:#667085;
  font-size:12px;
  line-height:1.45;
  max-width:560px;
}
.outcome-block{
  min-width:0;
}
.outcome-label{
  display:block;
  color:#98a2b3;
  font-size:11px;
  font-weight:700;
  margin-bottom:5px;
}
.outcome-value{
  color:#182230;
  font-size:13px;
  font-weight:750;
  line-height:1.45;
  overflow-wrap:anywhere;
}
.outcome-sub{
  margin-top:4px;
  color:#667085;
  font-size:11px;
  line-height:1.4;
}
.outcome-authors{
  display:flex;
  flex-wrap:wrap;
  gap:6px 8px;
  align-items:center;
}
.outcome-author{
  display:inline-flex;
  align-items:center;
  gap:5px;
  color:#344054;
  font-size:12px;
  line-height:1.35;
}
.outcome-author-no{
  color:#98a2b3;
  font-size:10px;
  font-weight:750;
}
.outcome-role{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:2px 6px;
  font-size:10px;
  font-weight:750;
  background:#f2f4f7;
  color:#667085;
}
.outcome-role.cofirst{
  background:#f2edff;
  color:#6941c6;
}
.outcome-role.corresponding{
  background:#fff3e7;
  color:#ad5608;
}
.outcome-date{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.outcome-date strong{
  font-size:14px;
  color:#1f4b7a;
}
.outcome-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
.outcome-history-btn{
  border:1px solid #d0d5dd;
  background:#fff;
  color:#344054;
  border-radius:10px;
  padding:9px 11px;
  font-size:12px;
  font-weight:750;
  cursor:pointer;
}
.outcome-history-btn:hover{
  background:#f8fafc;
}
.outcome-archive-btn{
  border:1px solid #1f4b7a;
  background:#1f4b7a;
  color:#fff;
  border-radius:10px;
  padding:9px 13px;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}
.outcome-archived-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:7px 10px;
  background:#f2f4f7;
  color:#667085;
  font-size:12px;
  font-weight:750;
}
@media(max-width:1100px){
  .outcome-paper-row{
    grid-template-columns:1fr 1fr;
  }
  .outcome-actions{
    justify-content:flex-start;
  }
}
@media(max-width:680px){
  .outcome-paper-row{
    grid-template-columns:1fr;
    gap:14px;
  }
}


/* Outcome row visual refinement: larger middle typography and stricter alignment */
.outcome-paper-row{
  grid-template-columns:minmax(320px,1.35fr) minmax(245px,.9fr) minmax(360px,1.35fr) minmax(150px,.62fr) auto;
  gap:28px;
  align-items:stretch;
  padding:22px 24px;
}

.outcome-paper-row > .outcome-block,
.outcome-paper-row > .outcome-actions{
  min-height:78px;
}

.outcome-block{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:0;
}

.outcome-title-line{
  gap:11px;
}

.outcome-title-line strong{
  font-size:17px;
  font-weight:750;
  line-height:1.35;
  letter-spacing:-.01em;
}

.outcome-full-title{
  margin-top:7px;
  font-size:13px;
  line-height:1.5;
  color:#667085;
}

.outcome-label{
  margin-bottom:7px;
  color:#98a2b3;
  font-size:12px;
  font-weight:650;
  line-height:1.2;
}

.outcome-value{
  color:#182230;
  font-size:15px;
  font-weight:750;
  line-height:1.45;
  letter-spacing:-.005em;
}

.outcome-sub{
  margin-top:5px;
  color:#7b8492;
  font-size:12px;
  line-height:1.45;
}

.outcome-authors{
  display:flex;
  flex-wrap:wrap;
  gap:7px 10px;
  align-items:center;
  min-height:24px;
}

.outcome-author{
  display:inline-flex;
  align-items:center;
  gap:5px;
  color:#25364a;
  font-size:14px;
  font-weight:650;
  line-height:1.4;
}

.outcome-author-no{
  color:#98a2b3;
  font-size:11px;
  font-weight:750;
}

.outcome-role{
  padding:3px 7px;
  font-size:10px;
  font-weight:750;
}

.outcome-date{
  align-items:flex-start;
}

.outcome-date strong{
  color:#1f4b7a;
  font-size:15px;
  font-weight:800;
  line-height:1.35;
}

.outcome-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:9px;
  flex-wrap:nowrap;
}

.outcome-history-btn,
.outcome-archive-btn{
  min-height:42px;
  padding:0 14px;
  font-size:13px;
}

.outcome-archived-badge{
  min-height:36px;
  padding:0 12px;
  font-size:12px;
}

@media(max-width:1180px){
  .outcome-paper-row{
    grid-template-columns:minmax(280px,1.2fr) minmax(210px,.9fr) minmax(300px,1.2fr) minmax(145px,.62fr);
  }
  .outcome-actions{
    grid-column:1 / -1;
    justify-content:flex-end;
    min-height:auto;
  }
}

@media(max-width:860px){
  .outcome-paper-row{
    grid-template-columns:1fr 1fr;
    gap:18px 22px;
  }
  .outcome-actions{
    grid-column:1 / -1;
    justify-content:flex-start;
  }
}

@media(max-width:620px){
  .outcome-paper-row{
    grid-template-columns:1fr;
  }
  .outcome-actions{
    grid-column:1;
  }
}


/* Archive result library */
.archive-head-tools{
  display:flex;
  align-items:center;
  gap:10px;
}
.archive-filter{
  min-width:150px;
  height:38px;
  padding:0 38px 0 12px;
  border:1px solid #d0d5dd;
  border-radius:10px;
  background-color:#fff;
  color:#344054;
  font-size:13px;
  font-weight:650;
}
.archive-role-filter{
  min-width:138px;
}
.archive-type-select{
  min-width:118px;
  height:40px;
  padding:0 34px 0 11px;
  border:1px solid #d0d5dd;
  border-radius:10px;
  background-color:#fff;
  color:#344054;
  font-size:12px;
  font-weight:750;
}
.archive-type-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:5px 9px;
  font-size:11px;
  font-weight:800;
  white-space:nowrap;
}
.archive-type-pill.published{
  background:#eaf8ef;
  color:#08783f;
}
.archive-type-pill.stopped{
  background:#f2f4f7;
  color:#667085;
}
.archive-meta-line{
  margin-top:5px;
  color:#667085;
  font-size:12px;
  line-height:1.45;
}
.archive-edit-btn{
  border:1px solid #d0d5dd;
  background:#fff;
  color:#344054;
  border-radius:10px;
  padding:9px 11px;
  font-size:12px;
  font-weight:750;
  cursor:pointer;
}
.archive-edit-btn:hover{background:#f8fafc}

/* Archive details dialog */
.archive-dialog-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px 14px;
}
.archive-author-check{
  margin-top:14px;
  border:1px solid #e4e7ec;
  border-radius:14px;
  background:#fbfcfe;
  padding:14px;
}
.archive-author-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:10px;
}
.archive-author-head strong{
  font-size:13px;
}
.archive-author-summary{
  display:flex;
  flex-wrap:wrap;
  gap:7px 10px;
  color:#344054;
  font-size:13px;
  line-height:1.5;
}
.archive-confirm-line{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:12px;
  color:#475467;
  font-size:13px;
}
.archive-confirm-line input{
  width:16px;
  height:16px;
}
.archive-note{
  margin-top:6px;
  color:#98a2b3;
  font-size:11px;
  line-height:1.45;
}
@media(max-width:760px){
  .archive-dialog-grid{grid-template-columns:1fr}
  .archive-head-tools{flex-wrap:wrap}
}


/* Archive outcome actions: fixed horizontal action zone */
@media(min-width:1181px){
  .outcome-paper-row{
    grid-template-columns:
      minmax(260px,1.08fr)
      minmax(210px,.82fr)
      minmax(260px,1fr)
      minmax(125px,.5fr)
      310px;
    gap:20px;
  }
}

.outcome-actions{
  min-width:0;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:nowrap;
  white-space:nowrap;
}

.outcome-history-btn,
.archive-edit-btn,
.archive-type-select{
  flex:0 0 auto;
  white-space:nowrap;
}

.outcome-history-btn{
  min-width:88px;
  height:40px;
  padding:0 13px;
  border:1px solid #d7dce3;
  border-radius:11px;
  background:#fff;
  color:#344054;
  font-size:12px;
  font-weight:700;
  box-shadow:0 1px 2px rgba(16,24,40,.025);
}

.outcome-history-btn:hover{
  background:#f8fafc;
  border-color:#c8d0da;
}

.archive-type-select{
  width:112px;
  min-width:112px;
  height:40px;
  padding:0 32px 0 12px;
  border:1px solid #cfe6d7;
  border-radius:11px;
  background-color:#f2fbf5;
  color:#187743;
  font-size:12px;
  font-weight:750;
}

.archive-edit-btn{
  min-width:70px;
  height:40px;
  padding:0 12px;
  border:1px solid #d7dce3;
  border-radius:11px;
  background:#f8fafc;
  color:#475467;
  font-size:12px;
  font-weight:700;
}

.archive-edit-btn:hover{
  background:#eef2f6;
}

/* When the action zone drops to a second row on narrower screens, keep controls horizontal. */
@media(max-width:1180px) and (min-width:621px){
  .outcome-actions{
    grid-column:1 / -1;
    justify-content:flex-end;
    flex-direction:row;
    flex-wrap:nowrap;
    min-height:auto;
  }
}

@media(max-width:620px){
  .outcome-actions{
    justify-content:flex-start;
    flex-wrap:wrap;
  }
}


.stage-jump-select option:disabled,
#transitionTargetStage option:disabled{
  color:#b4bbc5;
}


/* Archive form validation */
.archive-field-error{
  border-color:#f04438 !important;
  box-shadow:0 0 0 3px rgba(240,68,56,.08) !important;
}
.archive-error-text{
  display:none;
  margin-top:5px;
  color:#d92d20;
  font-size:11px;
  font-weight:500;
  line-height:1.35;
}
.archive-error-text.show{display:block}

/* Final author confirmation */
.archive-author-check{
  margin-top:16px;
  border:1px solid #e4e7ec;
  border-radius:16px;
  background:#fbfcfe;
  padding:14px;
}
.archive-author-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.archive-author-head strong{
  font-size:14px;
  font-weight:750;
  color:#182230;
}
.archive-author-head .ghost{
  min-height:36px;
  padding:0 12px;
  font-size:12px;
}
.archive-author-summary{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.archive-final-author{
  display:grid;
  grid-template-columns:34px minmax(150px,1fr) auto;
  gap:10px;
  align-items:center;
  border:1px solid #e7eaf0;
  border-radius:11px;
  background:#fff;
  padding:9px 10px;
}
.archive-final-author-no{
  width:28px;
  height:28px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#edf4fb;
  color:#285887;
  font-size:12px;
  font-weight:800;
}
.archive-final-author-main{
  min-width:0;
}
.archive-final-author-name{
  font-size:13px;
  font-weight:750;
  color:#182230;
  line-height:1.35;
}
.archive-final-author-affil{
  margin-top:2px;
  color:#98a2b3;
  font-size:11px;
  line-height:1.35;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.archive-final-author-roles{
  display:flex;
  gap:5px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.archive-final-role{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:3px 7px;
  font-size:10px;
  font-weight:750;
  white-space:nowrap;
}
.archive-final-role.cofirst{
  background:#f2edff;
  color:#6941c6;
}
.archive-final-role.corresponding{
  background:#fff3e7;
  color:#ad5608;
}
.archive-final-role.first{
  background:#edf4ff;
  color:#245ea8;
}
.archive-author-empty{
  border:1px dashed #f04438;
  border-radius:11px;
  padding:14px;
  text-align:center;
  color:#d92d20;
  font-size:12px;
}
.archive-confirm-box{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-top:12px;
  padding:10px 12px;
  border-radius:11px;
  background:#f6f8fb;
  border:1px solid transparent;
}
.archive-confirm-box.invalid{
  border-color:#f04438;
  background:#fff7f6;
}
.archive-confirm-box input{
  width:17px;
  height:17px;
  margin-top:1px;
  flex:0 0 auto;
}
.archive-confirm-copy{
  color:#475467;
  font-size:12px;
  line-height:1.45;
}
.archive-note{
  margin-top:8px;
  color:#98a2b3;
  font-size:11px;
  line-height:1.45;
}
#archiveSaveBtn{
  min-width:104px;
}


.stage-jump-select option:disabled,
#transitionTargetStage option:disabled{
  color:#b8bec7;
  background:#f7f8fa;
}


.author-role-warning{
  display:none;
  margin-top:10px;
  padding:9px 12px;
  border:1px solid #f04438;
  border-radius:10px;
  background:#fff7f6;
  color:#d92d20;
  font-size:12px;
  font-weight:500;
  line-height:1.45;
}
.author-role-warning.show{display:block}



/* Unified modal validation */
@keyframes subtleFieldShake{
  0%,100%{transform:translateX(0)}
  20%{transform:translateX(-2px)}
  40%{transform:translateX(2px)}
  60%{transform:translateX(-1px)}
  80%{transform:translateX(1px)}
}
.ui-invalid,
.field-invalid,
.archive-field-error{
  border-color:#fda29b !important;
  box-shadow:0 0 0 3px rgba(240,68,56,.12) !important;
  background:#fffafa !important;
}
.ui-invalid-shake{
  animation:subtleFieldShake .22s ease-in-out 1;
}
.transition-task-error,
.archive-error-text{
  color:#d92d20;
  font-size:12px;
  font-weight:500;
  line-height:1.45;
}
.archive-confirm-box.invalid,
.author-role-warning.show{
  border-color:#fda29b !important;
  background:#fff7f6 !important;
  box-shadow:0 0 0 3px rgba(240,68,56,.08);
}

/* Archive journal metrics */
.outcome-label-row{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
  min-height:22px;
  margin-bottom:7px;
}
.outcome-label-row .outcome-label{
  margin-bottom:0;
}
.archive-journal-badges{
  display:inline-flex;
  align-items:center;
  flex-wrap:wrap;
  gap:5px;
}
.journal-zone-pill,
.journal-if-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:22px;
  padding:2px 8px;
  border-radius:999px;
  border:1px solid transparent;
  font-size:10px;
  font-weight:750;
  line-height:1;
  white-space:nowrap;
}
.journal-zone-pill.zone-1{
  background:#fff1f0;
  color:#d92d20;
  border-color:#fecaca;
}
.journal-zone-pill.zone-2{
  background:#fff7ed;
  color:#c2410c;
  border-color:#fed7aa;
}
.journal-zone-pill.zone-3{
  background:#eff6ff;
  color:#2563eb;
  border-color:#bfdbfe;
}
.journal-zone-pill.zone-4{
  background:#f2f4f7;
  color:#667085;
  border-color:#e4e7ec;
}
.journal-if-pill{
  background:#f4f3ff;
  color:#5925dc;
  border-color:#d9d6fe;
}

/* Archive list: overview is read-only; type changes live inside Edit */
.archive-type-pill{
  min-width:58px;
  padding:5px 10px;
  font-size:11px;
  font-weight:750;
  border:1px solid transparent;
}
.archive-type-pill.published{
  background:#eef9f2;
  color:#187743;
  border-color:#d6efdf;
}
.archive-type-pill.stopped{
  background:#f4f5f7;
  color:#667085;
  border-color:#e7e9ed;
}

/* Right actions: only 投稿记录 + 编辑 */
@media(min-width:1181px){
  .outcome-paper-row{
    grid-template-columns:
      minmax(270px,1.12fr)
      minmax(220px,.86fr)
      minmax(280px,1.08fr)
      minmax(150px,.56fr)
      190px;
    gap:22px;
  }
}
.outcome-actions{
  min-width:190px;
  width:190px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:nowrap;
}
.outcome-history-btn,
.archive-edit-btn{
  height:40px;
  white-space:nowrap;
}
.outcome-history-btn{
  min-width:96px;
  padding:0 14px;
}
.archive-edit-btn{
  min-width:70px;
  padding:0 14px;
}


.archive-type-select{
  display:none !important;
}


/* Archive filter count: plain horizontal text, no pill */
.archive-head-tools .stage-count{
  display:inline-block;
  width:auto;
  min-width:0;
  height:auto;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  color:#7b8492;
  font-size:12px;
  font-weight:600;
  line-height:1;
  white-space:nowrap;
}
.archive-head-tools{
  gap:12px;
  margin-right:22px;
}
@media(max-width:760px){
  .archive-head-tools{margin-right:0;}
}


/* Collaborator memory / autofill */
.collab-memory-hint{
  grid-column:1 / -1;
  display:none;
  margin-top:-4px;
  padding:8px 10px;
  border:1px solid #d6e7f7;
  border-radius:10px;
  background:#f5f9fe;
  color:#53708f;
  font-size:11px;
  font-weight:500;
  line-height:1.45;
}
.collab-memory-hint.show{display:block}
.collab-memory-hint strong{
  color:#285887;
  font-weight:750;
}


/* Final consistency pass */
dialog input,
dialog select,
dialog textarea{
  border-color:#d0d5dd;
  transition:border-color .14s ease, box-shadow .14s ease, background .14s ease, transform .14s ease;
}
dialog input:focus,
dialog select:focus,
dialog textarea:focus{
  outline:none;
  border-color:#91a4ba;
  box-shadow:0 0 0 3px rgba(23,54,93,.07);
}
dialog .ui-invalid:focus,
dialog .field-invalid:focus,
dialog .archive-field-error:focus{
  border-color:#fda29b !important;
  box-shadow:0 0 0 3px rgba(240,68,56,.12) !important;
}
dialog .dialog-helper{
  color:#8a94a3;
  font-size:12px;
  font-weight:400;
  line-height:1.5;
}
#paperStage option:disabled{
  color:#b5bdc8;
}


/* Derived first-author identity: author order decides 一作; 共一 overrides it */
.author-derived-role{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:30px;
  padding:0 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:750;
  white-space:nowrap;
}
.author-derived-role.first{
  background:#edf4ff;
  color:#245ea8;
  border:1px solid #cfe0fb;
}
.outcome-role.first{
  background:#edf4ff;
  color:#245ea8;
}



/* PaperBloom 1.0.1 full package — robust author layout in “新增论文”.
   Keep author identity, affiliations, roles and controls inside the card at all window widths. */
#paperDialog{
  width:min(780px,94vw);
  max-width:780px;
}
#paperDialog form{
  overflow-x:hidden;
}
#paperDialog .author-block{
  min-width:0;
  overflow:hidden;
}
#paperDialog .author-block-head{
  flex-wrap:wrap;
  align-items:flex-start;
}
#paperDialog .author-block-head .muted{
  flex:1 1 280px;
  text-align:right;
  line-height:1.4;
}
#paperDialog .author-list,
#paperDialog .author-item,
#paperDialog .author-item > *{
  min-width:0;
}
#paperDialog .author-item{
  width:100%;
  grid-template-columns:34px minmax(0,1fr) minmax(0,1fr);
  grid-template-areas:
    "order identity affiliation"
    ". roles roles"
    ". controls controls";
  column-gap:12px;
  row-gap:8px;
  align-items:center;
  padding:10px 11px;
}
#paperDialog .author-item .author-order{grid-area:order;align-self:start;margin-top:1px}
#paperDialog .author-item > div:nth-child(2){grid-area:identity;overflow:hidden}
#paperDialog .author-item > div:nth-child(2) .author-name,
#paperDialog .author-item > div:nth-child(2) .collab-muted{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#paperDialog .author-item .author-affil{
  grid-area:affiliation;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#paperDialog .author-item .author-role-cell{
  grid-area:roles;
  display:flex;
  width:100%;
  min-width:0;
  flex-wrap:wrap;
  gap:6px;
  justify-content:flex-start;
}
#paperDialog .author-item .author-controls{
  grid-area:controls;
  display:flex;
  width:100%;
  min-width:0;
  flex-wrap:wrap;
  gap:6px;
  justify-content:flex-end;
}
#paperDialog .author-item .author-role-toggle,
#paperDialog .author-item .set-self-btn,
#paperDialog .author-item .self-badge,
#paperDialog .author-item .author-derived-role,
#paperDialog .author-item .mini{
  flex:0 0 auto;
  white-space:nowrap;
}
@media(max-width:640px){
  #paperDialog{width:96vw}
  #paperDialog .author-block-head .muted{text-align:left}
  #paperDialog .author-item{
    grid-template-columns:34px minmax(0,1fr);
    grid-template-areas:
      "order identity"
      ". affiliation"
      ". roles"
      ". controls";
  }
  #paperDialog .author-item .author-affil{
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
    line-height:1.35;
  }
  #paperDialog .author-item .author-controls{justify-content:flex-start}
}



/* PaperBloom HTML formal-test layout: robust author cards at narrow desktop widths. */
#paperDialog{
  width:min(820px,96vw);
  max-width:820px;
}
#paperDialog form,
#paperDialog .author-block,
#paperDialog .author-list{
  min-width:0;
  overflow-x:hidden;
}
#paperDialog .author-item{
  display:grid;
  grid-template-columns:36px minmax(0,1fr) !important;
  gap:6px 12px;
  width:100%;
  min-width:0;
  box-sizing:border-box;
  align-items:start;
  padding:14px 12px 11px;
}
#paperDialog .author-item .author-order{
  grid-column:1;
  grid-row:1;
  align-self:start;
  margin-top:1px;
}
#paperDialog .author-item > div:nth-child(2){
  grid-column:2;
  grid-row:1;
  min-width:0;
}
#paperDialog .author-item > div:nth-child(2) .author-name{
  white-space:normal;
  overflow-wrap:anywhere;
  line-height:1.35;
}
#paperDialog .author-item > div:nth-child(2) .collab-muted{
  white-space:normal;
  overflow-wrap:anywhere;
  margin-top:2px;
}
#paperDialog .author-item .author-affil{
  grid-column:2;
  grid-row:2;
  min-width:0;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
  overflow-wrap:anywhere;
  line-height:1.35;
  color:#667085;
}
#paperDialog .author-item .author-role-cell{
  grid-column:2;
  grid-row:3;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-start;
  width:100%;
  min-width:0 !important;
  gap:6px;
  margin-top:2px;
}
#paperDialog .author-item .author-controls{
  grid-column:2;
  grid-row:4;
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  align-items:center;
  width:100%;
  min-width:0;
  gap:6px;
  margin-top:1px;
  padding-right:2px;
}
#paperDialog .author-item .author-role-toggle,
#paperDialog .author-item .set-self-btn,
#paperDialog .author-item .self-badge,
#paperDialog .author-item .author-derived-role,
#paperDialog .author-item .mini{
  max-width:100%;
  flex:0 0 auto;
  white-space:nowrap;
  box-sizing:border-box;
}
#paperDialog .author-block-head{
  display:flex;
  flex-wrap:wrap;
  gap:6px 14px;
}
#paperDialog .author-block-head .muted{
  flex:1 1 300px;
  min-width:0;
  white-space:normal;
  text-align:right;
}
@media(max-width:680px){
  #paperDialog{width:97vw}
  #paperDialog .author-block-head .muted{text-align:left}
}



/* PaperBloom calendar -----------------------------------------------------
   Native PaperBloom calendar: single chevrons change month; double
   chevrons change year. The calendar uses the browser top-layer Popover API
   when available, avoiding clipping by modal dialogs.
*/
.pb-date-input{
  padding-right:38px!important;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E") no-repeat right 11px center!important;
  cursor:pointer;
}
.pb-calendar-popover{
  position:absolute;
  width:284px;
  max-width:calc(100vw - 24px);
  margin:0;
  padding:0;
  background:#fff;
  color:#182230;
  border:1px solid #d9e0e8;
  border-radius:14px;
  box-shadow:0 18px 48px rgba(15,23,42,.18);
  z-index:2147483000;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Segoe UI","Microsoft YaHei",sans-serif;
  overflow:hidden;
  -webkit-user-select:none;
  user-select:none;
  -webkit-touch-callout:none;
}
.pb-calendar-popover[hidden]{display:none!important}
dialog.pb-calendar-host{overflow:visible!important}
.pb-calendar-nav{
  display:grid;
  grid-template-columns:34px 34px minmax(96px,1fr) 34px 34px;
  align-items:center;
  gap:1px;
  padding:7px 8px;
  border-bottom:1px solid #eef1f5;
}
.pb-calendar-nav button{
  width:32px;height:32px;padding:0;border:0;background:transparent;border-radius:8px;
  display:flex;align-items:center;justify-content:center;color:#718096;cursor:pointer;
}
.pb-calendar-nav button:hover:not(:disabled){background:#f3f6f9;color:#24364b}
.pb-calendar-nav button:disabled{opacity:.25;cursor:default}
.pb-calendar-nav svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.pb-calendar-title{font-size:14px;font-weight:750;color:#24364b;text-align:center;white-space:nowrap;letter-spacing:.01em}
.pb-calendar-weekdays,.pb-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.pb-calendar-weekdays{padding:8px 10px 2px}
.pb-calendar-weekdays span{height:24px;display:flex;align-items:center;justify-content:center;color:#7a8798;font-size:11px;font-weight:700}
.pb-calendar-grid{padding:3px 10px 11px;row-gap:1px}
.pb-calendar-day{
  width:100%;height:34px;padding:0;border:0;background:transparent;border-radius:9px;color:#273548;font-size:13px;
  display:flex;align-items:center;justify-content:center;cursor:pointer;
}
.pb-calendar-day:hover:not(:disabled){background:#edf4fb}
.pb-calendar-day.pb-other-month{color:#c0c8d3}
.pb-calendar-day.pb-today:not(.pb-selected){
  color:#173f6b;font-weight:800;background:#f5f9fe;box-shadow:inset 0 0 0 1.5px #9bb9d8;
}
.pb-calendar-day.pb-selected{background:#173f6b!important;color:#fff!important;font-weight:800;box-shadow:none!important}
.pb-calendar-day:disabled{color:#cbd2dc!important;cursor:default;background:transparent!important;box-shadow:none!important}
@media(max-width:640px){.pb-calendar-popover{width:min(284px,calc(100vw - 20px))}}
