.html-page{margin:8px 0 24px;position:relative}.html-page-box{width:100%;min-height:200px;position:relative}.html-page-frame{color-scheme:normal;background:0 0;border:0;width:100%;display:block}.html-island-layer{pointer-events:none;position:absolute;inset:0;overflow:hidden}.html-page-scroll-mark{width:1px;height:1px;scroll-margin-top:72px;position:absolute;top:0;left:0}.html-island{box-sizing:border-box;pointer-events:auto;border:1px solid var(--ui-border);border-radius:var(--ui-radius-lg);background:var(--ui-surface);color:var(--ui-text);box-shadow:var(--ui-shadow-xs);font-family:var(--ui-font);transition:top .18s var(--ui-ease), left .18s var(--ui-ease);padding:14px 18px;position:absolute}.html-island.is-unplaced{visibility:hidden;pointer-events:none;transition:none}.html-island>.wiki-markdown>:first-child{margin-top:0}.html-island>.wiki-markdown>:last-child{margin-bottom:0}@media (prefers-reduced-motion:reduce){.html-island{transition:none}}.html-page-errors{border:1px solid var(--ui-border);border-left:3px solid var(--ui-danger);border-radius:var(--ui-radius);background:var(--ui-surface);color:var(--ui-text-2);align-items:flex-start;gap:10px;margin:0 0 12px;padding:10px 12px;font-size:13px;line-height:1.45;display:flex}.html-page-errors>i{color:var(--ui-danger);margin-top:2px}.html-page-errors ul{flex:auto;min-width:0;margin:0;padding:0;list-style:none}.html-page-errors code{font-family:var(--ui-font-mono);overflow-wrap:anywhere;font-size:12px}.html-page-errors-close{border-radius:var(--ui-radius-sm);width:26px;height:26px;color:var(--ui-muted);cursor:pointer;background:0 0;border:0;flex:none}.html-page-errors-close:hover{background:var(--ui-hover);color:var(--ui-text)}.wiki-page-layout.is-html .wiki-page{max-width:none}.html-editor .wiki-editor-preview{padding:20px 24px 48px}.html-editor-pending{justify-content:center;padding:48px 0;display:flex}.html-editor-tools{align-items:center;gap:6px;display:flex}.html-editor-tools .wiki-button{height:30px;padding:0 10px;font-size:13px}.wiki-toolbar .html-editor-tools .wiki-button{width:auto;color:var(--ui-text)}.wiki-toolbar .html-editor-menu-list button{width:100%;height:auto;min-height:0}.html-editor-menu{position:relative}.html-editor-menu-list{z-index:30;border:1px solid var(--ui-border);border-radius:var(--ui-radius-lg);background:var(--ui-surface);min-width:250px;max-height:min(420px,70vh);box-shadow:var(--ui-shadow-md);padding:6px;position:absolute;top:36px;left:0;overflow:auto}.html-editor-menu-list button{border-radius:var(--ui-radius-sm);width:100%;color:var(--ui-text);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;align-items:flex-start;gap:10px;padding:8px 10px;font-size:13.5px;display:flex}.html-editor-menu-list button:hover,.html-editor-menu-list button:focus-visible{background:var(--ui-hover);outline:none}.html-editor-menu-list button>i{width:16px;color:var(--ui-accent);text-align:center;margin-top:3px}.html-editor-menu-list small{color:var(--ui-muted);font-size:12px;line-height:1.35;display:block}.html-editor-menu-sep{background:var(--ui-border);height:1px;margin:4px 6px}.html-editor-count{background:var(--ui-accent-soft);min-width:18px;height:18px;color:var(--ui-accent-text);border-radius:999px;justify-content:center;align-items:center;padding:0 5px;font-size:11px;font-weight:600;display:inline-flex}.html-editor-warnings{border:1px solid var(--ui-border);border-radius:var(--ui-radius);background:var(--ui-surface);color:var(--ui-text-2);margin:16px 0 0;padding:10px 14px;font-size:13px;list-style:none}.html-editor-warnings li+li{margin-top:4px}.html-editor-warnings strong{color:var(--ui-danger);font-weight:600}.wiki-modal:has(.html-libs){flex-direction:column;width:min(820px,100%);max-height:calc(100vh - 48px);display:flex}.wiki-modal:has(.html-libs) .wiki-modal-body{min-height:0;overflow:auto}.html-libs-lead{color:var(--ui-muted);margin:0 0 12px}.html-libs-lead code{font-family:var(--ui-font-mono);font-size:12px}.html-libs-used{flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 16px;display:flex}.html-libs-used>span{color:var(--ui-muted);font-size:13px}.html-libs-chip{border:1px solid var(--ui-accent-border);background:var(--ui-accent-softer);height:26px;color:var(--ui-accent-text);border-radius:999px;align-items:center;gap:6px;padding:0 6px 0 10px;font-size:12.5px;font-weight:600;display:inline-flex}.html-libs-chip button{width:18px;height:18px;color:inherit;cursor:pointer;background:0 0;border:0;border-radius:999px;justify-content:center;align-items:center;padding:0;display:inline-flex}.html-libs-chip button:hover{background:var(--ui-accent-tint)}.html-libs-group{margin:0 0 18px}.html-libs-group h3{color:var(--ui-muted);letter-spacing:.04em;text-transform:uppercase;margin:0 0 8px;font-size:12px;font-weight:600}.html-libs-grid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px;margin:0;padding:0;list-style:none;display:grid}.html-libs-card{border:1px solid var(--ui-border);border-radius:var(--ui-radius-lg);background:var(--ui-surface);flex-direction:column;gap:6px;padding:12px;display:flex}.html-libs-card.is-used{border-color:var(--ui-accent-border);background:var(--ui-accent-softer)}.html-libs-card strong{font-size:14px}.html-libs-card p{color:var(--ui-text-2);margin:0;font-size:13px;line-height:1.45}.html-libs-card pre{border-radius:var(--ui-radius-sm);background:var(--ui-bg);max-height:54px;color:var(--ui-muted);font-family:var(--ui-font-mono);white-space:pre-wrap;overflow-wrap:anywhere;margin:0;padding:6px 8px;font-size:11.5px;line-height:1.4;overflow:hidden}.html-libs-actions{flex-wrap:wrap;gap:6px;margin-top:auto;padding-top:4px;display:flex}.html-libs-actions .wiki-button{height:28px;padding:0 10px;font-size:12.5px}.wiki-template.wiki-format.is-picked{border-color:var(--wiki-accent);box-shadow:0 0 0 3px var(--wiki-accent-soft)}.wiki-template.wiki-format.is-picked .wiki-template-icon{background:var(--ui-accent);color:var(--ui-on-accent)}.wiki-templates-grid.wiki-format-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px;display:grid}@media (max-width:640px){.html-island{padding:10px 12px}.html-libs-grid{grid-template-columns:1fr}.html-editor-menu-list{min-width:0;position:fixed;inset:auto 16px 16px}}
