:root{--pine:#193e30;--forest:#285a43;--ink:#202e27;--dim:#667269;--line:#dfe3da;--paper:#f7f8f3;--white:#fff;--gold:#ad8037;--shadow:0 4px 17px #233b2607;font-family:"Inter","Microsoft YaHei UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);font-size:14px;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--paper)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:var(--forest)}[hidden]{display:none!important}button:disabled{cursor:not-allowed;opacity:.55}.skip{position:fixed;top:-60px;left:20px;background:#fff;z-index:30;padding:10px}.skip:focus{top:10px}:focus-visible{outline:3px solid #a2b963;outline-offset:3px}button svg,.icon{width:18px;height:18px;flex:none}
.shell{min-height:100vh}.canvas{margin-left:220px;min-width:0}#sidebar{width:220px;background:var(--pine);color:#fff;position:fixed;top:0;bottom:0;left:0;z-index:8;display:flex;flex-direction:column;padding:31px 17px 20px}.brand{display:flex;gap:13px;align-items:center;margin:2px 5px 37px;padding-bottom:28px;border-bottom:1px solid #ffffff23}.brand svg{width:43px;height:43px;color:#e3eecb}.brand strong{display:block;line-height:1.2;font-family:"STKaiti","KaiTi","Microsoft YaHei",serif;font-size:25px;letter-spacing:.12em}.brand span{display:block;font-size:11px;letter-spacing:.14em;margin-top:5px;color:#cedbcb}.side-group{color:#a2b7a9;font-size:11px;letter-spacing:.12em;padding:0 14px;margin-bottom:13px}#nav{display:grid;gap:6px}.nav-item{display:flex;align-items:center;gap:13px;padding:13px;border:0;border-radius:7px;background:transparent;color:#d6e1d7;text-align:left;font-weight:500;line-height:20px}.nav-item:hover{background:#ffffff0b}.nav-item.active{background:#dcebd816;color:#fcffef;box-shadow:inset 3px 0 #b9ce88}.nav-item svg{width:19px;height:19px}.side-foot{margin-top:auto;border-top:1px solid #ffffff23;padding:18px 5px 0;display:flex;gap:10px;align-items:center}.side-foot b{font-weight:500;font-size:13px}.side-foot small{display:block;font-size:11px;color:#abc0af;margin-top:3px}.seal{width:34px;height:34px;border:1px solid #879d7a77;border-radius:8px;display:grid;place-items:center;font-family:serif;color:#d9e5c7;font-size:18px}.topbar{height:66px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 clamp(22px,3vw,48px)}.crumb{display:flex;gap:13px;align-items:center;font-size:13px}.crumb span,.crumb i{color:var(--dim)}.crumb i{font-style:normal;color:#b7bfb5}.crumb b{font-weight:550}.connection{font-size:12px;color:var(--dim);display:inline-flex;gap:8px;align-items:center}.connection:before{content:"";height:7px;width:7px;border-radius:50%;background:#a8ad9b}.connection.online:before{background:#50865c;box-shadow:0 0 0 3px #ebf2e8}.connection.offline:before{background:#b77838}.menu-toggle{display:none!important}#shade{display:none}main{max-width:1600px;margin:auto;padding:32px clamp(22px,3vw,48px) 54px;outline:0}h1,h2,h3,h4,p{margin:0}.intro,.sect-head,.row,.actions{display:flex;align-items:center}.intro,.sect-head{justify-content:space-between;gap:18px}.intro{margin-bottom:24px}.intro h1{font-size:clamp(27px,2.3vw,38px);font-weight:680;line-height:1.32;letter-spacing:-.045em}.intro p,.section-help{margin-top:7px;font-size:13px;line-height:1.7;color:var(--dim)}.actions,.row{gap:9px;flex-wrap:wrap}.btn,.icon-btn,.link-btn,.pill{border:0;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;line-height:1.4;font-weight:550}.btn{padding:10px 16px;min-height:40px;border:1px solid #ccd4c9;border-radius:7px;background:#fff;color:#39493e;box-shadow:0 1px 2px #24332306;white-space:nowrap}.btn:hover{background:#f6f8f2}.btn.primary{background:var(--forest);color:#fff;border-color:var(--forest)}.btn.primary:hover{background:#204c37}.btn.small{font-size:12px;min-height:34px;padding:6px 11px}.icon-btn{width:36px;height:36px;border-radius:7px;background:transparent;color:var(--dim)}.icon-btn:hover,.link-btn:hover{background:#ecf1e6}.link-btn{font-size:13px;padding:7px 8px;background:transparent;border-radius:7px;color:var(--forest)}.link-btn svg{width:15px;height:15px}.summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.stat{padding:18px 19px;background:#fff;border:1px solid var(--line);border-radius:11px;display:flex;align-items:center;justify-content:space-between;text-align:left;color:var(--ink);box-shadow:var(--shadow)}.stat:hover{border-color:#afbfaa}.stat span{display:block;color:var(--dim);font-size:13px}.stat b{display:block;font-weight:650;font-size:31px;letter-spacing:-.05em;line-height:1.14;margin-top:7px;font-variant-numeric:tabular-nums}.stat .stat-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:12px;background:#edf2e9;color:#577050}.stat .stat-icon.gold{background:#faf1dd;color:#9a752d}.stat .stat-icon.green{background:#e9f3e9;color:#49805a}.stat-icon svg{width:21px;height:21px}section.block{margin-top:30px}.sect-head{margin-bottom:15px}.sect-head h2{font-size:20px;letter-spacing:-.035em;line-height:1.5;font-weight:650}
.panel{background:#fff;border:1px solid var(--line);border-radius:11px;box-shadow:var(--shadow);overflow:hidden}.queue-tools{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;padding:14px 17px;border-bottom:1px solid var(--line)}.tabs{display:flex;gap:3px;flex-wrap:wrap}.pill{background:transparent;color:var(--dim);padding:7px 11px;border-radius:6px;font-size:12px}.pill.active{background:#edf3e9;color:var(--forest)}.search{display:flex;align-items:center;gap:6px;background:#fff;border:1px solid var(--line);padding:7px 9px;border-radius:6px}.search input{border:0;outline:0;width:145px;color:var(--ink);font-size:12px}.search svg{width:15px;height:15px;color:#718273}.empty{padding:27px 16px;text-align:center;display:grid;justify-items:center;gap:7px}.empty-icon{display:grid;place-items:center;width:42px;height:42px;background:#f0f4eb;border-radius:12px;color:#6a8460}.empty-icon svg{width:22px;height:22px}.empty h3{font-size:15px;font-weight:600}.empty p,.muted{color:var(--dim);font-size:13px;line-height:1.65}.empty .link-btn{padding:3px}.record-list{list-style:none;margin:0;padding:0}.record-row{padding:12px 17px;display:flex;align-items:center;gap:13px;border-bottom:1px solid #edf0e8}.record-row:last-child{border:0}.record-row input[type=checkbox]{width:16px;height:16px;accent-color:var(--forest)}.thumb{width:59px;height:45px;object-fit:cover;border-radius:6px;background:#eef1e8;flex:none}.rec-name{min-width:0;flex:1}.rec-name strong,.rec-name small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rec-name strong{font-size:14px}.rec-name small{font-size:12px;color:var(--dim);margin-top:4px}.tag{white-space:nowrap;font-size:12px;font-weight:550;display:inline-flex;align-items:center;gap:6px;border-radius:5px;padding:4px 8px;background:#f5efdF;color:#856223}.tag:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.tag.done{background:#eaf3e7;color:#437347}.tag.draft{background:#edf0f5;color:#52677c}.bulk-bar{display:flex;align-items:center;gap:9px;font-size:12px;color:var(--dim);padding:9px 17px;background:#fbfcf8;border-bottom:1px solid var(--line)}.bulk-bar label{display:flex;align-items:center;gap:8px}.bulk-bar .link-btn{margin-left:auto}.loading{color:var(--dim);padding:40px 0}
dialog{border:1px solid #dbe2d6;padding:0;border-radius:14px;width:min(620px,calc(100% - 28px));max-height:90dvh;color:var(--ink);background:#fff;box-shadow:0 20px 80px #15271936}dialog::backdrop{background:#12241bd1;opacity:.65}body.modal{overflow:hidden}.dialog-head{padding:17px 22px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:10px}.dialog-head h2{font-size:20px;letter-spacing:-.03em}.dialog-body{padding:21px 22px;display:grid;gap:15px}.dialog-foot{display:flex;justify-content:flex-end;align-items:center;gap:9px;border-top:1px solid var(--line);padding:14px 22px}.drop{background:#f6f9f3;border:1.5px dashed #9caf95;min-height:132px;border-radius:9px;display:grid;place-content:center;justify-items:center;gap:7px;color:var(--forest);width:100%}.drop svg{width:28px;height:28px}.drop b{font-size:16px}.drop small{color:var(--dim)}.drag{outline:3px dashed #849c70;outline-offset:-5px;background:#eef4e7}.file-list{max-height:160px;overflow:auto;list-style:none;margin:0;padding:0}.file-list li{display:flex;align-items:center;gap:8px;padding:5px 0;border-bottom:1px solid #ebeee8;font-size:13px}.file-list span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.field{display:grid;gap:7px;font-size:13px;font-weight:550}.field input,.field select,.field textarea,.select{width:100%;min-width:0;border:1px solid #cfd8cb;border-radius:6px;padding:10px 11px;color:var(--ink);background:#fff;font-size:14px;font-weight:400}.field textarea{resize:vertical;min-height:77px}.field input:focus,.field select:focus,.field textarea:focus{outline:2px solid #77986a}.hint{font-weight:400;font-size:12px;color:var(--dim)}.text-error{color:#a44935;white-space:pre-line;font-size:13px;line-height:1.6}.photo-frame{background:#19221b;display:grid;place-items:center;overflow:hidden;border-radius:8px;position:relative}.photo-frame img{max-width:100%;max-height:54vh;object-fit:contain;display:block}.photo-link{position:absolute;bottom:10px;right:10px;color:#fff;background:#15251bd9;border-radius:6px;padding:6px 10px;font-size:12px;text-decoration:none;display:inline-flex;gap:6px;align-items:center}.photo-link svg{width:14px;height:14px}.radio-list{display:grid;gap:7px}.radio-card{display:flex;align-items:flex-start;gap:9px;border:1px solid var(--line);padding:11px;border-radius:7px}.radio-card:has(input:checked){border-color:#809a74;background:#f4f8ef}.radio-card input{accent-color:var(--forest)}.radio-card small{display:block;margin-top:3px;font-size:12px;color:var(--dim)}
.editor{display:grid;grid-template-columns:minmax(240px,.88fr) minmax(320px,1.12fr);gap:18px;align-items:start}.editor-pane{padding:17px}.editor-pane>h2{font-size:17px;margin-bottom:12px}.editor .photo-frame img{max-height:50vh}.editor .photo-frame{min-height:160px}.editor-side{position:sticky;top:16px}.editor-form{padding:20px;display:grid;gap:17px}.editor-form h2{font-size:18px}.columns{display:grid;grid-template-columns:1fr 1fr;gap:12px}.group-title{font-size:13px;font-weight:550;margin-bottom:7px}.choice-set{display:flex;gap:4px;flex-wrap:wrap}.choice{font-size:13px;padding:7px 13px;background:#fff;border:1px solid #d8ded3;border-radius:6px;color:var(--dim)}.choice.chosen{background:#eaf3e6;color:#315e3a;border-color:#8aac7f}.choice.chosen.alert{color:#99452f;background:#faf0ea;border-color:#c99b85}.criteria-head{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid var(--line);padding-top:13px}.criteria-head h3{font-size:15px}.criteria-table{display:grid;margin-top:-9px}.criterion{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:8px 0;border-bottom:1px solid #ebeee6;font-size:13px}.criterion .choice{font-size:12px;padding:5px 10px}.mark-required{color:#a64d32}#notice{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#1c392a;color:#fff;font-size:13px;padding:12px 18px;max-width:90vw;width:max-content;z-index:30;border-radius:8px;box-shadow:0 5px 24px #17301d33;pointer-events:none;white-space:pre-line}#notice:empty{display:none}
@media(min-width:1550px){.summary{gap:20px}}
@media(max-width:1120px){#sidebar{width:185px;padding-left:12px;padding-right:12px}.canvas{margin-left:185px}.editor{grid-template-columns:minmax(210px,.8fr) minmax(320px,1.2fr)}}
@media(max-width:880px){#sidebar{width:210px;transform:translateX(-100%);transition:transform .18s}body.nav-open #sidebar{transform:none}#shade{display:block;position:fixed;inset:0;background:#17291b66;z-index:7}.canvas{margin:0}.menu-toggle{display:inline-flex!important;margin-left:-5px}.topbar{justify-content:flex-start;gap:9px;height:54px}.connection{margin-left:auto}.intro h1{font-size:27px}}
@media(max-width:650px){main{padding:23px 15px 40px}.topbar{padding:0 15px}.intro{align-items:flex-start;flex-wrap:wrap;gap:13px;margin-bottom:18px}.intro p{font-size:12px}.actions .btn{font-size:13px;padding:9px 12px}.summary{gap:7px}.stat{padding:12px 10px;position:relative;align-items:flex-end;border-radius:8px}.stat span{font-size:11px}.stat b{font-size:26px;margin-top:6px}.stat .stat-icon{width:24px;height:24px;border-radius:6px}.stat-icon svg{width:14px;height:14px}.sect-head{margin-bottom:11px}.sect-head h2{font-size:18px}section.block{margin-top:23px}.queue-tools{padding:10px;gap:7px}.search{width:100%}.search input{width:100%}.pill{padding:7px 9px}.record-row{padding:11px 9px;gap:7px}.thumb{width:43px;height:39px}.record-row .link-btn{font-size:12px;padding:5px}.rec-name small{font-size:10px}.record-row .tag{font-size:10px;padding:4px}.tag:before{width:4px;height:4px}.bulk-bar{padding:8px 10px}.editor{grid-template-columns:1fr;gap:12px}.editor-side{position:static}.editor .photo-frame img{max-height:36vh}.editor-pane,.editor-form{padding:14px}.editor-form{gap:14px}.columns{gap:8px}.criteria-head .link-btn{font-size:12px}.dialog-body,.dialog-head,.dialog-foot{padding:14px}.dialog-head h2{font-size:18px}.topbar .crumb{gap:9px;font-size:12px}#notice{bottom:12px}.section-help{font-size:12px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.editor-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.editor-nav .back { padding-left: 0; }
.sequence-nav {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--dim);
  font-size: 13px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.editing main { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
.editing .intro { overflow-wrap: anywhere; }
.editing #notice { bottom: calc(84px + env(safe-area-inset-bottom)); }
.editor-actions {
  position: fixed;
  z-index: 5;
  bottom: 0;
  left: 220px;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px clamp(22px, 3vw, 48px) calc(12px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -3px 15px #24332309;
}
.editor-actions .btn { height: 44px; }
html:has(body.editing) { scroll-padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (max-width: 1120px) {
  .editor-actions { left: 185px; }
}
@media (max-width: 880px) {
  .editor-actions { left: 0; }
}
@media (max-width: 650px) {
  .editor-actions {
    padding: 10px max(15px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(15px, env(safe-area-inset-left));
  }
  .editor-actions .btn { flex: 1; padding: 8px; }
  .editor-actions .primary { flex: 1.45; }
  .sequence-nav { gap: 0; }
}
