:root{--wb-panel:#fff;--wb-panel-soft:#f7f6fa;--wb-canvas:#eeedf1;--wb-text:#3c3745;--wb-muted:#948a9e;--wb-line:#e8e3ee;--wb-accent:#7360da}
:root[data-ui=dark]{--wb-panel:#26242b;--wb-panel-soft:#2f2c35;--wb-canvas:#1f1d23;--wb-text:#e0dce6;--wb-muted:#a89db5;--wb-line:#403a49;--wb-accent:#b2a0ff}
.editor{--pages-width:228px;--inspector-width:285px;--line:var(--wb-line);--ink:var(--wb-text);color:var(--wb-text);background:var(--wb-panel)}
.editor .topbar,.editor .tool-rail,.editor .pages-panel,.editor .inspector,.editor .inspector-heading,.editor .inspector-tabs{background:var(--wb-panel);color:var(--wb-text);border-color:var(--wb-line)}
.editor .canvas-workspace,.editor .canvas-area{background-color:var(--wb-canvas)}.editor .canvas-area{background-image:radial-gradient(#9b92a522 .7px,transparent .7px)}.editor .canvas-bottom{background:var(--wb-panel-soft);border-color:var(--wb-line)}.editor .canvas-top{color:var(--wb-muted)}.editor .project-heading input{color:var(--wb-text)}.editor .pages-panel{width:var(--pages-width)}.editor .inspector{width:var(--inspector-width)}.editor .brand{color:var(--wb-text)}.editor .topbar{gap:17px;padding-left:21px;padding-right:21px}.editor .top-actions{gap:7px}.editor .top-actions .private-badge{display:none}.editor .project-heading input{width:170px}.editor .save-status{font-size:9px}.editor .header-divider{margin-right:0}.editor .icon-button{color:var(--wb-muted)}.editor .icon-button:hover:not(:disabled){background:var(--wb-panel-soft);color:var(--wb-accent)}.editor .rail-tool{color:var(--wb-muted)}.editor .rail-tool.active,.editor .rail-tool:hover{color:var(--wb-accent);background:var(--wb-panel-soft)}.editor .inspector-section{border-color:var(--wb-line)}
.editor .field input:not([type=color]):not([type=range]),.editor .field textarea,.editor .field select,.editor .inspector-section>textarea,.editor textarea[data-prop]{background:var(--wb-panel-soft);border-color:var(--wb-line);color:var(--wb-text)}.editor .color-input{background:var(--wb-panel-soft);border-color:var(--wb-line)}.editor .field .color-input input:not([type=color]){background:none}.editor .upload-box{background:var(--wb-panel-soft);border-color:var(--wb-line)}.editor .secondary{background:var(--wb-panel);border-color:var(--wb-line);color:var(--wb-muted)}.editor .align-options button,.editor .align-grid button{background:var(--wb-panel-soft);color:var(--wb-muted)}.editor .align-options button.active{color:var(--wb-accent)}
.sidebar-tabs{display:flex;gap:4px;background:var(--wb-panel-soft);padding:4px;border-radius:7px;margin:0 0 12px}.sidebar-tabs button{flex:1;padding:7px;font-size:10px;border-radius:5px;background:none;color:var(--wb-muted)}.sidebar-tabs button.active{background:var(--wb-panel);color:var(--wb-accent);box-shadow:0 1px 4px #00000008}.sidebar-search{font-size:10px;color:var(--wb-text);border:1px solid var(--wb-line);background:var(--wb-panel-soft);padding:9px 10px;border-radius:5px;width:100%;margin-bottom:16px}.editor .pages-panel{padding-top:17px}.editor .panel-heading{margin-left:4px}.editor .panel-heading h2 #sidebar-title{background:none;color:var(--wb-text);font-size:12px;font-weight:600;padding:0}.editor .panel-intro{font-size:9px;margin-left:4px;margin-bottom:16px}.add-module-button{margin:0 0 15px 24px;flex-shrink:0;padding:10px 5px;border-radius:6px;background:var(--wb-panel-soft);color:var(--wb-accent);font-size:9px;border:1px solid var(--wb-line)}.editor .page-card .thumbnail{border-color:var(--wb-line)}.editor .page-name{color:var(--wb-muted)}.editor .page-row.active .page-name{color:var(--wb-accent)}.docked-layer{display:flex;align-items:center;border:1px solid var(--wb-line);border-radius:6px;gap:0;margin-bottom:6px;padding:5px}.docked-layer.active{background:var(--wb-panel-soft);border-color:#9a84dd}.docked-layer-name{display:flex;gap:7px;align-items:center;min-width:0;flex:1;background:none;color:var(--wb-muted);padding:6px 2px;text-align:left}.docked-layer-name strong{font-size:10px;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.docked-layer-name .icon{width:14px;height:14px}.docked-layer>.icon-button{width:24px;height:25px;padding:5px}.docked-layer>.icon-button .icon{width:12px;height:12px}.panel-resizer{width:5px;flex-shrink:0;cursor:col-resize;background:var(--wb-panel);border-left:1px solid var(--wb-line);touch-action:none}.panel-resizer:hover,.panel-resizer:focus-visible{background:#b5a4ed}.focus-mode .pages-panel,.focus-mode .inspector,.focus-mode .panel-resizer,.left-collapsed .pages-panel,.left-collapsed [data-resize-panel=left],.right-collapsed .inspector,.right-collapsed [data-resize-panel=right]{display:none}.editor .history-controls{gap:0}.editor .history-controls .icon-button{width:28px;height:28px;padding:6px}.editor .history-controls .small-divider{margin:0 3px}.editor .breadcrumb,.editor .breadcrumb-slash{display:none}.editor .canvas-top{padding-left:17px;padding-right:15px;gap:8px}.selection-actions{display:flex;gap:3px;align-items:center;border:1px solid var(--wb-line);border-radius:7px;background:var(--wb-panel);padding:4px;margin-left:auto}.selection-actions>span{font-size:9px;color:var(--wb-muted);padding:0 5px;max-width:80px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.selection-actions button{width:26px;height:25px;display:flex;align-items:center;justify-content:center;color:var(--wb-muted);border-radius:4px;background:none}.selection-actions button:hover{color:var(--wb-accent);background:var(--wb-panel-soft)}.selection-actions .icon{width:14px;height:14px}
.foldable-section{display:block;padding:0!important}.foldable-section>summary{display:flex;align-items:center;justify-content:space-between;padding:18px 19px;font-size:11px;font-weight:600;cursor:pointer;list-style:none;user-select:none}.foldable-section>summary::-webkit-details-marker{display:none}.foldable-section>summary:after{content:'›';font-size:17px;color:var(--wb-muted);transform:rotate(0);font-weight:400}.foldable-section[open]>summary:after{transform:rotate(90deg)}.inspector-section-body{padding:0 19px 20px}.foldable-section:not([open])>summary{color:var(--wb-muted)}.editor .inspector-heading{height:55px;min-height:55px}.editor .inspector-tabs{padding-top:9px;padding-bottom:9px}.editor .inspector-tabs button.active{background:var(--wb-panel-soft);color:var(--wb-accent)}
.folio-hint{position:fixed;z-index:2147483646;pointer-events:none;padding:10px 13px;border-radius:7px;font:12px/1.55 Arial,sans-serif;white-space:pre-wrap;overflow-wrap:anywhere;box-shadow:0 6px 22px #00000025;animation:hint-appear .12s ease-out}.hint-dark{background:#302a3a;color:#f6f1fc;border:1px solid #61536d}.hint-light{background:#fffdf9;color:#4e415b;border:1px solid #d7cbe1}@keyframes hint-appear{from{opacity:0;translate:0 3px}to{opacity:1;translate:0 0}}
.sections-surface{padding:24px;font-family:Arial,sans-serif;line-height:1.5;overflow:auto;white-space:pre-wrap}.sections-surface details{margin-bottom:12px;border:1px solid #92839b35;border-radius:8px;overflow:hidden}.sections-surface summary{padding:14px 18px;cursor:pointer;font-size:.85em;font-weight:600;color:var(--section-accent);background:#8c70aa09;white-space:normal}.sections-surface .section-body{padding:18px;font-size:.8em;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}.content-tabs{display:flex;gap:7px;flex-wrap:wrap;border-bottom:1px solid #8c70aa30;padding-bottom:12px}.content-tabs button,.content-tabs>span{background:#8c70aa09;border-radius:7px;color:inherit;padding:10px 15px;font:inherit;font-size:.75em;cursor:pointer;white-space:normal}.content-tabs .active{background:var(--section-accent);color:white}.editor-stage .sections-surface{pointer-events:none}.empty-image{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:15px;background:#e4deed;color:#9784ae;font:22px Arial,sans-serif}.empty-image>.icon{width:60px;height:60px;stroke-width:1}
/* One renderer is shared by the public portfolio, quick preview and module demos. */
.folio-player{height:100%;width:100%;display:flex;flex-direction:column;position:relative;overflow:hidden;background:#eae7e3;color:#776c7b;font-family:Arial,sans-serif;outline:none;min-height:0}.player-underlay{flex:1;display:flex;flex-direction:column;position:relative;min-height:0}.player-header{min-height:57px;display:flex;gap:12px;align-items:center;padding:10px 22px;background:#f7f5f3;border-bottom:1px solid #ddd5df;flex-shrink:0}.player-identity{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1}.player-identity strong{font-size:12px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.player-identity>span{font-size:7px;letter-spacing:1px;color:#ad9cba}.player-identity>span:empty{display:none}.player-header-actions{display:flex;align-items:center;gap:6px}.player-exit{display:flex;align-items:center;gap:7px;background:#e9e1f3;color:#7d619b;border-radius:6px;padding:10px 12px;font-size:11px;white-space:nowrap}.player-exit .icon{width:15px;height:15px}.player-devices{display:flex;gap:3px;padding:3px;border:1px solid #dfd6e5;border-radius:6px;flex-shrink:0}.player-devices button{background:none;color:#a290af;font-size:10px;padding:7px 10px;border-radius:4px}.player-devices button.active{background:#ded4ec;color:#74568f}.player-area{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:12px}.player-screen{display:flex;align-items:center;justify-content:center;position:relative;background:#e5e1dc;overflow:hidden}.player-screen[data-device=mobile],.player-screen[data-device=tablet]{border:7px solid #6e6477;border-radius:22px;background:#e5e1dc;box-sizing:content-box}.player-fit{position:relative;flex-shrink:0;box-shadow:0 10px 45px #25162e14}.player-slide{transform-origin:top left}.player-slide button.slide-element{cursor:pointer}.player-slide .slide-element{touch-action:manipulation}.player-footer{min-height:51px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 20px;background:#f7f5f3;border-top:1px solid #ddd5df;flex-shrink:0}.player-control{height:32px;width:32px;border-radius:5px;display:inline-flex;align-items:center;justify-content:center;background:none;color:#9d8aa9;flex-shrink:0}.player-control .icon{height:18px;width:18px}.player-control:hover:not(:disabled){background:#e9e1f3;color:#6b5089}.player-navigation,.player-footer-actions{display:flex;align-items:center;gap:8px}.player-counter{font-size:10px;color:#9a88a4;white-space:nowrap;max-width:330px;overflow:hidden;text-overflow:ellipsis}.player-text-button{font-size:10px;border-radius:5px;padding:8px;color:#9d8aa9;background:none}.player-notes{padding:16px 24px;font-size:12px;line-height:1.7;white-space:pre-wrap;max-height:130px;overflow:auto;background:#f8f3fc;color:#9a82ac;flex-shrink:0;border-top:1px solid #ddcfe8}.player-overview{position:absolute;inset:0;padding:25px;background:#ece7f2f5;backdrop-filter:blur(8px);z-index:5;overflow:auto}.player-overview>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.player-overview h2{font:28px Georgia,serif;color:#796089}.player-overview-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:20px}.player-overview-grid>button{background:none;text-align:left;padding:0}.player-overview-grid .thumbnail{border-radius:6px;border:2px solid #d9cce5}.player-overview-grid>button>span{font-size:11px;display:block;margin-top:9px;color:#8b749e}.player-popup{width:min(800px,calc(100vw - 35px));color:#594464;background:#fff;border:1px solid #dfd1ea;max-height:85dvh}.player-popup:has(.visitor-document){width:min(1100px,calc(100vw - 30px))}.player-popup h2{padding-right:20px}.player-popup .visitor-document{height:62dvh}.player-popup>p{font-size:11px;line-height:1.6;color:#a28eaf}.folio-player:fullscreen{height:100dvh;width:100vw}.viewer #presentation.folio-player{height:100dvh}
#quick-preview{padding:0;width:calc(100vw - 40px);height:calc(100dvh - 40px);max-width:1600px;max-height:1100px;overflow:hidden;border-radius:12px;border:1px solid #ccc0da;background:#eae7e3}.quick-preview-root{height:100%;width:100%;min-height:0}.catalogue-dialog{width:min(1050px,calc(100vw - 40px));padding:30px!important;background:var(--wb-panel);color:var(--wb-text);max-height:90dvh}.module-catalogue{display:grid;grid-template-columns:245px 1fr;gap:25px;margin-top:24px;min-height:0}.catalogue-list{border-right:1px solid var(--wb-line);padding-right:18px;max-height:65dvh;overflow:auto;scrollbar-width:thin}.catalogue-list>input{width:100%;padding:10px;border:1px solid var(--wb-line);color:var(--wb-text);background:var(--wb-panel-soft);border-radius:5px;font-size:11px;margin-bottom:12px}.catalogue-categories{display:flex;gap:5px;flex-wrap:wrap;margin:0 0 14px}.catalogue-categories button{font-size:8px;padding:6px 8px;border-radius:4px;background:var(--wb-panel-soft);color:var(--wb-muted)}.catalogue-categories button.active{background:#7762c822;color:var(--wb-accent)}.module-result{display:block;width:100%;padding:12px 11px;text-align:left;border:1px solid transparent;border-radius:7px;background:none;margin-bottom:5px;color:var(--wb-muted)}.module-result strong{font-size:11px;font-weight:500;display:block;margin-bottom:6px}.module-result small{font-size:9px;line-height:1.6;display:block;opacity:.8}.module-result.active{background:var(--wb-panel-soft);border-color:var(--wb-line);color:var(--wb-accent)}.catalogue-detail{min-width:0}.module-detail-heading h3{font:27px Georgia,serif;letter-spacing:-.7px;color:var(--wb-text);margin:10px 0}.module-detail-heading p{font-size:11px!important;color:var(--wb-muted)!important;margin:0 0 15px!important;line-height:1.7!important}.module-live-demo{height:290px;overflow:hidden;border:1px solid var(--wb-line);border-radius:8px}.module-live-demo .player-header{min-height:32px;padding:5px 9px}.module-live-demo .player-identity strong{font-size:9px}.module-live-demo .player-identity>span{font-size:6px;letter-spacing:.5px}.module-live-demo .player-devices{display:none}.module-live-demo .player-footer{min-height:33px;padding:3px 7px}.module-live-demo .player-control{height:24px;width:24px}.module-live-demo .player-control .icon{height:13px;width:13px}.module-live-demo .player-counter{font-size:8px;max-width:180px}.module-live-demo .player-area{padding:4px}.module-guide{padding:18px 0 6px;color:var(--wb-muted)}.module-guide>strong{font-size:11px;font-weight:500;color:var(--wb-text)}.module-guide>p{font-size:11px!important;line-height:1.8!important;margin:8px 0!important;color:var(--wb-muted)!important}.module-guide .module-file-note{font-size:9px!important;opacity:.8}.module-detail-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}.module-detail-actions button{font-size:11px}.module-detail-actions .icon{height:15px;width:15px}
.command-search{width:100%;font-size:14px;color:var(--wb-text);background:var(--wb-panel-soft);border:1px solid var(--wb-line);padding:13px;border-radius:7px;margin:12px 0}.command-results{max-height:50dvh;overflow:auto}.command-results button{display:flex;flex-direction:column;gap:6px;width:100%;padding:12px 10px;background:none;border-radius:6px;text-align:left;color:var(--wb-muted)}.command-results button strong{font-size:12px;font-weight:500}.command-results button small{font-size:9px;opacity:.75}.command-results button:hover,.command-results button:focus{background:var(--wb-panel-soft);color:var(--wb-accent)}.audit-result{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:var(--wb-panel-soft);color:var(--wb-muted);padding:12px;border-radius:6px;margin-bottom:8px;font-size:11px;line-height:1.6}.audit-result>span{font-size:8px;color:#a78bba;flex-shrink:0}.audit-result.error>span{color:#b67c69}.audit-result>.icon{margin-left:auto;height:14px;width:14px}.audit-success{padding:20px;background:#dbece080;border-radius:7px;font-size:12px;color:#639375}.checkpoint-form{display:flex;gap:8px;margin:20px 0}.checkpoint-form input{min-width:0;flex:1;padding:10px;font-size:11px;color:var(--wb-text);border:1px solid var(--wb-line);background:var(--wb-panel-soft);border-radius:5px}.checkpoint-form button{font-size:10px}.history-entry{display:flex;align-items:center;gap:8px;padding:12px 0;border-bottom:1px solid var(--wb-line)}.history-entry>div{flex:1;min-width:0}.history-entry strong{display:block;font-size:11px;font-weight:500;color:var(--wb-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-entry small{display:block;font-size:9px;color:var(--wb-muted);margin-top:6px}.history-entry .compact{flex:initial}
:root[data-ui=dark] dialog:not(#quick-preview):not(.player-popup){background:var(--wb-panel);color:var(--wb-text);border-color:var(--wb-line)}:root[data-ui=dark] dialog:not(.player-popup):not(#quick-preview) h2{color:var(--wb-text)}:root[data-ui=dark] dialog .field input,:root[data-ui=dark] dialog .field textarea{color:var(--wb-text);background:var(--wb-panel-soft);border-color:var(--wb-line)}:root[data-ui=dark] .primary{background:#7860d5}:root[data-ui=dark] .inspector-tip{background:#342d40}:root[data-ui=dark] .editor .panel-heading h2 #page-count{background:var(--wb-panel-soft)}
@media(max-width:1250px){.editor .save-status{display:none}.editor .project-heading input{width:140px}.editor .topbar{gap:13px}.editor .history-controls .icon-button{width:24px;height:26px}.selection-actions>span{display:none}.editor .canvas-top{padding-left:11px;padding-right:10px}.editor .canvas-top>div:first-child{max-width:135px}.editor .top-actions .optional-tool{display:none}}
@media(max-width:950px){.editor{--pages-width:175px;--inspector-width:245px}.editor .history-controls .small-divider{display:none}.selection-actions{padding:3px;gap:0}.selection-actions button{width:23px}.editor .canvas-top>div:first-child{display:none}.editor .canvas-top{height:auto;min-height:50px}.selection-actions{margin-left:0}.editor .topbar{padding:0 13px;gap:9px}.editor .top-actions{gap:4px}.editor .project-heading input{width:130px}.add-module-button{margin-left:0;font-size:8px}.editor .topbar .primary,.editor .topbar .secondary{padding:8px 11px}.module-catalogue{grid-template-columns:190px 1fr;gap:17px}.catalogue-list{padding-right:12px}.module-live-demo{height:240px}.module-detail-actions{flex-wrap:wrap}.player-devices button{font-size:9px;padding:6px 7px}.player-header{padding:8px 13px}.player-exit{font-size:10px;padding:8px}.player-identity strong{font-size:11px}}
@media(max-width:700px){.catalogue-dialog{padding:22px!important}.module-catalogue{grid-template-columns:1fr;gap:20px}.catalogue-list{max-height:170px;border:1px solid var(--wb-line);border-radius:6px;padding:10px}.module-live-demo{height:260px}.catalogue-detail{max-height:58dvh;overflow:auto}.player-header{gap:5px;padding:7px 10px;flex-wrap:wrap}.player-devices{order:3;width:100%;justify-content:center;padding:1px}.player-identity strong{font-size:10px}.player-exit{font-size:9px;padding:7px}.player-exit .icon{height:12px;width:12px}.player-header-actions{margin-left:auto;gap:0}.player-footer{padding:5px 8px;gap:3px}.player-counter{font-size:8px;max-width:150px}.player-navigation{gap:2px}.player-text-button{font-size:8px;padding:5px}.player-notes{font-size:10px}.player-overview-grid{grid-template-columns:1fr 1fr;gap:13px}.player-overview{padding:15px}.player-overview h2{font-size:23px}#quick-preview{width:calc(100vw - 12px);height:calc(100dvh - 12px)}.editor .pages-panel{padding-left:9px;padding-right:9px}.sidebar-tabs button{font-size:9px;padding:6px}.editor .topbar .brand{font-size:25px}.editor .project-heading input{width:110px}.editor .topbar #storage-btn{display:none}.editor .selection-actions button{width:20px}.editor .history-controls .icon-button{width:22px}.checkpoint-form{flex-wrap:wrap}.checkpoint-form input{min-width:160px}}
@media(prefers-reduced-motion:reduce){.folio-hint,.player-fit{animation:none!important;transition:none!important}}

.catalogue-list .module-result strong{font-size:12px}.catalogue-list .module-result small{font-size:10px}.module-guide>p{font-size:12px!important}.module-detail-heading p{font-size:12px!important}
