/* Script Lab: shared brand rhythm. Workspace colours remain controlled by ThemeDesigner. */
.public-site-body,.guide-site,.brand-auth{--brand-bg:#030b13;--brand-surface:#101f2c;--brand-raised:#193040;--brand-border:#2c4658;--brand-ink:#edf4f8;--brand-muted:#a7bbc9;--brand-cyan:#00cddd;--brand-radius:14px;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--brand-ink);background:radial-gradient(ellipse 1100px 900px at 68% 380px,#123340 0%,#071923 55%,#030b13 100%);background-attachment:fixed;line-height:1.65}
.public-site-body :is(h1,h2,h3),.guide-site :is(h1,h2,h3),.brand-auth :is(h1,h2,h3){text-wrap:balance;letter-spacing:-.025em}
.public-site-body :is(p,small),.guide-site :is(p,small){text-wrap:pretty}
.public-site-body :is(a,button,input,select,summary):focus-visible,.brand-auth :is(a,button,input):focus-visible{outline:2px solid var(--brand-cyan);outline-offset:4px}
.public-site-body :is(.lab-action,.public-header-link,.button),.guide-site .button{border-radius:8px;font-weight:650;letter-spacing:0;text-transform:none;min-height:40px}
.public-site-body .public-header{gap:20px;padding-block:24px;align-items:center;border-color:var(--brand-border)}
.public-site-body .public-header-actions{gap:16px;flex-wrap:wrap;align-items:center}
.public-site-body .public-brand{gap:12px}.public-site-body .public-brand-mark{width:38px;height:38px;flex:0 0 38px}.public-site-body .public-brand small{font-size:12px;color:var(--brand-muted);line-height:1.4}
.public-site-body .lab-main>section{scroll-margin-top:24px}.public-site-body .lab-section-heading{gap:24px;align-items:start}
.public-site-body .lab-service-gallery{gap:24px}.public-site-body .lab-service-card{border-radius:var(--brand-radius)}
.public-site-body .lab-service-card-copy>p{max-width:65ch;line-height:1.7}.public-site-body .lab-service-card-copy .lab-overline{line-height:1.6}
.public-site-body .lab-actions{gap:14px;flex-wrap:wrap}.public-site-body .lab-start{padding-block:64px;margin-top:32px}
.public-site-body .public-footer{margin-top:64px;border-color:var(--brand-border)}.public-site-body .public-footer-grid{gap:32px;padding-block:40px}.public-site-body .public-footer nav{gap:10px}.public-site-body .public-footer-bottom{gap:20px;line-height:1.6}
.brand-media-section{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:32px;align-items:center;padding:40px;background:rgba(16,31,44,.75);border:1px solid var(--brand-border);border-radius:18px;margin:32px 0 48px;min-width:0}
.brand-media-copy{min-width:0}.brand-media-copy h2{font-size:clamp(1.65rem,3vw,2.65rem);line-height:1.15;margin:12px 0 18px}.brand-media-copy p{font-size:1rem;color:var(--brand-muted);margin:0 0 20px}.brand-media-copy small{display:block;max-width:54ch;color:var(--brand-muted);line-height:1.6;font-size:.78rem;margin-top:22px}
.brand-video-preview{display:block;position:relative;overflow:hidden;border-radius:12px;border:1px solid var(--brand-border);line-height:0;background:var(--brand-bg)}.brand-video-preview img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;transition:transform .25s ease}.brand-video-preview:hover img{transform:scale(1.025)}.brand-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:#030b13dd;color:#fff;display:grid;place-items:center;width:60px;height:60px;border-radius:50%;font-size:24px;border:1px solid #ffffff55;line-height:1}
.brand-software-preview{grid-column:1/-1;min-width:0;margin:0;padding-top:12px}.brand-software-preview img{display:block;width:100%;height:auto;max-height:630px;object-fit:contain;object-position:top;border-radius:10px;background:var(--brand-bg);border:1px solid var(--brand-border)}.brand-software-preview figcaption{font-size:.75rem;color:var(--brand-muted);margin-top:12px}
.brand-start-section{margin:48px 0 64px}.brand-start-section h2,.brand-confidence h2{font-size:clamp(1.5rem,2.5vw,2rem);line-height:1.25;margin:0}.brand-start-steps{counter-reset:brand-step;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;list-style:none;padding:28px 0 0;margin:0}.brand-start-steps li{counter-increment:brand-step;padding:24px 0 0;border-top:1px solid var(--brand-border);min-width:0}.brand-start-steps li::before{content:'0' counter(brand-step);display:block;font-size:.8rem;font-weight:650;letter-spacing:.06em;color:var(--brand-cyan);margin-bottom:12px}.brand-start-steps h3,.brand-confidence h3{font-size:1.1rem;line-height:1.4;margin:0 0 12px}.brand-start-steps p,.brand-confidence p{font-size:.92rem;color:var(--brand-muted);line-height:1.75;margin:0}
.brand-confidence{border-top:1px solid var(--brand-border);padding-top:40px;margin-top:48px}.brand-confidence-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px;margin-top:28px}.brand-confidence article{min-width:0}.brand-confidence a{display:inline-block;margin-top:18px;color:var(--brand-cyan);font-size:.88rem;text-decoration:none}.brand-confidence a:hover{text-decoration:underline}
.guide-site{--accent:#00cddd;--text:#edf4f8;--muted:#a7bbc9;--border:#2c4658;--surface-deep:#0a1722;--surface:#101f2c}.guide-site .guide-sidebar nav a[aria-current]{background:#193040;color:#edf4f8}.guide-site .content-section{border-radius:12px;padding:28px}.guide-site .guide-header{border-color:var(--brand-border)}.guide-site .guide-layout{gap:40px}.guide-site .guide-question summary{padding-block:8px}.guide-site .guide-object p,.guide-site .public-document-copy p{max-width:78ch}
.brand-auth{--text:#edf4f8;--muted:#a7bbc9;--surface:#101f2c;--surface-soft:#193040;--surface-deep:#0a1722;--border:#2c4658;--accent:#00cddd;--accent-strong:#00cddd;--md-sys-color-on-primary:#002a33;min-height:100vh;padding:48px 20px;box-sizing:border-box}.brand-auth .auth-card{max-width:540px;background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:36px;margin:0 auto;box-shadow:0 20px 70px #0003}.brand-auth .auth-card .site-brand-title{gap:12px;margin:24px 0}.brand-auth .auth-card h1{font-size:2rem;line-height:1.25}.brand-auth .auth-card>p{color:var(--muted)}.brand-auth .auth-card form{display:grid;gap:18px}.brand-auth .auth-card label{display:grid;gap:8px}.brand-auth .auth-card input:not([type=checkbox]):not([type=hidden]){background:var(--surface-deep);color:var(--text);border:1px solid var(--border);min-height:44px;border-radius:8px;box-sizing:border-box;width:100%}.brand-auth .auth-card .button{border-radius:8px;min-height:42px}.brand-auth-orientation{border-top:1px solid var(--brand-border);margin-top:28px;padding-top:24px}.brand-auth-orientation h2{font-size:1rem;margin:0 0 12px}.brand-auth-orientation p{font-size:.88rem;color:var(--brand-muted);line-height:1.7}.brand-auth-orientation nav{display:flex;gap:18px;flex-wrap:wrap;margin-top:16px}.brand-auth-orientation a{font-size:.85rem;color:var(--brand-cyan)}
/* Shared workspace finishing; theme-editor variables stay authoritative. */
html .dashboard-body .service-setup{border:1px solid var(--ui-border);border-left:3px solid var(--accent,var(--ui-accent));border-radius:10px;background:var(--ui-deep);padding:24px;gap:24px;margin-bottom:28px}.dashboard-body .service-setup .setup-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.dashboard-body .service-setup .setup-summary>p{max-width:76ch;line-height:1.7}.dashboard-body .setup-progress{margin-top:18px;gap:12px}.dashboard-body .setup-dialog-header{padding-bottom:20px}.dashboard-body .setup-step-help{padding-top:12px;line-height:1.7}
html .dashboard-body .home-service-entry .button{background:color-mix(in srgb,var(--accent,var(--ui-accent)) 14%,var(--ui-surface));color:var(--accent,var(--ui-accent));border:1px solid color-mix(in srgb,var(--accent,var(--ui-accent)) 40%,var(--ui-border));box-shadow:none}.dashboard-body .home-service-purpose{color:var(--ui-muted);line-height:1.7}.dashboard-body .home-review-card .home-service-entry{margin-block:18px;gap:12px}.dashboard-body .home-card-secondary{margin-top:20px}.dashboard-body .home-lookup-tools{margin-block:4px 12px}.dashboard-body .home-lookup-tools summary{padding:18px 20px;gap:16px}.dashboard-body .home-tools-panel{padding:20px;gap:20px}
html .dashboard-body .workspace-main .form-actions{margin-top:24px;padding-top:20px;border-top:1px solid var(--ui-border)}html .dashboard-body .workspace-main :is(.form-error,.form-success,.empty-state){line-height:1.7;padding:18px 20px;border-radius:8px;overflow-wrap:anywhere}html .dashboard-body .workspace-main .empty-state{color:var(--ui-muted);background:var(--ui-deep);border:1px dashed var(--ui-border);margin-block:20px}.dashboard-body .workspace-main :is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid var(--accent,var(--ui-accent));outline-offset:3px}
@media(max-width:900px){.brand-media-section{padding:28px;gap:24px}.brand-confidence-grid,.brand-start-steps{gap:20px}.public-site-body .public-header{flex-wrap:wrap}.public-site-body .public-header-actions{gap:12px}.brand-software-preview img{max-height:none}}
@media(max-width:650px){.brand-media-section{grid-template-columns:1fr;padding:20px;margin-block:24px 36px}.brand-media-copy h2{font-size:1.8rem}.brand-start-steps,.brand-confidence-grid{grid-template-columns:1fr;gap:24px}.brand-start-section .lab-section-heading{display:grid;gap:14px}.brand-start-section{margin-block:36px 44px}.brand-confidence{padding-top:28px}.public-site-body .public-header-actions{width:100%;justify-content:flex-start}.public-site-body .public-header-actions a{font-size:.85rem}.public-site-body .lab-start{padding-block:36px}.public-site-body .public-footer{margin-top:40px}.brand-auth{padding:24px 14px}.brand-auth .auth-card{padding:24px}.guide-site .guide-layout{gap:20px}.guide-site .content-section{padding:20px}.dashboard-body .service-setup{padding:18px}.dashboard-body .service-setup .setup-actions{align-items:stretch}.dashboard-body .service-setup .setup-actions .button{white-space:normal}.dashboard-body .home-lookup-tools summary{display:grid;gap:6px}}
@media(prefers-reduced-motion:reduce){.brand-video-preview img{transition:none}}

.public-site-body .brand-hero-video{align-self:center;transform:rotate(-1deg);box-shadow:0 24px 80px #0004}.brand-product-preview .brand-software-preview{grid-column:auto;padding:0}.brand-product-preview .brand-software-preview img{max-height:none}.brand-auth form>button.button:not(.secondary):not(.danger){background:var(--brand-cyan);color:#002a33;border-color:var(--brand-cyan);width:100%}.brand-auth .auth-links{margin-block:18px}.brand-auth .auth-links a{font-size:.85rem}
@media(max-width:900px){.public-site-body .brand-hero-video{transform:none}.brand-product-preview{grid-template-columns:1fr}.brand-product-preview .brand-media-copy{max-width:70ch}}

/* Public panels inherit the same blue-grey surfaces as the brand shell. */
body.public-site-body{--surface:var(--brand-surface);--surface-deep:#0a1722;--surface-soft:var(--brand-raised);--border:var(--brand-border);--border-strong:#4a667a;--text:var(--brand-ink);--muted:var(--brand-muted)}
