@import url("https://static.zaozuoba.cn/public-static/7fdf2db1a4a069a15b6333b66cbff2128bd176802ad870ca9394b6705ec39152/shared/motif-picker.css");
body[data-mold-layout-ready] { --paper:#fbf6ea; --ink:#173f73; --body:#355a85; --blue:#4a90d9; --motif-panel-tint:#e7f2fb; --motif-panel-edge:#4a90d9; }
body[data-mold-layout-ready] .mold-editor-layout { letter-spacing:0; }
body[data-mold-layout-ready] .mold-editor-layout { --zl-accent:#e4f1fb; }
body[data-mold-layout-ready] .mold-editor-layout .zl-stage { background:#fbf8f0; }
body[data-mold-layout-ready] .mold-editor-layout .zl-commands > button { width:auto; }
body[data-mold-layout-ready] .mold-compact-works { display:flex; gap:8px; padding:0 0 12px; margin:0 0 12px; border-bottom:1px solid var(--line); }
body[data-mold-layout-ready] .mold-compact-works button { flex:1; width:auto!important; margin:0!important; padding:7px; font-size:12px!important; min-height:44px; }
body[data-mold-layout-ready] .mold-editor-canvas {
  position:relative; top:auto; width:100%; height:100%; min-width:0; min-height:0;
  display:flex; flex-direction:column; gap:10px; padding:16px 20px; overflow:auto;
}
body[data-mold-layout-ready] .mold-editor-canvas .stage,
body[data-mold-layout-ready] .mold-editor-canvas .enamel-stage {
  flex:1 0 280px; height:auto; min-height:280px; width:100%; border:0; border-radius:0;
  background:transparent; box-shadow:none;
}
body[data-mold-layout-ready] .mold-editor-canvas .preview-header { margin:0; flex-wrap:wrap; gap:8px; }
body[data-mold-layout-ready] .mold-editor-canvas .tabs { margin:0; flex-wrap:wrap; }
body[data-mold-layout-ready] .mold-editor-canvas .tabs button { min-height:44px; border-radius:8px; }
body[data-mold-layout-ready] .mold-editor-canvas .mold-modes { margin:0; padding:0; display:flex; gap:4px; flex-wrap:wrap; }
body[data-mold-layout-ready] .mold-editor-canvas .mold-modes a { min-height:44px; padding:5px 12px; border-radius:8px; font-size:13px; }
body[data-mold-layout-ready] .mold-editor-canvas .mold-modes svg { display:none; }
body[data-mold-layout-ready] .mold-editor-canvas .part-legend { padding:0; gap:12px; flex-wrap:wrap; }
body[data-mold-layout-ready] .mold-editor-canvas .part-legend strong { font-size:12px; }
body[data-mold-layout-ready] .mold-editor-canvas .part-legend small { font-size:11px; }
body[data-mold-layout-ready] .mold-editor-canvas .review-card { padding:0; }
body[data-mold-layout-ready] .mold-editor-canvas .review-card h2 { font-size:18px; }
body[data-mold-layout-ready] .mold-editor-canvas .review-card .eyebrow { display:none; }
body[data-mold-layout-ready] .mold-editor-canvas .print-checks { margin:0; padding:8px 12px; }
body[data-mold-layout-ready] .mold-editor-canvas .preview-note,
body[data-mold-layout-ready] .mold-editor-canvas #status,
body[data-mold-layout-ready] .mold-editor-canvas #work-state,
body[data-mold-layout-ready] .mold-editor-canvas #mold-save-status { margin:0; font-size:12px; line-height:1.6; flex:none; min-width:0; }
body[data-mold-layout-ready] #error:empty { display:none; }
body[data-mold-layout-ready] .controls.mold-editor-controls {
  width:100%; min-width:0; padding:0!important; border:0; border-radius:0!important; background:transparent!important; box-shadow:none;
}
body[data-mold-layout-ready] .controls.mold-editor-controls::before { display:none; }
body[data-mold-layout-ready] .mold-editor-controls fieldset { min-width:0; margin:0 0 16px; padding:0 0 16px; }
body[data-mold-layout-ready] .mold-editor-controls legend { float:none; width:auto; margin:0 0 12px; font:600 15px/1.6 'Yuanti SC','PingFang SC',sans-serif; }
body[data-mold-layout-ready] .mold-editor-section { border-bottom:1px solid #173f7324; padding:0 0 12px; margin-bottom:16px; }
body[data-mold-layout-ready] .mold-editor-section > summary { cursor:pointer; padding:8px 0; min-height:44px; font-weight:600; font-size:14px; }
body[data-mold-layout-ready] .mold-editor-section > fieldset { border:0; margin:0; padding:8px 0 0; }
body[data-mold-layout-ready] .mold-editor-section > fieldset > legend { display:none; }
body[data-mold-layout-ready] .mold-editor-controls button,
body[data-mold-layout-ready] .mold-editor-controls input:not([type=checkbox]):not([type=range]):not([type=file]) { min-height:44px; }
body[data-mold-layout-ready] .mold-editor-controls button { max-width:100%; white-space:normal; overflow-wrap:anywhere; border-radius:8px; }
body[data-mold-layout-ready] .mold-editor-controls .help { font-size:12px; }
body[data-mold-layout-ready] .mold-editor-controls .upload { min-height:136px; padding:14px 8px; border-radius:8px; }
body[data-mold-layout-ready] .mold-editor-controls .upload img { width:40px; height:40px; object-fit:contain; }
body[data-mold-layout-ready] .mold-editor-controls .template-section,
body[data-mold-layout-ready] .mold-editor-controls .moon-examples { margin:16px 0 0; padding:0; border:0; border-radius:0; background:transparent; }
body[data-mold-layout-ready] .mold-editor-controls .section-heading h2,
body[data-mold-layout-ready] .mold-editor-controls .moon-examples h2 { font-size:16px; }
body[data-mold-layout-ready] .mold-editor-controls .section-heading > span,
body[data-mold-layout-ready] .mold-editor-controls .moon-examples-heading p,
body[data-mold-layout-ready] .mold-editor-controls .moon-examples-heading > span { display:none; }
body[data-mold-layout-ready] .mold-editor-controls .templates,
body[data-mold-layout-ready] .mold-editor-controls .moon-patterns { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
body[data-mold-layout-ready] .mold-editor-controls .template { flex-direction:column; padding:8px; }
body[data-mold-layout-ready] .mold-editor-controls .template span { font-size:12px; }
body[data-mold-layout-ready] .mold-editor-controls .moon-patterns img { height:74px; }
body[data-mold-layout-ready] .mold-editor-controls .making-note { display:block; margin:12px 0; padding:0; border:0; }
body[data-mold-layout-ready] .mold-editor-controls .note-number { font-size:18px; }
body[data-mold-layout-ready] .mold-editor-controls .moon-howto { display:block; }
body[data-mold-layout-ready] .mold-editor-controls .moon-howto > div { margin:10px 0; }
body[data-mold-layout-ready] .mold-editor-controls .moon-current { display:block; }
body[data-mold-layout-ready] .mold-editor-controls .mold-work-actions { padding:0; }
body[data-mold-layout-ready] .mold-editor-controls .sample { display:block; padding:12px 0; background:transparent; border-radius:0; }
body[data-mold-layout-ready] .mold-editor-controls .sample > span { display:block; max-width:none; }
body[data-mold-layout-ready] .mold-editor-controls .shapes { gap:6px; }
body[data-mold-layout-ready] .mold-editor-controls .shapes button { padding:8px 4px; font-size:12px; gap:5px; }
body[data-mold-layout-ready] .mold-editor-controls .upload-guidance { padding:10px; border-radius:8px; }
body[data-mold-layout-ready] .mold-editor-layout #save-work { width:auto; font-size:13px; }
body[data-mold-layout-ready] .mold-editor-layout #save-work img { width:20px; height:20px; }
body[data-mold-layout-ready] .mold-editor-layout .primary { border-radius:8px; }
body[data-mold-layout-ready] #editor-dialog { width:780px; }
body[data-mold-layout-ready] #editor-dialog .editor-tools { gap:8px; }
body[data-mold-layout-ready] #editor-dialog button { min-height:44px; }
@media(max-width:760px) {
  body[data-mold-layout-ready] .mold-editor-layout { grid-template-rows:104px minmax(140px,1fr) minmax(100px,36dvh) calc(66px + env(safe-area-inset-bottom)); }
  body[data-mold-layout-ready] .mold-editor-layout.zl-panel-collapsed { grid-template-rows:104px minmax(140px,1fr) 0 calc(66px + env(safe-area-inset-bottom)); }
  body[data-mold-layout-ready] .mold-editor-layout .zl-header { display:grid; grid-template-columns:36px minmax(0,1fr) 36px; grid-template-rows:40px 44px; gap:4px; }
  body[data-mold-layout-ready] .mold-editor-layout .zl-brand { grid-column:2; grid-row:1; }
  body[data-mold-layout-ready] .mold-editor-layout .zl-title { max-width:none; font-size:20px!important; }
  body[data-mold-layout-ready] .mold-editor-layout .zl-account { grid-column:3; grid-row:1; }
  body[data-mold-layout-ready] .mold-editor-layout .zl-header-actions:empty { display:none; }
  body[data-mold-layout-ready] .mold-editor-layout .zl-commands { grid-column:1/-1; grid-row:2; width:100%; margin:0; }
  body[data-mold-layout-ready] .mold-editor-layout .zl-commands > button { width:100%; min-width:0; min-height:44px; white-space:normal; line-height:1.3; }
  body[data-mold-layout-ready] .mold-editor-canvas { padding:8px 10px; gap:6px; }
  body[data-mold-layout-ready] .mold-editor-canvas .stage,
  body[data-mold-layout-ready] .mold-editor-canvas .enamel-stage { min-height:190px; flex-basis:190px; }
  body[data-mold-layout-ready] .mold-editor-canvas .mold-modes { flex-wrap:nowrap; overflow:auto; flex-shrink:0; }
  body[data-mold-layout-ready] .mold-editor-canvas .mold-modes a { flex-shrink:0; padding:5px 8px; }
  body[data-mold-layout-ready] .mold-editor-canvas .part-legend { gap:6px; }
  body[data-mold-layout-ready] .mold-editor-canvas .part-legend small { display:none; }
  body[data-mold-layout-ready] .mold-editor-canvas .review-card h2 { font-size:16px; }
  body[data-mold-layout-ready] .mold-editor-canvas .tabs button { font-size:12px; padding:6px 10px; }
  body[data-mold-layout-ready] .mold-editor-canvas .view-tools { top:auto; right:8px; bottom:8px; left:auto; transform:none; display:flex; flex-direction:row; }
  body[data-mold-layout-ready] .mold-editor-canvas .view-tools button { width:44px; height:44px; min-height:44px; }
  body[data-mold-layout-ready] .mold-editor-canvas .stage-bottom { bottom:60px; }
  body[data-mold-layout-ready] .mold-editor-canvas .stage-top { top:8px; }
  body[data-mold-layout-ready] .mold-editor-canvas #drag-hint { display:none; }
  body[data-mold-layout-ready] .mold-editor-canvas .stage-bottom { justify-content:flex-end; }
  body[data-mold-layout-ready] #editor-dialog { padding:20px 14px; }
  body[data-mold-layout-ready] #editor-dialog h2 { font-size:24px; }
  body[data-mold-layout-ready] #editor-canvas { max-height:42dvh; }
}
@media(max-width:760px) and (max-height:560px) {
  body[data-mold-layout-ready] .mold-editor-layout { grid-template-rows:104px minmax(90px,1fr) minmax(90px,28dvh) calc(66px + env(safe-area-inset-bottom)); }
  body[data-mold-layout-ready] .mold-editor-layout.zl-panel-collapsed { grid-template-rows:104px minmax(90px,1fr) 0 calc(66px + env(safe-area-inset-bottom)); }
}
@media(min-width:561px) and (max-width:760px) and (max-height:560px) {
  body[data-mold-layout-ready] .mold-editor-layout { grid-template-columns:240px minmax(0,1fr); grid-template-rows:104px minmax(0,1fr) calc(66px + env(safe-area-inset-bottom)); }
  body[data-mold-layout-ready] .mold-editor-layout.zl-panel-collapsed { grid-template-columns:0 minmax(0,1fr); grid-template-rows:104px minmax(0,1fr) calc(66px + env(safe-area-inset-bottom)); }
  body[data-mold-layout-ready] .mold-editor-layout .zl-header { grid-column:1/-1; }
  body[data-mold-layout-ready] .mold-editor-layout .zl-inspector { grid-column:1; grid-row:2; border-top:0; border-right:1px solid var(--zl-border); }
  body[data-mold-layout-ready] .mold-editor-layout .zl-stage { grid-column:2; grid-row:2; }
  body[data-mold-layout-ready] .mold-editor-layout .zl-rail { grid-column:1/-1; grid-row:3; }
  /* Keep the actual preview in the first scroll viewport on short landscape screens. */
  body[data-mold-layout-ready] .mold-editor-canvas .stage,
  body[data-mold-layout-ready] .mold-editor-canvas .enamel-stage { order:-1; min-height:0; flex:0 0 calc(100dvh - 186px - env(safe-area-inset-bottom)); }
}
/* Latest approved shared editor standard: preserve the mold blue theme. */
html body .mold-editor-layout.ze-standard-surface{--zl-accent:#e0eefb}
html body .mold-editor-layout.ze-standard-surface .zl-stage{background:#fffaf0}
html body .mold-editor-layout.ze-standard-header .zl-title{font-size:28px!important}
html body .mold-editor-layout.ze-standard-header .zl-commands>button{width:auto}
html body .mold-editor-layout.ze-standard-header .zl-header-actions{display:none!important}
html body .mold-editor-layout .mold-editor-canvas{padding:18px 24px;gap:10px}
html body .mold-editor-layout .mold-modes{align-self:flex-start;gap:6px}
html body .mold-editor-layout .mold-modes a{background:transparent;border:1px solid #deded3;min-height:36px;font-size:12px}
html body .mold-editor-layout .mold-modes .zb-ui-symbol{width:20px!important;height:20px!important;flex-basis:20px!important}
html body .mold-editor-layout .mold-modes a[aria-current]{background:#e0eefb;border-color:#8fb6d8}
html body .mold-editor-layout .stage,html body .mold-editor-layout .enamel-stage{border-radius:18px;background:#f4f2e9;min-height:180px;flex:1 1 240px;overflow:hidden}
html body .mold-editor-layout .preview-header{flex-wrap:nowrap;align-items:center}
html body .mold-editor-layout .preview-header .live-status{font-size:11px;white-space:nowrap}
html body .mold-editor-layout .ze-view-modes{margin:0 auto;max-width:100%;flex-wrap:wrap}
html body .mold-editor-layout .review-card{display:none}
html body .mold-editor-layout #print-checks{max-height:100px;overflow:auto;flex-shrink:0}
html body .mold-editor-layout .part-legend{display:none}
html body .mold-editor-layout .mold-editor-controls .template-section h2{font:400 20px ZaobaLayout,sans-serif}
html body .mold-editor-layout .mold-editor-controls :is(.upload-modes,.input-types,.tabs){display:flex;gap:4px;flex-wrap:wrap}
html body .mold-editor-layout .mold-editor-controls :is(.upload-modes,.input-types,.tabs) button{font-size:12px;padding:7px 8px;flex:1;min-width:0}
html body .mold-editor-layout .mold-editor-controls .upload{min-height:110px;background:#edf5fb;border:1px dashed #8fb6d8;border-radius:12px}
html body .mold-editor-layout .mold-editor-controls :is(legend,.control-heading){font:400 20px ZaobaLayout,sans-serif}
html body .mold-editor-layout .mold-editor-controls .ze-settings-group>summary{font:400 20px/1.5 ZaobaLayout,sans-serif}
html body .mold-editor-layout .ze-add-content{background:#e0eefb!important}
html body .mold-editor-layout .mold-editor-controls .sample{border-top:1px solid #ddd9cf;margin-top:18px}
html body .mold-editor-layout .mold-editor-controls .sample>span{font-size:12px}
html body .mold-editor-layout .mold-editor-controls #flip-view{display:block;margin:12px 0}
@media(max-width:760px){
 html body .mold-editor-layout.ze-standard-header .zl-title{font-size:21px!important}
 html body .mold-editor-layout .mold-editor-canvas{padding:8px 10px;gap:5px}
 html body .mold-editor-layout .mold-modes{max-width:100%;width:100%;flex-wrap:nowrap;overflow:auto}
 html body .mold-editor-layout .mold-modes a{min-height:34px;padding:4px 8px}
 html body .mold-editor-layout .mold-modes .zb-ui-symbol{display:none!important}
 html body .mold-editor-layout .ze-canvas-title{font-size:17px}
 html body .mold-editor-layout :is(.stage,.enamel-stage){min-height:120px;flex:1 0 120px}
 html body .mold-editor-layout .preview-header .live-status{display:none}
 html body .mold-editor-layout .ze-view-modes button{min-height:36px;padding:4px 8px;font-size:12px;gap:4px}
 html body .mold-editor-layout .ze-view-modes .zb-ui-symbol{width:18px!important;height:18px!important;flex-basis:18px!important}
 html body .mold-editor-layout :is(#print-checks,.preview-note,#status){max-height:44px;overflow:auto;font-size:11px}
 html body .mold-editor-layout .zl-stage{grid-column:1;grid-row:3}
 html body .mold-editor-layout .zl-inspector{grid-column:1;grid-row:4;border-right:0;border-top:1px solid var(--zl-border)}
 html body .mold-editor-layout .zl-rail{grid-column:1;grid-row:5}
}
.shared-motif-picker .motif-categories{display:flex;gap:6px;overflow:auto;flex-wrap:nowrap;margin:10px 0;padding:3px 0;scrollbar-width:thin}.shared-motif-picker .motif-categories button{flex:none;padding:5px 11px!important;min-height:34px!important;border:1px solid #e2ddd2;border-radius:20px!important;background:#fffdf8;color:#173f73;font-size:12px;white-space:nowrap!important}.shared-motif-picker .motif-categories [aria-pressed=true]{background:#173f73;color:#fff}.shared-motif-picker .motif-search{width:100%;height:40px;min-height:40px!important;font:12px inherit;border:1px solid #d7d1c5;border-radius:10px;padding:8px;background:#fffdf6}.shared-motif-picker .motif-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.shared-motif-picker .motif-card{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;min-height:98px;padding:8px 3px;background:#eaf2f6;border:1px solid transparent;border-radius:12px!important}.shared-motif-picker .motif-card img{width:54px;height:54px;object-fit:contain}.shared-motif-picker .motif-card span{font-size:11px;white-space:nowrap}.shared-motif-picker .motif-card:focus-visible{outline:2px solid #173f73;outline-offset:2px}.shared-motif-picker .motif-mine{min-width:0}.shared-motif-picker .help{margin:8px 0}.shared-motif-picker .help:empty{display:none}
@media(max-width:760px){.shared-motif-picker .motif-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.shared-motif-picker .motif-card{min-height:78px}.shared-motif-picker .motif-card img{width:42px;height:42px}}
@media(max-width:760px){
 html body[data-mold-layout-ready] .mold-editor-layout.ze-standard-header .zl-header{grid-template-columns:44px minmax(0,1fr) 62px;grid-template-rows:44px 44px;gap:6px 4px;padding:6px 8px}
}
@media(min-width:561px) and (max-width:760px) and (max-height:560px){
 html body[data-mold-layout-ready] .mold-editor-layout.ze-standard-header.ze-standard-surface{grid-template-columns:240px minmax(0,1fr);grid-template-rows:106px auto minmax(0,1fr) 66px!important}
 html body[data-mold-layout-ready] .mold-editor-layout.ze-standard-header.ze-standard-surface.zl-panel-collapsed{grid-template-columns:0 minmax(0,1fr);grid-template-rows:106px auto minmax(0,1fr) 66px!important}
 html body[data-mold-layout-ready] .mold-editor-layout.ze-standard-header .zl-stage{grid-column:2;grid-row:3}
 html body[data-mold-layout-ready] .mold-editor-layout.ze-standard-header .zl-inspector{grid-column:1;grid-row:3;border-top:0;border-right:1px solid var(--zl-border)}
 html body[data-mold-layout-ready] .mold-editor-layout.ze-standard-header .zl-rail{grid-column:1/-1;grid-row:4}
 html body[data-mold-layout-ready] .mold-editor-layout.ze-standard-header :is(.stage,.enamel-stage){order:-1;min-height:0;flex:0 0 calc(100dvh - 210px - env(safe-area-inset-bottom))}
}
html body .mold-editor-layout .mold-confirm-actions{display:flex;justify-content:center;flex:none;gap:8px}
html body .mold-editor-layout .mold-confirm-actions:has(>button[hidden]){display:none}
html body .mold-editor-layout .mold-confirm-actions button{width:auto;min-height:44px;padding:9px 20px;border-radius:10px;font-size:13px;margin:0}
html body .mold-pattern-panel .mold-my-materials {
  --click-tint:#e0eef9;
  min-width:0;
  margin-top:14px;
  padding:14px;
  border:1px solid #bdd4e6;
  border-radius:16px;
  background:#edf6fd;
  color:#173f73;
  line-height:1.65;
}
html body .mold-pattern-panel .mold-my-materials>h3 {
  margin:0 0 4px;
  font:20px/1.5 ZaobaLayout,'Yuanti SC',sans-serif;
}
html body .mold-pattern-panel .mold-my-materials .motif-mine.material-library-embedded {
  min-width:0;
  padding:0;
  border:0;
  background:transparent;
}
html body .mold-pattern-panel .mold-my-materials .material-toolbar {
  margin:0;
}
html body .mold-pattern-panel .mold-my-materials .material-meta {
  margin:0;
  font-size:12px;
}
html body .mold-pattern-panel .mold-my-materials .material-grid {
  gap:8px;
  margin:6px 0 0;
}
html body .mold-pattern-panel .mold-my-materials .material-card {
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  overflow:visible;
}
html body .mold-pattern-panel .mold-my-materials .material-use-tile {
  padding:7px 5px;
  min-height:0;
  border:1px solid #c4d9ea;
  border-radius:12px;
  background:#e0eef9;
  box-shadow:none;
}
html body .mold-pattern-panel .mold-my-materials .material-use-tile:hover:not(:disabled) {
  background:#d5e7f6;
  border-color:#82afcf;
}
html body .mold-pattern-panel .mold-my-materials .material-use-tile:focus-visible {
  outline:2px solid #173f73;
  outline-offset:2px;
}
html body .mold-pattern-panel .mold-my-materials .material-use-tile .material-picture {
  height:auto;
  aspect-ratio:1;
  border:0;
  border-radius:0;
}
html body .mold-pattern-panel .mold-my-materials .material-use-tile h2 {
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  width:100%;
  min-height:2.8em;
  margin:4px 0 0;
  overflow:hidden;
  color:inherit;
  font:400 11px/1.4 'Yuanti SC',STYuanti,'PingFang SC',sans-serif;
  text-align:center;
  word-break:normal;
  overflow-wrap:anywhere;
}
html body .mold-editor-layout .mold-legacy-image-controls{display:none!important}
html body .mold-pattern-panel .mold-edit-detail{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:46px;background:#dcecf9;border-color:#98bcda;color:#173f73;font-weight:700}
html body .mold-pattern-panel .mold-edit-detail .zb-ui-symbol{width:24px;height:24px;flex:0 0 24px}
html body .mold-editor-layout :is(#choose-shape,.shape-options,.shapes) button:has(.mold-baseplate-illustration){display:flex;align-items:center;gap:8px;min-height:70px}
.mold-baseplate-illustration{display:block;flex:0 0 72px;width:72px;height:48px;background-image:url("https://static.zaozuoba.cn/public-static/05d282de30862c726488d06e04f161b6bc4435eb964e8f73f6ebb92532d4998e/molds/assets/ui-blue/baseplates-20261117.webp");background-size:200% 200%;background-repeat:no-repeat;border-radius:7px}
.mold-baseplate-circle{background-position:0 0}.mold-baseplate-rectangle{background-position:100% 0}.mold-baseplate-oval{background-position:0 100%}.mold-baseplate-outline{background-position:100% 100%}
html body .mold-editor-layout .boundary-option{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
html body .mold-editor-layout .mold-boundary-illustration{width:70px;height:54px;object-fit:contain;display:block}
html body .mold-editor-layout .boundary-options:has([data-boundary-mode]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
html body .mold-editor-layout .boundary-option:has(.mold-boundary-illustration){min-height:112px}
html body .mold-editor-layout :is(.template-section,.moon-examples,#mold-save-status,#work-state)[hidden],html body .mold-editor-layout :is(#mold-save-status,#work-state):not(.ze-save-status *){display:none!important}
html body .mold-editor-layout .preview-header{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center}
html body .mold-editor-layout .preview-header .ze-view-modes,html body .mold-editor-layout .preview-header .tabs{grid-column:2;justify-self:center;margin:0}
html body .mold-editor-layout .preview-header .live-status{grid-column:3;justify-self:end}
html body .mold-editor-layout .mold-editor-section>summary,html body .mold-editor-layout .ze-settings-group>summary{display:flex;align-items:center;list-style:none;gap:8px}
html body .mold-editor-layout .mold-editor-section>summary::-webkit-details-marker,html body .mold-editor-layout .ze-settings-group>summary::-webkit-details-marker{display:none}
html body .mold-editor-layout details>summary::before{content:none!important;display:none!important}
html body .mold-editor-layout .mold-editor-section>summary::after,html body .mold-editor-layout .ze-settings-group>summary::after{content:'⌄';margin-left:auto;font:22px/1 system-ui,sans-serif;color:#4d83b4;transform:rotate(-90deg)}
html body .mold-editor-layout .mold-editor-section[open]>summary::after,html body .mold-editor-layout .ze-settings-group[open]>summary::after{transform:none}
html body .mold-editor-layout input[type="range"],.mold-line-dialog input[type="range"],.mold-batch-dialog input[type="range"]{-webkit-appearance:none!important;appearance:none!important;height:6px!important;min-height:6px!important;padding:0!important;border:0!important;border-radius:999px!important;background:#bed5e7!important;cursor:pointer;accent-color:#173f73}
html body .mold-editor-layout input[type="range"]::-webkit-slider-thumb,.mold-line-dialog input[type="range"]::-webkit-slider-thumb,.mold-batch-dialog input[type="range"]::-webkit-slider-thumb{-webkit-appearance:none!important;appearance:none!important;width:26px!important;height:26px!important;border:4px solid #fff!important;border-radius:50%!important;background:#173f73!important;box-shadow:0 2px 6px #173f7355!important}
html body .mold-editor-layout input[type="range"]::-moz-range-thumb,.mold-line-dialog input[type="range"]::-moz-range-thumb,.mold-batch-dialog input[type="range"]::-moz-range-thumb{width:18px!important;height:18px!important;border:4px solid #fff!important;border-radius:50%!important;background:#173f73!important;box-shadow:0 2px 6px #173f7355!important}
.mold-line-dialog{width:min(900px,calc(100vw - 28px));max-height:calc(100dvh - 28px);padding:0;border:1px solid #bdd4e6;border-radius:16px;background:#fffaf0;color:#173f73;box-shadow:0 18px 55px #173f7330}
.mold-line-dialog::backdrop{background:#16365499}.mold-line-head{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border-bottom:1px solid #c8dbea}.mold-line-head h2{font:24px/1.4 ZaobaLayout,sans-serif;margin:0}.mold-line-body{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:16px;padding:16px;overflow:auto}.mold-line-canvas{position:relative;min-width:0;min-height:280px;display:grid;place-items:center;background:#edf3f6;border-radius:12px}.mold-line-canvas canvas{display:block;max-width:100%;max-height:65dvh;width:auto;height:auto;background:white;object-fit:contain}.mold-line-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.mold-line-controls{display:flex;flex-direction:column;gap:11px}.mold-line-dialog button{min-height:42px;border:1px solid #b8cfdf;border-radius:9px;background:#fffdf8;color:#173f73}.mold-line-tools button{font-size:11px;min-height:100px}.mold-line-tools button img{display:block;width:58px;height:50px;object-fit:contain;margin:auto}.mold-line-tools button[aria-pressed=true]{border:2px solid #438ac7;background:#dcecf9}.mold-line-controls [data-save]{background:#173f73;color:white}.mold-line-dialog .line-brush-ring{position:absolute;z-index:2;border:1px solid #173f73;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none;box-shadow:0 0 0 1px white}
@media(max-width:760px){.mold-line-body{grid-template-columns:1fr}.mold-line-canvas{min-height:180px}.mold-line-canvas canvas{max-height:42dvh}.mold-line-tools button{min-height:70px}}
/* The public picker owns the visible My category; legacy receivers retain deep-link handling. */
html body .mold-editor-layout .mold-editor-controls>.material-entry,
html body .mold-editor-layout .mold-editor-section .material-entry{display:none}
html body .mold-editor-layout.ze-standard-header .zl-account{white-space:nowrap;min-width:70px}
html body .mold-editor-layout.ze-standard-header .zl-account>span:not(.zb-ui-symbol){flex:none}
@media(max-width:760px){html body[data-mold-layout-ready] .mold-editor-layout.ze-standard-header .zl-header{grid-template-columns:44px minmax(0,1fr) 70px}}
.mold-batch-panel{padding:18px;display:grid;gap:14px;color:#173f73}.mold-batch-intro,.mold-batch-adjust{background:#e8f3fb;border:1px solid #b8d7eb;border-radius:18px;padding:16px}.mold-batch-intro strong{font-size:1.15rem}.mold-batch-panel p{margin:.3em 0;line-height:1.5}.mold-batch-upload{display:block;text-align:center;padding:18px 12px;border:2px dashed #7badd2;border-radius:16px;background:#f7fbfe;font-weight:700;cursor:pointer}.mold-batch-upload input{position:absolute;width:1px;height:1px;opacity:0}.mold-batch-adjust{display:grid;gap:10px}.mold-batch-adjust h3{margin:0}.mold-batch-adjust label{display:grid;gap:8px}.mold-batch-select{display:flex;gap:8px}.mold-batch-panel button,.mold-batch-dialog button{border:1px solid #a4c6df;background:#f8fbfe;color:#173f73;border-radius:12px;padding:10px 12px;font:inherit;cursor:pointer}.mold-batch-panel button:disabled,.mold-batch-dialog button:disabled{opacity:.5;cursor:default}.mold-batch-workspace{padding:20px}.mold-batch-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}.mold-batch-card{display:grid;gap:7px;padding:12px;border:1px solid #c7d9e6;border-radius:16px;background:#f8fcff;text-align:left}.mold-batch-card img{width:100%;height:145px;object-fit:contain;background:white;border-radius:10px}.mold-batch-card strong{overflow-wrap:anywhere}.mold-batch-state{font-size:.85em;color:#476984}.mold-batch-state.done{color:#16704b}.mold-batch-state.error{color:#ae542f}.mold-batch-card button{padding:7px;border:1px solid #9dbfda;border-radius:8px;background:#e8f3fb;color:#173f73}.mold-batch-active>:not(h2):not(.mold-batch-workspace){display:none!important}.mold-batch-dialog .mold-line-controls [data-note]{min-height:2.5em}
.mold-editor-layout[data-active-tool="batch"] .ze-save-status{display:none!important}

.mold-batch-styles{display:grid;gap:8px}.mold-batch-style-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.mold-batch-style-choices button{display:flex;align-items:center;gap:6px;text-align:left;min-height:52px;background:#fbf7ee}.mold-batch-style-choices button[aria-pressed="true"]{border-color:#438dca;background:#dceefd;box-shadow:0 0 0 1px #438dca inset}.mold-batch-style-choices img{width:28px;height:28px;object-fit:contain}.mold-batch-style-choices i{display:block;width:26px;height:26px;border:2px solid #174776;border-radius:50%;flex:none}.mold-batch-style-choices i.rectangle{border-radius:7px}.mold-batch-style-choices i.oval{border-radius:50%;transform:scaleX(.7)}.mold-batch-style-choices i.outline{border-radius:40% 65% 35% 50%;transform:rotate(-15deg)}.mold-batch-detail-styles{margin:6px 0}
.mold-batch-workspace{display:flex;flex-direction:column;gap:16px;height:100%;min-height:0;padding:24px;background:#fffaf0;overflow:auto}.mold-batch-workspace[hidden]{display:none}.mold-batch-workspace-head{display:flex;justify-content:space-between;align-items:end;gap:16px;padding-bottom:18px;border-bottom:1px solid #dbe4e7}.mold-batch-workspace-head h2{font:30px/1.25 ZaobaLayout,'Yuanti SC',sans-serif;margin:3px 0 7px;color:#173f73}.mold-batch-workspace-head p{margin:0;color:#60778f;font-size:13px}.mold-batch-kicker{letter-spacing:.14em!important;font-size:10px!important;color:#438ac7!important}.mold-batch-workspace .mold-batch-select{display:flex;gap:8px;flex-wrap:wrap}.mold-batch-grid{grid-template-columns:repeat(auto-fill,minmax(166px,1fr));align-content:start}.mold-batch-card{display:flex;flex-direction:column;gap:8px;min-width:0;background:#fffdf7;box-shadow:0 3px 9px #173f7309}.mold-batch-card.selected{border-color:#438ac7;background:#f2f8fd}.mold-batch-card-top{display:flex;justify-content:space-between;align-items:center}.mold-batch-card-top input{width:18px;height:18px;accent-color:#173f73}.mold-batch-card img{height:130px}.mold-batch-card strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mold-batch-card small{font-size:11px;color:#617589;line-height:1.45;min-height:30px}.mold-batch-card button{margin-top:auto;width:100%}.mold-batch-empty{border:1px dashed #b8cddd;border-radius:16px;padding:60px 20px;text-align:center;color:#617589}.mold-batch-empty[hidden]{display:none}@media(max-width:760px){.mold-batch-workspace{padding:12px}.mold-batch-workspace-head{display:block}.mold-batch-select{margin-top:12px}.mold-batch-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mold-batch-card img{height:100px}}
#editor-dialog .editor-tools button[data-tool] img{width:25px;height:25px;object-fit:contain;vertical-align:middle;margin-right:5px}

.mold-text-dialog canvas{touch-action:none;cursor:grab}.mold-text-dialog canvas:active{cursor:grabbing}.mold-line-controls [data-apply]{background:#173f73;color:white}
html body .mold-editor-layout .mold-text-add-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;width:100%;min-height:88px;margin:15px 0;padding:14px;border:1px dashed #8ea9c1;border-radius:16px;background:#e0eaf4;color:#173f73;font:400 15px 'Yuanti SC','STYuanti','Avenir Next','PingFang SC',sans-serif;text-align:center;box-shadow:none}
html body .mold-editor-layout .mold-text-add-card:hover:not(:disabled){background:#d2e1ef;border-color:#173f73}
html body .mold-editor-layout .mold-text-add-card:focus-visible{outline:2px solid #173f73;outline-offset:3px}
html body .mold-editor-layout .mold-text-add-card:disabled{opacity:.45}
html body .mold-editor-layout .mold-text-add-card .zb-ui-symbol{width:28px!important;height:28px!important;flex:0 0 28px!important}
.mold-text-list{display:grid;gap:9px;margin:15px 0}
html body .mold-editor-layout .mold-text-item{width:100%;min-height:52px;padding:12px 18px;border:1px solid #c8c9bd;border-radius:13px;background:#fffcf3;color:#173f73;font:400 15px 'Yuanti SC','STYuanti','Avenir Next','PingFang SC',sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body .mold-editor-layout .mold-text-item[aria-pressed=true]{background:#e0eaf4;border-color:#8ea9c1}
.mold-text-controls{display:grid;gap:8px}.mold-text-controls[hidden]{display:none!important}.mold-text-controls label{font-size:13px;color:#173f73}
.mold-text-controls input{width:100%;min-height:44px;padding:8px 12px;border:1px solid #b8cfdf;border-radius:10px;background:#fffdf7;color:#173f73;font:inherit}
.mold-text-actions{display:flex;gap:8px}.mold-text-actions button{flex:1;border:1px solid #b8cfdf;border-radius:10px;background:#fffdf7;color:#173f73;padding:8px}.mold-text-status{min-height:1em;font-size:12px;color:#526d81}
.mold-text-overlay{position:absolute;inset:0;z-index:5;display:grid;place-items:center;background:#f4f2e9;overflow:hidden;touch-action:none}
.mold-text-overlay[hidden]{display:none!important}.mold-text-board{position:relative;box-shadow:0 8px 28px #173f7325;background:#fff}
.mold-text-board canvas,.mold-text-objects{position:absolute;inset:0;width:100%;height:100%}.mold-text-board canvas{display:block}
.mold-text-object{position:absolute;width:max-content;max-width:95%;padding:1px 4px;border:1px solid transparent;background:transparent;color:#111;font-family:'Yuanti SC','PingFang SC',sans-serif;font-weight:700;line-height:1.2;white-space:nowrap;touch-action:none;cursor:grab;user-select:none}
.mold-text-object[aria-pressed=true]{border:1px dashed #4a90d9;box-shadow:0 0 0 2px #ffffffb5}.mold-text-object:active{cursor:grabbing}
.mold-text-rotate,.mold-text-resize{position:absolute;display:block;width:18px;height:18px;border:2px solid #fff;border-radius:50%;background:#173f73;box-shadow:0 1px 4px #173f7370}
.mold-text-rotate{top:-28px;left:calc(50% - 9px);cursor:crosshair}.mold-text-resize{right:-12px;bottom:-12px;border-radius:4px;cursor:nwse-resize}
.mold-text-editing :is(#viewport,#flat-preview,#art-preview){visibility:hidden}

html body .mold-editor-layout.ze-standard-header .zl-header .zl-commands > .mold-batch-download[hidden],
html body .mold-editor-layout.ze-standard-header[data-active-tool="batch"] .zl-header .zl-commands > .mold-batch-original-download{
  display:none!important;
}

html body .mold-pattern-panel {
  --motif-panel-tint:#e7f2fb;
  --motif-panel-edge:#4a90d9;
  width:100%;
  min-width:0;
}
html body .mold-pattern-panel .motif-upload-card.is-dragging {
  outline:2px solid var(--motif-panel-edge);
  outline-offset:2px;
}
.mold-line-controls [data-error] {
  margin:0;
  color:#a2372c;
  font-size:13px;
}
html body .mold-pattern-panel .mold-title-field {
  font:400 15px/1.65 'Yuanti SC','PingFang SC',sans-serif;
}
html body .mold-pattern-panel .mold-title-field label {
  margin:0;
  font:600 15px/1.65 'Yuanti SC','PingFang SC',sans-serif;
}
html body .mold-pattern-panel .mold-title-field #work-title-input {
  box-sizing:border-box;
  height:44px;
  min-height:44px;
  padding:8px 12px;
  border:1px solid #9ab9d2;
  border-radius:9px;
  font:inherit;
}
html body .mold-pattern-panel .mold-title-field small {
  font:400 12px/1.65 'Yuanti SC','PingFang SC',sans-serif;
}
html body .mold-pattern-panel .motif-standard .motif-upload-card {
  min-height:87.5px;
  border-radius:8px;
}
html body .mold-pattern-panel button.mold-edit-detail {
  min-height:46px;
  margin:0;
  padding:1px 6px;
  border-radius:8px;
  line-height:1.65;
}
html body .mold-pattern-panel button.mold-edit-detail:disabled {
  opacity:.5;
}
html body .mold-pattern-panel .motif-mine .material-empty {
  margin:0;
  padding:16px 0 10px;
}
html body .mold-pattern-panel .motif-mine button[aria-label="管理本机素材"] {
  min-height:44px;
  padding-inline:4px;
  background:transparent;
  color:#173f73;
}

html body .mold-picture-actions .motif-standard .motif-upload-card {
  border-radius:16px;
  min-height:88px;
}
html body .mold-picture-actions button.pl-repair-open {
  border:1px solid #a7c7df;
  border-radius:16px;
  min-height:44px;
  margin:0;
  padding:8px 14px;
  background:#f0f6fb;
  font:400 15px/1.5 'Yuanti SC',STYuanti,'PingFang SC',sans-serif;
}
html body .mold-picture-actions button.pl-repair-open:hover:not(:disabled) {
  background:#e1edf8;
  border-color:#4a90d9;
}

.mold-batch-dialog .mold-line-canvas img,.batch-detail-canvas #batch-detail-image {
  display:block;
  width:100%;
  height:100%;
  max-height:54dvh;
  object-fit:contain;
}

/* Keep local draft actions together above the mold settings. */
.mold-draft-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.mold-draft-actions:empty { display: none; }
.mold-draft-actions > .ze-header-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  box-sizing: border-box;
  height: 50px;
  padding: 6px;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}
.mold-draft-actions > .ze-header-button .zb-ui-symbol {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}
