/* Shared type scale. Keep this after component themes on every page. */
@font-face{font-family:"Golos Text";src:url("/assets/fonts/golos-text-variable.ttf") format("truetype");font-style:normal;font-weight:400 900;font-display:swap}
:root{--font-ui:"Golos Text","Segoe UI",Arial,sans-serif;--text-xs:13px;--text-sm:14px;--text-ui:15px;--text-body:16px;--muted:#526478;--account-muted:#526478}
html{text-size-adjust:100%;-webkit-text-size-adjust:100%}
body,.account-page{font-family:var(--font-ui);font-size:var(--text-body);font-weight:400;line-height:1.65;-webkit-font-smoothing:auto}
button,input,select,textarea{font-family:var(--font-ui)}
body :is(h1,h2,h3,h4){font-family:var(--font-ui);font-weight:600;letter-spacing:-.025em;line-height:1.3}
body :is(p,li,dd){overflow-wrap:break-word}
.button,.account-page button,.cloud-panel button{font-family:var(--font-ui);font-weight:500;font-size:var(--text-sm);line-height:1.5}
.field,.field label,.field>span,.field input,.field select,.ask-row input{font-size:var(--text-ui);line-height:1.5}
.course-lesson>p,.reference-reader>p,.reference-reader li,.reference-reader dd,.training-panel>p,.gcode-lesson>p{font-size:var(--text-body);line-height:1.8}
.course-note,.small-note,.mentor-disclosure,.gcode-drawing figcaption,.machine-board figcaption{font-size:var(--text-sm);line-height:1.7;color:var(--muted)}
.eyebrow,.intro .eyebrow,.home-start-copy>.eyebrow,.sidebar-label{font-family:var(--font-ui);font-size:var(--text-xs);font-weight:500;letter-spacing:.07em;color:#526478}
.shell-breadcrumb,.shell-breadcrumb strong{font-size:var(--text-xs);color:#526478}
.sidebar-caption,.sidebar-account small,.account-bar [role=status]{color:#526478;font-size:var(--text-xs);line-height:1.6}
.sidebar-account strong{font-size:var(--text-sm)}
.account-menu-popover :is(button,a){font-size:var(--text-sm)!important;color:#344e69!important}
.home-copy{font-size:var(--text-body);line-height:1.8;color:#526478;max-width:530px}
.home-hero h1{font-weight:700;line-height:1.12;letter-spacing:-.04em}
.home-hero .button{font-size:var(--text-ui)}
.home-route-card{min-height:260px;padding:22px 18px}
.home-route-card strong{font-size:16px;line-height:1.4;max-width:none}
.home-route-card>p{font-size:var(--text-sm);line-height:1.65;max-width:190px;color:#526478}
.home-route-status{font-size:var(--text-xs);line-height:1.5;color:#526478;padding-top:26px}
.home-route-art{opacity:.35;bottom:30px}
.home-product-caption{display:none}
.home-note,.home-caption,.home-progress,.course-outline>summary{font-size:var(--text-sm);line-height:1.7;color:#526478}
.learning-bar #learning-progress{font-size:var(--text-xs);color:#526478}
.machine-metrics span,.stage-intro span,.machine-dimension-note{font-size:var(--text-xs);color:#526478}
.stage-intro p,.machine-view-tabs select,.machine-surface-tabs select{font-size:var(--text-sm)}
.login-card{max-width:500px;padding:36px 38px}
.login-card h1{font-size:30px;line-height:1.3;font-weight:600;letter-spacing:-.025em}
.login-card p{font-size:var(--text-body);line-height:1.7;color:var(--account-muted)}
.account-page label{font-size:var(--text-sm);font-weight:500;color:#344e69}
.account-page input{font-size:var(--text-body);font-family:var(--font-ui)}
.account-page .account-eyebrow{font:500 13px/1.6 var(--font-ui);letter-spacing:.06em;color:#526478!important}
.login-card .account-note{font-size:var(--text-sm);line-height:1.7}
.login-card button[type=submit]{font-size:var(--text-body);font-weight:600;min-height:48px}
.admin-main>p:not(.account-eyebrow),.admin-panel>p{font-size:var(--text-body);line-height:1.75;color:#526478}
.account-page table{font-size:var(--text-sm)}
.account-page th{font-size:var(--text-xs);font-weight:600;color:#526478}
.account-page td button,#admin-status,#login-status{font-size:var(--text-sm)}
/* Render a stable, legible startup card while modules and account data arrive. */
body.cloud-loading{padding-left:0}
.cloud-loading>.topbar{justify-content:center;border-bottom:1px solid var(--line);height:76px}
.cloud-loading>.topbar .brand{font-size:22px}
.account-boot{width:calc(100% - 40px);max-width:510px;margin:clamp(36px,10vh,110px) auto;padding:34px;background:#fff;border:1px solid #dfe6ee;border-radius:12px;box-shadow:0 12px 45px #233f6210;color:#344e69;font-size:var(--text-body)}
.account-boot h1{font-size:24px;margin:18px 0 12px}
.account-boot p{font-size:var(--text-body);line-height:1.7;margin:0;color:#526478}
.account-boot button,.account-boot a{display:inline-block;margin:18px 8px 0 0;font-family:var(--font-ui);font-size:var(--text-sm)}
.boot-indicator{display:block;width:32px;height:32px;border:3px solid #e5edff;border-top-color:#255beb;border-radius:50%;animation:account-spin .9s linear infinite}
.account-boot[data-state=error] .boot-indicator{animation:none;border-color:#b03c39;border-style:solid}
@keyframes account-spin{to{transform:rotate(360deg)}}
@media(max-width:1180px){.home-hero{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)}.home-route{grid-template-columns:repeat(2,minmax(0,1fr))}.home-route-card{min-height:225px}.home-route-card>p{max-width:220px}.home-copy{font-size:15px}.home-hero .button{font-size:14px}.home-action-row{flex-wrap:wrap}}
@media(max-width:880px){.home-hero{gap:14px}.app-sidebar .workshop-nav{gap:2px;justify-content:space-between;flex-wrap:wrap}.app-sidebar .workshop-nav>button,.app-sidebar .practice-menu>summary{font-size:13px;padding:9px 7px}.sidebar-account{min-width:90px}.home-route-card{min-height:225px}.home-route-card strong{font-size:16px}.home-route-card>p{font-size:14px}.home-note{font-size:13px}}
@media(max-width:560px){.home-hero h1{font-size:36px}.home-copy{font-size:16px}.home-action-row{flex-wrap:wrap;gap:14px}.home-progress{width:150px}.home-route{grid-template-columns:1fr}.home-route-card{min-height:185px;padding:20px}.home-route-card>p{max-width:calc(100% - 58px)}.home-route-art{width:110px;right:2px}.home-route-card:last-child .home-route-art{width:85px;right:18px}.home-code-art{font-size:13px}.home-route-status{font-size:13px;max-width:none}.sidebar-account strong{font-size:13px}.app-sidebar .brand{font-size:17px}.app-sidebar .workshop-nav{flex-wrap:wrap;justify-content:flex-start}.app-sidebar .workshop-nav>button,.app-sidebar .practice-menu>summary{font-size:13px;padding:9px 6px}.stage-intro p{font-size:14px}.workshop-steps button{font-size:13px!important}.course-outline>summary{font-size:14px}.login-card{margin:22px 16px;padding:28px 24px}.login-card h1{font-size:28px}.account-boot{padding:26px}}
@media(prefers-reduced-motion:reduce){.boot-indicator{animation:none}}
.drawing svg text{font-family:var(--font-ui);font-size:18px}.drawing svg #length-label{font-size:20px}
@media(max-width:560px){.drawing svg text,.drawing svg #length-label{font-size:28px}}
.home-route-art{width:64px!important;height:55px;top:18px;right:14px;bottom:auto;opacity:.65}.home-route-card:last-child .home-route-art{display:none}.home-route-number{margin-bottom:24px}
@media(max-width:560px){.app-sidebar .workshop-nav>button,.app-sidebar .practice-menu>summary{padding-inline:4px}.app-sidebar .workshop-nav{gap:0}}
