/* Forma workspace: one visual language for projects, modelling and dialogs. */
:root{--ink:#19283d;--muted:#607087;--paper:#fff;--border:#dce3ed;--accent:#2563eb;--accent-soft:#edf3ff;--navy:#152238;color:var(--ink);background:#f3f5f9;font-family:Inter,system-ui,-apple-system,'Segoe UI',sans-serif;color-scheme:light}
body{background:#f3f5f9;color:var(--ink)}
h1,h2,h3{font-weight:680;letter-spacing:-.7px}h1{font-size:38px}h2{font-size:24px}p{line-height:1.55}
button{color:#24354e;background:#fff;border-color:var(--border);border-radius:10px;min-height:46px;font-size:14px;font-weight:550;box-shadow:0 1px 2px #14223804}
button:hover{background:#f1f5fc;border-color:#a7bce3}button:active{background:#e4edfc}button:disabled{opacity:.46}
button.primary{background:var(--accent);border-color:var(--accent);color:#fff;box-shadow:0 3px 8px #2563eb20}button.primary:hover{background:#1d4ed8;border-color:#1d4ed8}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:3px solid #80aaff;outline-offset:2px}
.danger{background:#bb3644;border-color:#bb3644;color:white}.danger-text{color:#b52d40}
input:not([type=color]):not([type=file]),select,textarea{background:#f8faff;color:var(--ink);border-color:#cfd9e7;border-radius:9px;min-height:46px;font-size:15px}
input[type=checkbox]{accent-color:var(--accent)}input[type=color]{height:44px;width:58px;cursor:pointer}
.control-label,.fields label,.color-label,.check-label{color:#4e6077;font-size:13px}.control-label{margin:16px 0}.control-label input,.control-label select,.control-label textarea{margin-top:7px}
.fields{gap:10px}.fields input{background:#f8faff!important;font-size:16px;padding:11px 9px!important;font-variant-numeric:tabular-nums}
.muted,.footnote,.privacy-note{color:var(--muted);font-size:12px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.4px;color:#62748d}.section-label{font-size:11px;font-weight:700;letter-spacing:1px;color:#536880;margin:22px 0 10px}.badge{color:#607089;border-color:var(--border);font-size:9px}.counter{color:#526b8c;background:#eaf0f8;border:0;font-size:12px;padding:4px 8px}
.app-header{height:68px;padding:0 28px;gap:20px;background:var(--navy);border-color:#24334b;color:white}
.brand{color:#fff;font-size:16px;letter-spacing:1px;gap:4px}.brand>span:last-child{color:#9fb7dc;font-weight:550}.logo{background:#2c4770;color:#c2d7ff;border-radius:10px;font-size:26px;padding:2px 8px;margin-right:7px}
.project-status{max-width:48%;text-align:left;margin-left:auto}.project-status button{color:#f2f6ff;font-size:14px;font-weight:600;background:none;box-shadow:none;min-height:28px}.project-status small{color:#9aadc7;font-size:10px;margin-top:1px}.header-actions{gap:8px}.header-actions button{background:#243752;border-color:#384c68;color:#e1eaff;font-size:12px;min-height:42px}.header-actions button.primary{background:var(--accent);border-color:var(--accent);color:white}
#workspace-back{background:#243752;border-color:#384c68;color:white;min-width:44px;padding:8px}
.app-nav{height:58px;gap:18px;padding:0 28px;background:#fff;border-color:var(--border)}.app-nav button{font-size:13px;color:#65758b;box-shadow:none}.app-nav button span{color:#7286a2}.app-nav button.active,.app-nav button.active span{color:var(--accent)}.app-nav button.active:after{background:var(--accent);height:3px}
.page{max-width:1230px;padding:32px 28px 40px}.page-heading h1{font-size:34px;letter-spacing:-1px}.page-heading>p{color:var(--muted);font-size:14px}
.home-hero{display:flex;justify-content:space-between;gap:20px;padding:0 0 26px;border-color:var(--border);align-items:center}.home-hero h1{font-size:34px;letter-spacing:-1px;line-height:1.15;margin:10px 0}.home-hero h1 br{display:none}.home-hero p{font-size:14px;max-width:650px;margin:0 0 18px;color:var(--muted)}.home-hero .primary{font-size:14px;padding:12px 22px}.hero-drawing{display:none}
.section-heading{margin:26px 0 18px}.section-heading h2{font-size:23px}.section-heading .eyebrow{font-size:10px;letter-spacing:1px}.project-tools input,.project-tools button{font-size:13px}.project-grid{gap:18px}.project-card{border-radius:14px;background:#fff;box-shadow:0 3px 14px #14223805}.project-card:hover{border-color:#adc2e4}.card-open strong{font-size:16px;color:var(--ink);font-weight:650}.card-open>span{font-size:12px;color:var(--muted)}.card-open img,.card-placeholder{background:#e7edf6;height:168px}.card-placeholder{background:radial-gradient(ellipse at 50% 50%,#d5e4fb,transparent 80%),#edf2fa;color:#7195cd}.card-actions{border-color:var(--border);padding:5px 9px}.card-actions button{font-size:12px;min-height:44px;color:#566c8a}
.empty-state{border-color:#cbd7e7;background:#fff;border-radius:14px;color:var(--muted);padding:32px 22px}.empty-state>span{color:#779cd6}.empty-state h3{color:var(--ink);font-size:21px}.empty-state p{font-size:14px}.empty-state button{font-size:14px}.home-paths{gap:16px;margin-top:24px}.path-card{background:#fff;border-color:var(--border);padding:20px}.path-card strong{font-size:14px;font-weight:650}.path-card p{font-size:12px;color:var(--muted)}.path-icon{color:var(--accent);font-size:27px}.privacy-note{font-size:11px;line-height:1.6}
.module-card,.settings-card,.photo-workspace,.photo-details{border-color:var(--border);background:#fff;box-shadow:0 3px 12px #14223803;border-radius:14px}.module-card p,.settings-card>p,.photo-placeholder>p{color:var(--muted);font-size:13px}.notice,.mesh-notice{background:#f1f5fc;border-color:#dbe5f3;color:var(--ink);border-radius:10px}.notice p,.mesh-notice p{color:#5c708d;font-size:12px}.notice strong,.mesh-notice strong{font-size:13px;font-weight:650}.photo-placeholder{background:#f4f7fc;border-color:#c6d5eb}.photo-placeholder>span{color:#7296cc}
dialog{background:#fff;color:var(--ink);border:1px solid #d9e2ef;border-radius:18px;padding:26px;box-shadow:0 24px 100px #0b172952;max-height:calc(100dvh - 30px);overscroll-behavior:contain}dialog::backdrop{background:#111e3373;backdrop-filter:blur(5px)}dialog h2{font-size:25px;font-weight:700}dialog p{font-size:13px}.dialog-heading button{min-width:44px}.actions{gap:9px}.actions button{font-size:13px;min-height:46px}.export-size,.stl-preview{background:#edf3fc;color:#405a7e;border-color:#d9e4f3}.export-size strong{font-weight:700}.profile-tools .active{background:var(--accent-soft);color:var(--accent);border-color:#8fb1f2}.invalid{color:#b92f42!important}#toast{background:#14243e;color:white;border-radius:11px;box-shadow:0 8px 30px #14223826;font-size:13px}
/* The editor shares its task rail on desktop and phone. */
body.workspace-editor{overflow:hidden;padding-bottom:0}body.workspace-editor #app{height:100dvh;display:flex;flex-direction:column;overflow:hidden}body.workspace-editor .app-header{flex-shrink:0}body.workspace-editor #editor-screen{flex:1;min-height:0}body.workspace-editor #editor-content{height:100%;min-height:0}
body.workspace-editor .mobile-panel-hidden{display:none!important}body.workspace-editor .app-nav{display:none}body.workspace-editor .mobile-toolbar{display:flex}body:not(.workspace-editor) .mobile-toolbar{display:none}
body.workspace-editor #mobile-sheet{background:#fff;border-color:var(--border);padding:0 20px 24px;overscroll-behavior:contain;scroll-padding-top:62px}body.workspace-editor #mobile-sheet>.panel-heading,body.workspace-editor #mobile-sheet>h2{display:none}
body.workspace-editor .mobile-sheet-toggle{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:9;background:#fff;color:var(--ink);border:0;border-bottom:1px solid var(--border);border-radius:0;min-height:58px;width:calc(100% + 40px);margin:0 -20px 16px;padding:12px 20px;text-align:left;font-size:16px;font-weight:700;box-shadow:none}
body.workspace-editor #mobile-empty-edit{display:block;background:#f0f5fd;border:1px dashed #c6d7f0;border-radius:10px;padding:18px;color:#536c91;font-size:13px}
body.workspace-editor .shapes{gap:8px;margin:14px 0}.shapes button{border-color:#dce4f0;background:#f7faff;min-height:74px;font-size:12px;color:#3c567c}.shapes button b{color:#3e72c3;font-size:28px}.shapes button.active{background:var(--accent-soft);border-color:#77a1ed;color:var(--accent)}
body.workspace-editor #sketch-new{min-height:52px;font-size:14px}body.workspace-editor #mobile-sheet>.wide{font-size:13px;margin-top:10px}.object{font-size:14px;min-height:52px;border-radius:9px}.object.active{background:#edf4ff;border-color:#85aaf0;color:#164db2}.object small{font-size:11px;color:#687f9d}.dot{width:12px;height:12px;border-radius:4px}
#property-tabs{display:flex;gap:5px;overflow:auto;padding:3px 0 12px;margin-bottom:5px;scrollbar-width:thin}#property-tabs button{white-space:nowrap;flex:1;border-radius:8px;min-height:44px;padding:8px 10px;font-size:12px;background:#f1f4f9;border-color:transparent;color:#5c6f89;box-shadow:none}#property-tabs button.active,#property-tabs button[aria-selected=true]{background:#e9f0ff;border-color:#a5c0f3;color:#1f58bd;font-weight:700}.property-section>h3{font-size:16px;letter-spacing:-.2px}.property-section .control-label:first-child{margin-top:8px}
body.workspace-editor #transform-tools{border-color:#dbe5f3;background:#f6f9ff;border-radius:10px}body.workspace-editor #transform-tools button{color:#3f5d88;border-color:#d0ddec}body.workspace-editor #transform-tools button.active{background:#dfeaff;border-color:#83a8ed;color:#1e55b3}body.workspace-editor #transform-tools .muted{color:#60748e}
body.workspace-editor .pick-modes{padding:4px;background:#eef2f8;border-radius:10px;gap:4px}.pick-modes button{font-size:12px;border-color:transparent;background:none;box-shadow:none}.pick-modes .active{background:#fff;border-color:#abc4ef;color:#1e58bd}.cad-actions{gap:8px}.cad-actions button{font-size:12px;min-height:48px;background:#f7faff}.edge-picker{border-color:var(--border);font-size:12px;background:#f7f9fd}.edge-picker summary{min-height:28px;padding:4px 0}.filetools{border-color:var(--border);gap:7px}.filetools button{font-size:12px}.mesh-notice{padding:15px;margin:16px 0}.mesh-notice>button{margin:7px 4px 0 0;min-height:46px;font-size:12px}.mesh-notice .check-label{font-size:12px}#cad-panel{border-color:var(--border)}#cad-status,#cad-metrics,#cad-dimension-note,#hole-help{font-size:12px;color:#60738e}
body.workspace-editor #viewport{background:#e7edf5}body.workspace-editor .scene-title{top:20px;left:22px}.scene-title .eyebrow{color:#637a98;font-size:10px}.scene-title p{color:#6b819e;font-size:12px}.viewtools{gap:5px}.viewtools button{background:#ffffffed;border-color:#d2deee;min-height:44px;font-size:12px;box-shadow:0 3px 12px #14223809}.scale{color:#5d7595;font-size:11px}.hint{color:#617998;font-size:11px}#selection-chip{background:#fff;border-color:#b8cdef;color:#25548f;font-size:12px;box-shadow:0 4px 15px #14223810}#selection-choice{background:#fff;border-color:#c6d5e9}#viewport-status{background:#f6f9ffed;border-color:#a8bfdf;color:#34567f;box-shadow:0 4px 18px #14223814}#loading{color:#536f94}
@media(min-width:651px) and (min-height:501px){
 body.workspace-editor .app-header{height:68px;min-height:68px}body.workspace-editor #editor-content{display:grid;grid-template-columns:minmax(0,1fr) 360px;margin-left:82px}
 body.workspace-editor #viewport{position:relative;top:0;height:100%;min-height:0;max-height:none}body.workspace-editor #mobile-sheet{height:100%;overflow:auto;border-left:1px solid var(--border)}
 body.workspace-editor .mobile-toolbar{position:fixed;left:0;top:68px;bottom:0;width:82px;height:auto;z-index:30;flex-direction:column;align-items:stretch;gap:7px;padding:16px 8px;background:#1c2c45;border:0}
 body.workspace-editor .mobile-toolbar button{border:0;box-shadow:none;min-height:68px;padding:9px 4px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:10px;background:none;color:#a8bbd5;border-radius:10px}
 body.workspace-editor .mobile-toolbar button span{font-size:25px;line-height:1}body.workspace-editor .mobile-toolbar button.active{background:#304c77;color:#e1edff}body.workspace-editor #mobile-menu{margin-top:auto}
 body.workspace-editor .sheet-grip,body.workspace-editor .sheet-chevron{display:none}body.workspace-editor.mobile-nav-open .app-nav{position:fixed;left:94px;bottom:16px;z-index:40;display:flex;flex-direction:column;width:220px;height:auto;padding:8px;gap:3px;border:1px solid var(--border);border-radius:13px;box-shadow:0 12px 45px #12223830}
 body.workspace-editor .app-nav button{justify-content:flex-start;min-height:48px;border-radius:8px;padding:10px 14px;gap:12px}body.workspace-editor .app-nav button.active:after{display:none}
 body.workspace-editor .viewtools{top:18px;bottom:auto;right:18px}body.workspace-editor #selection-chip{top:76px;right:18px}body.workspace-editor #selection-choice{top:128px}
 body.workspace-editor #mobile-sheet-toggle{cursor:default}body.workspace-editor #toast{bottom:22px}
}
@media(max-width:950px) and (min-width:651px) and (min-height:501px){body.workspace-editor #editor-content{grid-template-columns:minmax(0,1fr) 320px;margin-left:72px}body.workspace-editor .mobile-toolbar{width:72px}body.workspace-editor #mobile-sheet{padding-left:16px;padding-right:16px}body.workspace-editor .mobile-sheet-toggle{width:calc(100% + 32px);margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:16px}.scene-title{display:none}}
@media(max-width:650px), (pointer:coarse) and (max-height:500px){
 body{padding-bottom:calc(72px + env(safe-area-inset-bottom))}.app-header{height:68px;padding:0 14px;gap:10px}.brand{font-size:12px;letter-spacing:.4px}.logo{font-size:24px;margin-right:4px;padding:2px 7px}.project-status{max-width:46%;text-align:right}.project-status button{font-size:12px}.project-status small{font-size:9px}.header-actions button{font-size:12px;padding:8px 11px}.app-nav{padding:0 5px env(safe-area-inset-bottom);height:calc(70px + env(safe-area-inset-bottom));gap:0;box-shadow:0 -3px 18px #14223806}.app-nav button{font-size:10px;gap:4px}.app-nav button span{font-size:22px}
 .page{padding:25px 18px 30px}.home-hero{padding-bottom:23px}.home-hero h1{font-size:30px;margin:9px 0 12px;letter-spacing:-.8px}.home-hero p{max-width:none;font-size:13px;margin-bottom:17px}.home-hero .eyebrow{font-size:10px}.home-hero .primary{font-size:14px}.section-heading{margin:23px 0 16px;gap:14px}.section-heading .eyebrow{font-size:9px}.section-heading h2{font-size:23px}.project-tools{flex-wrap:wrap;gap:8px}.project-tools input{flex:1 0 100%;font-size:14px!important}.project-tools button{flex:1;font-size:12px;min-height:44px}.project-grid{grid-template-columns:1fr;gap:15px}.card-open img,.card-placeholder{height:170px}.card-actions button{font-size:12px}.home-paths{grid-template-columns:1fr;gap:10px}.path-card{padding:16px}.path-card p{font-size:12px}.empty-state{padding:27px 17px}.empty-state p{font-size:13px}.page-heading h1{font-size:29px}.page-heading>p{font-size:13px}
 dialog{padding:22px 18px;border-radius:16px;width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}dialog h2{font-size:23px}dialog .actions{flex-wrap:wrap}dialog .actions button{flex:1 1 100px}.control-label input,.control-label select,.control-label textarea{font-size:16px}.two-fields{gap:10px}.photo-layout,.settings-layout{gap:15px}.settings-card,.photo-workspace,.photo-details{padding:20px}.fields label{font-size:12px}
 body.mobile-editor{--mobile-toolbar-height:calc(74px + env(safe-area-inset-bottom));--mobile-sheet-height:50px}body.mobile-editor.mobile-sheet-open{--mobile-sheet-height:min(45dvh,420px)}
 body.mobile-editor .app-header{background:var(--navy);height:calc(66px + env(safe-area-inset-top));min-height:calc(66px + env(safe-area-inset-top));padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right));gap:9px}body.mobile-editor .app-header .brand{font-size:10px}body.mobile-editor .app-header .logo{background:#2c4770;color:#c2d7ff;font-size:23px}body.mobile-editor .project-status{max-width:48%;text-align:left}body.mobile-editor .project-status button{font-size:13px;min-height:28px}body.mobile-editor .project-status small{font-size:9px;color:#a2b5cf}body.mobile-editor .header-actions button{font-size:12px;min-height:44px;padding:8px 11px}
 body.mobile-editor #editor-content{display:flex;flex-direction:column;margin-left:0}body.mobile-editor #viewport{flex:1;min-height:165px;height:auto;max-height:none}body.mobile-editor .scene-title{top:13px;left:14px}body.mobile-editor .scene-title .eyebrow{font-size:9px;letter-spacing:.8px}body.mobile-editor #selection-chip{top:37px;right:12px;max-width:74%;min-height:44px}body.mobile-editor .scale{font-size:10px;bottom:65px;left:14px}.hint{display:none}body.mobile-editor .viewtools{top:auto;bottom:12px;right:12px;gap:5px}body.mobile-editor .viewtools button{min-height:44px;min-width:44px;font-size:11px;padding:8px 10px}
 body.mobile-editor #mobile-sheet{height:var(--mobile-sheet-height);flex:0 0 var(--mobile-sheet-height);min-height:50px;border:1px solid #d5dfed;border-bottom:0;border-radius:18px 18px 0 0;padding:0 18px 20px;background:#fff;box-shadow:0 -5px 24px #172c4b10;scroll-padding-top:56px}body.mobile-editor .mobile-sheet-toggle{width:calc(100% + 36px);margin:0 -18px 13px;padding:16px 18px 10px;min-height:50px;border-radius:17px 17px 0 0;border-bottom:1px solid #e2e8f2;background:#fff;font-size:14px;color:var(--ink)}body.mobile-editor .sheet-grip{height:3px;background:#bdcbdf;top:6px}body.mobile-editor .sheet-chevron{font-size:23px;color:#5c7294}body.mobile-editor #mobile-sheet .control-label{font-size:13px}body.mobile-editor #mobile-sheet .fields label{font-size:12px}body.mobile-editor #mobile-sheet .fields input{font-size:16px}body.mobile-editor #mobile-sheet input:not([type=color]):not([type=checkbox]),body.mobile-editor #mobile-sheet select{min-height:48px}
 body.mobile-editor .mobile-toolbar{display:flex;position:fixed;left:0;right:0;top:auto;bottom:0;z-index:35;flex-direction:row;gap:3px;width:auto;height:var(--mobile-toolbar-height);padding:4px max(6px,env(safe-area-inset-left)) env(safe-area-inset-bottom);background:#17263d;border-top:1px solid #293d5b;box-shadow:0 -2px 12px #14223812}body.mobile-editor .mobile-toolbar button{flex:1;min-width:0;min-height:60px;padding:5px 2px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;font-size:10px;font-weight:550;border:0;border-radius:10px;background:none;color:#a7bbd8;box-shadow:none}body.mobile-editor .mobile-toolbar button span{font-size:24px;line-height:1.1}body.mobile-editor .mobile-toolbar button.active{background:#2d4770;color:#eff5ff;font-weight:700}body.mobile-editor #mobile-menu{margin-top:0}
 body.mobile-editor .app-nav{bottom:calc(var(--mobile-toolbar-height) + 8px);left:10px;right:10px;height:auto;min-height:80px;padding:7px;border:1px solid #d5e1f2;border-radius:14px;background:#fff;box-shadow:0 -5px 30px #14223830;z-index:36}body.mobile-editor.mobile-nav-open .app-nav{display:flex}body.mobile-editor .app-nav button{font-size:10px;padding:8px 2px;min-height:64px;color:#536c91}body.mobile-editor .app-nav button span{color:#587caf}.app-nav button.active:after{height:3px}
 body.mobile-editor #property-tabs{gap:5px;padding-bottom:10px}body.mobile-editor #property-tabs button{min-height:44px;font-size:12px;padding:8px 10px}.mesh-notice>button{width:100%;margin-right:0}body.mobile-editor #mobile-sheet .shapes button{min-height:70px;font-size:12px}body.mobile-editor #mobile-sheet .pick-modes button{min-height:46px;font-size:12px}body.mobile-editor #mobile-sheet .object{font-size:14px;min-height:52px}body.mobile-editor #mobile-sheet .object small{font-size:11px}
 body.mobile-editor #toast{bottom:calc(var(--mobile-toolbar-height) + 12px);font-size:12px}body.mobile-editor #viewport-status{font-size:12px}body.mobile-editor:not(.mobile-sheet-open) .mobile-sheet-toggle{margin-bottom:0}body.mobile-editor:not(.mobile-sheet-open) #mobile-sheet{padding-bottom:0;overflow:hidden}
}
@media(max-height:520px){body.mobile-editor .app-header{height:calc(54px + env(safe-area-inset-top));min-height:calc(54px + env(safe-area-inset-top))}body.mobile-editor.mobile-sheet-open{--mobile-sheet-height:min(40dvh,calc(100dvh - 54px - env(safe-area-inset-top) - var(--mobile-toolbar-height) - 130px))}body.mobile-editor #viewport{min-height:130px}body.mobile-editor .scale,body.mobile-editor .scene-title{display:none}body.mobile-editor #selection-chip{top:12px}body.mobile-editor #viewport-status{top:65px}body.mobile-editor .mobile-toolbar button{min-height:52px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
#workspace-back{display:none}body.workspace-editor #workspace-back{display:block;white-space:nowrap;font-size:12px;flex-shrink:0}.numeric-details{margin-top:18px;border:1px solid var(--border);border-radius:10px;padding:0 13px 12px;background:#f8faff}.numeric-details>summary{cursor:pointer;min-height:48px;display:list-item;align-content:center;font-size:12px;font-weight:600;color:#4a648a}.numeric-details:not([open]){padding-bottom:0}.numeric-details .section-label:first-of-type{margin-top:8px}
@media(max-width:650px), (pointer:coarse) and (max-height:500px){body.mobile-editor .app-header .brand{display:none}body.mobile-editor #workspace-back{min-height:44px;min-width:44px;font-size:12px;padding:8px 10px}body.mobile-editor .project-status{max-width:none;flex:1;min-width:0;margin-left:0}body.mobile-editor .header-actions{flex-shrink:0}body.mobile-editor .project-status button{max-width:100%}}

@media(min-width:651px) and (min-height:501px){body.workspace-editor .mobile-sheet-toggle:disabled{opacity:1;cursor:default}}
body.workspace-editor #transform-tools button[aria-pressed=true]{background:#dfeaff;border-color:#83a8ed;color:#1e55b3}
