:root{--desk:#e4e7ec;--paper:#fff;--ink:#17202c;--muted:#586273;--rule:#c9cfd8;--tint:#eef1f5;--focus:#1f5fd1;--legal:"Century Schoolbook", "New Century Schoolbook", "Century Schoolbook L", C059, "TeX Gyre Schola", Georgia, serif;--ui:system-ui, -apple-system, "Segoe UI", sans-serif}*{box-sizing:border-box}body{font:14px/1.45 var(--ui);color:var(--ink);background:var(--desk);margin:0}h1,h2,p,ul,ol{margin:0}ul,ol{padding:0;list-style:none}a{color:inherit;text-underline-offset:.2em}button,input,select{font:inherit;color:inherit}:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.demo{grid-template-rows:auto minmax(0,1fr) auto;grid-template-columns:minmax(0,1fr);height:100dvh;min-height:560px;display:grid}.masthead{background:var(--paper);border-bottom:1px solid var(--rule);flex-wrap:wrap;justify-content:space-between;align-items:end;gap:12px 32px;padding:14px 20px 12px;display:flex}.masthead .title{flex:26rem;max-width:44rem}.masthead h1{font:700 1.55rem/1.15 var(--legal);letter-spacing:-.01em}.masthead .title p{color:var(--muted);margin-top:4px}.switches{flex-wrap:wrap;align-items:center;gap:10px 20px;display:flex}.switch-with-name{color:var(--muted);flex-wrap:wrap;align-items:center;gap:8px;display:flex}.switch{border:1px solid var(--ink);border-radius:4px;display:inline-flex;overflow:hidden}.switch button{white-space:nowrap;background:var(--paper);color:var(--ink);cursor:pointer;border:0;padding:5px 12px}.switch button+button{border-left:1px solid var(--ink)}.switch button[aria-pressed=true]{background:var(--ink);color:var(--paper)}.switch button:focus-visible{outline-offset:-4px}.status{color:var(--muted);padding:24px 20px}.colophon{color:var(--muted);background:var(--paper);border-top:1px solid var(--rule);flex-wrap:wrap;gap:4px 32px;padding:8px 20px;font-size:12.5px;display:flex}.colophon p:last-child{flex:30rem}.workspace{grid-template-columns:minmax(240px,320px) minmax(0,1fr);min-height:0;display:grid}.sidebar{background:var(--paper);border-right:1px solid var(--rule);padding:14px 0 20px;overflow-y:auto}.sidebar h2,.log h2{font:700 .95rem/1.2 var(--legal)}.sidebar h2{padding:0 16px 8px}.sidebar h2:not(:first-child){border-top:1px solid var(--rule);margin-top:18px;padding-top:14px}.label-head{cursor:pointer;align-items:center;gap:8px;padding:6px 16px 4px;font-weight:600;display:flex}.label-head input{accent-color:var(--label,var(--muted));margin:0}.label-name{flex:1}.count{font-variant-numeric:tabular-nums;color:var(--muted);font-weight:400}.label-head.structure{margin-top:8px}.note{border:0;border-left:3px solid var(--label,var(--rule));text-align:left;width:100%;color:var(--muted);cursor:pointer;background:0 0;padding:5px 16px 5px 13px;line-height:1.35;display:block}.note:hover,.note[aria-current=true]{background:var(--tint);color:var(--ink)}.note[aria-current=true]{border-left-width:6px;padding-left:10px}.note:focus-visible{outline-offset:-2px}.note strong{color:var(--ink);display:block}.stage{grid-template-rows:auto minmax(0,1fr) auto;grid-template-columns:minmax(0,1fr);min-width:0;min-height:0;display:grid}.toolbar{border-bottom:1px solid var(--rule);flex-wrap:wrap;align-items:center;gap:8px 20px;padding:8px 16px;display:flex}.cluster{align-items:center;gap:4px;display:flex}.toolbar button,.toolbar input,.toolbar select{border:1px solid var(--rule);background:var(--paper);border-radius:4px;height:30px;padding:0 10px}.toolbar button{cursor:pointer;min-width:30px}.toolbar button:hover:not(:disabled){border-color:var(--ink)}.toolbar button:disabled{color:var(--rule);cursor:default}.toolbar input{flex-shrink:1;width:13rem;min-width:0}.toolbar output{text-align:center;font-variant-numeric:tabular-nums;min-width:3.2em;color:var(--muted)}.toolbar .pages{margin-left:auto}.viewer{min-height:0}.log{background:var(--paper);border-top:1px solid var(--rule);height:8.6em;padding:8px 16px;overflow-y:auto}.log p,.log ol{color:var(--muted);margin-top:4px;font-size:12.5px}.log li{white-space:nowrap;font-family:ui-monospace,SF Mono,Menlo,Consolas,monospace}.log li:first-child{color:var(--ink)}.selection-menu{min-width:13rem;font:13px/1.3 var(--ui);color:var(--ink);background:var(--paper);border:1px solid var(--ink);border-radius:6px;gap:2px;padding:8px;display:grid;box-shadow:0 6px 20px #17202c38}.selection-menu p{padding:0 6px 4px;font-weight:600}.selection-menu button{text-align:left;cursor:pointer;background:0 0;border:0;border-radius:3px;padding:5px 6px}.selection-menu button:hover{background:var(--tint)}.selection-menu-label{align-items:center;gap:8px;display:flex}.swatch{border-radius:50%;width:10px;height:10px}.selection-menu-actions{border-top:1px solid var(--rule);color:var(--muted);gap:4px;margin-top:4px;padding-top:4px;display:flex}@media (width<=820px){.demo{height:auto}.workspace{grid-template-columns:minmax(0,1fr)}.stage{order:-1}.viewer{height:70dvh}.sidebar{border-right:0;border-top:1px solid var(--rule)}.toolbar .pages{margin-left:0}}
