.shortcut-settings{display:grid;gap:16px}.shortcut-restore,.shortcut-card{border:1px solid var(--border);border-radius:8px;padding:12px}.shortcut-restore,.shortcut-card>div{display:flex;gap:8px;align-items:center;justify-content:space-between}.shortcut-restore{position:relative}.shortcut-confirm{position:absolute;top:100%;right:0;z-index:1;padding:12px;background:var(--surface);border:1px solid var(--border);border-radius:6px}.shortcut-confirm p{margin:0 0 8px}.shortcut-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.shortcut-card>div{margin-bottom:8px}.shortcut-card strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.shortcut-card button{border:0;background:transparent;padding:2px;color:var(--accent)}.shortcut-caps{display:inline-flex;align-items:center;flex-wrap:wrap;gap:4px;min-height:24px}.shortcut-help{padding-left:24px}.dialog:has(.local-gallery-panel){width:min(720px,calc(100vw - 28px))}.local-gallery-panel{min-width:0}.local-gallery-tabs{display:flex;gap:4px;align-items:flex-end;margin-bottom:12px;overflow-x:auto;border-bottom:1px solid var(--border)}.local-gallery-tabs>button{flex:none;padding:7px 14px;border:none;border-radius:0;border-bottom:2px solid transparent}.local-gallery-tabs>button[aria-selected=true]{color:var(--accent);border-bottom-color:var(--accent)}.local-gallery-heading,.local-gallery-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.local-gallery-heading{justify-content:space-between;margin-bottom:8px}.local-gallery-heading h3{margin:0;font-size:15px}.local-gallery-empty{padding:30px 6px;text-align:center;color:#777}.local-gallery-list [role=status],.local-gallery-list [role=alert]{margin-block:6px}.local-gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(108px,1fr));gap:9px;list-style:none;padding:0;margin:10px 0 0}.local-gallery-grid>li{min-width:0;position:relative}.gallery-item,.gallery-pick{display:flex;flex-direction:column;align-items:stretch;width:100%;padding:4px;gap:4px;border:1px solid var(--border);border-radius:4px;background:#fff;color:inherit}.gallery-pick{cursor:pointer}.gallery-thumb{display:grid;place-items:center;width:100%;height:88px;background:#f5f5f5}.gallery-thumb img{display:block;max-width:100%;max-height:88px;object-fit:contain}.gallery-thumb-error{font-size:12px;color:#777}.gallery-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}.gallery-name input[type=checkbox]{width:auto;margin:0 5px 0 0}.gallery-item-tools{position:absolute;top:5px;right:5px}.gallery-menu-trigger{min-width:30px;padding:2px 6px}.gallery-menu{display:grid;position:absolute;top:100%;right:0;min-width:76px;z-index:1;background:#fff;border:1px solid var(--border);box-shadow:0 2px 5px #0002}.gallery-menu>button{border:none;text-align:left}.gallery-menu>button:hover,.gallery-menu>button:focus{background:#f3f4ed}.gallery-confirm{padding:10px;margin-block:8px;border:1px solid var(--border);border-radius:4px}.gallery-confirm>div{display:flex;gap:6px;margin-top:6px}@media (max-width: 520px){.local-gallery-grid{grid-template-columns:repeat(auto-fill,minmax(90px,1fr))}.local-gallery-tabs>button{padding-inline:10px}}:root[data-editor-theme=dark]{color-scheme:dark;--surface: #232529;--surface-alt: #2c2e32;--page: #191b1e;--ink: #eceef1;--muted: #b2b5bb;--border: #484a50;color:var(--ink);background:var(--page)}.appearance-tools{display:inline-flex;align-items:center;gap:5px}.appearance-tools input[type=color]{width:22px;height:22px;padding:0;border:1px solid var(--border);border-radius:3px;cursor:pointer;background:transparent}.appearance-tools input::-webkit-color-swatch-wrapper{padding:0}.appearance-tools input::-webkit-color-swatch{border:0;border-radius:2px}.appearance-mode{position:relative;display:grid;place-items:center;width:27px;height:26px;color:#8557bc}.appearance-mode select{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer}.appearance-mode:focus-within{outline:2px solid var(--accent);outline-offset:1px}.appearance-mode span{position:relative;display:block;box-sizing:border-box}.appearance-mode [data-mode=system]{width:16px;height:11px;border:2px solid currentColor;border-radius:2px}.appearance-mode [data-mode=system]:after{content:"";position:absolute;left:3px;bottom:-5px;width:6px;border-bottom:2px solid currentColor}.appearance-mode [data-mode=light]{width:13px;height:13px;border:2px solid currentColor;border-radius:50%}.appearance-mode [data-mode=dark]{width:14px;height:14px;border-radius:50%;box-shadow:inset -4px -2px currentColor}.mobile-access{display:grid;justify-items:center;gap:12px;text-align:center}.mobile-access svg{display:block;max-width:100%;height:auto}.mobile-access p{line-height:1.6;overflow-wrap:anywhere}.mobile-access button{margin-top:2px}.device-status{min-width:0;margin:10px 0 0;padding:6px 8px 8px;border:1px solid var(--border);font:inherit}.device-status legend{padding:0 4px}.device-row,.device-status .device-check,.device-status .device-level{display:flex;flex-wrap:wrap;align-items:center;gap:4px 7px;margin-top:7px}.device-row label{display:inline-flex;align-items:center;gap:4px}.device-model,.device-colors button[aria-pressed=true]{padding:3px 8px;border:1px solid var(--accent);border-radius:4px;background:var(--accent);color:#fff}.device-status button{padding:3px 7px}.device-status input[type=time]{padding:2px 4px;width:auto;max-width:100%}.device-status input[type=checkbox]{width:auto;margin:0;padding:0;accent-color:var(--accent)}.device-status input[type=color]{width:28px;height:23px;padding:1px}.device-status .device-level{flex-wrap:nowrap}.device-level input[type=range]{width:0;flex:1;padding:0;border:0;accent-color:var(--accent)}.device-level span{min-width:3em;text-align:right;font-variant-numeric:tabular-nums}.device-switches{align-items:stretch}.device-status .device-switch{display:grid;place-items:center;gap:2px;padding:3px 4px;min-width:40px;line-height:1.15;font-size:12px}.device-switch[aria-pressed=true]{border-color:var(--accent)}.device-round{width:21px;height:21px;display:grid;place-items:center;background:#ececec;border-radius:50%}.device-switch[aria-pressed=true] .device-round{background:var(--accent)}.device-round img{max-width:14px;max-height:13px}.custom-image-bars{padding:0;border:none;margin:8px 0;min-width:0}.custom-image-bars input[type=checkbox]{width:auto}.custom-image-bars input[type=color]{width:32px;height:25px;padding:1px}.custom-image-bars .editor-field{margin:10px 0}.custom-image-bars .editor-field small{color:var(--muted);font-size:12px}.custom-image-bars .extend-top{display:flex;align-items:center}.custom-image-bars .bar-section-title{margin:8px 0}.device-controls{color:var(--ink)}.device-model-buttons,.device-network-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.device-model-buttons{position:sticky;top:0;z-index:1;gap:3px 6px;background:var(--surface);padding:5px 0}.device-model-buttons button{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-radius:6px;font-size:11px;padding:3px 1px;background:var(--surface-alt)}.device-model-buttons [aria-pressed=true]{color:#fff;border-color:var(--accent);background:var(--accent)}.device-model-buttons .configure-models{border:1px dashed var(--accent);color:var(--accent);background:color-mix(in srgb,var(--accent) 8%,var(--surface))}.device-network-grid{margin:10px 0}.device-controls .device-network-card{display:grid;justify-items:center;align-content:center;gap:2px;min-width:0;padding:6px 2px;font-size:11px;border:1px solid var(--border);border-radius:10px;background:var(--surface-alt);color:var(--muted);line-height:1.15}.device-network-card[data-active=true]{border-color:color-mix(in srgb,var(--accent) 35%,transparent);box-shadow:0 8px 18px #0f172a12}.network-level{display:grid;place-items:center;width:36px;height:36px;padding:2px;max-width:100%;border-radius:50%;background:var(--page);font-size:10px;font-variant-numeric:tabular-nums}.network-level[data-on=true]{background:var(--accent);color:#fff}.network-level img,.network-level svg{display:block;width:20px;height:20px;object-fit:contain}.network-level[data-on=false] img{filter:brightness(0);opacity:.55}.device-network-card small{font-size:10px;color:var(--muted)}.device-network-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.device-network-options button{min-height:40px;padding:10px 12px;border-radius:10px;text-align:left}.device-network-options button[aria-pressed=true]{border-color:var(--accent);font-weight:600;background:color-mix(in srgb,var(--accent) 10%,var(--surface-alt))}.device-system-icons{margin-top:10px;border-radius:6px;overflow:hidden;background:var(--surface-alt)}.device-controls .device-clear-icons{display:block;width:100%;min-height:32px;padding:3px;border:0;border-radius:0;background:var(--page);color:var(--muted);font-size:12px}.device-icon-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));justify-items:center;gap:8px;padding:8px}.device-controls .device-icon-grid button{display:grid;place-items:center;width:100%;max-width:32px;min-width:0;aspect-ratio:1;padding:0;overflow:hidden;border:2px solid transparent;border-radius:8px;background:#474747}.device-icon-grid img{display:block;width:100%;height:100%;object-fit:contain;padding:2px}.device-controls .device-icon-grid button[aria-pressed=true]{border-color:var(--accent)}.device-controls .device-open-layout{display:flex;width:100%;margin-top:12px;padding:7px 8px;align-items:center;justify-content:space-between;gap:8px;background:var(--surface-alt)}.device-open-layout span{font-size:12px;font-weight:600}.device-navbar-select{display:flex;align-items:center;justify-content:space-between;gap:5px;border-top:1px solid var(--border);margin-top:12px;padding-top:8px}.device-navbar-select select,.model-defaults select{min-width:0;padding:5px;background:var(--surface);border:1px solid var(--border);border-radius:5px}.device-toolbar{flex:0 0 auto;display:flex;align-items:center;justify-content:center;width:100%;min-height:40px;gap:6px;padding:3px;background:var(--surface);border-bottom:1px solid var(--border)}.device-segment{display:inline-flex;gap:2px;border-radius:6px;background:var(--page);padding:3px}.device-segment button{display:grid;place-items:center;width:28px;height:24px;padding:2px;border:0;border-radius:5px;background:transparent;color:var(--muted)}.device-toolbar[data-mobile=true] button{width:32px;height:28px}.device-segment button[aria-pressed=true]{background:var(--surface);color:var(--accent);box-shadow:0 1px 3px #0003}.device-segment button[data-icon=android][aria-pressed=true]{color:#379251}.device-segment button[data-icon=white]{color:#cf951d}.device-segment svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.model-configuration h3,.device-layout-zones h3{margin:0;font-size:14px}.model-configuration p,.device-layout-hint{color:var(--muted);font-size:12px}.model-configuration p{margin:4px 0 10px}.model-configuration small,.device-layout-zones small{color:var(--muted);font-weight:400}.model-defaults{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0 20px}.model-defaults label{font-size:12px}.model-choice-grid{display:grid;gap:7px;grid-template-columns:repeat(3,minmax(0,1fr));max-height:45dvh;overflow-y:auto;padding:2px}.model-choice-grid button{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:6px;min-width:0}.model-check{display:grid;place-items:center;border:1px solid var(--border);border-radius:50%;flex:0 0 16px;height:16px;font-size:11px;line-height:1}.model-choice-grid [aria-pressed=true] .model-check{background:var(--accent);border-color:var(--accent);color:#fff}.model-choice-grid [aria-disabled=true]{opacity:.65;cursor:default}.device-layout-editor{position:fixed;inset:auto 0 0;width:100%;max-width:none;max-height:83dvh;margin:0;padding:0;border:0;border-radius:14px 14px 0 0;background:var(--surface);color:var(--ink)}.device-layout-editor::backdrop{background:#0004}.device-layout-editor>section{max-width:840px;padding:14px 20px max(22px,env(safe-area-inset-bottom));margin:0 auto}.device-layout-editor>section>header{display:flex;align-items:center;gap:10px;margin-bottom:16px}.device-layout-editor h2{flex:1;margin:0;font-size:17px}.device-layout-editor header button:last-child{font-size:22px;border:0}.device-layout-sliders{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.device-layout-sliders label,.device-layout-sliders p{padding:10px;border-radius:8px;background:var(--surface-alt);font-size:13px}.device-layout-sliders p{color:var(--muted);font-size:12px}.device-layout-sliders label span,.device-layout-zones h3{display:flex;justify-content:space-between;align-items:center;gap:8px}.device-layout-sliders b{color:var(--muted);font-variant-numeric:tabular-nums}.device-layout-sliders input[type=range]{padding:0;border:0;accent-color:var(--accent)}.device-layout-zones{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0 9px}.device-layout-zones h3{margin:0 0 6px}.device-layout-zone{display:flex;flex-wrap:wrap;gap:8px;align-content:center;min-height:72px;padding:9px;border:1px solid var(--border);border-radius:10px;background:var(--surface-alt)}.device-layout-zone[data-layout-zone=rightOrder]{justify-content:flex-end}.device-layout-zone[data-over=true]{border-color:var(--accent)}.device-layout-zone>span{flex:1;padding:9px;border:1px dashed var(--border);border-radius:6px;color:var(--muted);text-align:center}.device-layout-zone button{position:relative;touch-action:none;-webkit-user-select:none;user-select:none;cursor:grab;display:grid;place-items:center;width:42px;min-height:42px;padding:2px;background:#3c3c3e;color:#fff;border-radius:10px;font-size:11px}.device-layout-zone button img{display:block;max-width:36px;max-height:16px;object-fit:contain;pointer-events:none}.device-layout-zone button small{position:absolute;right:0;top:0;border-radius:9px;background:#ffffff25;padding:0 4px;color:#fff;font-size:9px}.device-layout-zone button[data-dragging=true]{opacity:.65;cursor:grabbing}.device-layout-zone button[data-before=true]:before,.device-layout-zone button[data-after=true]:after{content:"";position:absolute;top:3px;bottom:3px;width:3px;border-radius:3px;background:var(--accent)}.device-layout-zone button[data-before=true]:before{left:-5px}.device-layout-zone button[data-after=true]:after{right:-5px}.device-sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%)}.device-layout-mobile .device-layout-sliders{grid-template-columns:repeat(2,minmax(0,1fr))}.device-layout-mobile .device-layout-zones{grid-template-columns:1fr}@media (max-width: 700px){.device-layout-sliders{grid-template-columns:repeat(2,minmax(0,1fr))}.device-layout-zones{grid-template-columns:1fr}.device-layout-editor>section{padding-inline:12px}}.editor-workbench.editor-layout{position:relative;grid-template-columns:280px minmax(0,1fr) 290px 120px;grid-template-areas:"devices preview form actions"}.editor-workbench.device-collapsed{grid-template-columns:minmax(0,1fr) 290px 120px;grid-template-areas:"preview form actions"}.editor-workbench>.tools-column{grid-area:devices;min-height:0;overflow-y:auto}.editor-workbench>.preview-column{grid-area:preview}.editor-workbench>.settings-column{grid-area:form}.editor-workbench>.actions-column{grid-area:actions}.editor-workbench .device-panel-toggle{position:absolute;z-index:1;inset:50% auto auto 0;transform:translateY(-50%);width:36px;min-height:108px;display:grid;place-content:center;writing-mode:vertical-rl;gap:8px;border:0;border-radius:0;padding:14px 0;background:var(--accent);color:#fff;box-shadow:2px 0 12px #0003;font-size:12px;font-weight:600}.device-panel-toggle:after{content:"›";writing-mode:horizontal-tb}.device-panel-drawer{position:fixed;inset:0 auto 0 0;margin:0;padding:0;width:min(280px,100vw);max-width:100%;height:100dvh;max-height:100dvh;border:0;color:var(--ink);background:var(--surface)}.device-panel-drawer::backdrop{background:#0006}.device-panel-drawer section{min-height:100%;padding:0 10px 10px}.device-panel-drawer header{display:flex;align-items:center;justify-content:space-between;height:55px;border-bottom:1px solid var(--border)}.device-panel-drawer header button{border:none;font-size:20px}.editor-layout-options{display:grid;gap:12px}.editor-layout-options .editable-hint-mobile,.workspace:has(>.mobile-layout) .editable-hint-desktop{display:none}.workspace:has(>.mobile-layout) .editable-hint-mobile{display:inline}.editor-layout-options fieldset{min-width:0;padding:8px;border:1px solid var(--border)}.editor-layout-options label{display:flex;align-items:center;gap:5px}.editor-layout-options input[type=radio],.editor-layout-options input[type=checkbox]{width:auto;accent-color:var(--accent)}.device-panel-options{display:flex;flex-wrap:wrap;gap:8px 12px}.editor-layout-options p{color:var(--muted);font-size:12px;margin-top:6px}.editor-workbench.mobile-layout{display:flex;flex-direction:column;min-width:0;height:100dvh}.workspace:has(>.mobile-layout)>:is(.topbar,.filter-bar,.tabbar){display:none}.mobile-layout .preview-column{flex:1;min-height:0}.editor-workbench .interactive-viewport{padding:0;overflow:hidden;touch-action:none;cursor:grab}.editor-workbench .interactive-viewport:active{cursor:grabbing}.editor-workbench .interactive-viewport canvas{position:absolute;left:0;top:0;max-width:none;max-height:none;transform-origin:top left}.editor-workbench .canvas-message{z-index:1;cursor:default}.editor-workbench{--u-contentedit-border: 0;--u-touch-bg: transparent}.editor-workbench[data-touch-hints=true]{--u-contentedit-border: 2px;--u-touch-bg: rgba(255, 0, 0, .17)}.editor-workbench .canvas-stage :is(.cee,.contenteditable-element){border:var(--u-contentedit-border) solid #ff4d4f}.editor-workbench .show-transparent .canvas-stage{background:repeating-conic-gradient(#ccc,#ccc 25%,#fff 0%,#fff 50%) 0 0 / 20px 20px}.editor-workbench .show-transparent canvas{background:transparent}.mobile-editor-bar{display:flex;align-items:stretch;justify-content:space-around;position:sticky;bottom:0;z-index:1;background:var(--surface);padding:0 4px env(safe-area-inset-bottom,0px);border-top:1px solid var(--border);box-shadow:0 -2px 8px #0002}.mobile-editor-bar button{border:0;padding:8px 2px;display:grid;justify-items:center;align-content:center;gap:4px;font-size:10px;color:var(--muted);white-space:nowrap}.mobile-editor-bar svg{width:20px;height:20px;fill:none;stroke:var(--ink);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.mobile-editor-sheet{inset:auto 0 0;width:100%;max-width:100%;max-height:90dvh;margin:0;padding:0;border:none;border-radius:12px 12px 0 0;background:var(--surface);color:var(--ink)}.mobile-editor-sheet::backdrop{background:#0006}.mobile-editor-sheet>section{padding:12px 16px max(8px,env(safe-area-inset-bottom,0px))}.mobile-editor-sheet header{display:flex;align-items:center;justify-content:space-between}.mobile-editor-sheet header button{border:0;font-size:20px}.mobile-editor-sheet .form-fields{max-height:min(72vh,calc(90dvh - 128px));overflow:auto}.mobile-more-tools{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding-top:12px}.mobile-more-tools label{display:flex;align-items:center;gap:8px;grid-column:1 / -1}.mobile-more-tools input[type=checkbox]{width:auto;accent-color:var(--accent)}@media (prefers-reduced-motion: no-preference){.device-panel-toggle{transition:width .15s ease}.device-panel-toggle:hover{width:40px}}@media (max-width: 846px){.editor-workbench.desktop-layout{min-width:850px}.editor-workbench.desktop-layout.device-collapsed{min-width:570px}.editor-workbench.desktop-layout .tools-column{border-right:1px solid var(--border);border-bottom:0}.editor-workbench.desktop-layout .settings-column{border-left:1px solid var(--border);border-top:0}}.picker-trigger{width:42px;height:42px;display:grid;place-items:center;overflow:hidden;padding:2px}.picker-trigger img{width:100%;height:100%;object-fit:contain}.dialog:has(.custom-file-picker){width:80vw;max-height:94dvh}.custom-file-picker{height:72dvh;min-height:min(360px,70dvh);display:flex;flex-direction:column;gap:12px}.picker-panes{display:flex;gap:12px;flex:1;min-height:0}.picker-gallery-pane,.picker-official-pane{position:relative;display:flex;flex-direction:column;gap:8px;min-width:0;padding:8px;border:1px solid var(--border);border-radius:8px}.picker-gallery-pane{flex:1}.picker-official-pane{flex:1.5}.picker-corner{position:absolute;right:8px;top:-16px;font-size:12px;color:var(--muted)}.picker-gallery-action{display:flex;align-items:center;justify-content:flex-end;gap:6px}.picker-gallery-action>button{flex-shrink:0}.picker-personal-tabs{display:flex;overflow-x:auto;gap:4px;margin-right:auto}.picker-personal-tabs button{white-space:nowrap}.picker-personal-tabs button[aria-pressed=true]{border-color:var(--accent);color:var(--accent)}.picker-gallery-pane>p{margin:auto;text-align:center}.picker-grid{display:grid;align-content:start;grid-template-columns:repeat(auto-fill,minmax(min(60px,100%),1fr));gap:6px}.picker-gallery-pane>.picker-grid,.picker-results{min-height:0;overflow-y:auto;padding:2px}.picker-results{flex:1}.picker-grid button{display:flex;align-items:center;flex-direction:column;justify-content:center;min-width:0;padding:4px;border:1px solid var(--border);border-radius:8px;background:var(--surface);overflow:hidden}.picker-grid button img{width:40px;height:40px;object-fit:contain;border-radius:8px}.picker-grid button span{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center}@media (hover:hover){.picker-grid button:hover{outline:2px solid #faad14;background-color:#faad143b}}.picker-tabs{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.picker-tabs button[aria-pressed=true]{color:var(--accent);border-color:currentColor}.picker-local{width:100%}.dialog:has(.mobile-picker){position:fixed;inset:auto 0 0;width:100%;max-width:100%;margin:0;border-radius:12px 12px 0 0}.mobile-picker>.picker-tabs{flex-wrap:nowrap;overflow-x:auto}.mobile-picker .picker-gallery-pane,.mobile-picker .picker-official-pane{border:0}.mobile-picker .picker-grid{grid-template-columns:repeat(auto-fill,minmax(56px,1fr));gap:8px}.mobile-picker .picker-grid img{object-fit:cover}.custom-file-picker.mobile-picker{height:auto;min-height:0}.mobile-picker .picker-panes{flex:none;height:50dvh}.home-library{display:grid;align-content:start;gap:14px}.recent-pages,.home-categories,.favorite-shortcuts,.page-links,.category-options,.category-path{display:flex;align-items:center;gap:6px}.page-links,.home-categories,.category-options{flex-wrap:wrap}.recent-pages,.home-categories{padding:9px 12px;background:var(--surface);border-radius:4px}.recent-pages>strong{white-space:nowrap;font-weight:550}.recent-pages .page-links,.favorite-shortcuts .page-links{min-width:0;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin}.recent-pages .page-links button,.favorite-shortcuts button{flex:0 0 auto;white-space:nowrap}.home-categories button{border-color:transparent}.home-categories button[aria-pressed=true]{background:var(--accent);color:#fff}.page-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(126px,1fr));gap:10px}.page-cards button{padding:15px 10px;text-align:center;overflow-wrap:anywhere}.favorite-shortcuts{min-width:0;overflow:hidden}.favorite-shortcuts>span{color:var(--muted)}.category-path{margin-bottom:10px}.category-chooser .category-options button{padding-inline:12px}.page-search{display:grid;gap:8px}.page-search-results{display:grid;max-height:48dvh;overflow:auto}.page-search-results button{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;border:0;padding:8px;min-width:0;overflow-wrap:anywhere}.page-search-results button[aria-selected=true],.page-search-results button:hover{background:color-mix(in srgb,var(--accent) 17%,var(--surface))}.page-search-results button>span,.search-footer{color:var(--muted);font-size:12px}.search-footer{display:flex;justify-content:space-between;padding-top:6px;border-top:1px solid var(--border)}.tabbar{overflow-x:auto;scrollbar-width:thin}.tabbar>*,.workspace-tab{flex:none;white-space:nowrap}.workspace-tab{display:inline-flex;align-items:center;border-radius:4px}.workspace-tab.current{background:color-mix(in srgb,var(--accent) 17%,var(--surface))}.workspace-tab button{color:inherit}.workspace-tab .tab-close{font-size:16px;padding:0 5px}.dialog:has(.mobile-page-navigation){width:100%;max-width:100%;margin:auto 0 0;max-height:85dvh;border-radius:14px 14px 0 0;padding-bottom:env(safe-area-inset-bottom,0px)}.mobile-page-navigation{display:grid;gap:10px}.mobile-menu-search{display:flex;gap:6px}.mobile-menu-search input{flex:1;min-width:0}.mobile-menu-page{background:var(--accent);color:#fff;padding:9px 12px}.mobile-menu-page.dimmed{opacity:.38}.mobile-menu-page.search-hit{box-shadow:inset 0 0 0 2px var(--accent),inset 0 0 0 999px color-mix(in srgb,var(--accent) 18%,transparent)}.mobile-menu-favorite{justify-self:start}.mobile-category-filter{display:flex;overflow-x:auto;gap:6px}.mobile-category-filter button{flex:none;border-radius:14px}.mobile-category-filter [aria-pressed=true],.mobile-tab-entries .current{background:var(--accent);color:#fff}.mobile-tab-entries{display:grid;gap:6px;overflow:auto}.mobile-tab-entries>div{display:flex;align-items:stretch;border:1px solid var(--border);border-radius:9px;padding:2px}.mobile-tab-entries button{border:0;background:none;color:inherit}.mobile-tab-entries button:first-child{flex:1;display:grid;gap:3px;text-align:start}.mobile-tabs-footer{display:flex;justify-content:space-between;align-items:center;color:var(--muted)}.mobile-close-confirm{width:min(380px,calc(100% - 32px));margin:auto;padding:20px;border:0;border-radius:8px;color:inherit;background:var(--surface)}.mobile-close-confirm h3{margin:0}.mobile-close-confirm>div{display:flex;justify-content:flex-end;gap:8px}.mobile-close-confirm .confirm-close{background:#ff4d4f;border-color:#ff4d4f;color:#fff}.mobile-close-confirm::backdrop{background:#0007}:root{color-scheme:light;font-family:Microsoft YaHei,PingFang SC,system-ui,sans-serif;--surface: #fff;--surface-alt: #f9f9f9;--page: #f4f4f4;--ink: #3c3d3e;--muted: #737373;color:var(--ink);background:var(--page);--accent: #a4b43f;--border: #dedede;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer;background:var(--surface);border:1px solid var(--border);border-radius:4px;padding:4px 10px}button:hover:not(:disabled){border-color:var(--accent)}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #748323;outline-offset:2px}button:disabled{cursor:default;opacity:.5}input:not([type=file]),textarea{border:1px solid var(--border);border-radius:4px;background:var(--surface);padding:7px 9px;width:100%;min-width:0}textarea{resize:vertical}label{display:grid;gap:6px}h1,h2,p{margin:0}.primary,.selected,.active{background:var(--accent);color:#fff;border-color:var(--accent)}.login-shell{min-height:100vh;display:grid;place-items:center;padding:24px}.login-card{display:grid;background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:28px;width:min(100%,340px);gap:16px}.login-card h1{font-size:21px}.login-card .primary{min-height:36px}.workspace{display:flex;flex-direction:column;min-height:100dvh}.topbar,.filter-bar,.tabbar{min-height:32px;display:flex;align-items:center;gap:6px;padding:2px 8px;background:var(--surface);border-bottom:1px solid var(--border)}.topbar{display:grid;grid-template-columns:1fr minmax(120px,340px) auto auto auto 1fr}.topbar .brand{justify-self:start;font-weight:650;border:none;padding-inline:0}.topbar .logout{justify-self:end}.quick-search{background:var(--page);text-align:start;display:flex;justify-content:space-between;align-items:center;color:var(--muted)}kbd{font-size:10px;border:1px solid #ccc;border-radius:3px;padding:0 3px;color:var(--muted);background:var(--surface)}.tabbar{gap:2px}.tabbar button{border:none;background:transparent}.tabbar button.current{background:#f1f3e7;color:#626e22}.home{padding:12px;flex:1}.catalog-group{padding:12px 14px;background:var(--surface);border:1px solid var(--border);border-radius:4px;margin-bottom:8px}.catalog-group h2{font-size:15px;margin-bottom:10px}.catalog-group>div{display:flex;flex-wrap:wrap;gap:6px}.catalog-group button{min-width:80px}.library-list{min-width:0}.search-input{margin-bottom:10px}.quiet{color:var(--muted);margin:10px 0}.error{color:#ab3131;overflow-wrap:anywhere}.error button{margin-left:4px}.editor-layout{display:grid;grid-template-columns:minmax(120px,14.6%) minmax(160px,1fr) minmax(210px,15.1%) minmax(95px,6.25%);flex:1;min-height:0}.tools-column,.settings-column,.actions-column{min-width:0;padding:8px;background:var(--surface-alt)}.tools-column{border-right:1px solid var(--border)}.tool-choice{max-width:100%}.preview-column{display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;min-width:0}.canvas-stage{min-height:160px;position:relative;display:flex;align-items:center;justify-content:center;padding:10px;flex:1;overflow:auto}.canvas-stage canvas{max-width:100%;max-height:calc(100dvh - 152px);width:auto;height:auto;display:block;background:#fff;box-shadow:0 0 2px #aaa}.canvas-message{position:absolute;left:12px;bottom:12px;right:12px;text-align:center;padding:6px;background:#fffc}.gallery{display:flex;min-height:36px;gap:8px;align-items:center;border-top:1px solid var(--border);padding:4px 8px;background:var(--surface)}.settings-column,.actions-column{display:flex;flex-direction:column;border-left:1px solid var(--border)}.settings-column{padding:0;background:var(--surface)}.settings-column header{border-bottom:1px solid var(--border);padding:8px}.form-fields{min-height:0;overflow:auto;max-height:calc(100dvh - 220px);padding:8px}.editor-field{margin-bottom:10px}.field-help{font-size:12px;color:var(--muted)}.local-image{display:flex;gap:5px;align-items:center;flex-wrap:wrap}.file-name{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}.template-controls{margin-top:auto;display:flex;flex-wrap:wrap;gap:4px;padding:8px;border-top:1px solid var(--border)}.template-controls button{padding-inline:6px}.actions-column{gap:8px}.action-list{margin-top:auto;display:grid;gap:4px}.dialog{padding:0;border:1px solid var(--border);border-radius:6px;width:min(460px,calc(100vw - 28px));max-height:80dvh;background:var(--surface)}.dialog::backdrop{background:#0004}.dialog>section{padding:16px}.dialog-title{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:14px}.dialog-title h2{font-size:17px}.dialog-title>button{border:none;font-size:23px;line-height:1}.dialog-confirmation{width:min(400px,calc(100vw - 28px));border:0}.dialog-confirmation>section{position:relative;padding:20px 24px}.dialog-confirmation .dialog-title{margin-bottom:8px}.dialog-confirmation .dialog-title h2{font-size:14px;line-height:22px}.dialog-confirmation .dialog-title>button{position:absolute;top:8px;right:8px;width:20px;height:20px;padding:0;font-size:18px}.dialog-confirmation p{font-size:13px;line-height:20px}.dialog-confirmation .dialog-actions{gap:8px;margin-top:12px}.dialog-confirmation .dialog-actions>button{min-width:60px;min-height:32px}.dialog form{display:grid;gap:12px}.cloud-tools{display:flex;gap:8px;flex-wrap:wrap}.cloud-tools p{flex-basis:100%}.toast{position:fixed;left:50%;bottom:22px;transform:translate(-50%);z-index:2;border-radius:4px;background:#333;color:#fff;padding:8px 12px;max-width:min(480px,94vw);display:flex;align-items:center;gap:12px}.toast button{color:#fff;background:transparent;border:none}.notice{margin-top:12px}@media (max-width: 780px){.editor-layout{grid-template-columns:minmax(0,1fr) 100px}.tools-column{grid-column:1/-1;border:none;border-bottom:1px solid var(--border)}.preview-column{grid-column:1;grid-row:2}.actions-column{grid-column:2;grid-row:2}.settings-column{grid-column:1/-1;border-left:none;border-top:1px solid var(--border)}.canvas-stage canvas{max-height:62dvh}.topbar{grid-template-columns:auto minmax(60px,1fr) auto auto auto auto}.topbar,.filter-bar,.tabbar{padding-inline:4px;gap:3px}.topbar button{padding-inline:5px}.form-fields{max-height:none}}.prefs-button{margin-left:auto;display:flex;align-items:center;gap:5px}.option-fields{display:grid;gap:10px}.option-fields fieldset{display:grid;gap:6px;padding:7px 10px;border:1px solid var(--border)}.option-fields legend{padding:0 4px}.option-radio{display:flex;align-items:center;gap:6px}.option-radio input[type=radio]{width:auto;accent-color:var(--accent)}.manual-output{display:grid;justify-items:center;gap:10px}.manual-output img{max-height:56dvh;max-width:100%;object-fit:contain}.storage-error{background:#fff2d7;padding:5px 8px}.storage-error button{margin-left:5px}.brand{display:inline-flex;align-items:center;gap:5px}.brand img{width:21px;height:21px;object-fit:contain}.dialog-actions,.manage-row{display:flex;align-items:center;gap:6px}.dialog-actions{justify-content:flex-end}.editor-menu{position:fixed;top:0;left:0;z-index:4;display:grid;padding:4px;border:1px solid var(--border);border-radius:5px;background:var(--surface);box-shadow:0 3px 12px #0002}.editor-menu button{border:0;border-radius:2px;display:flex;justify-content:space-between;gap:24px;text-align:left;padding:5px 9px}.editor-menu button:hover,.editor-menu button:focus-visible{background:#f0f0ea}.editor-menu button span{color:var(--muted);font-size:12px}@media (max-width: 540px){.topbar{display:flex;flex-wrap:wrap;min-height:32px}.quick-search{flex:1;min-width:68px}.topbar button{font-size:12px}.brand img{width:17px;height:17px}}.dialog{color:var(--ink)}
