:root{
  color-scheme:dark;
  --genio-bg:#061114;
  --genio-bg-deep:#001014;
  --genio-surface:#0b2025;
  --genio-surface-2:#0d272c;
  --genio-surface-3:#113238;
  --genio-border:rgba(167,223,226,.16);
  --genio-text:#f3f7f7;
  --genio-muted:#91a9ad;
  --genio-teal:#21c3bd;
  --genio-teal-strong:#149c9a;
  --genio-gold:#e9b94f;
  --genio-purple:#8b5cf6;
  --genio-blue:#2f9df4;
  --genio-green:#45ca72;
  --genio-orange:#ff845e;
  --genio-bad:#ff8d8d;
  --genio-good:#5fd79b;
  --genio-radius:20px;
  --genio-shadow:0 16px 36px rgba(0,0,0,.28);
  --bg:var(--genio-bg);--panel:var(--genio-surface);--panel2:var(--genio-surface-2);--panel3:var(--genio-surface-3);--border:var(--genio-border);--text:var(--genio-text);--muted:var(--genio-muted);--accent:var(--genio-teal);--accent-2:var(--genio-purple);--good:var(--genio-good);--bad:var(--genio-bad);--shadow:var(--genio-shadow)
}
*{box-sizing:border-box}
html{background:var(--genio-bg-deep);overscroll-behavior:none}
html,body{margin:0;min-height:100%;color:var(--text);font-family:Roboto,system-ui,-apple-system,"Segoe UI",sans-serif}
body{min-height:100vh;background:radial-gradient(circle at 72% -10%,rgba(31,190,183,.11),transparent 32%),linear-gradient(180deg,#052128 0,var(--genio-bg) 24%,var(--genio-bg-deep) 100%);overscroll-behavior-y:none}
button,input,select,textarea{font:inherit}
button{touch-action:manipulation}
.icon-sprite{position:absolute;width:0;height:0;overflow:hidden}
.shell{width:min(100%,680px);margin:0 auto;min-height:100vh;padding:env(safe-area-inset-top) 14px calc(94px + env(safe-area-inset-bottom));position:relative}
.topbar{height:64px;display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:8px;position:sticky;top:0;z-index:30;background:linear-gradient(180deg,rgba(3,19,23,.98),rgba(3,19,23,.9) 78%,transparent);backdrop-filter:blur(18px)}
.brand-lockup{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0}.brand-word{font-size:19px;font-weight:500;letter-spacing:.34em;color:var(--genio-gold);margin-left:.34em}.lamp-mark{width:38px;height:25px;fill:none;stroke:var(--genio-gold);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.lamp-mark .smoke,.hero-lamp .smoke{stroke:#7b6cf6}
.icon-btn{width:44px;height:44px;display:grid;place-items:center;border:0;background:transparent;color:var(--text);border-radius:50%;padding:0}.icon-btn:active{background:rgba(255,255,255,.08)}.icon-btn svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.top-actions{display:flex;align-items:center;gap:0}
.screen-stage{position:relative}.screen{display:block;animation:screenIn .18s ease-out}.hidden{display:none!important}@keyframes screenIn{from{opacity:.25;transform:translateX(8px)}to{opacity:1;transform:none}}
.screen-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:12px 5px 15px}.screen-header h1{font-size:25px;line-height:1.1;margin:4px 0 0}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--genio-teal)}.screen-chip,.live-pill{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--border);background:rgba(13,42,48,.8);border-radius:999px;padding:6px 9px;font-size:11px;color:var(--muted)}.live-pill span,.status-dot{width:8px;height:8px;border-radius:50%;background:var(--genio-teal);box-shadow:0 0 0 4px rgba(33,195,189,.1)}
.hero-card,.workspace-card,.status-card,.run-panel,.dashboard-card,.memory-card,.tool-card{border:1px solid var(--border);background:linear-gradient(150deg,rgba(15,51,57,.95),rgba(7,31,36,.98));box-shadow:var(--shadow)}
.hero-card,.workspace-card,.status-card,.run-panel{border-radius:var(--genio-radius);padding:15px;margin-bottom:12px}.work-hero{min-height:150px;display:flex;align-items:center;justify-content:space-between;gap:12px;overflow:hidden}.hero-copy{min-width:0}.hero-copy>strong{font-size:12px;color:#acd1d2;margin-left:7px}.hero-copy h2{font-size:21px;margin:10px 0 6px}.hero-copy p{margin:0}.hero-lamp{flex:0 0 105px;opacity:.96}.hero-lamp svg{width:105px;height:68px;fill:none;stroke:var(--genio-gold);stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}
.workspace-head,.status-card,.settings-head,.send-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.workspace-head{align-items:flex-start}.system-card{background:rgba(8,35,40,.9)}.compact-btn{white-space:nowrap;padding:8px 10px}.text-btn{border:0;background:transparent;color:var(--genio-teal);padding:5px}.muted{color:var(--muted);font-size:13px;line-height:1.45}.section-heading{display:flex;justify-content:space-between;align-items:end;padding:12px 5px 8px}.section-heading h2{font-size:19px;margin:3px 0 0}
.file-list{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.file-pill{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:rgba(255,255,255,.045);border:1px solid var(--border);border-radius:999px;padding:6px 9px;font-size:12px}
.dashboard-grid{display:grid;grid-template-columns:1fr;gap:10px}.dashboard-card{border-radius:18px;padding:13px 14px;display:grid;gap:7px;box-shadow:none}.dashboard-card h3{margin:0;font-size:15px}.dashboard-card .card-top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.badge{font-size:10px;font-weight:800;color:var(--genio-teal);border:1px solid rgba(33,195,189,.22);background:rgba(33,195,189,.08);border-radius:999px;padding:5px 7px}
.chat-mini-header{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;padding:12px 5px 7px}.chat-title{font-size:21px;font-weight:750;max-width:72vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat{display:flex;flex-direction:column;gap:13px;min-height:calc(100vh - 310px);padding:12px 2px 175px}.msg{display:flex;align-items:flex-start;gap:9px}.msg.user{justify-content:flex-end}.msg.assistant{justify-content:flex-start;scroll-margin-top:80px}.avatar-lamp{width:34px;height:34px;flex:0 0 34px;border-radius:50%;display:grid;place-items:center;background:#082a30;border:1px solid rgba(232,184,77,.36);color:var(--genio-gold);font-weight:900;box-shadow:0 0 20px rgba(232,184,77,.08)}
.bubble{max-width:88%;padding:12px 14px;border-radius:20px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.45}.assistant .bubble{background:#10252a;color:var(--text);border:1px solid rgba(172,225,226,.14);border-top-left-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.12)}.user .bubble{background:linear-gradient(145deg,#0b8f90,#087477);color:#fff;border:1px solid rgba(60,220,213,.3);border-top-right-radius:8px}.msg.error .bubble{background:#321b1e;color:#ffd9d9;border:1px solid #7c3e46}.msg.system .bubble{background:rgba(255,255,255,.025);color:var(--muted);border:1px dashed var(--border);font-size:12px}.bubble p{margin:0 0 9px}.bubble p:last-child{margin-bottom:0}.bubble h3,.bubble h4,.bubble h5{margin:10px 0 6px;line-height:1.25}.bubble ul,.bubble ol{margin:6px 0 10px;padding-left:22px}.bubble li{margin:3px 0}.bubble pre{max-width:100%;overflow:auto;background:#07151a;color:#e9f6f6;border:1px solid rgba(0,0,0,.18);border-radius:12px;padding:10px;white-space:pre}.assistant .bubble code{background:#07171b;color:#dff5f4}.user .bubble code{background:rgba(0,0,0,.16);color:#fff}.md-table-wrap{max-width:100%;overflow:auto;margin:8px 0 10px;border:1px solid rgba(0,0,0,.12);border-radius:10px}.bubble table{border-collapse:collapse;width:max-content;min-width:100%;font-size:12px}.bubble th,.bubble td{padding:7px 8px;border-bottom:1px solid rgba(0,0,0,.1);border-right:1px solid rgba(0,0,0,.1);text-align:left;vertical-align:top}.bubble th:last-child,.bubble td:last-child{border-right:0}.bubble tr:last-child td{border-bottom:0}.bubble th{background:rgba(0,0,0,.05)}
.run-panel{background:rgba(7,31,36,.97)}.run-title{font-weight:800;margin-bottom:8px}.run-step{padding:7px 0;border-bottom:1px solid rgba(255,255,255,.055);font-size:13px}.run-step:last-child{border-bottom:0}.run-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.ok{color:var(--good)}.fail{color:var(--bad)}
.composer{position:sticky;bottom:76px;z-index:18;background:linear-gradient(180deg,rgba(3,19,23,0),rgba(3,19,23,.94) 24%,var(--genio-bg) 45%);padding:30px 0 7px;overflow-anchor:none}.composer-box{background:#0b272c;border:1px solid rgba(156,218,219,.18);border-radius:24px;padding:9px 10px 8px;box-shadow:0 10px 30px rgba(0,0,0,.25)}textarea{width:100%;min-height:48px;max-height:160px;resize:vertical;background:transparent;color:var(--text);border:0;padding:8px 9px 4px;outline:none}textarea::placeholder{color:#829b9e}.composer-actions{display:flex;align-items:flex-end;justify-content:space-between;gap:8px}.attach-row{display:flex;gap:6px;flex-wrap:wrap}.attach-btn,.secondary,.primary{border:1px solid var(--border);border-radius:999px;padding:8px 10px;color:var(--text);background:#0d3036;cursor:pointer}.attach-btn{font-size:11px}.primary{background:linear-gradient(135deg,var(--genio-teal-strong),#087477);border-color:rgba(72,231,224,.34);font-weight:800}.send-btn{padding:10px 14px}.secondary{background:#0b252a}.composer-meta{display:flex;justify-content:space-between;gap:8px;color:#70898d;font-size:10px;padding:6px 10px 0}
.tool-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:12px}.tool-card{min-height:142px;border-radius:19px;padding:13px 8px 11px;color:var(--text);display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:7px;text-align:center;box-shadow:none}.tool-card:active{transform:scale(.98);background:#12343a}.tool-card strong{font-size:14px}.tool-card small{font-size:11px;line-height:1.3;color:var(--muted)}.tool-icon{width:54px;height:54px;border-radius:18px;display:grid;place-items:center;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.04)}.tool-icon svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.tool-icon.teal{color:#2bd4cf}.tool-icon.violet{color:#9568f8}.tool-icon.blue{color:#2ba6ff}.tool-icon.green{color:#5add70}.tool-icon.cyan{color:#31c6d1}.tool-icon.orange{color:#ff8867}.tool-icon.purple{color:#bb62f8}.tool-icon.sky{color:#5bbfe8}.tool-icon.silver{color:#b9c7c9}.tool-icon.gold{color:var(--genio-gold);background:rgba(232,184,77,.08)}.memory-card{width:100%;border-radius:20px;padding:13px 15px;color:var(--text);display:grid;grid-template-columns:58px 1fr auto;align-items:center;gap:11px;text-align:left;margin:3px 0 14px}.memory-card strong{display:block;font-size:15px}.memory-card small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.chevron{font-size:30px;color:var(--muted)}.tools-detail{box-shadow:none}.stack-list{display:grid;gap:9px}.stack-item{padding:10px 11px;border:1px solid var(--border);border-radius:14px;background:rgba(255,255,255,.025)}.stack-item strong{display:block;margin-bottom:4px}.cloud-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:11px;padding-top:11px;border-top:1px solid var(--border)}
.bottom-nav{position:fixed;left:50%;transform:translateX(-50%);bottom:0;z-index:40;width:min(100%,680px);height:calc(76px + env(safe-area-inset-bottom));padding:5px 24px env(safe-area-inset-bottom);display:grid;grid-template-columns:repeat(3,1fr);align-items:center;background:rgba(3,20,24,.96);border-top:1px solid rgba(172,225,226,.1);backdrop-filter:blur(20px)}.view-tab{border:0;background:transparent;color:#789095;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:6px 4px;border-radius:16px;font-size:11px}.view-tab svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.view-tab.active{color:var(--genio-teal);background:rgba(33,195,189,.055)}
dialog{width:min(92vw,540px);max-height:88vh;overflow:auto;background:#082126;color:var(--text);border:1px solid var(--border);border-radius:24px;padding:0;box-shadow:0 28px 90px rgba(0,0,0,.55)}dialog::backdrop{background:rgba(0,8,10,.72);backdrop-filter:blur(6px)}.settings{padding:18px;display:grid;gap:14px}.settings h2{margin:0}.settings label{display:grid;gap:6px}.settings input,.settings select{width:100%;background:#0d3036;border:1px solid var(--border);color:var(--text);border-radius:13px;padding:10px}.theme-preview{display:flex;align-items:center;gap:11px;padding:12px;border-radius:16px;background:rgba(33,195,189,.05);border:1px solid rgba(33,195,189,.15)}.history-list{display:grid;gap:9px;max-height:58vh;overflow:auto}.history-item{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:10px;border:1px solid var(--border);border-radius:14px;background:#0b292f}.history-meta{display:grid;gap:4px;min-width:0}.history-meta strong{overflow-wrap:anywhere}.history-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.chat-history-list{display:grid!important;gap:9px!important;max-height:60vh;overflow:auto}.chat-history-item{display:grid!important;grid-template-columns:minmax(0,1fr) 42px!important;align-items:center!important;min-height:66px!important;border:1px solid var(--border);border-radius:14px;background:#0b292f}.chat-history-item.active{border-color:rgba(33,195,189,.6)}.chat-open{-webkit-appearance:none;appearance:none;width:100%!important;min-height:64px!important;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:flex-start!important;gap:5px!important;padding:10px 12px!important;color:var(--text)!important;background:transparent!important;border:0!important;text-align:left}.chat-open strong{font-size:14px;visibility:visible!important;opacity:1!important}.chat-open .muted{font-size:12px;visibility:visible!important;opacity:1!important}.chat-delete{width:38px!important;height:38px!important;margin-right:4px!important}code{background:#07171b;padding:2px 5px;border-radius:5px}
@media(min-width:600px){.shell{padding-left:20px;padding-right:20px}.dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tool-grid{gap:12px}.tool-card{min-height:150px}.bubble{max-width:78%}}
@media(max-width:360px){.tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.brand-word{font-size:17px}.composer-meta span:last-child{display:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}


/* RC22.8.7 MOBILE CACHE-SAFE HARDENING */
html,body{width:100%;max-width:100%;overflow-x:hidden}
body{position:relative}
.shell,.screen-stage,.screen{width:100%;max-width:100%;min-width:0}
.screen{overflow-x:hidden}
.topbar,.bottom-nav{max-width:100vw}
.topbar svg,.bottom-nav svg,.tool-card svg,.hero-lamp svg{display:block}
img,svg,video,canvas{max-width:100%}
.composer-box,.workspace-card,.hero-card,.status-card,.dashboard-card,.tool-card,.memory-card{min-width:0}
@media(max-width:480px){
  .shell{padding-left:12px;padding-right:12px}
  .topbar{height:58px;grid-template-columns:44px minmax(0,1fr) auto}
  .brand-word{font-size:17px;letter-spacing:.28em}
  .lamp-mark{width:32px;height:22px}
  .top-actions .icon-btn{width:38px;height:38px}
  .screen-header{padding-top:9px}.screen-header h1{font-size:23px}
  .work-hero{min-height:128px}.hero-lamp{flex-basis:82px}.hero-lamp svg{width:82px;height:54px}
  .tool-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.tool-card{min-height:124px;padding:11px 6px}.tool-icon{width:48px;height:48px}.tool-icon svg{width:27px;height:27px}.tool-card strong{font-size:13px}.tool-card small{font-size:10px}
  .composer{bottom:70px}.bottom-nav{height:calc(70px + env(safe-area-inset-bottom));padding-left:14px;padding-right:14px}
}


/* RC22.8.8 — Android native vertical scrollers.
   The top bar and bottom navigation are shell chrome; every surface scrolls independently. */
html,body{height:100%;min-height:100%;overflow:hidden!important;overscroll-behavior:none}
body{height:100dvh;min-height:0;background:var(--genio-bg-deep);touch-action:manipulation}
.shell{
  width:min(100%,680px);height:100dvh;min-height:0;margin:0 auto;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  display:grid;grid-template-rows:58px minmax(0,1fr) 70px;overflow:hidden;position:relative;background:var(--genio-bg);
}
.topbar{height:auto;min-height:0;position:relative;top:auto;padding:0 12px;background:linear-gradient(180deg,#04171b 0,#06191d 100%);backdrop-filter:none;border-bottom:1px solid rgba(172,225,226,.06)}
.screen-stage{position:relative;min-height:0;overflow:hidden;width:100%;max-width:100%}
.screen{
  box-sizing:border-box;width:100%;height:100%;max-height:100%;min-height:0;overflow-y:auto!important;overflow-x:hidden!important;
  -webkit-overflow-scrolling:touch;overscroll-behavior-y:contain;touch-action:pan-y pinch-zoom;padding:0 12px 22px;scrollbar-gutter:stable both-edges;
}
.screen::-webkit-scrollbar{width:3px}.screen::-webkit-scrollbar-thumb{background:rgba(68,190,188,.28);border-radius:999px}
.bottom-nav{
  position:relative;left:auto;right:auto;bottom:auto;transform:none;z-index:40;width:100%;height:auto;min-height:70px;
  padding:5px 14px;display:grid;grid-template-columns:repeat(3,1fr);align-items:center;background:#04171b;border-top:1px solid rgba(172,225,226,.1);backdrop-filter:none
}
.composer{position:sticky;bottom:0;z-index:18;background:linear-gradient(180deg,rgba(6,17,20,0),rgba(6,17,20,.96) 23%,var(--genio-bg) 42%);padding:26px 0 5px}
.chat{min-height:calc(100% - 150px);padding-bottom:42px}
.hero-card,.workspace-card,.status-card,.run-panel,.dashboard-card,.tool-card,.memory-card{box-shadow:0 7px 20px rgba(0,0,0,.12)}
.avatar-lamp{font-size:0}.avatar-lamp svg{width:23px;height:16px;fill:none;stroke:var(--genio-gold);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.avatar-lamp .smoke{stroke:#7b6cf6}
@media(max-width:420px){
  .shell{grid-template-rows:56px minmax(0,1fr) 66px}.screen{padding-left:10px;padding-right:10px}.bottom-nav{min-height:66px;padding-left:10px;padding-right:10px}
  .brand-word{font-size:18px}.screen-header h1{font-size:22px}.hero-card,.workspace-card,.status-card,.run-panel{padding:13px}.dashboard-card{padding:13px}
  .work-hero{min-height:118px}.hero-lamp{flex-basis:72px}.hero-lamp svg{width:72px!important;height:48px!important}
  .tool-grid{gap:7px}.tool-card{min-height:118px;border-radius:17px}.tool-icon{width:46px;height:46px}
}
