:root{font-family:'Microsoft YaHei',system-ui,sans-serif;color:#182d39;background:#f4f7f8;font-size:15px}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}h1,h2,h3,p{margin:0}h1{font-size:27px;letter-spacing:-.02em}h2{font-size:17px}p{color:#73828b;line-height:1.6;margin:7px 0 0}.eyebrow{font-size:11px;font-weight:700;letter-spacing:.14em;color:#8aa0a8}.brand-mark{width:44px;height:44px;background:#1c827a;color:#fff;display:grid;place-items:center;border-radius:13px;font-weight:800;font-size:22px}.brand-mark.small{width:35px;height:35px;font-size:17px;border-radius:10px}.login-shell{min-height:100vh;display:grid;place-items:center}.login-card{width:min(420px,90vw);padding:40px;background:white;border:1px solid #e4ebec;border-radius:18px;box-shadow:0 18px 60px #193b4310}.login-card .eyebrow{margin-top:25px}.login-card h1{margin:7px 0}.login-card form{margin-top:22px}#app{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:235px;padding:26px 16px;background:#14383f;color:#eaf8f5;display:flex;flex-direction:column}.side-brand{display:flex;gap:11px;align-items:center;padding:0 8px 33px}.side-brand strong,.side-brand small{display:block}.side-brand small{font-size:12px;color:#a5c4c0;margin-top:4px}.nav-label{display:block;color:#8bb1ae;font-size:12px;margin:10px 12px}.nav-item{border:0;width:100%;text-align:left;display:flex;gap:12px;align-items:center;background:transparent;color:#b8d2d0;padding:12px;border-radius:9px;font:inherit;cursor:pointer;margin:3px 0}.nav-item.active{background:#285c5c;color:white;font-weight:700}.side-bottom{margin-top:auto;border-top:1px solid #ffffff1e;padding:18px 9px 0;display:flex;flex-direction:column;gap:10px;font-size:13px}.ghost{color:#d2e6e2;background:transparent;border:1px solid #477371}.main{margin-left:235px;max-width:1750px;padding:40px 48px 70px}.heading,.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.heading{margin-bottom:26px}.heading h1{margin-top:6px}.live{font-size:12px;color:#207e6d;background:#e3f4eb;border-radius:20px;padding:8px 12px;white-space:nowrap}.live.offline{background:#fff1e6;color:#a45c25}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.metrics article,.panel{background:white;border:1px solid #e3eaeb;border-radius:13px;box-shadow:0 4px 14px #23444b06}.metrics article{padding:21px 23px;display:flex;flex-direction:column}.metrics span{color:#72848b;font-size:13px}.metrics strong{font-size:32px;margin:13px 0 5px}.metrics small{color:#9ba9ad}.panel{padding:24px;margin-top:18px}.panel-heading p{font-size:13px}.panel-heading strong{font-size:25px;color:#168c7a}.overall .progress-track{margin-top:18px}.progress-track{background:#eaf1ef;border-radius:20px;height:9px;overflow:hidden;min-width:100px}.progress-fill{background:#20a68e;width:0;height:100%;border-radius:20px;transition:width .3s}.progress-caption{display:flex;justify-content:space-between;color:#829397;font-size:12px;margin-top:10px}.table-scroll{overflow-x:auto;margin-top:14px}table{border-collapse:collapse;width:100%;text-align:left;min-width:600px}th{color:#90a0a5;font-size:12px;font-weight:600}th,td{padding:15px 12px;border-bottom:1px solid #edf1f1}td{font-size:14px}.worker-cell strong,.worker-cell small{display:block}.worker-cell small{color:#a0afb2;margin-top:4px}.progress-cell{min-width:160px}.progress-cell .progress-track{height:7px}.empty{text-align:center;padding:42px 15px;color:#91a1a4}.two-col{display:grid;grid-template-columns:minmax(250px,1fr) minmax(320px,1.4fr);gap:18px}.two-col .panel{margin-top:0}.review-layout{display:grid;grid-template-columns:minmax(230px,300px) minmax(350px,1fr);gap:18px}.review-layout .panel{margin-top:0}.editor-empty{padding:100px 10px}.empty-icon{font-size:40px;color:#55aa9d;margin-bottom:14px}label{display:block;font-weight:600;font-size:13px;color:#50636a;margin:18px 0}input,select,textarea{display:block;width:100%;margin-top:8px;padding:11px 12px;border:1px solid #cfdbdc;border-radius:8px;font:inherit;background:#fff;color:#213a41}textarea{min-height:145px;line-height:1.7;resize:vertical}button,.link-button{font:inherit;font-weight:600;border-radius:8px;padding:10px 14px;cursor:pointer;border:0}.primary{background:#147e72;color:white}.wide{width:100%}.outline{background:white;border:1px solid #d8e4e2;color:#4d686a}.link-button{text-decoration:none;font-size:13px}.ghost{padding:8px 12px;border-radius:7px}.error{color:#bd4942}.entry-row{display:flex;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid #edf1f1}.entry-row .who{min-width:120px;flex:1}.entry-row small{display:block;color:#94a5a7;margin-top:4px}.entry-row input{width:100px;margin:0}.entry-row select{width:120px;margin:0}.task-button{width:100%;text-align:left;background:#f6f9f8;color:#24494a;margin-top:9px;border:1px solid #e5efed}.task-button small{display:block;color:#8a9f9d;margin-top:4px}.pagination{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:15px;font-size:12px;color:#849699}.pagination button{font-size:12px;padding:8px}.pagination button:disabled{opacity:.35}.audio-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.grade-chip{display:inline-block;padding:7px 10px;border-radius:7px;background:#eaf4f2;color:#22776c;font-weight:700;font-size:13px}.audio-box{background:#f3f8f7;border-radius:10px;padding:18px;margin:20px 0}audio{width:100%;margin-top:10px}.reference{white-space:pre-wrap;line-height:1.7;background:#f8faf9;border:1px solid #e6eeee;padding:15px;border-radius:9px;margin-top:10px}.model-result{border:1px solid #e0eae8;border-radius:10px;padding:14px;margin-top:12px}.model-result-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.result-meta{font-size:12px;overflow-wrap:anywhere}.step-title{font-size:14px;color:#41615f;margin:22px 0 8px}.step-number{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#dcefe9;color:#18796c;font-size:12px;margin-right:8px}.toolbar{display:flex;gap:8px;flex-wrap:wrap}.toolbar button{font-size:13px}.tip{font-size:12px;color:#91a09f;margin:8px 0}#notice{margin-bottom:18px;padding:12px 15px;background:#e4f4ed;border-radius:8px;color:#24715a}#notice.error{background:#fff0ec;color:#a34236}@media(max-width:950px){.metrics{grid-template-columns:repeat(2,1fr)}.two-col,.review-layout{grid-template-columns:1fr}.sidebar{width:190px}.main{margin-left:190px;padding:30px 24px}}@media(max-width:620px){.sidebar{position:static;width:auto;padding:15px}.side-brand{padding-bottom:10px}.sidebar nav{display:flex;flex-wrap:wrap}.nav-label{width:100%}.nav-item{width:auto}.side-bottom{margin-top:8px;flex-direction:row;align-items:center}.main{margin:0;padding:24px 16px}.heading{align-items:flex-start;flex-direction:column}.metrics{gap:8px}.metrics article{padding:15px}.metrics strong{font-size:25px}.entry-row{flex-wrap:wrap}}
:root .review-layout,.two-col,.metrics{min-width:0}
.review-layout>* , .two-col>*,.audio-header>*,.entry-row .who{min-width:0}
.review-layout{grid-template-columns:minmax(0, .8fr) minmax(0, 2fr)}
.task-button,.audio-header h2,.reference,.result-meta,.entry-row .who,.worker-cell{overflow-wrap:anywhere;word-break:break-word}
.task-button{white-space:normal}
@media(max-width:850px){.review-layout{grid-template-columns:minmax(0,1fr)}}

/* Keep each worker's name readable when the controls need their own row. */
@media(max-width:700px){
  .entry-row{flex-wrap:wrap;align-items:center}
  .entry-row .who{flex:0 0 100%;min-width:0}
  .entry-row .who strong,.entry-row .who small{overflow-wrap:anywhere}
  .panel-heading{flex-wrap:wrap}
  .pagination{flex-wrap:wrap;justify-content:flex-start}
  .pagination span{flex:1 1 auto;text-align:center}
}
@media(max-width:850px){
  .review-layout{display:flex;flex-direction:column}
  .review-layout .review-panel{order:-1}
}
.tip{color:#5d7173}
.review-layout.single-task{grid-template-columns:minmax(0,1fr)}
.audio-player-row{display:flex;align-items:center;gap:14px;margin-top:12px;min-width:0;flex-wrap:wrap}
.audio-play{min-width:72px;background:#147e72;color:#fff}
.worker-live{display:inline-block;margin-top:5px;color:#26816f;font-size:12px}
.worker-live.offline{color:#a45c25}
.audio-skip{padding:9px 11px;white-space:nowrap}
.audio-skip:disabled{opacity:.5;cursor:not-allowed}
.audio-time{font-variant-numeric:tabular-nums;color:#41615f;font-size:14px;white-space:nowrap}
.audio-speed-label{display:flex;align-items:center;gap:8px;margin:0;font-size:13px}
select.audio-speed{width:auto;margin:0;padding:7px 8px}
.audio-volume-label{display:flex;align-items:center;gap:8px;margin:0 0 0 auto;font-size:13px}
input.audio-volume{width:100px;height:28px;margin:0;padding:0;border:0;background:transparent;accent-color:#147e72}
input.audio-seek{display:block;width:100%;min-width:0;height:32px;margin:8px 0 0;padding:0;border:0;background:transparent;accent-color:#147e72;cursor:pointer}
input.audio-seek:disabled{cursor:not-allowed;opacity:.5}
/* Brief visual feedback; operations never wait for these transitions. */
button,.link-button,input,select,textarea{transition:background-color .14s ease,border-color .14s ease,box-shadow .14s ease,transform .12s ease,opacity .14s ease}
button:not(:disabled):active,.link-button:active{transform:scale(.985)}
button:focus-visible,.link-button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #70c5b6;outline-offset:2px}
.is-working{cursor:progress;opacity:.78}
.action-feedback{margin:9px 0 0;color:#24715a;font-size:13px}
.action-feedback.error{color:#a34236}
.is-working::after{content:'';display:inline-block;width:11px;height:11px;margin-left:8px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;vertical-align:-1px;animation:work-spin .7s linear infinite}
@keyframes work-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:no-preference){.page:not([hidden]){animation:page-enter .16s ease-out}@keyframes page-enter{from{opacity:.94;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}}
@media(prefers-reduced-motion:reduce){button,.link-button,input,select,textarea,.progress-fill{transition:none}.is-working::after{animation:none}html{scroll-behavior:auto}}
.revision-history{margin:14px 0;padding:12px 14px;border:1px solid #e0eae8;border-radius:9px;color:#365d59}
.revision-history summary{cursor:pointer;font-weight:600}
.revision-entry{padding:12px 0;border-top:1px solid #edf1f1;overflow-wrap:anywhere}
.revision-entry:first-of-type{margin-top:12px}
.revision-form{margin-top:14px;padding-top:4px}

/* Show every progress field without relying on a hidden horizontal scroll. */
@media(max-width:1100px){
  .table-scroll{overflow:visible}
  #overview table,#overview tbody{display:block;min-width:0;width:100%}
  #overview thead{display:none}
  #overview tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 14px;padding:14px 0;border-bottom:1px solid #edf1f1}
  #overview tbody td{display:block;min-width:0;padding:4px 0;border:0;overflow-wrap:anywhere}
  #overview tbody td:first-child{grid-column:1 / -1;padding-bottom:6px}
  #overview tbody td:not(:first-child)::before{display:block;margin-bottom:5px;color:#73828b;font-size:12px;font-weight:600}
  #overview tbody td:nth-child(2)::before{content:'今日完成 / 目标'}
  #overview tbody td:nth-child(3)::before{content:'今日进度'}
  #overview tbody td:nth-child(4)::before{content:'进行中'}
  #overview tbody td:nth-child(5)::before{content:'累计完成'}
  #overview .progress-cell,#overview .progress-track{min-width:0}
}
