/* ═════════════════════════════════════════════════════════════════════════
   HELIX WEB — gentle. Loaded LAST, after helix-web.css and helix-v3.css.

   What changed and why: everything was a size too big (a 30px logo, 16px
   sidebar rows 44px tall, a hero logo and four big cards on an empty chat),
   and the page carried a planet, grain and an "Upgrade to Pro" card for a
   plan that does not exist. This layer:
     - quiet warm greys (paper by day, warm charcoal by night), ONE orange
     - compact type: 14px sidebar, 15.5px chat, a 40px greeting
     - Hexi, the hexagon face, instead of the big logo everywhere
     - the empty chat is a greeting and the composer, centred, with small
       starter chips under it - like a person waiting, not a landing page
     - no plans, no upgrade: Code points to the Helix app instead
   ═════════════════════════════════════════════════════════════════════════ */

:root{
  --font-display:'Newsreader',Georgia,serif;
  --hx-orange:#e8622a;
  --g-radius:12px;
}
[data-theme="light"]{
  --bg:#faf9f5;--surface:#ffffff;--surface2:#f3f1ea;--surface3:#ebe8df;
  --border:#e6e3d9;--border-strong:#d6d2c6;--border-subtle:#ece9e0;
  --text:#191917;--text2:#5d5b55;--text3:#8c897f;--text-inverse:#fff;
  --text-primary:#191917;--text-secondary:#5d5b55;--text-muted:#8c897f;
  --accent:#e8622a;--accent-hover:#d4541f;--accent-soft:rgba(232,98,42,.10);--accent-text:#fff;
  --ink:#191917;--ink-text:#fff;--ink-hover:#000;
  --code-bg:#f3f1ea;--sidebar-bg:#f4f2eb;--hover-bg:#ebe8df;--active-bg:#e6e2d7;
  --msg-user:#efece4;
  --shadow-sm:0 1px 2px rgba(25,25,23,.04);--shadow-md:0 4px 18px rgba(25,25,23,.06);--shadow-lg:0 18px 50px rgba(25,25,23,.10);
  --g-composer:#ffffff;--g-link:#3b6fd8;
}
[data-theme="dark"]{
  --bg:#262624;--surface:#30302e;--surface2:#2c2c2a;--surface3:#383835;
  --border:rgba(255,255,255,.08);--border-strong:rgba(255,255,255,.14);--border-subtle:rgba(255,255,255,.06);
  --text:#f2f1ec;--text2:#c3c1b8;--text3:#9a978d;--text-inverse:#1f1e1d;
  --text-primary:#f2f1ec;--text-secondary:#c3c1b8;--text-muted:#9a978d;
  --accent:#ec6d36;--accent-hover:#f5814f;--accent-soft:rgba(236,109,54,.14);--accent-text:#fff;
  --ink:#f2f1ec;--ink-text:#1f1e1d;--ink-hover:#fff;
  --code-bg:#1f1e1d;--sidebar-bg:#1f1e1d;--hover-bg:#2d2d2b;--active-bg:#343432;
  --msg-user:#141413;
  --shadow-sm:0 1px 2px rgba(0,0,0,.3);--shadow-md:0 4px 18px rgba(0,0,0,.28);--shadow-lg:0 18px 50px rgba(0,0,0,.45);
  --g-composer:#30302e;--g-link:#8fb3ff;
}

/* ── the room: no planet, no grain, just the page ───────────────────────── */
html,body,.app-container,.main-content{background:var(--bg)!important}
.hx-space,.hx-stars,.hx-grain{display:none!important}
.main-content::before,.main-content::after,.app-container::before,.app-container::after{display:none!important;content:none!important}
body{font-size:15px;-webkit-font-smoothing:antialiased}

/* ── sidebar ────────────────────────────────────────────────────────────── */
.sidebar{width:260px!important;min-width:260px!important;background:var(--sidebar-bg)!important;border-right:1px solid var(--border-subtle)!important}
.sidebar-inner{padding:10px 8px 6px!important;gap:1px!important}
.sidebar-header{padding:6px 8px 10px!important;min-height:0!important}
.sidebar-brand{gap:9px!important;align-items:center!important}
.sidebar-brand .brand-icon{display:none!important}
.sidebar-brand helix-face{--hf-size:24px}
.brand-name{font-family:var(--font-display)!important;font-size:21px!important;font-weight:500!important;letter-spacing:-.01em!important;text-transform:none!important;color:var(--text)!important}

html .sidebar .new-chat-btn,
html .sidebar .sidebar-nav-link{
  display:flex!important;align-items:center!important;gap:11px!important;width:100%!important;
  height:34px!important;min-height:34px!important;padding:0 10px!important;margin:0!important;
  border:0!important;border-radius:8px!important;background:transparent!important;box-shadow:none!important;
  font:500 14px/1 var(--font-sans,Inter,system-ui,sans-serif)!important;color:var(--text)!important;text-decoration:none!important;
  transition:background .12s ease!important;transform:none!important}
html .sidebar .new-chat-btn:hover,html .sidebar .sidebar-nav-link:hover{background:var(--hover-bg)!important}
.sidebar-nav-link svg{width:16px!important;height:16px!important;color:var(--text2)!important;flex:none}
.new-chat-btn .material-symbols-rounded{
  width:22px!important;height:22px!important;margin-left:-3px!important;border-radius:50%!important;background:var(--accent)!important;color:#fff!important;
  font-size:16px!important;display:grid!important;place-items:center!important}
.new-chat-btn{margin-bottom:2px!important}
.sidebar-nav-shortcut{margin-left:auto!important;font-size:11.5px!important;color:var(--text3)!important;background:none!important;border:0!important;padding:0!important;font-weight:400!important}
.hx-getapp{margin-left:auto!important;font-size:12.5px;font-weight:500;color:var(--g-link)}
.hx-tools,#hxTools{display:none!important}

.sidebar-section{margin-top:14px!important}
.sidebar-section-label{padding:4px 10px 6px!important;font-size:12px!important;font-weight:500!important;letter-spacing:0!important;text-transform:none!important;color:var(--text3)!important}
html .sidebar .chat-list-item{
  font-weight:400!important;
  height:32px!important;min-height:32px!important;padding:0 10px!important;margin:0!important;border-radius:8px!important;
  font-size:13.5px!important;color:var(--text)!important;background:transparent!important;border:0!important;box-shadow:none!important}
html .sidebar .chat-list-item:hover{background:var(--hover-bg)!important}
html .sidebar .chat-list-item.active{background:var(--active-bg)!important}
.chat-list-item .material-symbols-rounded,.chat-list-item>svg:first-child{display:none!important}
.chat-list-empty{font-size:13px!important;color:var(--text3)!important;padding:6px 10px!important}

/* No plans here. Everything that sold one is gone. */
.upgrade-btn,#upgradeBtn,#upgradeMenuBtn,.upgrade-menu-item,#pricingOverlay,#tipsUpgrade,
.sidebar-user-badge,#sidebarUserBadge,.account-plan-badge,.account-plan-badge-sm,.usage-plan-tag,
.billing-upgrade-btn,#billingUpgradeBtn,.hx-upgrade-section,.sidebar-footer-divider{display:none!important}

.sidebar-footer{padding:8px!important;border-top:1px solid var(--border-subtle)!important;background:transparent!important}
.sidebar-user-area{height:44px!important;padding:0 8px!important;border-radius:10px!important;gap:10px!important;background:transparent!important;border:0!important}
.sidebar-user-area:hover{background:var(--hover-bg)!important}
.sidebar-user-photo{width:28px!important;height:28px!important}
.sidebar-user-name{font-size:13.5px!important;font-weight:500!important}
.sidebar-downloads-btn{width:30px!important;height:30px!important;border-radius:8px!important}

/* ── top bar ────────────────────────────────────────────────────────────── */
.top-bar{height:52px!important;min-height:52px!important;padding:0 14px!important;background:transparent!important;border:0!important}
.top-bar-title{font-size:14px!important;font-weight:500!important;color:var(--text2)!important}
.hx-theme-btn,.menu-toggle{width:32px!important;height:32px!important;border-radius:8px!important}

/* ── the empty chat: greeting + composer, centred ───────────────────────── */
.main-content.hx-empty .chat-area{flex:0 0 auto!important;margin-top:auto!important;overflow:visible!important}
.main-content.hx-empty .input-area{margin-bottom:auto!important;padding-bottom:12vh!important}
.main-content.hx-empty .input-disclaimer{display:none!important}
.welcome-screen{padding:0 0 26px!important;min-height:0!important;gap:0!important;background:none!important}
.welcome-orb,.welcome-subtitle,.suggestion-grid:not(.hx-chips){display:none!important}
.hx-hello{display:flex;align-items:center;justify-content:center;gap:14px}
.hx-hello helix-face{--hf-size:40px}
.welcome-title{
  font-family:var(--font-display)!important;font-size:40px!important;font-weight:400!important;line-height:1.15!important;
  letter-spacing:-.02em!important;color:var(--text)!important;margin:0!important;text-align:center}
.welcome-title em{font-style:normal!important;color:inherit!important}

.hx-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;max-width:720px;margin:14px auto 0}
.hx-chip{
  display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 13px;border-radius:9px;cursor:pointer;
  font:450 13.5px/1 var(--font-sans,Inter,system-ui,sans-serif);color:var(--text2);
  background:transparent;border:1px solid var(--border-strong);transition:background .12s,color .12s,border-color .12s}
.hx-chip:hover{background:var(--hover-bg);color:var(--text);border-color:var(--border-strong)}
.hx-chip svg{width:15px;height:15px;opacity:.75}
.main-content:not(.hx-empty) .hx-chips{display:none}

/* ── composer ───────────────────────────────────────────────────────────── */
.input-area{padding:0 20px 10px!important;background:transparent!important}
.input-container{max-width:740px!important;margin:0 auto!important}
.input-wrapper{
  background:var(--g-composer)!important;border:1px solid var(--border-strong)!important;border-radius:18px!important;
  box-shadow:0 1px 3px rgba(0,0,0,.04),0 8px 26px rgba(0,0,0,.05)!important;padding:12px 12px 10px 16px!important;min-height:0!important}
.input-wrapper:focus-within{border-color:var(--border-strong)!important;box-shadow:0 1px 3px rgba(0,0,0,.05),0 10px 30px rgba(0,0,0,.08)!important}
.message-input{font-size:15.5px!important;line-height:1.5!important;min-height:26px!important;padding:2px 0 8px!important;color:var(--text)!important;background:transparent!important}
.message-input::placeholder{color:var(--text3)!important}
.input-action-bar{min-height:32px!important;gap:6px!important}
.input-plus-btn,.input-icon,.mic-btn,.reasoning-btn{width:32px!important;height:32px!important;border-radius:8px!important;border:0!important;background:transparent!important}
.input-plus-btn{border:1px solid var(--border-strong)!important}
.input-plus-btn:hover,.input-icon:hover,.mic-btn:hover{background:var(--hover-bg)!important}
.model-selector{height:32px!important;padding:0 10px!important;font-size:13px!important;border:0!important;background:transparent!important;border-radius:8px!important}
.model-selector:hover{background:var(--hover-bg)!important}
html .send-btn{display:grid!important;place-items:center!important;width:32px!important;height:32px!important;border-radius:9px!important;background:var(--accent)!important;color:#fff!important;box-shadow:none!important}
.send-btn:disabled,.send-btn[disabled]{opacity:.45!important}
.input-disclaimer{font-size:11.5px!important;color:var(--text3)!important;margin-top:8px!important}

/* ── the conversation ───────────────────────────────────────────────────── */
.chat-messages{max-width:740px!important;margin:0 auto!important;padding:18px 20px 30px!important}
.message{gap:12px!important;margin:0 0 22px!important}
.message .message-avatar{width:26px!important;height:26px!important;min-width:26px!important;background:none!important;border:0!important;box-shadow:none!important;font-size:0!important}
.message.user .message-avatar{display:none!important}
.message.user .message-content{background:var(--msg-user)!important;border:0!important;border-radius:16px!important;padding:9px 14px!important;font-size:15.5px!important;line-height:1.55!important;max-width:620px}
.message.ai .message-content,.message-content{font-size:15.5px!important;line-height:1.7!important;color:var(--text)!important}
.message.ai .message-content{border:0!important;background:none!important;box-shadow:none!important;padding:1px 0 0!important}
.message-time,.message-meta{font-size:11.5px!important;color:var(--text3)!important}
.typing-indicator .message-avatar{display:grid!important}

/* ── small screens ──────────────────────────────────────────────────────── */
@media (max-width:768px){
  .welcome-title{font-size:30px!important}
  .hx-hello{flex-direction:column;gap:10px}
  .sidebar:not(.open){box-shadow:none!important}
  .hx-hello helix-face{--hf-size:32px}
  .main-content.hx-empty .input-area{padding-bottom:4vh!important}
  .chat-messages{padding:12px 14px 24px!important}
  .input-area{padding:0 10px 8px!important}
}

/* ── Devices: your PC and servers, from the web (assets/helix-devices.js) ── */
.hxd-view{flex:1;overflow:auto;padding:28px 20px 60px}
.hxd-inner{max-width:760px;margin:0 auto;display:flex;flex-direction:column;gap:16px}
.hxd-head h1{font-family:var(--font-display);font-weight:400;font-size:30px;letter-spacing:-.02em;margin:0;color:var(--text)}
.hxd-head p,.hxd-muted{color:var(--text3);font-size:13.5px;line-height:1.5;margin:4px 0 0}
.hxd-note{font-size:13.5px;color:var(--text2);padding:10px 14px;border-radius:10px;background:var(--surface2)}
.hxd-list{display:flex;flex-direction:column;gap:6px}
.hxd-dev{display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;border-radius:12px;border:1px solid var(--border);
  background:var(--surface);color:var(--text);text-align:left;cursor:pointer;font:inherit;transition:border-color .12s,background .12s}
.hxd-dev:hover{background:var(--hover-bg)}
.hxd-dev.on{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.hxd-ic{width:34px;height:34px;border-radius:9px;background:var(--surface2);display:grid;place-items:center;color:var(--text2);flex:none}
.hxd-ic svg{width:18px;height:18px}
.hxd-dn{flex:1;display:flex;flex-direction:column;gap:2px;font-size:14px}
.hxd-dn small{color:var(--text3);font-size:12px}
.hxd-st{font-size:12px;padding:3px 9px;border-radius:99px;background:var(--surface2);color:var(--text2)}
.hxd-st.ok::before,.hxd-st.busy::before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:6px;vertical-align:1px;background:#3e8e5a}
.hxd-st.busy::before{background:var(--accent)}
.hxd-empty{display:flex;gap:14px;align-items:center;padding:18px;border:1px dashed var(--border-strong);border-radius:12px;font-size:14px;color:var(--text2);line-height:1.5}
.hxd-card{border:1px solid var(--border);border-radius:14px;background:var(--surface);padding:14px 16px}
.hxd-card h3{font-size:13px;font-weight:600;color:var(--text2);margin:14px 0 8px}
.hxd-card h3:first-child{margin-top:2px}
.hxd-tabs{display:flex;gap:2px;border-bottom:1px solid var(--border);margin:-2px -4px 12px;padding:0 4px;overflow-x:auto}
.hxd-tab{border:0;background:none;color:var(--text3);font:500 13.5px/1 inherit;padding:9px 11px;border-bottom:2px solid transparent;cursor:pointer;white-space:nowrap}
.hxd-tab.on{color:var(--text);border-bottom-color:var(--accent)}
.hxd-form{display:flex;flex-direction:column;gap:8px;margin-bottom:10px}
.hxd-form:not([data-form="task"]){flex-direction:row}
.hxd-form textarea,.hxd-form input{flex:1;font:inherit;font-size:14.5px;color:var(--text);background:var(--bg);border:1px solid var(--border-strong);
  border-radius:10px;padding:9px 12px;resize:vertical;outline:none}
.hxd-form textarea:focus,.hxd-form input:focus{border-color:var(--accent)}
.hxd-row{display:flex;align-items:center;gap:10px}
.hxd-hint{flex:1;font-size:12px;color:var(--text3)}
.hxd-btn{font:500 13px/1 inherit;padding:8px 12px;border-radius:8px;border:1px solid var(--border-strong);background:transparent;color:var(--text);cursor:pointer;white-space:nowrap}
.hxd-btn:hover{background:var(--hover-bg)}
.hxd-btn.pri{background:var(--accent);border-color:var(--accent);color:#fff}
.hxd-btn:disabled{opacity:.5;cursor:default}
.hxd-item{display:flex;gap:12px;align-items:flex-start;padding:10px 0;border-top:1px solid var(--border-subtle);font-size:14px;color:var(--text)}
.hxd-it{flex:1;min-width:0}
.hxd-acts{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.hxd-draft{margin-top:6px;padding:8px 10px;border-radius:8px;background:var(--surface2);color:var(--text2);font-size:13px;white-space:pre-wrap}
.hxd-err{color:#d2553f;font-size:13.5px;margin-top:4px}
.hxd-loading{color:var(--text3);font-size:13.5px;padding:8px 0}
.hxd-run,.hxd-done,.hxd-ask{display:flex;gap:10px;align-items:center;padding:10px 12px;border-radius:10px;background:var(--surface2);font-size:14px;color:var(--text)}
.hxd-run>div,.hxd-done>div,.hxd-ask>div{flex:1}
.hxd-run small{color:var(--text3)}
.hxd-ask{background:var(--accent-soft);margin-bottom:12px}
.hxd-connect ol{margin:8px 0 10px 18px;padding:0;font-size:14px;color:var(--text2);line-height:1.9}
.hxd-connect code{display:inline-block;margin-left:6px;padding:2px 8px;border-radius:6px;background:var(--surface2);font-size:12.5px;color:var(--text);word-break:break-all}
.hxd-code input{max-width:200px;letter-spacing:.12em;text-transform:uppercase}
.hxd-toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:var(--ink);color:var(--ink-text);
  padding:10px 16px;border-radius:10px;font-size:13.5px;transition:all .2s;z-index:9999;max-width:90vw}
.hxd-toast.on{opacity:1;transform:translate(-50%,0)}
html .sidebar #sidebarDevicesBtn.active{background:var(--active-bg)!important}
@media (max-width:768px){.hxd-view{padding:16px 12px 40px}.hxd-form:not([data-form="task"]){flex-direction:column}.hxd-item{flex-direction:column}.hxd-acts{justify-content:flex-start}}
