:root{color-scheme:light;--paper:#f3efe8;--surface:#fdfbf6;--ink:#2d2521;--muted:#71665e;--line:#dfd6c9;--soft:#eee6db;--accent:#a44831;--accent-dark:#823825;--dark:#282220;--sans:system-ui,"Microsoft YaHei","PingFang SC",sans-serif;--serif:"Songti SC","Noto Serif CJK SC",SimSun,serif}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:14px/1.5 var(--sans)}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid #b65b43;outline-offset:3px}svg:not(.icon-bank){width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}.icon-bank{position:absolute;width:0;height:0;overflow:hidden}[hidden]{display:none!important}
.masthead{background:var(--surface);border-bottom:1px solid var(--line)}.header-inner{max-width:1500px;min-height:68px;margin:auto;padding:0 40px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:flex;gap:11px;align-items:center;text-decoration:none;color:var(--ink);font-size:16px;font-weight:700;line-height:1.25;white-space:nowrap}.brand small{display:block;font:600 9px/1.5 var(--sans);letter-spacing:.19em;color:var(--muted);margin-top:2px}.brand-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:9px;background:var(--accent);color:#fff9f0}.brand-icon svg{width:21px;height:21px}.top-nav{display:flex;align-items:center;align-self:stretch;gap:25px}.nav-button{border:0;border-bottom:2px solid transparent;background:none;color:var(--muted);padding:0 7px;white-space:nowrap;font-weight:600}.nav-button.active{color:var(--accent-dark);border-bottom-color:var(--accent)}.privacy{display:flex;align-items:center;gap:6px;font-size:12px;color:#65564b;white-space:nowrap}.privacy svg{width:15px;height:15px}
main{max-width:1500px;margin:auto;padding:0 40px}.intro{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:29px 0 23px}.eyebrow{color:var(--accent-dark);font-size:10px;font-weight:750;letter-spacing:.2em;margin:0 0 7px;display:flex;align-items:center;gap:8px}.eyebrow span{width:16px;height:1px;background:currentColor}.intro h1{font:800 clamp(30px,4.5vw,49px)/1.1 var(--serif);letter-spacing:.04em;margin:0}.intro h1 span{color:var(--accent)}.intro-description{margin:11px 0 0;color:var(--muted);font-size:13px}.intro-actions{display:flex;gap:9px;flex:none}
.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:39px;border-radius:8px;padding:7px 13px;border:1px solid transparent;white-space:nowrap;font-weight:700}.button svg,.text-button svg{width:15px;height:15px}.button.primary{background:var(--accent);color:#fff7ec}.button.primary:hover:enabled{background:var(--accent-dark)}.button.ghost{background:transparent;border-color:var(--line)}.button.ghost:hover:enabled{background:var(--soft)}.button.upload{width:100%;margin:8px 0 10px;border:1px dashed #bf9d89;background:#f6ece2;color:#744831}.button.upload:hover{background:#f0dfd0}.button.cutout{width:100%;margin-top:10px;background:#342623;color:#fff6e9}.button.cutout:hover:enabled{background:#4f332b}.button.compact{font-size:11px;min-height:32px;padding:5px 7px}.text-button{border:0;background:transparent;color:var(--muted);padding:3px 0;display:inline-flex;align-items:center;gap:5px;font-size:12px}.text-button:hover:enabled{color:var(--accent-dark)}.reset-position{margin-top:4px}
.workbench{display:grid;grid-template-columns:minmax(225px,265px) minmax(340px,1fr) minmax(242px,285px);gap:14px;align-items:stretch}.panel{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:16px}.panel-head{display:flex;align-items:center;gap:9px;margin-bottom:14px}.panel-head h2{font-size:16px;line-height:1.2;margin:0}.index{display:grid;place-items:center;min-width:25px;height:25px;border-radius:7px;background:#efe6da;color:#855440;font-size:10px;font-weight:800;font-variant-numeric:tabular-nums}.group-label{display:block;font-size:12px;font-weight:750}.group-label.format{margin:12px 0 5px}.layout-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-top:6px}.layout-options button{display:grid;place-items:center;align-content:center;gap:5px;min-height:56px;border:1px solid var(--line);border-radius:7px;background:transparent;font-size:10px;font-weight:650;padding:5px 3px;white-space:nowrap}.layout-options button[aria-pressed=true]{border-color:#b7745f;color:var(--accent-dark);background:#f7e9df}.layout-options button:hover{border-color:#b7745f}select,input[type=text],input:not([type]),textarea{display:block;width:100%;padding:7px 9px;min-height:34px;border-radius:7px;background:#fffdf9;border:1px solid var(--line)}select{font-size:12px}.divider{height:1px;background:var(--line);margin:13px 0}.materials-head{display:flex;align-items:center;justify-content:space-between}.materials-head>span:last-child{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}.slots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.slot-item{position:relative;min-width:0}.slot{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:100%;min-height:76px;overflow:hidden;border:1px solid var(--line);border-radius:8px;padding:6px 3px;background:#f6f1e9;color:#6b584b;font-size:11px;font-weight:650;white-space:nowrap}.slot img{width:30px;height:39px;object-fit:cover;border-radius:4px}.slot:hover,.slot.drop-target,.slot[aria-pressed=true]{border-color:#b7745f;background:#f7e9df;color:#713c2f}.slot-remove{position:absolute;right:3px;top:3px;border:0;border-radius:999px;background:#fdf7ee;color:#795144;display:grid;place-items:center;width:20px;height:20px;padding:0}.slot-remove:hover{background:#ead1c3}.slot-remove svg{width:12px;height:12px}.help{font-size:11px;color:var(--muted);margin:9px 0;line-height:1.6}
.preview-panel{min-width:0;min-height:580px;border-radius:14px;background:var(--dark);border:1px solid #3e332d;color:#f0e3d8;display:flex;flex-direction:column;overflow:hidden}.preview-head,.preview-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 14px;font-size:11px}.preview-head{border-bottom:1px solid #4a3c35}.preview-head>span{display:flex;align-items:center;gap:7px;font-weight:700}.preview-head i{width:6px;height:6px;border-radius:50%;background:#d59578}.preview-foot{border-top:1px solid #4a3c35;color:#c3a99b;font-size:10px;letter-spacing:.06em}.guide-label{display:flex;align-items:center;gap:4px}.guide-label input{margin:0}.preview-wrap{display:grid;place-items:center;flex:1;min-height:480px;padding:15px;background-color:#312824;background-image:radial-gradient(#5a473c 1px,transparent 1px);background-size:11px 11px;container-type:size}.artwork{width:min(100cqw,calc(100cqh * var(--ratio,.75)));max-width:100%;aspect-ratio:var(--ratio,.75);position:relative;box-shadow:0 10px 25px #150e0b72;border-radius:2px;overflow:hidden;background:#1c1a1a}.artwork canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}.artwork canvas.dragging{cursor:grabbing}.artwork-guide{position:absolute;inset:9% 7% 14%;border:1px dashed #ffead5c5;pointer-events:none}
.active-photo{display:flex;align-items:center;gap:8px;background:#f5eee5;padding:6px 8px;border-radius:8px;min-width:0}.active-photo>div{min-width:0}.active-photo strong,.active-photo small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.active-photo strong{font-size:12px}.active-photo small{font-size:10px;color:var(--muted);margin-top:2px}.active-index{background:#ead7c6}.mini-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:6px}.checkbox-line{font-size:11px;margin-top:8px;display:flex;align-items:center;gap:5px}input[type=checkbox],input[type=range]{accent-color:var(--accent)}.palette-line{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px}.swatches{display:flex;gap:5px}.swatches button{display:block;padding:0;width:21px;height:21px;border:1px solid #0002;border-radius:50%;background:var(--swatch)}.swatches button[aria-pressed=true]{outline:1px solid #a45a47;outline-offset:2px}.range-row{display:grid;grid-template-columns:57px minmax(0,1fr) 32px;gap:5px;align-items:center;font-size:11px;min-height:25px}.range-row input{width:100%;min-width:0;margin:0}.range-row output{text-align:right;font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums}.field{display:grid;gap:4px;margin:8px 0;font-weight:700;font-size:12px}.field small{font-weight:400;color:var(--muted)}.field input,.field select,.field textarea{font-weight:400}.field input::placeholder,.field textarea::placeholder{color:#8b7a6f}
.status{font-size:12px;color:var(--muted);min-height:19px;margin:8px 0}.status.error{color:#9a3828}footer{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex-wrap:wrap;border-top:1px solid var(--line);margin:17px 0 0;padding:12px 0 22px;color:var(--muted);font-size:11px}footer>span:first-child{font-size:10px;letter-spacing:.16em;font-weight:750}footer summary{cursor:pointer}footer a{color:var(--accent-dark)}footer details p{margin-bottom:0}
.caption-workbench{display:grid;grid-template-columns:minmax(255px,1fr) minmax(340px,1.7fr);gap:14px;max-width:1050px}.caption-form,.caption-result{padding:21px}.caption-form form{display:grid;gap:5px}.caption-form form>.button{justify-self:start;margin-top:9px}.caption-empty{display:grid;place-content:center;justify-items:center;min-height:320px;color:var(--muted);text-align:center}.caption-empty svg{width:40px;height:40px;color:#a07663}.caption-titles{display:grid;gap:6px;margin:6px 0 13px}.caption-titles button{text-align:left;white-space:normal}.caption-titles button[aria-pressed=true]{background:#f7e9df;border-color:#b7745f;color:var(--accent-dark)}textarea{resize:vertical;min-height:125px}.caption-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.editor{color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:16px;width:min(640px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:17px;overflow:auto}.editor::backdrop{background:#201915b5}.editor-head,.editor-toolbar,.editor-actions{display:flex;align-items:center;justify-content:space-between;gap:8px}.editor-head{margin-bottom:10px}.editor-head h2{font:800 24px var(--serif);margin:0}.editor-head .eyebrow{margin-bottom:3px}.icon-button{display:grid;place-items:center;padding:0;width:34px;height:34px;background:transparent;border:1px solid var(--line);border-radius:7px}.brush-mode{display:flex;gap:6px}.brush-mode button[aria-pressed=true]{background:#f7e9df;border-color:#b7745f;color:var(--accent-dark)}.brush-range{display:flex;align-items:center;gap:5px;font-size:12px}.brush-range input{max-width:85px}.editor-toolbar .button{padding:5px 8px;min-height:32px}.mask-stage{margin-top:8px;min-height:200px;display:grid;place-items:center;background:#292321;border-radius:8px;overflow:hidden}.mask-stage canvas{display:block;max-width:100%;max-height:53dvh;object-fit:contain;touch-action:none;cursor:crosshair}.editor-actions{justify-content:flex-end}
@media(max-width:1120px){main,.header-inner{padding-left:22px;padding-right:22px}.workbench{grid-template-columns:minmax(200px,226px) minmax(280px,1fr) minmax(221px,241px);gap:10px}.panel{padding:13px}.preview-panel{min-height:565px}.preview-wrap{padding:10px}}
@media(max-width:850px){.workbench{grid-template-columns:1fr 1fr;align-items:start}.sources{order:1}.styling{order:2}.preview-panel{order:0;grid-column:1/-1;min-height:440px}.preview-wrap{min-height:385px}.intro h1{font-size:35px}.slot{min-height:62px}}
@media(max-width:540px){main,.header-inner{padding-left:12px;padding-right:12px}.header-inner{gap:6px;flex-wrap:wrap;padding-top:8px}.privacy{margin-left:auto;font-size:11px}.brand{font-size:14px}.brand-icon{width:30px;height:30px}.brand-icon svg{width:17px;height:17px}.top-nav{order:3;width:100%;gap:14px;min-height:38px}.top-nav button{font-size:12px}.intro{padding:16px 0 13px;align-items:flex-start;flex-direction:column;gap:10px}.intro h1{font-size:31px}.intro-description{font-size:11px;margin-top:6px}.intro-actions{width:100%;justify-content:flex-end}.preview-panel{min-height:370px}.preview-wrap{min-height:317px;padding:8px}.workbench{gap:7px}.panel{padding:9px;border-radius:10px}.panel-head{margin-bottom:9px;gap:5px}.panel-head h2{font-size:13px}.index{min-width:21px;height:21px}.layout-options{gap:3px}.layout-options button{min-height:43px;font-size:9px;gap:3px}.layout-options svg{width:14px;height:14px}.swatches{gap:4px}.swatches button{width:17px;height:17px}.range-row{grid-template-columns:48px minmax(0,1fr) 26px;gap:3px;font-size:10px}.slot{font-size:9px}.slot-remove{right:1px;top:1px;width:16px;height:16px}.mini-actions{gap:3px}.button.compact{padding:3px;font-size:10px}.button.compact svg{display:none}.caption-workbench{grid-template-columns:1fr}.caption-workbench .panel{padding:13px}.editor{padding:10px}.brush-range input{max-width:57px}}

.slot-replace{right:auto;left:3px}

.review-fieldset {
  min-width: 0;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
}
.review-fieldset legend { padding: 0; margin-bottom: 5px; }
.review-options, .review-roster, .review-result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.review-options .button { min-height: 33px; overflow-wrap: anywhere; }
.review-options .button[aria-pressed=true] {
  background: #f7e9df;
  border-color: #b7745f;
  color: var(--accent-dark);
}
.review-roster { margin-top: 7px; }
.review-roster input { flex: 1 1 155px; width: auto; min-width: 0; }
.review-experience input { margin-top: 6px; }
.review-experience-help { margin: 4px 0; }
.review-real-detail { min-height: 72px; }
.review-result-actions { justify-content: space-between; }
.media-title { font-weight: 750; overflow-wrap: anywhere; }
.media-files { display: flex; flex-wrap: wrap; gap: 8px; }
.media-files a { color: inherit; text-decoration: none; }
.media-files a.primary { color: #fff7ec; }
.review-ai { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.review-ai summary { cursor: pointer; font-weight: 700; }
.review-ai .field { margin-top: 10px; }

.top-nav .nav-video{display:grid;place-items:center;align-self:center;min-height:38px;border:0;border-radius:7px;background:var(--accent);color:#fff9f0;padding:0 10px;text-decoration:none}
@media(max-width:540px){
  .top-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
  .top-nav .nav-button{display:grid;place-items:center;min-height:42px;padding:0 2px;font-size:12px}
}
.video-editor-entry{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;margin-top:12px;padding:10px 15px;border:1px solid var(--accent);border-radius:9px;background:var(--accent);color:#fff9f0;font-weight:750;text-decoration:none}
.video-editor-entry:focus-visible{outline:2px solid var(--accent-dark);outline-offset:3px}