.editor-workspace{border:1px solid var(--control);border-radius:12px;overflow:hidden;background:var(--soft);margin-top:20px}.editor-menubar{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:12px 14px;background:var(--surface);border-bottom:1px solid var(--line)}.editor-menubar strong{margin-right:auto;font-size:14px}.editor-ribbon{display:flex;gap:0;flex-wrap:wrap;background:var(--surface);border-bottom:1px solid var(--line);padding:8px}.editor-group{padding:3px 9px;border-right:1px solid var(--line);display:flex;gap:4px;align-items:center;flex-wrap:wrap}.editor-group:last-child{border:0}.editor-group button{min-width:30px;height:30px;padding:4px 7px;border:1px solid transparent;border-radius:5px;background:transparent;color:var(--ink);font:13px Roboto;cursor:pointer}.editor-group button:hover,.editor-group button[aria-pressed=true]{background:var(--selected);color:var(--blue);border-color:var(--line)}.editor-group select{height:30px;min-height:30px;max-width:130px;border:1px solid var(--line);border-radius:5px;background:var(--input);color:var(--ink);padding:4px;font-size:12px}.editor-group .ss-wrap{width:110px;min-width:60px}.editor-group .ss-trigger{height:30px!important;min-height:30px!important;font-size:12px!important;padding:4px 25px 4px 8px!important}.editor-group label{font-size:11px;color:var(--muted);display:flex;gap:5px;align-items:center}.editor-group input[type=color]{width:26px;height:26px;min-height:26px;border:0;padding:2px;background:transparent;cursor:pointer}.editor-canvas{padding:28px;max-height:650px;overflow:auto}.editor-document{max-width:850px;margin:auto;min-height:460px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);padding:48px;outline:none;color:var(--ink);font:15px/1.75 Roboto,Arial;overflow-wrap:anywhere}.editor-document:focus{border-color:var(--control)}body.catalog .editor-document h1{font-size:30px}body.catalog .editor-document h2{font-size:24px}body.catalog .editor-document h3{font-size:19px}body.catalog .editor-document p{font-size:inherit;margin:0 0 14px;line-height:inherit}.editor-document ul,.editor-document ol{padding-left:25px}.editor-document blockquote{border-left:3px solid var(--blue);margin:18px 0;padding:10px 18px;background:var(--soft)}.editor-document pre{white-space:pre-wrap;background:var(--soft);padding:14px;border-radius:6px;font:13px/1.6 monospace}.editor-document img{max-width:100%;height:auto}.editor-document table{border-collapse:collapse;width:100%;margin:16px 0}.editor-document td,.editor-document th{border:1px solid var(--control);padding:8px;min-width:55px;height:35px}.editor-document hr{border:0;border-top:1px solid var(--control);margin:20px 0}.editor-status{display:flex;gap:16px;align-items:center;flex-wrap:wrap;padding:10px 16px;background:var(--surface);border-top:1px solid var(--line);font-size:12px;color:var(--muted)}.editor-status span:last-child{margin-left:auto}.editor-workspace.fullscreen{position:fixed;inset:12px;z-index:90;display:flex;flex-direction:column;box-shadow:0 12px 80px #0004}.editor-workspace.fullscreen .editor-canvas{flex:1;max-height:none}.editor-find{padding:12px 16px;display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid var(--line);background:var(--surface)}.editor-find input{max-width:220px}.editor-source{white-space:pre-wrap;max-height:450px;overflow:auto;font:12px/1.6 monospace;background:var(--soft);padding:18px;border:1px solid var(--line);border-radius:8px}.editor-help{columns:2;line-height:2;color:var(--muted);font-size:13px}.editor-document .page-break{border-top:2px dashed var(--control);margin:24px 0;height:10px}.editor-document figure{margin:18px 0}.editor-document figcaption{font-size:12px;color:var(--muted);text-align:center}.editor-document [data-merge]{background:var(--selected);border-radius:4px;padding:2px 5px;color:var(--blue)}@media(max-width:700px){.editor-canvas{padding:10px}.editor-document{padding:22px;min-height:350px}.editor-group{padding:5px;border:0}.editor-help{columns:1}.editor-workspace.fullscreen{inset:0}.editor-menubar .button{font-size:12px}.editor-status{gap:8px}}
/* A single focus boundary, with no stacked ring around the document. */
body.catalog .editor-document:focus,body.catalog .editor-document:focus-visible{outline:none;box-shadow:none;border-color:var(--focus-stroke)}
.editor-group button svg{display:block}.editor-group button{display:inline-flex;align-items:center;justify-content:center}
.editor-document font[size="1"]{font-size:10px}.editor-document font[size="2"]{font-size:13px}.editor-document font[size="3"]{font-size:16px}.editor-document font[size="4"]{font-size:18px}.editor-document font[size="5"]{font-size:24px}.editor-document font[size="6"]{font-size:32px}.editor-document font[size="7"]{font-size:48px}
