:root{
  font-family:"Microsoft YaHei","PingFang SC",Arial,sans-serif;
  color:#20242d;
  background:#fff;
  font-size:14px;
  line-height:1.65;
  --paper:#fff;
  --line:#e7e7e7;
  --muted:#858585;
  --blue:#6672f5;
  --blue-text:#1769e8;
  --red:#ee5e62;
  --toolbar-control-height:34px;
}

*{box-sizing:border-box}
body{margin:0;overflow:hidden;background:#fff}
button,input,select{font:inherit}
button{cursor:pointer}
.hidden{display:none!important}
.primary{background:var(--blue)!important;border-color:var(--blue)!important;color:#fff!important}
.eyebrow{margin:0 0 3px;color:#969696;font-size:10px;letter-spacing:.11em}

.app{
  height:100vh;
  display:grid;
  grid-template-columns:56px 318px minmax(0,1fr);
  transition:grid-template-columns .2s ease;
}

.menu-rail{
  position:relative;
  z-index:22;
  display:flex;
  min-width:0;
  flex-direction:column;
  align-items:center;
  gap:4px;
  padding:12px 5px;
  border-right:1px solid var(--line);
  background:#f8f9fb;
}
.menu-rail-item{
  position:relative;
  display:flex;
  width:46px;
  min-height:54px;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  padding:6px 2px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:#737b89;
  font-size:10px;
  line-height:1;
  cursor:pointer;
}
.menu-rail-item svg{width:19px;height:19px}
.menu-rail-item:hover{background:#eef2f8;color:#3f4b5d}
.menu-rail-item.active{background:#e9efff;color:#315efb;font-weight:600}
.menu-rail-item.active::before{position:absolute;top:10px;bottom:10px;left:-5px;width:3px;border-radius:0 3px 3px 0;background:#315efb;content:""}
.menu-rail-item:focus-visible{outline:2px solid #6672f5;outline-offset:1px}

.toc-pane{
  position:relative;
  background:#fff;
  border-right:1px solid var(--line);
  display:flex;
  flex-direction:column;
  min-width:0;
  overflow:visible;
}
.toc-collapse-button{
  position:absolute;
  z-index:12;
  top:20px;
  right:14px;
  display:grid;
  width:34px;
  height:34px;
  place-items:center;
  padding:0;
  border:1px solid #d8dce4;
  border-radius:6px;
  background:#fff;
  color:#5f6570;
  box-shadow:0 2px 7px #272d3a12;
}
.toc-collapse-button:hover{border-color:#9da7b7;background:#f4f6f9;color:#303742}
.toc-collapse-button:focus-visible{outline:2px solid #6672f5;outline-offset:2px}
.toc-collapse-button svg{width:18px;height:18px;transition:transform .2s ease}
.app.catalog-collapsed{grid-template-columns:56px 0 minmax(0,1fr)}
.app.catalog-collapsed .toc-pane{height:0;min-height:0;border-right:0}
.app.catalog-collapsed .toc-pane>*:not(.toc-collapse-button){visibility:hidden;pointer-events:none}
.app.catalog-collapsed .toc-collapse-button{position:fixed;z-index:21;top:11px;right:auto;left:68px}
.app.catalog-collapsed .toc-collapse-button svg{transform:rotate(180deg)}
.app.catalog-collapsed .topbar{padding-left:58px}
.app.module-page,.app.module-page.catalog-collapsed{grid-template-columns:56px 0 minmax(0,1fr)}
.app.module-page .toc-pane,.app.module-page .topbar,.app.module-page .history-bar{display:none}
.app.module-page .workspace{grid-column:3;height:100vh}
.toc-header{display:none}
.toc-tabs{
  height:76px;
  flex:0 0 76px;
  display:flex;
  align-items:flex-end;
  gap:26px;
  padding:0 24px;
  border-bottom:1px solid var(--line);
}
.toc-tabs button{
  border:0;
  background:transparent;
  color:#4f5055;
  padding:0 2px 15px;
  font-size:15px;
}
.toc-tabs button.active{color:#1769e8;border-bottom:2px solid #1769e8}
.section-list{padding:16px 24px;overflow:auto}
.section-item{
  display:block;
  width:100%;
  border:0;
  background:transparent;
  border-radius:0;
  padding:7px 0;
  color:#6d6d70;
  text-align:left;
  line-height:1.5;
  font-size:14px;
}
.section-item:hover{background:transparent;color:#25262b}
.section-row{display:flex;align-items:center;gap:5px;border-radius:5px;transition:background .15s,box-shadow .15s}
.section-row .section-item{flex:1;min-width:0}
.section-row.active{background:#eef2ff;box-shadow:inset 3px 0 0 var(--blue)}
.section-row.active .section-item{padding-left:8px;font-weight:700}
.section-row.dragging{opacity:.45}
.section-row.drag-over{background:#e2e7ff;box-shadow:inset 0 2px 0 var(--blue)}
.section-drag-handle,.section-delete-button{display:none;flex:0 0 auto;border:1px solid transparent;border-radius:4px;background:transparent;padding:4px 5px;color:#858896}
.section-list.directory-editing .section-drag-handle,.section-list.directory-editing .section-delete-button{display:inline-flex}
.section-list.directory-editing .section-drag-handle{cursor:grab}
.section-list.directory-editing .section-delete-button{color:#c34249}
.section-list.directory-editing .section-delete-button:hover{border-color:#efb2b5;background:#fff1f1}
.section-title-input{min-width:0;flex:1;border:1px solid transparent;border-radius:4px;background:transparent;padding:5px 4px;color:inherit}
.section-title-input:hover,.section-title-input:focus{border-color:#b8c0fb;background:#fff;outline:0}
.section-item.active{background:transparent}
.section-item:focus:not(:focus-visible){outline:none}
.section-item:focus-visible{outline:2px solid #5f77ee;outline-offset:2px}
.section-item.danger{color:var(--red)}
.section-item.danger.active{color:#e94d58}
.outline-level-2{padding-left:18px;font-size:12px;color:#626872}
.outline-level-3{padding-left:32px;font-size:12px;color:#7a8089}
.outline-empty{margin:12px 0;padding:12px;border:1px dashed #d7dce5;border-radius:6px;color:#8b9099;text-align:center;font-size:12px}
.account{
  margin-top:auto;
  border-top:1px solid var(--line);
  padding:12px 24px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  color:#555;
  font-size:12px;
}
.account span{display:grid;min-width:0;gap:2px}.account strong,.account small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account small{color:#92969f;font-size:10px;font-weight:400}
.account button{flex:0 0 auto;border:0;background:transparent;color:#777b85;padding:4px}.account button:hover{color:#315efb}

.workspace{min-width:0;min-height:0;overflow:hidden;background:#fff;display:flex;flex-direction:column}
.topbar{
  position:sticky;
  top:0;
  z-index:20;
  box-sizing:border-box;
  height:76px;
  flex:0 0 76px;
  background:#fff;
  border-bottom:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 24px;
}
.topbar h1{font-size:20px;line-height:1.35;margin:0;font-weight:700}
.topbar>div:first-child{min-width:0;flex:1 1 auto;padding-right:16px}.topbar h1{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.top-actions{display:flex;min-width:0;flex:0 1 auto;gap:6px;align-items:center}
.top-actions .search{position:static;min-width:190px;flex:0 1 280px;transform:none}
.top-actions>button,.search button{
  box-sizing:border-box;
  height:var(--toolbar-control-height);
  flex:0 0 auto;
  border:1px solid #dedede;
  background:#fff;
  color:#424348;
  border-radius:5px;
  padding:6px 10px;
  white-space:nowrap;
}
.top-actions>button:disabled{cursor:not-allowed;opacity:.38}
.search{display:flex;border:1px solid #dedede;border-radius:5px;overflow:hidden;background:#fff}
.search input{width:190px;min-width:0;border:0;outline:0;padding:7px 9px}
.search button{border-width:0 0 0 1px;border-radius:0}
.history-bar{position:sticky;top:76px;z-index:19;display:flex;align-items:center;min-height:48px;flex:0 0 48px;padding:7px 24px;border-bottom:1px solid var(--line);background:#f7f8fb;overflow:hidden;box-shadow:0 2px 5px rgba(31,42,68,.05)}
.history-bar-label{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.history-list{display:flex;align-items:center;gap:2px;min-width:0;max-width:100%;padding:3px;border:1px solid #e2e6ed;border-radius:12px;background:#eef1f6;overflow-x:auto;scrollbar-width:none;box-shadow:inset 0 1px 2px rgba(31,42,68,.04)}
.history-list::-webkit-scrollbar{display:none}
.history-tab{position:relative;display:flex;min-width:0;flex:0 0 auto;align-items:center;border-radius:9px;background:transparent;color:#344054;cursor:grab;transition:background-color .15s,color .15s,box-shadow .15s,opacity .15s,transform .15s}
.history-tab:hover{background:rgba(255,255,255,.62);color:#245faa}
.history-tab.active{background:#fff;color:#1677d2;font-weight:600;box-shadow:0 1px 4px rgba(35,52,82,.13)}
.history-tab.dragging{opacity:.42;cursor:grabbing;transform:scale(.97)}
.history-tab.drag-before::before,.history-tab.drag-after::after{position:absolute;top:4px;bottom:4px;width:3px;border-radius:3px;background:#1677d2;content:"";box-shadow:0 0 0 2px rgba(22,119,210,.13)}
.history-tab.drag-before::before{left:-3px}.history-tab.drag-after::after{right:-3px}
.history-item{min-width:0;max-width:190px;min-height:32px;border:0;border-radius:9px 0 0 9px;background:transparent;color:inherit;padding:6px 5px 6px 13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;font-size:14px}
.history-close{display:grid;width:27px;height:27px;flex:0 0 27px;place-items:center;margin-right:3px;padding:0;border:0;border-radius:7px;background:transparent;color:#98a1b2;cursor:pointer;font:18px/1 Arial,sans-serif}
.history-close:hover{background:#e5e9f0;color:#e05252}
.history-tab.active .history-close{color:#8292a9}.history-tab.active .history-close:hover{color:#e05252}

.merchant-navigator{display:flex;min-height:54px;flex:0 0 auto;align-items:center;gap:12px;padding:8px 18px;border-bottom:1px solid #cddff3;background:#f5f9ff;box-shadow:0 2px 7px rgba(39,86,140,.07)}
.merchant-navigator button{min-height:34px;padding:6px 11px;border:1px solid #c9d5e5;border-radius:5px;background:#fff;color:#315274;white-space:nowrap;cursor:pointer}
.merchant-navigator button:hover:not(:disabled){border-color:#78a9dc;background:#eef6ff;color:#1769b0}
.merchant-navigator button:disabled{cursor:not-allowed;opacity:.42}
.merchant-back{font-weight:600}
.merchant-context{display:flex;min-width:150px;flex-direction:column;line-height:1.3}
.merchant-context strong{color:#263b53;font-size:14px}
.merchant-context small{margin-top:3px;color:#6f8297;font-size:12px}
.merchant-select-wrap{display:flex;min-width:220px;flex:1;align-items:center;gap:8px;color:#65788d;font-size:12px}
.merchant-select-wrap select{min-width:0;min-height:34px;flex:1;border:1px solid #c9d5e5;border-radius:5px;background:#fff;color:#27384c;padding:5px 30px 5px 9px}
.merchant-switch-actions{display:flex;gap:7px}

.reader{flex:1;min-height:0;padding:0;background:#fff}
.reader iframe{display:block;width:100%;height:100%;border:0;border-radius:0;background:#fff}
.reader:fullscreen{width:100vw;height:100vh;background:#e9edf2}
.reader:fullscreen iframe{width:100%;height:100%}
.app.sheet-view .workspace,.app.sheet-view .reader,.app.sheet-view .reader iframe{background:#e9edf2}
.app.sheet-view .topbar{
  height:58px;
  flex-basis:58px;
  padding:7px 14px;
  border-bottom-color:#8f9aaa;
  background:#f1f3f6;
}
.app.sheet-view .topbar .eyebrow{display:none}
.app.sheet-view .topbar h1{font-size:18px}
.app.sheet-view .top-actions>button,.app.sheet-view .search,.app.sheet-view .search button{background:#f8f9fb}
.app.sheet-view .history-bar{background:#f7f8fb;border-bottom-color:#dfe3ea}
.app.sheet-view .history-bar{top:58px}
.editing-command-bar{
  position:relative;
  z-index:9;
  display:grid;
  grid-template-columns:auto minmax(320px,auto) 1fr auto;
  grid-template-areas:"status title filler actions" "tools tools tools tools";
  align-items:center;
  gap:8px 12px;
  padding:10px 16px;
  border-bottom:1px solid var(--line);
  background:#fff;
  box-shadow:0 3px 10px rgba(37,42,56,.06);
}
.editing-command-status{grid-area:status;display:flex;min-width:180px;flex-direction:column;line-height:1.25}
.editing-command-status strong{font-size:14px}
.editing-command-status span{margin-top:3px;color:#7f7c75;font-size:11px}
.editing-command-title{grid-area:title;display:flex;min-width:0;align-items:flex-end;gap:10px;color:#777;font-size:12px}
.editing-command-title label{display:flex;min-width:0;flex-direction:column;gap:3px;color:#777;font-size:12px}
.editing-command-title input{height:var(--toolbar-control-height);box-sizing:border-box;border:1px solid #dcdcdc;border-radius:5px;background:#fff;padding:6px 9px;color:#303238}
.sheet-title-control{align-items:center;gap:7px}
.sheet-title-control input{width:270px}
.editing-command-tools,.editing-command-actions{display:flex;align-items:center;gap:5px}
.editing-command-tools{grid-area:tools;min-width:0;max-width:100%;flex-wrap:wrap;overflow:visible;padding:2px 0}
.editing-command-actions{grid-area:actions;justify-self:end}
.editing-command-tools button,.editing-command-tools select,.editing-command-actions button{height:var(--toolbar-control-height);box-sizing:border-box;border:1px solid #dedede;border-radius:5px;background:#fff;color:#414249;padding:5px 10px}
.editing-command-tools button,.editing-command-tools select,.editing-command-tools>span,.editing-command-tools>details{flex:0 0 auto;white-space:nowrap}
.editing-command-tools button:hover,.editing-command-tools select:hover,.editing-command-actions button:hover{border-color:#aeb5ff;background:#f1f2ff}
.editing-command-tools button.active{border-color:#8e99ff;background:#eef0ff;color:#4e5bd1}
.editing-command-tools button:disabled{cursor:not-allowed;opacity:.42}
.sheet-cell-tools .sheet-media-action{border-color:#b8cde9;background:#f5f9ff;color:#38618f}
.sheet-cell-tools .sheet-media-action:hover:not(:disabled){border-color:#789fd1;background:#edf5ff}
.sheet-tool-divider{width:1px;height:24px;margin:0 3px;background:#dedede}
.sheet-image-size-tools{display:flex;align-items:center;gap:5px;white-space:nowrap}
.sheet-image-size-tools input[type=range]{width:120px}
.sheet-image-size-tools output{min-width:42px;color:#666;font-size:12px}
.sheet-content-width-tools{display:flex;align-items:center;gap:5px;white-space:nowrap}
.sheet-content-width-tools input[type=range]{width:105px}
.sheet-content-width-tools output{min-width:45px;color:#666;font-size:12px}
.sheet-more-tools{position:relative}
.sheet-more-tools>summary{display:flex;height:var(--toolbar-control-height);align-items:center;gap:7px;box-sizing:border-box;padding:5px 11px;border:1px solid #d8dbe2;border-radius:5px;background:#f8f9fb;color:#4b4e57;cursor:pointer;list-style:none;user-select:none}
.sheet-more-tools>summary::-webkit-details-marker{display:none}
.sheet-more-tools>summary span{font-size:12px;transition:transform .16s ease}
.sheet-more-tools[open]>summary{border-color:#9ca7ee;background:#f2f4ff;color:#4e5bd1}
.sheet-more-tools[open]>summary span{transform:rotate(180deg)}
.sheet-more-tools:not([open])>.sheet-more-panel{display:none}
.sheet-more-panel{position:absolute;z-index:12;top:calc(100% + 7px);right:0;display:flex;width:min(760px,calc(100vw - 360px));max-height:calc(100vh - 205px);align-items:center;flex-wrap:wrap;gap:10px 12px;box-sizing:border-box;padding:13px;border:1px solid #dfe2e9;border-radius:8px;background:#fff;box-shadow:0 12px 32px #252a381f;overflow:auto;white-space:normal}
.sheet-tool-group{display:flex;align-items:center;gap:6px;padding-right:12px;border-right:1px solid #e5e6ea}
.sheet-more-panel strong{color:#777b85;font-size:12px;font-weight:600}
.sheet-row-tools{border-right:0}
.sheet-font-size-tools{display:flex;align-items:center;gap:5px;color:#666;font-size:12px}
.sheet-cell-tools .sheet-font-family{width:122px;padding-right:25px}
.sheet-font-size-tools input{width:58px;height:var(--toolbar-control-height);box-sizing:border-box;padding:4px 6px;border:1px solid #dedede;border-radius:5px;background:#fff;color:#303238;text-align:center}
.sheet-font-size-tools output{min-width:36px;color:#666;font-size:12px}
.table-size-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}
.table-size-fields label{display:grid;gap:6px;color:#555;font-size:13px}
.table-size-fields input{width:100%;box-sizing:border-box;padding:8px 10px;border:1px solid #d7d9df;border-radius:5px}
.editor-surface table td:has(>img),.editor-surface table th:has(>img){height:260px!important;padding:0!important;overflow:hidden;line-height:0}
.editor-surface .image-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--image-gallery-spacing,5px);width:100%;box-sizing:border-box;margin:18px auto;padding:var(--image-gallery-spacing,5px);border:1px solid #d3d8e0;background:#fff}
.editor-surface .image-gallery.editor-gallery-selected{outline:2px solid #7481ee;outline-offset:3px}
.editor-surface .image-gallery.borderless{border-color:transparent}
.editor-surface .image-gallery.borderless .image-cell{border-color:transparent}
.editor-surface .image-cell{position:relative;height:var(--image-cell-height,auto);aspect-ratio:var(--image-cell-ratio,2/3);min-width:0;overflow:hidden;border:1px solid #d3d8e0;background:#fafbfc;text-align:center}
.editor-surface .image-cell-placeholder{display:flex;width:100%;height:100%;align-items:center;justify-content:center;box-sizing:border-box;margin:0!important;padding:12px;color:#6672d9;background:#f7f8ff;cursor:pointer;line-height:1.5}
.editor-surface .image-cell-placeholder:hover{background:#eef1ff}
.editor-surface .image-cell .editable-image-block{width:100%;height:100%;margin:0;line-height:0}
.editor-surface .image-cell .editable-image-block img{display:block;width:100%!important;height:100%!important;border:0;object-fit:cover;object-position:center}
.editor-surface table td:has(>img)>img,.editor-surface table th:has(>img)>img{display:block;width:100%!important;height:260px!important;margin:0!important;object-fit:cover;object-position:center}
.editor-surface table td:has(>img+img)>img,.editor-surface table th:has(>img+img)>img{height:130px!important}
.editor-surface table td:has(>img+img+img)>img,.editor-surface table th:has(>img+img+img)>img{height:87px!important}
.editor-surface table tr:has(td>img:nth-of-type(2),th>img:nth-of-type(2)) td:has(>img)>img,.editor-surface table tr:has(td>img:nth-of-type(2),th>img:nth-of-type(2)) th:has(>img)>img{height:520px!important}
.editor-surface table tr:has(td>img:nth-of-type(2),th>img:nth-of-type(2)) td:has(>img:nth-of-type(2))>img,.editor-surface table tr:has(td>img:nth-of-type(2),th>img:nth-of-type(2)) th:has(>img:nth-of-type(2))>img{height:260px!important}
.editor-surface table tr:has(td>img:nth-of-type(3),th>img:nth-of-type(3)) td:has(>img)>img,.editor-surface table tr:has(td>img:nth-of-type(3),th>img:nth-of-type(3)) th:has(>img)>img{height:780px!important}
.editor-surface table tr:has(td>img:nth-of-type(3),th>img:nth-of-type(3)) td:has(>img:nth-of-type(3))>img,.editor-surface table tr:has(td>img:nth-of-type(3),th>img:nth-of-type(3)) th:has(>img:nth-of-type(3))>img{height:260px!important}
.editor-surface table[data-image-layout-mode] td:has(>img),.editor-surface table[data-image-layout-mode] th:has(>img){height:auto!important}
.editor-surface table[data-image-layout-mode="ratio"] td>img,.editor-surface table[data-image-layout-mode="ratio"] th>img{height:auto!important;aspect-ratio:var(--image-cell-ratio,2/3);object-fit:cover}
.editor-surface table[data-image-layout-mode="height"] td>img,.editor-surface table[data-image-layout-mode="height"] th>img{height:var(--image-cell-height,260px)!important;object-fit:cover}
.editor-surface table:has(img){border:1px solid #d3d8e0;border-collapse:separate!important;border-spacing:var(--image-gallery-spacing,5px);background:#fff}.editor-surface table:has(img) td,.editor-surface table:has(img) th{border:1px solid #d3d8e0}.editor-surface table:has(img) td>img,.editor-surface table:has(img) th>img{border:0!important}.editor-surface table.borderless,.editor-surface table.borderless td,.editor-surface table.borderless th{border-color:transparent}
.sheet-cell-tools .sheet-row-action{border-color:#aeb6fb;background:#f4f5ff;color:#4e5bd1;font-weight:600}
.sheet-cell-tools .sheet-row-danger{border-color:#efc6c8;background:#fffafa;color:#bd484e}
.sheet-edit-actions .primary{border-color:var(--accent);background:var(--accent);color:#fff}
.exit-edit-button{border-color:#d9dce3!important;background:#fff!important;color:#5d626d!important}
.exit-edit-button:hover{background:#f5f6f8!important;border-color:#bfc4ce!important;color:#353a44!important}
.search-results{
  position:absolute;
  z-index:25;
  right:210px;
  top:68px;
  width:460px;
  max-height:520px;
  overflow:auto;
  background:#fff;
  border:1px solid var(--line);
  border-radius:7px;
  box-shadow:0 12px 32px #29261f1c;
  padding:8px;
}
.search-result{display:block;width:100%;border:0;border-bottom:1px solid #eee;background:#fff;text-align:left;padding:11px}
.search-result:hover{background:#f5f6ff}
.search-result small{display:block;color:#888}

.document-manager{flex:1;min-height:0;overflow:auto;padding:30px clamp(24px,4vw,64px) 48px;background:#f6f7f9}
.document-manager-head{display:flex;align-items:center;justify-content:space-between;gap:18px;max-width:1100px;margin:0 auto 20px}
.document-manager-head h2{margin:0;color:#20242d;font-size:26px}
.document-manager-head p{margin:5px 0 0;color:#7a7f89}
.document-manager-head button{height:38px;border:1px solid var(--blue);border-radius:6px;padding:7px 14px}
.document-manager-controls{display:grid;grid-template-columns:minmax(260px,1fr) 170px 170px auto;gap:10px;align-items:center;max-width:1100px;margin:0 auto 16px;padding:14px;border:1px solid #e0e3e9;border-radius:9px;background:#fff}
.document-manager-controls input,.document-manager-controls select{height:38px;border:1px solid #d8dce4;border-radius:6px;background:#fff;padding:7px 10px;color:#30343b}
.document-manager-controls span{color:#7a7f89;white-space:nowrap}
.document-manager-list{display:grid;max-width:1100px;margin:0 auto;gap:10px}
.document-manager-card{display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:14px;margin:0;padding:16px 18px;border:1px solid #e0e3e9;border-radius:9px;background:#fff;box-shadow:0 2px 8px rgba(37,45,64,.04)}
.document-manager-card h3{margin:0 0 4px;color:#242832;font-size:16px}
.document-manager-card p{margin:0;color:#838894;font-size:12px}
.document-manager-icon{display:grid;width:42px;height:42px;place-items:center;border-radius:9px;font-weight:700}
.document-manager-icon.document{background:#eef2ff;color:#5361d9}.document-manager-icon.sheet{background:#eaf8ef;color:#26864d}
.document-manager-actions{display:flex;gap:7px}
.document-manager-actions button{height:34px;border:1px solid #d8dce4;border-radius:5px;background:#fff;padding:6px 14px;color:#40454e}
.document-manager-actions .document-manager-delete{border-color:#efc4c7;background:#fff8f8;color:#c7434b}
.document-manager-actions .document-manager-delete:hover{border-color:#df8d93;background:#ffeded}
.document-manager-empty{display:flex;min-height:230px;flex-direction:column;align-items:center;justify-content:center;border:1px dashed #ccd2dc;border-radius:9px;background:#fff;color:#8a909b}
.document-manager-empty strong{margin-bottom:6px;color:#4f5662;font-size:16px}
@media(max-width:800px){.document-manager-controls{grid-template-columns:1fr}.document-manager-card{grid-template-columns:42px minmax(0,1fr)}.document-manager-actions{grid-column:1/-1;justify-content:flex-end}}

.user-manager{flex:1;min-height:0;overflow:auto;padding:38px clamp(28px,5vw,76px) 64px;background:linear-gradient(180deg,#f7f9fc 0,#f4f6f9 100%)}
.user-manager-head{margin-bottom:22px}
.user-manager-kicker{display:block;margin-bottom:6px;color:#6672f5;font-size:10px;font-weight:700;letter-spacing:.12em}
.user-manager-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));max-width:1100px;margin:0 auto 18px;gap:14px}
.user-manager-stats article{display:flex;align-items:center;gap:13px;min-height:76px;box-sizing:border-box;border:1px solid #e1e6ee;border-radius:11px;padding:14px 17px;background:#fff;box-shadow:0 4px 16px rgba(34,47,72,.045)}
.user-manager-stats strong,.user-manager-stats small{display:block}.user-manager-stats strong{color:#242936;font-size:23px;line-height:1.1}.user-manager-stats small{margin-top:4px;color:#858d9b;font-size:12px}
.user-stat-icon{display:grid;width:42px;height:42px;flex:0 0 42px;place-items:center;border-radius:10px;font-size:13px;font-weight:700}.user-stat-icon.total{background:#edf1ff;color:#5868df}.user-stat-icon.enabled{background:#e9f8ef;color:#21834a}.user-stat-icon.admin{background:#fff3df;color:#bd741a}.user-stat-icon.wechat{background:#e8f8ee;color:#18a352}
.user-manager-panel{box-sizing:border-box;max-width:1100px;margin:0 auto 18px;border:1px solid #e1e5ec;border-radius:11px;background:#fff;box-shadow:0 5px 20px rgba(32,44,68,.05);overflow:hidden}
.user-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 20px;border-bottom:1px solid #edf0f4;background:#fbfcfe}
.user-section-head>div{display:flex;align-items:center;gap:11px}.user-section-head h3{margin:0 0 3px;color:#29303c;font-size:16px}.user-section-head p{margin:0;color:#858d99;font-size:12px}
.user-section-icon{display:grid;width:34px;height:34px;flex:0 0 34px;place-items:center;border-radius:9px;background:#eaf0ff;color:#5265df;font-size:18px;font-weight:600}.user-section-icon.users{background:#e9f8ef;color:#25834d;font-size:12px}
.user-security-tip{border-radius:12px;padding:5px 9px;background:#f0f3f8;color:#7a8494;font-size:11px;white-space:nowrap}

.editor{flex:1;min-height:0;overflow:auto;padding:0 24px 28px;background:#f7f7f7}
.editor-meta{display:flex;justify-content:space-between;align-items:end;margin-bottom:8px}
.editor-meta-fields{display:flex;align-items:end;gap:10px}
.editor-meta label{font-size:12px;color:#777}
.editor-meta input{display:block;width:500px;border:1px solid #dcdcdc;border-radius:5px;padding:8px 10px;margin-top:3px}
.editor-meta #editorOrder{width:100px}
.directory-color-control,.dialog-color-control{display:flex;flex-direction:column;gap:3px;color:#777;font-size:12px}
.directory-color-control .color-palette-trigger,.dialog-color-control .color-palette-trigger{display:inline-flex;height:36px;align-items:center;gap:7px;border:1px solid #dcdcdc;border-radius:5px;background:#fff;padding:6px 9px;color:#404147}
.dialog-color-control{margin:14px 0}
.dialog-color-control>span{color:#676660;font-size:14px}
.editor-meta span{color:#8b8984;font-size:12px}
.text-editor-bar{position:sticky;top:0;z-index:10;margin:0 -24px 12px;padding:7px 14px;grid-template-columns:auto minmax(300px,1fr) auto;grid-template-areas:"status title actions" "tools tools tools";gap:6px 10px;transition:margin-bottom .16s ease}
.text-edit-status{min-width:112px;flex-direction:row;align-items:center;gap:7px}
.text-edit-status span{display:inline-flex;align-items:center;gap:5px;margin:0;padding:2px 7px;border-radius:999px;background:#f0f7f2;color:#4d7258;font-size:11px;white-space:nowrap}
.text-edit-status span::before{width:6px;height:6px;border-radius:50%;background:#58a66c;content:""}
.text-edit-actions{align-self:center;justify-self:end;align-items:center;flex-wrap:nowrap;gap:6px;white-space:nowrap}
.text-edit-actions>button,.text-edit-actions>.editor-page-settings>summary{min-width:76px;justify-content:center;font-weight:500}
.editor-meta-fields{align-items:flex-end}
.editor-meta-fields>label:first-child{flex:1 1 420px}
.editor-meta-fields>label:first-child input{width:min(540px,44vw)}
.editor-meta-fields #editorOrder{width:86px}
.editor-meta-fields .directory-color-control{align-self:flex-end}
.editor-meta-fields .directory-color-control .color-palette-trigger{height:var(--toolbar-control-height)}
.editor-page-settings{position:relative;display:flex;height:var(--toolbar-control-height);flex:0 0 auto;align-items:center}
.editor-page-settings>summary{display:flex;height:var(--toolbar-control-height);align-items:center;gap:7px;box-sizing:border-box;padding:5px 10px;border:1px solid #d9dce3;border-radius:5px;background:#fff;color:#5d626d;cursor:pointer;list-style:none;user-select:none}
.editor-page-settings>summary::-webkit-details-marker{display:none}
.editor-page-settings>summary span{font-size:11px;transition:transform .16s ease}
.editor-page-settings>summary:hover{border-color:#aeb5d9;background:#f5f7ff;color:#4855b7}
.editor-page-settings[open]>summary{border-color:#8f9be8;background:#eef1ff;color:#4654c3}
.editor-page-settings[open]>summary span{transform:rotate(180deg)}
.editor-page-settings-panel{position:absolute;z-index:16;top:calc(100% + 8px);right:0;display:flex;align-items:flex-end;gap:10px;min-width:280px;padding:12px;border:1px solid #dfe2e9;border-radius:8px;background:#fff;box-shadow:0 12px 30px #252a381f}
.editor-page-settings-panel label{display:flex;flex:0 0 auto;flex-direction:column;gap:4px;color:#737780;font-size:12px}
.editor-page-settings-panel label input{height:var(--toolbar-control-height);box-sizing:border-box;padding:5px 8px;border:1px solid #dcdfe5;border-radius:5px;background:#fff;color:#303238}
.editor-page-settings-panel .directory-color-control{flex:1 1 auto}
.toolbar{position:relative;z-index:3}
.toolbar button:disabled{cursor:wait;opacity:.62}
.toolbar .divider{width:1px;height:24px;background:#e1e1e1;margin:0 4px}
.editor-font-size-tools{display:flex;height:var(--toolbar-control-height);align-items:center;gap:4px;box-sizing:border-box;overflow:visible;border:0;background:transparent}
.editor-font-size-tools output{display:none}
.editor-font-size-tools #fontSize{width:64px;height:100%;box-sizing:border-box;padding:0 7px;border:1px solid #d9dce3;border-radius:5px;background:#fff;color:#30343c;text-align:center}
.editor-font-size-tools #editorFontSizeShrinkBtn,.editor-font-size-tools #editorFontSizeGrowBtn{width:31px;height:100%;padding:0!important;border:1px solid #d9dce3!important;border-radius:5px;background:#fff;color:#59606b;font-size:15px}
.editor-font-size-tools #editorFontSizeShrinkBtn:hover,.editor-font-size-tools #editorFontSizeGrowBtn:hover{border-color:#aeb5ff!important;background:#f1f2ff;color:#4654c3}
#fontName:focus,#fontSize:focus{border-color:#8f9be8;outline:0;box-shadow:0 0 0 2px rgba(99,116,232,.12)}
.text-editor-bar .editing-command-tools button,.text-editor-bar .editing-command-tools select{padding-inline:8px}
.toolbar-section-divider{width:1px;height:22px;margin:0 3px;background:#e1e3e8}
#editorBoldBtn{border-color:#dedede;background:#fff}
#editorBoldBtn:hover{border-color:#aeb5ff;background:#f1f2ff}
.editor-more-tools{position:static}
.editor-more-panel{right:auto;left:0;display:grid;width:min(960px,calc(100vw - 360px));grid-template-columns:minmax(270px,1.35fr) minmax(130px,.7fr) minmax(170px,.85fr) minmax(280px,1.3fr);align-items:stretch;gap:0;padding:0;overflow:hidden}
.app.catalog-collapsed .editor-more-panel{width:min(1060px,calc(100vw - 32px))}
.editor-more-panel .editor-more-group{display:flex;min-width:0;min-height:116px;align-items:flex-start;flex-direction:column;gap:9px;box-sizing:border-box;padding:12px 14px;border-right:1px solid #eceef2;border-bottom:0}
.editor-more-panel .editor-more-group:last-child{border-right:0}
.editor-more-group>strong{display:flex;min-height:18px;align-items:center}
.editor-more-group>div{display:flex;align-items:flex-start;align-content:flex-start;flex-wrap:wrap;gap:7px}
.editor-more-group>div>button{height:32px}
.editor-more-group .subtle-tool-button{border-color:transparent;background:#f7f8fa;color:#676c76}
.text-editor-bar:has(#editorMoreTools[open]){margin-bottom:140px}
.text-editor-bar:has(#editorPageSettings[open]){margin-bottom:12px}
.editor-block-tools{border-right:0}
.text-edit-actions .primary{border-color:var(--blue);background:var(--blue);color:#fff}
#fontName{min-width:142px;max-width:165px;background:#fff;color:#303136;color-scheme:light}
#fontName option,#fontName optgroup{background:#fff;color:#303136}
.palette-value-input{position:fixed!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.color-palette-trigger{display:inline-flex!important;align-items:center;gap:6px;white-space:nowrap}
.color-palette-trigger i{width:23px;height:17px;border:1px solid #cfd0d4;border-radius:3px;background:var(--current-color);box-shadow:inset 0 0 0 1px #ffffff7a}
.color-palette-trigger b{color:#818287;font-size:11px;font-weight:400}
.color-palette-trigger[aria-expanded="true"]{border-color:#8e99ff!important;background:#eef0ff!important}

.color-palette{
  position:fixed;
  z-index:24;
  width:min(468px,calc(100vw - 24px));
  max-height:min(760px,calc(100vh - 24px));
  overflow:auto;
  border:1px solid #d9dce5;
  border-radius:9px;
  background:#fff;
  box-shadow:0 18px 52px #1c20312e;
  padding:0 16px 14px;
}
.color-palette-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;margin:0 -16px;padding:13px 16px 11px;border-bottom:1px solid #ececf0;background:#fff}
.color-palette-head div{display:flex;flex-direction:column}
.color-palette-head strong{font-size:15px;color:#292b31}
.color-palette-head span{color:#8a8b91;font-size:11px}
.color-palette-head button{width:30px;height:30px;border:0;border-radius:4px;background:#fff;color:#6c6d72;font-size:21px;line-height:1}
.color-palette-head button:hover{background:#f1f2f7}
.color-palette-section{margin-top:13px}
.color-palette-section h3{margin:0 0 8px;color:#777981;font-size:12px;font-weight:600}
.color-preview-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
.color-preview-card{min-height:64px;border:1px solid #e2e3e8;border-radius:6px;background:#fff;padding:7px 8px;text-align:left}
.color-preview-card:hover,.color-preview-card.selected{border-color:#7f8af7;box-shadow:inset 0 0 0 1px #7f8af7}
.color-preview-card strong,.color-preview-card small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.color-preview-card strong{font-size:12px}
.color-preview-card small{margin-top:3px;color:#75777e;font-size:10px}
.color-preview-sample{display:inline-block;margin-top:5px;border-radius:3px;padding:1px 5px;font-weight:600}
.theme-color-grid,.standard-color-grid{display:grid;grid-template-columns:repeat(10,1fr);gap:4px}
.color-swatch{position:relative;aspect-ratio:1.25;border:1px solid #d6d7dc;border-radius:3px;background:var(--swatch-color);padding:0}
.color-swatch:hover{z-index:1;outline:2px solid #7f8af7;outline-offset:1px}
.color-swatch.selected{outline:2px solid #4f5de0;outline-offset:1px}
.color-swatch.selected::after{content:"✓";position:absolute;right:2px;bottom:-1px;color:var(--check-color,#fff);font-size:11px;font-weight:800;text-shadow:0 0 2px #0008}
.color-palette-footer{position:sticky;bottom:-14px;z-index:2;display:flex;align-items:center;gap:7px;margin:14px -16px -14px;padding:10px 16px;border-top:1px solid #ececf0;background:#fff}
.color-palette-footer button,.color-palette-footer label{height:32px;border:1px solid #dedfe4;border-radius:4px;background:#fff;padding:5px 9px;color:#4b4d54}
.color-palette-footer label{display:flex;align-items:center;gap:5px;margin-left:auto}
.color-palette-footer input{width:24px;height:20px;border:0;padding:0}
.color-palette-footer code{min-width:62px;color:#6f7178;font-size:11px}
.color-palette-footer button:hover{border-color:#9aa2f5;background:#f4f5ff}
.editor-surface{
  width:min(900px,100%);
  min-height:calc(100vh - 250px);
  margin:0 auto;
  background:#fff;
  border:1px solid var(--line);
  border-top:1px solid var(--line);
  padding:48px 64px 90px;
  outline:0;
  font-size:15px;
  line-height:1.8;
}
.editor-surface:focus{box-shadow:inset 0 0 0 1px #aeb5ff}
.editor-surface img{max-width:100%;height:auto;box-sizing:border-box;border:2px solid #8d98a8;cursor:pointer}
.editor-surface img.editor-image-selected,.editor-surface video.editor-image-selected{outline:3px solid #6672f5;outline-offset:4px;border-radius:2px}
.editor-surface video{display:block;width:100%;max-height:70vh;margin:auto;background:#111;border-radius:6px}
.editor-surface .media-block{margin:22px 0}
.editor-surface .media-block figcaption{margin-top:7px;color:#777;font-size:13px;text-align:center}
.editor-surface .content-background{padding:10px 14px;border-radius:5px}
.editor-surface table{border-collapse:collapse;width:100%}
.editor-surface td,.editor-surface th{border:1px solid #d7d3cc;padding:8px}
.editor-surface .wps-section-card{margin:18px 0;padding:28px 38px;border:1px solid;border-radius:7px}
.editor-surface .wps-section-card.mint{background:#eafbf1;border-color:#bde8cd}
.editor-surface .wps-section-card.peach{background:#fff7eb;border-color:#f2c997}
.editor-surface .wps-section-card.gray{background:#f5f5f5;border-color:#ddd}
.editor-surface .callout-label{display:inline-block;background:#fff0a6;font-weight:600;padding:1px 3px}
.toolbar button[data-wps-block="mint"]{background:#eafbf1;border-color:#bde8cd}
.toolbar button[data-wps-block="peach"]{background:#fff7eb;border-color:#f2c997}
.toolbar button[data-wps-block="gray"]{background:#f5f5f5;border-color:#d7d7d7}
.toolbar button[data-wps-block="notice"]{background:#eafbf1;border-color:#bde8cd}
.toolbar button[data-wps-block="material"]{background:#fff7eb;border-color:#f2c997}
.toolbar button[data-wps-block="hint"]{background:#f5f5f5;border-color:#d7d7d7}
.image-tools{
  position:relative;
  z-index:2;
  display:block;
  width:100%;
  max-width:100%;
  margin:10px 0;
  padding:0;
  overflow:hidden;
  border:1px solid #dce2ec;
  border-radius:10px;
  background:#fff;
  box-shadow:0 5px 18px rgba(36,49,74,.08);
}
.image-tools-head{display:flex;min-height:48px;align-items:center;justify-content:space-between;gap:16px;padding:8px 12px;border-bottom:1px solid #e7ebf1;background:#f7f9fc}.image-tools-head>div:first-child{display:flex;min-width:0;align-items:baseline;gap:9px}.image-tools-head strong{color:#26354d;font-size:14px}.image-tools-head small{overflow:hidden;color:#8791a1;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.image-tools-head-actions{display:flex;flex:0 0 auto;gap:6px}.image-tools-head-actions .danger{border-color:#f0c8cb;background:#fff8f8;color:#c84b52}
.image-basic-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 12px}.image-width-presets{display:flex;gap:5px}
.image-tools label{display:flex;align-items:center;gap:6px;color:#65666d;font-size:12px}
.image-tools input[type=range]{width:130px}
.gallery-tools{display:flex;min-width:0;align-items:center;gap:8px 10px;flex-wrap:wrap;padding:10px 12px;border-top:1px solid #e7ebf1;background:#fafbfd}
.gallery-tools label{white-space:nowrap}
.gallery-tools input[type=range]{width:100px}
.gallery-ratio-control{display:flex;align-items:center;gap:4px;white-space:nowrap;color:#65666d;font-size:12px}.gallery-ratio-control input{width:42px;height:28px;box-sizing:border-box;padding:3px 5px;border:1px solid #d8dbe2;border-radius:4px}.gallery-ratio-control b{font-weight:400}
.gallery-tools button.active{border-color:#7481ee;background:#eef1ff;color:#4051c9}
.image-tools output{min-width:38px;color:#4d58ca;font-weight:600}
.image-tools button{min-height:29px;border:1px solid #d9dee7;border-radius:6px;background:#fff;padding:5px 9px;color:#465268}
.image-tools button:hover{border-color:#aeb5ff;background:#f1f2ff}
.editor-content-layout{display:block}
@media(min-width:1401px){
  .editor-content-layout:has(.image-tools:not(.hidden)){display:grid;grid-template-columns:minmax(620px,900px) minmax(300px,360px);gap:16px;align-items:start;justify-content:center}
  .editor-content-layout:has(.image-tools:not(.hidden)) .editor-surface{grid-column:1;grid-row:1;width:100%;margin:0}
  .editor-content-layout:has(.image-tools:not(.hidden)) .image-tools{position:sticky;top:10px;z-index:2;grid-column:2;grid-row:1;width:100%;max-height:calc(100vh - 152px);margin:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
  .editor-content-layout:has(.image-tools:not(.hidden)) .image-tools-head{align-items:flex-start}.editor-content-layout:has(.image-tools:not(.hidden)) .image-tools-head>div:first-child{align-items:flex-start;flex-direction:column;gap:1px}
  .editor-content-layout:has(.image-tools:not(.hidden)) .image-tools-head small{white-space:normal}
  .editor-content-layout:has(.image-tools:not(.hidden)) .image-basic-tools{align-items:stretch;flex-direction:column}
  .editor-content-layout:has(.image-tools:not(.hidden)) .image-basic-tools label{display:grid;grid-template-columns:auto minmax(0,1fr) auto}.editor-content-layout:has(.image-tools:not(.hidden)) .image-basic-tools input[type=range]{width:100%}
  .editor-content-layout:has(.image-tools:not(.hidden)) .image-width-presets{display:grid;grid-template-columns:repeat(4,1fr)}
  .editor-content-layout:has(.image-tools:not(.hidden)) .gallery-tools{align-items:stretch;flex-direction:column}.editor-content-layout:has(.image-tools:not(.hidden)) .gallery-tools>label{display:grid;grid-template-columns:auto minmax(0,1fr) auto}.editor-content-layout:has(.image-tools:not(.hidden)) .gallery-tools input[type=range]{width:100%}
  .editor-content-layout:has(.image-tools:not(.hidden)) .gallery-ratio-control{justify-content:space-between}
}
.editor-actions{display:none}

dialog{width:min(520px,90vw);border:1px solid var(--line);border-radius:9px;padding:24px;box-shadow:0 20px 60px #27241e24}
dialog::backdrop{background:#17181b66}
dialog h2{margin-top:0}
dialog label{display:block;margin:14px 0;color:#676660}
dialog input,dialog select{box-sizing:border-box;width:100%;border:1px solid #dcdcdc;border-radius:5px;padding:9px;margin-top:5px;background:#fff;color:#303136}
.dialog-description{margin:-8px 0 18px;color:#7d7b75;font-size:13px}
.link-dialog{width:min(560px,90vw)}
.dialog-actions,.dialog-head{display:flex;justify-content:space-between;gap:8px}
.dialog-actions{justify-content:flex-end;margin-top:20px}
.dialog-actions button,.dialog-head button,#addPermissionBtn{border:1px solid #dcdcdc;background:#fff;border-radius:5px;padding:8px 14px}
.sheet-conflict-dialog{width:min(780px,94vw)}
.sheet-conflict-dialog .dialog-head h2{margin-bottom:5px}
.sheet-conflict-list{display:grid;max-height:min(52vh,520px);gap:10px;margin-top:18px;overflow:auto}
.sheet-conflict-item{display:grid;grid-template-columns:92px minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:stretch;padding:10px;border:1px solid #e3e5ea;border-radius:7px;background:#fafbfc}
.sheet-conflict-address{display:flex;flex-direction:column;justify-content:center;color:#343740;font-weight:700}
.sheet-conflict-address small{margin-top:4px;color:#8a8d96;font-size:11px;font-weight:400}
.sheet-conflict-choice{display:grid;grid-template-columns:auto 1fr;gap:8px;align-items:start;box-sizing:border-box;margin:0!important;padding:9px;border:1px solid #dfe2e8;border-radius:6px;background:#fff;color:#42454d!important;cursor:pointer}
.sheet-conflict-choice:has(input:checked){border-color:#8794ef;background:#f2f4ff;box-shadow:inset 0 0 0 1px #8794ef}
.sheet-conflict-choice input{width:auto;margin:3px 0 0;padding:0}
.sheet-conflict-choice strong,.sheet-conflict-choice span{display:block;grid-column:2;overflow-wrap:anywhere}
.sheet-conflict-choice strong{font-size:12px}
.sheet-conflict-choice span{margin-top:-3px;color:#666a74;font-size:12px;white-space:pre-wrap}
.sheet-conflict-hint{margin:12px 0 0;color:#777b85;font-size:12px}
.dialog-head p{margin:0;color:#888}
.permission-account-picker{display:grid;grid-template-columns:1fr 1.4fr auto;gap:10px;align-items:end;margin:18px 0;padding:14px;border:1px solid #dfe2ff;border-radius:7px;background:#f8f9ff}
.permission-account-picker label{margin:0;font-size:12px}
.permission-account-picker button{height:39px;border:1px solid #dcdcdc;border-radius:5px;padding:8px 14px}
.permission-account-picker span{grid-column:1/-1;color:#777;font-size:12px}
.local-user-create{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:12px;align-items:end;margin:0;padding:20px}.local-user-create label{display:grid;gap:7px;margin:0;color:#596273;font-size:12px}.local-user-create label>span{font-weight:600}.local-user-create input{box-sizing:border-box;width:100%;height:42px;border:1px solid #d8dee8;border-radius:7px;padding:8px 11px;background:#fff;outline:0}.local-user-create input:focus{border-color:#7088f4;box-shadow:0 0 0 3px rgba(49,94,251,.1)}.local-user-create button{height:42px;border:1px solid #dcdcdc;border-radius:7px;padding:8px 18px;white-space:nowrap}.local-user-list{display:grid;gap:12px;padding:16px 20px 20px}
.permission-row{display:grid;grid-template-columns:minmax(200px,.9fr) minmax(390px,1.8fr) minmax(220px,1fr) auto;gap:18px;align-items:start;border:1px solid #e3e7ee;border-radius:9px;padding:17px 16px;background:#fff;transition:border-color .15s,box-shadow .15s}.permission-row:hover{border-color:#cfd6e2;box-shadow:0 4px 14px rgba(39,50,74,.055)}
.permission-account{display:grid;grid-template-columns:40px minmax(0,1fr);align-items:center;gap:10px;min-width:0}.permission-avatar{display:grid;width:40px;height:40px;place-items:center;border-radius:10px;background:#edf1ff;color:#5365da;font-size:15px;font-weight:700}.permission-identity{min-width:0}
.permission-account input{box-sizing:border-box;width:100%;height:34px;margin:0 0 4px;border:1px solid transparent;border-radius:5px;padding:6px 7px;background:#f7f8fa;color:#29303b;font-weight:600;outline:0}.permission-account input:focus{border-color:#8290ee;background:#fff}.permission-account small{display:block;overflow:hidden;color:#858d99;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
.permission-groups{display:grid;gap:10px}.permission-category{border:1px solid #e6e9ef;border-radius:8px;background:#fbfcfd;overflow:hidden}.permission-category>strong{display:block;padding:7px 11px;border-bottom:1px solid #eceff3;background:#f5f7fa;color:#788291;font-size:10px;font-weight:700;letter-spacing:.06em}.permission-option{display:flex;min-height:48px;align-items:center;justify-content:space-between;gap:14px;padding:8px 11px;border-bottom:1px solid #edf0f3;cursor:pointer}.permission-option:last-child{border-bottom:0}.permission-option:hover{background:#f8f9ff}.permission-option>span{display:block;min-width:0}.permission-option b,.permission-option small{display:block;text-align:left}.permission-option b{color:#354052;font-size:12px}.permission-option small{margin-top:3px;color:#8a93a1;font-size:10px;line-height:1.4}.permission-option input{position:relative;width:34px;height:19px;flex:0 0 34px;margin:0;appearance:none;border:1px solid #cbd2dc;border-radius:12px;background:#dfe3e9;cursor:pointer;transition:.15s}.permission-option input::before{position:absolute;top:2px;left:2px;width:13px;height:13px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(31,40,57,.24);content:"";transition:.15s}.permission-option input:checked{border-color:#6675e8;background:#6675e8}.permission-option input:checked::before{left:17px}.permission-option input:focus-visible{outline:2px solid #8b97ef;outline-offset:2px}
.permission-security{display:grid;gap:9px}.wechat-binding{display:flex;align-items:center;justify-content:space-between;gap:9px;min-height:38px;border:1px solid #dce8e1;border-radius:7px;padding:6px 7px 6px 10px;background:#f5fbf7}.wechat-binding>div{min-width:0}.wechat-binding span,.wechat-binding strong{display:block}.wechat-binding span{color:#748078;font-size:10px}.wechat-binding strong{margin-top:2px;color:#37855a;font-size:11px}.wechat-bind-button{height:29px!important;border:1px solid #b9dcc7!important;border-radius:5px!important;padding:4px 9px!important;background:#fff!important;color:#218d4d!important;font-size:11px;white-space:nowrap}.wechat-bind-button:hover{border-color:#58b77d!important;background:#edfaf2!important}
.permission-row label.user-password{display:grid;gap:5px;color:#6a7381;text-align:left;font-size:11px}.permission-row label.user-password input{box-sizing:border-box;width:100%;height:34px;margin:0;border:1px solid #dce1e9;border-radius:6px;padding:6px 9px;outline:0}.permission-row label.user-password input:focus{border-color:#8290ee}.permission-save{height:36px;border:1px solid #cbd3e0!important;border-radius:6px!important;background:#fff!important;padding:7px 13px!important;color:#465162;white-space:nowrap}.permission-save:hover{border-color:#7584e9!important;color:#4c5fd5}
@media(max-width:1200px){.permission-row{grid-template-columns:minmax(190px,1fr) minmax(340px,2fr) auto}.permission-security{grid-column:1/3}.permission-save{grid-column:3;grid-row:2}}
.document-group-dialog{width:min(720px,94vw);max-height:86vh;padding:0;overflow:hidden;border:1px solid #d8dee8;border-radius:8px;color:#30333a}
.document-group-dialog[open]{display:flex;flex-direction:column}
.document-group-dialog::backdrop{background:rgba(29,34,42,.42)}
.document-group-dialog .dialog-head{padding:18px 20px;border-bottom:1px solid #e4e8ef;background:#fafbfc}
.document-group-dialog .dialog-head,.document-group-summary,.document-group-search,.document-group-create,.document-group-dialog>.dialog-actions{flex:0 0 auto}
.document-group-dialog .dialog-head h2{margin:0 0 5px;font-size:19px}.document-group-dialog .dialog-head p{margin:0;color:#748094;font-size:13px}
.document-group-summary{display:flex;align-items:center;gap:10px;padding:14px 20px 8px}.document-group-summary>span{color:#79869a;font-size:12px}.document-group-summary strong{color:#244d78}.document-group-summary small{margin-left:auto;color:#63758a}
.document-group-search{display:grid;gap:6px;padding:8px 20px;color:#5f6b7b;font-size:13px}.document-group-search input,.document-group-create input{min-height:38px;border:1px solid #ccd5e1;border-radius:5px;padding:8px 10px;outline:0}.document-group-search input:focus,.document-group-create input:focus{border-color:#5796d2;box-shadow:0 0 0 2px rgba(65,139,207,.12)}
.document-group-list{min-height:120px;flex:1;margin:4px 20px;overflow:auto;border:1px solid #dfe5ed;border-radius:6px;background:#fff}
.document-group-option{display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;gap:8px;min-height:44px;padding:7px 11px;border-bottom:1px solid #edf0f4;cursor:pointer}.document-group-option:last-child{border-bottom:0}.document-group-option:hover{background:#f5f9ff}.document-group-option input{width:15px;height:15px;accent-color:#278be0}.document-group-option strong{display:block;overflow:hidden;color:#313946;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.document-group-option small{display:block;margin-top:2px;color:#8a96a8;font-size:12px}.document-group-option em{padding:2px 6px;border-radius:9px;background:#edf6ff;color:#3379b8;font-size:11px;font-style:normal}.document-group-empty{padding:30px;text-align:center;color:#8490a1}
.document-group-create{display:flex;align-items:end;gap:10px;margin:14px 20px;padding:12px;border:1px dashed #cbd6e4;border-radius:6px;background:#f8fafc}.document-group-create label{display:grid;min-width:0;flex:1;gap:5px;color:#66758a;font-size:12px}.document-group-create button{min-height:38px;border:1px solid #a9c7e4;border-radius:5px;background:#fff;color:#286da9;padding:7px 12px;cursor:pointer}
.document-group-dialog>.dialog-actions{padding:12px 20px 18px}
.confirm-dialog{width:min(470px,90vw)}
.confirm-dialog p{color:#62636a;white-space:pre-line}
.confirm-dialog.danger #confirmOkBtn{background:#d94b53!important;border-color:#d94b53!important}

.login{box-sizing:border-box;min-height:100vh;display:grid;place-items:center;padding:28px;background:radial-gradient(circle at 50% 0,#eef2ff 0,#f7f8fb 38%,#f3f5f8 100%)}
.login-panel{box-sizing:border-box;width:min(440px,100%);background:#fff;border:1px solid #e1e5ed;border-radius:16px;padding:38px;box-shadow:0 24px 70px rgba(36,48,75,.12)}
.login-brand{display:grid;width:48px;height:48px;place-items:center;margin-bottom:18px;border-radius:13px;background:#315efb;color:#fff;font-size:24px;font-weight:700;box-shadow:0 9px 22px rgba(49,94,251,.24)}
.login-panel h1{margin:0;color:#20242d;font-size:28px}.login-panel>.eyebrow{color:#6676a3;font-weight:700}.login-intro{margin:10px 0 24px;color:#747b88;line-height:1.7}
.login-methods{display:grid;gap:11px}.login-method{box-sizing:border-box;width:100%;display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid #d9dee8;border-radius:9px;padding:13px 15px;background:#fff;color:#303642;text-decoration:none;text-align:left}.login-method:hover{border-color:#9eaef5;background:#f8f9ff}.login-method strong,.login-method span{display:block}.login-method strong{font-size:14px}.login-method span{color:#7e8592;font-size:12px}.login-method.primary span{color:#e8ecff}.login-method em{margin-left:5px;border-radius:10px;padding:2px 6px;background:#e9f8ef;color:#279b55;font-size:10px;font-style:normal;font-weight:600}.wechat-login{cursor:pointer}.wechat-login strong{color:#26302b}
.login-status{margin:14px 0 0;border:1px solid #f1c9cb;border-radius:7px;padding:9px 11px;background:#fff6f6;color:#b5464d!important;font-size:12px;line-height:1.6}
.password-login{display:grid;gap:12px}.password-login label{display:grid;gap:6px;color:#59606d;font-size:12px}.password-login input{box-sizing:border-box;width:100%;border:1px solid #d8dde7;border-radius:8px;padding:11px 12px;outline:0}.password-login input:focus{border-color:#7088f4;box-shadow:0 0 0 3px rgba(49,94,251,.1)}.password-login button{width:100%;border:1px solid #315efb;border-radius:8px;padding:11px 14px}.login-divider{display:flex;align-items:center;gap:12px;margin:18px 0 12px;color:#a0a5af;font-size:11px}.login-divider::before,.login-divider::after{height:1px;flex:1;background:#eceef3;content:""}
.dev-login{margin-top:18px;padding-top:16px;border-top:1px solid #eceef3}.dev-login>span{color:#9a9fa8;font-size:11px}.dev-login>div{display:flex;gap:8px;margin-top:7px}.dev-login input{box-sizing:border-box;min-width:0;flex:1;border:1px solid #d9dde5;border-radius:6px;padding:9px 10px}.dev-login button{flex:0 0 auto;border:1px solid #cfd4df;border-radius:6px;background:#fff;padding:8px 14px;color:#4b5260}.login-security-note{margin:16px 0 0;color:#9a9fa8!important;text-align:center;font-size:11px}
.wechat-reserve-dialog{width:min(430px,90vw);text-align:center}.wechat-reserve-icon{display:grid;width:50px;height:50px;place-items:center;margin:0 auto 15px;border-radius:50%;background:#eaf8ef;color:#20a052;font-size:20px;font-weight:700}.wechat-reserve-dialog h2{margin-bottom:10px}.wechat-reserve-dialog p{color:#747b88;line-height:1.75}.wechat-reserve-dialog .dialog-actions{justify-content:center}
#toast{position:fixed;right:25px;bottom:25px;background:#27282c;color:#fff;border-radius:6px;padding:10px 16px;opacity:0;pointer-events:none;transition:.2s;z-index:20}
#toast.show{opacity:1}

@media(max-width:1100px){
  .app{grid-template-columns:56px 270px minmax(0,1fr)}
  .top-actions .search{display:none}
  .section-list{padding-inline:18px}
  .editing-command-bar{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"status actions" "title title" "tools tools"}
  .sheet-title-control input{width:min(520px,calc(100vw - 390px))}
  .editor-meta-fields>label:first-child input{width:min(520px,calc(100vw - 390px))}
  .editor-more-panel{width:min(720px,calc(100vw - 310px));grid-template-columns:repeat(2,minmax(0,1fr))}
  .app.catalog-collapsed .editor-more-panel{width:min(900px,calc(100vw - 32px))}
  .editor-more-panel .editor-more-group{min-height:92px;border-bottom:1px solid #eceef2}
  .editor-more-panel .editor-more-group:nth-child(2n){border-right:0}
  .editor-more-panel .editor-more-group:nth-last-child(-n+2){border-bottom:0}
  .text-editor-bar:has(#editorMoreTools[open]){margin-bottom:220px}
}

@media(max-width:760px){
  .merchant-navigator{flex-wrap:wrap;padding:8px 12px}.merchant-select-wrap{order:3;min-width:100%;flex-basis:100%}.merchant-context{flex:1}.merchant-switch-actions{margin-left:auto}
  body{overflow:auto}
  .app,.app.catalog-collapsed{height:auto;min-height:100vh;grid-template-columns:1fr}
  .app.module-page,.app.module-page.catalog-collapsed{grid-template-columns:1fr}
  .app.module-page .workspace{grid-column:1}
  .menu-rail{position:sticky;top:0;z-index:23;min-height:54px;flex-direction:row;justify-content:center;gap:8px;padding:4px 8px;border-right:0;border-bottom:1px solid var(--line)}
  .menu-rail-item{width:72px;min-height:46px;flex-direction:row;gap:6px}
  .menu-rail-item.active::before{top:auto;right:12px;bottom:-4px;left:12px;width:auto;height:3px;border-radius:3px 3px 0 0}
  .app.catalog-collapsed .toc-collapse-button{position:absolute;top:11px;left:12px}
  .app.catalog-collapsed .topbar{padding-left:14px}
  .toc-pane{height:auto}
  .toc-tabs{height:56px;flex-basis:56px}
  .section-list{max-height:280px}
  .workspace{min-height:700px}
  .topbar{height:auto;align-items:flex-start}
  .app.sheet-view .topbar{height:auto;min-height:58px;flex-basis:auto}
  .top-actions{flex-wrap:wrap;justify-content:flex-end}
  .user-manager{padding:24px 14px 40px}.user-manager-stats{grid-template-columns:1fr}.user-section-head{align-items:flex-start;flex-direction:column}.user-security-tip{align-self:flex-start}.local-user-create{grid-template-columns:1fr}.permission-row{grid-template-columns:1fr;gap:12px}.permission-account,.permission-groups,.permission-security,.permission-save{grid-column:1;grid-row:auto}.permission-save{width:100%}
  .history-bar{padding-inline:14px}
  .reader{height:650px}
  .editor{padding-inline:12px}
  .text-editor-bar{margin-inline:-12px}
  .editing-command-title{width:100%;align-items:stretch;flex-direction:column}
  .editing-command-title input,.editor-meta-fields>label:first-child input{width:100%}
  .editor-page-settings{align-self:center}
  .editor-page-settings-panel{position:fixed;top:auto;right:12px;bottom:12px;left:12px;min-width:0}
  .editor-surface{padding:30px 22px 70px}
  .sheet-title-control{align-items:stretch}
  .sheet-title-control,.sheet-title-control input{width:100%}
  .editing-command-tools{order:4;width:100%}
  .sheet-more-panel{position:fixed;top:auto;right:12px;bottom:12px;left:12px;width:auto;max-height:55vh}
  .editor-more-panel{grid-template-columns:1fr;overflow:auto}
  .editor-more-panel .editor-more-group{border-right:0;border-bottom:1px solid #eceef2}
  .editor-more-panel .editor-more-group:last-child{border-bottom:0}
  .text-editor-bar:has(#editorMoreTools[open]){margin-bottom:12px}
  .text-editor-bar:has(#editorPageSettings[open]){margin-bottom:12px}
  .image-tools{position:relative;inset:auto;width:100%;overflow:visible}
  .gallery-tools{flex-basis:100%;padding-top:8px;padding-left:0;border-top:1px solid #dedede;border-left:0}
  .color-palette{left:12px!important;right:12px!important;width:auto;max-height:calc(100vh - 24px)}
  .color-preview-grid{grid-template-columns:repeat(2,1fr)}
  .permission-account-picker{grid-template-columns:1fr}
  .permission-account-picker span{grid-column:auto}
}

@media(prefers-reduced-motion:reduce){
  .app,.toc-collapse-button svg{transition:none}
}
