:root{font-family:Plus Jakarta Sans,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:var(--text-main);background:var(--bg-main);font-synthesis:none;text-rendering:optimizeLegibility;--font-headings: "Outfit", sans-serif;--font-body: "Plus Jakarta Sans", sans-serif;--bg-main: #f8fafc;--bg-card: #ffffff;--text-main: #1e293b;--text-muted: #64748b;--border-color: #e2e8f0;--brand-primary: #022c22;--brand-text: #f8fafc;--accent-color: #059669;--accent-light: #10b981;--accent-hover: #047857;--shadow-color: rgba(15, 23, 42, .06)}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;font-family:var(--font-body)}a{color:inherit;text-decoration:none}h1,h2,h3,h4,h5,h6{font-family:var(--font-headings)}.app-shell{min-height:100vh;display:grid;grid-template-rows:auto 1fr auto}.topbar{display:flex;align-items:center;justify-content:space-between;gap:2rem;padding:1rem clamp(1rem,4vw,4rem);background:#ffffffd9;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);color:var(--text-main);border-bottom:1px solid var(--border-color);position:sticky;top:0;z-index:100}.brand{display:flex;align-items:center;gap:.8rem}.brand-logo{height:2.5rem;width:auto;object-fit:contain}.brand-mark{display:grid;place-items:center;width:2.7rem;height:2.7rem;border-radius:50%;color:#fff;background:var(--accent-color);font-weight:800}.brand span:last-child{display:grid;gap:.1rem}.brand small{color:var(--text-muted)}nav{display:flex;flex-wrap:wrap;gap:.35rem}nav a{padding:.55rem .75rem;border-radius:.5rem;color:var(--text-main);font-size:.9rem}nav a:hover,nav a.active{background:#f1f5f9;color:var(--accent-hover);font-weight:600}main{display:grid}.hero{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);gap:3rem;align-items:center;padding:clamp(3rem,8vw,8rem) clamp(1.25rem,8vw,8rem);background:radial-gradient(circle at 15% 20%,rgba(16,185,129,.15),transparent 25rem),linear-gradient(135deg,#f8fafc,#e2e8f0)}.hero h2{max-width:15ch;margin:.4rem 0 1.2rem;font-size:clamp(2.4rem,5vw,5.2rem);line-height:.98}.hero-copy>p:last-child{max-width:65ch;color:var(--text-muted);line-height:1.7}.hero-subtitle{max-width:45ch;margin:0 0 1.5rem;font-size:clamp(1.15rem,2.5vw,1.45rem);color:var(--text-muted);line-height:1.45}.eyebrow{margin:0;color:var(--accent-color);font-size:.78rem;font-weight:800;letter-spacing:.13em;text-transform:uppercase}.module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.module-card{display:grid;gap:.45rem;min-height:9rem;padding:1.35rem;border:1px solid var(--border-color);border-radius:1rem;background:#ffffffe6;box-shadow:0 12px 30px var(--shadow-color);transition:transform .2s ease,box-shadow .2s ease}.module-card:hover{transform:translateY(-3px);box-shadow:0 16px 35px #0f172a1f}.module-card strong{font-size:1.15rem}.module-card span{color:var(--text-muted);line-height:1.45}.workspace{display:grid;place-items:center;min-height:65vh;padding:3rem 1.25rem;text-align:center}.workspace>div{max-width:42rem;padding:3rem;border-radius:1.25rem;background:var(--bg-card);box-shadow:0 16px 45px var(--shadow-color)}.workspace h2{margin:.5rem 0;font-size:clamp(2rem,5vw,3.5rem)}.workspace p:last-child{color:var(--text-muted);line-height:1.6}footer{display:flex;justify-content:space-between;gap:1rem;padding:1rem clamp(1rem,4vw,4rem);color:var(--text-muted);font-size:.8rem}@media(max-width:900px){.topbar{align-items:flex-start;flex-direction:column}.hero{grid-template-columns:1fr}}@media(max-width:560px){.module-grid{grid-template-columns:1fr}footer{flex-direction:column}}.nav-button{border:0;border-radius:.5rem;padding:.55rem .75rem;color:var(--text-main);background:transparent;cursor:pointer}.nav-button:hover{background:#f1f5f9;color:var(--accent-hover);font-weight:600}.auth-page{display:grid;place-items:center;min-height:70vh;padding:2rem 1rem}.auth-card{display:grid;gap:1rem;width:min(100%,28rem);padding:2rem;border-radius:1rem;background:var(--bg-card);box-shadow:0 18px 45px var(--shadow-color)}.auth-card h2{margin:0;font-size:2rem}.auth-card>p{margin:0;color:var(--text-muted);line-height:1.5}.auth-card label{display:grid;gap:.4rem;font-weight:700}.auth-card input{width:100%;border:1px solid var(--border-color);border-radius:.55rem;padding:.8rem;font:inherit}.auth-card input:focus{outline:3px solid rgba(16,185,129,.25);border-color:var(--accent-color)}.auth-card button{border:0;border-radius:.55rem;padding:.85rem 1rem;color:#fff;background:var(--accent-color);font:inherit;font-weight:800;cursor:pointer}.auth-card button:hover{background:var(--accent-hover)}.auth-card button:disabled{opacity:.6;cursor:wait}.auth-card .form-error{color:#9c2e25}code{padding:.15rem .3rem;border-radius:.25rem;background:#f1f5f9}button,input,select,textarea{font:inherit}:focus-visible{outline:3px solid var(--accent-color);outline-offset:3px}.skip-link{position:fixed;z-index:9999;top:.5rem;left:.5rem;padding:.75rem 1rem;border-radius:.5rem;color:#fff;background:var(--accent-color);transform:translateY(-150%)}.skip-link:focus{transform:translateY(0)}.territory-context{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.55rem clamp(1rem,4vw,4rem);border-bottom:1px solid var(--border-color);background:#f1f5f9;font-size:.88rem}.territory-context nav{align-items:center}.territory-context a,.territory-context button{padding:.35rem .55rem;border:0;border-radius:.35rem;color:var(--accent-color);background:transparent;cursor:pointer}.territory-context a:hover,.territory-context button:hover{background:#e2e8f0}.provenance-trigger{border:1px solid var(--accent-color);border-radius:.55rem;padding:.55rem .75rem;color:var(--accent-color);background:#fff;font-weight:700;cursor:pointer}.dialog-backdrop{position:fixed;inset:0;z-index:5000;display:grid;place-items:center;padding:1rem;background:#09231da8}.provenance-dialog{position:relative;width:min(100%,44rem);max-height:min(90vh,52rem);overflow:auto;padding:clamp(1.25rem,4vw,2.25rem);border-radius:1rem;background:#fff;box-shadow:0 24px 70px #00000047}.provenance-dialog h2{margin:.35rem 2rem 1rem 0;font-size:clamp(1.5rem,4vw,2.3rem)}.provenance-dialog>p{color:var(--text-muted);line-height:1.6}.provenance-dialog dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.provenance-dialog dl div{padding:.75rem;border-radius:.55rem;background:#f1f5f9}.provenance-dialog dt{color:var(--text-muted);font-size:.78rem}.provenance-dialog dd{margin:.2rem 0 0;font-weight:750}.dialog-close{position:absolute;top:.7rem;right:.7rem;width:2.4rem;height:2.4rem;border:0;border-radius:50%;background:#e2e8f0;font-size:1.5rem;cursor:pointer}.fatal-error{align-self:center;justify-self:center;max-width:40rem;margin:3rem 1rem;padding:2rem;border-radius:1rem;background:#fff;box-shadow:0 18px 50px var(--shadow-color)}.fatal-error button{padding:.75rem 1rem;border:0;border-radius:.5rem;color:#fff;background:var(--accent-color);cursor:pointer}@media(max-width:560px){.territory-context{align-items:flex-start;flex-direction:column}.provenance-dialog dl{grid-template-columns:1fr}}.recovery-shell{min-height:100vh;background:#edf2ec}.auth-card .auth-link{border:0;padding:.2rem .35rem;color:#6b7d77;background:transparent;font:inherit;font-size:.82rem;font-weight:500;text-decoration:none;cursor:pointer}.auth-card .auth-link:hover{color:#294b42;background:transparent;text-decoration:underline}.auth-card .auth-link:focus-visible{outline:2px solid #97651c;outline-offset:3px}.auth-card .form-success{color:#246247}.auth-actions{display:flex;justify-content:center;margin-top:-.25rem}.data-status{display:inline-flex;align-items:center;gap:.55rem;margin-top:1.1rem;padding:.55rem .75rem;border:1px solid var(--border-color);border-radius:999px;color:var(--text-muted);background:#ffffffd9;font-size:.8rem}.data-status-dot{width:.55rem;height:.55rem;border-radius:50%;background:#f59e0b}.data-status-ready{color:var(--accent-hover);border-color:#a7f3d0}.data-status-ready .data-status-dot{background:var(--accent-light)}.data-status-error{color:#b91c1c;border-color:#fee2e2}.data-status-error .data-status-dot{background:#ef4444}
