    :root{
      --bg:#0b0f14;
      --panel:#0f1620;
      --panel2:#0c121a;
      --line:#1f2a37;
      --line2:#263445;
      --text:#e8f0ff;
      --muted:#9fb0c0;
      --chip:#101a24;
      --ok:#19c37d; --btn:#18bfa4; --btnHover:#1fd0b3; --btn2:#1f2b3a; --btn2Hover:#263548; --btnText:#05211a;}
    *{box-sizing:border-box}
    body{
      margin:0;
      font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
      background: radial-gradient(900px 500px at 15% 10%, rgba(0,180,255,.10), transparent 60%),
                  radial-gradient(900px 500px at 70% 20%, rgba(0,255,190,.08), transparent 60%),
                  linear-gradient(180deg, #070a10, var(--bg));
      color:var(--text);
      min-height: 100vh;
      display:flex;
      flex-direction:column;
    }

    /* Top brand strip */
    .topbar{
      display:flex; align-items:center; justify-content:space-between;
      padding:18px 18px;
      padding-top: calc(18px + env(safe-area-inset-top, 0px));
      border-bottom:1px solid var(--line);
      background: rgba(10,14,20,.55);
      backdrop-filter: blur(10px);
      position:sticky; top:0; z-index:10;
  flex-wrap:nowrap;

    }
    .brand{
      display:flex; align-items:center; gap:10px;
      font-weight:900; letter-spacing:.2px;
    }
    .logoDot{
      width:18px; height:18px; border-radius:6px;
      background: linear-gradient(135deg, rgba(0,210,255,.95), rgba(0,255,190,.75));
      box-shadow: 0 0 24px rgba(0,255,190,.18);
    }


    .pill{
      display:inline-flex; align-items:center; gap:8px;
      padding:8px 10px;
      border-radius:999px;
      border:1px solid var(--line);
      background: rgba(16,26,36,.65);
      color: var(--muted);
      font-size:12px;
      white-space:nowrap;
    }
    .pill .dot{
      width:8px; height:8px; border-radius:50%;
      background: var(--ok);
      box-shadow: 0 0 0 4px rgba(25,195,125,.12);
    }

    /* Console menu (user theme) */
    .dd{
      display:inline-flex; align-items:center; gap:8px;
      padding:8px 12px;
      border-radius:999px;
      border:1px solid var(--line);
      background: rgba(16,26,36,.65);
      color: var(--muted);
      font-size:12px;
      cursor:pointer;
      white-space:nowrap;
    }
    .dd:hover{ border-color: rgba(24,191,164,.35); }
    .gear{opacity:.85}

    .menu{
      position:fixed;
      right:18px;
      top:74px;
      min-width:220px;
      max-height: calc(100vh - 110px);
      overflow:auto;
      z-index:50;
      background: rgba(10,14,20,.98);
      border:1px solid var(--line2);
      border-radius:14px;
      box-shadow: 0 18px 60px rgba(0,0,0,.55);
      padding:8px;
    }
    .menu.hidden{display:none}
    .menuItem{
      width:100%;
      text-align:left;
      display:block;
      border:0;
      border-radius:10px;
      padding:10px 12px;
      background:transparent;
      color: var(--text);
      cursor:pointer;
      font-size:13px;
    }
    .menuItem:hover{background: rgba(24,191,164,.10)}
    .menuItem.active{background: rgba(24,191,164,.16); border:1px solid rgba(24,191,164,.25)}    

    /* Layout */
    .wrap{
      max-width: 1120px;
      margin: 0 auto;
      padding: 22px 18px 26px;
      flex: 1 1 auto;
      min-height: 0;
      display:flex;
      flex-direction:column;
    }
    .hero{
      padding: 18px 8px 16px;
      text-align:center;
    }
    .hero h1{
      margin:0 0 10px 0;
      font-size: 34px;
      line-height: 1.08;
      letter-spacing: .2px;
    }
    .hero p{
      margin:0 auto;
      color: var(--muted);
      max-width: 760px;
      line-height: 1.5;
      font-size: 14px;
    }
    .hero .tagline{
      margin-top: 14px;
      color:#d8e7ff;
      font-weight:800;
      opacity:.95;
    }

    /* Chat shell */
    .card{
      margin-top: 16px;
      background: rgba(15,22,32,.70);
      border:1px solid var(--line);
      border-radius: 18px;
      box-shadow: 0 18px 60px rgba(0,0,0,.45);
      overflow:hidden;
      display:flex;
      flex-direction:column;
      flex: 1 1 auto;
      min-height: 0px;
    }
    .chat{
      padding: 16px;
      min-height: 0;
      flex: 1 1 auto;
      overflow-y: auto;
      overflow-x: hidden;
      -webkit-overflow-scrolling: touch;
      display:flex;
      flex-direction:column;
      gap: 12px;
    }
    .msgRow{
      display:flex;
      gap: 10px;
      align-items:flex-end;
    }
    .msgRow.user{justify-content:flex-end}
    .avatar{
      width: 34px; height: 34px;
      border-radius: 12px;
      background: rgba(16,26,36,.9);
      border:1px solid var(--line);
      display:flex; align-items:center; justify-content:center;
      flex: 0 0 auto;
      box-shadow: 0 10px 30px rgba(0,0,0,.35);
    }
    .avatar .drop{
      width: 14px; height: 14px; border-radius: 6px;
      background: linear-gradient(135deg, rgba(0,210,255,.95), rgba(0,255,190,.75));
    }
    .bubble{
      max-width: 78%;
      border-radius: 16px;
      padding: 12px 12px;
      border:1px solid var(--line);
      background: rgba(12,18,26,.85);
      box-shadow: 0 10px 28px rgba(0,0,0,.35);
    }
    .user .bubble{
      background: rgba(16,26,36,.85);
      border-color: rgba(38,52,69,.95);
    }
    .meta{
      display:flex; align-items:center; justify-content:space-between;
      gap: 10px;
      margin-bottom: 6px;
      color: var(--muted);
      font-size: 12px;
    }
    .name{
      display:inline-flex; align-items:center; gap:8px;
      font-weight:800; color:#d7e6ff;
    }
    .name small{
      font-weight:700;
      color: var(--muted);
      opacity:.9;
    }
    .text{
      font-size: 14px;
      line-height: 1.45;
      color:#e6edf3;
      white-space: pre-wrap;
    }
    .steps{ margin: 6px 0 0 18px; padding:0; }
    .steps li{ margin: 6px 0; }

    /* Composer */
    .composer{
      border-top:1px solid var(--line);
      background: rgba(12,18,26,.70);
      padding: 12px;
      display:flex;
      gap: 10px;
      align-items:center;
    }
    .input{
      flex:1;
      display:flex;
      align-items:center;
      gap: 10px;
      background: rgba(11,15,20,.85);
      border:1px solid var(--line2);
      border-radius: 14px;
      padding: 10px 12px;
    }
    .input textarea{
      width:100%;
      border:0;
      outline:none;
      resize:none;
      background: transparent;
      color: var(--text);
      font-size: 14px;
      min-height: 22px;
      max-height: 120px;
      font-family: inherit;
    }
    .kebab{
      width:36px; height:36px;
      border-radius: 12px;
      border:1px solid var(--line2);
      background: rgba(11,15,20,.65);
      color: var(--muted);
      display:flex; align-items:center; justify-content:center;
      cursor:pointer;
    }
    .send{height:40px;padding:0 14px;border:1px solid rgba(24,191,164,.35);border-radius:12px;cursor:pointer;font-weight:900;background:var(--btn);color:var(--btnText);box-shadow: inset 0 1px 0 rgba(255,255,255,.06)}
    .send:disabled{opacity:.45; cursor:not-allowed}
    .send:hover{background:var(--btnHover)}

    .footnote{
      padding: 10px 14px 14px;
      color: var(--muted);
      font-size: 11.5px;
      border-top:1px solid rgba(31,42,55,.55);
      background: rgba(12,18,26,.45);
      text-align:center;
    }
    .footnote span{
      display:block;
    }
    .mono{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;}
    .btnRow{
      display:flex; gap:10px; margin-top:10px;
    }
    .btnSmall{
      padding: 8px 10px;
      border-radius: 12px;
      border: 1px solid var(--line2);
      background: rgba(11,15,20,.65);
      color: var(--text);
      font-weight: 900;
      cursor:pointer;
      font-size: 12px;
    }
    .btnSmall.ok{
      border-color: rgba(25,195,125,.45);
      background: rgba(25,195,125,.12);
      color: #7dffbf;
    }
    .btnSmall.bad{
      border-color: rgba(255,77,79,.45);
      background: rgba(255,77,79,.10);
      color: #ff9d9e;
    }
    .hidden{display:none}
  
    .headerLogo{height:62px;width:auto;display:block;object-fit:contain;}
  
    .brand{display:flex;align-items:center;gap:12px;font-weight:900;letter-spacing:.2px}
    .brandIcon{height:52px;width:52px;display:block;object-fit:contain;filter:drop-shadow(0 10px 24px rgba(0,0,0,.45))}
    .brandWord{font-size:20px;font-weight:900;color:#e8f0ff;letter-spacing:.2px}


/* clickable links in assistant bubbles */
.text a{
  color:#7db3ff;
  text-decoration:underline;
  pointer-events:auto;
  cursor:pointer;
}


/* ensure links are clickable inside chat bubbles (override any overlay/pointer rules) */
.chat, .msgRow, .bubble, .text { pointer-events: auto; }
.text a { pointer-events: auto; cursor: pointer; text-decoration: underline; color:#7db3ff; }

.topbar{gap:12px; flex-wrap:wrap}
.topRight{flex-wrap:wrap; max-width:unset;}
@media (max-width:1100px){.topRight{width:100%; justify-content:flex-start}}
@media (max-width:780px){.topRight input{width:180px}}
