@dickpy/dsh-oil-slide 0.2.7 → 0.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/client.js CHANGED
@@ -1,5 +1,5 @@
1
1
  window.__ModuleLoader__.load({
2
- id: "dsh-oil-slide",
2
+ id: "@dickpy/dsh-oil-slide",
3
3
  factory: (require) => {
4
4
  var module = { exports: {} };
5
5
  var exports = module.exports;
@@ -5799,11 +5799,36 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5799
5799
  font: string().max(500),
5800
5800
  footer: string().max(500)
5801
5801
  };
5802
+ const placement = object({
5803
+ corner: _enum([
5804
+ "top-left",
5805
+ "top-right",
5806
+ "bottom-left",
5807
+ "bottom-right"
5808
+ ]),
5809
+ size: _enum([
5810
+ "small",
5811
+ "medium",
5812
+ "large"
5813
+ ]),
5814
+ scope: _enum([
5815
+ "all",
5816
+ "cover",
5817
+ "body"
5818
+ ])
5819
+ });
5820
+ const material = object({
5821
+ file: string(),
5822
+ name: string().max(120)
5823
+ });
5802
5824
  const brandSchema = object({
5803
5825
  ...fields,
5804
5826
  id: key,
5805
5827
  images: array(string()),
5806
- template: boolean().optional()
5828
+ template: boolean().optional(),
5829
+ logoPlacement: placement.optional(),
5830
+ logoPreview: string().optional(),
5831
+ materials: array(material).optional()
5807
5832
  });
5808
5833
  const regionSchema = object({
5809
5834
  id: key,
@@ -5823,8 +5848,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5823
5848
  object({
5824
5849
  kind: literal("save-brand"),
5825
5850
  ...fields,
5826
- logo: asset.optional(),
5827
- template: asset.optional()
5851
+ baseId: key.optional(),
5852
+ logo: asset.nullable().optional(),
5853
+ logoPlacement: placement.optional(),
5854
+ template: asset.nullable().optional(),
5855
+ materials: array(object({
5856
+ name: string().max(120),
5857
+ file: string().optional(),
5858
+ asset: asset.optional()
5859
+ })).max(4).optional()
5828
5860
  }),
5829
5861
  object({
5830
5862
  kind: literal("outline"),
@@ -6709,6 +6741,75 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6709
6741
  ]
6710
6742
  });
6711
6743
  }
6744
+ // src/client/ComparisonSlider.tsx
6745
+ function ComparisonSlider({ value, onChange, label, testId }) {
6746
+ const pointer = (0, react.useRef)(null);
6747
+ const setValue = (next) => onChange(Math.min(100, Math.max(0, Math.round(next))));
6748
+ const move = (event) => {
6749
+ const bounds = event.currentTarget.getBoundingClientRect();
6750
+ if (bounds.width > 0) setValue((event.clientX - bounds.left) / bounds.width * 100);
6751
+ };
6752
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
6753
+ className: "os-compare-scrubber",
6754
+ "data-testid": testId,
6755
+ role: "slider",
6756
+ tabIndex: 0,
6757
+ "aria-label": label,
6758
+ "aria-valuemin": 0,
6759
+ "aria-valuemax": 100,
6760
+ "aria-valuenow": value,
6761
+ "aria-valuetext": value + "%",
6762
+ onPointerDown: (event) => {
6763
+ if (event.button !== 0 || !event.isPrimary) return;
6764
+ event.preventDefault();
6765
+ event.currentTarget.focus({ preventScroll: true });
6766
+ event.currentTarget.setPointerCapture(event.pointerId);
6767
+ pointer.current = event.pointerId;
6768
+ move(event);
6769
+ },
6770
+ onPointerMove: (event) => {
6771
+ if (pointer.current === event.pointerId) move(event);
6772
+ },
6773
+ onPointerUp: (event) => {
6774
+ if (pointer.current === event.pointerId) move(event);
6775
+ },
6776
+ onLostPointerCapture: () => {
6777
+ pointer.current = null;
6778
+ },
6779
+ onKeyDown: (event) => {
6780
+ let next;
6781
+ switch (event.key) {
6782
+ case "ArrowLeft":
6783
+ case "ArrowDown":
6784
+ next = value - 5;
6785
+ break;
6786
+ case "ArrowRight":
6787
+ case "ArrowUp":
6788
+ next = value + 5;
6789
+ break;
6790
+ case "Home":
6791
+ next = 0;
6792
+ break;
6793
+ case "End":
6794
+ next = 100;
6795
+ break;
6796
+ default: return;
6797
+ }
6798
+ event.preventDefault();
6799
+ event.stopPropagation();
6800
+ setValue(next);
6801
+ },
6802
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
6803
+ className: "os-compare-divider",
6804
+ style: { left: value + "%" },
6805
+ "aria-hidden": "true",
6806
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: "os-compare-line" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
6807
+ className: "os-compare-handle",
6808
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MoveHorizontalIcon, { size: 15 })
6809
+ })]
6810
+ })
6811
+ });
6812
+ }
6712
6813
  // src/client/imageCache.ts
6713
6814
  const MAX_IMAGE_CACHE_ENTRIES = 64;
6714
6815
  const imageDataUrlCache = /* @__PURE__ */ new Map();
@@ -6937,7 +7038,6 @@ html, body {
6937
7038
  */
6938
7039
  function CanvasPreview({ face, locale, deck, workspaceRoot, refreshNonce, isActive = true, compareDraft = false, onCompareDraftChange, isFullscreen = false, onExitFullscreen, onSlideCountChange, onEditSlidePrompt }) {
6939
7040
  const stageRef = (0, react.useRef)(null);
6940
- const frameRef = (0, react.useRef)(null);
6941
7041
  const iframeRef = (0, react.useRef)(null);
6942
7042
  const nativeFsEnteredRef = (0, react.useRef)(false);
6943
7043
  const stripScrollRef = (0, react.useRef)(null);
@@ -6962,7 +7062,6 @@ html, body {
6962
7062
  const [errorMsg, setErrorMsg] = (0, react.useState)(null);
6963
7063
  const [compareMode, setCompareMode] = (0, react.useState)("split");
6964
7064
  const [splitPct, setSplitPct] = (0, react.useState)(50);
6965
- const [isDraggingSplit, setIsDraggingSplit] = (0, react.useState)(false);
6966
7065
  const [refImageMap, setRefImageMap] = (0, react.useState)({});
6967
7066
  const stageBlobUrl = useHtmlBlobUrl(htmlDoc);
6968
7067
  (0, react.useEffect)(() => {
@@ -7049,12 +7148,6 @@ html, body {
7049
7148
  isFullscreen,
7050
7149
  onCompareDraftChange
7051
7150
  ]);
7052
- const updateSplitFromClientX = (0, react.useCallback)((clientX) => {
7053
- const rect = frameRef.current?.getBoundingClientRect();
7054
- if (!rect || rect.width <= 0) return;
7055
- const pct = (clientX - rect.left) / rect.width * 100;
7056
- setSplitPct(Math.max(0, Math.min(100, Math.round(pct * 10) / 10)));
7057
- }, []);
7058
7151
  (0, react.useEffect)(() => {
7059
7152
  let cancelled = false;
7060
7153
  setLoading(true);
@@ -7245,7 +7338,6 @@ html, body {
7245
7338
  className: "os-stage-loading",
7246
7339
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: errorMsg })
7247
7340
  }) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
7248
- ref: frameRef,
7249
7341
  "data-testid": "slide-stage-frame",
7250
7342
  className: "os-stage-frame",
7251
7343
  style: {
@@ -7287,37 +7379,13 @@ html, body {
7287
7379
  alt: tUi(locale, "slideAlt", { page: pageNum }),
7288
7380
  draggable: false,
7289
7381
  className: "os-compare-img",
7290
- style: {
7291
- clipPath: compareMode === "full" ? "inset(0 0 0 0)" : `inset(0 ${100 - splitPct}% 0 0)`,
7292
- transition: isDraggingSplit ? "none" : "clip-path 140ms ease-out"
7293
- }
7382
+ style: { clipPath: compareMode === "full" ? "inset(0 0 0 0)" : `inset(0 ${100 - splitPct}% 0 0)` }
7294
7383
  }),
7295
- compareMode === "split" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
7296
- "data-testid": "draft-compare-scrubber",
7297
- className: "os-compare-scrubber",
7298
- onPointerDown: (e) => {
7299
- e.preventDefault();
7300
- e.currentTarget.setPointerCapture(e.pointerId);
7301
- setIsDraggingSplit(true);
7302
- updateSplitFromClientX(e.clientX);
7303
- },
7304
- onPointerMove: (e) => {
7305
- if (!isDraggingSplit) return;
7306
- updateSplitFromClientX(e.clientX);
7307
- },
7308
- onPointerUp: (e) => {
7309
- if (e.currentTarget.hasPointerCapture(e.pointerId)) e.currentTarget.releasePointerCapture(e.pointerId);
7310
- setIsDraggingSplit(false);
7311
- },
7312
- onPointerCancel: () => setIsDraggingSplit(false),
7313
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
7314
- className: "os-compare-divider",
7315
- style: { left: `${splitPct}%` },
7316
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: "os-compare-line" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
7317
- className: "os-compare-handle",
7318
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MoveHorizontalIcon, { size: 15 })
7319
- })]
7320
- })
7384
+ compareMode === "split" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ComparisonSlider, {
7385
+ value: splitPct,
7386
+ onChange: setSplitPct,
7387
+ label: tUi(locale, "draftBadge", { page: pageNum }),
7388
+ testId: "draft-compare-scrubber"
7321
7389
  }),
7322
7390
  (compareMode === "full" || splitPct > 14) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
7323
7391
  className: "os-compare-badge os-compare-badge-left",
@@ -7490,6 +7558,560 @@ html, body {
7490
7558
  })]
7491
7559
  });
7492
7560
  }
7561
+ // src/client/BrandForm.tsx
7562
+ const imageTypes = "image/png,image/jpeg,image/webp";
7563
+ const defaultLogo = {
7564
+ corner: "top-right",
7565
+ size: "medium",
7566
+ scope: "all"
7567
+ };
7568
+ const corners = {
7569
+ "top-left": ["左上角", "Top left"],
7570
+ "top-right": ["右上角", "Top right"],
7571
+ "bottom-left": ["左下角", "Bottom left"],
7572
+ "bottom-right": ["右下角", "Bottom right"]
7573
+ };
7574
+ async function loadFile(file, t) {
7575
+ if (file.size > 3145728) throw new Error(t("单个上传文件限 3 MB。较大的 PPTX 可以从工作区导入。", "Uploads are limited to 3 MB each. For a larger PPTX, use a workspace path."));
7576
+ return new Promise((resolve, reject) => {
7577
+ const reader = new FileReader();
7578
+ reader.onload = () => {
7579
+ const preview = String(reader.result);
7580
+ resolve({
7581
+ data: preview.slice(preview.indexOf(",") + 1),
7582
+ name: file.name.slice(0, 120),
7583
+ preview
7584
+ });
7585
+ };
7586
+ reader.onerror = () => reject(new Error(t("无法读取文件,请重新选择。", "Could not read the file. Choose it again.")));
7587
+ reader.readAsDataURL(file);
7588
+ });
7589
+ }
7590
+ function FileTile({ label, hint, accept, multiple, onFiles, thumbnail, disabled }) {
7591
+ const input = (0, react.useRef)(null);
7592
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
7593
+ className: "kit-upload",
7594
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
7595
+ hidden: true,
7596
+ ref: input,
7597
+ "aria-label": label,
7598
+ type: "file",
7599
+ accept,
7600
+ multiple,
7601
+ onChange: (e) => {
7602
+ const files = Array.from(e.target.files ?? []);
7603
+ e.target.value = "";
7604
+ if (files.length) onFiles(files);
7605
+ }
7606
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
7607
+ type: "button",
7608
+ className: "kit-tile",
7609
+ disabled,
7610
+ onClick: () => input.current?.click(),
7611
+ onDragOver: (e) => e.preventDefault(),
7612
+ onDrop: (e) => {
7613
+ e.preventDefault();
7614
+ if (!disabled) onFiles(Array.from(e.dataTransfer.files));
7615
+ },
7616
+ children: [
7617
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
7618
+ className: "kit-icon",
7619
+ children: thumbnail ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
7620
+ src: thumbnail,
7621
+ alt: ""
7622
+ }) : accept === ".pptx" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FileOutputIcon, { size: 20 }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ImageIcon, { size: 20 })
7623
+ }),
7624
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("b", { children: label }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("small", { children: hint })] }),
7625
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
7626
+ "aria-hidden": "true",
7627
+ children: "+"
7628
+ })
7629
+ ]
7630
+ })]
7631
+ });
7632
+ }
7633
+ function BrandForm({ action, t, initial, ratio = "16:9", apply, saved, cancel }) {
7634
+ const [logo, setLogo] = (0, react.useState)();
7635
+ const [template, setTemplate] = (0, react.useState)();
7636
+ const [path, setPath] = (0, react.useState)("");
7637
+ const [refs, setRefs] = (0, react.useState)(initial?.materials ?? []);
7638
+ const [placement, setPlacement] = (0, react.useState)(initial?.logoPlacement ?? defaultLogo);
7639
+ const [details, setDetails] = (0, react.useState)(Boolean(initial?.colors || initial?.font || initial?.footer));
7640
+ const [name, setName] = (0, react.useState)(initial?.name ?? "");
7641
+ const [colors, setColors] = (0, react.useState)(initial?.colors ?? "");
7642
+ const [font, setFont] = (0, react.useState)(initial?.font ?? "");
7643
+ const [footer, setFooter] = (0, react.useState)(initial?.footer ?? "");
7644
+ const [busy, setBusy] = (0, react.useState)(false);
7645
+ const [error, setError] = (0, react.useState)("");
7646
+ const thumbnail = logo === void 0 ? initial?.logoPreview : logo?.preview;
7647
+ const hasLogo = logo === void 0 ? initial?.images.includes("logo.png") : Boolean(logo);
7648
+ const hasTemplate = Boolean(path || (template === void 0 ? initial?.template : template));
7649
+ const updatePlacement = (key, value) => setPlacement((old) => ({
7650
+ ...old,
7651
+ [key]: value
7652
+ }));
7653
+ const width = {
7654
+ small: 10,
7655
+ medium: 14,
7656
+ large: 18
7657
+ }[placement.size];
7658
+ const [vertical, horizontal] = placement.corner.split("-");
7659
+ async function pick(files, kind) {
7660
+ setError("");
7661
+ setBusy(true);
7662
+ try {
7663
+ if (kind === "refs" && files.length + refs.length > 4) throw new Error(t("每套最多 4 张参考图,请先移除不需要的图片。", "A kit holds up to four references. Remove one first."));
7664
+ if (kind !== "refs" && files.length !== 1) throw new Error(t("请一次选择一个文件。", "Choose one file at a time."));
7665
+ for (const f of files) if (kind === "template" ? !/\.pptx$/i.test(f.name) : !/\.(png|jpe?g|webp)$/i.test(f.name)) throw new Error(t("文件格式不支持,请按上传区域的说明选择。", "Choose a file in the format shown."));
7666
+ const uploads = await Promise.all(files.map((f) => loadFile(f, t)));
7667
+ if (kind === "refs") setRefs((old) => [...old, ...uploads.map((upload) => ({
7668
+ name: upload.name,
7669
+ upload
7670
+ }))]);
7671
+ if (kind === "logo") setLogo(uploads[0]);
7672
+ if (kind === "template") {
7673
+ setTemplate(uploads[0]);
7674
+ setPath("");
7675
+ }
7676
+ } catch (err) {
7677
+ setError(String(err instanceof Error ? err.message : err));
7678
+ } finally {
7679
+ setBusy(false);
7680
+ }
7681
+ }
7682
+ async function save() {
7683
+ if (!name.trim() || busy) return;
7684
+ setBusy(true);
7685
+ setError("");
7686
+ try {
7687
+ const result = await action({
7688
+ kind: "save-brand",
7689
+ baseId: initial?.id,
7690
+ name: name.trim(),
7691
+ colors,
7692
+ font,
7693
+ footer,
7694
+ logo: logo && { data: logo.data },
7695
+ logoPlacement: placement,
7696
+ template: path.trim() ? { path: path.trim() } : template && { data: template.data },
7697
+ materials: refs.map((r) => ({
7698
+ name: r.name,
7699
+ file: r.file,
7700
+ asset: r.upload && { data: r.upload.data }
7701
+ }))
7702
+ });
7703
+ if (!result.brand) throw new Error(t("保存失败,请重试。", "Could not save this kit."));
7704
+ saved(result.brand);
7705
+ } catch (err) {
7706
+ setError(String(err instanceof Error ? err.message : err));
7707
+ } finally {
7708
+ setBusy(false);
7709
+ }
7710
+ }
7711
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("form", {
7712
+ className: "kit-form",
7713
+ onSubmit: (e) => {
7714
+ e.preventDefault();
7715
+ save();
7716
+ },
7717
+ children: [
7718
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
7719
+ className: "kit-field",
7720
+ children: [t("方案名称", "Kit name"), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
7721
+ value: name,
7722
+ maxLength: 120,
7723
+ placeholder: t("例如:公司季度经营汇报", "e.g. Quarterly business review"),
7724
+ onChange: (e) => setName(e.target.value)
7725
+ })]
7726
+ }),
7727
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", { children: [
7728
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", { children: t("企业 Logo", "Company logo") }),
7729
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FileTile, {
7730
+ label: hasLogo ? t("替换 Logo", "Replace logo") : t("上传企业 Logo", "Upload company logo"),
7731
+ hint: logo?.name ?? t("PNG、JPG 或 WebP · 推荐透明 PNG", "PNG, JPG or WebP · Transparent PNG recommended"),
7732
+ accept: imageTypes,
7733
+ disabled: busy,
7734
+ thumbnail,
7735
+ onFiles: (f) => void pick(f, "logo")
7736
+ }),
7737
+ hasLogo && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
7738
+ className: "kit-layout",
7739
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
7740
+ className: "kit-preview-wrap",
7741
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
7742
+ className: "kit-preview",
7743
+ style: { aspectRatio: ratio.replace(":", " / ") },
7744
+ children: [
7745
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: "kit-fake-title" }),
7746
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: "kit-fake-copy" }),
7747
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
7748
+ className: "kit-fake-chart",
7749
+ children: [
7750
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("i", {}),
7751
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("i", {}),
7752
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("i", {}),
7753
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("i", {})
7754
+ ]
7755
+ }),
7756
+ thumbnail && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
7757
+ alt: t("Logo 位置预览", "Logo placement preview"),
7758
+ style: {
7759
+ [vertical]: "3%",
7760
+ [horizontal]: "3%",
7761
+ width: width + "%",
7762
+ height: width / 2 + "%",
7763
+ objectPosition: horizontal + " " + vertical
7764
+ },
7765
+ src: thumbnail
7766
+ })
7767
+ ]
7768
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("small", { children: [
7769
+ t("位置预览", "Placement preview"),
7770
+ " · ",
7771
+ ratio
7772
+ ] })]
7773
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
7774
+ className: "kit-options",
7775
+ children: [
7776
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
7777
+ role: "group",
7778
+ "aria-label": t("位置", "Position"),
7779
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("b", { children: t("位置", "Position") }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
7780
+ className: "kit-corners",
7781
+ children: Object.keys(corners).map((c) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
7782
+ type: "button",
7783
+ "aria-pressed": placement.corner === c,
7784
+ onClick: () => updatePlacement("corner", c),
7785
+ children: t(corners[c][0], corners[c][1])
7786
+ }, c))
7787
+ })]
7788
+ }),
7789
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
7790
+ role: "group",
7791
+ "aria-label": t("大小", "Size"),
7792
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("b", { children: t("大小", "Size") }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
7793
+ className: "kit-segments",
7794
+ children: [
7795
+ "small",
7796
+ "medium",
7797
+ "large"
7798
+ ].map((v, i) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
7799
+ type: "button",
7800
+ "aria-pressed": placement.size === v,
7801
+ onClick: () => updatePlacement("size", v),
7802
+ children: t([
7803
+ "小",
7804
+ "标准",
7805
+ "大"
7806
+ ][i], [
7807
+ "Small",
7808
+ "Medium",
7809
+ "Large"
7810
+ ][i])
7811
+ }, v))
7812
+ })]
7813
+ }),
7814
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
7815
+ role: "group",
7816
+ "aria-label": t("应用页面", "Apply to"),
7817
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("b", { children: t("应用页面", "Apply to") }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
7818
+ className: "kit-segments",
7819
+ children: [
7820
+ "all",
7821
+ "cover",
7822
+ "body"
7823
+ ].map((v, i) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
7824
+ type: "button",
7825
+ "aria-pressed": placement.scope === v,
7826
+ onClick: () => updatePlacement("scope", v),
7827
+ children: t([
7828
+ "全部页",
7829
+ "仅封面",
7830
+ "仅内页"
7831
+ ][i], [
7832
+ "All slides",
7833
+ "Cover",
7834
+ "Body"
7835
+ ][i])
7836
+ }, v))
7837
+ })]
7838
+ }),
7839
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
7840
+ type: "button",
7841
+ className: "kit-link",
7842
+ onClick: () => setLogo(null),
7843
+ children: t("移除 Logo", "Remove logo")
7844
+ })
7845
+ ]
7846
+ })]
7847
+ })
7848
+ ] }),
7849
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", { children: [
7850
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", { children: t("参考素材", "Reference materials") }),
7851
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FileTile, {
7852
+ label: t("添加参考图片", "Add reference images"),
7853
+ hint: t(`产品、场景或风格参考 · ${refs.length}/4 张`, `Product, scene or style references · ${refs.length}/4`),
7854
+ accept: imageTypes,
7855
+ multiple: true,
7856
+ disabled: busy || refs.length >= 4,
7857
+ onFiles: (f) => void pick(f, "refs")
7858
+ }),
7859
+ refs.map((r, i) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
7860
+ className: "kit-file-row",
7861
+ children: [
7862
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ImageIcon, {}),
7863
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: r.name }),
7864
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
7865
+ type: "button",
7866
+ onClick: () => setRefs(refs.filter((_, n) => n !== i)),
7867
+ "aria-label": t("移除 ", "Remove ") + r.name,
7868
+ children: "×"
7869
+ })
7870
+ ]
7871
+ }, i)),
7872
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FileTile, {
7873
+ label: hasTemplate ? t("替换参考 PPTX", "Replace reference PPTX") : t("导入参考 PPTX", "Import reference PPTX"),
7874
+ hint: template?.name || path || (hasTemplate ? t("已保存参考演示文稿", "Saved reference deck") : t("提取主题色、字体和内嵌缩略图", "Use theme colors, fonts and the embedded thumbnail")),
7875
+ accept: ".pptx",
7876
+ disabled: busy,
7877
+ onFiles: (f) => void pick(f, "template")
7878
+ }),
7879
+ hasTemplate && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
7880
+ type: "button",
7881
+ className: "kit-link",
7882
+ onClick: () => {
7883
+ setTemplate(null);
7884
+ setPath("");
7885
+ },
7886
+ children: t("移除参考 PPTX", "Remove reference PPTX")
7887
+ })
7888
+ ] }),
7889
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
7890
+ type: "button",
7891
+ className: "kit-more",
7892
+ "aria-expanded": details,
7893
+ onClick: () => setDetails(!details),
7894
+ children: [
7895
+ t("样式与工作区文件", "Style and workspace files"),
7896
+ " ",
7897
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: details ? "−" : "+" })
7898
+ ]
7899
+ }),
7900
+ details && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
7901
+ className: "kit-details",
7902
+ children: [
7903
+ [
7904
+ t("品牌色", "Brand colors"),
7905
+ colors,
7906
+ setColors
7907
+ ],
7908
+ [
7909
+ t("字体", "Typeface"),
7910
+ font,
7911
+ setFont
7912
+ ],
7913
+ [
7914
+ t("页脚文字", "Footer text"),
7915
+ footer,
7916
+ setFooter
7917
+ ],
7918
+ [
7919
+ t("工作区 PPTX 路径(最大 80 MB)", "Workspace PPTX path (up to 80 MB)"),
7920
+ path,
7921
+ setPath
7922
+ ]
7923
+ ].map(([label, value, set], i) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
7924
+ className: "kit-field",
7925
+ children: [label, /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
7926
+ value,
7927
+ maxLength: i === 3 ? 2048 : 500,
7928
+ onChange: (e) => set(e.target.value)
7929
+ })]
7930
+ }, label))
7931
+ }),
7932
+ error && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
7933
+ role: "alert",
7934
+ children: error
7935
+ }),
7936
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
7937
+ className: "kit-footer",
7938
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
7939
+ type: "button",
7940
+ disabled: busy,
7941
+ onClick: cancel,
7942
+ children: t("返回", "Back")
7943
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
7944
+ className: "primary",
7945
+ disabled: busy || !name.trim(),
7946
+ children: apply ? t("保存并选用于大纲", "Save and select for outline") : t("保存素材方案", "Save kit")
7947
+ })]
7948
+ })
7949
+ ]
7950
+ });
7951
+ }
7952
+ // src/client/MaterialLibrary.tsx
7953
+ function MaterialLibrary({ action, t, current, choose, close, ratio }) {
7954
+ const [items, setItems] = (0, react.useState)([]);
7955
+ const [loading, setLoading] = (0, react.useState)(true);
7956
+ const [editor, setEditor] = (0, react.useState)(null);
7957
+ const [error, setError] = (0, react.useState)("");
7958
+ const panel = (0, react.useRef)(null);
7959
+ const body = (0, react.useRef)(null);
7960
+ const dismiss = (0, react.useRef)(close);
7961
+ dismiss.current = close;
7962
+ (0, react.useEffect)(() => {
7963
+ const prior = document.activeElement instanceof HTMLElement ? document.activeElement : null;
7964
+ panel.current?.focus();
7965
+ const keydown = (event) => {
7966
+ if (event.key === "Escape") {
7967
+ event.preventDefault();
7968
+ event.stopPropagation();
7969
+ dismiss.current();
7970
+ return;
7971
+ }
7972
+ if (event.key !== "Tab") return;
7973
+ const controls = Array.from(panel.current?.querySelectorAll("button:enabled, input:enabled, textarea:enabled, [tabindex='0']") ?? []).filter((el) => el.getClientRects().length);
7974
+ const first = controls[0], last = controls.at(-1);
7975
+ if (event.shiftKey && (document.activeElement === first || document.activeElement === panel.current)) {
7976
+ event.preventDefault();
7977
+ last?.focus();
7978
+ } else if (!event.shiftKey && document.activeElement === last) {
7979
+ event.preventDefault();
7980
+ first?.focus();
7981
+ }
7982
+ };
7983
+ document.addEventListener("keydown", keydown, true);
7984
+ return () => {
7985
+ document.removeEventListener("keydown", keydown, true);
7986
+ prior?.focus();
7987
+ };
7988
+ }, []);
7989
+ (0, react.useEffect)(() => {
7990
+ let live = true;
7991
+ action({ kind: "brands" }).then((r) => {
7992
+ if (live) setItems(r.brands ?? []);
7993
+ }).catch((e) => {
7994
+ if (live) setError(String(e));
7995
+ }).finally(() => {
7996
+ if (live) setLoading(false);
7997
+ });
7998
+ return () => {
7999
+ live = false;
8000
+ };
8001
+ }, [action]);
8002
+ (0, react.useEffect)(() => {
8003
+ if (body.current) body.current.scrollTop = 0;
8004
+ }, [editor]);
8005
+ const title = editor === "new" ? t("新建素材方案", "New material kit") : editor ? t("编辑素材方案", "Edit material kit") : t("PPT 素材库", "PPT materials");
8006
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
8007
+ className: "kit-backdrop",
8008
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
8009
+ className: "kit-sheet",
8010
+ role: "dialog",
8011
+ "aria-modal": "true",
8012
+ "aria-label": title,
8013
+ ref: panel,
8014
+ tabIndex: -1,
8015
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("header", {
8016
+ className: "kit-head",
8017
+ children: [
8018
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
8019
+ className: "kit-symbol",
8020
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(GridIcon, { size: 20 })
8021
+ }),
8022
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h2", { children: title }),
8023
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
8024
+ type: "button",
8025
+ className: "kit-close",
8026
+ "aria-label": t("关闭素材库", "Close materials"),
8027
+ onClick: close,
8028
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CloseIcon, {})
8029
+ })
8030
+ ]
8031
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
8032
+ ref: body,
8033
+ className: "kit-scroll",
8034
+ children: [error && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
8035
+ role: "alert",
8036
+ children: error
8037
+ }), editor ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BrandForm, {
8038
+ action,
8039
+ t,
8040
+ ratio,
8041
+ initial: editor === "new" ? void 0 : editor,
8042
+ apply: Boolean(choose),
8043
+ cancel: () => setEditor(null),
8044
+ saved: (b) => {
8045
+ setItems((old) => [b, ...old.filter((item) => editor === "new" || item.id !== editor.id)]);
8046
+ setEditor(null);
8047
+ choose?.(b);
8048
+ }
8049
+ }, editor === "new" ? "new" : editor.id) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
8050
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
8051
+ className: "kit-intro",
8052
+ children: t("把企业 Logo、产品图片和参考 PPT 存为一套,在不同汇报的大纲里重复使用。", "Save your company logo, reference images and PowerPoint as a kit to reuse across presentations.")
8053
+ }),
8054
+ loading ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
8055
+ role: "status",
8056
+ children: t("正在载入素材…", "Loading materials…")
8057
+ }) : items.length === 0 && !error ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
8058
+ className: "kit-empty",
8059
+ children: [
8060
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(GridIcon, { size: 28 }),
8061
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("strong", { children: t("创建第一套 PPT 素材", "Create your first material kit") }),
8062
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t("从企业 Logo 开始,选好它在页面上的位置。", "Start with the company logo and choose its place on the slide.") })
8063
+ ]
8064
+ }) : null,
8065
+ items.map((b) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("article", {
8066
+ className: "kit-card",
8067
+ children: [
8068
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
8069
+ className: "kit-icon",
8070
+ children: b.logoPreview ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
8071
+ src: b.logoPreview,
8072
+ alt: ""
8073
+ }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(GridIcon, { size: 22 })
8074
+ }),
8075
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
8076
+ className: "kit-caption",
8077
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("strong", { children: b.name }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("small", { children: [
8078
+ b.images.includes("logo.png") ? "Logo" : "",
8079
+ b.materials?.length ? t(`${b.materials.length} 张参考图`, `${b.materials.length} references`) : "",
8080
+ b.template ? "PPTX" : "",
8081
+ b.id === current?.id ? t("大纲已选", "Selected") : ""
8082
+ ].filter(Boolean).join(" · ") })]
8083
+ }),
8084
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
8085
+ type: "button",
8086
+ "aria-label": t("编辑 ", "Edit ") + b.name,
8087
+ onClick: () => setEditor(b),
8088
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PencilIcon, {})
8089
+ }),
8090
+ choose && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
8091
+ type: "button",
8092
+ onClick: () => choose(b),
8093
+ children: t("选用", "Use")
8094
+ })
8095
+ ]
8096
+ }, b.id)),
8097
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
8098
+ className: "kit-footer",
8099
+ children: [choose && current && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
8100
+ type: "button",
8101
+ onClick: () => choose(),
8102
+ children: t("移出此大纲", "Clear selection")
8103
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
8104
+ type: "button",
8105
+ className: "primary",
8106
+ onClick: () => setEditor("new"),
8107
+ children: t("新建素材方案", "New material kit")
8108
+ })]
8109
+ })
8110
+ ] })]
8111
+ })]
8112
+ })
8113
+ });
8114
+ }
7493
8115
  // src/client/ImageChannelSettings.tsx
7494
8116
  function sameRoute(a, b) {
7495
8117
  return a.channelId === b.channelId && a.model === b.model;
@@ -7986,94 +8608,6 @@ html, body {
7986
8608
  ]
7987
8609
  });
7988
8610
  }
7989
- // src/client/BrandForm.tsx
7990
- async function upload(file) {
7991
- if (!file) return void 0;
7992
- if (file.size > 3145728) throw new Error("大文件请使用工作区相对路径 / Use a workspace path for files over 3 MB");
7993
- return { data: await new Promise((resolve, reject) => {
7994
- const reader = new FileReader();
7995
- reader.onload = () => resolve(String(reader.result).split(",")[1]);
7996
- reader.onerror = () => reject(reader.error);
7997
- reader.readAsDataURL(file);
7998
- }) };
7999
- }
8000
- function BrandForm({ action, zh, saved, cancel }) {
8001
- const [busy, setBusy] = (0, react.useState)(false);
8002
- const [error, setError] = (0, react.useState)("");
8003
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("form", {
8004
- className: "os-brand-form",
8005
- onSubmit: async (e) => {
8006
- e.preventDefault();
8007
- const data = new FormData(e.currentTarget);
8008
- const get = (k) => String(data.get(k) || "").trim();
8009
- const asset = (k) => {
8010
- const f = data.get(k);
8011
- return f?.size ? upload(f) : void 0;
8012
- };
8013
- setBusy(true);
8014
- setError("");
8015
- try {
8016
- const result = await action({
8017
- kind: "save-brand",
8018
- name: get("name"),
8019
- colors: get("colors"),
8020
- font: get("font"),
8021
- footer: get("footer"),
8022
- logo: await asset("logo"),
8023
- template: get("templatePath") ? { path: get("templatePath") } : await asset("template")
8024
- });
8025
- if (result.brand) saved(result.brand);
8026
- } catch (err) {
8027
- setError(String(err));
8028
- } finally {
8029
- setBusy(false);
8030
- }
8031
- },
8032
- children: [
8033
- [
8034
- ["name", zh ? "品牌名称" : "Brand name"],
8035
- ["colors", zh ? "品牌色" : "Colors"],
8036
- ["font", zh ? "字体" : "Font"],
8037
- ["footer", zh ? "页脚" : "Footer"]
8038
- ].map(([key, label]) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", { children: [label, /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
8039
- name: key,
8040
- maxLength: key === "name" ? 120 : 500,
8041
- required: key === "name"
8042
- })] }, key)),
8043
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", { children: ["Logo", /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
8044
- name: "logo",
8045
- type: "file",
8046
- accept: "image/png,image/webp,image/jpeg"
8047
- })] }),
8048
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", { children: [zh ? "参考 PPTX" : "Reference PPTX", /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
8049
- name: "template",
8050
- type: "file",
8051
- accept: ".pptx"
8052
- })] }),
8053
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", { children: [zh ? "或填写工作区内 PPTX 路径(最大 80 MB)" : "Or enter a workspace PPTX path (up to 80 MB)", /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
8054
- name: "templatePath",
8055
- placeholder: "brand/reference.pptx"
8056
- })] }),
8057
- error && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
8058
- role: "alert",
8059
- children: error
8060
- }),
8061
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
8062
- className: "os-workflow-actions",
8063
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
8064
- type: "button",
8065
- onClick: cancel,
8066
- disabled: busy,
8067
- children: zh ? "取消" : "Cancel"
8068
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
8069
- className: "os-btn-primary os-btn-sm",
8070
- disabled: busy,
8071
- children: zh ? "保存品牌资料" : "Save brand"
8072
- })]
8073
- })
8074
- ]
8075
- });
8076
- }
8077
8611
  // src/client/StudioFrame.tsx
8078
8612
  const folio = (n) => String(n).padStart(2, "0");
8079
8613
  function Intro({ project, step, title, hint, children }) {
@@ -8151,66 +8685,6 @@ html, body {
8151
8685
  });
8152
8686
  }
8153
8687
  // src/client/OutlineEditor.tsx
8154
- function BrandLibrary({ action, t, zh, current, choose, close }) {
8155
- const [items, setItems] = (0, react.useState)([]);
8156
- const [creating, setCreating] = (0, react.useState)(false);
8157
- const [error, setError] = (0, react.useState)("");
8158
- (0, react.useEffect)(() => {
8159
- let live = true;
8160
- action({ kind: "brands" }).then((r) => {
8161
- if (live) setItems(r.brands ?? []);
8162
- }).catch((e) => {
8163
- if (live) setError(String(e));
8164
- });
8165
- return () => {
8166
- live = false;
8167
- };
8168
- }, [action]);
8169
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Modal, {
8170
- title: t("品牌资料", "Brand library"),
8171
- close,
8172
- children: [
8173
- current && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("p", { children: [
8174
- t("当前品牌", "Current brand"),
8175
- " · ",
8176
- current.name
8177
- ] }),
8178
- error && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
8179
- role: "alert",
8180
- children: error
8181
- }),
8182
- creating ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BrandForm, {
8183
- action,
8184
- zh,
8185
- cancel: () => setCreating(false),
8186
- saved: (b) => {
8187
- setItems((old) => [...old, b]);
8188
- setCreating(false);
8189
- if (choose) choose(b);
8190
- }
8191
- }) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [items.map((b) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
8192
- className: "brand-row",
8193
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("strong", { children: b.name }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("small", { children: [
8194
- b.colors,
8195
- b.font,
8196
- b.footer
8197
- ].filter(Boolean).join(" · ") })] }), choose && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
8198
- onClick: () => choose(b),
8199
- children: t("使用", "Use")
8200
- })]
8201
- }, b.id)), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
8202
- className: "group",
8203
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
8204
- onClick: () => setCreating(true),
8205
- children: ["+ ", t("新建品牌", "New brand")]
8206
- }), choose && current && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
8207
- onClick: () => choose(),
8208
- children: t("移除本项目品牌", "Clear project brand")
8209
- })]
8210
- })] })
8211
- ]
8212
- });
8213
- }
8214
8688
  function initialDraft(props) {
8215
8689
  const w = props.deck.workflow;
8216
8690
  return {
@@ -8450,6 +8924,15 @@ html, body {
8450
8924
  onChange: (e) => field("content", e.target.value)
8451
8925
  })]
8452
8926
  }),
8927
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
8928
+ className: "kit-selection",
8929
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t("本次 PPT 素材", "Materials for this deck") }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
8930
+ type: "button",
8931
+ disabled: freeze,
8932
+ onClick: props.openBrands,
8933
+ children: brand?.name || t("选择素材方案", "Choose material kit")
8934
+ })]
8935
+ }),
8453
8936
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
8454
8937
  className: "settingsBand",
8455
8938
  children: [
@@ -8544,9 +9027,9 @@ html, body {
8544
9027
  children: [sent ? t("重新请求设计稿", "Retry design request") : t(`确认大纲,生成 ${count} 张设计稿`, `Approve and generate ${count} designs`), " →"]
8545
9028
  })] })
8546
9029
  }),
8547
- props.brands && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BrandLibrary, {
9030
+ props.brands && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MaterialLibrary, {
8548
9031
  t,
8549
- zh: props.locale === "zh",
9032
+ ratio: w.ratio,
8550
9033
  action,
8551
9034
  current: brand,
8552
9035
  close: props.closeBrands,
@@ -8561,8 +9044,9 @@ html, body {
8561
9044
  ] });
8562
9045
  }
8563
9046
  // src/client/ReviewControls.tsx
8564
- function ReviewImage({ face, workspaceRoot, path, stamp, thumb = false, label }) {
8565
- const key = buildImageCacheKey(workspaceRoot, path, stamp, thumb ? "thumb" : "full");
9047
+ function useReviewImage(face, workspaceRoot, asset, thumb = false) {
9048
+ const path = asset?.path;
9049
+ const key = asset ? buildImageCacheKey(workspaceRoot, asset.path, asset.stamp, thumb ? "thumb" : "full") : void 0;
8566
9050
  const ref = (0, react.useRef)(null);
8567
9051
  const [image, setImage] = (0, react.useState)({
8568
9052
  key: "",
@@ -8570,6 +9054,7 @@ html, body {
8570
9054
  });
8571
9055
  const [failed, setFailed] = (0, react.useState)("");
8572
9056
  (0, react.useEffect)(() => {
9057
+ if (!path || !key) return;
8573
9058
  let active = true;
8574
9059
  const load = async () => {
8575
9060
  try {
@@ -8612,13 +9097,24 @@ html, body {
8612
9097
  path,
8613
9098
  thumb
8614
9099
  ]);
9100
+ return {
9101
+ ref,
9102
+ src: image.key === key ? image.src : void 0,
9103
+ failed: failed === key
9104
+ };
9105
+ }
9106
+ function ReviewImage({ face, workspaceRoot, path, stamp, thumb = false, label }) {
9107
+ const image = useReviewImage(face, workspaceRoot, {
9108
+ path,
9109
+ stamp
9110
+ }, thumb);
8615
9111
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
8616
9112
  className: "os-review-image",
8617
- ref,
8618
- children: image.key === key ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
9113
+ ref: image.ref,
9114
+ children: image.src ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
8619
9115
  src: image.src,
8620
9116
  alt: label
8621
- }) : failed === key ? label : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { className: "os-spinner" })
9117
+ }) : image.failed ? label : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { className: "os-spinner" })
8622
9118
  });
8623
9119
  }
8624
9120
  function FeedbackForm({ locale, onSend, onCancel, children }) {
@@ -8664,6 +9160,109 @@ html, body {
8664
9160
  ]
8665
9161
  });
8666
9162
  }
9163
+ // src/client/EditableComparison.tsx
9164
+ function EditableComparison({ face, workspaceRoot, t, original, editable, mode, onMode, split, onSplit, object, missingPreview, renderPreview }) {
9165
+ const source = useReviewImage(face, workspaceRoot, original);
9166
+ const native = useReviewImage(face, workspaceRoot, editable);
9167
+ const canCompare = Boolean(source.src && native.src);
9168
+ const visibleMode = canCompare ? mode : native.src ? "editable" : "original";
9169
+ const showSplit = canCompare && visibleMode === "split";
9170
+ const showEditable = visibleMode !== "original";
9171
+ const baseSrc = showEditable ? native.src : source.src;
9172
+ let status;
9173
+ if (!native.src) status = native.failed ? t("可编辑预览加载失败", "Could not load the editable preview") : editable ? t("正在载入可编辑版…", "Loading the editable version…") : missingPreview;
9174
+ else if (!source.src) status = source.failed || !original ? t("暂无这一页的原图", "Original image unavailable") : t("正在载入原图…", "Loading the original…");
9175
+ const originalLabel = t("原图", "Original");
9176
+ const editableLabel = t("可编辑版", "Editable");
9177
+ const compareLabel = t("滑动对照", "Compare");
9178
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
9179
+ className: "preview-tabs seg",
9180
+ role: "group",
9181
+ "aria-label": t("预览方式", "Preview mode"),
9182
+ children: [
9183
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
9184
+ type: "button",
9185
+ "aria-pressed": showSplit,
9186
+ className: showSplit ? "active" : "",
9187
+ disabled: !canCompare,
9188
+ onClick: () => onMode("split"),
9189
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(ColumnsIcon, { size: 14 }), compareLabel]
9190
+ }),
9191
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
9192
+ type: "button",
9193
+ "aria-pressed": visibleMode === "original" && !!source.src,
9194
+ className: visibleMode === "original" && source.src ? "active" : "",
9195
+ disabled: !source.src,
9196
+ onClick: () => onMode("original"),
9197
+ children: originalLabel
9198
+ }),
9199
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
9200
+ type: "button",
9201
+ "aria-pressed": visibleMode === "editable" && !!native.src,
9202
+ className: visibleMode === "editable" && native.src ? "active" : "",
9203
+ disabled: !native.src,
9204
+ onClick: () => onMode("editable"),
9205
+ children: editableLabel
9206
+ })
9207
+ ]
9208
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
9209
+ className: "stagebody editable-compare-body",
9210
+ children: [baseSrc && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
9211
+ className: "editable-compare-frame",
9212
+ children: [
9213
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
9214
+ className: "editable-compare-base",
9215
+ src: baseSrc,
9216
+ alt: showEditable ? editableLabel : originalLabel,
9217
+ draggable: false
9218
+ }),
9219
+ showEditable && object && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
9220
+ className: "object-box",
9221
+ style: {
9222
+ left: object.box[0] * 100 + "%",
9223
+ top: object.box[1] * 100 + "%",
9224
+ width: object.box[2] * 100 + "%",
9225
+ height: object.box[3] * 100 + "%"
9226
+ },
9227
+ "aria-hidden": "true"
9228
+ }),
9229
+ showSplit && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
9230
+ className: "os-compare-overlay",
9231
+ children: [
9232
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
9233
+ className: "os-compare-img editable-compare-layer",
9234
+ src: source.src,
9235
+ alt: originalLabel,
9236
+ draggable: false,
9237
+ style: { clipPath: `inset(0 ${100 - split}% 0 0)` }
9238
+ }),
9239
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ComparisonSlider, {
9240
+ value: split,
9241
+ onChange: onSplit,
9242
+ label: t("原图显示比例", "Original image reveal")
9243
+ }),
9244
+ split >= 23 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
9245
+ className: "os-compare-badge os-compare-badge-left",
9246
+ children: originalLabel
9247
+ }),
9248
+ split <= 74 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
9249
+ className: "os-compare-badge os-compare-badge-right",
9250
+ children: editableLabel
9251
+ })
9252
+ ]
9253
+ })
9254
+ ]
9255
+ }), status && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
9256
+ className: "editable-compare-status",
9257
+ role: "status",
9258
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: status }), !editable && renderPreview && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
9259
+ type: "button",
9260
+ onClick: renderPreview,
9261
+ children: t("生成渲染预览", "Render preview")
9262
+ })]
9263
+ })]
9264
+ })] });
9265
+ }
8667
9266
  // src/client/RegionReview.tsx
8668
9267
  function RegionReview({ workflow, deck, face, workspaceRoot, locale, action, page, drawing, stop, original, jump }) {
8669
9268
  const zh = locale === "zh";
@@ -8864,7 +9463,8 @@ html, body {
8864
9463
  const { step, page, onPage, deck, face, workspaceRoot, locale, t, action, request, open } = props;
8865
9464
  const w = deck.workflow;
8866
9465
  const native = step === 4;
8867
- const [source, setSource] = (0, react.useState)(false);
9466
+ const [compareMode, setCompareMode] = (0, react.useState)("split");
9467
+ const [split, setSplit] = (0, react.useState)(50);
8868
9468
  const [tool, setTool] = (0, react.useState)(null);
8869
9469
  const [restyle, setRestyle] = (0, react.useState)(false);
8870
9470
  const [object, setObject] = (0, react.useState)(-1);
@@ -8934,13 +9534,6 @@ html, body {
8934
9534
  thumb,
8935
9535
  label: t("第 ", "Slide ") + s.slideNumber + t(" 页", "")
8936
9536
  });
8937
- const nativeImage = () => nativePath && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ReviewImage, {
8938
- face,
8939
- workspaceRoot,
8940
- path: nativePath,
8941
- stamp: rendered?.mtimeMs ?? 0,
8942
- label: t("可编辑版渲染预览", "Rendered editable slide")
8943
- });
8944
9537
  const updated = !!changed?.includes(page);
8945
9538
  const pending = sent === fileKey;
8946
9539
  const convert = async (number) => {
@@ -8953,7 +9546,28 @@ html, body {
8953
9546
  setSending(false);
8954
9547
  }
8955
9548
  };
8956
- const mark = object >= 0 ? data?.objects[object] : void 0;
9549
+ const waitingForInspection = hasBase && !info;
9550
+ const missingPreview = waitingForInspection ? t("正在检查可编辑预览…", "Checking the editable preview…") : hasBase ? t("暂无可编辑版渲染预览", "Editable preview has not been rendered") : t("这份演示文稿还没有可编辑版", "No editable version yet");
9551
+ const editablePreview = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(EditableComparison, {
9552
+ face,
9553
+ workspaceRoot,
9554
+ t,
9555
+ original: original && {
9556
+ path: original.relPath,
9557
+ stamp: original.mtimeMs
9558
+ },
9559
+ editable: nativePath ? {
9560
+ path: nativePath,
9561
+ stamp: rendered?.mtimeMs ?? 0
9562
+ } : void 0,
9563
+ mode: compareMode,
9564
+ onMode: setCompareMode,
9565
+ split,
9566
+ onSplit: setSplit,
9567
+ object: object >= 0 ? data?.objects[object] : void 0,
9568
+ missingPreview,
9569
+ renderPreview: w.editablePptxRelPath && !waitingForInspection ? () => void request(t("请使用 preview-editable 为当前 PPTX 生成预览,再刷新面板。", "Run preview-editable on this PPTX, then refresh.")) : void 0
9570
+ });
8957
9571
  const blocked = sending || pending || !!w.regionProposal;
8958
9572
  const thumbTitle = (n) => w.outline[n - 1]?.title ?? "";
8959
9573
  const nav = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
@@ -9040,35 +9654,9 @@ html, body {
9040
9654
  className: "phead",
9041
9655
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("strong", { children: thumbTitle(page) }), nav]
9042
9656
  }),
9043
- native && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
9044
- className: "preview-tabs seg",
9045
- children: [false, true].map((v) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
9046
- "aria-pressed": source === v,
9047
- className: source === v ? "active" : "",
9048
- onClick: () => setSource(v),
9049
- children: v ? t("纯图对照", "Source image") : t("可编辑版", "Editable")
9050
- }, String(v)))
9051
- }),
9052
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
9657
+ native ? editablePreview : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
9053
9658
  className: "stagebody review-body",
9054
- children: native && !source ? nativePath ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
9055
- className: "object-surface",
9056
- children: [nativeImage(), mark && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("i", {
9057
- className: "object-box",
9058
- style: {
9059
- left: mark.box[0] * 100 + "%",
9060
- top: mark.box[1] * 100 + "%",
9061
- width: mark.box[2] * 100 + "%",
9062
- height: mark.box[3] * 100 + "%"
9063
- }
9064
- })]
9065
- }) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
9066
- className: "empty-preview",
9067
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", { children: hasBase ? t("暂无可编辑版渲染预览", "Editable preview has not been rendered") : t("这份演示文稿还没有可编辑版", "No editable version yet") }), w.editablePptxRelPath && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
9068
- onClick: () => void request(t("请使用 preview-editable 为当前 PPTX 生成预览,再刷新面板。", "Run preview-editable on this PPTX, then refresh.")),
9069
- children: t("生成渲染预览", "Render preview")
9070
- })]
9071
- }) : original ? native ? image(original) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RegionReview, {
9659
+ children: original ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RegionReview, {
9072
9660
  workflow: w,
9073
9661
  deck: deck.relPath,
9074
9662
  face,
@@ -9085,7 +9673,7 @@ html, body {
9085
9673
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
9086
9674
  className: "stagefoot",
9087
9675
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
9088
- disabled: native && !source ? !nativePath : !original,
9676
+ disabled: !original && !(native && nativePath),
9089
9677
  onClick: () => setTool("zoom"),
9090
9678
  children: t("放大", "Enlarge")
9091
9679
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
@@ -9149,7 +9737,7 @@ html, body {
9149
9737
  className: object === i ? "active" : "",
9150
9738
  onClick: () => {
9151
9739
  setObject(object === i ? -1 : i);
9152
- setSource(false);
9740
+ setCompareMode("editable");
9153
9741
  },
9154
9742
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: o.label }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("small", { children: {
9155
9743
  text: t("文字", "Text"),
@@ -9201,7 +9789,7 @@ html, body {
9201
9789
  wide: true,
9202
9790
  title: thumbTitle(page),
9203
9791
  close: () => setTool(null),
9204
- children: [native && !source ? nativeImage() : original && image(original), nav]
9792
+ children: [native ? editablePreview : original && image(original), nav]
9205
9793
  }),
9206
9794
  tool === "history" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Modal, {
9207
9795
  title: t("历史成稿", "Previous exports"),
@@ -9483,7 +10071,7 @@ html, body {
9483
10071
  children: [
9484
10072
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
9485
10073
  onClick: () => setModal("brands"),
9486
- children: t("品牌资料", "Brand library")
10074
+ children: t("PPT 素材库", "PPT materials")
9487
10075
  }),
9488
10076
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
9489
10077
  onClick: () => setModal("settings"),
@@ -9534,6 +10122,7 @@ html, body {
9534
10122
  step === 1 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(OutlineEditor, {
9535
10123
  ...props,
9536
10124
  brands: modal === "brands",
10125
+ openBrands: () => setModal("brands"),
9537
10126
  closeBrands: () => setModal(null)
9538
10127
  }) : step === 2 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StudioDesign, { ...props }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SlideReview, {
9539
10128
  ...props,
@@ -9542,10 +10131,10 @@ html, body {
9542
10131
  onPage: selectPage,
9543
10132
  enterEditable: () => setStep(4)
9544
10133
  }),
9545
- modal === "brands" && step !== 1 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BrandLibrary, {
10134
+ modal === "brands" && step !== 1 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MaterialLibrary, {
9546
10135
  action: props.action,
9547
10136
  t,
9548
- zh: locale === "zh",
10137
+ ratio: w.ratio,
9549
10138
  current: w.brand,
9550
10139
  close: () => setModal(null)
9551
10140
  }),
@@ -10329,6 +10918,7 @@ html, body {
10329
10918
  */
10330
10919
  function OilSlideTab({ face, locale, remoteReadyTick, previewSignal, sessionId, workspaceRoot, onBindRefresh, onOpenResource }) {
10331
10920
  const [legacyId, setLegacyId] = (0, react.useState)("");
10921
+ const [materialsOpen, setMaterialsOpen] = (0, react.useState)(false);
10332
10922
  const [settingsOpen, setSettingsOpen] = (0, react.useState)(false);
10333
10923
  const [resolvedWorkspace, setResolvedWorkspace] = (0, react.useState)(null);
10334
10924
  const [brand, setBrand] = (0, react.useState)({
@@ -10460,10 +11050,10 @@ html, body {
10460
11050
  }, [decks, selectedDeckId]);
10461
11051
  const activePath = activeDeck?.relPath;
10462
11052
  const reviewAction = (0, react.useCallback)(async (operation) => {
10463
- if (!activePath) throw new Error("No active deck");
11053
+ if (!activePath && operation.kind !== "brands" && operation.kind !== "save-brand") throw new Error("No active deck");
10464
11054
  const result = await face.reviewDeck({
10465
11055
  workspaceRoot,
10466
- deckRelPath: activePath,
11056
+ deckRelPath: activePath || ".",
10467
11057
  operation
10468
11058
  });
10469
11059
  if (operation.kind === "outline" || operation.kind === "resolve") await refreshDecks(false);
@@ -10723,18 +11313,35 @@ html, body {
10723
11313
  "data-testid": "oil-slide-root",
10724
11314
  "data-workspace-root": resolvedWorkspace ?? "",
10725
11315
  children: [
11316
+ materialsOpen && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
11317
+ className: "os4 kit-host",
11318
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MaterialLibrary, {
11319
+ action: reviewAction,
11320
+ t: (zh, en) => locale === "zh" ? zh : en,
11321
+ close: () => setMaterialsOpen(false)
11322
+ })
11323
+ }),
10726
11324
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
10727
11325
  className: "os-channel-tools",
10728
- children: [activeDeck?.workflow && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
10729
- className: "os-btn-surface os-btn-sm",
10730
- onClick: () => setLegacyId(""),
10731
- children: locale === "zh" ? "返回四步工作区" : "Return to workflow"
10732
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
10733
- type: "button",
10734
- className: "os-btn-surface os-btn-sm",
10735
- onClick: () => setSettingsOpen(true),
10736
- children: locale === "zh" ? "生图设置" : "Image settings"
10737
- })]
11326
+ children: [
11327
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
11328
+ type: "button",
11329
+ className: "os-btn-surface os-btn-sm",
11330
+ onClick: () => setMaterialsOpen(true),
11331
+ children: locale === "zh" ? "PPT 素材库" : "PPT materials"
11332
+ }),
11333
+ activeDeck?.workflow && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
11334
+ className: "os-btn-surface os-btn-sm",
11335
+ onClick: () => setLegacyId(""),
11336
+ children: locale === "zh" ? "返回四步工作区" : "Return to workflow"
11337
+ }),
11338
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
11339
+ type: "button",
11340
+ className: "os-btn-surface os-btn-sm",
11341
+ onClick: () => setSettingsOpen(true),
11342
+ children: locale === "zh" ? "生图设置" : "Image settings"
11343
+ })
11344
+ ]
10738
11345
  }),
10739
11346
  hasDeck && activeDeck !== null && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
10740
11347
  className: "os-toolbar",
@@ -10960,9 +11567,9 @@ html, body {
10960
11567
  for (const tag of document.querySelectorAll(`style[data-plugin="${PLUGIN_ATTR}"]`)) tag.remove();
10961
11568
  }
10962
11569
  // \0dsh-oil-slide-css:src/client/styles.css.mjs
10963
- registerPluginCss("dsh-oil-slide/styles.css", "/* Oil Slide sidebar — strictly aligned with DESIGN.md (4 surfaces / 2 hairlines / 3 inks / 1 cobalt) */\n.os-workspace {\n /* 4 neutral surfaces */\n --os-paper: #f7f8fa;\n --os-surface: #ffffff;\n --os-well: #eef1f5;\n --os-hover: #e5e9f0;\n\n /* 2 hairlines */\n --os-line: #e5e8ee;\n --os-line-strong: #d1d6df;\n\n /* 3 inks */\n --os-ink: #14171f;\n --os-ink-2: #545b69;\n --os-ink-3: #858d9d;\n\n /* 1 exclusive brand cobalt */\n --os-brand: #3a83ef;\n --os-brand-hover: #2f76e2;\n --os-brand-active: #2668cf;\n --os-brand-soft: #edf4ff;\n --os-brand-tag-ink: #1f5fbf;\n\n /* Shadows matching Studio globals.css */\n --os-shadow-btn: 0 1px 1.5px rgba(20, 23, 31, 0.04);\n --os-shadow-card:\n 0 0 0 1px rgba(20, 23, 31, 0.06),\n 0 1px 2px rgba(20, 23, 31, 0.03),\n 0 6px 20px rgba(20, 23, 31, 0.04);\n --os-shadow-raised:\n 0 0 0 1px rgba(20, 23, 31, 0.07),\n 0 4px 16px rgba(20, 23, 31, 0.06);\n --os-shadow-overlay:\n 0 0 0 1px rgba(20, 23, 31, 0.08),\n 0 18px 48px rgba(15, 23, 42, 0.14);\n\n --os-ease: cubic-bezier(0.22, 1, 0.36, 1);\n --os-serif: \"Instrument Serif\", \"Songti SC\", \"STSong\", \"Noto Serif SC\", Georgia, serif;\n --os-sans: \"Inter\", -apple-system, BlinkMacSystemFont, \"PingFang SC\", \"Hiragino Sans GB\", \"Microsoft YaHei\", sans-serif;\n --os-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;\n\n box-sizing: border-box;\n position: relative;\n display: flex;\n flex-direction: column;\n flex: 1 1 auto;\n height: 100%;\n width: 100%;\n min-height: 0;\n min-width: 0;\n background: var(--os-paper);\n color: var(--os-ink);\n font-family: var(--os-sans);\n font-size: 13px;\n line-height: 1.5;\n overflow: hidden;\n -webkit-font-smoothing: antialiased;\n container-type: inline-size;\n}\n\n.os-error-stage {\n align-items: center;\n justify-content: center;\n padding: 24px;\n}\n\n.os-error-card {\n max-width: 360px;\n width: 100%;\n padding: 20px;\n border-radius: 16px;\n border: 1px solid var(--os-line);\n background: var(--os-surface);\n box-shadow: var(--os-shadow-card);\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 10px;\n}\n\n.os-error-title {\n margin: 0;\n font-size: 14px;\n font-weight: 600;\n color: var(--os-ink);\n}\n\n.os-error-detail {\n margin: 0;\n font-family: var(--os-mono);\n font-size: 11.5px;\n line-height: 1.5;\n color: var(--os-ink-2);\n word-break: break-word;\n}\n\n.os-workspace *,\n.os-workspace *::before,\n.os-workspace *::after {\n box-sizing: border-box;\n}\n\n.os-workspace button:focus-visible,\n.os-workspace [role=\"button\"]:focus-visible {\n outline: 2px solid var(--os-brand);\n outline-offset: 2px;\n}\n\n.os-icon-brand {\n color: var(--os-brand);\n}\n\n/* ── Unified Studio Button Primitives (matches globals.css) ── */\n.os-btn-sm {\n height: 28px;\n padding: 0 10px;\n border-radius: 8px;\n font: inherit;\n font-size: 12px;\n font-weight: 500;\n line-height: 1;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 5px;\n white-space: nowrap;\n cursor: pointer;\n}\n\n.os-icon-btn {\n appearance: none;\n width: 28px;\n height: 28px;\n padding: 0;\n border-radius: 8px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n flex: none;\n}\n\n/* Primary CTA (#3A83EF solid cobalt — sole primary button per viewport) */\n.os-btn-primary {\n appearance: none;\n border: 0;\n background: var(--os-brand);\n color: var(--os-surface);\n padding: 0 12px;\n box-shadow:\n inset 0 1px 0 rgba(255, 255, 255, 0.16),\n 0 1px 2px rgba(20, 56, 128, 0.16);\n transition:\n background-color 150ms var(--os-ease),\n box-shadow 150ms var(--os-ease),\n transform 120ms var(--os-ease);\n}\n\n.os-btn-primary:hover:not(:disabled) {\n background: var(--os-brand-hover);\n}\n\n.os-btn-primary:active:not(:disabled) {\n background: var(--os-brand-active);\n transform: scale(0.985);\n}\n\n.os-btn-primary:disabled {\n opacity: 0.4;\n cursor: not-allowed;\n}\n\n/* Secondary flat white surface button */\n.os-btn-surface {\n appearance: none;\n border: 1px solid var(--os-line);\n background: var(--os-surface);\n color: var(--os-ink);\n box-shadow: var(--os-shadow-btn);\n transition:\n background-color 150ms var(--os-ease),\n border-color 150ms var(--os-ease),\n color 140ms var(--os-ease),\n transform 120ms var(--os-ease);\n}\n\n.os-btn-surface:hover:not(:disabled) {\n background: var(--os-paper);\n border-color: var(--os-line-strong);\n}\n\n.os-btn-surface:active:not(:disabled) {\n background: var(--os-well);\n transform: scale(0.985);\n}\n\n.os-btn-surface:disabled {\n opacity: 0.4;\n cursor: not-allowed;\n}\n\n/* Tertiary / ghost button */\n.os-btn-ghost {\n appearance: none;\n border: 0;\n background: transparent;\n color: var(--os-ink-2);\n transition:\n background-color 150ms var(--os-ease),\n color 150ms var(--os-ease),\n transform 120ms var(--os-ease);\n}\n\n.os-btn-ghost:hover:not(:disabled) {\n background: var(--os-well);\n color: var(--os-ink);\n}\n\n.os-btn-ghost:active:not(:disabled) {\n transform: scale(0.985);\n}\n\n.os-btn-ghost:disabled {\n opacity: 0.25;\n cursor: default;\n}\n\n/* Borderless soft cobalt toggle active button (matches Studio .oil-btn-active) */\n.os-btn-active {\n appearance: none;\n border: 1px solid transparent;\n background: var(--os-brand-soft);\n color: #1f5fbf;\n transition:\n background-color 140ms var(--os-ease),\n color 140ms var(--os-ease),\n transform 120ms var(--os-ease);\n}\n\n.os-btn-active:hover:not(:disabled) {\n background: #dfecff;\n color: #1851a8;\n}\n\n.os-btn-active:active:not(:disabled) {\n background: #d3e4ff;\n transform: scale(0.985);\n}\n\n.os-pill-well {\n border-radius: 999px;\n background: var(--os-well);\n color: var(--os-ink);\n}\n\n.os-pill-well:hover:not(:disabled) {\n background: var(--os-hover);\n color: var(--os-ink);\n}\n\n/* ── Single Internal Toolbar (48px, transparent over --os-paper) ── */\n.os-toolbar {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 6px;\n height: 48px;\n padding: 4px 14px 0;\n background: transparent;\n flex: none;\n z-index: 20;\n min-width: 0;\n}\n\n.os-toolbar-right {\n display: flex;\n align-items: center;\n gap: 5px;\n min-width: 0;\n flex-shrink: 1;\n}\n\n/* SegmentedControl (matches Studio SegmentedControl.tsx: borderless bg-well + 2px pad + 6px inner radius) */\n.os-segmented {\n display: inline-grid;\n grid-auto-flow: column;\n grid-auto-columns: minmax(0, 1fr);\n min-height: 32px;\n padding: 2px;\n border-radius: 8px;\n background: var(--os-well);\n user-select: none;\n flex: none;\n}\n\n.os-seg-btn {\n appearance: none;\n border: 0;\n background: transparent;\n color: var(--os-ink-2);\n font: inherit;\n font-size: 12.5px;\n font-weight: 500;\n line-height: 1;\n min-height: 28px;\n padding: 0 12px;\n border-radius: 6px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 6px;\n white-space: nowrap;\n cursor: pointer;\n transition: color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;\n}\n\n.os-seg-btn:hover:not(:disabled) {\n color: var(--os-ink);\n}\n\n.os-seg-btn:disabled {\n opacity: 0.4;\n cursor: default;\n}\n\n.os-seg-btn[data-active=\"true\"] {\n background: var(--os-surface);\n color: var(--os-ink);\n box-shadow: var(--os-shadow-btn);\n}\n\n.os-seg-badge {\n font-family: var(--os-mono);\n font-size: 10.5px;\n font-variant-numeric: tabular-nums;\n color: var(--os-ink-3);\n}\n\n.os-tool-btn-max {\n max-width: 148px;\n}\n\n.os-tool-btn-label {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* Custom sleek deck menu popover */\n.os-deck-picker {\n position: relative;\n display: inline-flex;\n}\n\n.os-deck-menu {\n position: absolute;\n top: calc(100% + 6px);\n right: 0;\n min-width: 204px;\n max-width: 280px;\n padding: 6px;\n border-radius: 12px;\n border: 1px solid var(--os-line);\n background: var(--os-surface);\n box-shadow: var(--os-shadow-overlay);\n z-index: 60;\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.os-deck-menu-item {\n appearance: none;\n border: 0;\n width: 100%;\n background: transparent;\n border-radius: 8px;\n padding: 7px 10px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n font: inherit;\n font-size: 12px;\n color: var(--os-ink-2);\n text-align: left;\n cursor: pointer;\n transition: background-color 120ms ease, color 120ms ease;\n}\n\n.os-deck-menu-item:hover {\n background: var(--os-well);\n color: var(--os-ink);\n}\n\n.os-deck-menu-item[data-selected=\"true\"] {\n background: var(--os-brand-soft);\n color: var(--os-brand-tag-ink);\n font-weight: 500;\n}\n\n.os-deck-menu-name {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n min-width: 0;\n}\n\n.os-deck-menu-meta {\n font-family: var(--os-mono);\n font-size: 10.5px;\n font-variant-numeric: tabular-nums;\n color: var(--os-ink-3);\n flex: none;\n}\n\n.os-deck-menu-item[data-selected=\"true\"] .os-deck-menu-meta {\n color: var(--os-brand-tag-ink);\n opacity: 0.78;\n}\n\n@container (max-width: 720px) {\n .os-toolbar {\n padding: 4px 12px 0;\n }\n .os-seg-btn {\n padding: 0 9px;\n gap: 5px;\n }\n .os-tool-btn-max {\n max-width: 112px;\n }\n .os-export-html-label {\n display: none;\n }\n .os-export-html-btn {\n width: 28px;\n padding: 0;\n }\n}\n\n@container (max-width: 560px) {\n .os-seg-btn svg {\n display: none;\n }\n .os-seg-btn {\n padding: 0 8px;\n font-size: 12px;\n }\n .os-tool-btn-max {\n max-width: 92px;\n }\n}\n\n@container (max-width: 440px) {\n .os-toolbar {\n padding: 4px 8px 0;\n gap: 4px;\n }\n .os-toolbar-right {\n gap: 4px;\n }\n .os-btn-primary.os-btn-sm {\n padding: 0 8px;\n }\n .os-tool-btn-max {\n max-width: 72px;\n }\n}\n\n/* ── Main Content Container ───────────────────────────── */\n.os-content {\n position: relative;\n flex: 1 1 auto;\n min-height: 0;\n width: 100%;\n overflow: hidden;\n background: transparent;\n}\n\n.os-tab-pane {\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n overflow: hidden;\n}\n\n/* ── Empty State: 16:9 Modern Luminous Cobalt Silk Studio Easel ── */\n.os-empty-stage {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n height: 100%;\n width: 100%;\n padding: 28px 24px;\n overflow-y: auto;\n}\n\n.os-empty-inner {\n width: 100%;\n max-width: 660px;\n}\n\n.os-easel {\n position: relative;\n width: 100%;\n aspect-ratio: 16 / 9;\n overflow: hidden;\n border-radius: 16px;\n border: 1px solid var(--os-line);\n background: var(--os-paper);\n box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);\n}\n\n.os-easel-bg {\n pointer-events: none;\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n object-fit: cover;\n object-position: right center;\n opacity: 0.95;\n user-select: none;\n display: block;\n}\n\n.os-easel-fallback-bg {\n pointer-events: none;\n position: absolute;\n inset: 0;\n background:\n radial-gradient(70% 90% at 92% 20%, rgba(58, 131, 239, 0.14) 0%, rgba(58, 131, 239, 0) 72%),\n radial-gradient(58% 72% at 80% 88%, rgba(58, 131, 239, 0.1) 0%, rgba(58, 131, 239, 0) 68%);\n}\n\n.os-easel-veil {\n pointer-events: none;\n position: absolute;\n inset: 0;\n background: linear-gradient(\n 96deg,\n #ffffff 0%,\n #f9fbfe 38%,\n rgba(249, 251, 254, 0.68) 54%,\n rgba(249, 251, 254, 0.06) 80%,\n rgba(249, 251, 254, 0) 100%\n );\n}\n\n.os-easel-chrome {\n position: relative;\n z-index: 10;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n height: 100%;\n padding: 28px 32px;\n}\n\n.os-easel-top {\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n\n.os-easel-brand {\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.os-easel-brand img {\n width: 24px;\n height: 24px;\n display: block;\n user-select: none;\n}\n\n.os-easel-brand-name {\n font-size: 12px;\n font-weight: 500;\n letter-spacing: -0.01em;\n color: rgba(20, 23, 31, 0.8);\n}\n\n.os-easel-ratio {\n font-family: var(--os-mono);\n font-size: 11px;\n letter-spacing: 0.08em;\n color: rgba(84, 91, 105, 0.6);\n}\n\n.os-easel-copy {\n max-width: 56%;\n}\n\n.os-easel-heading {\n margin: 0;\n font-family: var(--os-serif);\n font-size: 26px;\n font-weight: 600;\n line-height: 1.32;\n letter-spacing: -0.01em;\n color: var(--os-ink);\n}\n\n.os-easel-desc {\n margin: 10px 0 0;\n font-size: 14px;\n line-height: 1.7;\n color: var(--os-ink-2);\n}\n\n.os-easel-status {\n display: flex;\n align-items: center;\n gap: 8px;\n font-size: 12px;\n color: var(--os-ink-3);\n}\n\n.os-easel-dot {\n width: 6px;\n height: 6px;\n border-radius: 999px;\n background: rgba(58, 131, 239, 0.65);\n}\n\n.os-empty-steps {\n margin-top: 20px;\n padding: 0 4px;\n display: grid;\n grid-template-columns: repeat(3, minmax(0, 1fr));\n gap: 12px;\n}\n\n.os-empty-step-head {\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n.os-empty-step-num {\n font-family: var(--os-mono);\n font-size: 11px;\n font-variant-numeric: tabular-nums;\n color: var(--os-brand);\n}\n\n.os-empty-step-title {\n font-size: 12px;\n font-weight: 500;\n color: var(--os-ink);\n}\n\n.os-empty-step-desc {\n margin: 2px 0 0;\n font-size: 12px;\n line-height: 1.4;\n color: var(--os-ink-3);\n}\n\n@container (max-width: 460px) {\n .os-easel-chrome {\n padding: 18px 20px;\n }\n .os-easel-copy {\n max-width: 68%;\n }\n .os-easel-heading {\n font-size: 19px;\n }\n .os-easel-desc {\n font-size: 12px;\n margin-top: 6px;\n }\n .os-empty-steps {\n grid-template-columns: 1fr;\n gap: 10px;\n }\n}\n\n/* ── Live HTML Canvas Stage (matches Studio HtmlCanvasEditor.tsx) ── */\n.os-canvas-root {\n position: relative;\n height: 100%;\n width: 100%;\n overflow: hidden;\n background: transparent;\n user-select: none;\n outline: none;\n}\n\n.os-stage-frame {\n position: absolute;\n overflow: hidden;\n border-radius: 10px;\n background: var(--os-paper);\n box-shadow: var(--os-shadow-card);\n transition: box-shadow 200ms ease;\n}\n\n.os-stage-iframe {\n position: absolute;\n left: 50%;\n top: 50%;\n border: 0;\n background: transparent;\n transform-origin: center center;\n transition: opacity 180ms ease;\n}\n\n.os-stage-loading {\n position: absolute;\n inset: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n background: var(--os-paper);\n color: var(--os-ink-3);\n}\n\n/* ── Bottom SlideThumbStrip (matches Studio SlideThumbStrip.tsx) ── */\n.os-thumbstrip-anchor {\n pointer-events: none;\n position: absolute;\n left: 0;\n right: 0;\n bottom: 12px;\n z-index: 30;\n display: flex;\n justify-content: center;\n padding: 0 20px;\n}\n\n.os-thumbstrip-bar {\n pointer-events: auto;\n display: flex;\n align-items: center;\n gap: 6px;\n max-width: 100%;\n background: transparent;\n border: 0;\n padding: 0;\n box-shadow: none;\n}\n\n.os-strip-scroll {\n display: flex;\n align-items: center;\n gap: 4px;\n min-width: 0;\n overflow-x: auto;\n padding: 2px 4px;\n scrollbar-width: none;\n}\n\n.os-strip-scroll::-webkit-scrollbar {\n display: none;\n}\n\n.os-thumb-btn {\n appearance: none;\n border: 0;\n background: transparent;\n position: relative;\n flex: none;\n border-radius: 12px;\n padding: 5px;\n cursor: pointer;\n opacity: 0.82;\n transition: opacity 150ms ease, background-color 150ms ease;\n}\n\n.os-thumb-btn:hover {\n background: var(--os-well);\n opacity: 1;\n}\n\n.os-thumb-btn[data-active=\"true\"] {\n background: transparent;\n opacity: 1;\n}\n\n.os-thumb-viewport {\n position: relative;\n overflow: hidden;\n border-radius: 8px;\n border: 1px solid var(--os-line);\n transition: border-color 150ms ease, box-shadow 150ms ease;\n}\n\n.os-thumb-btn:hover .os-thumb-viewport {\n border-color: var(--os-line-strong);\n}\n\n.os-thumb-btn[data-active=\"true\"] .os-thumb-viewport {\n border-color: transparent;\n box-shadow: 0 0 0 2px var(--os-brand);\n}\n\n.os-thumb-iframe {\n pointer-events: none;\n position: absolute;\n left: 0;\n top: 0;\n border: 0;\n background: transparent;\n transform-origin: top left;\n}\n\n.os-thumb-placeholder {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n font-family: var(--os-mono);\n font-size: 11px;\n font-variant-numeric: tabular-nums;\n color: var(--os-ink-3);\n}\n\n.os-strip-divider {\n width: 1px;\n height: 20px;\n background: var(--os-line);\n margin: 0 2px;\n flex: none;\n}\n\n.os-strip-action {\n flex: none;\n}\n\n/* ── Reference Gallery (1:1 with Studio ReferenceGallery.tsx) ── */\n.os-gallery-scroll {\n height: 100%;\n width: 100%;\n overflow-y: auto;\n background: transparent;\n padding: 16px 24px 28px;\n}\n\n.os-gallery-scroll::-webkit-scrollbar {\n width: 6px;\n}\n\n.os-gallery-scroll::-webkit-scrollbar-thumb {\n background: rgba(20, 23, 31, 0.14);\n border-radius: 999px;\n}\n\n.os-gallery-empty {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n height: 100%;\n padding: 0 32px;\n text-align: center;\n}\n\n.os-gallery-empty-title {\n margin: 0;\n font-size: 14px;\n font-weight: 500;\n color: var(--os-ink);\n}\n\n.os-gallery-empty-desc {\n margin: 6px 0 0;\n max-width: 300px;\n font-size: 12px;\n line-height: 1.6;\n color: var(--os-ink-3);\n}\n\n.os-gallery-inner {\n max-width: 1040px;\n margin: 0 auto;\n}\n\n.os-gallery-meta {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 12px;\n margin-bottom: 16px;\n}\n\n.os-gallery-count {\n font-size: 12px;\n color: var(--os-ink-3);\n}\n\n.os-gallery-grid {\n display: grid;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n gap: 20px;\n}\n\n@container (max-width: 540px) {\n .os-gallery-scroll {\n padding: 14px 14px 24px;\n }\n .os-gallery-grid {\n grid-template-columns: 1fr;\n gap: 16px;\n }\n}\n\n.os-ref-card {\n overflow: hidden;\n border-radius: 16px;\n border: 1px solid var(--os-line);\n background: var(--os-surface);\n transition:\n border-color 200ms ease,\n transform 200ms var(--os-ease);\n}\n\n.os-ref-card:hover {\n transform: translateY(-2px);\n border-color: var(--os-line-strong);\n}\n\n.os-ref-media {\n position: relative;\n width: 100%;\n aspect-ratio: 16 / 9;\n overflow: hidden;\n background: var(--os-well);\n cursor: zoom-in;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.os-ref-media-btn {\n appearance: none;\n border: 0;\n padding: 0;\n display: block;\n}\n\n.os-ref-media img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n display: block;\n transition: transform 300ms var(--os-ease);\n}\n\n.os-ref-card:hover .os-ref-media img {\n transform: scale(1.018);\n}\n\n.os-ref-footer {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n padding: 12px;\n}\n\n.os-ref-label {\n font-size: 12px;\n color: var(--os-ink-3);\n}\n\n.os-ref-actions {\n display: flex;\n align-items: center;\n gap: 6px;\n transition: opacity 150ms ease;\n}\n\n@media (hover: hover) {\n .os-ref-actions[data-pinned=\"false\"] {\n opacity: 0;\n }\n .os-ref-card:hover .os-ref-actions,\n .os-ref-card:focus-within .os-ref-actions {\n opacity: 1;\n }\n}\n\n.os-ref-btn {\n appearance: none;\n border: 0;\n height: 28px;\n padding: 0 10px;\n border-radius: 8px;\n background: var(--os-well);\n color: var(--os-ink-2);\n font: inherit;\n font-size: 12px;\n font-weight: 500;\n display: inline-flex;\n align-items: center;\n gap: 4px;\n cursor: pointer;\n transition:\n background-color 150ms var(--os-ease),\n color 150ms var(--os-ease),\n transform 120ms var(--os-ease);\n}\n\n.os-ref-btn:hover {\n background: var(--os-hover);\n color: var(--os-ink);\n}\n\n.os-ref-btn:active {\n transform: scale(0.985);\n}\n\n.os-ref-btn[data-copied=\"true\"] {\n background: var(--os-brand-soft);\n color: var(--os-brand-tag-ink);\n}\n\n/* Exploration pool */\n.os-explore-section {\n width: 100%;\n}\n\n.os-explore-divider {\n margin-top: 28px;\n padding-top: 20px;\n border-top: 1px solid var(--os-line);\n}\n\n.os-explore-head {\n margin-bottom: 12px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n\n.os-explore-title {\n font-size: 12px;\n font-weight: 500;\n color: var(--os-ink);\n}\n\n.os-explore-grid {\n display: grid;\n grid-template-columns: repeat(3, minmax(0, 1fr));\n gap: 16px;\n}\n\n@container (max-width: 720px) {\n .os-explore-grid {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n }\n}\n\n@container (max-width: 480px) {\n .os-explore-grid {\n grid-template-columns: 1fr;\n }\n}\n\n.os-explore-name {\n font-family: var(--os-mono);\n font-size: 12px;\n color: var(--os-ink-2);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n min-width: 0;\n}\n\n.os-explore-opt {\n font-size: 11px;\n color: var(--os-ink-3);\n flex: none;\n}\n\n/* ── Studio-matched Lightbox Modal ─────────────────────── */\n.os-lightbox-backdrop {\n position: fixed;\n inset: 0;\n z-index: 9999;\n display: flex;\n align-items: center;\n justify-content: center;\n background: rgba(0, 0, 0, 0.76);\n backdrop-filter: blur(6px);\n padding: 24px;\n}\n\n.os-lightbox-stage {\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: center;\n max-width: 90vw;\n max-height: 90vh;\n}\n\n.os-lightbox-frame {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n border-radius: 12px;\n}\n\n.os-lightbox-img {\n max-width: 86vw;\n max-height: 78vh;\n border-radius: 12px;\n box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);\n object-fit: contain;\n display: block;\n}\n\n.os-lightbox-bar {\n margin-top: 12px;\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 16px;\n font-size: 12px;\n color: rgba(255, 255, 255, 0.85);\n}\n\n.os-lightbox-info {\n display: flex;\n align-items: center;\n gap: 8px;\n min-width: 0;\n}\n\n.os-lightbox-label {\n font-weight: 500;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.os-lightbox-counter {\n font-family: var(--os-mono);\n font-size: 11px;\n font-variant-numeric: tabular-nums;\n color: rgba(255, 255, 255, 0.55);\n white-space: nowrap;\n}\n\n.os-lightbox-pager {\n display: flex;\n align-items: center;\n gap: 2px;\n padding: 2px;\n border-radius: 999px;\n border: 1px solid rgba(255, 255, 255, 0.15);\n background: rgba(255, 255, 255, 0.1);\n backdrop-filter: blur(8px);\n overflow-x: auto;\n max-width: 55vw;\n scrollbar-width: none;\n}\n\n.os-lightbox-pager::-webkit-scrollbar {\n display: none;\n}\n\n.os-lightbox-page-btn {\n appearance: none;\n border: 0;\n background: transparent;\n height: 24px;\n min-width: 26px;\n padding: 0 6px;\n border-radius: 999px;\n font-family: var(--os-mono);\n font-size: 11px;\n font-weight: 500;\n font-variant-numeric: tabular-nums;\n color: rgba(255, 255, 255, 0.72);\n cursor: pointer;\n flex: none;\n transition: background-color 140ms ease, color 140ms ease;\n}\n\n.os-lightbox-page-btn:hover {\n color: #ffffff;\n}\n\n.os-lightbox-page-btn[data-active=\"true\"] {\n background: var(--os-brand);\n color: #ffffff;\n}\n\n.os-lightbox-close-pill {\n appearance: none;\n border: 0;\n border-radius: 999px;\n background: rgba(255, 255, 255, 0.15);\n color: #ffffff;\n padding: 4px 12px;\n font: inherit;\n font-size: 12px;\n display: inline-flex;\n align-items: center;\n gap: 4px;\n cursor: pointer;\n flex: none;\n transition: background-color 140ms ease;\n}\n\n.os-lightbox-close-pill:hover {\n background: rgba(255, 255, 255, 0.25);\n}\n\n.os-lightbox-nav {\n appearance: none;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n z-index: 10;\n width: 40px;\n height: 40px;\n border-radius: 999px;\n border: 0;\n background: rgba(255, 255, 255, 0.14);\n color: #ffffff;\n backdrop-filter: blur(8px);\n display: inline-flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n padding: 0;\n transition: background-color 140ms ease, transform 120ms ease;\n}\n\n.os-lightbox-nav:hover {\n background: rgba(255, 255, 255, 0.24);\n}\n\n.os-lightbox-nav:active {\n transform: translateY(-50%) scale(0.95);\n}\n\n.os-lightbox-nav[data-dir=\"prev\"] {\n left: 20px;\n}\n\n.os-lightbox-nav[data-dir=\"next\"] {\n right: 20px;\n}\n\n/* ── Subtle Studio Pill Toast ─────────────────────────── */\n.os-toast {\n pointer-events: none;\n position: absolute;\n right: 16px;\n top: 12px;\n z-index: 70;\n border-radius: 999px;\n border: 1px solid var(--os-line);\n background: rgba(255, 255, 255, 0.95);\n padding: 6px 14px;\n font-size: 12px;\n font-weight: 500;\n color: var(--os-ink);\n box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);\n backdrop-filter: blur(12px);\n}\n\n/* ── Spinner & Tab Title Chip ─────────────────────────── */\n@keyframes os-spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n}\n\n.os-spinner {\n width: 13px;\n height: 13px;\n border: 1.6px solid currentColor;\n border-right-color: transparent;\n border-radius: 999px;\n display: inline-block;\n animation: os-spin 680ms linear infinite;\n}\n\n.oil-slide-title-chip {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n}\n\n/* ── Fullscreen Presentation Overlay ──────────────────── */\n.os-canvas-fullscreen {\n position: fixed !important;\n inset: 0 !important;\n z-index: 9999 !important;\n width: 100vw !important;\n height: 100vh !important;\n background: #0b0d11 !important;\n}\n\n.os-canvas-fullscreen .os-stage-frame {\n border-radius: 6px;\n box-shadow:\n 0 24px 80px rgba(0, 0, 0, 0.55),\n 0 0 0 1px rgba(255, 255, 255, 0.08);\n}\n\n.os-fs-close {\n position: fixed;\n top: 16px;\n right: 20px;\n z-index: 10001;\n width: 36px;\n height: 36px;\n border-radius: 999px;\n border: 1px solid rgba(255, 255, 255, 0.15);\n background: rgba(0, 0, 0, 0.55);\n color: rgba(255, 255, 255, 0.82);\n display: inline-flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n backdrop-filter: blur(10px);\n transition: background-color 140ms ease, color 140ms ease;\n}\n\n.os-fs-close:hover {\n background: rgba(0, 0, 0, 0.8);\n color: #ffffff;\n}\n\n.os-fs-controls {\n position: fixed;\n bottom: 16px;\n left: 50%;\n transform: translateX(-50%);\n z-index: 10001;\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 6px 12px;\n border-radius: 999px;\n border: 1px solid rgba(255, 255, 255, 0.12);\n background: rgba(0, 0, 0, 0.65);\n color: rgba(255, 255, 255, 0.9);\n box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);\n backdrop-filter: blur(12px);\n}\n\n.os-fs-btn {\n appearance: none;\n border: 0;\n background: transparent;\n width: 28px;\n height: 28px;\n border-radius: 999px;\n color: rgba(255, 255, 255, 0.85);\n display: inline-flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n transition: background-color 140ms ease;\n}\n\n.os-fs-btn:hover:not(:disabled) {\n background: rgba(255, 255, 255, 0.12);\n}\n\n.os-fs-btn:disabled {\n opacity: 0.3;\n cursor: not-allowed;\n}\n\n.os-fs-counter {\n min-width: 54px;\n text-align: center;\n font-family: var(--os-mono);\n font-size: 12px;\n font-variant-numeric: tabular-nums;\n letter-spacing: 0.04em;\n color: rgba(255, 255, 255, 0.85);\n}\n\n.os-fs-divider {\n width: 1px;\n height: 16px;\n background: rgba(255, 255, 255, 0.15);\n margin: 0 2px;\n}\n\n.os-fs-exit {\n appearance: none;\n border: 0;\n background: transparent;\n height: 28px;\n padding: 0 10px;\n border-radius: 999px;\n color: rgba(255, 255, 255, 0.9);\n font: inherit;\n font-size: 12px;\n font-weight: 500;\n display: inline-flex;\n align-items: center;\n gap: 6px;\n cursor: pointer;\n transition: background-color 140ms ease, color 140ms ease;\n}\n\n.os-fs-exit:hover {\n background: rgba(255, 255, 255, 0.12);\n}\n\n.os-fs-exit[data-active=\"true\"] {\n background: rgba(255, 255, 255, 0.92);\n color: var(--os-ink);\n}\n\n/* ── Studio-matched Light Draft vs HTML Split-Curtain Compare ── */\n.os-compare-overlay {\n position: absolute;\n inset: 0;\n z-index: 25;\n user-select: none;\n container-type: inline-size;\n}\n\n.os-compare-img {\n pointer-events: none;\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n object-fit: cover;\n display: block;\n}\n\n.os-compare-scrubber {\n position: absolute;\n inset: 0;\n cursor: ew-resize;\n}\n\n.os-compare-divider {\n pointer-events: none;\n position: absolute;\n top: 0;\n bottom: 0;\n transform: translateX(-50%);\n}\n\n.os-compare-line {\n width: 2px;\n height: 100%;\n background: var(--os-surface);\n box-shadow:\n 0 0 0 1px rgba(20, 23, 31, 0.32),\n 0 2px 12px rgba(0, 0, 0, 0.28);\n}\n\n.os-compare-handle {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n width: 36px;\n height: 36px;\n border-radius: 999px;\n background: var(--os-brand);\n color: var(--os-surface);\n display: flex;\n align-items: center;\n justify-content: center;\n box-shadow:\n 0 6px 20px rgba(20, 56, 128, 0.28),\n 0 0 0 2px rgba(255, 255, 255, 0.95);\n}\n\n/* Light bottom-corner badges matching Studio HtmlCanvasEditor.tsx */\n.os-compare-badge {\n pointer-events: none;\n position: absolute;\n bottom: 12px;\n border-radius: 8px;\n border: 1px solid var(--os-line);\n background: var(--os-surface);\n color: var(--os-ink-2);\n padding: 4px 10px;\n font-size: 12px;\n font-weight: 500;\n box-shadow: var(--os-shadow-btn);\n}\n\n.os-compare-badge-left {\n left: 12px;\n}\n\n.os-compare-badge-right {\n right: 12px;\n}\n\n@container (max-width: 640px) {\n .os-compare-badge {\n bottom: 52px;\n padding: 3px 8px;\n font-size: 11px;\n }\n}\n\n.os-compare-empty {\n pointer-events: none;\n position: absolute;\n left: 50%;\n bottom: 56px;\n transform: translateX(-50%);\n border-radius: 8px;\n border: 1px solid var(--os-line);\n background: var(--os-surface);\n color: var(--os-ink-2);\n padding: 6px 12px;\n font-size: 12px;\n font-weight: 500;\n display: inline-flex;\n align-items: center;\n gap: 6px;\n box-shadow: var(--os-shadow-btn);\n}\n\n.os-compare-controls {\n position: absolute;\n bottom: 12px;\n left: 50%;\n transform: translateX(-50%);\n z-index: 30;\n display: inline-flex;\n align-items: center;\n gap: 6px;\n}\n\n.os-compare-segmented {\n border: 1px solid var(--os-line);\n box-shadow: var(--os-shadow-raised);\n}\n\n.os-compare-close {\n width: 32px;\n height: 32px;\n padding: 0;\n border-radius: 8px;\n color: var(--os-ink-2);\n display: inline-flex;\n align-items: center;\n justify-content: center;\n box-shadow: var(--os-shadow-raised);\n cursor: pointer;\n}\n\n.os-compare-close:hover {\n color: var(--os-ink);\n}\n\n@media (prefers-reduced-motion: reduce) {\n .os-workspace *,\n .os-workspace *::before,\n .os-workspace *::after {\n transition-duration: 0.01ms !important;\n }\n}\n\n/* Staged PPT creation, independent from the legacy HTML export toolbar. */\n.os-workflow { padding: 12px 16px; display: grid; gap: 9px; flex: 0 0 auto; border-bottom: 1px solid color-mix(in srgb, currentColor 15%, transparent); }\n.os-workflow p, .os-workflow ol { margin: 0; }\n.os-workflow-steps { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0; list-style: none; font-size: 12px; }\n.os-workflow-steps li { opacity: .64; }\n.os-workflow-steps li[aria-current=\"step\"] { opacity: 1; font-weight: 700; }\n.os-workflow-outline { max-height: 180px; overflow: auto; padding: 8px 8px 0 27px; }\n.os-workflow-outline li { padding: 2px 0 6px; }\n.os-workflow-outline span { display: block; white-space: pre-wrap; font-size: .9em; margin-top: 3px; }\n.os-workflow-actions { display: flex; flex-wrap: wrap; row-gap: 8px; column-gap: 8px; align-items: center; }\n.os-workflow-actions:empty { display: none; }\n.os-workflow-actions select { margin-inline-start: 6px; }\n\n.os-channel-tools { display: flex; justify-content: flex-end; padding: 5px 12px; }\n.os-image-settings {\n display: flex;\n flex-direction: column;\n gap: 14px;\n min-height: 0;\n padding: 16px;\n overflow: auto;\n font-size: 13px;\n}\n.os-image-settings h3, .os-image-settings h4, .os-image-settings p { margin: 0; }\n.os-image-settings h3 { font-size: 19px; font-weight: 650; }\n.os-image-settings h4 { font-size: 14px; font-weight: 650; }\n.os-image-settings p, .os-image-section-title > span, .os-image-detect > span {\n color: var(--os-ink-2);\n font-size: 12px;\n line-height: 1.5;\n}\n.os-image-heading, .os-image-section-title, .os-image-actions, .os-image-detect, .os-image-model-tools {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: 8px;\n}\n.os-image-heading, .os-image-section-title { justify-content: space-between; }\n.os-image-heading > div { display: grid; gap: 3px; min-width: 0; }\n.os-image-heading { align-items: flex-start; flex-wrap: nowrap; }\n.os-image-heading > button { flex-shrink: 0; }\n.os-image-editor, .os-image-card, .os-image-catalog { display: grid; gap: 10px; min-width: 0; }\n.os-image-card {\n margin: 0;\n padding: 12px;\n border: 1px solid var(--os-line);\n border-radius: 10px;\n background: var(--os-surface);\n}\n.os-image-actions { justify-content: flex-end; }\n.os-image-card label { display: grid; gap: 4px; font-size: 12px; }\n.os-image-card .os-image-checkbox { display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }\n.os-image-card input:not([type=checkbox]), .os-image-card select {\n min-width: 0;\n width: 100%;\n padding: 7px 9px;\n color: var(--os-ink);\n background: var(--os-surface);\n border: 1px solid var(--os-line-strong);\n border-radius: 6px;\n font: inherit;\n}\n.os-image-model-tools :is(input, select) { flex: 1 1 128px; }\n.os-image-model-list .os-image-badge { margin-left: auto; flex-shrink: 0; }\n.os-image-model-list {\n display: grid;\n gap: 6px;\n max-height: 185px;\n overflow: auto;\n padding: 8px;\n border: 1px solid var(--os-line);\n border-radius: 6px;\n}\n.os-image-rows, .os-image-chips { list-style: none; margin: 0; padding: 0; }\n.os-image-row {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: 8px;\n padding: 9px 0;\n border-top: 1px solid var(--os-line);\n}\n.os-image-row-text { display: grid; gap: 2px; flex: 1 1 120px; min-width: 0; overflow-wrap: anywhere; }\n.os-image-row-text > span { color: var(--os-ink-2); font-size: 11px; }\n.os-image-badge, .os-image-chips li {\n padding: 3px 7px;\n border-radius: 5px;\n background: var(--os-well);\n color: var(--os-ink-2);\n font-size: 11px;\n}\n.os-image-badge-default { background: var(--os-brand-soft); color: var(--os-brand-tag-ink); }\n.os-image-chips { display: flex; flex-wrap: wrap; gap: 5px; }\n.os-image-chips li { display: inline-flex; align-items: center; gap: 6px; overflow-wrap: anywhere; min-width: 0; }\n.os-image-chips button { color: inherit; border: 0; background: transparent; cursor: pointer; }\n.os-image-settings .os-image-error {\n padding: 8px 10px;\n border: 1px solid var(--os-line-strong);\n border-radius: 6px;\n color: var(--os-ink);\n}\n\n.os-design-controls { padding: 0 10px 10px; }\n.os-review-actions, .os-review-bar, .os-review-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }\n.os-new-designs { margin-top: 12px; }\n.os-design-history, .os-feedback { display: grid; gap: 8px; margin: 10px 0; }\n.os-feedback textarea, .os-feedback select, .os-design-history select, .os-review-bar select {\n color: inherit; background: var(--os-surface, Canvas); font: inherit; border: 1px solid var(--os-border, #aab2bd);\n border-radius: 6px; padding: 6px 8px; max-width: 100%; box-sizing: border-box;\n}\n.os-feedback textarea { width: 100%; resize: vertical; }\n.os-slide-review { box-sizing: border-box; height: 100%; overflow: auto; padding: 12px; display: grid; gap: 10px; align-content: start; min-width: 0; }\n.os-review-bar { justify-content: space-between; }\n.os-review-stage { background: rgba(128,128,128,.09); border-radius: 8px; overflow: hidden; }\n.os-review-image { display: grid; place-items: center; width: 100%; min-height: 24px; }\n.os-review-image img { display: block; max-width: 100%; max-height: 55vh; object-fit: contain; }\n.os-review-stage img { width: 100%; }\n.os-review-nav { justify-content: center; font-variant-numeric: tabular-nums; }\n.os-review-strip { display: flex; gap: 6px; overflow-x: auto; padding: 3px; }\n.os-review-strip button { flex: 0 0 80px; background: transparent; color: inherit; padding: 3px; border: 1px solid transparent; border-radius: 5px; cursor: pointer; }\n.os-review-strip .os-review-image { height: 48px; }\n.os-review-strip img { max-height: 48px; }\n.os-review-strip [aria-current=\"page\"] { border-color: var(--os-accent, #477beb); }\n.os-review-theater { position: fixed; inset: 0; z-index: 10000; background: var(--os-surface, Canvas); overflow: auto; }\n.os-review-theater .os-review-stage img { max-height: 72vh; }\n\n.os-outline-editor { max-height: 48vh; overflow: auto; }\n.os-outline-editor fieldset { border: 0; padding: 0; min-width: 0; }\n.os-outline-editor ol { list-style: none; margin: 8px 0; padding: 0; }\n.os-outline-editor li, .os-brand-form { background: var(--os-surface); padding: 9px; border: 1px solid var(--os-line); border-radius: 8px; margin-bottom: 6px; display: grid; gap: 6px; }\n.os-outline-editor [draggable] { cursor: grab; margin-right: auto; font-variant-numeric: tabular-nums; }\n.os-outline-editor input, .os-outline-editor textarea { width: 100%; box-sizing: border-box; font: inherit; color: inherit; background: var(--os-paper); border: 1px solid var(--os-line-strong); border-radius: 5px; padding: 6px; }\n.os-brand-form label { display: grid; gap: 4px; }\n.os-outline-editor button:not(.os-btn-primary), .os-region-review button:not(.os-btn-primary) { border-radius: 5px; padding: 3px 7px; border: 1px solid var(--os-line-strong); background: var(--os-surface); color: var(--os-ink); cursor: pointer; }\n.os-region-stage { display:flex; justify-content:center; }\n.os-region-surface { position:relative; width:fit-content; max-width:100%; align-self:center; }\n.os-region-stage .os-region-surface img { width:auto; max-width:100%; pointer-events:none; }\n.os-region-surface.is-drawing { touch-action:none; user-select:none; cursor:crosshair; }\n.os-region-box { position:absolute; pointer-events:none; border:2px solid var(--os-brand); box-sizing:border-box; background:rgba(58,131,239,.12); }\n.os-region-review { padding:8px 12px; border:1px solid var(--os-line); border-radius:8px; }\n\n/* Staged presentation workspace */\n.os4 * { box-sizing:border-box; }\n.os4 button, .os4 select, .os4 input, .os4 textarea { font:inherit; color:inherit; }\n.os4 button, .os4 select { cursor:pointer; }\n.os4 button { border:1px solid #dfe5df; border-radius:8px; background:white; padding:7px 13px; white-space:nowrap; display:inline-flex; gap:8px; align-items:center; justify-content:center; font-weight:600; }\n.os4 button:hover { border-color:#86a797; background:#f4f8f4; }\n.os4 button:focus-visible, .os4 select:focus-visible { outline:2px solid #2c785b; outline-offset:2px; }\n.os4 button.primary { background:#205341; border-color:#205341; color:white; padding:10px 16px; }\n.os4 button.primary:hover { background:#143d2f; }\n.os4 button.ghost { background:transparent; border-color:transparent; color:#536358; }\n.os4 button:disabled { opacity:.43; cursor:not-allowed; }\n.os4 .bar, .os4 .foot { display:flex; align-items:center; justify-content:space-between; padding:14px 30px; background:#fff; }\n.os4 .bar { border-bottom:1px solid #e6ebe6; min-height:62px; }\n.os4 .brand, .os4 .barRight, .os4 .group, .os4 .smallrow { display:flex; align-items:center; gap:10px; }\n.os4 .brand strong { font-size:18px; letter-spacing:-.65px; }\n.os4 .brand small { border-left:1px solid #dce5df; padding-left:12px; color:#5f6f65; }\n.os4 .logomark { width:28px; height:28px; background:#dbeadd; border-radius:8px; color:#205341; display:grid; place-items:center; }\n.os4 .icon { width:16px; height:16px; display:inline-block; vertical-align:middle; flex:none; }\n.os4 .steps { display:grid; grid-template-columns:repeat(4,1fr); gap:6px; padding:0 30px; background:#fff; border-bottom:1px solid #e6ebe6; }\n.os4 .step { display:flex; align-items:center; justify-content:flex-start; gap:9px; border:0; border-bottom:2px solid transparent; background:transparent; border-radius:0; padding:11px 12px; color:#607066; }\n.os4 .step:hover { border-color:#96baa5; }\n.os4 .step.current { background:#f3f7f1; color:#205341; border-color:#347359; }\n.os4 .step span:first-child { width:24px; height:24px; border:1px solid #dce5dd; border-radius:7px; display:grid; place-items:center; font-size:11px; font-variant-numeric:tabular-nums; }\n.os4 .step.current span:first-child { background:#205341; color:white; border-color:#205341; }\n.os4 .step.done span:first-child { background:#e9f2ea; color:#2b664e; }\n.os4 .step em { font-style:normal; font-size:11px; color:#6e7e74; font-weight:400; margin-left:4px; }\n.os4 main { padding:24px 30px 20px; flex:1; }\n.os4 .intro { display:flex; align-items:flex-end; justify-content:space-between; margin-bottom:18px; gap:12px; }\n.os4 .eyebrow { font-size:11px; letter-spacing:1.5px; color:#537364; font-weight:700; display:flex; align-items:center; gap:8px; }\n.os4 .eyebrow:before { content:\"\"; width:15px; height:1px; background:#6f9b83; }\n.os4 .intro h1 { margin:4px 0 3px; font-size:30px; line-height:1.3; letter-spacing:-1.1px; }\n.os4 .intro p { margin:0; color:#5c6c61; }\n.os4 .work { display:grid; grid-template-columns:224px minmax(0,1fr); gap:14px; align-items:stretch; min-height:480px; }\n.os4 .panel { background:white; border:1px solid #dfe7df; border-radius:12px; overflow:hidden; min-width:0; }\n.os4 .phead { display:flex; align-items:center; justify-content:space-between; padding:12px 15px; gap:8px; border-bottom:1px solid #ebefea; min-height:54px; }\n.os4 .phead strong { font-size:14px; }\n.os4 .muted { font-size:12px; color:#68776d; }\n.os4 .badge { display:inline-flex; align-items:center; gap:5px; white-space:nowrap; padding:3px 8px; border-radius:5px; background:#edf4ea; color:#37644c; font-size:11px; font-weight:700; }\n.os4 .badge.gray { background:#eff1ed; color:#667267; }\n.os4 .badge.warn { background:#fff1d7; color:#79520e; }\n.os4 .leftinner { padding:8px; }\n.os4 .listbtn { display:flex; width:100%; justify-content:flex-start; border-color:transparent; white-space:normal; text-align:left; min-height:48px; padding:8px; gap:8px; }\n.os4 .listbtn.active { background:#edf4ec; border-color:#d1e2d4; color:#1e533e; }\n.os4 .listbtn .num { font:11px/1 ui-monospace,monospace; color:#658174; }\n.os4 .listbtn .label { flex:1; }\n.os4 .listbtn .grip { color:#9da9a1; }\n.os4 .asideFoot { padding:10px 11px; border-top:1px solid #edf0ec; }\n.os4 .asideFoot button { width:100%; }\n.os4 .form { padding:15px 19px; }\n.os4 .field { display:block; margin:0 0 13px; font-weight:650; font-size:12px; }\n.os4 .field span { display:block; margin-bottom:5px; color:#45564b; }\n.os4 .field input, .os4 .field textarea { display:block; width:100%; border:1px solid #dce5dd; border-radius:8px; background:#fcfdfa; padding:8px 10px; outline:none; font-size:14px; }\n.os4 .field input:focus, .os4 .field textarea:focus { border-color:#568768; }\n.os4 .field textarea { resize:vertical; min-height:100px; }\n.os4 .settingsBand { display:flex; align-items:center; gap:13px; flex-wrap:wrap; padding:11px 12px; border:1px solid #e3ebe3; background:#f5f8f2; border-radius:8px; }\n.os4 .settingsBand label { font-size:12px; color:#475e51; font-weight:600; display:flex; align-items:center; gap:9px; }\n.os4 .settingsBand select { border:1px solid #dbe4db; border-radius:6px; background:#fff; padding:4px 7px; max-width:180px; }\n.os4 .seg { display:inline-flex; gap:2px; border:1px solid #dbe5dc; background:#f2f5f0; border-radius:7px; padding:2px; }\n.os4 .seg button { background:transparent; border:0; font-size:12px; padding:4px 9px; border-radius:5px; }\n.os4 .seg button.active { background:#fff; box-shadow:0 1px 2px #20382922; color:#215640; }\n.os4 .hint { padding:9px 12px; border-left:2px solid #82a890; background:#f4f8f2; color:#4c6556; font-size:12px; }\n.os4 .stageside { display:flex; flex-direction:column; }\n.os4 .stagebody { padding:12px 14px 11px; background:#eef2ed; display:grid; place-items:center; min-height:330px; }\n.os4 .stagebody.compare { grid-template-columns:1fr 1fr; gap:12px; align-content:center; }\n.os4 .candidate { display:block; width:100%; text-align:left; padding:7px; margin-bottom:7px; border-radius:8px; }\n.os4 .candidate.active { background:#edf5ec; border-color:#8ab29b; color:#235642; }\n.os4 .cmeta { display:flex; align-items:center; justify-content:space-between; gap:5px; padding:5px 1px 0; }\n.os4 .cmeta span { font-size:12px; }\n.os4 .stagefoot { padding:8px 12px; display:flex; justify-content:space-between; align-items:center; gap:7px; border-top:1px solid #e7eee7; background:white; }\n.os4 .stagefoot button { font-size:12px; padding:5px 9px; }\n.os4 .pagenav { font-variant-numeric:tabular-nums; }\n.os4 .layers { padding:9px; }\n.os4 .layers button { width:100%; justify-content:space-between; margin-bottom:7px; font-size:12px; }\n.os4 .layers button.active { border-color:#8eb6a0; background:#edf5ed; }\n.os4 .layers hr { border:0; border-top:1px solid #e6ede6; margin:9px 0; }\n.os4 .previewThumb { display:grid; grid-template-columns:73px 1fr; gap:8px; align-items:center; }\n.os4 .previewThumb span span { display:block; }\n.os4 .previewThumb .num { display:block; margin-bottom:4px; }\n.os4 .splitbar { display:flex; gap:10px; justify-content:space-between; padding:0 10px; align-items:center; }\n.os4 .bottomnote { display:flex; flex-direction:column; gap:2px; }\n.os4 .bottomnote b { font-size:13px; color:#314b3d; }\n.os4 .foot { min-height:70px; border-top:1px solid #e1e9e0; position:sticky; bottom:0; z-index:3; }\n.os4 .foot small { color:#596c60; }\n.os4 .statusdot { width:7px; height:7px; border-radius:50%; background:#528768; display:inline-block; margin-right:5px; }\n.os4 dialog { width:min(440px,92vw); border:1px solid #d6e4d8; border-radius:13px; padding:18px; box-shadow:0 20px 80px #10251833; }\n.os4 dialog::backdrop { background:#16271e55; }\n.os4 dialog textarea { width:100%; min-height:90px; padding:10px; border:1px solid #dbe5dc; border-radius:7px; }\n.os4 button.remove { padding:5px 8px; font-size:12px; }\n.os4 .sidehint { margin:8px 7px; color:#68776d; font-size:11px; }\n.os4 .tiny { font-size:11px; }\n@container (max-width: 650px) {\n.os4 .bar, .os4 .foot { padding:10px 14px; }\n.os4 .steps { padding:0 10px; }\n.os4 .step { padding:8px 5px; gap:4px; justify-content:center; font-size:12px; }\n.os4 .step em, .os4 .brand small { display:none; }\n.os4 main { padding:15px 12px; }\n.os4 .intro h1 { font-size:23px; }\n.os4 .intro { align-items:flex-start; flex-wrap:wrap; }\n.os4 .work { grid-template-columns:minmax(0,1fr); min-height:0; }\n.os4 .leftinner { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px; }\n.os4 .stagebody { min-height:0; }\n.os4 .foot { position:static; gap:8px; flex-wrap:wrap; }\n.os4 .phead { min-height:42px; padding:8px 11px; }\n.os4 .barRight button { font-size:12px; padding:5px 8px; }\n.os4 .stagefoot { flex-wrap:wrap; }\n}\n.os-studio-host { min-height: 0; height: 100%; overflow: hidden; }\n.os4 {\n container-type: inline-size; flex: 1; display: flex; flex-direction: column;\n width: 100%; height: 100%; min-width: 0; min-height: 0;\n background: #fbfcf9; color: #202923; color-scheme: light;\n font: 14px/1.55 Inter, -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Microsoft Yahei\", sans-serif;\n --os-brand: #205341; --os-ink: #202923;\n}\n.os4 > main { min-height: 0; overflow: auto; scrollbar-gutter: stable; }\n.os4 > .bar, .os4 > .steps, .os4 > .foot { flex: none; }\n.os4 .work { min-height: min(430px, 55vh); grid-template-columns: clamp(155px, 24cqw, 224px) minmax(0,1fr); }\n.os4 .rail { display: flex; flex-direction: column; align-self: start; }\n.os4 .leftinner { overflow: auto; max-height: 58vh; }\n.os4 .listbtn .label { min-width: 0; word-break: break-word; line-height: 1.4; }\n.os4 .form { margin: 0; border: 0; min-width: 0; }\n.os4 .field input, .os4 .field textarea { color: #202923; font-weight: 400; line-height: 1.55; }\n.os4 .move-actions, .os4 .project-switch, .os4 .sync-row { display: flex; gap: 8px; align-items: center; }\n.os4 .move-actions { margin-top: 12px; }\n.os4 .move-actions button, .os4 .project-switch :is(select,button) { font-size: 12px; }\n.os4 .project-switch { padding: 6px 16px; border-bottom: 1px solid #e6ebe6; }\n.os4 .project-switch select { max-width: 70%; }\n.os4 .foot { position: static; gap: 10px; }\n.os4 .foot .group, .os4 .stagefoot, .os4 .stagefoot .group { flex-wrap: wrap; }\n.os4 .stagebody { min-height: clamp(200px, 32cqw, 340px); }\n.os4 .stagebody.compare { grid-template-columns: repeat(auto-fit,minmax(min(170px,100%),1fr)); }\n.os4 .compare-item { display: grid; white-space: normal; width: 100%; }\n.os4 .compare-item.active { border-color: #347359; }\n.os4 .image-zoom { background: none; border: none; padding: 0; width: 100%; cursor: zoom-in; }\n.os4 .candidate .os-review-image img { max-height: 115px; }\n.os4 .previewThumb .os-review-image img { max-height: 52px; }\n.os4 .stagebody img, .os4 .studio-dialog img { height: auto; max-width: 100%; display: block; }\n.os4 .stagebody .os-review-stage { padding: 0; border: none; background: transparent; min-width: 0; width: 100%; }\n.os4 .review-body > :is(.os-feedback,.os-region-review) { width: 100%; }\n.os4 .thumb-empty, .os4 .empty-preview { padding: 13px; color: #68776d; text-align: center; white-space: normal; }\n.os4 .style-notes, .os4 .os-design-controls, .os4 .os-feedback { margin: 8px 14px; }\n.os4 .style-notes p { white-space: pre-wrap; overflow-wrap: anywhere; }\n.os4 details summary { cursor: pointer; font-weight: 600; }\n.os4 .preview-tabs { align-self: flex-start; margin: 10px 14px; }\n.os4 .object-surface { position: relative; width: fit-content; max-width: 100%; overflow: hidden; }\n.os4 .object-box { position: absolute; border: 2px solid #267a5c; background: #29b47820; pointer-events: none; }\n.os4 .object-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(150px,100%),1fr)); gap: 6px; max-height: 170px; overflow: auto; margin-top: 8px; }\n.os4 .object-list button { min-width: 0; margin: 0; }\n.os4 .object-list button span { overflow: hidden; text-overflow: ellipsis; }\n.os4 .sync-row { margin-top: 8px; }\n.os4 .sync-row button { width: auto; margin: 0; }\n.os4 .studio-dialog { padding: 0; max-height: 88vh; overflow: auto; color: #202923; background: #fff; }\n.os4 .studio-dialog.wide { width: min(900px,92vw); }\n.os4 .dialog-body { padding: 15px; }\n.os4 .dialog-body .os-image-settings { height: auto; max-height: none; padding: 0; }\n.os4 .brand-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid #e6ebe6; }\n.os4 .brand-row small { display: block; }\n.os4 .brand-row + .group { margin-top: 10px; }\n.os4 .phead strong { min-width: 0; overflow-wrap: anywhere; }\n.os4 .pagenav { flex-shrink: 0; font-size: 12px; }\n.os4 .os-btn-primary { background: #205341; color: #fff; }\n@container (max-width: 650px) {\n .os4 .work { grid-template-columns: minmax(0,1fr); min-height: 0; gap: 10px; }\n .os4 .leftinner { max-height: 126px; align-content: start; }\n .os4 .candidate .os-review-image img { max-height: 64px; }\n .os4 .stagebody { min-height: 150px; }\n .os4 .foot { padding: 8px 12px; min-height: auto; }\n .os4 .bottomnote small { display: none; }\n .os4 .form { padding: 12px; }\n}\n@container (max-width: 430px) {\n .os4 .bar, .os4 > main { padding-left: 9px; padding-right: 9px; }\n .os4 .barRight, .os4 .brand, .os4 .pagenav, .os4 .group { gap: 4px; }\n .os4 .step { gap: 3px; padding: 8px 1px; }\n .os4 .step span:first-child { width: 18px; height: 18px; font-size: 10px; }\n .os4 .previewThumb { grid-template-columns: 45px minmax(0,1fr); }\n .os4 .foot .group { width: 100%; justify-content: flex-end; }\n .os4 .foot button { padding: 7px 9px; font-size: 12px; }\n .os4 .intro p { font-size: 12px; }\n}\n");
11570
+ registerPluginCss("dsh-oil-slide/styles.css", "/* Oil Slide sidebar — strictly aligned with DESIGN.md (4 surfaces / 2 hairlines / 3 inks / 1 cobalt) */\n.os-workspace {\n /* 4 neutral surfaces */\n --os-paper: #f7f8fa;\n --os-surface: #ffffff;\n --os-well: #eef1f5;\n --os-hover: #e5e9f0;\n\n /* 2 hairlines */\n --os-line: #e5e8ee;\n --os-line-strong: #d1d6df;\n\n /* 3 inks */\n --os-ink: #14171f;\n --os-ink-2: #545b69;\n --os-ink-3: #858d9d;\n\n /* 1 exclusive brand cobalt */\n --os-brand: #3a83ef;\n --os-brand-hover: #2f76e2;\n --os-brand-active: #2668cf;\n --os-brand-soft: #edf4ff;\n --os-brand-tag-ink: #1f5fbf;\n\n /* Shadows matching Studio globals.css */\n --os-shadow-btn: 0 1px 1.5px rgba(20, 23, 31, 0.04);\n --os-shadow-card:\n 0 0 0 1px rgba(20, 23, 31, 0.06),\n 0 1px 2px rgba(20, 23, 31, 0.03),\n 0 6px 20px rgba(20, 23, 31, 0.04);\n --os-shadow-raised:\n 0 0 0 1px rgba(20, 23, 31, 0.07),\n 0 4px 16px rgba(20, 23, 31, 0.06);\n --os-shadow-overlay:\n 0 0 0 1px rgba(20, 23, 31, 0.08),\n 0 18px 48px rgba(15, 23, 42, 0.14);\n\n --os-ease: cubic-bezier(0.22, 1, 0.36, 1);\n --os-serif: \"Instrument Serif\", \"Songti SC\", \"STSong\", \"Noto Serif SC\", Georgia, serif;\n --os-sans: \"Inter\", -apple-system, BlinkMacSystemFont, \"PingFang SC\", \"Hiragino Sans GB\", \"Microsoft YaHei\", sans-serif;\n --os-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;\n\n box-sizing: border-box;\n position: relative;\n display: flex;\n flex-direction: column;\n flex: 1 1 auto;\n height: 100%;\n width: 100%;\n min-height: 0;\n min-width: 0;\n background: var(--os-paper);\n color: var(--os-ink);\n font-family: var(--os-sans);\n font-size: 13px;\n line-height: 1.5;\n overflow: hidden;\n -webkit-font-smoothing: antialiased;\n container-type: inline-size;\n}\n\n.os-error-stage {\n align-items: center;\n justify-content: center;\n padding: 24px;\n}\n\n.os-error-card {\n max-width: 360px;\n width: 100%;\n padding: 20px;\n border-radius: 16px;\n border: 1px solid var(--os-line);\n background: var(--os-surface);\n box-shadow: var(--os-shadow-card);\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 10px;\n}\n\n.os-error-title {\n margin: 0;\n font-size: 14px;\n font-weight: 600;\n color: var(--os-ink);\n}\n\n.os-error-detail {\n margin: 0;\n font-family: var(--os-mono);\n font-size: 11.5px;\n line-height: 1.5;\n color: var(--os-ink-2);\n word-break: break-word;\n}\n\n.os-workspace *,\n.os-workspace *::before,\n.os-workspace *::after {\n box-sizing: border-box;\n}\n\n.os-workspace button:focus-visible,\n.os-workspace [role=\"button\"]:focus-visible {\n outline: 2px solid var(--os-brand);\n outline-offset: 2px;\n}\n\n.os-icon-brand {\n color: var(--os-brand);\n}\n\n/* ── Unified Studio Button Primitives (matches globals.css) ── */\n.os-btn-sm {\n height: 28px;\n padding: 0 10px;\n border-radius: 8px;\n font: inherit;\n font-size: 12px;\n font-weight: 500;\n line-height: 1;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 5px;\n white-space: nowrap;\n cursor: pointer;\n}\n\n.os-icon-btn {\n appearance: none;\n width: 28px;\n height: 28px;\n padding: 0;\n border-radius: 8px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n flex: none;\n}\n\n/* Primary CTA (#3A83EF solid cobalt — sole primary button per viewport) */\n.os-btn-primary {\n appearance: none;\n border: 0;\n background: var(--os-brand);\n color: var(--os-surface);\n padding: 0 12px;\n box-shadow:\n inset 0 1px 0 rgba(255, 255, 255, 0.16),\n 0 1px 2px rgba(20, 56, 128, 0.16);\n transition:\n background-color 150ms var(--os-ease),\n box-shadow 150ms var(--os-ease),\n transform 120ms var(--os-ease);\n}\n\n.os-btn-primary:hover:not(:disabled) {\n background: var(--os-brand-hover);\n}\n\n.os-btn-primary:active:not(:disabled) {\n background: var(--os-brand-active);\n transform: scale(0.985);\n}\n\n.os-btn-primary:disabled {\n opacity: 0.4;\n cursor: not-allowed;\n}\n\n/* Secondary flat white surface button */\n.os-btn-surface {\n appearance: none;\n border: 1px solid var(--os-line);\n background: var(--os-surface);\n color: var(--os-ink);\n box-shadow: var(--os-shadow-btn);\n transition:\n background-color 150ms var(--os-ease),\n border-color 150ms var(--os-ease),\n color 140ms var(--os-ease),\n transform 120ms var(--os-ease);\n}\n\n.os-btn-surface:hover:not(:disabled) {\n background: var(--os-paper);\n border-color: var(--os-line-strong);\n}\n\n.os-btn-surface:active:not(:disabled) {\n background: var(--os-well);\n transform: scale(0.985);\n}\n\n.os-btn-surface:disabled {\n opacity: 0.4;\n cursor: not-allowed;\n}\n\n/* Tertiary / ghost button */\n.os-btn-ghost {\n appearance: none;\n border: 0;\n background: transparent;\n color: var(--os-ink-2);\n transition:\n background-color 150ms var(--os-ease),\n color 150ms var(--os-ease),\n transform 120ms var(--os-ease);\n}\n\n.os-btn-ghost:hover:not(:disabled) {\n background: var(--os-well);\n color: var(--os-ink);\n}\n\n.os-btn-ghost:active:not(:disabled) {\n transform: scale(0.985);\n}\n\n.os-btn-ghost:disabled {\n opacity: 0.25;\n cursor: default;\n}\n\n/* Borderless soft cobalt toggle active button (matches Studio .oil-btn-active) */\n.os-btn-active {\n appearance: none;\n border: 1px solid transparent;\n background: var(--os-brand-soft);\n color: #1f5fbf;\n transition:\n background-color 140ms var(--os-ease),\n color 140ms var(--os-ease),\n transform 120ms var(--os-ease);\n}\n\n.os-btn-active:hover:not(:disabled) {\n background: #dfecff;\n color: #1851a8;\n}\n\n.os-btn-active:active:not(:disabled) {\n background: #d3e4ff;\n transform: scale(0.985);\n}\n\n.os-pill-well {\n border-radius: 999px;\n background: var(--os-well);\n color: var(--os-ink);\n}\n\n.os-pill-well:hover:not(:disabled) {\n background: var(--os-hover);\n color: var(--os-ink);\n}\n\n/* ── Single Internal Toolbar (48px, transparent over --os-paper) ── */\n.os-toolbar {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 6px;\n height: 48px;\n padding: 4px 14px 0;\n background: transparent;\n flex: none;\n z-index: 20;\n min-width: 0;\n}\n\n.os-toolbar-right {\n display: flex;\n align-items: center;\n gap: 5px;\n min-width: 0;\n flex-shrink: 1;\n}\n\n/* SegmentedControl (matches Studio SegmentedControl.tsx: borderless bg-well + 2px pad + 6px inner radius) */\n.os-segmented {\n display: inline-grid;\n grid-auto-flow: column;\n grid-auto-columns: minmax(0, 1fr);\n min-height: 32px;\n padding: 2px;\n border-radius: 8px;\n background: var(--os-well);\n user-select: none;\n flex: none;\n}\n\n.os-seg-btn {\n appearance: none;\n border: 0;\n background: transparent;\n color: var(--os-ink-2);\n font: inherit;\n font-size: 12.5px;\n font-weight: 500;\n line-height: 1;\n min-height: 28px;\n padding: 0 12px;\n border-radius: 6px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 6px;\n white-space: nowrap;\n cursor: pointer;\n transition: color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;\n}\n\n.os-seg-btn:hover:not(:disabled) {\n color: var(--os-ink);\n}\n\n.os-seg-btn:disabled {\n opacity: 0.4;\n cursor: default;\n}\n\n.os-seg-btn[data-active=\"true\"] {\n background: var(--os-surface);\n color: var(--os-ink);\n box-shadow: var(--os-shadow-btn);\n}\n\n.os-seg-badge {\n font-family: var(--os-mono);\n font-size: 10.5px;\n font-variant-numeric: tabular-nums;\n color: var(--os-ink-3);\n}\n\n.os-tool-btn-max {\n max-width: 148px;\n}\n\n.os-tool-btn-label {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* Custom sleek deck menu popover */\n.os-deck-picker {\n position: relative;\n display: inline-flex;\n}\n\n.os-deck-menu {\n position: absolute;\n top: calc(100% + 6px);\n right: 0;\n min-width: 204px;\n max-width: 280px;\n padding: 6px;\n border-radius: 12px;\n border: 1px solid var(--os-line);\n background: var(--os-surface);\n box-shadow: var(--os-shadow-overlay);\n z-index: 60;\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.os-deck-menu-item {\n appearance: none;\n border: 0;\n width: 100%;\n background: transparent;\n border-radius: 8px;\n padding: 7px 10px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n font: inherit;\n font-size: 12px;\n color: var(--os-ink-2);\n text-align: left;\n cursor: pointer;\n transition: background-color 120ms ease, color 120ms ease;\n}\n\n.os-deck-menu-item:hover {\n background: var(--os-well);\n color: var(--os-ink);\n}\n\n.os-deck-menu-item[data-selected=\"true\"] {\n background: var(--os-brand-soft);\n color: var(--os-brand-tag-ink);\n font-weight: 500;\n}\n\n.os-deck-menu-name {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n min-width: 0;\n}\n\n.os-deck-menu-meta {\n font-family: var(--os-mono);\n font-size: 10.5px;\n font-variant-numeric: tabular-nums;\n color: var(--os-ink-3);\n flex: none;\n}\n\n.os-deck-menu-item[data-selected=\"true\"] .os-deck-menu-meta {\n color: var(--os-brand-tag-ink);\n opacity: 0.78;\n}\n\n@container (max-width: 720px) {\n .os-toolbar {\n padding: 4px 12px 0;\n }\n .os-seg-btn {\n padding: 0 9px;\n gap: 5px;\n }\n .os-tool-btn-max {\n max-width: 112px;\n }\n .os-export-html-label {\n display: none;\n }\n .os-export-html-btn {\n width: 28px;\n padding: 0;\n }\n}\n\n@container (max-width: 560px) {\n .os-seg-btn svg {\n display: none;\n }\n .os-seg-btn {\n padding: 0 8px;\n font-size: 12px;\n }\n .os-tool-btn-max {\n max-width: 92px;\n }\n}\n\n@container (max-width: 440px) {\n .os-toolbar {\n padding: 4px 8px 0;\n gap: 4px;\n }\n .os-toolbar-right {\n gap: 4px;\n }\n .os-btn-primary.os-btn-sm {\n padding: 0 8px;\n }\n .os-tool-btn-max {\n max-width: 72px;\n }\n}\n\n/* ── Main Content Container ───────────────────────────── */\n.os-content {\n position: relative;\n flex: 1 1 auto;\n min-height: 0;\n width: 100%;\n overflow: hidden;\n background: transparent;\n}\n\n.os-tab-pane {\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n overflow: hidden;\n}\n\n/* ── Empty State: 16:9 Modern Luminous Cobalt Silk Studio Easel ── */\n.os-empty-stage {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n height: 100%;\n width: 100%;\n padding: 28px 24px;\n overflow-y: auto;\n}\n\n.os-empty-inner {\n width: 100%;\n max-width: 660px;\n}\n\n.os-easel {\n position: relative;\n width: 100%;\n aspect-ratio: 16 / 9;\n overflow: hidden;\n border-radius: 16px;\n border: 1px solid var(--os-line);\n background: var(--os-paper);\n box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);\n}\n\n.os-easel-bg {\n pointer-events: none;\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n object-fit: cover;\n object-position: right center;\n opacity: 0.95;\n user-select: none;\n display: block;\n}\n\n.os-easel-fallback-bg {\n pointer-events: none;\n position: absolute;\n inset: 0;\n background:\n radial-gradient(70% 90% at 92% 20%, rgba(58, 131, 239, 0.14) 0%, rgba(58, 131, 239, 0) 72%),\n radial-gradient(58% 72% at 80% 88%, rgba(58, 131, 239, 0.1) 0%, rgba(58, 131, 239, 0) 68%);\n}\n\n.os-easel-veil {\n pointer-events: none;\n position: absolute;\n inset: 0;\n background: linear-gradient(\n 96deg,\n #ffffff 0%,\n #f9fbfe 38%,\n rgba(249, 251, 254, 0.68) 54%,\n rgba(249, 251, 254, 0.06) 80%,\n rgba(249, 251, 254, 0) 100%\n );\n}\n\n.os-easel-chrome {\n position: relative;\n z-index: 10;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n height: 100%;\n padding: 28px 32px;\n}\n\n.os-easel-top {\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n\n.os-easel-brand {\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.os-easel-brand img {\n width: 24px;\n height: 24px;\n display: block;\n user-select: none;\n}\n\n.os-easel-brand-name {\n font-size: 12px;\n font-weight: 500;\n letter-spacing: -0.01em;\n color: rgba(20, 23, 31, 0.8);\n}\n\n.os-easel-ratio {\n font-family: var(--os-mono);\n font-size: 11px;\n letter-spacing: 0.08em;\n color: rgba(84, 91, 105, 0.6);\n}\n\n.os-easel-copy {\n max-width: 56%;\n}\n\n.os-easel-heading {\n margin: 0;\n font-family: var(--os-serif);\n font-size: 26px;\n font-weight: 600;\n line-height: 1.32;\n letter-spacing: -0.01em;\n color: var(--os-ink);\n}\n\n.os-easel-desc {\n margin: 10px 0 0;\n font-size: 14px;\n line-height: 1.7;\n color: var(--os-ink-2);\n}\n\n.os-easel-status {\n display: flex;\n align-items: center;\n gap: 8px;\n font-size: 12px;\n color: var(--os-ink-3);\n}\n\n.os-easel-dot {\n width: 6px;\n height: 6px;\n border-radius: 999px;\n background: rgba(58, 131, 239, 0.65);\n}\n\n.os-empty-steps {\n margin-top: 20px;\n padding: 0 4px;\n display: grid;\n grid-template-columns: repeat(3, minmax(0, 1fr));\n gap: 12px;\n}\n\n.os-empty-step-head {\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n.os-empty-step-num {\n font-family: var(--os-mono);\n font-size: 11px;\n font-variant-numeric: tabular-nums;\n color: var(--os-brand);\n}\n\n.os-empty-step-title {\n font-size: 12px;\n font-weight: 500;\n color: var(--os-ink);\n}\n\n.os-empty-step-desc {\n margin: 2px 0 0;\n font-size: 12px;\n line-height: 1.4;\n color: var(--os-ink-3);\n}\n\n@container (max-width: 460px) {\n .os-easel-chrome {\n padding: 18px 20px;\n }\n .os-easel-copy {\n max-width: 68%;\n }\n .os-easel-heading {\n font-size: 19px;\n }\n .os-easel-desc {\n font-size: 12px;\n margin-top: 6px;\n }\n .os-empty-steps {\n grid-template-columns: 1fr;\n gap: 10px;\n }\n}\n\n/* ── Live HTML Canvas Stage (matches Studio HtmlCanvasEditor.tsx) ── */\n.os-canvas-root {\n position: relative;\n height: 100%;\n width: 100%;\n overflow: hidden;\n background: transparent;\n user-select: none;\n outline: none;\n}\n\n.os-stage-frame {\n position: absolute;\n overflow: hidden;\n border-radius: 10px;\n background: var(--os-paper);\n box-shadow: var(--os-shadow-card);\n transition: box-shadow 200ms ease;\n}\n\n.os-stage-iframe {\n position: absolute;\n left: 50%;\n top: 50%;\n border: 0;\n background: transparent;\n transform-origin: center center;\n transition: opacity 180ms ease;\n}\n\n.os-stage-loading {\n position: absolute;\n inset: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n background: var(--os-paper);\n color: var(--os-ink-3);\n}\n\n/* ── Bottom SlideThumbStrip (matches Studio SlideThumbStrip.tsx) ── */\n.os-thumbstrip-anchor {\n pointer-events: none;\n position: absolute;\n left: 0;\n right: 0;\n bottom: 12px;\n z-index: 30;\n display: flex;\n justify-content: center;\n padding: 0 20px;\n}\n\n.os-thumbstrip-bar {\n pointer-events: auto;\n display: flex;\n align-items: center;\n gap: 6px;\n max-width: 100%;\n background: transparent;\n border: 0;\n padding: 0;\n box-shadow: none;\n}\n\n.os-strip-scroll {\n display: flex;\n align-items: center;\n gap: 4px;\n min-width: 0;\n overflow-x: auto;\n padding: 2px 4px;\n scrollbar-width: none;\n}\n\n.os-strip-scroll::-webkit-scrollbar {\n display: none;\n}\n\n.os-thumb-btn {\n appearance: none;\n border: 0;\n background: transparent;\n position: relative;\n flex: none;\n border-radius: 12px;\n padding: 5px;\n cursor: pointer;\n opacity: 0.82;\n transition: opacity 150ms ease, background-color 150ms ease;\n}\n\n.os-thumb-btn:hover {\n background: var(--os-well);\n opacity: 1;\n}\n\n.os-thumb-btn[data-active=\"true\"] {\n background: transparent;\n opacity: 1;\n}\n\n.os-thumb-viewport {\n position: relative;\n overflow: hidden;\n border-radius: 8px;\n border: 1px solid var(--os-line);\n transition: border-color 150ms ease, box-shadow 150ms ease;\n}\n\n.os-thumb-btn:hover .os-thumb-viewport {\n border-color: var(--os-line-strong);\n}\n\n.os-thumb-btn[data-active=\"true\"] .os-thumb-viewport {\n border-color: transparent;\n box-shadow: 0 0 0 2px var(--os-brand);\n}\n\n.os-thumb-iframe {\n pointer-events: none;\n position: absolute;\n left: 0;\n top: 0;\n border: 0;\n background: transparent;\n transform-origin: top left;\n}\n\n.os-thumb-placeholder {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n font-family: var(--os-mono);\n font-size: 11px;\n font-variant-numeric: tabular-nums;\n color: var(--os-ink-3);\n}\n\n.os-strip-divider {\n width: 1px;\n height: 20px;\n background: var(--os-line);\n margin: 0 2px;\n flex: none;\n}\n\n.os-strip-action {\n flex: none;\n}\n\n/* ── Reference Gallery (1:1 with Studio ReferenceGallery.tsx) ── */\n.os-gallery-scroll {\n height: 100%;\n width: 100%;\n overflow-y: auto;\n background: transparent;\n padding: 16px 24px 28px;\n}\n\n.os-gallery-scroll::-webkit-scrollbar {\n width: 6px;\n}\n\n.os-gallery-scroll::-webkit-scrollbar-thumb {\n background: rgba(20, 23, 31, 0.14);\n border-radius: 999px;\n}\n\n.os-gallery-empty {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n height: 100%;\n padding: 0 32px;\n text-align: center;\n}\n\n.os-gallery-empty-title {\n margin: 0;\n font-size: 14px;\n font-weight: 500;\n color: var(--os-ink);\n}\n\n.os-gallery-empty-desc {\n margin: 6px 0 0;\n max-width: 300px;\n font-size: 12px;\n line-height: 1.6;\n color: var(--os-ink-3);\n}\n\n.os-gallery-inner {\n max-width: 1040px;\n margin: 0 auto;\n}\n\n.os-gallery-meta {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 12px;\n margin-bottom: 16px;\n}\n\n.os-gallery-count {\n font-size: 12px;\n color: var(--os-ink-3);\n}\n\n.os-gallery-grid {\n display: grid;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n gap: 20px;\n}\n\n@container (max-width: 540px) {\n .os-gallery-scroll {\n padding: 14px 14px 24px;\n }\n .os-gallery-grid {\n grid-template-columns: 1fr;\n gap: 16px;\n }\n}\n\n.os-ref-card {\n overflow: hidden;\n border-radius: 16px;\n border: 1px solid var(--os-line);\n background: var(--os-surface);\n transition:\n border-color 200ms ease,\n transform 200ms var(--os-ease);\n}\n\n.os-ref-card:hover {\n transform: translateY(-2px);\n border-color: var(--os-line-strong);\n}\n\n.os-ref-media {\n position: relative;\n width: 100%;\n aspect-ratio: 16 / 9;\n overflow: hidden;\n background: var(--os-well);\n cursor: zoom-in;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.os-ref-media-btn {\n appearance: none;\n border: 0;\n padding: 0;\n display: block;\n}\n\n.os-ref-media img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n display: block;\n transition: transform 300ms var(--os-ease);\n}\n\n.os-ref-card:hover .os-ref-media img {\n transform: scale(1.018);\n}\n\n.os-ref-footer {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n padding: 12px;\n}\n\n.os-ref-label {\n font-size: 12px;\n color: var(--os-ink-3);\n}\n\n.os-ref-actions {\n display: flex;\n align-items: center;\n gap: 6px;\n transition: opacity 150ms ease;\n}\n\n@media (hover: hover) {\n .os-ref-actions[data-pinned=\"false\"] {\n opacity: 0;\n }\n .os-ref-card:hover .os-ref-actions,\n .os-ref-card:focus-within .os-ref-actions {\n opacity: 1;\n }\n}\n\n.os-ref-btn {\n appearance: none;\n border: 0;\n height: 28px;\n padding: 0 10px;\n border-radius: 8px;\n background: var(--os-well);\n color: var(--os-ink-2);\n font: inherit;\n font-size: 12px;\n font-weight: 500;\n display: inline-flex;\n align-items: center;\n gap: 4px;\n cursor: pointer;\n transition:\n background-color 150ms var(--os-ease),\n color 150ms var(--os-ease),\n transform 120ms var(--os-ease);\n}\n\n.os-ref-btn:hover {\n background: var(--os-hover);\n color: var(--os-ink);\n}\n\n.os-ref-btn:active {\n transform: scale(0.985);\n}\n\n.os-ref-btn[data-copied=\"true\"] {\n background: var(--os-brand-soft);\n color: var(--os-brand-tag-ink);\n}\n\n/* Exploration pool */\n.os-explore-section {\n width: 100%;\n}\n\n.os-explore-divider {\n margin-top: 28px;\n padding-top: 20px;\n border-top: 1px solid var(--os-line);\n}\n\n.os-explore-head {\n margin-bottom: 12px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n\n.os-explore-title {\n font-size: 12px;\n font-weight: 500;\n color: var(--os-ink);\n}\n\n.os-explore-grid {\n display: grid;\n grid-template-columns: repeat(3, minmax(0, 1fr));\n gap: 16px;\n}\n\n@container (max-width: 720px) {\n .os-explore-grid {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n }\n}\n\n@container (max-width: 480px) {\n .os-explore-grid {\n grid-template-columns: 1fr;\n }\n}\n\n.os-explore-name {\n font-family: var(--os-mono);\n font-size: 12px;\n color: var(--os-ink-2);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n min-width: 0;\n}\n\n.os-explore-opt {\n font-size: 11px;\n color: var(--os-ink-3);\n flex: none;\n}\n\n/* ── Studio-matched Lightbox Modal ─────────────────────── */\n.os-lightbox-backdrop {\n position: fixed;\n inset: 0;\n z-index: 9999;\n display: flex;\n align-items: center;\n justify-content: center;\n background: rgba(0, 0, 0, 0.76);\n backdrop-filter: blur(6px);\n padding: 24px;\n}\n\n.os-lightbox-stage {\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: center;\n max-width: 90vw;\n max-height: 90vh;\n}\n\n.os-lightbox-frame {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n border-radius: 12px;\n}\n\n.os-lightbox-img {\n max-width: 86vw;\n max-height: 78vh;\n border-radius: 12px;\n box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);\n object-fit: contain;\n display: block;\n}\n\n.os-lightbox-bar {\n margin-top: 12px;\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 16px;\n font-size: 12px;\n color: rgba(255, 255, 255, 0.85);\n}\n\n.os-lightbox-info {\n display: flex;\n align-items: center;\n gap: 8px;\n min-width: 0;\n}\n\n.os-lightbox-label {\n font-weight: 500;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.os-lightbox-counter {\n font-family: var(--os-mono);\n font-size: 11px;\n font-variant-numeric: tabular-nums;\n color: rgba(255, 255, 255, 0.55);\n white-space: nowrap;\n}\n\n.os-lightbox-pager {\n display: flex;\n align-items: center;\n gap: 2px;\n padding: 2px;\n border-radius: 999px;\n border: 1px solid rgba(255, 255, 255, 0.15);\n background: rgba(255, 255, 255, 0.1);\n backdrop-filter: blur(8px);\n overflow-x: auto;\n max-width: 55vw;\n scrollbar-width: none;\n}\n\n.os-lightbox-pager::-webkit-scrollbar {\n display: none;\n}\n\n.os-lightbox-page-btn {\n appearance: none;\n border: 0;\n background: transparent;\n height: 24px;\n min-width: 26px;\n padding: 0 6px;\n border-radius: 999px;\n font-family: var(--os-mono);\n font-size: 11px;\n font-weight: 500;\n font-variant-numeric: tabular-nums;\n color: rgba(255, 255, 255, 0.72);\n cursor: pointer;\n flex: none;\n transition: background-color 140ms ease, color 140ms ease;\n}\n\n.os-lightbox-page-btn:hover {\n color: #ffffff;\n}\n\n.os-lightbox-page-btn[data-active=\"true\"] {\n background: var(--os-brand);\n color: #ffffff;\n}\n\n.os-lightbox-close-pill {\n appearance: none;\n border: 0;\n border-radius: 999px;\n background: rgba(255, 255, 255, 0.15);\n color: #ffffff;\n padding: 4px 12px;\n font: inherit;\n font-size: 12px;\n display: inline-flex;\n align-items: center;\n gap: 4px;\n cursor: pointer;\n flex: none;\n transition: background-color 140ms ease;\n}\n\n.os-lightbox-close-pill:hover {\n background: rgba(255, 255, 255, 0.25);\n}\n\n.os-lightbox-nav {\n appearance: none;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n z-index: 10;\n width: 40px;\n height: 40px;\n border-radius: 999px;\n border: 0;\n background: rgba(255, 255, 255, 0.14);\n color: #ffffff;\n backdrop-filter: blur(8px);\n display: inline-flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n padding: 0;\n transition: background-color 140ms ease, transform 120ms ease;\n}\n\n.os-lightbox-nav:hover {\n background: rgba(255, 255, 255, 0.24);\n}\n\n.os-lightbox-nav:active {\n transform: translateY(-50%) scale(0.95);\n}\n\n.os-lightbox-nav[data-dir=\"prev\"] {\n left: 20px;\n}\n\n.os-lightbox-nav[data-dir=\"next\"] {\n right: 20px;\n}\n\n/* ── Subtle Studio Pill Toast ─────────────────────────── */\n.os-toast {\n pointer-events: none;\n position: absolute;\n right: 16px;\n top: 12px;\n z-index: 70;\n border-radius: 999px;\n border: 1px solid var(--os-line);\n background: rgba(255, 255, 255, 0.95);\n padding: 6px 14px;\n font-size: 12px;\n font-weight: 500;\n color: var(--os-ink);\n box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);\n backdrop-filter: blur(12px);\n}\n\n/* ── Spinner & Tab Title Chip ─────────────────────────── */\n@keyframes os-spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n}\n\n.os-spinner {\n width: 13px;\n height: 13px;\n border: 1.6px solid currentColor;\n border-right-color: transparent;\n border-radius: 999px;\n display: inline-block;\n animation: os-spin 680ms linear infinite;\n}\n\n.oil-slide-title-chip {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n}\n\n/* ── Fullscreen Presentation Overlay ──────────────────── */\n.os-canvas-fullscreen {\n position: fixed !important;\n inset: 0 !important;\n z-index: 9999 !important;\n width: 100vw !important;\n height: 100vh !important;\n background: #0b0d11 !important;\n}\n\n.os-canvas-fullscreen .os-stage-frame {\n border-radius: 6px;\n box-shadow:\n 0 24px 80px rgba(0, 0, 0, 0.55),\n 0 0 0 1px rgba(255, 255, 255, 0.08);\n}\n\n.os-fs-close {\n position: fixed;\n top: 16px;\n right: 20px;\n z-index: 10001;\n width: 36px;\n height: 36px;\n border-radius: 999px;\n border: 1px solid rgba(255, 255, 255, 0.15);\n background: rgba(0, 0, 0, 0.55);\n color: rgba(255, 255, 255, 0.82);\n display: inline-flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n backdrop-filter: blur(10px);\n transition: background-color 140ms ease, color 140ms ease;\n}\n\n.os-fs-close:hover {\n background: rgba(0, 0, 0, 0.8);\n color: #ffffff;\n}\n\n.os-fs-controls {\n position: fixed;\n bottom: 16px;\n left: 50%;\n transform: translateX(-50%);\n z-index: 10001;\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 6px 12px;\n border-radius: 999px;\n border: 1px solid rgba(255, 255, 255, 0.12);\n background: rgba(0, 0, 0, 0.65);\n color: rgba(255, 255, 255, 0.9);\n box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);\n backdrop-filter: blur(12px);\n}\n\n.os-fs-btn {\n appearance: none;\n border: 0;\n background: transparent;\n width: 28px;\n height: 28px;\n border-radius: 999px;\n color: rgba(255, 255, 255, 0.85);\n display: inline-flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n transition: background-color 140ms ease;\n}\n\n.os-fs-btn:hover:not(:disabled) {\n background: rgba(255, 255, 255, 0.12);\n}\n\n.os-fs-btn:disabled {\n opacity: 0.3;\n cursor: not-allowed;\n}\n\n.os-fs-counter {\n min-width: 54px;\n text-align: center;\n font-family: var(--os-mono);\n font-size: 12px;\n font-variant-numeric: tabular-nums;\n letter-spacing: 0.04em;\n color: rgba(255, 255, 255, 0.85);\n}\n\n.os-fs-divider {\n width: 1px;\n height: 16px;\n background: rgba(255, 255, 255, 0.15);\n margin: 0 2px;\n}\n\n.os-fs-exit {\n appearance: none;\n border: 0;\n background: transparent;\n height: 28px;\n padding: 0 10px;\n border-radius: 999px;\n color: rgba(255, 255, 255, 0.9);\n font: inherit;\n font-size: 12px;\n font-weight: 500;\n display: inline-flex;\n align-items: center;\n gap: 6px;\n cursor: pointer;\n transition: background-color 140ms ease, color 140ms ease;\n}\n\n.os-fs-exit:hover {\n background: rgba(255, 255, 255, 0.12);\n}\n\n.os-fs-exit[data-active=\"true\"] {\n background: rgba(255, 255, 255, 0.92);\n color: var(--os-ink);\n}\n\n/* ── Studio-matched Light Draft vs HTML Split-Curtain Compare ── */\n.os-compare-overlay {\n position: absolute;\n inset: 0;\n z-index: 25;\n user-select: none;\n container-type: inline-size;\n}\n\n.os-compare-img {\n pointer-events: none;\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n object-fit: cover;\n display: block;\n}\n\n.os-compare-scrubber {\n position: absolute;\n inset: 0;\n cursor: ew-resize;\n touch-action: pan-y;\n}\n\n.os-compare-scrubber:focus-visible {\n outline: 2px solid var(--os-brand);\n outline-offset: -3px;\n}\n\n.os-compare-divider {\n pointer-events: none;\n position: absolute;\n top: 0;\n bottom: 0;\n transform: translateX(-50%);\n}\n\n.os-compare-line {\n width: 2px;\n height: 100%;\n background: var(--os-surface);\n box-shadow:\n 0 0 0 1px rgba(20, 23, 31, 0.32),\n 0 2px 12px rgba(0, 0, 0, 0.28);\n}\n\n.os-compare-handle {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n width: 36px;\n height: 36px;\n border-radius: 999px;\n background: var(--os-brand);\n color: var(--os-surface);\n display: flex;\n align-items: center;\n justify-content: center;\n box-shadow:\n 0 6px 20px rgba(20, 56, 128, 0.28),\n 0 0 0 2px rgba(255, 255, 255, 0.95);\n}\n\n/* Light bottom-corner badges matching Studio HtmlCanvasEditor.tsx */\n.os-compare-badge {\n pointer-events: none;\n position: absolute;\n bottom: 12px;\n border-radius: 8px;\n border: 1px solid var(--os-line);\n background: var(--os-surface);\n color: var(--os-ink-2);\n padding: 4px 10px;\n font-size: 12px;\n font-weight: 500;\n box-shadow: var(--os-shadow-btn);\n}\n\n.os-compare-badge-left {\n left: 12px;\n}\n\n.os-compare-badge-right {\n right: 12px;\n}\n\n@container (max-width: 640px) {\n .os-compare-badge {\n bottom: 52px;\n padding: 3px 8px;\n font-size: 11px;\n }\n}\n\n.os-compare-empty {\n pointer-events: none;\n position: absolute;\n left: 50%;\n bottom: 56px;\n transform: translateX(-50%);\n border-radius: 8px;\n border: 1px solid var(--os-line);\n background: var(--os-surface);\n color: var(--os-ink-2);\n padding: 6px 12px;\n font-size: 12px;\n font-weight: 500;\n display: inline-flex;\n align-items: center;\n gap: 6px;\n box-shadow: var(--os-shadow-btn);\n}\n\n.os-compare-controls {\n position: absolute;\n bottom: 12px;\n left: 50%;\n transform: translateX(-50%);\n z-index: 30;\n display: inline-flex;\n align-items: center;\n gap: 6px;\n}\n\n.os-compare-segmented {\n border: 1px solid var(--os-line);\n box-shadow: var(--os-shadow-raised);\n}\n\n.os-compare-close {\n width: 32px;\n height: 32px;\n padding: 0;\n border-radius: 8px;\n color: var(--os-ink-2);\n display: inline-flex;\n align-items: center;\n justify-content: center;\n box-shadow: var(--os-shadow-raised);\n cursor: pointer;\n}\n\n.os-compare-close:hover {\n color: var(--os-ink);\n}\n\n@media (prefers-reduced-motion: reduce) {\n .os-workspace *,\n .os-workspace *::before,\n .os-workspace *::after {\n transition-duration: 0.01ms !important;\n }\n}\n\n/* Staged PPT creation, independent from the legacy HTML export toolbar. */\n.os-workflow { padding: 12px 16px; display: grid; gap: 9px; flex: 0 0 auto; border-bottom: 1px solid color-mix(in srgb, currentColor 15%, transparent); }\n.os-workflow p, .os-workflow ol { margin: 0; }\n.os-workflow-steps { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0; list-style: none; font-size: 12px; }\n.os-workflow-steps li { opacity: .64; }\n.os-workflow-steps li[aria-current=\"step\"] { opacity: 1; font-weight: 700; }\n.os-workflow-outline { max-height: 180px; overflow: auto; padding: 8px 8px 0 27px; }\n.os-workflow-outline li { padding: 2px 0 6px; }\n.os-workflow-outline span { display: block; white-space: pre-wrap; font-size: .9em; margin-top: 3px; }\n.os-workflow-actions { display: flex; flex-wrap: wrap; row-gap: 8px; column-gap: 8px; align-items: center; }\n.os-workflow-actions:empty { display: none; }\n.os-workflow-actions select { margin-inline-start: 6px; }\n\n.os-channel-tools { display: flex; justify-content: flex-end; padding: 5px 12px; }\n.os-image-settings {\n display: flex;\n flex-direction: column;\n gap: 14px;\n min-height: 0;\n padding: 16px;\n overflow: auto;\n font-size: 13px;\n}\n.os-image-settings h3, .os-image-settings h4, .os-image-settings p { margin: 0; }\n.os-image-settings h3 { font-size: 19px; font-weight: 650; }\n.os-image-settings h4 { font-size: 14px; font-weight: 650; }\n.os-image-settings p, .os-image-section-title > span, .os-image-detect > span {\n color: var(--os-ink-2);\n font-size: 12px;\n line-height: 1.5;\n}\n.os-image-heading, .os-image-section-title, .os-image-actions, .os-image-detect, .os-image-model-tools {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: 8px;\n}\n.os-image-heading, .os-image-section-title { justify-content: space-between; }\n.os-image-heading > div { display: grid; gap: 3px; min-width: 0; }\n.os-image-heading { align-items: flex-start; flex-wrap: nowrap; }\n.os-image-heading > button { flex-shrink: 0; }\n.os-image-editor, .os-image-card, .os-image-catalog { display: grid; gap: 10px; min-width: 0; }\n.os-image-card {\n margin: 0;\n padding: 12px;\n border: 1px solid var(--os-line);\n border-radius: 10px;\n background: var(--os-surface);\n}\n.os-image-actions { justify-content: flex-end; }\n.os-image-card label { display: grid; gap: 4px; font-size: 12px; }\n.os-image-card .os-image-checkbox { display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }\n.os-image-card input:not([type=checkbox]), .os-image-card select {\n min-width: 0;\n width: 100%;\n padding: 7px 9px;\n color: var(--os-ink);\n background: var(--os-surface);\n border: 1px solid var(--os-line-strong);\n border-radius: 6px;\n font: inherit;\n}\n.os-image-model-tools :is(input, select) { flex: 1 1 128px; }\n.os-image-model-list .os-image-badge { margin-left: auto; flex-shrink: 0; }\n.os-image-model-list {\n display: grid;\n gap: 6px;\n max-height: 185px;\n overflow: auto;\n padding: 8px;\n border: 1px solid var(--os-line);\n border-radius: 6px;\n}\n.os-image-rows, .os-image-chips { list-style: none; margin: 0; padding: 0; }\n.os-image-row {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: 8px;\n padding: 9px 0;\n border-top: 1px solid var(--os-line);\n}\n.os-image-row-text { display: grid; gap: 2px; flex: 1 1 120px; min-width: 0; overflow-wrap: anywhere; }\n.os-image-row-text > span { color: var(--os-ink-2); font-size: 11px; }\n.os-image-badge, .os-image-chips li {\n padding: 3px 7px;\n border-radius: 5px;\n background: var(--os-well);\n color: var(--os-ink-2);\n font-size: 11px;\n}\n.os-image-badge-default { background: var(--os-brand-soft); color: var(--os-brand-tag-ink); }\n.os-image-chips { display: flex; flex-wrap: wrap; gap: 5px; }\n.os-image-chips li { display: inline-flex; align-items: center; gap: 6px; overflow-wrap: anywhere; min-width: 0; }\n.os-image-chips button { color: inherit; border: 0; background: transparent; cursor: pointer; }\n.os-image-settings .os-image-error {\n padding: 8px 10px;\n border: 1px solid var(--os-line-strong);\n border-radius: 6px;\n color: var(--os-ink);\n}\n\n.os-design-controls { padding: 0 10px 10px; }\n.os-review-actions, .os-review-bar, .os-review-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }\n.os-new-designs { margin-top: 12px; }\n.os-design-history, .os-feedback { display: grid; gap: 8px; margin: 10px 0; }\n.os-feedback textarea, .os-feedback select, .os-design-history select, .os-review-bar select {\n color: inherit; background: var(--os-surface, Canvas); font: inherit; border: 1px solid var(--os-border, #aab2bd);\n border-radius: 6px; padding: 6px 8px; max-width: 100%; box-sizing: border-box;\n}\n.os-feedback textarea { width: 100%; resize: vertical; }\n.os-slide-review { box-sizing: border-box; height: 100%; overflow: auto; padding: 12px; display: grid; gap: 10px; align-content: start; min-width: 0; }\n.os-review-bar { justify-content: space-between; }\n.os-review-stage { background: rgba(128,128,128,.09); border-radius: 8px; overflow: hidden; }\n.os-review-image { display: grid; place-items: center; width: 100%; min-height: 24px; }\n.os-review-image img { display: block; max-width: 100%; max-height: 55vh; object-fit: contain; }\n.os-review-stage img { width: 100%; }\n.os-review-nav { justify-content: center; font-variant-numeric: tabular-nums; }\n.os-review-strip { display: flex; gap: 6px; overflow-x: auto; padding: 3px; }\n.os-review-strip button { flex: 0 0 80px; background: transparent; color: inherit; padding: 3px; border: 1px solid transparent; border-radius: 5px; cursor: pointer; }\n.os-review-strip .os-review-image { height: 48px; }\n.os-review-strip img { max-height: 48px; }\n.os-review-strip [aria-current=\"page\"] { border-color: var(--os-accent, #477beb); }\n.os-review-theater { position: fixed; inset: 0; z-index: 10000; background: var(--os-surface, Canvas); overflow: auto; }\n.os-review-theater .os-review-stage img { max-height: 72vh; }\n\n.os-outline-editor { max-height: 48vh; overflow: auto; }\n.os-outline-editor fieldset { border: 0; padding: 0; min-width: 0; }\n.os-outline-editor ol { list-style: none; margin: 8px 0; padding: 0; }\n.os-outline-editor li, .os-brand-form { background: var(--os-surface); padding: 9px; border: 1px solid var(--os-line); border-radius: 8px; margin-bottom: 6px; display: grid; gap: 6px; }\n.os-outline-editor [draggable] { cursor: grab; margin-right: auto; font-variant-numeric: tabular-nums; }\n.os-outline-editor input, .os-outline-editor textarea { width: 100%; box-sizing: border-box; font: inherit; color: inherit; background: var(--os-paper); border: 1px solid var(--os-line-strong); border-radius: 5px; padding: 6px; }\n.os-brand-form label { display: grid; gap: 4px; }\n.os-outline-editor button:not(.os-btn-primary), .os-region-review button:not(.os-btn-primary) { border-radius: 5px; padding: 3px 7px; border: 1px solid var(--os-line-strong); background: var(--os-surface); color: var(--os-ink); cursor: pointer; }\n.os-region-stage { display:flex; justify-content:center; }\n.os-region-surface { position:relative; width:fit-content; max-width:100%; align-self:center; }\n.os-region-stage .os-region-surface img { width:auto; max-width:100%; pointer-events:none; }\n.os-region-surface.is-drawing { touch-action:none; user-select:none; cursor:crosshair; }\n.os-region-box { position:absolute; pointer-events:none; border:2px solid var(--os-brand); box-sizing:border-box; background:rgba(58,131,239,.12); }\n.os-region-review { padding:8px 12px; border:1px solid var(--os-line); border-radius:8px; }\n\n/* Staged presentation workspace */\n.os4 * { box-sizing:border-box; }\n.os4 button, .os4 select, .os4 input, .os4 textarea { font:inherit; color:inherit; }\n.os4 button, .os4 select { cursor:pointer; }\n.os4 button { border:1px solid #dfe5df; border-radius:8px; background:white; padding:7px 13px; white-space:nowrap; display:inline-flex; gap:8px; align-items:center; justify-content:center; font-weight:600; }\n.os4 button:hover { border-color:#86a797; background:#f4f8f4; }\n.os4 button:focus-visible, .os4 select:focus-visible { outline:2px solid #2c785b; outline-offset:2px; }\n.os4 button.primary { background:#205341; border-color:#205341; color:white; padding:10px 16px; }\n.os4 button.primary:hover { background:#143d2f; }\n.os4 button.ghost { background:transparent; border-color:transparent; color:#536358; }\n.os4 button:disabled { opacity:.43; cursor:not-allowed; }\n.os4 .bar, .os4 .foot { display:flex; align-items:center; justify-content:space-between; padding:14px 30px; background:#fff; }\n.os4 .bar { border-bottom:1px solid #e6ebe6; min-height:62px; }\n.os4 .brand, .os4 .barRight, .os4 .group, .os4 .smallrow { display:flex; align-items:center; gap:10px; }\n.os4 .brand strong { font-size:18px; letter-spacing:-.65px; }\n.os4 .brand small { border-left:1px solid #dce5df; padding-left:12px; color:#5f6f65; }\n.os4 .logomark { width:28px; height:28px; background:#dbeadd; border-radius:8px; color:#205341; display:grid; place-items:center; }\n.os4 .icon { width:16px; height:16px; display:inline-block; vertical-align:middle; flex:none; }\n.os4 .steps { display:grid; grid-template-columns:repeat(4,1fr); gap:6px; padding:0 30px; background:#fff; border-bottom:1px solid #e6ebe6; }\n.os4 .step { display:flex; align-items:center; justify-content:flex-start; gap:9px; border:0; border-bottom:2px solid transparent; background:transparent; border-radius:0; padding:11px 12px; color:#607066; }\n.os4 .step:hover { border-color:#96baa5; }\n.os4 .step.current { background:#f3f7f1; color:#205341; border-color:#347359; }\n.os4 .step span:first-child { width:24px; height:24px; border:1px solid #dce5dd; border-radius:7px; display:grid; place-items:center; font-size:11px; font-variant-numeric:tabular-nums; }\n.os4 .step.current span:first-child { background:#205341; color:white; border-color:#205341; }\n.os4 .step.done span:first-child { background:#e9f2ea; color:#2b664e; }\n.os4 .step em { font-style:normal; font-size:11px; color:#6e7e74; font-weight:400; margin-left:4px; }\n.os4 main { padding:24px 30px 20px; flex:1; }\n.os4 .intro { display:flex; align-items:flex-end; justify-content:space-between; margin-bottom:18px; gap:12px; }\n.os4 .eyebrow { font-size:11px; letter-spacing:1.5px; color:#537364; font-weight:700; display:flex; align-items:center; gap:8px; }\n.os4 .eyebrow:before { content:\"\"; width:15px; height:1px; background:#6f9b83; }\n.os4 .intro h1 { margin:4px 0 3px; font-size:30px; line-height:1.3; letter-spacing:-1.1px; }\n.os4 .intro p { margin:0; color:#5c6c61; }\n.os4 .work { display:grid; grid-template-columns:224px minmax(0,1fr); gap:14px; align-items:stretch; min-height:480px; }\n.os4 .panel { background:white; border:1px solid #dfe7df; border-radius:12px; overflow:hidden; min-width:0; }\n.os4 .phead { display:flex; align-items:center; justify-content:space-between; padding:12px 15px; gap:8px; border-bottom:1px solid #ebefea; min-height:54px; }\n.os4 .phead strong { font-size:14px; }\n.os4 .muted { font-size:12px; color:#68776d; }\n.os4 .badge { display:inline-flex; align-items:center; gap:5px; white-space:nowrap; padding:3px 8px; border-radius:5px; background:#edf4ea; color:#37644c; font-size:11px; font-weight:700; }\n.os4 .badge.gray { background:#eff1ed; color:#667267; }\n.os4 .badge.warn { background:#fff1d7; color:#79520e; }\n.os4 .leftinner { padding:8px; }\n.os4 .listbtn { display:flex; width:100%; justify-content:flex-start; border-color:transparent; white-space:normal; text-align:left; min-height:48px; padding:8px; gap:8px; }\n.os4 .listbtn.active { background:#edf4ec; border-color:#d1e2d4; color:#1e533e; }\n.os4 .listbtn .num { font:11px/1 ui-monospace,monospace; color:#658174; }\n.os4 .listbtn .label { flex:1; }\n.os4 .listbtn .grip { color:#9da9a1; }\n.os4 .asideFoot { padding:10px 11px; border-top:1px solid #edf0ec; }\n.os4 .asideFoot button { width:100%; }\n.os4 .form { padding:15px 19px; }\n.os4 .field { display:block; margin:0 0 13px; font-weight:650; font-size:12px; }\n.os4 .field span { display:block; margin-bottom:5px; color:#45564b; }\n.os4 .field input, .os4 .field textarea { display:block; width:100%; border:1px solid #dce5dd; border-radius:8px; background:#fcfdfa; padding:8px 10px; outline:none; font-size:14px; }\n.os4 .field input:focus, .os4 .field textarea:focus { border-color:#568768; }\n.os4 .field textarea { resize:vertical; min-height:100px; }\n.os4 .settingsBand { display:flex; align-items:center; gap:13px; flex-wrap:wrap; padding:11px 12px; border:1px solid #e3ebe3; background:#f5f8f2; border-radius:8px; }\n.os4 .settingsBand label { font-size:12px; color:#475e51; font-weight:600; display:flex; align-items:center; gap:9px; }\n.os4 .settingsBand select { border:1px solid #dbe4db; border-radius:6px; background:#fff; padding:4px 7px; max-width:180px; }\n.os4 .seg { display:inline-flex; gap:2px; border:1px solid #dbe5dc; background:#f2f5f0; border-radius:7px; padding:2px; }\n.os4 .seg button { background:transparent; border:0; font-size:12px; padding:4px 9px; border-radius:5px; }\n.os4 .seg button.active { background:#fff; box-shadow:0 1px 2px #20382922; color:#215640; }\n.os4 .hint { padding:9px 12px; border-left:2px solid #82a890; background:#f4f8f2; color:#4c6556; font-size:12px; }\n.os4 .stageside { display:flex; flex-direction:column; }\n.os4 .stagebody { padding:12px 14px 11px; background:#eef2ed; display:grid; place-items:center; min-height:330px; }\n.os4 .stagebody.compare { grid-template-columns:1fr 1fr; gap:12px; align-content:center; }\n.os4 .candidate { display:block; width:100%; text-align:left; padding:7px; margin-bottom:7px; border-radius:8px; }\n.os4 .candidate.active { background:#edf5ec; border-color:#8ab29b; color:#235642; }\n.os4 .cmeta { display:flex; align-items:center; justify-content:space-between; gap:5px; padding:5px 1px 0; }\n.os4 .cmeta span { font-size:12px; }\n.os4 .stagefoot { padding:8px 12px; display:flex; justify-content:space-between; align-items:center; gap:7px; border-top:1px solid #e7eee7; background:white; }\n.os4 .stagefoot button { font-size:12px; padding:5px 9px; }\n.os4 .pagenav { font-variant-numeric:tabular-nums; }\n.os4 .layers { padding:9px; }\n.os4 .layers button { width:100%; justify-content:space-between; margin-bottom:7px; font-size:12px; }\n.os4 .layers button.active { border-color:#8eb6a0; background:#edf5ed; }\n.os4 .layers hr { border:0; border-top:1px solid #e6ede6; margin:9px 0; }\n.os4 .previewThumb { display:grid; grid-template-columns:73px 1fr; gap:8px; align-items:center; }\n.os4 .previewThumb span span { display:block; }\n.os4 .previewThumb .num { display:block; margin-bottom:4px; }\n.os4 .splitbar { display:flex; gap:10px; justify-content:space-between; padding:0 10px; align-items:center; }\n.os4 .bottomnote { display:flex; flex-direction:column; gap:2px; }\n.os4 .bottomnote b { font-size:13px; color:#314b3d; }\n.os4 .foot { min-height:70px; border-top:1px solid #e1e9e0; position:sticky; bottom:0; z-index:3; }\n.os4 .foot small { color:#596c60; }\n.os4 .statusdot { width:7px; height:7px; border-radius:50%; background:#528768; display:inline-block; margin-right:5px; }\n.os4 dialog { width:min(440px,92vw); border:1px solid #d6e4d8; border-radius:13px; padding:18px; box-shadow:0 20px 80px #10251833; }\n.os4 dialog::backdrop { background:#16271e55; }\n.os4 dialog textarea { width:100%; min-height:90px; padding:10px; border:1px solid #dbe5dc; border-radius:7px; }\n.os4 button.remove { padding:5px 8px; font-size:12px; }\n.os4 .sidehint { margin:8px 7px; color:#68776d; font-size:11px; }\n.os4 .tiny { font-size:11px; }\n@container (max-width: 650px) {\n.os4 .bar, .os4 .foot { padding:10px 14px; }\n.os4 .steps { padding:0 10px; }\n.os4 .step { padding:8px 5px; gap:4px; justify-content:center; font-size:12px; }\n.os4 .step em, .os4 .brand small { display:none; }\n.os4 main { padding:15px 12px; }\n.os4 .intro h1 { font-size:23px; }\n.os4 .intro { align-items:flex-start; flex-wrap:wrap; }\n.os4 .work { grid-template-columns:minmax(0,1fr); min-height:0; }\n.os4 .leftinner { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px; }\n.os4 .stagebody { min-height:0; }\n.os4 .foot { position:static; gap:8px; flex-wrap:wrap; }\n.os4 .phead { min-height:42px; padding:8px 11px; }\n.os4 .barRight button { font-size:12px; padding:5px 8px; }\n.os4 .stagefoot { flex-wrap:wrap; }\n}\n.os-studio-host { min-height: 0; height: 100%; overflow: hidden; }\n.os4 {\n container-type: inline-size; flex: 1; display: flex; flex-direction: column;\n width: 100%; height: 100%; min-width: 0; min-height: 0;\n background: #fbfcf9; color: #202923; color-scheme: light;\n font: 14px/1.55 Inter, -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Microsoft Yahei\", sans-serif;\n --os-brand: #205341; --os-ink: #202923;\n}\n.os4 > main { min-height: 0; overflow: auto; scrollbar-gutter: stable; }\n.os4 > .bar, .os4 > .steps, .os4 > .foot { flex: none; }\n.os4 .work { min-height: min(430px, 55vh); grid-template-columns: clamp(155px, 24cqw, 224px) minmax(0,1fr); }\n.os4 .rail { display: flex; flex-direction: column; align-self: start; }\n.os4 .leftinner { overflow: auto; max-height: 58vh; }\n.os4 .listbtn .label { min-width: 0; word-break: break-word; line-height: 1.4; }\n.os4 .form { margin: 0; border: 0; min-width: 0; }\n.os4 .field input, .os4 .field textarea { color: #202923; font-weight: 400; line-height: 1.55; }\n.os4 .move-actions, .os4 .project-switch, .os4 .sync-row { display: flex; gap: 8px; align-items: center; }\n.os4 .move-actions { margin-top: 12px; }\n.os4 .move-actions button, .os4 .project-switch :is(select,button) { font-size: 12px; }\n.os4 .project-switch { padding: 6px 16px; border-bottom: 1px solid #e6ebe6; }\n.os4 .project-switch select { max-width: 70%; }\n.os4 .foot { position: static; gap: 10px; }\n.os4 .foot .group, .os4 .stagefoot, .os4 .stagefoot .group { flex-wrap: wrap; }\n.os4 .stagebody { min-height: clamp(200px, 32cqw, 340px); }\n.os4 .stagebody.compare { grid-template-columns: repeat(auto-fit,minmax(min(170px,100%),1fr)); }\n.os4 .compare-item { display: grid; white-space: normal; width: 100%; }\n.os4 .compare-item.active { border-color: #347359; }\n.os4 .image-zoom { background: none; border: none; padding: 0; width: 100%; cursor: zoom-in; }\n.os4 .candidate .os-review-image img { max-height: 115px; }\n.os4 .previewThumb .os-review-image img { max-height: 52px; }\n.os4 .stagebody img, .os4 .studio-dialog img { height: auto; max-width: 100%; display: block; }\n.os4 .stagebody .os-review-stage { padding: 0; border: none; background: transparent; min-width: 0; width: 100%; }\n.os4 .review-body > :is(.os-feedback,.os-region-review) { width: 100%; }\n.os4 .thumb-empty, .os4 .empty-preview { padding: 13px; color: #68776d; text-align: center; white-space: normal; }\n.os4 .style-notes, .os4 .os-design-controls, .os4 .os-feedback { margin: 8px 14px; }\n.os4 .style-notes p { white-space: pre-wrap; overflow-wrap: anywhere; }\n.os4 details summary { cursor: pointer; font-weight: 600; }\n.os4 .preview-tabs { align-self: flex-start; margin: 10px 14px; }\n/* Both versions share a slide-sized frame so the divider tracks the image at any zoom. */\n.os4 .editable-compare-body { gap: 8px; grid-template-columns: minmax(0, 1fr); align-content: center; }\n.os4 .editable-compare-frame {\n position: relative;\n max-width: 100%;\n width: fit-content;\n isolation: isolate;\n overflow: hidden;\n border-radius: 3px;\n box-shadow: 0 1px 5px #1d332634;\n}\n.os4 .editable-compare-frame .editable-compare-base { width: auto; max-height: 55vh; }\n.os4 .editable-compare-frame .editable-compare-layer { height: 100%; object-fit: fill; }\n.os4 .editable-compare-frame .os-compare-badge { bottom: 8px; font-size: 11px; }\n.os4 .editable-compare-frame .os-compare-handle { width: 30px; height: 30px; }\n.os4 .editable-compare-status { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px 10px; color: var(--os-ink-2); font-size: 12px; }\n.os4 .studio-dialog .editable-compare-body { min-height: 0; }\n.os4 .studio-dialog .editable-compare-base { max-height: 64vh; }\n.os4 .studio-dialog .editable-compare-body + .pagenav { justify-content: center; margin-top: 8px; }\n.os4 .object-box { position: absolute; border: 2px solid #267a5c; background: #29b47820; pointer-events: none; }\n.os4 .object-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(150px,100%),1fr)); gap: 6px; max-height: 170px; overflow: auto; margin-top: 8px; }\n.os4 .object-list button { min-width: 0; margin: 0; }\n.os4 .object-list button span { overflow: hidden; text-overflow: ellipsis; }\n.os4 .sync-row { margin-top: 8px; }\n.os4 .sync-row button { width: auto; margin: 0; }\n.os4 .studio-dialog { padding: 0; max-height: 88vh; overflow: auto; color: #202923; background: #fff; }\n.os4 .studio-dialog.wide { width: min(900px,92vw); }\n.os4 .dialog-body { padding: 15px; }\n.os4 .dialog-body .os-image-settings { height: auto; max-height: none; padding: 0; }\n.os4 .brand-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid #e6ebe6; }\n.os4 .brand-row small { display: block; }\n.os4 .brand-row + .group { margin-top: 10px; }\n.os4 .phead strong { min-width: 0; overflow-wrap: anywhere; }\n.os4 .pagenav { flex-shrink: 0; font-size: 12px; }\n.os4 .os-btn-primary { background: #205341; color: #fff; }\n@container (max-width: 650px) {\n .os4 .work { grid-template-columns: minmax(0,1fr); min-height: 0; gap: 10px; }\n .os4 .leftinner { max-height: 126px; align-content: start; }\n .os4 .candidate .os-review-image img { max-height: 64px; }\n .os4 .stagebody { min-height: 150px; }\n .os4 .foot { padding: 8px 12px; min-height: auto; }\n .os4 .bottomnote small { display: none; }\n .os4 .form { padding: 12px; }\n}\n@container (max-width: 430px) {\n .os4 .bar, .os4 > main { padding-left: 9px; padding-right: 9px; }\n .os4 .barRight, .os4 .brand, .os4 .pagenav, .os4 .group { gap: 4px; }\n .os4 .step { gap: 3px; padding: 8px 1px; }\n .os4 .step span:first-child { width: 18px; height: 18px; font-size: 10px; }\n .os4 .previewThumb { grid-template-columns: 45px minmax(0,1fr); }\n .os4 .foot .group { width: 100%; justify-content: flex-end; }\n .os4 .foot button { padding: 7px 9px; font-size: 12px; }\n .os4 .intro p { font-size: 12px; }\n}\n\n/* Reusable presentation materials */\n.os4 { position: relative; }\n.os4.kit-host { position: absolute; inset: 0; z-index: 12; background: transparent; }\n.os4 .kit-backdrop { position: absolute; inset: 0; z-index: 15; padding: clamp(8px,2.5cqw,24px); display: grid; place-items: center; background: #1d312847; }\n.os4 .kit-sheet { width: min(100%, 660px); max-height: 100%; min-height: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid #dce5dd; border-radius: 16px; box-shadow: 0 20px 68px #142b2a30; outline: 0; }\n.os4 .kit-head, .os4 .kit-card, .os4 .kit-footer, .os4 .kit-selection, .os4 .kit-file-row { display: flex; align-items: center; gap: 10px; }\n.os4 .kit-head { padding: 14px 18px; border-bottom: 1px solid #e4ebe4; }\n.os4 .kit-head h2 { margin: 0; font-size: 18px; letter-spacing: -.4px; }\n.os4 .kit-symbol, .os4 .kit-icon { flex: none; display: grid; place-items: center; color: #31634d; background: #edf4ee; border-radius: 9px; }\n.os4 .kit-symbol { width: 33px; height: 33px; }\n.os4 .kit-close { margin-left: auto; padding: 6px; }\n.os4 .kit-scroll { min-height: 0; overflow: auto; padding: 16px 18px; overscroll-behavior: contain; }\n.os4 .kit-intro { margin: 0 0 14px; color: #52645a; }\n.os4 .kit-card { padding: 10px 0; border-bottom: 1px solid #e5ebe5; }\n.os4 .kit-caption { flex: 1; min-width: 0; overflow-wrap: anywhere; }\n.os4 .kit-icon { width: 44px; height: 36px; background: #f1f4ee; overflow: hidden; }\n.os4 .kit-icon img { width: 90%; height: 85%; object-fit: contain; }\n.os4 .kit-card small, .os4 .kit-tile small, .os4 .kit-preview-wrap small { display: block; font-size: 12px; color: #58695e; font-weight: 400; }\n.os4 .kit-empty { padding: 27px 12px; display: grid; justify-items: center; gap: 6px; background: #f5f7f2; border-radius: 10px; text-align: center; color: #496354; }\n.os4 .kit-empty span { font-size: 12px; }\n.os4 .kit-form { display: grid; gap: 16px; }\n.os4 .kit-field { display: grid; gap: 5px; font-weight: 600; }\n.os4 .kit-field input { appearance: none; box-sizing: border-box; width: 100%; border: 1px solid #cdd9cf; background: #fff; border-radius: 8px; color: #243a2c; font: inherit; font-weight: 400; padding: 9px 11px; }\n.os4 .kit-form :focus-visible, .os4 .kit-card button:focus-visible { outline: 2px solid #38785a; outline-offset: 2px; }\n.os4 .kit-form h3 { font-size: 14px; margin: 0 0 7px; }\n.os4 .kit-upload input { display: none; }\n.os4 button.kit-tile { display: flex; align-items: center; width: 100%; justify-content: flex-start; text-align: start; padding: 9px; gap: 10px; font-size: 13px; border-style: dashed; white-space: normal; }\n.os4 .kit-tile > span:nth-child(2) { min-width: 0; overflow-wrap: anywhere; }\n.os4 .kit-tile > span:last-child { margin-left: auto; }\n.os4 .kit-upload + .kit-upload, .os4 .kit-file-row + .kit-upload { margin-top: 8px; }\n.os4 .kit-layout { display: grid; grid-template-columns: minmax(110px,1fr) minmax(150px,1fr); align-items: center; gap: 16px; margin-top: 10px; padding: 12px; background: #f5f7f3; border-radius: 11px; }\n.os4 .kit-preview { position: relative; margin: auto; max-width: 100%; width: 100%; background: #fff; border: 1px solid #dbe3da; box-shadow: 0 3px 8px #31463812; border-radius: 3px; }\n.os4 .kit-preview img { position: absolute; object-fit: contain; }\n.os4 .kit-preview-wrap { display: grid; justify-items: stretch; gap: 6px; }\n\n.os4 .kit-preview-wrap small { text-align: center; }\n.os4 .kit-fake-title,.os4 .kit-fake-copy { position: absolute; top: 28%; left: 8%; width: 42%; height: 4%; background: #90ab98; border-radius: 2px; }\n.os4 .kit-fake-copy { top: 38%; width: 28%; height: 2%; background: #d4dfd5; }\n.os4 .kit-fake-chart { position: absolute; bottom: 16%; left: 8%; height: 32%; width: 70%; display: flex; align-items: end; gap: 4%; border-bottom: 1px solid #d5dfd5; }\n.os4 .kit-fake-chart i { width: 16%; height: 35%; background: #dce5da; border-radius: 2px 2px 0 0; }\n.os4 .kit-fake-chart i:nth-child(2) { height: 62%; } .os4 .kit-fake-chart i:nth-child(3) { height: 50%; } .os4 .kit-fake-chart i:last-child { height: 90%; background: #92ad98; }\n.os4 .kit-options { display: grid; gap: 8px; }\n.os4 .kit-options b { display: block; margin-bottom: 3px; color: #516458; font-size: 12px; }\n.os4 .kit-corners,.os4 .kit-segments { display: grid; gap: 3px; grid-template-columns: repeat(2,1fr); }\n.os4 .kit-segments { grid-template-columns: repeat(3,1fr); }\n.os4 .kit-options button { padding: 4px; font-size: 12px; }\n.os4 .kit-options button[aria-pressed=\"true\"] { color: #1c5039; border-color: #90ad97; background: #e0eddf; }\n.os4 button.kit-link { border: 0; background: transparent; justify-self: start; color: #50695b; padding: 4px 0; font-size: 12px; }\n.os4 .kit-file-row { padding: 5px 3px; color: #475e50; }\n.os4 .kit-file-row span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }\n.os4 .kit-file-row button { padding: 2px 7px; }\n.os4 button.kit-more { justify-content: space-between; }\n.os4 .kit-details { display: grid; gap: 8px; }\n.os4 .kit-footer { justify-content: flex-end; flex-wrap: wrap; margin-top: 12px; padding-top: 10px; border-top: 1px solid #e3eae2; }\n.os4 .kit-selection { margin: 6px 0 10px; flex-wrap: wrap; font-size: 12px; color: #496253; }\n@container (max-width: 440px) { .os4 .kit-layout { grid-template-columns: 1fr; } .os4 .kit-preview-wrap { width: min(100%, 200px); margin: auto; } }\n");
10964
11571
  // src/client/index.tsx
10965
- const TAB_ID = PACKAGE_NAME;
11572
+ const TAB_ID = "dsh-oil-slide";
10966
11573
  const TAB_KIND = "oil-slide";
10967
11574
  function createLocaleStore(ctx) {
10968
11575
  const readLocale = () => {