:is(.gg-guide,#metal-sides .gg-guide){--gg-bg:light-dark(#fff,#171f24);--gg-stage:light-dark(#edf3f5,#202d35);--gg-ink:light-dark(#20313d,#edf2f4);--gg-muted:light-dark(#536774,#bbc9d1);--gg-line:light-dark(#d4dfe5,#40535e);--gg-accent:light-dark(#146f62,#92ddcb);--gg-select:light-dark(#e4f1ed,#203f37);--gg-metal:light-dark(#b7c8d1,#9cb2bf);--gg-edge:light-dark(#768f9e,#6e8998);--gg-x:light-dark(#a54429,#ffa086);--gg-y:light-dark(#126b91,#7ed3f5);font:14px/1.6 "Segoe UI",Arial,sans-serif;color:var(--gg-ink);background:var(--gg-bg);box-sizing:border-box;display:grid;grid-template-rows:auto auto auto minmax(0,1fr);gap:0}
:is(.gg-guide,#metal-sides .gg-guide) *{box-sizing:border-box}:is(.gg-guide,#metal-sides .gg-guide) [hidden]{display:none!important}:is(.gg-guide,#metal-sides .gg-guide) button,:is(.gg-guide,#metal-sides .gg-guide) input,:is(.gg-guide,#metal-sides .gg-guide) a{font:inherit}:is(.gg-guide,#metal-sides .gg-guide) button,:is(.gg-guide,#metal-sides .gg-guide) .gg-icon-link,:is(.gg-guide,#metal-sides .gg-guide) .gg-return{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:44px;min-height:44px;border:1px solid var(--gg-line);border-radius:8px;background:var(--gg-bg);color:var(--gg-ink);padding:8px 12px;cursor:pointer;text-decoration:none}:is(.gg-guide,#metal-sides .gg-guide) button:hover,:is(.gg-guide,#metal-sides .gg-guide) a:hover{background:var(--gg-select)}:is(.gg-guide,#metal-sides .gg-guide) button:disabled{opacity:.45;cursor:default}:is(.gg-guide,#metal-sides .gg-guide) :focus-visible{outline:2px solid var(--gg-accent);outline-offset:3px}:is(.gg-guide,#metal-sides .gg-guide) [aria-pressed=true]{border-color:var(--gg-accent);background:var(--gg-select);color:var(--gg-accent)}
dialog.gg-guide{width:min(1400px,calc(100% - 32px));height:min(900px,calc(100svh - 32px));max-width:none;max-height:none;margin:auto;padding:0;border:1px solid var(--gg-line);border-radius:12px;overflow:hidden}:is(dialog.gg-guide,#metal-sides dialog.gg-guide):not([open]){display:none}:is(.gg-guide,#metal-sides .gg-guide)::backdrop{background:#10212bbb}.gg-guide-open{overflow:hidden}.gg-head{display:flex;align-items:center;gap:8px;padding:14px 18px;border-bottom:1px solid var(--gg-line)}.gg-brand{flex:1;min-width:0;display:grid;gap:0}.gg-brand strong{font-size:18px;font-weight:600;line-height:1.3}.gg-eyebrow{color:var(--gg-accent);font-size:13px;margin:0 0 6px}.gg-brand .gg-eyebrow{font-size:13px;margin:0}:is(.gg-guide,#metal-sides .gg-guide) svg{width:22px;height:22px;flex:none}:is(.gg-guide,#metal-sides .gg-guide) .gg-icon-button,:is(.gg-guide,#metal-sides .gg-guide) .gg-icon-link{padding:10px;width:44px;height:44px;flex:none}.gg-icon-button>span{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
.gg-search{display:flex;gap:8px;padding:12px 18px;margin:0;border-bottom:1px solid var(--gg-line)}.gg-search input{display:block;flex:1;min-width:0;min-height:44px;border:1px solid var(--gg-line);border-radius:8px;background:var(--gg-stage);color:var(--gg-ink);padding:8px 12px;font-size:16px}.gg-search input::placeholder{color:var(--gg-muted);opacity:1}.gg-search button[type=submit]{background:var(--gg-select);border-color:var(--gg-accent);color:var(--gg-accent)}.gg-sr{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}.gg-status{padding:6px 18px;margin:0;color:var(--gg-muted);font-size:13px}.gg-status:empty{display:none}
.gg-layout{display:grid;grid-template-columns:245px minmax(0,1fr);min-height:0;overflow:hidden}.gg-nav{overflow:auto;border-right:1px solid var(--gg-line);padding:18px 12px;overscroll-behavior:contain}.gg-nav-group{margin-bottom:18px}.gg-nav h2{font-size:13px;font-weight:600;color:var(--gg-muted);margin:0 8px 6px}.gg-topic{display:flex;align-items:center;min-height:44px;padding:9px 10px;border-radius:6px;color:var(--gg-ink);text-decoration:none;line-height:1.5}.gg-topic strong{font-weight:400}.gg-topic[aria-current]{background:var(--gg-select);color:var(--gg-accent);box-shadow:inset 3px 0 var(--gg-accent)}.gg-main{overflow:auto;min-width:0;padding:26px 32px;overscroll-behavior:contain;scrollbar-gutter:stable}.gg-main:focus{outline:0}.gg-main h1{font-size:24px;line-height:1.25;font-weight:600;margin:0 0 12px;max-width:28ch}.gg-main h2{font-size:17px;line-height:1.4;margin:0 0 8px;font-weight:600}.gg-main p{margin:0 0 14px;max-width:70ch}.gg-main .gg-lead{font-size:15px;line-height:1.6;color:var(--gg-muted);margin-bottom:22px}.gg-article-head{margin-bottom:14px}
.gg-featured{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:28px}.gg-result{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:16px 18px;border:1px solid var(--gg-line);border-radius:9px;color:var(--gg-ink);text-decoration:none;line-height:1.5}.gg-result>strong{font-size:15px;font-weight:600}.gg-result>span:last-child{color:var(--gg-muted)}.gg-family{font-size:13px;color:var(--gg-accent);background:var(--gg-select);border-radius:4px;padding:1px 6px}.gg-results{display:grid;gap:10px}.gg-index{display:grid;gap:22px}.gg-index section{border-top:1px solid var(--gg-line);padding-top:18px}.gg-index h2{margin-left:10px}.gg-family-tabs{display:flex;gap:8px;margin:0 0 10px}.gg-example{color:var(--gg-muted);font-size:13px}.gg-step-nav{display:flex;gap:8px;margin:18px 0 12px;flex-wrap:wrap}.gg-step-nav button{padding:8px;width:44px;height:44px;font-variant-numeric:tabular-nums}.gg-figure{margin:0;border:1px solid var(--gg-line);border-radius:10px;overflow:hidden}.gg-illustration{position:relative;aspect-ratio:2;background:var(--gg-stage);isolation:isolate;overflow:hidden}:is(.gg-guide,#metal-sides .gg-guide) .gg-illustration>svg{display:block;width:100%;height:100%;fill:none;stroke-linejoin:round;stroke-linecap:round}.gg-metal{fill:var(--gg-metal);fill-rule:evenodd;stroke:var(--gg-edge);stroke-width:1}.gg-face-inner{fill:var(--gg-edge)}.gg-face-cap{fill:var(--gg-bg)}.gg-hole{fill:var(--gg-bg);stroke:var(--gg-edge);stroke-width:1.2}.gg-target{fill:none;stroke:var(--gg-accent);stroke-width:2;vector-effect:non-scaling-stroke}.gg-axis-x,.gg-axis-y{fill:none;stroke-width:1;vector-effect:non-scaling-stroke}.gg-axis-x{stroke:var(--gg-x)}.gg-axis-y{stroke:var(--gg-y)}.gg-profile,.gg-floor{fill:none;stroke-width:5;stroke:var(--gg-edge);vector-effect:non-scaling-stroke}.gg-profile-2{stroke:var(--gg-accent)}.gg-cut{fill:var(--gg-stage);stroke:var(--gg-accent);stroke-width:1.5;vector-effect:non-scaling-stroke}.gg-link{stroke:var(--gg-accent);stroke-width:2;stroke-dasharray:5 5;vector-effect:non-scaling-stroke}.gg-copy{fill:none;stroke:var(--gg-accent);stroke-width:2;stroke-dasharray:4 3;vector-effect:non-scaling-stroke}.gg-art-label{position:absolute;transform:translate(-50%,-50%);font-size:13px;line-height:1.4;white-space:nowrap;color:var(--gg-ink);background:var(--gg-bg);border-radius:3px;padding:1px 4px}.gg-art-label.gg-x{color:var(--gg-x)}.gg-art-label.gg-y{color:var(--gg-y)}.gg-art-label.gg-active{color:var(--gg-accent)}.gg-caption{padding:18px 20px}.gg-step-count{display:block;font-size:13px;color:var(--gg-muted);margin-bottom:7px}.gg-caption p:last-child{margin-bottom:0}.gg-command{display:flex;align-items:center;gap:10px;padding:12px 14px;margin:12px 0;border:1px solid var(--gg-accent);border-radius:8px;color:var(--gg-accent);background:var(--gg-select)}.gg-command strong{font-weight:500}.gg-command-detail{margin-left:auto;color:var(--gg-ink)}.gg-sequence{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 26px}.gg-sequence button:nth-child(2){background:var(--gg-select);color:var(--gg-accent);border-color:var(--gg-accent)}.gg-sequence [data-gg-play]{margin-left:auto}.gg-related{border-top:1px solid var(--gg-line);padding-top:20px}.gg-related .gg-topic{border-bottom:1px solid var(--gg-line);border-radius:0}.gg-playing .gg-command{animation:gg-pulse 1.5s ease-in-out 2}@keyframes gg-pulse{50%{opacity:.55;transform:translateY(-2px)}}
body.gg-page{margin:0;color-scheme:inherit;background:light-dark(#fff,#171f24)}.gg-page>:is(.gg-guide,#metal-sides .gg-guide){height:100svh;width:100%;max-width:1400px;margin-inline:auto}.gg-page .gg-layout{grid-template-columns:265px minmax(0,1fr)}.gg-page .gg-main{padding-inline:32px}.gg-page .gg-main>*{max-width:800px}
@media(max-width:900px){.gg-main{padding:20px}.gg-layout{grid-template-columns:210px minmax(0,1fr)}.gg-main h1{font-size:22px}.gg-featured{grid-template-columns:1fr}.gg-caption{padding:16px}.gg-sequence [data-gg-play]{margin-left:0}}
@media(max-width:680px){dialog.gg-guide{width:100%;height:100svh;margin:0;border:0;border-radius:0}.gg-head{padding:10px 12px;gap:6px}.gg-brand strong{font-size:17px}.gg-brand .gg-eyebrow{display:none}.gg-head>button:not(.gg-icon-button){padding:8px}.gg-search{padding:10px 12px;gap:6px}.gg-search button{padding:8px}.gg-layout,.gg-page .gg-layout{display:block}.gg-nav{display:none}.gg-main,.gg-page .gg-main{height:100%;padding:20px 14px max(24px,env(safe-area-inset-bottom));scrollbar-gutter:auto}.gg-status{padding-inline:14px}.gg-main h1{font-size:22px;max-width:none}.gg-main .gg-lead{font-size:14px}.gg-example{line-height:1.5}.gg-step-nav{gap:6px}.gg-caption{padding:15px 14px}.gg-command{padding:11px 12px;flex-wrap:wrap}.gg-command-detail{margin-left:0}.gg-sequence{gap:6px}.gg-sequence button{padding:8px 10px}.gg-art-label{font-size:13px}.gg-return{font-size:13px!important}.gg-head .gg-icon-link{display:none}}
@media(prefers-reduced-motion:reduce){:is(.gg-guide,#metal-sides .gg-guide) *{animation:none!important;scroll-behavior:auto!important}}

/* The reader also lives inside the editor's modal scope. Own its typography. */
:is(.gg-guide,#metal-sides .gg-guide) .gg-main h1{font:600 24px/1.25 "Segoe UI",Arial,sans-serif;margin:0 0 12px}
:is(.gg-guide,#metal-sides .gg-guide) .gg-main h2{font:600 17px/1.4 "Segoe UI",Arial,sans-serif;margin:0 0 8px}
:is(.gg-guide,#metal-sides .gg-guide) .gg-main p{font:400 14px/1.6 "Segoe UI",Arial,sans-serif;margin:0 0 14px}
:is(.gg-guide,#metal-sides .gg-guide) .gg-main .gg-lead{font-size:15px;color:var(--gg-muted);margin-bottom:22px}
:is(.gg-guide,#metal-sides .gg-guide) .gg-main .gg-example{font-size:13px;color:var(--gg-muted)}
:is(.gg-guide,#metal-sides .gg-guide) .gg-topic strong{font-size:14px;font-weight:400}
:is(.gg-guide,#metal-sides .gg-guide) .gg-result>strong{font-size:15px;font-weight:600}
:is(.gg-guide,#metal-sides .gg-guide) .gg-command strong{font-size:14px;font-weight:500}
@media(max-width:900px){:is(.gg-guide,#metal-sides .gg-guide) .gg-main h1{font-size:22px}}
@media(max-width:680px){:is(.gg-guide,#metal-sides .gg-guide) .gg-main .gg-lead{font-size:14px}}

.gg-face-guide{fill:var(--gg-select);fill-opacity:.32;stroke:var(--gg-accent);stroke-dasharray:4 3}

/* Canonical Figura wordmark; colors follow the reader theme. */
:is(.gg-guide,#metal-sides .gg-guide) .gg-logo{display:block;line-height:0}
:is(.gg-guide,#metal-sides .gg-guide) .gg-logo svg{display:block;width:108px;height:auto}
:is(.gg-guide,#metal-sides .gg-guide) .gg-logo .plane-top{fill:light-dark(#257f76,#6bc0b3)}
:is(.gg-guide,#metal-sides .gg-guide) .gg-logo .plane-fold{fill:light-dark(#91c6bc,#b5e5dd)}
:is(.gg-guide,#metal-sides .gg-guide) .gg-logo .plane-body{fill:light-dark(#124d49,#4aaba0)}
:is(.gg-guide,#metal-sides .gg-guide) .gg-logo .wordmark{fill:var(--gg-ink)}
:is(.gg-guide,#metal-sides .gg-guide) .gg-brand strong{font-size:14px;margin-top:3px}
.gg-standalone{grid-template-rows:auto auto auto minmax(0,1fr) auto}.gg-head{grid-row:1}.gg-search{grid-row:2}.gg-status{grid-row:3}.gg-layout{grid-row:4}
.gg-footer{grid-row:5;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 18px;padding:4px 18px;border-top:1px solid var(--gg-line);color:var(--gg-muted);font-size:13px}.gg-footer a{display:inline-flex;align-items:center;min-height:44px;color:var(--gg-accent);text-decoration:none}.gg-footer a:hover{text-decoration:underline}
@media(max-width:900px){.gg-page .gg-main{padding-inline:20px}}
@media(max-width:680px){:is(.gg-guide,#metal-sides .gg-guide) .gg-logo svg{width:88px}:is(.gg-guide,#metal-sides .gg-guide) .gg-brand strong{font-size:13px}.gg-page .gg-main{padding-inline:14px}.gg-footer{padding-inline:12px;gap:0 8px}.gg-footer span{display:none}}

/* A step is a visible instruction + its specific frame, not a caption below it. */
.gg-step-nav{position:sticky;top:0;z-index:2;background:var(--gg-bg);padding-block:8px}
.gg-figure .gg-caption{border-bottom:1px solid var(--gg-line)}
.gg-selected{stroke:var(--gg-accent)}.gg-selected-face{fill:var(--gg-select);fill-opacity:.45;stroke:var(--gg-accent);stroke-width:2}
.gg-remove{fill:none;stroke:light-dark(#af3c28,#ff9c86);stroke-width:3;stroke-dasharray:5 4}.gg-art-label.gg-danger{color:light-dark(#af3c28,#ff9c86)}
.gg-orbit{fill:none;stroke:var(--gg-accent);stroke-width:1.5;stroke-dasharray:5 4}.gg-touch{fill:var(--gg-select);stroke:var(--gg-accent);stroke-width:2}.gg-card{fill:var(--gg-bg);stroke:var(--gg-line)}
@media(min-width:681px) and (max-height:740px){.gg-figure{display:flex;align-items:flex-start}.gg-figure .gg-caption{width:52%;flex:none;border:0;border-right:1px solid var(--gg-line)}.gg-figure .gg-illustration{width:48%;flex:none;margin-block:auto}}

.gg-fold{fill:none;stroke:var(--gg-accent);stroke-width:.8;stroke-dasharray:4 4;vector-effect:non-scaling-stroke}

.gg-art-label{width:max-content;max-width:calc(100% - 6px);white-space:normal;text-align:center}
