.zk26-demo .zk-story-editor {
  --se-bg:#10121b;
  --se-panel:#222632;
  --se-line:#3b4252;
  --se-text:#f8faff;
  --se-muted:#c6cbda;
  --se-accent:#b3ece6;
  position:fixed;
  inset:0;
  margin:auto;
  width:min(480px,100%);
  height:min(870px,calc(100dvh - 24px));
  max-height:none;
  max-width:none;
  overflow:hidden;
  overscroll-behavior:contain;
  border:1px solid var(--se-line);
  border-radius:24px;
  background:var(--se-bg);
  color:var(--se-text);
  box-shadow:0 22px 75px #050711ad;
  color-scheme:dark;
}
.zk26-demo .zk-story-editor::backdrop {background:#090b14e8;backdrop-filter:blur(5px)}
html:has(.zk-story-editor[open]) {overflow:hidden}
.zk-story-editor .se-shell {height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);position:relative}
.zk-story-editor .se-head {display:grid;grid-template-columns:80px 1fr 80px;align-items:center;padding:calc(6px + env(safe-area-inset-top)) 10px 6px;gap:4px}
.zk-story-editor .se-head h2 {margin:0;font-size:18px;line-height:1.15;text-align:center;color:inherit;letter-spacing:-.025em}
.zk-story-editor :is(button,a) {font:inherit;color:inherit}
.zk-story-editor button {cursor:pointer}
.zk-story-editor :is(button,a,input,textarea,select,canvas):focus-visible {outline:2px solid var(--se-accent);outline-offset:3px}
.zk-story-editor :is(button,a):disabled {opacity:.52;cursor:default}
.zk-story-editor .zkd-icon {width:21px;height:21px;flex:none}
.zk-story-editor :is(.se-icon,.se-preview,.se-primary,.se-secondary) {display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:6px 12px;border:1px solid transparent;border-radius:12px;font-size:14px;font-weight:750;text-align:center}
.zk-story-editor .se-icon {width:44px;padding:0;border-radius:50%;background:var(--se-panel)}
.zk-story-editor .se-preview {grid-column:3;padding-inline:5px;color:var(--se-accent);background:transparent}
.zk-story-editor .se-primary {background:var(--se-accent);color:#132b30}
.zk-story-editor .se-secondary {background:var(--se-panel);border-color:var(--se-line)}
.zk-story-editor .se-pick {display:flex;flex-direction:column;justify-content:center;align-items:center;gap:14px;padding:12px 20px calc(12px + env(safe-area-inset-bottom));text-align:center;overflow:auto}
.zk-story-editor .se-pick-content {margin:auto 0;width:min(100%,300px)}
.zk-story-editor .se-pick-art {position:relative;display:grid;place-items:center;width:110px;height:124px;margin:3px auto 20px}
.zk-story-editor .se-pick-art span {position:absolute;inset:6px 16px;border-radius:13px}
.zk-story-editor .se-pick-art span:first-child {transform:rotate(-14deg);background:#253851;border:1px solid #526c95}
.zk-story-editor .se-pick-art span:last-child {display:grid;place-items:center;transform:rotate(10deg);background:linear-gradient(155deg,#80d8d3,#aaf1df 66%,#e0eacb);color:#15323b;box-shadow:0 8px 20px #03050b7d}
.zk-story-editor .se-pick-art .zkd-icon {width:34px;height:34px;transform:rotate(-10deg)}
.zk-story-editor .se-pick h3 {margin:0 0 7px;color:inherit;font-size:24px;line-height:1.13;letter-spacing:-.04em}
.zk-story-editor .se-pick p {margin:0 auto 18px;max-width:29ch;color:var(--se-muted);font-size:14px;line-height:1.5}
.zk-story-editor .se-pick-actions {display:grid;gap:8px}
.zk-story-editor .se-promo {display:flex;gap:7px;align-items:center;min-height:44px;color:var(--se-muted);font-size:13px}
.zk-story-editor .se-promo .zkd-icon {width:16px;height:16px}
.zk-story-editor .se-work {display:grid;grid-template-rows:minmax(0,1fr) auto auto auto;min-height:0}
.zk-story-editor .se-stage {display:grid;place-items:center;container-type:size;min-height:0;min-width:0;background:#0b0d14}
.zk-story-editor .se-frame {position:relative;width:min(100cqw,56.25cqh);max-width:100%;aspect-ratio:9/16;overflow:hidden;border-radius:13px;background:#0b0d14}
.zk-story-editor canvas {width:100%;height:100%;display:block;touch-action:none;cursor:grab;user-select:none}
.zk-story-editor canvas:active {cursor:grabbing}
.zk-story-editor canvas:focus-visible {outline-offset:-3px}
.zk-story-editor .se-ratio {position:absolute;bottom:8px;right:8px;padding:1px 7px;border-radius:20px;background:#111825d9;color:#fff;font-size:11px;font-weight:750;pointer-events:none}
.zk-story-editor .se-tools {display:flex;justify-content:center;gap:6px;padding:7px 7px 0}
.zk-story-editor .se-tools button {min-height:44px;min-width:75px;display:flex;align-items:center;justify-content:center;gap:6px;padding:3px 8px;border:0;border-radius:12px;background:transparent;font-size:13px;font-weight:750}
.zk-story-editor .se-tools button[aria-expanded=true] {background:var(--se-panel);color:var(--se-accent)}
.zk-story-editor .se-tools b {font-size:21px;line-height:1}
.zk-story-editor .se-hint {margin:0;padding:2px 10px 5px;text-align:center;color:var(--se-muted);font-size:11.5px}
.zk-story-editor .se-actions {display:flex;justify-content:space-between;gap:8px;padding:6px 10px calc(10px + env(safe-area-inset-bottom));border-top:1px solid #2b2e3c}
.zk-story-editor .se-sheet {position:absolute;bottom:calc(64px + env(safe-area-inset-bottom));left:8px;right:8px;z-index:2;display:grid;gap:8px;max-height:67dvh;overflow:auto;overscroll-behavior:contain;padding:10px 12px;border:1px solid var(--se-line);border-radius:17px;background:#1c1f2a;box-shadow:0 -8px 28px #0809118f}
.zk-story-editor :is(.se-sheet-title,.se-style-row,.se-layer-actions) {display:flex;align-items:center;justify-content:space-between;gap:8px}
.zk-story-editor .se-sheet-title strong {font-size:16px}
.zk-story-editor .se-sheet-title button {color:var(--se-accent)}
.zk-story-editor .se-sheet label {font-size:13px;color:var(--se-muted)}
.zk-story-editor .se-sheet :is(textarea,select) {border:1px solid var(--se-line);background:#10131d;color:var(--se-text);border-radius:9px;padding:8px;font:inherit;font-size:16px}
.zk-story-editor .se-sheet textarea {width:100%;resize:none;min-height:51px}
.zk-story-editor .se-bg {display:flex;align-items:center;gap:4px;min-height:44px}
.zk-story-editor input[type=checkbox],.zk-story-editor input[type=range] {accent-color:var(--se-accent)}
.zk-story-editor .se-swatches,.zk-story-editor .se-stickers {display:flex;align-items:center;gap:3px;flex-wrap:wrap}
.zk-story-editor .se-swatches button,.zk-story-editor .se-stickers button {display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:10px;background:transparent}
.zk-story-editor .se-swatches button::before {content:"";width:25px;height:25px;border-radius:50%;background:var(--swatch);border:1px solid #ffffff80}
.zk-story-editor .se-swatches button[aria-pressed=true]::before {outline:2px solid var(--se-accent);outline-offset:3px}
.zk-story-editor .se-stickers button {font-size:24px;background:var(--se-panel)}
.zk-story-editor input[type=range] {width:100%;min-height:38px}
.zk-story-editor .se-status {position:absolute;z-index:5;left:9px;right:9px;top:calc(53px + env(safe-area-inset-top));margin:0;border:1px solid #526176;border-radius:12px;background:#202735f5;padding:9px 11px;color:var(--se-text);font-size:13px;text-align:center;pointer-events:none}
.zk-story-editor[data-se-previewing] canvas {cursor:default;pointer-events:none}
.zk-story-editor[data-se-previewing] .se-actions .se-primary {width:100%}
.zk-story-editor[data-se-previewing] .se-work {grid-template-rows:minmax(0,1fr) auto}
@media(max-width:600px) {
  .zk26-demo .zk-story-editor {width:100%;height:100dvh;border:0;border-radius:0}
}
@media(max-width:359px) {
  .zk-story-editor .se-actions :is(.se-primary,.se-secondary) {padding-inline:8px;font-size:13px}
}
@media(max-height:550px) {
  .zk-story-editor .se-pick-art {height:74px;width:70px;margin-bottom:10px}
  .zk-story-editor .se-sheet {max-height:55dvh}
}
