/* User explicitly excluded the original author's promotional/version strip. */
[data-canvas-watermark] { display: none !important; }
/* Director dialogs must escape the sidebar's stacking level above the timeline. */
aside:has(> .fixed[class*="z-[10050]"]) { z-index: 10060 !important; }
/* Match the existing neutral angle-panel controls in both canvas themes. */
.local-angle-presets { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; padding:0 16px 16px; }
.local-angle-presets button { min-height:28px; border:1px solid rgba(0,0,0,.08); border-radius:6px; background:rgba(0,0,0,.035); color:#71717a; font-size:11px; font-weight:500; transition:background .15s,color .15s; }
.local-angle-presets button:hover { background:rgba(0,0,0,.07); color:#27272a; }
.local-angle-presets button[aria-pressed="true"] { background:#18181b; color:white; border-color:#18181b; }
.local-angle-presets[data-theme="dark"] button { background:rgba(255,255,255,.04); border-color:rgba(255,255,255,.1); color:rgba(255,255,255,.6); }
.local-angle-presets[data-theme="dark"] button:hover { background:rgba(255,255,255,.1); color:white; }
.local-angle-presets[data-theme="dark"] button[aria-pressed="true"] { background:rgba(255,255,255,.16); border-color:rgba(255,255,255,.3); color:white; }
.local-angle-presets button:focus-visible { outline:2px solid currentColor; outline-offset:2px; }
[data-multi-angle-panel]:has(.local-angle-presets) { z-index:130 !important; }
.node-wrapper:has(.local-angle-presets) .resize-handle { pointer-events:none; }

.user-guide-entry{display:inline-flex;align-items:center;gap:5px;flex-shrink:0;padding:5px 8px;border:0;border-radius:6px;background:transparent;color:#a1a1aa;font:inherit;font-size:12px;cursor:pointer;white-space:nowrap}
.user-guide-entry:hover{background:#ffffff0f;color:#e4e4e7}
.user-guide-entry-light{color:#71717a;background:transparent}
.user-guide-entry-light:hover{background:#00000008;color:#27272a}
.user-tour{--tour-bg:#1f1f1f;--tour-text:#f4f4f5;--tour-muted:#a1a1aa;--tour-border:#27272a;--tour-accent:#e4e4e7;--tour-inset:#ffffff06;--tour-highlight:#e4e4e7;--tour-primary:#f4f4f5;--tour-primary-text:#18181b;color:var(--tour-text);font-family:ui-sans-serif,system-ui,"Microsoft YaHei",sans-serif}
.user-tour-light{--tour-bg:#ffffff;--tour-text:#18181b;--tour-muted:#71717a;--tour-border:#d4d4d8;--tour-accent:#3f3f46;--tour-inset:#f4f4f5;--tour-highlight:#52525b;--tour-primary:#27272a;--tour-primary-text:#ffffff}
.user-tour-shade{position:fixed;z-index:100000;background:#09090bb3;touch-action:none}
.user-tour-full-shade{inset:0}
.user-tour-spotlight{position:fixed;z-index:100001;pointer-events:none;border:2px solid var(--tour-highlight);border-radius:10px;box-shadow:0 0 0 4px #a1a1aa25;box-sizing:border-box}
.user-tour-generation-cover{position:fixed;z-index:100002;cursor:default}
.user-tour-double-click{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:6px 9px;border-radius:6px;background:var(--tour-bg);color:var(--tour-text);font-size:12px;white-space:nowrap;line-height:1.4}
.user-tour-card{position:fixed;z-index:100010;box-sizing:border-box;padding:22px;border:1px solid var(--tour-border);border-radius:16px;background:var(--tour-bg);box-shadow:0 8px 28px #0003;color:var(--tour-text);max-height:calc(100dvh - 24px);overflow-y:auto;font-size:13px;line-height:1.65;outline:none;overscroll-behavior:contain}
.user-tour-welcome{width:min(400px,calc(100vw - 24px));left:50%;top:50%;transform:translate(-50%,-50%);padding:26px}
.user-tour-card-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.user-tour-eyebrow{font-size:11px;font-weight:600;letter-spacing:.5px;color:var(--tour-accent)}
.user-tour-dismiss{border:0;background:transparent;color:var(--tour-muted);font-size:24px;line-height:24px;padding:0 3px;cursor:pointer}
.user-tour-card h2{font-size:19px;font-weight:650;line-height:1.4;margin:0 0 10px;color:var(--tour-text);letter-spacing:-.3px}
.user-tour-description{margin:0;color:var(--tour-muted);line-height:1.8}
.user-tour-emblem{width:42px;height:42px;display:grid;place-items:center;color:var(--tour-accent);background:var(--tour-inset);border:1px solid var(--tour-border);border-radius:12px;margin:10px 0 18px}
.user-tour-emblem svg{width:24px;height:24px}
.user-tour-progress{display:flex;gap:5px;margin:18px 0 0}
.user-tour-progress span{height:3px;border-radius:4px;background:var(--tour-border);flex:1}
.user-tour-progress .filled{background:var(--tour-accent)}
.user-tour-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:20px}
.user-tour-actions button{border-radius:8px;padding:9px 12px;font:inherit;font-size:12px;font-weight:500;cursor:pointer;line-height:1.45}
.user-tour-primary{background:var(--tour-primary);color:var(--tour-primary-text);border:1px solid var(--tour-primary)}
.user-tour-primary:hover:not(:disabled){opacity:.88}
.user-tour-primary:disabled{color:var(--tour-muted);background:var(--tour-inset);border-color:var(--tour-border);cursor:default;font-size:11px}
.user-tour-secondary{border:0;background:transparent;color:var(--tour-muted);padding-left:0!important}
.user-tour-secondary:hover{color:var(--tour-text)}
.user-tour-example{padding:12px;margin-top:14px;border:1px solid var(--tour-border);border-radius:9px;background:var(--tour-inset)}
.user-tour-example small{color:var(--tour-accent);font-size:11px}
.user-tour-example p{font-size:12px;margin:5px 0 9px;line-height:1.7;user-select:text}
.user-tour-example button{border:0;background:transparent;padding:0;color:var(--tour-accent);font:inherit;font-size:11px;cursor:pointer;text-align:left}
.user-tour-recovery{color:var(--tour-accent);font-size:12px;margin-bottom:0}
.user-tour button:focus-visible,.user-guide-entry:focus-visible{outline:2px solid #a1a1aa;outline-offset:3px}
@media(max-width:1000px){.user-guide-entry{position:fixed;top:70px;left:16px;z-index:60;padding:7px 10px!important;background:#24252c!important;box-shadow:0 3px 12px #0002}.user-guide-entry-light{background:#fff!important}}
@media(max-width:900px){body:has([data-user-tour] [data-tour-target="parameters"]) .node-dropdown-menu{max-height:clamp(150px,calc(100dvh - 540px),320px)!important}body:has([data-user-tour]) [data-canvas-bottom-left-dock]{visibility:hidden;pointer-events:none}}
@media(max-width:480px){.user-tour-card{padding:18px}.user-tour-card h2{font-size:17px}.user-tour-description{font-size:12px}.user-tour-example{padding:10px}.user-tour-actions{margin-top:15px}}
/* Keep the existing native controls usable when their combined width is
   wider than the mobile composer; preserve their normal styling. */
@media(max-width:600px){.qiaodoumayi-gen-toolbar{flex-wrap:wrap!important;row-gap:6px!important}.qiaodoumayi-gen-submit-wrap{margin-left:auto!important}}
@media(prefers-reduced-motion:reduce){.user-tour-spotlight{transition:none}}
