/* Shared Drapecut™ identity. Loaded after each workspace's layout styles. */
:root{--accent:#c60019;--ink:#353535;--red:#c60019;--brand-red:#c60019;--brand-grey:#353535}
body{color:var(--ink)}
button.primary,.primary{background-color:var(--brand-red);border-color:var(--brand-red)}
button.primary:hover:not(:disabled){background-color:#a90016;border-color:#a90016}
.brand-logo{object-fit:contain;object-position:left center}
.app>header{min-height:68px;height:auto;padding:10px 20px;gap:14px;border-bottom:1px solid #d4d6d8;background:#fff}
.app>header .brand{flex:0 0 auto;gap:0}
.app>header .brand-logo{width:230px;height:36px;max-width:100%}
.beta-info{position:relative;flex:none;margin-left:12px;font:12px/1.5 Archivo,Arial,sans-serif}
.beta-badge{display:inline-block;padding:3px 6px;border:1px solid #e6bdc2;border-radius:4px;background:#fff6f7;color:#a60015;font-size:9px;font-weight:600;letter-spacing:.12em;text-decoration:none}
.beta-help{position:absolute;left:0;top:calc(100% + 10px);width:260px;box-sizing:border-box;padding:15px;background:white;color:#353535;border:1px solid #d8dde2;border-top:2px solid #c60019;border-radius:7px;box-shadow:0 8px 28px #17253225;z-index:1200;opacity:0;visibility:hidden;transform:translateY(-4px);transition:opacity .16s,transform .16s,visibility .16s}
.beta-help::before{content:"";position:absolute;left:0;right:0;top:-12px;height:12px}
.beta-help strong{font-size:13px}.beta-help p{margin:7px 0 10px}.beta-help a{color:#c60019;font-weight:600;text-decoration:none}.beta-help a:hover{text-decoration:underline}
.beta-info:hover .beta-help,.beta-info:focus-within .beta-help{opacity:1;visibility:visible;transform:translateY(0)}
.beta-badge:focus-visible{outline:2px solid #c60019;outline-offset:3px}
@media(max-width:600px){.beta-info{margin-left:6px}.beta-help{left:auto;right:0;width:min(260px,85vw)}}
@media(prefers-reduced-motion:reduce){.beta-help{transition:none}}
.app>header .project-actions{margin-left:auto}
.app>header .file-actions{gap:8px}
.app>header .file-actions button{min-height:36px;padding:8px 12px;font-weight:600;border-radius:5px}
.app>header .account{border-left:1px solid #e2e3e5;padding-left:18px;flex:0 0 auto}
.app>header .account summary{min-height:36px;display:flex;align-items:center;gap:8px}
.ec-site-link{display:flex;align-items:center;justify-content:center;width:108px;min-height:36px;padding:4px 10px;border:1px solid #d7d9de;border-radius:5px;background:white;flex:0 0 auto}
.ec-site-link:hover{background:#f6f6f6;border-color:#b1b5ba}
.ec-site-link img{display:block;width:88px;height:28px;object-fit:contain}
.welcome #view{background:#e8e8e8}
body.welcome .app{height:auto;min-height:100dvh}
body.welcome .app>header{margin-bottom:0;position:sticky;top:0;z-index:100;flex-shrink:0;box-shadow:0 1px 8px #17253208}
body.welcome main{display:block;padding:0;flex:1}
body.welcome aside.setup,body.welcome aside.results{display:none}
/* The welcome page uses native scrolling; the loaded-model viewport keeps its
   separate touch gestures. Hit-test the welcome layer, not the canvas behind it. */
body.welcome #view{height:auto;min-height:calc(100dvh - 68px);border:0;border-radius:0;overflow:visible;touch-action:auto}
body.welcome #view>canvas{position:absolute;inset:0}
body.welcome #drop{position:relative;inset:auto;overflow:visible;min-height:calc(100dvh - 68px);pointer-events:auto;touch-action:auto}
.welcome #welcomeMesh{opacity:1}
.welcome #drop{padding:56px 40px 32px;align-items:flex-start;background:linear-gradient(110deg,rgba(232,233,233,.72),rgba(232,233,233,.06))}
.welcome-layout{width:min(1160px,100%);grid-template-columns:minmax(0,1fr) 380px;gap:32px 64px;align-items:start}
:is(#drop,.welcome-exit-content) .welcome-story{text-shadow:none;padding:0}
:is(#drop,.welcome-exit-content) .welcome-story .welcome-kicker{color:var(--accent);font-size:12px;font-weight:600;letter-spacing:2px;margin:0 0 18px}
:is(#drop,.welcome-exit-content) .welcome-story h1{font-size:clamp(34px,3.4vw,52px);line-height:1.12;letter-spacing:-1.6px;font-weight:600;margin:0 0 22px;color:#252525}
:is(#drop,.welcome-exit-content) .welcome-story .welcome-lede{font-size:16px;line-height:1.55;font-weight:500;max-width:540px;margin:0 0 24px}
.intro-tabs{display:flex;gap:24px;border-bottom:1px solid #c9cdcf;margin:0 0 16px}
.intro-tabs button{font-family:inherit;font-size:14px;line-height:1.4;font-weight:600;color:var(--accent);padding:0 0 10px;border-radius:0;border:0;border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap}
.intro-tabs button[aria-selected="true"]{border-bottom-color:var(--accent)}
.intro-tabs button:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
#introPanel{display:flow-root;font-family:inherit;font-size:13.5px;line-height:1.65;max-width:none;min-height:112px;color:#353535}
.welcome-layout{overflow-anchor:none}
#introPanel p{margin:0 0 10px}
#introPanel ol{padding-left:23px;margin:0}
#introPanel li{padding-left:6px;margin-bottom:8px}
:is(#drop,.welcome-exit-content) .welcome-layout>.box{margin-top:20px;width:100%;padding:28px;border:1px solid #e1e2e3;border-radius:9px;background:#fff;box-shadow:0 8px 28px #0000000c;backdrop-filter:none}
#drop .box h2{font-size:22px;line-height:1.25;font-weight:600;letter-spacing:-.4px;margin:0 0 16px}
#drop .box>p{font-family:inherit;font-size:13px;line-height:1.6;color:#565b61;margin:0 0 20px}
.welcome-project-actions{display:inline-grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-width:100%;vertical-align:top}
.welcome-project-actions>button{box-sizing:border-box;margin:0;font-size:14px;font-weight:600;padding:11px 16px;border-radius:5px}
#drop .examples{border-top:1px solid #e2e3e5;margin-top:24px;padding-top:17px}
#drop .examples>span{font-family:inherit;font-size:12px;color:#656970}
.welcome-free{grid-column:1/-1;display:grid;grid-template-columns:280px minmax(0,1fr);align-items:start;gap:26px;padding:24px;border:0;border-radius:7px;background:#fff;box-shadow:none}
.welcome-free-photo{align-self:start;border-radius:4px;overflow:hidden}
.welcome-free-photo img{display:block;width:100%;height:auto;aspect-ratio:1.79;object-fit:cover}
.welcome-free .welcome-kicker{display:block;color:var(--accent);font-size:12px!important;letter-spacing:.3px!important;line-height:1.4;font-weight:600;margin:0 0 10px}
.welcome-free h2{font-size:20px;font-weight:600;line-height:1.3;margin:0 0 12px;letter-spacing:-.3px}
.welcome-free p{font-size:13px;line-height:1.65;margin:0 0 12px;max-width:none}
.welcome-free a{color:var(--accent);text-decoration:none;font-weight:700}
.welcome-free a:hover{text-decoration:underline}
.welcome-free .welcome-free-link{font-size:14px;display:inline-flex;gap:8px;align-items:center;margin:0}
.book-logo{width:200px!important;height:auto!important;object-fit:contain}
body>header .brand>.brand-logo{width:240px;height:38px}
@media(min-width:861px) and (max-height:850px){
 .welcome #drop{padding-top:42px}
 .welcome-layout{row-gap:30px}
 :is(#drop,.welcome-exit-content) .welcome-story h1{font-size:clamp(34px,3.4vw,48px);margin-bottom:20px}
 :is(#drop,.welcome-exit-content) .welcome-story .welcome-lede{font-size:16px}
 .welcome-free{padding:24px 28px}
}
@media(max-width:1200px){
 .app>header{gap:12px;padding:10px 16px}
 .app>header .brand-logo{width:210px;height:34px}
 .app>header .account{padding-left:12px}
 .app>header .file-actions button{padding:9px 10px}
 .ec-site-link{width:100px;padding:5px 8px}
 .ec-site-link img{width:84px}
 .welcome-layout{column-gap:38px;grid-template-columns:minmax(0,1.2fr) minmax(320px,1fr)}
 .intro-tabs{gap:22px}.intro-tabs button{font-size:14px}
 :is(#drop,.welcome-exit-content) .welcome-layout>.box{padding:28px 24px}
}
@media(max-width:860px){
 .app>header{flex-wrap:wrap;gap:10px;min-height:68px}
 .app>header .brand-logo{width:200px;height:32px}
 .app>header .project-actions{order:3;width:100%;margin:0}
 .app>header .account{margin-left:auto;border:0;padding:0}
 .app>header .ec-site-link{width:96px;min-height:36px}
 .welcome #drop{padding:32px 24px}
 .welcome-layout{max-width:620px;grid-template-columns:1fr;gap:28px}
 :is(#drop,.welcome-exit-content) .welcome-story h1{font-size:40px;letter-spacing:-1.3px}
 :is(#drop,.welcome-exit-content) .welcome-story .welcome-kicker{font-size:11px;letter-spacing:1.7px}
 :is(#drop,.welcome-exit-content) .welcome-story .welcome-lede{font-size:16px}
 :is(#drop,.welcome-exit-content) .welcome-layout>.box{margin-top:0}
 .welcome-free{grid-template-columns:1fr;gap:22px;padding:24px}
 .welcome-free-photo img{max-height:260px;object-position:center}
}
@media(max-width:480px){
 .app>header{display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:8px 10px}
 .app>header .brand{grid-column:1;grid-row:1}
 .app>header .account{grid-column:2;grid-row:1;justify-self:end}
 .app>header .project-actions{grid-column:1/-1;grid-row:2;width:calc(100% - 90px)}
 .app>header .file-actions{gap:4px}
 .app>header .file-actions button{font-size:10px;padding:7px 8px;min-height:36px}
 .app>header .ec-site-link{grid-column:2;grid-row:2;justify-self:end}
 .app>header .brand-logo{width:164px;height:26px}
 .app>header .ec-site-link{width:80px}.ec-site-link img{width:68px}
 .app>header .account summary{font-size:12px}
 .welcome #drop{padding:26px 18px}
 :is(#drop,.welcome-exit-content) .welcome-story h1{font-size:32px;letter-spacing:-1px}
 .intro-tabs{gap:20px}.intro-tabs button{font-size:13px}
 .welcome-free h2{font-size:19px}
}

.book-page header { display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1fr); gap:12px 16px; align-items:center; }
.book-page header .book-logo { grid-row:1; grid-column:1; object-position:left center; }
.book-page header .book-partner-logo { grid-row:1; grid-column:2; width:90px; max-width:100%; height:32px; object-fit:contain; object-position:right center; justify-self:end; }
.book-page header>span { grid-row:2; grid-column:1/-1; width:100%; min-width:0; text-align:left; word-break:normal; overflow-wrap:break-word; }
