/* v0.14 — density affects chrome, never zooms the page or shrinks text. */
:root{--gu-instructor-relative-scale:1;--gu-space: .85;--fe-font-scale:1}
html[data-gu-display="ready"]{font-size:calc(100% * var(--fe-font-scale))!important}
html[data-gu-density="default"]{--gu-space:1}
html[data-gu-density="roomy"]{--gu-space:1.15}
html[data-gu-display="ready"] body :is(.section){padding-block:calc(48px * var(--gu-space))!important}
html[data-gu-display="ready"] body :is(.nav,.navlinks,.actions,.fe-page-actions,.admin-toolbar,.v132-subtabs){gap:calc(16px * var(--gu-space))!important}
html[data-gu-display="ready"] body :is(.card,.v13-card,.admin-card,.product-card,.store-card,.fe-metric){padding:calc(24px * var(--gu-space))!important}
html[data-gu-display="ready"] body :is(.grid,.admin-grid,.fe-pref-grid,.v132-grid){gap:calc(24px * var(--gu-space))!important}
html[data-gu-display="ready"] body :is(.dashboard-sidebar,.admin-sidebar){padding:calc(18px * var(--gu-space))!important}
html[data-gu-display="ready"] body :is(.dashboard-sidebar,.admin-sidebar) :is(a,button){padding-block:calc(12px * var(--gu-space))!important;min-height:32px}
html[data-gu-display="ready"] body :is(.btn,.nav-cta){padding-block:calc(12px * var(--gu-space))!important;padding-inline:calc(20px * var(--gu-space))!important;min-height:36px}
/* Exclude chart SVG/canvas, fixed teaching grids and stage positions from density.
   The instructor's invisible reserve and visible copy MUST share the same size. */
html[data-gu-display="ready"] body :is(.gu-v33-instructor-typing,.gu-v33-instructor-reserve,.gu-v33-instructor-reply,.gu-v33-instructor-member-question,.gu-instructor-text-preview){font-size:calc(1rem * var(--gu-instructor-relative-scale))!important}
html[data-gu-display="ready"] body .gu-v33-instructor-reply :is(p,li){font-size:inherit!important}
.gu-display-settings{padding:20px 0;border-block:1px solid #8792b833;margin-block:16px}
.gu-display-settings h3{margin:6px 0 12px}.gu-display-settings>p{max-width:72ch}
.gu-display-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:24px 0}
.gu-display-grid label{display:flex;flex-direction:column;gap:8px;font-weight:600}
.gu-display-grid select{width:100%;min-height:44px;padding:10px;border:1px solid #8792b866;border-radius:7px;background:var(--panel,#101522);color:inherit;font:inherit}
.gu-display-grid small{font-size:.82rem;font-weight:400;line-height:1.6;color:var(--muted,#aebdcc)}
.gu-display-preview{padding:16px;border:1px solid #8792b844;border-radius:8px;margin-block:20px;overflow-wrap:anywhere}
.gu-display-preview p{margin:8px 0}.gu-display-settings .actions{display:flex;flex-wrap:wrap}
.gu-display-settings [hidden]{display:none!important}
.gu-philosophy-links{display:flex;flex-wrap:wrap;gap:14px;margin-block:14px;font-size:.85rem}
.gu-philosophy-links a,.signin-path a{color:inherit;text-underline-offset:5px;text-decoration-thickness:1px}
.gu-philosophy-links a:hover,.signin-path a:hover{color:#c5b5ff}
.gu-philosophy{max-width:960px}.gu-philosophy-intro{max-width:68ch}
.gu-philosophy-nav{display:flex;flex-wrap:wrap;gap:12px 28px;padding:20px 0;border-block:1px solid #8792b844;margin:28px 0}
.gu-philosophy section{padding:36px 0;border-bottom:1px solid #8792b844;scroll-margin-top:120px;max-width:76ch}
.gu-philosophy section:target{border-left:3px solid #b8a1ff;padding-left:20px}
.gu-philosophy section h2{margin:0 0 16px;font-size:2rem}.gu-philosophy section h3{font-size:1.08rem;margin:24px 0 8px}
.gu-philosophy .gu-checkpoint{border-left:2px solid #b8a1ff;padding-left:18px;margin-top:22px}
@media(max-width:640px){.gu-display-grid{grid-template-columns:minmax(0,1fr)}.gu-philosophy section:target{padding-left:12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}}

html[data-gu-display="ready"] body main.gu-signin-page#gu-main-content{padding-block:calc(64px * var(--gu-space))!important}
html[data-gu-display="ready"] body main.gu-signin-page#gu-main-content .auth-page{column-gap:calc(80px * var(--gu-space))!important}
