:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#25342a;background:#f4f6f2;font-synthesis:none;--green:#248a15;--forest:#183d29;--line:#dce4d8;--muted:#677467}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{border:1px solid #d1dace;border-radius:7px;padding:9px 13px;background:white;color:#30402f;cursor:pointer;font-size:12px;font-weight:650;white-space:nowrap}button:hover{background:#edf4e9}button:disabled{opacity:.45;cursor:not-allowed}button.primary{background:var(--green);border-color:var(--green);color:white}button.primary:hover{background:#1d7610}button.danger{color:#a1332d;border-color:#ecc5bf}button.quiet{background:transparent}.close{font-size:23px;line-height:1;border:0;padding:5px 10px}a{color:#227219}input,select{border:1px solid #cbd5c6;background:white;border-radius:6px;color:#263928;padding:10px 11px;width:100%;min-width:0}input:focus,select:focus,button:focus-visible,a:focus-visible{outline:3px solid #8bc875;outline-offset:2px}label{display:block;font-size:12px;font-weight:650}label input,label select{display:block;margin-top:6px}[hidden]{display:none!important}
.platform-header{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 25px;border-bottom:1px solid var(--line);background:white;gap:20px}.identity{display:flex;align-items:center;gap:13px;text-decoration:none;color:#27382a}.brand-mark{display:grid;place-items:center;width:56px;height:34px;border-bottom:4px solid #7fc45f;font-weight:850;font-size:24px;letter-spacing:-1px;color:#248a15}.identity strong{font-size:21px;letter-spacing:-.6px}.identity em{font-style:normal;font-weight:400;color:#788674}.identity small{display:block;color:var(--muted);font-size:10px;margin-top:2px}.account{display:flex;align-items:center;gap:12px;font-size:12px;color:var(--muted)}.notice{padding:10px 25px;background:#eef6e7;border-bottom:1px solid #c5dcb7;font-size:13px;position:relative;z-index:6}.notice.error{background:#fff1ed;color:#963b2d;border-color:#ebcec5}.login-screen{min-height:calc(100vh - 72px);display:grid;grid-template-columns:minmax(300px,600px) 370px;justify-content:center;align-items:center;gap:9vw;padding:55px 35px;background:radial-gradient(ellipse at 4% 90%,#e2efd9,transparent 65%)}.eyebrow{font-size:10px;letter-spacing:1.6px;font-weight:750;color:#5c7950}.manifesto h1{font-size:clamp(34px,4.7vw,62px);line-height:1.05;letter-spacing:-2.6px;font-weight:680;color:var(--forest);margin:20px 0}.manifesto>p:not(.eyebrow){max-width:455px;font-size:15px;line-height:1.8;color:var(--muted)}.environment-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:30px}.environment-list span{border:1px solid #c6d9bc;border-radius:25px;padding:8px 15px;font-size:11px;color:#416938}.login-card{padding:34px;background:white;border:1px solid var(--line);border-radius:16px;box-shadow:0 14px 55px #27481709}.login-card h2{font-size:23px;margin:10px 0 25px;letter-spacing:-.7px}.login-card label{margin:18px 0 7px}.login-card .primary{width:100%;margin-top:24px;padding:12px}.hint{font-size:11px;color:var(--muted);line-height:1.65}.login-card .hint{margin-bottom:0}.form-error{background:#fff2ee;border-radius:6px;color:#9d392b;padding:10px 12px;font-size:12px;line-height:1.6}
.project-toolbar{min-height:75px;display:flex;align-items:center;gap:16px;padding:11px 23px;background:#fafff7;border-bottom:1px solid var(--line)}.picker{width:195px}.project-picker{width:265px}.picker label{font-size:9px;letter-spacing:1px;text-transform:uppercase;color:#778772;margin-bottom:5px}.picker select{padding:6px 26px 6px 8px;font-size:12px}.project-state{display:flex;align-items:center;flex-wrap:wrap;gap:7px;flex:1;font-size:10px;color:#607356}.badge{display:inline-block;background:#e7efdf;border-radius:20px;padding:4px 8px}.badge.dirty{background:#fff0ce;color:#826018}.badge.public{background:#def0f6;color:#2a6375}.project-actions{display:flex;gap:7px}.empty-state{display:flex;min-height:60vh;align-items:center;justify-content:center;text-align:center;flex-direction:column;padding:35px}.empty-symbol{font-size:70px;color:#72a25d;font-weight:200}.empty-state h1{font-size:27px;letter-spacing:-1px;margin:15px 0 5px}.empty-state p{color:var(--muted);font-size:13px;max-width:470px;line-height:1.7}.viewer-area{position:relative;height:calc(100vh - 147px);min-height:430px;background:#eef0ea}#frameMount,#frameMount iframe{width:100%;height:100%;border:0;display:block}.viewer-status{position:absolute;inset:0;z-index:3;background:#f5f8f0f5;display:flex;justify-content:center;align-items:center;padding:30px;white-space:pre-line;text-align:center;font-size:14px;line-height:1.8;color:var(--muted)}.viewer-status.error{color:#974031}.viewer-status[hidden]{display:none}
dialog{border:1px solid #d7e2d0;border-radius:13px;padding:25px;color:#2b3d2a;box-shadow:0 28px 90px #0d2e2433;max-height:88vh;overflow:auto}dialog::backdrop{background:#0b211657;backdrop-filter:blur(2px)}.small-dialog{width:min(480px,94vw)}.admin-dialog{width:min(850px,95vw)}.dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:20px}.dialog-heading h2{margin:2px 0;font-size:22px;letter-spacing:-.5px}.dialog-heading .eyebrow{margin:0 0 5px}.dialog-actions,.inline-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.inline-actions{justify-content:flex-start}dialog p{font-size:12px;line-height:1.7}.admin-section{border-top:1px solid var(--line);padding:21px 0}.admin-section h3{font-size:15px;margin:0 0 10px}.admin-section:first-of-type{border-top:0;padding-top:0}.inline-form{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end;margin-top:18px}.member-form{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:20px}.full{grid-column:1/-1}.member-form button{justify-self:start}.check{display:flex;align-items:flex-start;gap:10px;line-height:1.7}.check input{width:auto;flex:0 0 auto;margin:4px 0 0}details{margin-top:18px}summary{cursor:pointer;font-size:12px;color:#347228}table{border-collapse:collapse;width:100%;font-size:12px;margin-top:12px}th,td{text-align:left;padding:10px 8px;border-bottom:1px solid #e3eadf}th{font-size:10px;color:#74836c}td select{padding:5px;font-size:11px}td button{padding:6px 8px;font-size:10px}.row-actions{display:flex;gap:6px;align-items:center}.muted{color:var(--muted);font-size:12px}#publicLink{display:block;font-size:12px}
@media(max-width:1100px){.project-toolbar{gap:10px;padding:10px 12px;flex-wrap:wrap}.project-state{flex:1;min-width:130px}.project-actions{margin-left:auto}.viewer-area{height:calc(100vh - 192px)}.login-screen{gap:5vw;grid-template-columns:minmax(260px,440px) 340px}.identity small{display:none}.picker{width:175px}.project-picker{width:225px}}
@media(max-width:700px){.platform-header{padding:0 12px;height:64px}.identity strong{font-size:17px}.brand-mark{width:38px;font-size:20px}.identity{gap:8px}.account{font-size:10px;gap:6px}.login-screen{grid-template-columns:1fr;padding:30px 20px;gap:25px;min-height:calc(100vh - 64px)}.manifesto h1{font-size:38px;letter-spacing:-1.7px}.manifesto>p:not(.eyebrow){font-size:13px}.environment-list{margin-top:16px}.login-card{padding:24px}.project-toolbar{gap:8px}.picker,.project-picker{width:calc(50% - 4px)}.project-actions{gap:5px}.project-actions button{padding:7px;font-size:10px}.project-state{font-size:9px;min-width:90px}.viewer-area{height:calc(100vh - 179px)}.inline-form,.member-form{grid-template-columns:1fr}.inline-form button{justify-self:start}dialog{padding:18px}.admin-dialog table{font-size:10px}td,th{padding:8px 4px}.row-actions{flex-wrap:wrap}.full{grid-column:auto}}
/* SaaS administration uses the same visual language as the workspace. */
.tsa-admin-button{border-color:#a9c49b;background:#f1f8ec;color:#2c6721;font-size:11px}.module-status{color:#58774c;font-size:10px}.module-chooser{margin-top:12px}.module-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.module-option{display:flex;align-items:flex-start;gap:8px;padding:12px 9px;border:1px solid #dbe5d4;border-radius:8px;background:#f9fcf7;cursor:pointer;line-height:1.3}.module-option:has(input:checked){border-color:#80b969;background:#edf7e6}.module-option:focus-within{outline:2px solid #96c481;outline-offset:2px}.module-option.unavailable{opacity:.46;cursor:default;background:#f4f5f2}.module-option input{width:15px;height:15px;padding:0;margin:0;flex:0 0 auto;accent-color:#248a15}.module-option span{min-width:0}.module-option strong{display:block;font-size:12px;font-weight:700}.module-option small{display:block;font-size:9px;line-height:1.5;font-weight:400;color:#728269;margin-top:4px}.module-chooser.compact{margin:0;min-width:220px}.compact .module-grid{display:flex;flex-wrap:wrap;gap:4px}.compact .module-option{padding:6px;gap:4px}.compact .module-option strong{font-size:10px}.compact .module-option input{width:12px;height:12px}.member-table th:nth-child(3){width:35%}.member-table .hint{font-size:9px;line-height:1.4;margin:5px 0}.member-table td{vertical-align:top}.member-table .row-actions{flex-wrap:wrap;min-width:78px}.package-label{max-width:355px;margin:12px 0}.package-label select{font-size:12px}.module-fieldset{border:1px solid #dce6d5;border-radius:8px;margin:18px 0;padding:10px}.module-fieldset legend{font-size:11px;font-weight:650;color:#4c6942}.small-dialog .module-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.small-dialog .module-option{padding:8px}.platform-dialog{width:min(950px,96vw)}.platform-dialog>.dialog-heading{margin-bottom:12px}.platform-dialog>.dialog-heading .hint{margin-bottom:0;max-width:620px}.platform-summary{display:flex;align-items:baseline;gap:10px;background:#f1f7ed;border-radius:9px;padding:13px 17px;margin:16px 0 20px;color:#5c7850}.platform-summary strong{font-size:26px;letter-spacing:-1px;color:#275b20}.platform-summary span{font-size:12px}.tenant-card-list{display:grid;gap:12px}.tenant-card{border:1px solid #d8e4d0;border-radius:10px;padding:17px 18px;background:#fff}.tenant-card-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}.tenant-card-heading h3{margin:0;font-size:16px;color:#294226}.tenant-card>.hint{margin:8px 0 0}.tenant-card details{margin-top:12px}.tenant-card details[open]>summary{margin-bottom:18px}.tenant-card details>label{max-width:440px}.tenant-card .inline-actions{justify-content:flex-end}.new-tenant{margin-top:22px;border-top:1px solid #dce6d5;padding-top:18px}.new-tenant>summary{font-weight:700;font-size:13px}.form-subtitle{padding-top:8px;border-top:1px solid #e0e8d9;font-size:12px;font-weight:700;color:#496f3b}#confirmMessage{white-space:pre-line}.member-form>.full>.hint{margin-bottom:0}
@media(max-width:850px){.module-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.member-table{display:block;overflow-x:auto}.platform-dialog{padding:18px}.account{flex-wrap:wrap;justify-content:flex-end;gap:6px}.tsa-admin-button{padding:7px 9px}.identity small{display:none}}
@media(max-width:550px){.module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.module-option small{font-size:9px}.small-dialog .module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tenant-card{padding:14px 12px}.tenant-card-heading{align-items:flex-start}.tenant-card-heading h3{font-size:14px}.platform-header{height:auto;min-height:70px;padding-top:9px;padding-bottom:9px}.account #identityLabel{max-width:85px;overflow:hidden;text-overflow:ellipsis}.tsa-admin-button{font-size:9px;padding:6px}.identity strong{font-size:15px}.platform-dialog>.dialog-heading h2{font-size:20px}.project-state{max-width:47%}.module-status{font-size:9px}}

.enterprise-dialog{width:min(980px,96vw)}.enterprise-dialog .admin-section{margin-top:20px}.catalog-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.catalog-row>span{flex:1;min-width:230px;font-size:12px}.catalog-row>label{flex-basis:65%}.brand-mark img{width:100%;height:100%;object-fit:contain}.enterprise-dialog .check{margin:10px 0}.enterprise-dialog input[type=file]{font-size:11px}

/* TSA design v2: the application frame is dark; forms and data stay on paper. */
:root{color-scheme:dark;--brand:#229900;--green:#1b7a00;--brand-hi:#3dbb1a;--forest:#eef1ec;--line:#353a35;--muted:#a3aba0;--e0:#121413;--e1:#1a1c1a;--e2:#232623;font-family:Poppins,"Segoe UI",system-ui,sans-serif;color:#eef1ec;background:var(--e0)}
body{background:var(--e0);font-weight:400}.platform-header{background:var(--e1);border-bottom:1px solid #46533f;box-shadow:0 1px 0 #22990033;position:relative;z-index:2}.identity{color:#eef1ec}.identity strong{font-weight:600;font-size:20px}.identity em{color:var(--brand-hi);font-weight:400}.identity small{letter-spacing:.15px}.brand-mark{background:#fff;border:0;border-radius:5px;padding:2px 4px;width:56px;height:36px;color:#1b7a00;font-size:22px}.brand-mark:has(img){padding:3px 5px}.account>button{background:#2a3028;border-color:#424b3d;color:#e6eddf}.account>button:hover{background:#323d2d}.account .tsa-admin-button{border-color:#526847}.notice{color:#d3e9c7;background:#23321e;border-color:#455a3b}.notice.error{color:#ffd1c5;background:#48271f;border-color:#70483a}
button{font-weight:500}button.primary{background:#1b7a00;border-color:#1b7a00;color:#fff}button.primary:hover{background:#156300}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid #3dbb1a;outline-offset:3px}input:focus,select:focus{outline:2px solid #229900;outline-offset:2px}input,select,textarea{font-weight:400}.eyebrow{font-weight:600;letter-spacing:1.7px;color:#3dbb1a}
.login-screen{min-height:calc(100svh - 72px);grid-template-columns:minmax(0,730px) minmax(330px,390px);gap:clamp(30px,5vw,82px);padding:36px clamp(24px,5vw,80px);background:radial-gradient(ellipse at 5% 0%,#2b362733,transparent 60%),linear-gradient(#ffffff03 1px,transparent 1px),linear-gradient(90deg,#ffffff03 1px,transparent 1px);background-size:auto,48px 48px,48px 48px;isolation:isolate}
.brand-showcase{min-width:0;align-self:center}.brand-showcase figure{margin:0;overflow:hidden}.territory-hero{aspect-ratio:2192/1232;border:1px solid #384235;border-radius:16px;background:#060b09;box-shadow:0 14px 50px #0003}.territory-hero img{display:block;width:100%;height:100%;object-fit:contain;animation:territory-arrive 1.4s cubic-bezier(.2,.7,.3,1) both}.territory-details{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}.territory-details figure{background:#fdfdfd;border:1px solid #384235;border-radius:12px;animation:territory-arrive 1.15s ease-out both;animation-delay:.15s}.territory-details figure+figure{animation-delay:.3s}.territory-details img{width:100%;height:clamp(95px,10vw,136px);object-fit:cover;object-position:50% 57%;display:block}.territory-details figure+figure img{object-position:70% 63%}.territory-details figcaption{background:#20261f;color:#d3d9cf;font-size:10px;padding:10px 12px;line-height:1.4;display:flex;gap:9px;align-items:center}.territory-details figcaption span{font-family:ui-monospace,monospace;color:#90bd7d;font-size:9px;font-variant-numeric:tabular-nums}
.login-access{max-width:410px;width:100%;justify-self:center}.manifesto .eyebrow{font-size:9px;letter-spacing:2px;margin:0 0 12px}.manifesto h1{font-size:clamp(25px,2.3vw,33px);font-weight:500;line-height:1.2;letter-spacing:-1.1px;margin:0;color:#fff}.manifesto h1 span{color:#a6b49e;font-size:.82em;letter-spacing:-.6px}.manifesto>p:not(.eyebrow){font-size:12px;line-height:1.8;margin:14px 0 24px;color:#a3aba0;max-width:330px}.login-card{color-scheme:light;--muted:#606d59;--line:#dfe4dc;padding:27px 30px 25px;border:1px solid #fff;border-radius:12px;background:#f7f9f4;color:#273024;box-shadow:0 12px 48px #0002}.login-card .eyebrow{color:#547348;font-size:8px;letter-spacing:1.5px;margin:0 0 8px}.login-card h2{font-size:21px;font-weight:600;letter-spacing:-.6px;margin:0 0 22px}.login-card label{font-size:10px;margin:16px 0 6px;font-weight:500;color:#44513e}.login-card input{background:#fff;border-color:#cdd7c8;min-height:43px;border-radius:6px;font-size:13px}.login-card .primary{display:flex;align-items:center;justify-content:space-between;padding:12px 15px;margin-top:24px;font-size:12px;min-height:45px}.login-card .primary span{font-size:20px;line-height:1;font-weight:400}.login-card .hint{font-size:9px;line-height:1.7;max-width:275px;margin:15px 0 0;color:#65705e}.environment-list{gap:6px;margin:19px 0 0;justify-content:space-between}.environment-list span{padding:5px 8px;border:1px solid #384334;border-radius:4px;color:#b6c2ae;font-size:9px;background:#1b2119}.login-signature{font-size:9px;letter-spacing:.5px;color:#a3aba0;text-align:center;margin:13px 0 0}
.project-toolbar{background:#1d221b;border-color:var(--line)}.picker label{color:#a3aba0;font-size:8px}.picker select{background:#282e25;border-color:#424b3d;color:#eef1ec}.project-state{color:#acbca2}.project-actions>button{background:#2b3327;border-color:#414b3b;color:#eef1ec}.project-actions>button.primary{background:var(--green);border-color:var(--green)}.project-actions>button:hover{background:#35432d}.badge{background:#303f29;color:#d2e3c7}.badge.dirty{background:#564323;color:#ffe0a2}.badge.public{background:#234657;color:#bce8fa}.module-status{color:#b5cda8}.empty-state{background:radial-gradient(ellipse at 50% 40%,#32442c33,transparent 60%)}.empty-symbol{color:#6f965e}.empty-state h1{font-weight:500}.viewer-area{background:var(--e0)}.viewer-status{background:#1a1c1af5;color:#a3aba0}.viewer-status.error{color:#ffb2a3}
dialog{color-scheme:light;--line:#dfe4dc;--muted:#65705e;background:#fff;color:#2b3327;border:1px solid #626d58;border-radius:12px;box-shadow:0 24px 80px #0007}dialog::backdrop{background:#080e0bb3;backdrop-filter:blur(2px)}dialog .eyebrow{color:#1b7a00}dialog .hint{color:#65705e}dialog h2,dialog h3{font-weight:600}dialog .module-option input{accent-color:#1b7a00}.dialog-heading{padding-bottom:16px;border-bottom:1px solid #dfe4dc}.small-dialog .dialog-heading{border:0;padding-bottom:0}.module-option small{color:#65705e}summary{color:#1b7a00}.form-error{color:#973526;background:#fff1ec}
@keyframes territory-arrive{from{opacity:0;transform:translateY(8px) scale(1.015)}to{opacity:1;transform:none}}
@media(max-width:1100px){.login-screen{grid-template-columns:minmax(0,1fr) 340px;gap:30px;padding:32px 30px}.territory-details{gap:10px}.territory-details figcaption{font-size:9px;padding:9px 8px}.login-card{padding:25px}.manifesto h1{font-size:27px}.environment-list span{font-size:8px;padding:5px 7px}}
@media(max-width:760px){.login-screen{grid-template-columns:minmax(0,1fr);gap:30px;padding:30px 22px 38px;min-height:calc(100svh - 64px)}.login-access{order:-1;max-width:390px}.brand-showcase{max-width:550px;width:100%;justify-self:center}.manifesto h1{font-size:31px}.manifesto>p:not(.eyebrow){margin-bottom:22px}.territory-details img{height:100px}.territory-details figcaption{font-size:9px;align-items:flex-start}.territory-hero{border-radius:12px}.environment-list{justify-content:center;gap:7px}.environment-list span{font-size:9px}.login-card .hint{max-width:none}.project-toolbar{align-items:flex-end}}
@media(max-width:400px){.login-screen{padding:25px 16px 32px}.login-card{padding:23px}.manifesto h1{font-size:28px}.territory-details{gap:8px}.territory-details figcaption{font-size:8px;gap:5px}.territory-details img{height:85px}.identity strong{font-size:14px}.identity em{font-size:12px}.platform-header{gap:8px}.brand-mark{width:42px}.account #identityLabel{font-size:9px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Keep small white action labels legible even with a lighter tenant accent. */
.project-actions>button.primary{background:#1b7a00;border-color:#1b7a00}.project-actions>button.primary:hover{background:#156300}

/* Digital terrain entrance: code-drawn mesh, distinct from project imagery. */
.brand-mark,.brand-mark:has(img){width:98px;height:47px;padding:3px 5px;flex:0 0 auto;background:#fafbf8;border:1px solid #dce3d8;border-radius:5px}
.brand-mark img{display:block;object-fit:contain;width:100%;height:100%}.header-link{font-size:11px;color:#c7d8bc;text-decoration:none;border-bottom:1px solid transparent;padding:6px 0}.header-link:hover{color:#efffe6;border-color:#71ba52}
.login-screen{position:relative;overflow:hidden;grid-template-columns:minmax(0,720px) minmax(330px,380px);gap:7vw;padding:60px clamp(24px,6vw,100px);background:radial-gradient(ellipse at 22% 75%,#16352d 0%,transparent 65%),linear-gradient(120deg,#080f12,#0a1815 50%,#101a18);min-height:calc(100svh - 72px)}
.login-mesh{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:-1;opacity:.8}
.mesh-manifesto{position:relative;align-self:start;margin-top:clamp(10px,6vh,65px);max-width:660px}.mesh-manifesto .eyebrow{font-size:10px;letter-spacing:2px;color:#a6c795}.mesh-manifesto h1{font-size:clamp(45px,5.3vw,77px);line-height:1.08;font-weight:500;letter-spacing:-3px;margin:27px 0 22px;color:#eff5eb}.mesh-manifesto h1 span{color:#98df70}.mesh-manifesto>p:not(.eyebrow){font-size:14px;line-height:1.9;color:#b5c5be}.catalog-cta{display:inline-flex;align-items:center;gap:30px;color:#ddf4d5;border:1px solid #567c64;padding:13px 17px;font-size:12px;border-radius:7px;text-decoration:none;background:#1331265e;margin-top:20px;backdrop-filter:blur(4px)}.catalog-cta:hover{background:#214e38}.catalog-cta span{font-size:20px}.mesh-coordinates{display:flex;align-items:center;gap:12px;max-width:390px;margin-top:clamp(70px,15vh,160px);font:9px ui-monospace,monospace;letter-spacing:1.6px;color:#86a697}.mesh-coordinates i{height:1px;background:#77947b66;flex:1}.mesh-motion{font-size:9px;border:0;color:#a3b6ac;background:transparent;margin-top:20px;padding:6px 0;font-weight:400}.mesh-motion:hover{background:transparent;color:#fff}.mesh-motion:disabled{opacity:.7}.login-access{position:relative;z-index:1}.manifesto h2{font-weight:500;font-size:24px;letter-spacing:-.5px;margin:0 0 22px;color:#e9f5e3}.login-card{background:#f6f9f5f5;box-shadow:0 25px 80px #0004;backdrop-filter:blur(8px);border:1px solid #ffffff66}.login-card .primary{margin-top:24px}.environment-list span{background:#15302480;border-color:#42634e;color:#d4e3cc}.login-signature{color:#a9c1b4}
.notice{position:fixed;z-index:30;right:22px;top:83px;max-width:min(580px,calc(100vw - 32px));border:1px solid #455a3b;border-radius:9px;box-shadow:0 10px 35px #0003;display:flex;gap:20px;align-items:flex-start;padding:13px 15px;line-height:1.6}.notice #noticeMessage{flex:1;font-size:12px}.notice button{background:transparent;color:inherit;border:0;font-size:22px;line-height:1;padding:0 2px}.notice:hover{box-shadow:0 12px 40px #0004}
.public-catalog{min-height:calc(100svh - 72px);padding:clamp(30px,5vw,72px) clamp(20px,7vw,110px);background:radial-gradient(ellipse at 70% 0,#20423244,transparent 55%),#101814}.catalog-intro{max-width:720px}.catalog-intro h1{font-size:clamp(32px,4vw,52px);font-weight:500;letter-spacing:-1.8px;margin:14px 0}.catalog-intro>p:last-child{font-size:14px;line-height:1.8;color:#afc0b2;max-width:650px}.catalog-search{display:grid;grid-template-columns:minmax(220px,1.4fr) auto minmax(220px,1fr);gap:14px;align-items:end;margin:35px 0 20px;max-width:1040px}.catalog-search label{font-size:11px;color:#bad0bc}.catalog-search input,.catalog-search select{background:#1d2a22;color:#e7f2e5;border:1px solid #49634e;min-height:43px;font-size:12px}.catalog-search button{min-height:43px}.catalog-status{color:#a5baab;font-size:12px;min-height:22px;margin:23px 0}.catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.public-project-card{border:1px solid #3b5141;border-radius:13px;overflow:hidden;background:#1b2921;min-width:0}.project-card-mesh{height:115px;display:grid;place-items:center;overflow:hidden;position:relative;background:radial-gradient(ellipse at 50% 80%,#426f4566,transparent 70%),repeating-linear-gradient(0deg,transparent 0 20px,#68966926 20px 21px),repeating-linear-gradient(60deg,transparent 0 20px,#68966926 20px 21px),repeating-linear-gradient(120deg,transparent 0 20px,#68966926 20px 21px),#152d24}.project-card-mesh span{font-size:40px;color:#b6dba2}.public-project-copy{padding:22px}.public-project-copy .eyebrow{font-size:9px;line-height:1.7;overflow-wrap:anywhere;margin:0 0 13px}.public-project-copy h2{font-size:19px;line-height:1.4;letter-spacing:-.5px;margin:0 0 15px;font-weight:500;overflow-wrap:anywhere}.public-project-modules{font-size:10px;color:#bacfb4;min-height:18px}.public-project-link{display:block;border-top:1px solid #3c5442;margin-top:21px;padding-top:17px;color:#b8ef9c;font-size:12px;text-decoration:none}.public-project-link:hover{color:#fff}.catalog-more{display:block;margin:28px auto;background:#233d29;color:#cce9c0;border-color:#587c4d}
.viewer-status{flex-direction:column;gap:12px}.viewer-status p{margin:0}.mesh-loader{position:relative;display:grid;grid-template-columns:repeat(3,7px);grid-template-rows:repeat(3,7px);gap:18px;transform:rotate(-30deg) skew(12deg);margin:30px 0 22px;background:repeating-linear-gradient(0deg,transparent 0 24px,#80c88644 24px 25px),repeating-linear-gradient(90deg,transparent 0 24px,#80c88644 24px 25px)}.mesh-loader i{width:7px;height:7px;border:1px solid #9cd986;background:#3b7541;border-radius:50%;animation:mesh-flow 1.8s ease-in-out infinite}.mesh-loader i:nth-child(3n){animation-delay:.4s}.mesh-loader i:nth-child(3n+1){animation-delay:.8s}.mesh-progress{height:4px;width:min(240px,60vw);background:#3a4b3b;border-radius:4px;overflow:hidden;margin-top:7px}.mesh-progress span{display:block;height:100%;background:#8cd66c;transition:width .2s}.mesh-progress.indeterminate span{width:35%;animation:mesh-progress 1.6s ease-in-out infinite}.viewer-status.error{white-space:pre-line}.viewer-status.error .mesh-loader{display:none}@keyframes mesh-flow{50%{background:#c3ffaa;box-shadow:0 0 12px #76d15c88}}@keyframes mesh-progress{from{transform:translateX(-100%)}to{transform:translateX(300%)}}
.admin-dialog{width:min(1010px,96vw)}.admin-intro{display:flex;gap:24px;justify-content:space-between;align-items:center;margin-bottom:20px}.admin-intro p{font-size:11px;color:#62735c;max-width:550px;margin:0}.admin-intro button{font-size:10px;white-space:normal}.admin-navigation{display:flex;flex-wrap:wrap;gap:7px;padding:12px;background:#f0f5ed;border:1px solid #dce5d5;border-radius:8px;margin:16px 0 24px}.admin-navigation button{border:1px solid transparent;background:transparent;font-size:11px;padding:9px 12px;color:#496641}.admin-navigation button[aria-pressed=true]{background:#fff;border-color:#b2c7a5;box-shadow:0 2px 5px #2838200c;color:#205814}.admin-dialog .admin-section{border-top:0;padding-top:0}.archived-projects{margin-top:30px;border-top:1px solid #dfe4dc;padding-top:15px}.archived-projects h4{font-size:13px}.archived-project-row{padding:13px 0;border-top:1px solid #e5eadf;display:flex;align-items:center;justify-content:space-between;gap:15px}.archived-project-row strong{font-size:12px}.archived-project-row .hint{margin:4px 0}.deletion-summary{font-size:11px;display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:15px 15px 15px 30px;background:#f3f6ef;border-radius:7px}
@media(max-width:1050px){.login-screen{gap:35px;padding:40px 35px;grid-template-columns:minmax(280px,1fr) minmax(320px,360px)}.mesh-manifesto h1{font-size:53px}.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-search{grid-template-columns:1fr auto}.catalog-search>label:last-child{grid-column:1/-1}}
@media(max-width:760px){.login-screen{grid-template-columns:1fr;padding:35px 24px;gap:30px}.login-access{order:0;max-width:410px}.mesh-manifesto{margin:0;width:100%;max-width:410px;justify-self:center}.mesh-manifesto h1{font-size:42px;letter-spacing:-1.8px;margin:18px 0}.mesh-manifesto>p:not(.eyebrow){font-size:12px}.mesh-coordinates{display:none}.mesh-motion{position:absolute;right:0;bottom:0;font-size:8px;max-width:100px}.catalog-cta{font-size:10px;gap:14px;margin-top:10px;padding:9px 13px}.login-mesh{opacity:.4}.manifesto h2{font-size:21px}.manifesto .eyebrow{font-size:8px}.platform-header{gap:10px}.brand-mark,.brand-mark:has(img){width:73px;height:37px;padding:2px 4px}.identity strong{font-size:15px}.header-link{font-size:9px}.account{gap:9px}.account #identityLabel{display:none}.admin-intro{align-items:flex-start;flex-direction:column;gap:12px}.catalog-grid{gap:15px}.public-catalog{padding:30px 20px}.catalog-intro h1{font-size:34px}.notice{right:12px;top:80px}.public-project-copy{padding:17px}}
@media(max-width:520px){.catalog-grid{grid-template-columns:1fr}.catalog-search{gap:10px}.login-screen{padding:28px 20px 38px}.mesh-manifesto h1{font-size:38px}.identity em{display:none}.public-project-copy h2{font-size:20px}.admin-navigation{padding:7px;gap:4px}.admin-navigation button{font-size:10px;padding:8px}.project-card-mesh{height:85px}.archived-project-row{align-items:flex-start;flex-direction:column}.header-link{max-width:68px;line-height:1.4}.deletion-summary{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.mesh-loader i,.mesh-progress.indeterminate span{animation:none}.mesh-progress.indeterminate span{width:100%;opacity:.35}}
.startup-status{position:relative;min-height:calc(100svh - 72px);z-index:1}

/* The toolbar height depends on project permissions, labels and wrapping.
   Let the viewer fill the remaining viewport instead of subtracting a fixed
   header/toolbar estimate (which clipped the TSA header after page scrolling). */
body:has(#workspace:not([hidden])) {
  display:flex;
  flex-direction:column;
  height:100vh;
  height:100dvh;
  overflow:hidden;
}
body:has(#workspace:not([hidden])) > .platform-header { flex:0 0 auto; }
#workspace:not([hidden]) {
  display:flex;
  flex-direction:column;
  flex:1 1 0;
  min-height:0;
  min-width:0;
}
#workspace > .project-toolbar { flex:0 0 auto; }
#workspace > .viewer-area {
  flex:1 1 0;
  height:auto;
  min-height:0;
  min-width:0;
  overflow:hidden;
}
#workspace > .viewer-area > #frameMount { position:absolute; inset:0; }
#workspace > .empty-state { flex:1 1 0; min-height:0; overflow:auto; }

/* Authentication steps share the login card without changing the project shell. */
.login-card[hidden]{display:none!important}.auth-text-button{border:0;background:transparent;color:#315b3c;font:inherit;font-size:11px;text-decoration:underline;text-underline-offset:3px;padding:12px 0;cursor:pointer}.auth-text-button:hover{background:transparent;color:#163b24}.auth-text-button:disabled{color:#737d71;cursor:default;text-decoration:none}.auth-secondary-actions{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.login-card #loginOtpCode{text-align:center;font-family:ui-monospace,monospace;font-size:28px;letter-spacing:.3em;padding-left:.3em;min-height:58px}.login-card #loginOtpEmail{overflow-wrap:anywhere}.login-card .form-error{margin-top:14px}.login-card #passwordResetRequestStatus{font-size:11px;background:#e5f1e1;border:1px solid #c8ddc0;border-radius:6px;padding:10px;max-width:none}

/* Session exit remains separate from the management hub, including on mobile. */
.account .session-logout{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex-shrink:0;min-height:40px;background:#34432d;border-color:#8da676;color:#f2f7ee;padding:8px 12px}.account .session-logout:hover{background:#445b38}.session-logout svg{flex:none}
@media(max-width:760px){.platform-header{height:auto;min-height:70px;flex-wrap:wrap;padding-top:10px;padding-bottom:10px}.platform-header .identity{min-width:0;flex:1 1 180px}.platform-header .identity>span:last-child{min-width:0}.platform-header .identity strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.platform-header .account{max-width:100%;flex:0 1 auto;flex-wrap:wrap;justify-content:flex-end;margin-left:auto;gap:8px}.account .session-logout{font-size:12px;min-height:40px}}
@media(max-width:520px){.platform-header .identity{flex-basis:100%}.platform-header .account{width:100%}.account .session-logout{padding:8px 11px}}

/* A single compact header keeps identity, project selection and account together. */
.platform-header{display:grid;grid-template-columns:minmax(280px,1fr) minmax(310px,440px) auto;gap:18px;height:auto;min-height:72px;padding:10px 20px}
.platform-header:not(:has(.project-toolbar:not([hidden]))){grid-template-columns:minmax(0,1fr) auto}
.platform-header .identity{min-width:0;gap:11px}.platform-header .identity>span:last-child{min-width:0}
.platform-header .identity strong{display:block;font-size:18px;line-height:1.3;white-space:nowrap}
.platform-header .identity small{display:block;font-size:9px;line-height:1.4;letter-spacing:0;color:#a3aba0}
.platform-header .brand-mark{width:86px;height:42px}
.platform-header .project-toolbar{min-height:0;min-width:0;padding:0;gap:10px;background:transparent;border:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);align-items:center}
.platform-header .picker{width:auto;min-width:0}.platform-header .picker label{font-size:8px;letter-spacing:.8px;margin-bottom:3px}
.platform-header .picker select{width:100%;min-width:0;height:32px;padding:5px 23px 5px 8px;font-size:11px;text-overflow:ellipsis}
.platform-header .account{justify-content:flex-end;gap:10px;min-width:0;flex-wrap:nowrap}.platform-header .session-logout{min-height:34px;padding:6px 9px}
@media(max-width:1200px){
 .platform-header{grid-template-columns:minmax(0,1fr) auto;gap:9px 16px}
 .platform-header .project-toolbar{grid-column:1/-1;grid-row:2;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr)}
}
@media(max-width:700px){
 .platform-header{padding:8px 12px;gap:9px}
 .platform-header .identity strong{font-size:16px}.platform-header .identity small{font-size:8px}
 .platform-header .brand-mark{width:68px;height:34px}.platform-header .identity{gap:8px}
 .platform-header .account{grid-column:1/-1;grid-row:2;justify-content:flex-end;gap:10px;width:100%;flex-wrap:wrap}
 .platform-header .project-toolbar{grid-row:3}.platform-header .header-link{max-width:none;font-size:10px}
 .platform-header .account #identityLabel{display:none}
}

.login-card #loginCaptcha:not(:empty){margin-top:18px}
