@font-face{font-family:Inter;src:url('/assets/inter.woff2') format('woff2');font-weight:100 900;font-display:swap}
:root{font-family:Inter,Arial,sans-serif;color-scheme:dark;--bg:#101014;--side:#141419;--panel:#19191f;--panel2:#1d1d25;--border:#2c2c36;--text:#f4f3fa;--muted:#a2a1b3;--accent:#a390ff;--purple:#8e72f7;--green:#84dfbd;--red:#ff969e;--shadow:0 20px 70px #0004}
:root[data-theme=light]{color-scheme:light;--bg:#f4f3f8;--side:#fff;--panel:#fff;--panel2:#efedf5;--border:#ddd9e8;--text:#252031;--muted:#706a80;--accent:#7250d8;--purple:#8061e1;--green:#157950;--red:#bf3455;--shadow:0 20px 70px #30204a12}
*{box-sizing:border-box}body{margin:0;font-size:16px}button,input,textarea,select{font:inherit}button,a,input,textarea,select{ -webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.42;cursor:not-allowed}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:4px}body{background:var(--bg);color:var(--text)}.app{min-height:100vh;display:grid;grid-template-columns:244px minmax(0,1fr)}.sidebar{background:var(--side);border-right:1px solid var(--border);height:100vh;position:sticky;top:0;display:flex;flex-direction:column;padding:33px 20px 20px}.brand{display:block;width:166px;height:38px;object-fit:contain;object-position:left}.brand-wrap{padding:0 8px 26px}.brand-light{display:none}[data-theme=light] .brand-light{display:block}[data-theme=light] .brand-dark{display:none}.workspace{display:flex;align-items:center;gap:12px;border:1px solid var(--border);border-radius:11px;padding:13px 10px;margin-bottom:29px;font-size:14px}.avatar{background:#a890ff1f;color:var(--accent);display:grid;place-items:center;width:34px;height:34px;border-radius:10px;font-weight:600;flex-shrink:0}.workspace small,.userbox small{display:block;color:var(--muted);font-size:12px;margin-top:3px}.label{font-size:12px;letter-spacing:.11em;text-transform:uppercase;color:var(--muted);padding:0 13px;margin:6px 0 12px}.nav{display:flex;flex-direction:column;gap:5px}.nav button{display:flex;align-items:center;gap:12px;text-align:left;background:transparent;border:0;color:var(--muted);padding:13px;border-radius:9px;font-size:14px}.nav button.active{background:#9e82ff18;color:var(--accent)}.nav button:hover{background:var(--panel2);color:var(--text)}.ic{width:20px;height:20px;vertical-align:middle;flex-shrink:0;display:inline-block;background:currentColor;mask:var(--icon) center / contain no-repeat;-webkit-mask:var(--icon) center / contain no-repeat}.nav .badge{margin-left:auto;font-size:12px;background:var(--panel2);padding:1px 6px;border-radius:4px}.nav-gap{height:28px}.sidebar-bottom{margin-top:auto;padding-top:36px}.helpbox{padding:16px;border:1px solid var(--border);border-radius:12px;background:linear-gradient(130deg,#a390ff0c,transparent);margin-bottom:20px}.helpbox p{font-size:13px;color:var(--muted);line-height:1.55}.helpbox strong{font-size:14px}.helpbox button{font-size:13px;padding:8px 10px;width:100%}.userbox{display:flex;align-items:center;gap:10px;border-top:1px solid var(--border);padding:18px 5px 0;font-size:14px}.userbox .icon-btn{margin-left:auto}.main{min-width:0}.topbar{height:85px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);padding:0 40px;gap:16px;font-size:14px}.crumb{display:flex;align-items:center;gap:13px;color:var(--muted)}.crumb strong{font-weight:500;color:var(--text)}.top-actions{display:flex;gap:13px;align-items:center}.top-actions .divider{height:22px;width:1px;background:var(--border)}.icon-btn{border:0;background:transparent;color:var(--muted);padding:7px;display:inline-grid;place-items:center;border-radius:7px}.icon-btn:hover{color:var(--text);background:var(--panel2)}.mobile-menu{display:none}.content{max-width:1510px;margin:0 auto;padding:36px 40px 30px}.page-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:29px}h1{font-size:30px;letter-spacing:-.8px;font-weight:600;margin:0 0 8px}h2{font-size:19px;letter-spacing:-.2px;font-weight:600;margin:0}h3{font-size:16px;margin:0;font-weight:600}p{line-height:1.6}.sub{color:var(--muted);font-size:14px;margin:0}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 15px;border:1px solid var(--border);border-radius:8px;background:var(--panel2);color:var(--text);font-size:14px;font-weight:500;white-space:nowrap;min-height:40px}.btn:hover{border-color:var(--muted);text-decoration:none}.btn.primary{background:#a18af7;border-color:#a18af7;color:#171025;box-shadow:0 3px 12px #a18af714}.btn.primary:hover{background:#b4a1ff}.btn.danger{color:var(--red);background:#ff969e08;border-color:#ff969e30}.btn.ghost{background:transparent}.btn.small{padding:7px 10px;min-height:32px;font-size:13px}.eyebrow{display:flex;align-items:center;gap:6px;color:var(--accent);font-size:12px;letter-spacing:.12em;text-transform:uppercase;margin-bottom:16px}.hero{position:relative;overflow:hidden;border:1px solid #66519c60;background:linear-gradient(115deg,#231d36,#1a1927 72%);border-radius:14px;padding:29px 32px;margin-bottom:26px;min-height:196px;display:flex;align-items:center;justify-content:space-between}.hero h2{font-size:27px;font-weight:500;letter-spacing:-.65px;color:#f7f3ff}.hero p{color:#b4a9cf;max-width:430px;margin:10px 0 20px;font-size:14px}.hero .btn{border-color:#ffffff20;background:#ffffff0b;color:#e3dafc}.hero-art{position:absolute;right:9%;top:-23px;width:220px;height:220px;transform:rotate(-17deg);border:1px solid #ba9bff24;border-radius:46px;background:linear-gradient(135deg,#9e7cec27,#18121e);box-shadow:inset 0 0 60px #9f78ff18,0 30px 60px #0003;display:grid;place-items:center}.hero-art:before,.hero-art:after{content:'';position:absolute;border:1px solid #ad8cf820;border-radius:46px;inset:-25px;z-index:0}.hero-art:after{inset:-50px}.hero-art img{width:125px;filter:drop-shadow(0 10px 10px #0005);transform:rotate(17deg)}.hero-content{z-index:1}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:33px}.stat{background:var(--panel);border:1px solid var(--border);border-radius:11px;padding:19px 20px}.stat-top{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:13px;margin-bottom:15px}.stat-top .ic{width:18px;height:18px}.stat-number{font-size:28px;letter-spacing:-1px;line-height:1}.stat-number small{font-size:15px;letter-spacing:0;color:var(--muted);margin-left:5px}.stat-foot{font-size:12px;color:var(--muted);margin-top:12px;display:flex;align-items:center;gap:6px}.stat-foot.green{color:var(--green)}.section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:17px}.section-title{display:flex;gap:10px;align-items:center}.count{font-size:12px;color:var(--muted);background:var(--panel2);padding:3px 7px;border-radius:5px}.filters{display:flex;align-items:center;gap:10px}.search{position:relative}.search .ic{position:absolute;left:11px;top:11px;width:17px;height:17px;color:var(--muted)}input,textarea,select{color:var(--text);background:var(--bg);border:1px solid var(--border);border-radius:8px;padding:10px 12px;font-size:14px;width:100%;outline:none}input:focus,textarea:focus,select:focus{border-color:var(--accent);box-shadow:0 0 0 3px #a390ff15}.search input{padding-left:36px;width:220px;font-size:13px}.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:29px}.project-card{background:var(--panel);border:1px solid var(--border);border-radius:12px;overflow:hidden;transition:border-color .2s,transform .2s}.project-card:hover{border-color:#77638f;transform:translateY(-2px)}.card-body{padding:21px}.card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:19px}.bot-icon{width:43px;height:43px;border-radius:12px;background:#a390ff18;border:1px solid #a390ff24;color:#b29cfa;display:grid;place-items:center}.bot-icon .ic{width:24px;height:24px}.project-card:nth-child(2) .bot-icon{color:#d5a5ef;background:#cb7dff12;border-color:#cb7dff20}.project-card:nth-child(3) .bot-icon{color:#98bbee;background:#6c9cda14;border-color:#6c9cda20}.pill{display:inline-flex;align-items:center;gap:6px;font-size:12px;padding:4px 8px;border:1px solid var(--border);border-radius:5px;color:var(--muted);white-space:nowrap}.pill.running{color:var(--green);background:#6ddbb00c;border-color:#6ddbb027}.pill.running:before{content:'';height:5px;width:5px;background:var(--green);border-radius:50%}.project-card h3{margin-bottom:7px;font-size:17px}.runtime{font-size:12px;color:var(--muted);display:flex;gap:8px;align-items:center}.card-metrics{display:flex;gap:30px;margin-top:23px}.metric-label{color:var(--muted);font-size:12px;margin-bottom:5px}.metric-value{font-size:14px}.metric-value span{color:var(--muted);font-size:12px}.card-foot{padding:13px 20px;border-top:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;background:#ffffff01}.card-foot small{color:var(--muted);font-size:12px}.card-foot .btn{min-height:30px;padding:5px 9px;font-size:12px;background:transparent}.lower-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:20px}.panel{background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:23px}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.panel-head h2{font-size:16px}.panel-head button{font-size:12px}.activity-row{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid var(--border);align-items:center;font-size:13px}.activity-row:last-child{border-bottom:0}.activity-row .activity-icon{background:var(--panel2);border:1px solid var(--border);border-radius:8px;width:32px;height:32px;display:grid;place-items:center;color:var(--muted)}.activity-row .activity-icon .ic{width:16px;height:16px}.activity-row small{display:block;color:var(--muted);font-size:12px;margin-top:4px}.activity-row time{margin-left:auto;color:var(--muted);font-size:12px;white-space:nowrap}.guide-link{display:flex;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid var(--border);color:var(--text);width:100%;text-align:left;background:none;border-width:0 0 1px}.guide-link:last-child{border-bottom:0}.guide-link>span:first-child{width:32px;height:32px;border-radius:8px;display:grid;place-items:center;color:var(--accent);background:#a390ff10}.guide-link strong{font-size:14px;font-weight:500}.guide-link small{display:block;color:var(--muted);font-size:12px;margin-top:4px}.guide-link>.ic{margin-left:auto;width:15px;color:var(--muted)}footer{margin-top:27px;display:flex;justify-content:space-between;font-size:12px;color:var(--muted);gap:15px}.demo-tag{background:#a390ff10;border:1px solid #a390ff25;color:var(--accent);font-size:12px;padding:5px 8px;border-radius:6px}.demo-note{font-size:12px;color:var(--muted);margin:0 0 22px;display:flex;align-items:center;gap:7px}.demo-note .ic{width:15px;height:15px}.tabs{display:flex;gap:5px;border-bottom:1px solid var(--border);margin-bottom:24px;overflow-x:auto}.tabs button{border:0;background:none;color:var(--muted);padding:14px 16px;border-bottom:2px solid transparent;display:flex;gap:8px;align-items:center;white-space:nowrap;font-size:14px}.tabs button.active{color:var(--accent);border-bottom-color:var(--accent)}.detail-head{margin-bottom:20px}.detail-title{display:flex;align-items:center;gap:15px}.detail-title h1{font-size:26px}.actions{display:flex;gap:8px;flex-wrap:wrap}.terminal{background:#101015;border:1px solid var(--border);border-radius:10px;overflow:hidden}.terminal-bar{padding:13px 17px;border-bottom:1px solid #2a2934;display:flex;justify-content:space-between;align-items:center;font-size:13px;color:#aaa5be}.terminal pre{padding:20px;margin:0;min-height:290px;max-height:440px;overflow:auto;white-space:pre-wrap;word-break:break-word;font:13px/1.8 ui-monospace,SFMono-Regular,Consolas,monospace;color:#c5b7df}.editor{background:#111118;color:#ddd4ed;border:none;border-radius:0;font:14px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;min-height:470px;resize:vertical;tab-size:4;padding:22px}.field{display:block;margin-bottom:20px;font-size:14px}.field>span{display:block;margin-bottom:9px}.field small{color:var(--muted);display:block;margin-top:7px;line-height:1.5}.form-panel{max-width:750px}.form-panel h2{margin-bottom:12px}.form-panel>p{color:var(--muted);font-size:14px;margin-bottom:25px}.notice{border:1px solid #a390ff38;background:#a390ff08;color:var(--muted);padding:14px 16px;border-radius:8px;font-size:14px;line-height:1.7;margin-bottom:22px}.notice strong{color:var(--text)}.danger-zone{margin-top:24px;border-color:#ff969e35}.danger-zone h2{color:var(--red)}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:14px}th{text-align:left;color:var(--muted);font-weight:500;font-size:12px;text-transform:uppercase;letter-spacing:.06em}td,th{padding:15px 12px;border-bottom:1px solid var(--border)}td .actions{flex-wrap:nowrap}tr:last-child td{border-bottom:0}.empty{padding:45px 20px;text-align:center;color:var(--muted);border:1px dashed var(--border);border-radius:12px;line-height:1.7}.guide-grid{display:grid;grid-template-columns:240px minmax(0,1fr);gap:24px}.guide-nav{display:flex;flex-direction:column;gap:8px}.guide-nav button{text-align:left}.article{max-width:850px;line-height:1.85}.article h2{font-size:25px;margin-bottom:15px}.article h3{margin-top:26px;font-size:18px}.article p,.article li{color:var(--muted);font-size:15px}.article code{font:13px ui-monospace,monospace;background:var(--panel2);padding:3px 6px;border-radius:4px;color:var(--text);overflow-wrap:anywhere}.article ol,.article ul{padding-left:23px}.article li{margin:12px 0}.login-page{min-height:100vh;display:grid;grid-template-columns:1.1fr 1fr}.login-story{padding:55px;display:flex;flex-direction:column;justify-content:space-between;background:radial-gradient(ellipse at 30% 60%,#64508b32,transparent 65%),#15121d;border-right:1px solid #2c263c}.login-story h1{font-size:54px;line-height:1.08;max-width:500px;letter-spacing:-2px;color:#f1edf9}.login-story p{max-width:420px;color:#b8adca}.login-story .brand{width:180px}.login-story small{color:#9486a7}.login-form{display:grid;place-items:center;padding:40px}.login-inner{width:100%;max-width:360px}.login-inner h2{font-size:29px;margin-bottom:12px}.login-inner .sub{margin-bottom:32px}.login-inner .btn{width:100%;margin-top:5px}.login-inner .hint{font-size:12px;line-height:1.7;color:var(--muted);margin-top:23px}.login-metal{width:130px;height:130px;margin:35px 0;filter:drop-shadow(0 12px 30px #a890ff30)}#toasts{position:fixed;bottom:25px;right:25px;z-index:100;display:flex;flex-direction:column;gap:10px;max-width:min(440px,90vw)}.toast{background:var(--panel2);border:1px solid var(--border);border-left:3px solid var(--accent);box-shadow:var(--shadow);border-radius:8px;padding:16px 20px;font-size:14px;line-height:1.5}.toast.error{border-left-color:var(--red)}dialog{background:var(--panel);color:var(--text);border:1px solid var(--border);border-radius:15px;padding:30px;width:min(470px,calc(100% - 32px));box-shadow:var(--shadow)}dialog::backdrop{background:#08080dbb;backdrop-filter:blur(4px)}dialog h2{font-size:24px;margin:0 0 12px}dialog p{font-size:14px;color:var(--muted)}dialog .actions{justify-content:flex-end;margin-top:24px}.secret-once{background:var(--bg);padding:15px;border:1px dashed var(--accent);border-radius:8px;word-break:break-all;font-family:monospace;color:var(--text);font-size:16px}.error-box{color:var(--red);font-size:14px;line-height:1.5;margin:12px 0;min-height:0}.loading{padding:80px;text-align:center;color:var(--muted)}.status-inline{display:flex;gap:7px;align-items:center;font-size:12px;color:var(--muted)}
@media(min-width:1600px){.content{padding-top:45px}.hero{min-height:220px}.project-card .card-body{padding:25px}.hero-art{right:12%}}
@media(max-width:1200px){.app{grid-template-columns:210px minmax(0,1fr)}.sidebar{padding:27px 14px 20px}.content{padding:28px}.topbar{padding:0 28px}.project-grid{gap:12px}.card-body{padding:17px}.card-metrics{gap:16px}.hero-art{right:3%;opacity:.65}.hero h2{max-width:340px}.stats{gap:12px}.stat{padding:17px 14px}.card-foot{padding:12px 15px}}
@media(max-width:980px){.project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.lower-grid{grid-template-columns:1fr}.hero-art{opacity:.3}.guide-grid{grid-template-columns:1fr}.guide-nav{flex-direction:row;overflow-x:auto}.login-story{padding:35px}.login-story h1{font-size:40px}.detail-head{align-items:flex-start;flex-direction:column}}
@media(max-width:720px){.app{display:block}.sidebar{display:none;position:fixed;width:250px;z-index:50;top:0;left:0;box-shadow:var(--shadow)}.sidebar.open{display:flex}.mobile-menu{display:inline-grid}.topbar{height:66px;padding:0 18px}.topbar .crumb{gap:8px;font-size:13px}.top-actions{gap:6px}.top-actions .desktop-only{display:none}.content{padding:24px 18px}.page-head{gap:15px;align-items:flex-start;margin-bottom:22px}h1{font-size:26px}.page-head .primary{font-size:0;padding:10px}.page-head .primary .ic{width:20px}.hero{padding:24px;min-height:210px}.hero h2{font-size:25px}.hero p{max-width:270px}.hero-art{right:-70px}.stats{gap:10px;margin-bottom:28px}.stat-number{font-size:26px}.section-head{align-items:flex-start;flex-direction:column}.filters{width:100%}.search{flex:1}.search input{width:100%}.project-grid{grid-template-columns:1fr}.lower-grid{gap:16px}.panel{padding:19px}.demo-note{align-items:flex-start;line-height:1.6}footer{flex-direction:column;gap:8px}.login-page{grid-template-columns:1fr}.login-story{display:none}.login-form{padding:30px 24px}.tabs{margin-left:-5px;margin-right:-5px}.tabs button{padding:12px;font-size:13px}.detail-title h1{font-size:23px}.card-metrics{gap:45px}.guide-nav .btn{font-size:12px}.editor{font-size:13px;padding:15px}.demo-tag{font-size:11px}.table-wrap{margin:0 -10px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.terminal .btn.ghost{color:#c4bbd6;border-color:#51485e}.terminal .btn.ghost:hover{color:#fff;border-color:#b3a5cd}
.project-profile { margin-bottom: 24px; }
.project-profile textarea { resize: vertical; }
.project-description { color: var(--muted); font-size: 14px; margin: 8px 0; overflow-wrap: anywhere; white-space: pre-wrap; }

/* A single project list keeps the name, status and memory aligned. */
.topbar { height: 66px; }
.brand-wrap { padding-bottom: 30px; }
.nav-section { margin-top: 30px; }
.sidebar-bottom .userbox { margin-top: 14px; }
.content { max-width: 1260px; }
.project-block { margin-bottom: 26px; }
.project-list { border: 1px solid var(--border); border-radius: 12px; background: var(--panel); overflow: hidden; }
.project-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) minmax(178px, auto) 20px; align-items: center; gap: 16px; width: 100%; padding: 14px 18px; min-height: 73px; border: 0; border-bottom: 1px solid var(--border); background: transparent; color: var(--text); text-align: left; }
.project-row:last-child { border-bottom: 0; }
.project-row:hover { background: var(--panel2); }
.project-row:focus-visible { outline-offset: -3px; }
.project-row .bot-icon { width: 40px; height: 40px; }
.project-identity { min-width: 0; }
.project-identity strong, .project-identity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-identity small { margin-top: 3px; color: var(--muted); font-size: 13px; }
.project-meta { display: grid; grid-template-columns: auto 93px; align-items: center; justify-items: start; gap: 12px; }
.project-ram { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; justify-self: end; white-space: nowrap; }
.project-open { color: var(--muted); }
.project-open .ic { width: 15px; }
.overview-activity { max-width: 100%; }
.overview-activity .panel-head { margin-bottom: 5px; }
.project-back { margin-bottom: 14px; }
.project-back .ic { width: 16px; transform: rotate(180deg); }
.setting-details summary { font-weight: 600; cursor: pointer; }
.setting-details p { color: var(--muted); font-size: 14px; }
.danger-zone summary { color: var(--red); }
@media (max-width: 720px) {
  .content > .page-head .primary { font-size: 13px; padding: 8px 10px; }
  .project-row { min-height: 65px; grid-template-columns: 37px minmax(0, 1fr) auto; gap: 10px; padding: 11px 12px; }
  .project-row .bot-icon { width: 35px; height: 35px; }
  .project-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
  .project-open { display: none; }
  .project-identity small, .project-ram { font-size: 12px; }
  .overview-activity .activity-row time { display: none; }
}

[hidden] { display: none !important; }
.sidebar { overflow-y: auto; }
.editor-toolbar { flex-wrap: wrap; gap: 12px; }
.editor-toolbar .actions { row-gap: 6px; }
.editor-area { display: grid; grid-template-columns: auto minmax(0,1fr); height: clamp(340px,54vh,660px); }
.editor-area .editor { display: block; min-height: 0; height: 100%; padding: 14px; resize: none; line-height: 22px; white-space: pre; overflow-wrap: normal; }
.editor-gutter { color: #a7a4b9; background: #14141d; border-right: 1px solid #30303e; min-width: 46px; padding: 14px 9px; overflow: hidden; white-space: pre; text-align: right; font: 14px/22px ui-monospace, SFMono-Regular, Menlo, monospace; }
.editor-wrap .editor { white-space: pre-wrap; overflow-wrap: anywhere; }
.editor-wrap { grid-template-columns: minmax(0,1fr); }
.editor-wrap .editor-gutter { display: none; }
.editor-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 9px 14px; color: #b6b3c5; font-size: 13px; border-top: 1px solid #30303e; }
.editor-help { margin-top: 11px; }
.audit-filters { display: grid; grid-template-columns: minmax(180px, 1.5fr) repeat(2,minmax(120px,1fr)); gap: 16px; }
.audit-count { margin-bottom: 12px; }
.audit-target { overflow-wrap: anywhere; }
.inline-setting { max-width: 240px; margin-bottom: 16px; }
.checkbox-field { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; font-size: 14px; }
.checkbox-field input { width: auto; accent-color: var(--accent); }
.settings-links { margin-top: 20px; }
.settings-links .actions { margin-top: 12px; }
.usage-panel { margin-bottom: 16px; }
.usage-panel .panel-head { gap: 12px; }
.usage-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.usage-metric { border: 1px solid var(--border); border-radius: 9px; padding: 13px; min-width: 0; }
.usage-metric strong { display: block; font-size: 19px; margin: 6px 0; }
.usage-metric progress { display: block; margin-top: 10px; width: 100%; height: 7px; accent-color: var(--accent); }
@media (max-width: 720px) {
  .audit-filters { grid-template-columns: 1fr; gap: 3px; }
  .editor-area .editor, .editor-gutter { font-size: 13px; }
  .usage-grid { gap: 6px; }
  .usage-metric { padding: 8px; }
  .usage-metric strong { font-size: 16px; }
}
.usage-note { margin: 0 0 12px; }
.usage-grid + .usage-note { margin: 12px 0 0; }
.status-badge { gap: 7px; color: var(--state-color,var(--muted)); border-color: color-mix(in srgb,var(--state-color,var(--muted)) 32%,var(--border)); background: color-mix(in srgb,var(--state-color,var(--muted)) 9%,transparent); }
.status-badge.good { --state-color: var(--green); }
.status-badge.warn { --state-color: #efbd64; }
.status-badge.bad { --state-color: var(--red); }
.status-badge.preview { --state-color: var(--accent); }
[data-theme=light] .status-badge.warn { --state-color: #8b5200; }
.state-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.bot-action-progress { display: inline-flex; align-items: center; }

/* Hosting console */
:root {
  --bg: #0c0c14;
  --side: #10101a;
  --panel: #15151f;
  --panel2: #1b1a28;
  --border: #2a293b;
  --text: #f3f1fa;
  --muted: #aaa7be;
  --accent: #c0adff;
  --purple: #9678f8;
  --green: #84dfbd;
  --red: #ff9aab;
  --shadow: 0 25px 80px #04040ba0;
  --sidebar-width: 246px;
}
:root[data-theme=light] {
  --bg: #f5f4fa;
  --side: #fff;
  --panel: #fff;
  --panel2: #f0eef9;
  --border: #dfdbea;
  --text: #252136;
  --muted: #645e77;
  --accent: #6042b3;
  --purple: #7551da;
  --green: #12734e;
  --red: #a52949;
  --shadow: 0 25px 70px #35276522;
}
.app { grid-template-columns: var(--sidebar-width) minmax(0,1fr); }
.sidebar { padding: 22px 15px 15px; overflow: hidden; min-height: 0; height: 100dvh; }
.brand-wrap { padding: 0 8px; margin: 0 0 19px; flex-shrink: 0; }
.brand-home { display: block; padding: 2px 0; border: 0; background: none; text-align: left; }
.brand-wrap .brand { width: 145px; height: 32px; }
.workspace-chip { min-width: 0; display: flex; align-items: center; gap: 11px; padding: 9px 10px; margin-bottom: 15px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); flex-shrink: 0; }
.workspace-chip strong, .workspace-chip small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.workspace-chip strong { font-size: 13px; letter-spacing: .01em; }
.workspace-chip small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.workspace-emblem { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb,var(--purple) 18%,var(--panel)); border: 1px solid color-mix(in srgb,var(--purple) 29%,var(--border)); border-radius: 9px; }
.workspace-emblem .ic { width: 18px; height: 18px; }
.sidebar-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.nav-group { margin: 0 0 15px; }
.nav-group h2 { margin: 0 0 7px; padding: 0 10px; color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .105em; line-height: 1.4; text-transform: uppercase; }
.nav { gap: 3px; }
.nav button { position: relative; min-height: 39px; width: 100%; gap: 10px; padding: 7px 10px; border: 1px solid transparent; border-radius: 8px; line-height: 1.2; font-size: 14px; font-weight: 550; white-space: nowrap; }
.nav button > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.nav-glyph { display: grid; align-items: center; flex-shrink: 0; }
.nav-glyph .ic { width: 17px; height: 17px; }
.nav button.active { color: var(--accent); background: color-mix(in srgb,var(--purple) 14%,var(--side)); border-color: color-mix(in srgb,var(--purple) 26%,var(--border)); }
.nav button.active::before { content: ''; position: absolute; width: 2px; top: 9px; bottom: 9px; left: 0; border-radius: 0 3px 3px 0; background: var(--purple); }
.project-shortcuts button { min-height: 31px; font-size: 13px; }
.shortcut-dot { display: inline-block; flex: 0 0 6px; height: 6px; margin: 0 5px 0 3px; border-radius: 50%; background: var(--muted); }
.shortcut-dot.running { background: var(--green); }
.shortcut-dot.preview, .shortcut-dot.restarting { background: var(--purple); }
.shortcut-dot.dead, .shortcut-dot.exited { background: var(--red); }
.sidebar-bottom { margin-top: auto; padding: 10px 0 0; flex-shrink: 0; }
.sidebar-bottom .nav-group { margin-bottom: 10px; }
.sidebar-bottom .userbox { margin: 0; border: 1px solid var(--border); border-radius: 10px; padding: 5px; background: var(--panel); }
.profile-button { min-width: 0; flex: 1; display: flex; align-items: center; gap: 9px; text-align: left; padding: 3px; color: var(--text); background: transparent; border: 0; }
.profile-button .avatar { width: 31px; height: 31px; border-radius: 8px; }
.profile-name, .profile-name small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-name { font-size: 13px; font-weight: 600; }
.profile-name small { font-size: 11px; font-weight: 400; }
.userbox .icon-btn { padding: 5px; }
.userbox .icon-btn .ic { width: 17px; height: 17px; }
.sidebar-scrim { display: none; }
.topbar { height: 63px; padding: 0 clamp(20px,3vw,40px); background: var(--bg); }
.crumb { min-width: 0; gap: 9px; }
.crumb .ic { width: 14px; height: 14px; }
.crumb strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumb-parent { white-space: nowrap; }
.quick-find { display: inline-flex; gap: 9px; align-items: center; min-height: 34px; border: 1px solid var(--border); border-radius: 8px; padding: 5px 8px 5px 10px; color: var(--muted); background: var(--panel); font-size: 13px; }
.quick-find:hover, .theme-control:hover { border-color: var(--purple); color: var(--text); }
.quick-find .ic { width: 16px; height: 16px; }
kbd { margin: 0 0 0 7px; border: 1px solid var(--border); border-radius: 4px; background: var(--panel2); color: var(--muted); padding: 1px 5px; font: 11px/1.35 ui-monospace, monospace; }
.theme-control { border: 1px solid var(--border); height: 34px; width: 34px; padding: 0; background: var(--panel); }
.theme-control .ic { width: 18px; height: 18px; }
.demo-tag { font-size: 10px; font-weight: 700; letter-spacing: .07em; }
.content { max-width: 1510px; padding: 30px clamp(20px,3vw,40px) 25px; }
.content > .page-head { margin: 3px 0 24px; }
.content > .page-head h1 { font-size: clamp(29px,3.3vw,40px); letter-spacing: -.042em; }
.btn { min-height: 38px; border-radius: 8px; }
.btn .ic { width: 17px; height: 17px; }
.btn.primary { background: linear-gradient(180deg,#aa93ff,#8e70f3); border-color: #b6a2ff; color: #141023; font-weight: 650; box-shadow: inset 0 1px 0 #fff5,0 6px 21px #8b62ff24; }
.btn.primary:hover { background: linear-gradient(180deg,#baa5ff,#9d80ff); }
:is(.btn,.nav button,.project-row,.settings-nav button,.quick-find,.theme-control) { transition: background-color .18s, border-color .18s, color .18s, box-shadow .18s; }
.hosting-hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 272px; overflow: hidden; padding: 27px 32px; margin-bottom: 18px; background: radial-gradient(ellipse at 75% 100%,#45327a93,transparent 65%),linear-gradient(112deg,#221a38,#151323 55%,#211938); border: 1px solid #554477; border-radius: 17px; }
.hero-copy { position: relative; z-index: 3; width: min(57%,560px); }
.hero-copy .hero-kicker { color: #d7c8ff; display: inline-flex; gap: 7px; align-items: center; margin: 0 0 11px; font-size: 11px; line-height: 1; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.hero-kicker .ic { width: 15px; height: 15px; }
.hero-copy h1 { margin: 0; color: #f9f6ff; font-size: clamp(33px,4.7vw,62px); line-height: 1.01; letter-spacing: -.045em; font-weight: 700; }
.hero-copy p:not(.hero-kicker) { max-width: 350px; margin: 13px 0 20px; font-size: 15px; color: #d0c5e1; line-height: 1.5; }
.hero-guide { color: #ede5fe; border-color: #756391; background: #312644; }
.hero-guide:hover { border-color: #bca3ee; background: #413455; }
.hero-environment { position: absolute; z-index: 3; bottom: 13px; right: 16px; display: inline-flex; align-items: center; gap: 5px; color: #d0bbe9; border: 1px solid #7d68ae70; background: #211a3690; border-radius: 6px; padding: 3px 7px; font-size: 11px; }
.hero-environment .ic { width: 13px; height: 13px; }
.core-art { position: absolute; inset: 0 0 0 43%; display: grid; place-items: center; pointer-events: none; }
.core-grid { position: absolute; inset: 0; opacity: .46; background-image: linear-gradient(#a493e931 1px,transparent 1px),linear-gradient(90deg,#a493e931 1px,transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(ellipse at 65% 60%,#000,transparent 73%); }
.core-orbit { position: absolute; width: 82%; aspect-ratio: 2; border: 1px solid #a68aff34; border-radius: 50%; transform: translate(3%,14%) rotate(-20deg); }
.orbit-inner { width: 65%; }
.core-float { position: relative; z-index: 2; width: min(95%,407px); height: auto; filter: drop-shadow(0 13px 24px #6449c47a); overflow: visible; }
.core-scan { position: absolute; z-index: 1; inset: 0 35% 0 -12%; opacity: .24; transform: skewX(-23deg); background: linear-gradient(90deg,transparent,#9e84fb64 49%,transparent 100%); mask-image: radial-gradient(ellipse at center,#000,transparent 72%); }
.overview-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; margin-bottom: 25px; }
.overview-metric { display: flex; align-items: flex-start; gap: 12px; min-width: 0; padding: 14px 15px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); }
.metric-icon { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; color: var(--accent); background: color-mix(in srgb,currentColor 13%,var(--panel)); border: 1px solid color-mix(in srgb,currentColor 25%,var(--border)); border-radius: 9px; }
.metric-icon .ic { width: 17px; height: 17px; }
.metric-mint .metric-icon { color: var(--green); }
.metric-blue .metric-icon { color: #9ab8ff; }
[data-theme=light] .metric-blue .metric-icon { color: #335ca9; }
.overview-metric h2 { color: var(--muted); font-size: 13px; font-weight: 600; }
.overview-metric strong { display: block; margin: 3px 0 1px; font-size: 25px; font-weight: 650; letter-spacing: -.055em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.overview-metric small { color: var(--muted); font-size: 12px; }
.dashboard-lower { display: grid; grid-template-columns: minmax(0,1fr) minmax(255px,.43fr); align-items: start; gap: 16px; }
.dashboard-lower .project-block, .management-list .project-block { min-width: 0; border: 1px solid var(--border); border-radius: 13px; background: var(--panel); overflow: hidden; margin: 0; }
.project-block .section-head { margin: 0; padding: 12px 15px; }
.project-block .section-title h2, .overview-activity h2 { font-size: 17px; }
.project-block .inline-setting { margin: 0 15px 12px; }
.project-block .filters { min-width: 0; }
.project-block .search input { width: clamp(130px,15vw,197px); background: var(--bg); }
.icon-refresh { width: 36px; flex-shrink: 0; padding: 0; }
.project-table-head, .project-table .project-row { display: grid; grid-template-columns: minmax(114px,1fr) minmax(78px,.39fr) minmax(72px,.37fr) 13px; align-items: center; gap: 11px; padding: 11px 15px; }
.project-table-head { font-size: 10px; line-height: 1.2; text-transform: uppercase; color: var(--muted); letter-spacing: .09em; background: var(--panel2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.project-table .project-row { min-height: 61px; }
.project-table .project-row:focus-visible { outline-offset: -3px; }
.project-table .bot-icon { width: 34px; height: 34px; border-radius: 9px; }
.project-table .bot-icon .ic { width: 20px; height: 20px; }
.project-title { display: flex; align-items: center; min-width: 0; gap: 10px; }
.project-identity strong { font-size: 14px; font-weight: 650; }
.project-identity small, .project-limits small { color: var(--muted); font-size: 12px; }
.project-limits { font-variant-numeric: tabular-nums; white-space: nowrap; }
.project-limits strong { display: block; color: var(--text); font-size: 13px; font-weight: 550; }
.project-limits small { display: block; margin-top: 2px; }
.project-status .status-badge { max-width: 100%; font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.project-empty { border: 0; padding: 31px 14px; display: grid; justify-items: center; gap: 9px; }
.empty-icon { width: 40px; height: 40px; display: grid; place-items: center; background: var(--panel2); border-radius: 10px; }
.overview-activity { border-radius: 13px; padding: 12px 14px; }
.overview-activity .panel-head { margin: 0 0 1px; min-height: 31px; }
.overview-activity .activity-row { padding: 10px 0; gap: 8px; min-width: 0; }
.activity-copy { min-width: 0; }
.activity-copy strong, .activity-copy small { display: block; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.activity-copy strong { font-size: 12px; font-weight: 600; }
.overview-activity time { font-size: 11px; }
.overview-activity .activity-icon { flex-shrink: 0; width: 29px; height: 29px; }
.activity-empty { padding: 13px 0; }
footer { align-items: center; border-top: 1px solid var(--border); padding-top: 13px; margin-top: 22px; }
.footer-guide { display: flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 0; color: var(--muted); font-size: 12px; }
.footer-guide:hover { color: var(--accent); }
.footer-guide .ic { width: 14px; height: 14px; }
#modal:has(.finder) { padding: 0; width: min(530px,calc(100% - 24px)); }
.finder { padding: 16px; }
.finder-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.finder-head h2 { margin: 0; font-size: 20px; }
.finder-search { display: block; margin: 12px 0 8px; }
.finder-search input { width: 100%; }
.finder-results { max-height: 325px; overflow-y: auto; }
.finder-results button { width: 100%; display: flex; gap: 12px; align-items: center; padding: 9px; text-align: left; border: 1px solid transparent; background: transparent; color: var(--text); border-radius: 7px; }
.finder-results button:hover { border-color: var(--border); background: var(--panel2); }
.finder-results button span:nth-child(2) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.finder-results small { display: block; color: var(--muted); margin-top: 2px; font-size: 12px; }
.project-path { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.project-path > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-back { display: inline-flex; align-items: center; gap: 4px; padding: 0; margin: 0; border: 0; background: transparent; color: var(--accent); }
.project-back:hover { color: var(--text); }
.project-back .ic { width: 14px; height: 14px; }
.project-banner { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 14px 20px; padding: 19px 21px 14px; border: 1px solid var(--border); border-radius: 14px; background: radial-gradient(ellipse at 0% 0%,color-mix(in srgb,var(--purple) 14%,transparent),transparent 72%),var(--panel); }
.project-banner-heading, .project-heading-line { display: flex; align-items: center; gap: 11px; }
.project-emblem { flex: 0 0 48px; height: 48px; }
.project-banner-copy { min-width: 0; }
.project-heading-line { flex-wrap: wrap; gap: 5px 9px; }
.project-heading-line h1 { margin: 0; font-size: clamp(23px,3vw,36px); letter-spacing: -.055em; overflow-wrap: anywhere; }
.project-banner-copy p { margin: 2px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.project-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.project-controls .actions { justify-content: flex-end; }
.project-controls .btn { padding: 7px 10px; min-height: 33px; font-size: 13px; }
.project-facts { grid-column: 1/-1; display: flex; gap: 9px 18px; padding: 11px 0 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.project-facts > span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.project-facts .ic { width: 15px; height: 15px; color: var(--accent); }
.project-tabs { padding-top: 9px; margin: 0 0 16px; }
.project-tabs button { padding: 12px 14px; }
.project-tabs button .ic { width: 17px; height: 17px; }
.project-settings-grid { display: grid; grid-template-columns: minmax(184px,225px) minmax(0,1fr); gap: 14px; align-items: start; }
.settings-nav { display: grid; gap: 6px; padding: 6px; border: 1px solid var(--border); border-radius: 11px; background: var(--panel); }
.settings-nav button { display: grid; grid-template-columns: 19px minmax(0,1fr) 13px; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 8px; padding: 9px 8px; text-align: left; color: var(--muted); background: transparent; }
.settings-nav button:hover, .settings-nav button.active { background: var(--panel2); border-color: var(--border); color: var(--text); }
.settings-nav button.active > .ic { color: var(--accent); }
.settings-nav button .ic { width: 16px; height: 16px; }
.settings-nav button .ic:last-child { width: 13px; }
.settings-nav strong, .settings-nav small { display: block; }
.settings-nav strong { font-size: 13px; }
.settings-nav small { color: var(--muted); margin-top: 2px; line-height: 1.35; font-size: 11px; }
.project-settings-panel { padding: 19px 21px; }
.settings-heading { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 17px; }
.settings-glyph { display: grid; place-items: center; width: 35px; height: 35px; flex-shrink: 0; color: var(--accent); background: var(--panel2); border: 1px solid var(--border); border-radius: 9px; }
.settings-glyph .ic { width: 17px; height: 17px; }
.settings-heading h2 { font-size: 18px; }
.settings-heading p, .lifecycle-row p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.project-settings-panel .field { margin: 0 0 16px; max-width: 64ch; }
.project-settings-panel .field span { margin-bottom: 6px; }
.project-settings-panel textarea { resize: vertical; }
.settings-form-footer { display: flex; justify-content: flex-end; padding-top: 12px; border-top: 1px solid var(--border); }
.resource-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 0; margin: 0 0 12px; }
.resource-facts > div { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px; min-width: 0; }
.resource-facts dt { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.resource-facts dt .ic { width: 14px; height: 14px; color: var(--accent); }
.resource-facts dd { margin: 5px 0 0; font-size: 13px; overflow-wrap: anywhere; font-weight: 630; }
.settings-note { display: flex; align-items: flex-start; gap: 7px; font-size: 13px; color: var(--muted); }
.settings-note .ic { width: 16px; height: 16px; color: var(--accent); margin-top: 2px; }
.lifecycle-panel { border-color: color-mix(in srgb,var(--red) 24%,var(--border)); }
.lifecycle-panel .settings-glyph { color: var(--red); }
.lifecycle-row { display: flex; justify-content: space-between; gap: 14px; align-items: center; border-top: 1px solid var(--border); padding: 14px 0; }
.lifecycle-row:last-child { padding-bottom: 0; }
.lifecycle-row h3 { font-size: 14px; }
.lifecycle-row .btn { font-size: 13px; }
.usage-panel { padding: 17px 18px; }
.usage-panel .panel-head { margin-bottom: 11px; }
.usage-metric { padding: 10px 12px; background: var(--bg); }
.usage-metric h3 { font-size: 13px; color: var(--muted); }
.usage-metric strong { font-size: 24px; letter-spacing: -.035em; }
.usage-metric progress { height: 6px; }
.terminal-bar { background: #1b1a27; }
.terminal pre { min-height: 234px; }
.panel:has(.table-wrap) { border-radius: 13px; }
.table-wrap table { min-width: 560px; }
.table-wrap th { background: var(--panel2); font-size: 11px; }
.table-wrap tr:hover td { background: color-mix(in srgb,var(--purple) 5%,transparent); }
@media (max-width: 1180px) {
  :root { --sidebar-width: 218px; }
  .hosting-hero { min-height: 236px; padding: 23px 26px; }
  .dashboard-lower { grid-template-columns: minmax(0,1fr) minmax(212px,.37fr); gap: 12px; }
  .overview-activity .activity-row time { display: none; }
  .overview-metric small { font-size: 11px; }
}
@media (max-width: 980px) {
  .dashboard-lower { grid-template-columns: 1fr; }
  .overview-activity .activity-row time { display: block; }
  .overview-metric { padding: 11px; gap: 8px; }
  .overview-metric small { display: none; }
  .project-settings-grid { grid-template-columns: minmax(158px,184px) minmax(0,1fr); gap: 10px; }
}
@media (max-width: 720px) {
  .app { display: block; }
  .sidebar { display: none; position: fixed; z-index: 51; width: min(275px,85vw); box-shadow: var(--shadow); }
  .sidebar.open { display: flex; }
  .sidebar-scrim:not([hidden]) { display: block; position: fixed; z-index: 50; inset: 0 0 0 min(275px,85vw); width: auto; border: 0; border-radius: 0; background: #090812aa; }
  .topbar { height: 57px; padding: 0 14px; }
  .crumb-parent, .crumb > .ic { display: none; }
  .crumb .mobile-menu .ic { width: 20px; height: 20px; }
  .quick-find { width: 34px; display: grid; place-items: center; padding: 0; }
  .quick-find span:not(.ic), .quick-find kbd { display: none; }
  .content { padding: 19px 14px; }
  .hosting-hero { min-height: 240px; padding: 18px 17px; margin-bottom: 12px; }
  .hero-copy { width: 87%; }
  .hero-copy h1 { font-size: clamp(32px,8.5vw,47px); }
  .hero-copy p:not(.hero-kicker) { max-width: 255px; font-size: 13px; }
  .core-art { inset: 5px 3px auto auto; width: clamp(68px, 18vw, 105px); }
  .hero-environment { bottom: 7px; right: 8px; font-size: 10px; }
  .hosting-hero .btn { min-height: 31px; font-size: 12px; padding: 6px 7px; }
  .overview-metrics { gap: 6px; margin-bottom: 14px; }
  .overview-metric { display: block; padding: 8px; }
  .metric-icon { width: 25px; height: 25px; border-radius: 6px; margin-bottom: 5px; }
  .metric-icon .ic { width: 13px; height: 13px; }
  .overview-metric h2 { font-size: 11px; line-height: 1.3; }
  .overview-metric strong { font-size: 22px; }
  .project-block .section-head { padding: 10px; gap: 7px; }
  .project-block .search input { width: 100%; }
  .project-table-head, .project-table .project-row { grid-template-columns: minmax(100px,1fr) auto 58px; gap: 6px; padding: 9px; }
  .project-table-head span:last-child, .project-open { display: none; }
  .project-table .bot-icon { width: 27px; height: 27px; border-radius: 6px; }
  .project-table .bot-icon .ic { width: 16px; height: 16px; }
  .project-title { gap: 6px; }
  .project-limits strong, .project-limits small, .project-identity small { font-size: 11px; }
  .project-identity strong { font-size: 13px; }
  .project-status .status-badge { font-size: 10px; padding: 3px 4px; gap: 4px; }
  .project-status .state-dot { width: 5px; height: 5px; }
  .project-banner { grid-template-columns: minmax(0,1fr); padding: 14px; gap: 10px; }
  .project-emblem { flex-basis: 39px; height: 39px; }
  .project-tabs button { padding: 9px 8px; gap: 5px; font-size: 12px; }
  .project-tabs button .ic { width: 14px; height: 14px; }
  .project-settings-grid { grid-template-columns: 1fr; }
  .settings-nav { display: flex; overflow-x: auto; }
  .settings-nav button { display: flex; white-space: nowrap; gap: 5px; min-width: auto; }
  .settings-nav small, .settings-nav button > .ic:last-child { display: none; }
  .project-settings-panel { padding: 14px; }
  .lifecycle-row { flex-wrap: wrap; }
  .resource-facts { gap: 5px; }
  .overview-activity .activity-row time { display: block; }
  .usage-panel { padding: 12px; }
  .usage-metric { padding: 7px; }
  .usage-metric strong { font-size: 20px; }
}

/* Use dedicated fonts for navigation and code. */
.nav, .topbar, .project-table, .hero-copy p { font-family: system-ui, sans-serif; }
.nav-group h2, .editor-toolbar strong, .editor-footer, .row-limits { font-family: ui-monospace, Menlo, Consolas, monospace; }
.nav button .nav-glyph { width: 25px; height: 25px; justify-content: center; border-radius: 7px; color: var(--glyph, var(--accent)); background: color-mix(in srgb, currentColor 12%, transparent); }
.nav [data-nav=projects], .nav [data-nav=bots] { --glyph: #65b99f; }
.nav [data-nav=shared], .nav [data-nav=users] { --glyph: #83aee7; }
.nav [data-nav=audit], .nav [data-nav=guides] { --glyph: #cd9a65; }
:root[data-theme=light] .nav button { --glyph: #535c89; }
.code-layers { position: relative; min-width: 0; min-height: 0; background: #111118; }
.code-colors, .editor-area .editor { font: 14px/22px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0; tab-size: 4; padding: 14px; border: 0; white-space: pre; overflow-wrap: normal; font-variant-ligatures: none; }
.code-colors { position: absolute; inset: 0 auto auto 0; overflow: hidden; color: #e0dfeb; pointer-events: none; }
.editor-area .editor { position: relative; width: 100%; background: transparent; color: transparent; caret-color: white; }
.editor-area .editor::selection { background: #8c82db63; }
.editor-wrap :is(.editor,.code-colors) { white-space: pre-wrap; overflow-wrap: anywhere; }
.py-keyword { color: #c8a9ff; }
.py-string { color: #92dec0; }
.py-literal { color: #ffcb89; }
.py-call { color: #90caff; }
.py-comment { color: #9c9aaf; }
@media (forced-colors: active) { .code-colors { visibility: hidden; } .editor-area .editor { color: CanvasText; caret-color: CanvasText; } }
.brand-wrap { padding: 5px 10px 20px; margin-bottom: 12px; border-bottom: 1px solid var(--border); }
.brand-caption { display: block; margin: 3px 0 0 2px; color: var(--muted); font: 500 12px/1.5 system-ui,sans-serif; letter-spacing: .07em; }
.platform-picker { border: 0; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.platform-picker legend { padding: 0 0 10px; }
.platform-picker label { display: flex; align-items: center; gap: 7px; padding: 12px 8px; border: 1px solid var(--border); border-radius: 9px; cursor: pointer; }
.platform-picker label:has(:checked) { border-color: var(--accent); background: var(--panel2); }
.platform-picker input { width: auto; margin: 0; accent-color: var(--accent); }

.platform-mark {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  border-radius: 7px;
  background: #5865f2;
}
.platform-mark img { display: block; width: 63%; height: auto; }
.platform-mark--telegram { border-radius: 50%; background: #229ed9; }
.platform-mark--telegram img { width: 100%; }
.bot-icon:has(.platform-mark) { background: var(--panel2); }
.project-emblem .platform-mark { width: 30px; height: 30px; }
.shortcut-platform { position: relative; display: inline-flex; flex: 0 0 auto; }
.shortcut-platform .platform-mark { width: 20px; height: 20px; border-radius: 6px; }
.shortcut-platform .platform-mark--telegram { border-radius: 50%; }
.shortcut-platform .shortcut-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 8px;
  height: 8px;
  margin: 0;
  border: 1px solid var(--side);
}
.platform-picker label { gap: 9px; min-height: 57px; padding: 10px; }
.platform-picker .platform-mark { width: 28px; height: 28px; }

.platform-art { aspect-ratio: 414 / 252; filter: none; }
.platform-tile {
  position: absolute;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: var(--tile-face);
  border: 1px solid #fff5;
  border-radius: 24%;
  box-shadow: inset 0 1px 3px #fff4, 0 0 30px var(--tile-glow);
}
.platform-tile::before {
  content: '';
  position: absolute;
  inset: 3% 0 -7%;
  z-index: -1;
  border-radius: inherit;
  background: var(--tile-edge);
  box-shadow: 0 14px 28px #08051f93;
}
.platform-tile--discord {
  --tile-face: linear-gradient(145deg,#8a91ff,#4c57e0 70%,#3f46b7);
  --tile-edge: #282b8b;
  --tile-glow: #7e74ff50;
  width: 41%;
  left: 19%;
  top: 10%;
  transform: rotate(-12deg);
}
.platform-tile--telegram {
  --tile-face: linear-gradient(145deg,#84d9ff,#248dc4 75%,#166491);
  --tile-edge: #164b74;
  --tile-glow: #3abfff4d;
  width: 29%;
  right: 14%;
  bottom: 13%;
  transform: rotate(12deg);
}
.platform-tile .platform-mark { width: 70%; height: 70%; background: transparent; }
.platform-tile .platform-mark--discord img { width: 100%; }
.platform-tile .platform-mark--telegram img { filter: drop-shadow(0 3px 4px #083a657e); }
@media (max-width: 720px) {
  .platform-tile { box-shadow: inset 0 1px 3px #fff4; }
  .platform-tile::before { box-shadow: 0 3px 6px #08051f93; }
}

.project-files > .sub { margin: 0 0 14px; }
.project-file-list { margin: 0 0 14px; padding: 0; list-style: none; }
.project-file-list li { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border); }
.file-row { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 6px; border: 0; border-radius: 6px; background: transparent; color: var(--text); text-align: left; }
.file-row:hover { background: var(--panel2); }
.file-row > span:nth-child(2) { flex: 1; overflow-wrap: anywhere; }
.file-row small { display: block; color: var(--muted); margin-top: 3px; }
.support-editor { font-family: ui-monospace, Menlo, monospace; }
.voice-setting { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 10px; padding: 14px; margin: 14px 0; border: 1px solid var(--border); border-radius: 9px; }
.voice-setting h3 { margin: 0 0 4px; font-size: 15px; }
.voice-setting p { margin: 6px 0 0; }
.project-console .terminal-bar { flex-wrap: wrap; gap: 8px; }
.project-console .terminal-bar strong { display: flex; gap: 6px; align-items: center; }
.log-tools { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; padding: 9px 14px; border-bottom: 1px solid #30303e; color: #b6b3c5; }
.log-tools label { display: grid; gap: 3px; font-size: 12px; }
.log-tools label:nth-child(2) { flex: 1; min-width: 105px; }
.log-tools input, .log-tools select { width: 100%; padding: 4px 7px; color: #f4f3fa; background: #22212e; border: 1px solid #4d4a61; border-radius: 5px; }
.log-tools .log-follow { display: flex; align-items: center; gap: 5px; min-height: 27px; }
.log-tools .log-follow input { width: auto; }

.console-entry { border-top: 1px solid var(--border); padding: 1rem; display: grid; gap: .55rem; }
.console-entry div { display: flex; gap: .5rem; }
.console-entry input { flex: 1; min-width: 0; font-family: monospace; }
.console-entry output, .console-entry small { overflow-wrap: anywhere; }
#logs.wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
#logs.nowrap { white-space: pre; overflow-x: auto; }
.dx-check { display: flex; align-items: center; gap: .6rem; margin-block: 1rem; }
.dx-check input { width: auto; }
