@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--bg:#101214;--panel:#171a1d;--panel2:#1b1e21;--line:#282c30;--muted:#858b91;--text:#e8eaec;--green:#a9f36b;--green2:#162318}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:'DM Sans',sans-serif;font-size:13px;display:flex;min-height:100vh}button,a{font:inherit}a{color:inherit;text-decoration:none}.sidebar{width:246px;border-right:1px solid #25282b;padding:22px 14px 14px;display:flex;flex-direction:column;flex-shrink:0;min-height:100vh}.brand{font:800 18px Manrope,sans-serif;display:flex;gap:10px;align-items:center;padding:0 9px 27px;letter-spacing:-.7px}.brand-light{font-weight:500;color:#92989e}.brand-mark{width:28px;height:28px;background:var(--green);border-radius:8px;color:#172017;display:grid;place-items:center;font-size:16px;position:relative}.brand-mark span{font-size:10px;position:absolute;right:3px;top:2px}.workspace-switch{height:50px;padding:7px;border:1px solid var(--line);border-radius:9px;display:flex;align-items:center;gap:9px;margin-bottom:28px}.workspace-icon{width:29px;height:29px;border-radius:7px;background:#253128;color:var(--green);display:grid;place-items:center;font-weight:700}.workspace-switch b,.user-row b{display:block;font-size:11px}.workspace-switch small,.user-row small{display:block;color:#777e84;font-size:10px;margin-top:3px}.chevron{margin-left:auto;color:#7b8186;font-size:17px}.nav-label{font-size:9px;letter-spacing:1px;color:#70767c;padding:0 10px 8px;font-weight:700}.nav-label button{float:right;color:#92989e;background:transparent;border:0;font-size:17px;line-height:10px;cursor:pointer}nav{display:grid;gap:3px;margin-bottom:25px}nav a{height:34px;border-radius:6px;padding:0 10px;display:flex;align-items:center;gap:10px;color:#9ca2a7;font-size:12px}nav a>span{font-size:14px;width:14px;text-align:center}nav a.active{background:#212528;color:#ebedef}nav em{margin-left:auto;font-style:normal;font-size:10px;color:#7e858a}.projects-label{padding-bottom:7px}.status-dot{width:6px;height:6px;display:inline-block;border-radius:50%}.green{background:#a9f36b}.amber{background:#ebba65}.gray{background:#70777c}.sidebar-bottom{margin-top:auto}.help-card{border:1px solid #2c332e;background:linear-gradient(140deg,#1c2420,#171b1d);border-radius:9px;padding:13px;margin-bottom:13px}.help-card>span{color:var(--green);font-size:17px;display:block;margin-bottom:8px}.help-card b{font-size:11px}.help-card p{font-size:10px;color:#8d9491;line-height:1.5;margin:5px 0 10px}.help-card a{color:var(--green);font-size:10px}.help-card a span{float:right}.user-row{border-top:1px solid #282c30;padding:13px 4px 0;display:flex;align-items:center;gap:9px}.avatar{width:28px;height:28px;border-radius:50%;background:#394d43;color:#c5f0cd;font-size:9px;font-weight:700;display:grid;place-items:center}.more{margin-left:auto;color:#888;font-size:18px}main{flex:1;min-width:0}.topbar{height:61px;border-bottom:1px solid #25282b;padding:0 42px;display:flex;justify-content:space-between;align-items:center}.crumb{font-size:11px;color:#858b91}.crumb span{padding:0 9px;color:#53595e}.crumb b{color:#d7dadd;font-weight:500}.top-actions{display:flex;align-items:center;gap:15px}.icon-btn{background:none;border:0;color:#9ca2a7;font-size:17px;position:relative}.icon-btn i{position:absolute;width:4px;height:4px;background:var(--green);border-radius:50%;right:1px;top:1px}.small-avatar{border:0}.content{max-width:1220px;margin:auto;padding:42px 44px 22px}.welcome{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:30px}.eyebrow{font-size:9px;color:#98a09c;letter-spacing:1.2px;font-weight:700;display:flex;align-items:center;gap:8px}.pulse{width:6px;height:6px;background:var(--green);border-radius:50%;box-shadow:0 0 10px #a9f36770}h1,h2,h3,p{margin-top:0}h1{font:600 31px Manrope,sans-serif;letter-spacing:-1.2px;margin:10px 0 5px}h1 span{color:var(--green)}.welcome p,.section-head p{font-size:12px;color:#858b91;margin:0}.primary{background:var(--green);color:#151b15;border:0;border-radius:6px;padding:10px 14px;font-size:11px;font-weight:700;cursor:pointer;box-shadow:0 3px 15px #a9f36112}.primary:hover{background:#bafa81}.primary span{font-size:15px;vertical-align:-1px;margin-right:4px}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-bottom:33px}.stats article{background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:15px 17px;min-height:112px}.stat-top{display:flex;justify-content:space-between;align-items:center;color:#92989e;font-size:10px}.stat-icon{font-size:15px;color:#b8c0c5}.purple-icon{color:#bc9af3}.orange-icon{color:#edb371}.stats strong{display:block;font:600 23px Manrope,sans-serif;margin:10px 0 5px;letter-spacing:-.5px}.stats small{color:#777e84;font-size:9px}.stats small .status-dot{margin-right:5px}.deploy-date{font-size:17px!important;margin-top:13px!important}.section-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:14px}.section-head h2{font:600 15px Manrope,sans-serif;margin:0 0 4px;letter-spacing:-.3px}.text-link{color:#aab0b4;font-size:10px}.text-link span{color:var(--green);padding-left:5px}.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.project-card{border:1px solid var(--line);background:var(--panel);border-radius:8px;padding:14px 15px 0;min-height:181px;transition:border-color .18s,transform .18s}.project-card:hover{border-color:#465148;transform:translateY(-2px)}.card-head{display:flex;justify-content:space-between;align-items:start}.lang-icon{width:27px;height:27px;display:grid;place-items:center;border-radius:7px;font-weight:700;font-size:10px}.go{color:#8bd4e0;background:#1c3135}.ts{color:#91a8ff;background:#222c43}.py{color:#f2ce72;background:#37331f}.kebab,.dots{border:0;background:none;color:#81878d;letter-spacing:2px;cursor:pointer}.project-title{display:flex;align-items:center;gap:9px;margin-top:10px}.project-title h3{font:600 12px Manrope,sans-serif;margin:0}.badge{font-size:8px;padding:3px 6px;border-radius:10px;display:flex;align-items:center;gap:4px}.badge i{width:4px;height:4px;border-radius:50%;background:currentColor}.live{background:#1e2a1e;color:#a9d89a}.build{background:#2c281d;color:#dbb970}.paused{background:#26292b;color:#a0a5a8}.project-card>p{font-size:10px;color:#858b91;margin:7px 0 12px}.project-meta{display:flex;justify-content:space-between;color:#777e84;font-size:9px;padding-bottom:12px}.project-meta span:first-child{color:#a6adb1}.card-footer{border-top:1px solid #282c30;display:flex;justify-content:space-between;align-items:center;height:36px;color:#8c9398;font-size:9px}.card-footer .status-dot{margin-right:5px}.card-footer a{color:#b9bec1}.card-footer a b{color:var(--green);padding-left:4px}.lower-grid{display:grid;grid-template-columns:1.7fr 1fr;gap:14px;margin-top:30px}.activity,.stack-card{background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:16px}.compact{align-items:flex-start;margin-bottom:11px}.compact h2{font-size:13px}.compact p{font-size:10px}.activity-list{display:grid}.activity-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-top:1px solid #25292c}.activity-icon{width:25px;height:25px;display:grid;place-items:center;border-radius:6px;font-size:11px;flex:none}.green-bg{background:#203022;color:#a9f36b}.blue-bg{background:#202d3c;color:#91a8e9}.purple-bg{background:#30273a;color:#c1a1e7}.activity-row b{font-size:10px;font-weight:500;display:block}.activity-row small{font-size:9px;color:#777e84;display:block;margin-top:4px}.activity-row time{margin-left:auto;font-size:9px;color:#777e84;white-space:nowrap;align-self:flex-start;padding-top:3px}.stack-card{background:linear-gradient(145deg,#1c241f,#171a1d);border-color:#2c352e}.stack-card .eyebrow{font-size:8px}.stack-card h2{font:600 17px/1.35 Manrope,sans-serif;margin:12px 0 6px;letter-spacing:-.5px}.stack-card h2 span{color:var(--green)}.stack-card p{font-size:10px;color:#858b91;line-height:1.6;margin-bottom:12px}.stack-tags{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:14px}.stack-tags span{font-size:8px;padding:5px 8px;border:1px solid #343a36;border-radius:4px;color:#a5ada7;background:#1d221f}.outline{background:transparent;color:#c2c7c9;border:1px solid #3b4144;border-radius:5px;padding:8px 10px;font-size:9px;cursor:pointer}.outline span{color:var(--green);padding-left:10px}.outline:hover{border-color:#778478}footer{padding:25px 0 0;color:#62686c;font-size:9px}footer>span{padding:0 5px}.footer-right{float:right}dialog{background:#191d1f;color:var(--text);border:1px solid #353a3d;border-radius:12px;padding:0;width:min(440px,calc(100% - 32px));box-shadow:0 24px 100px #000b}dialog::backdrop{background:#080a0bcc;backdrop-filter:blur(4px)}#projectForm{padding:27px;position:relative}#projectForm h2{font:600 21px Manrope,sans-serif;margin:13px 0 5px;letter-spacing:-.6px}.modal-copy{color:#899095;font-size:11px;margin:0 0 20px}#projectForm label{font-size:10px;color:#b6bdc0;font-weight:600;display:block;margin:13px 0 6px}#projectForm input,#projectForm select{width:100%;height:38px;border:1px solid #363c40;border-radius:5px;background:#121517;color:#e4e7e8;padding:0 10px;font:11px 'DM Sans',sans-serif;outline:0}#projectForm input:focus,#projectForm select:focus{border-color:#91c95d}.close{position:absolute;right:16px;top:13px;border:0;background:none;color:#838a8f;font-size:22px;cursor:pointer}.modal-note{background:#20251f;border:1px solid #30392f;border-radius:5px;padding:10px;margin-top:14px;color:#9ca69a;font-size:9px;line-height:1.55}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.modal-actions .primary{font-size:10px;padding:9px 12px}.toast{position:fixed;bottom:22px;left:50%;transform:translate(-50%,15px);opacity:0;background:#e2f8d2;color:#172017;border-radius:6px;padding:11px 15px;font-size:11px;font-weight:600;transition:.2s;pointer-events:none;box-shadow:0 5px 22px #0007}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:1000px){.sidebar{width:210px}.content{padding:34px 28px}.topbar{padding:0 28px}.project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lower-grid{grid-template-columns:1.4fr 1fr}}
@media(max-width:720px){.sidebar{width:56px;padding:18px 8px}.brand{padding:0 5px 26px}.brand>span:last-child,.workspace-switch>span:not(.workspace-icon),.nav-label,.sidebar nav a:not(.active)::after,.sidebar nav a:not(.active){font-size:0}.workspace-switch{border:0;padding:0;justify-content:center}.workspace-icon{flex:none}.sidebar nav{margin-bottom:18px}.sidebar nav a{justify-content:center;padding:0;font-size:0}.sidebar nav a>span{font-size:15px}.sidebar nav a.active{font-size:0}.sidebar nav a.active span{font-size:15px}.sidebar-bottom .help-card,.user-row>span:not(.avatar){display:none}.user-row{justify-content:center}.user-row .avatar{flex:none}.topbar{height:52px;padding:0 17px}.content{padding:27px 17px 18px}.welcome{align-items:flex-start;gap:12px}.welcome h1{font-size:25px}.welcome p{font-size:10px;line-height:1.5}.welcome .primary{white-space:nowrap;padding:9px 10px;font-size:9px;margin-top:15px}.stats{gap:7px;margin-bottom:27px}.stats article{padding:11px 10px;min-height:98px}.stat-top{font-size:8px}.stat-icon{display:none}.stats strong{font-size:19px}.stats small{font-size:8px;line-height:1.5;display:block}.deploy-date{font-size:13px!important}.project-grid{grid-template-columns:1fr}.lower-grid{grid-template-columns:1fr}.stack-card{order:-1}.section-head h2{font-size:14px}.footer-right{display:none}}
.workspace-modal{padding:26px;position:relative}.workspace-modal h2{font:600 21px Manrope,sans-serif;margin:10px 0 16px}.workspace-toolbar{display:flex;gap:8px;align-items:center;margin:10px 0}.workspace-toolbar select,.assistant-form input{background:#121517;border:1px solid #363c40;color:#e4e7e8;border-radius:5px;padding:9px;font:11px 'DM Sans',sans-serif}.workspace-toolbar select{flex:1}#fileEditor{width:100%;height:260px;resize:vertical;background:#101214;color:#dbe5d9;border:1px solid #303639;border-radius:6px;padding:13px;font:12px/1.6 Consolas,monospace;tab-size:2}#checkOutput{white-space:pre-wrap;background:#101214;border:1px solid #303639;border-radius:6px;padding:11px;color:#aeb7b1;font:10px/1.6 Consolas,monospace;min-height:48px}.assistant-form{display:flex;gap:8px;margin:12px 0 8px}.assistant-form input{flex:1;min-width:0}.custom{color:#c5b1e8;background:#31283b}.project-search{width:190px;background:#121517;border:1px solid #303639;border-radius:5px;padding:8px 10px;color:#e6e8e9;font:10px 'DM Sans',sans-serif;outline:none}.project-search:focus{border-color:#92c960}.project-card[hidden]{display:none}.ai-review{border:1px solid #303639;border-radius:6px;padding:11px;margin:12px 0}.ai-review>b{font-size:10px}.ai-review pre{white-space:pre-wrap;max-height:190px;overflow:auto;color:#bac4bb;font:10px/1.5 Consolas,monospace}.ai-review button[hidden]{display:none}

/* Contemporary product polish */
:root{--bg:#0b0e11;--panel:#12171b;--panel2:#171d21;--line:#283139;--muted:#9aa5ad;--text:#f1f4f3;--green:#b7f28b;--green2:#18251b;--accent:#d4ffad;--shadow:0 24px 90px #0009}
body{background:radial-gradient(ellipse at 80% -20%,#1a2a20 0,transparent 38%),var(--bg);letter-spacing:.005em}
.sidebar{background:#0d1114cc;border-color:#222a30;backdrop-filter:blur(18px)}
.brand-mark{border-radius:9px;background:linear-gradient(145deg,#d8ffb4,#9ed86e);box-shadow:0 4px 20px #b7f28b30}
.workspace-switch,.stats article,.project-card,.activity,.stack-card{background:linear-gradient(145deg,#151b1f,#111619);border-color:#283138;border-radius:12px;box-shadow:0 8px 28px #00000014}
.project-card{padding:17px 17px 0}.project-card:hover{border-color:#52654d;box-shadow:0 15px 36px #0004;transform:translateY(-3px)}
.primary,.outline,.icon-btn,.kebab,.dots{transition:transform .16s ease,background .16s ease,border-color .16s ease,box-shadow .16s ease}
.primary{border-radius:9px;padding:11px 16px;background:linear-gradient(135deg,#c9ffa0,#a9e67c);box-shadow:0 5px 18px #b7f28b1c;font-size:12px}.primary:hover{transform:translateY(-1px);box-shadow:0 8px 24px #b7f28b30}.primary:active{transform:translateY(0) scale(.98)}
.outline{border-radius:9px;padding:9px 13px;background:#ffffff05;border-color:#39434b;font-size:10px}.outline:hover{background:#ffffff0b;border-color:#7e8c80;transform:translateY(-1px)}
.topbar{background:#0d1114ad;backdrop-filter:blur(14px);border-color:#222a30;position:sticky;top:0;z-index:5}
h1{font-size:34px;letter-spacing:-1.5px}h2,h3{letter-spacing:-.45px}
.stats article{min-height:122px;padding:18px}.project-grid{gap:15px}.lower-grid{gap:15px}.content{padding-top:38px}
dialog{border-radius:20px;border-color:#354139;background:linear-gradient(150deg,#171e1d,#111619);box-shadow:var(--shadow)}
dialog::backdrop{background:#06090bcc;backdrop-filter:blur(8px)}
.auth-modal{position:relative;overflow:hidden;padding:38px;width:min(440px,calc(100vw - 30px));min-height:470px;background:radial-gradient(circle at 100% 0,#293d2a66,transparent 38%)}
.auth-brand{display:flex;align-items:center;gap:9px;font:800 15px Manrope,sans-serif;margin-bottom:46px}.auth-brand .brand-light{color:#9ca8a0;font-weight:500}
.auth-orbit{position:absolute;right:34px;top:34px;width:44px;height:44px;border:1px solid #b7f28b33;background:#b7f28b0b;color:var(--green);border-radius:14px;display:grid;place-items:center;font-size:20px}
.auth-modal .eyebrow{font-size:9px;color:#b7f28b}.auth-modal h2{font:700 29px Manrope,sans-serif;letter-spacing:-1.2px;margin:10px 0 7px}.auth-modal .modal-copy{font-size:12px;line-height:1.6;margin-bottom:24px}
.auth-modal label{font-size:10px;color:#c1cbc5;margin:15px 0 7px}.auth-modal input{height:44px;border-radius:9px;background:#0c1112;border-color:#35413b;padding:0 13px;font-size:12px}.auth-modal input:focus{border-color:#b7f28b;box-shadow:0 0 0 3px #b7f28b1c}
.auth-modal .modal-actions{margin-top:20px;display:grid;grid-template-columns:1fr 1fr}.auth-modal .modal-actions button{min-height:42px}.auth-modal #authSubmit span{margin-left:7px}.auth-footnote{margin:23px 0 0;text-align:center;color:#84918a;font-size:9px}.auth-footnote span{padding:0 6px;color:#b7f28b}
#authError{min-height:16px;color:#ff9b91;font-size:10px;margin-top:7px}
#projectForm{padding:34px}.workspace-modal{padding:30px}.toast{border-radius:10px;box-shadow:0 12px 40px #0006}
.getting-started{background:linear-gradient(120deg,#141b18,#111619);border:1px solid #2b3830;border-radius:14px;padding:20px;margin:0 0 26px;box-shadow:0 12px 32px #0002}.getting-started h2{font:600 15px Manrope,sans-serif;margin:8px 0 15px}.guide-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.guide-steps>div{display:flex;gap:10px;align-items:flex-start}.guide-steps>div>b{color:var(--green);font:600 10px Manrope,sans-serif}.guide-steps strong,.guide-steps small{display:block}.guide-steps strong{font-size:10px}.guide-steps small{font-size:9px;color:#929d96;margin-top:4px}.runtime-line{display:flex;justify-content:space-between;border-top:1px solid #29322c;margin-top:16px;padding-top:12px;color:#89958d;font-size:9px}
@media(max-width:720px){.auth-modal{padding:28px;min-height:440px}.auth-brand{margin-bottom:38px}.auth-modal h2{font-size:25px}.guide-steps{grid-template-columns:1fr;gap:10px}.getting-started{padding:15px}.runtime-line{align-items:center;gap:8px}.welcome h1{font-size:25px}}

/* Accessible, vertically aligned authentication form */
#authDialog{width:min(460px,calc(100vw - 28px));max-width:calc(100vw - 28px);overflow-x:hidden}
.auth-modal{display:flex;flex-direction:column;width:100%;max-width:100%;min-width:0;overflow-x:hidden;gap:0}
.auth-modal label{display:block;width:100%;font-size:18px;line-height:1.45;font-weight:650;letter-spacing:.01em;margin:18px 0 8px;color:#e4ebe6}
.auth-modal input{display:block;width:100%;max-width:100%;min-width:0;height:50px;padding:0 15px;border-radius:10px;font-size:16px;line-height:1.4}
.auth-modal .modal-copy{font-size:14px;line-height:1.6;color:#b0bbb4}
.auth-modal .eyebrow{font-size:11px;letter-spacing:1.3px}
.auth-modal h2{font-size:31px;line-height:1.2}
.auth-modal .modal-actions{width:100%;gap:12px}
.auth-modal .modal-actions button{font-size:14px;min-width:0;padding:12px 10px}
.auth-footnote{font-size:12px;line-height:1.5}
#authError{font-size:13px;line-height:1.45}
@media(max-width:520px){.auth-modal{padding:25px}.auth-modal h2{font-size:27px}.auth-modal .modal-actions{grid-template-columns:1fr}.auth-modal label{font-size:18px}.auth-modal input{font-size:16px}}
.auth-modal input{background:#25312d!important;border:1px solid #64766b!important;color:#fff!important;box-shadow:inset 0 1px 2px #0005;transition:border-color .16s,box-shadow .16s,background .16s}
.auth-modal input::placeholder{color:#bdc9c1;opacity:1}
.auth-modal input:focus{background:#2a3832!important;border-color:#b7f28b!important;box-shadow:0 0 0 3px #b7f28b2b}
.auth-modal input:user-invalid{border-color:#ff8d83!important;box-shadow:0 0 0 3px #ff8d8326}
.auth-modal [hidden]{display:none!important}

/* More legible controls and a persistent, user-selectable light theme. */
body{font-size:15px;line-height:1.5;transition:background-color .2s,color .2s}
.nav-label,.eyebrow{font-size:11px}.sidebar nav a,.crumb,.welcome p,.section-head p{font-size:13px}
.welcome p{max-width:650px;line-height:1.65}.primary{font-size:13px}.outline,.text-link,.project-search{font-size:12px}
.stat-top,.stats small,.project-title h3,.project-card>p,.project-meta,.card-footer,.activity-row b,.activity-row small,.activity-row time,.stack-card p,.stack-tags span,.guide-steps strong,.guide-steps small,.runtime-line{font-size:12px}
.project-card>p,.stack-card p,.guide-steps small{line-height:1.55}.stats strong{font-size:27px}.project-card{min-height:195px}.project-grid{gap:18px}
button,a,input,select,textarea{font-family:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #9be46c;outline-offset:2px}
.theme-toggle{min-width:120px}.top-actions .outline{min-height:40px}.auth-access-note{margin:15px 0 0;text-align:center;color:#aab8ad;font-size:12px;line-height:1.55}
.auth-theme{font:inherit;cursor:pointer;transition:background .18s,border-color .18s,transform .18s}.auth-theme:hover{background:#b7f28b18;border-color:#b7f28b77;transform:translateY(-1px)}.auth-theme span{display:none}
.assistant-form input{font-size:14px;min-height:44px}.assistant-form .primary{min-width:120px}.assistant-form button:disabled{opacity:.7;cursor:progress}
.ai-review{border-radius:12px;padding:16px;background:#ffffff03}.ai-review>b{font-size:14px}.ai-review pre{font-size:12px;line-height:1.65;max-height:280px}.workspace-modal h2{font-size:25px}.workspace-toolbar{gap:10px}.file-guide,.endpoint-guide,.api-tester{border-radius:12px}.api-tester h3{font-size:18px}.api-tester p{font-size:13px;line-height:1.55}.api-request input,.api-request select,.workspace-toolbar select{font-size:13px;min-height:42px}
#aiOutput{overflow-wrap:anywhere}.toast{font-size:13px;padding:13px 18px}
@media(max-width:720px){body{font-size:14px}.welcome p{font-size:13px}.stats small,.project-card>p,.project-meta,.card-footer,.activity-row b,.activity-row small,.activity-row time,.stack-card p,.guide-steps strong,.guide-steps small{font-size:12px}.theme-toggle{min-width:0}.theme-toggle span{display:none}.top-actions{gap:8px}}

body[data-theme="light"]{--bg:#f2f5f3;--panel:#ffffff;--panel2:#f7faf8;--line:#dce4de;--muted:#5d6c62;--text:#18231c;--green:#377d26;--green2:#e5f2e0;--accent:#427f2f;--shadow:0 24px 70px #29433220;background:radial-gradient(ellipse at 80% -20%,#dcebd8 0,transparent 40%),var(--bg);color:var(--text)}
body[data-theme="light"] .sidebar{background:#f8faf8ed;border-color:#dce4de}
body[data-theme="light"] .brand-light,body[data-theme="light"] .crumb,body[data-theme="light"] .welcome p,body[data-theme="light"] .section-head p,body[data-theme="light"] .project-card>p,body[data-theme="light"] .stack-card p,body[data-theme="light"] .activity-row small,body[data-theme="light"] .activity-row time,body[data-theme="light"] .modal-copy{color:#5f6d64}
body[data-theme="light"] .crumb b,body[data-theme="light"] .project-title h3,body[data-theme="light"] .activity-row b,body[data-theme="light"] .sidebar nav a.active{color:#17231b}
body[data-theme="light"] .workspace-switch,body[data-theme="light"] .stats article,body[data-theme="light"] .project-card,body[data-theme="light"] .activity,body[data-theme="light"] .stack-card{background:#fff;border-color:#dce4de;box-shadow:0 8px 25px #233b2b0a}
body[data-theme="light"] .topbar{background:#f8faf8e8;border-color:#dce4de}
body[data-theme="light"] .sidebar nav a{color:#59675e}body[data-theme="light"] .sidebar nav a.active{background:#e7eee8}
body[data-theme="light"] .help-card,body[data-theme="light"] .stack-card,body[data-theme="light"] .getting-started{background:linear-gradient(145deg,#f2f8f1,#fff);border-color:#d9e7d7}
body[data-theme="light"] .stack-tags span{color:#405447;background:#f2f6f2;border-color:#dce4de}
body[data-theme="light"] .outline{color:#34433a;background:#ffffffb3;border-color:#cbd6ce}body[data-theme="light"] .outline:hover{background:#eef5ed;border-color:#87a17f}
body[data-theme="light"] .primary{background:linear-gradient(135deg,#b5ef93,#91d86b);color:#162216}
body[data-theme="light"] dialog{background:linear-gradient(150deg,#fff,#f5f8f5);color:#18231c;border-color:#d3ddd5}
body[data-theme="light"] dialog::backdrop{background:#23322988}
body[data-theme="light"] #projectForm input,body[data-theme="light"] #projectForm select,body[data-theme="light"] .workspace-toolbar select,body[data-theme="light"] .assistant-form input,body[data-theme="light"] .project-search{background:#fff;color:#1a2820;border-color:#cbd7ce}
body[data-theme="light"] #fileEditor,body[data-theme="light"] #checkOutput,body[data-theme="light"] #apiOutput{background:#f5f8f6;color:#24372a;border-color:#d6e0d8}
body[data-theme="light"] .ai-review{background:#f7faf7;border-color:#d7e1d9}body[data-theme="light"] .ai-review pre{color:#34443a}
body[data-theme="light"] .file-guide,body[data-theme="light"] .endpoint-guide,body[data-theme="light"] .api-tester{background:#f7faf7;border-color:#d7e1d9}
body[data-theme="light"] .auth-modal input{background:#fff!important;color:#19261f!important;border-color:#c5d2c8!important}
body[data-theme="light"] .auth-modal input::placeholder{color:#66756b}body[data-theme="light"] .auth-modal label{color:#293a30}
body[data-theme="light"] .auth-modal .modal-copy,body[data-theme="light"] .auth-access-note,body[data-theme="light"] .auth-footnote{color:#586a5e}
body[data-theme="light"] .auth-modal .outline{color:#34433a;border-color:#cbd6ce}
body[data-theme="light"] .auth-modal .eyebrow{color:#39772d}body[data-theme="light"] .auth-modal #authError{color:#b42318}
body[data-theme="light"] .auth-theme{color:#39772d;background:#f0f7ec;border-color:#d1e2cc}
.footer-credit{margin-left:12px;color:#79867d}.footer-credit b{color:var(--text);font-weight:600}
body[data-theme="light"] .footer-credit{color:#5c6c60}
.access-status{color:var(--muted);font-size:12px}.launch-warning{max-width:620px;margin:auto;padding:44px;background:var(--panel);border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow)}.launch-warning .brand-mark{margin-bottom:30px}.launch-warning .eyebrow{color:var(--accent);margin:0 0 10px}.launch-warning h1{font-size:clamp(30px,5vw,44px)}.launch-warning>p:not(.eyebrow){color:var(--muted);font-size:16px;line-height:1.7;margin-bottom:24px}.launch-warning code{background:var(--panel2);padding:3px 6px;border-radius:5px}
@media(max-width:720px){.access-status{display:none}.launch-warning{margin:16px;padding:26px}}
body[data-theme="light"] .modal-note{background:#f0f6ed;border-color:#d4e4ce;color:#40533e}

/* Guided builder, API client, activity and deployment helpers */
.welcome-actions{display:flex;gap:10px;align-items:center}.spec-preview,.api-tester{margin:16px 0;padding:16px;border:1px solid #34443b;border-radius:12px;background:#111a16}.spec-preview b,.api-tester h3{color:#c5f6a4}.spec-preview p,.api-tester p,.empty-activity{color:#aab8af;font-size:13px;line-height:1.55;margin:8px 0 0}.api-tester h3{margin:0;font-size:16px}.api-request{display:grid;grid-template-columns:90px minmax(100px,1fr) auto;gap:8px;margin:12px 0}.api-tester input,.api-tester select,.api-tester textarea{width:100%;min-width:0;background:#25312d;color:#f0f5f1;border:1px solid #64766b;border-radius:8px;padding:10px;font:inherit}.api-tester textarea{resize:vertical}.api-tester pre,.deploy-status{white-space:pre-wrap;overflow-wrap:anywhere;background:#0b100e;border:1px solid #29352e;border-radius:9px;padding:12px;color:#d9e3dc;max-height:250px;overflow:auto;font-size:12px}.deploy-modal ol{padding-left:23px;color:#d6e0d9;line-height:1.8}.deploy-modal .outline{display:inline-flex;text-decoration:none;padding:11px 14px;color:#e3ece6}.activity-list{display:grid;gap:8px}.activity-row{display:grid;grid-template-columns:32px 1fr auto;align-items:center;gap:10px}.activity-row b{display:block}.activity-row small{display:block;color:#91a097}.activity-row time{font-size:11px;color:#91a097}.activity .dots{font-size:12px;padding:7px 10px}
@media(max-width:650px){.welcome-actions{align-items:stretch;flex-direction:column}.api-request{grid-template-columns:75px 1fr}.api-request button{grid-column:1/-1}.activity-row{grid-template-columns:28px 1fr}.activity-row time{grid-column:2}}

/* Readability and beginner learning layout */
body{font-size:16px;line-height:1.55}
body :is(p,small,label,button,input,select,textarea,a,nav,b,strong,li,time,code){font-size:max(1em,14px)!important;line-height:1.5}
.eyebrow,.nav-label{font-size:12px!important;line-height:1.4;letter-spacing:.08em}
h1{font-size:clamp(30px,3.4vw,42px);line-height:1.15}
h2,.section-head h2{font-size:23px!important;line-height:1.3}
h3,.project-title h3{font-size:17px!important;line-height:1.35}
.sidebar{width:270px}.content{max-width:1380px;padding:38px clamp(22px,4vw,56px) 32px}.topbar{padding-inline:clamp(22px,4vw,56px)}
.welcome p,.section-head p,.modal-copy{font-size:16px!important;line-height:1.6}
.primary,.outline,.text-link{padding:11px 15px}
.stats small,.project-meta,.card-footer,.badge,.activity-row small,.activity-row time,.help-card a,.stack-tags span,.runtime-line,.workspace-switch small,.user-row small{font-size:13px!important}
.project-card{min-height:210px;padding:18px 19px 0}.project-card>p{font-size:15px!important;line-height:1.55}.project-meta{gap:10px;flex-wrap:wrap}.project-empty{grid-column:1/-1;border:1px dashed #526253;background:#171e1a;border-radius:12px;padding:30px;display:grid;gap:10px;justify-items:start}.project-empty p{max-width:650px;color:#adb8b0;margin:0}.getting-started,.learning-overview{border:1px solid #29342e;background:#171c19;border-radius:14px;padding:22px;margin-bottom:26px}.guide-steps{margin:20px 0}.guide-steps small{font-size:14px!important;line-height:1.5}.learning-overview>div:first-child p{color:#aeb9b1;max-width:760px}.learning-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:18px}.learning-steps article{border:1px solid #303b34;background:#111714;border-radius:10px;padding:15px}.learning-steps article>b{color:#c6f6a4}.learning-steps article p{font-size:14px!important;color:#aeb9b1;margin:10px 0 0}.learning-steps code,.endpoint-guide code{color:#d4f6b7;background:#222c25;border-radius:5px;padding:2px 5px}
.workspace-modal{max-height:90vh;overflow:auto}.workspace-modal textarea,.api-tester textarea{font-size:14px!important;line-height:1.55}.workspace-toolbar select,.assistant-form input,.api-tester input,.api-tester select{font-size:14px!important;min-height:44px}.file-guide,.endpoint-guide,.request-flow{border:1px solid #354239;background:#121915;border-radius:10px;padding:14px;margin:12px 0}.file-guide p,.endpoint-guide p{color:#b5c0b8;margin:8px 0 0;font-size:14px!important}.request-flow{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.request-flow>b{width:100%;color:#c6f6a4}.request-flow span{background:#222b25;border-radius:7px;padding:7px 10px}.request-flow i{font-style:normal;color:#a9f36b}.api-tester p,.spec-preview p{font-size:14px!important}.api-tester pre,#checkOutput,.ai-review pre{font-size:14px!important;line-height:1.55;max-height:300px}.output-heading{display:flex;justify-content:space-between;gap:10px;color:#dfe9e1}.output-heading span{color:#96a49a}.project-search{font-size:14px!important;min-height:44px;padding:8px 12px}.activity-row{padding:13px 0}.activity-row b{font-size:14px!important}.activity-row small{font-size:13px!important}.activity-row time{font-size:12px!important}.empty-activity{font-size:14px!important}
@media(max-width:900px){.learning-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.sidebar{width:62px}.content{padding:24px 14px}.welcome{flex-direction:column;align-items:stretch}.welcome-actions{flex-direction:row;flex-wrap:wrap}.welcome-actions>*{flex:1}.stats{grid-template-columns:1fr}.stats article{min-height:unset}.learning-steps{grid-template-columns:1fr}.section-head{align-items:flex-start;flex-wrap:wrap}.section-head .project-search{order:3;width:100%}.project-meta{font-size:12px!important}.workspace-modal{padding:22px}.request-flow{justify-content:flex-start}.request-flow span{font-size:12px!important}}
#projectForm textarea{display:block;width:100%;min-height:100px;padding:11px 12px;border:1px solid #49574d;border-radius:9px;background:#121915;color:#f2f6f3;font:16px/1.5 'DM Sans',sans-serif;resize:vertical}#projectForm textarea:focus{outline:3px solid #a9f36b44;border-color:#a9f36b}.auth-modal input{font-size:16px!important}
#languageHelp{display:block;color:#9eaaa2;margin:7px 0 12px;line-height:1.5}

/* Phone and narrow-tablet layout: keep navigation in its own row, not over the page. */
@media(max-width:820px){
  html,body{width:100%;min-width:0;overflow-x:hidden}
  body{display:flex;flex-direction:column}
  .sidebar{width:100%;min-height:0;height:auto;flex:0 0 auto;flex-direction:row;align-items:center;gap:10px;padding:9px 14px;border-right:0;border-bottom:1px solid #25282b;overflow:hidden}
  .brand{flex:0 0 auto;padding:0;gap:7px;font-size:16px}
  .brand-mark{flex:0 0 28px}
  .workspace-switch,.sidebar .projects-label,.sidebar #projectNav,.sidebar-bottom{display:none}
  .sidebar nav.main-nav{display:flex;flex:1;min-width:0;justify-content:flex-end;align-items:center;gap:2px;margin:0}
  .sidebar nav.main-nav a{height:auto;min-height:36px;padding:6px 7px;gap:5px;white-space:nowrap;font-size:12px!important}
  .sidebar nav.main-nav a>span{flex:0 0 auto;font-size:14px}
  .sidebar nav.main-nav em{display:none}
  main{width:100%;min-width:0;flex:1 1 auto}
  .topbar{width:100%;height:auto;min-height:52px;padding:7px 14px;gap:8px}
  .crumb{display:none}
  .top-actions{margin-left:auto;gap:8px}
  .top-actions #accessStatus{display:none}
  .theme-toggle{min-width:40px;min-height:40px;padding:7px 10px}
  #accountButton{min-height:40px;padding:7px 13px;white-space:nowrap}
  .content{width:100%;max-width:100%;min-width:0;margin:0;padding:22px 16px 30px}
  .welcome{display:flex;flex-direction:column;align-items:stretch;gap:16px;margin-bottom:22px}
  .welcome>div{min-width:0;max-width:100%}
  .welcome h1{font-size:clamp(28px,7vw,36px);line-height:1.15;overflow-wrap:normal}
  .welcome p{font-size:15px!important;line-height:1.55}
  .welcome-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.45fr);gap:9px;width:100%}
  .welcome-actions>*{min-width:0;white-space:normal;padding:11px 8px!important;font-size:13px!important}
  .stats{grid-template-columns:1fr;gap:10px;margin-bottom:24px}
  .stats article{min-height:0}
  .project-grid,.lower-grid{grid-template-columns:minmax(0,1fr)}
  .section-head{align-items:flex-start;flex-wrap:wrap;gap:10px}
  .section-head .project-search{order:3;width:100%}
  .getting-started{padding:16px}
  .guide-steps{grid-template-columns:1fr;gap:12px}
  .learning-steps{grid-template-columns:1fr}
  .workspace-modal,.auth-modal{width:calc(100vw - 20px);max-width:calc(100vw - 20px);max-height:92dvh;margin:auto;padding:20px!important;overflow:auto}
  .workspace-toolbar{flex-wrap:wrap;gap:8px}
  .workspace-toolbar>*{min-width:0}
}
@media(max-width:420px){
  .sidebar{gap:7px;padding-inline:10px}
  .brand-light{display:none}
  .sidebar nav.main-nav a{padding-inline:5px;gap:4px;font-size:11px!important}
  .sidebar nav.main-nav a>span{font-size:13px}
  .content{padding-inline:14px}
  .welcome-actions{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr)}
  .welcome-actions>*{font-size:12px!important}
  .topbar{padding-inline:10px}
}
.auth-modal button:disabled{opacity:.72;cursor:wait}.auth-modal #authError{margin-top:10px;color:#ff9287;font-size:14px!important}
.terms-accept{display:flex!important;align-items:flex-start;gap:9px;width:100%;font-size:14px!important;line-height:1.5!important;margin:16px 0 2px!important}.terms-accept input{width:18px!important;height:18px!important;flex:0 0 18px;margin:1px 0 0;accent-color:#87c85e}.inline-link{border:0;background:none;padding:0;color:#4b8b38;text-decoration:underline;font:inherit;cursor:pointer}.forgot-link{align-self:flex-end;display:inline-flex;align-items:center;gap:9px;margin:10px 0 4px;padding:8px 11px;border:1px solid transparent;border-radius:10px;background:transparent;color:#5f8f47;font:650 14px/1.2 'DM Sans',sans-serif;letter-spacing:.01em;cursor:pointer;transition:background .18s,border-color .18s,color .18s,transform .18s}.forgot-link:hover{background:#b7f28b1c;border-color:#8abf6c55;color:#8ece68;transform:translateY(-1px)}.forgot-arrow{display:grid;place-items:center;width:23px;height:23px;border-radius:7px;background:#b7f28b20;color:#a7e07c;font-size:15px;transition:transform .18s}.forgot-link:hover .forgot-arrow{transform:translate(2px,-2px)}.auth-modal #authError:empty{display:none}.auth-modal [hidden]{display:none!important}
.terms-modal,.admin-modal{max-width:760px;max-height:88dvh;overflow:auto}.terms-modal h3,.admin-modal h3{margin:20px 0 6px;font-size:17px}.terms-modal p{line-height:1.7;color:var(--muted);font-size:15px}.terms-modal>.primary{margin-top:18px}.admin-toolbar{display:flex;gap:10px;margin:16px 0;flex-wrap:wrap}.admin-list{display:grid;gap:9px}.admin-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--panel2)}.admin-row>span{display:grid;gap:5px;min-width:0}.admin-row b{overflow-wrap:anywhere}.admin-row small{color:var(--muted);line-height:1.5}.admin-row button{flex:none}.admin-modal #adminStatus{padding:12px 14px;border-radius:10px;background:var(--green2);color:var(--text);line-height:1.5}.admin-access-guide{display:grid;gap:7px;padding:15px 16px;border:1px solid var(--line);border-radius:14px;background:var(--panel2);color:var(--muted);font-size:14px;line-height:1.55}.admin-access-guide>b{color:var(--text);font-size:15px}.admin-access-guide code{font-size:.92em;padding:2px 5px;border-radius:5px;background:var(--green2);color:var(--text)}.footer-right button{font:inherit}
body[data-theme="light"] .auth-modal label{color:#293a30}body[data-theme="light"] .terms-accept{color:#34443a!important}body[data-theme="light"] .inline-link{color:#39772d}body[data-theme="light"] .forgot-link{color:#39772d}body[data-theme="light"] .forgot-link:hover{background:#e9f5e5;border-color:#d5e8cf;color:#286c20}body[data-theme="light"] .forgot-arrow{background:#e4f1df;color:#3a7930}body[data-theme="light"] .terms-modal p{color:#586a5e}
.password-strength{display:grid;gap:9px;margin:12px 0 4px;padding:13px 14px;border:1px solid #64766b;border-radius:12px;background:#202b26}.password-strength[hidden]{display:none!important}.strength-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:13px}.strength-heading b{font-size:14px}.strength-heading span{color:#bdc9c1;text-align:right}.strength-meter{display:grid;grid-template-columns:repeat(5,1fr);gap:5px}.strength-meter i{height:5px;border-radius:99px;background:#48534d;transition:background .2s}.strength-meter[data-score="1"] i:nth-child(-n+1),.strength-meter[data-score="2"] i:nth-child(-n+2){background:#e28a67}.strength-meter[data-score="3"] i:nth-child(-n+3),.strength-meter[data-score="4"] i:nth-child(-n+4){background:#e6c266}.strength-meter[data-score="5"] i{background:#87c85e}.password-rules{display:grid;grid-template-columns:1fr 1fr;gap:5px 10px;margin:0;padding:0;list-style:none;color:#aebbb3;font-size:12px}.password-rules li::before{content:'○';display:inline-block;width:17px;color:#84928a}.password-rules li.met{color:#d7e9d0}.password-rules li.met::before{content:'✓';color:#a4e27d}.password-strength>p{margin:0;color:#aebbb3;font-size:12px;line-height:1.45}.auth-modal .password-strength{width:100%}
body[data-theme="light"] .password-strength{background:#f4f8f4;border-color:#d0ddd2}.password-strength{color:var(--text)}body[data-theme="light"] .strength-heading span,body[data-theme="light"] .password-rules,body[data-theme="light"] .password-strength>p{color:#586a5e}body[data-theme="light"] .password-rules li.met{color:#315b2b}body[data-theme="light"] .strength-meter i{background:#d7dfd8}
.admin-actions{display:flex;gap:8px;flex:none}.danger-action{color:#b42318!important;border-color:#e5b4ad!important}.danger-action:hover{background:#fff0ed!important}
@media(max-width:520px){.admin-row{align-items:flex-start;flex-direction:column}.admin-row button{width:100%}.admin-actions{display:grid;width:100%;grid-template-columns:1fr 1fr}.terms-modal,.admin-modal{padding:22px!important}}

