  /* ---- in-app assistant (OBX-3191): a launcher in the lower-right corner and a chat panel floating over the
     wallboard. Above the toast (60) and help tips (70), below the login gate (100). ---- */
  .as-launcher{position:fixed;right:20px;bottom:20px;z-index:80;width:52px;height:52px;border-radius:50%;
    border:1px solid var(--orbalux-500);background:var(--orbalux-600);color:#fff;font-size:22px;cursor:pointer;
    box-shadow:0 8px 24px rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center}
  .as-launcher:hover{background:var(--orbalux-500)}
  .as-launcher:focus-visible,.as-panel button:focus-visible,.as-input:focus-visible{outline:2px solid var(--orbalux-400);outline-offset:2px}
  .as-launcher.hidden,.as-panel.hidden{display:none}
  .as-badge{position:absolute;top:-2px;right:-2px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;
    background:var(--caution-400);color:#0b1220;font-size:11px;font-weight:600;line-height:18px;text-align:center}
  .as-badge.hidden{display:none}

  .as-panel{position:fixed;right:20px;bottom:84px;z-index:80;width:380px;height:min(560px,calc(100vh - 160px));
    display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--border);border-radius:14px;
    box-shadow:0 18px 48px rgba(0,0,0,.55);font-family:var(--font-sans);color:var(--fg);overflow:hidden}
  .as-head{display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid var(--divider);background:var(--surface-2)}
  .as-head h2{flex:1;margin:0;font-family:var(--font-heading);font-size:14px;font-weight:700}
  .as-head .dim{font-size:11px;color:var(--fg-3);font-weight:400}
  .as-icon{background:none;border:1px solid transparent;color:var(--fg-2);border-radius:8px;padding:3px 8px;cursor:pointer;font-size:13px}
  .as-icon:hover{border-color:var(--border);color:#fff}

  .as-log{flex:1;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:10px}
  .as-msg{max-width:88%;padding:8px 11px;border-radius:12px;font-size:13px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
  .as-msg.user{align-self:flex-end;background:var(--orbalux-700);border:1px solid var(--orbalux-600)}
  .as-msg.assistant{align-self:flex-start;background:var(--surface-3);border:1px solid var(--border)}
  .as-msg.error{align-self:flex-start;border:1px solid var(--danger-400);color:var(--danger-400);background:transparent}
  .as-msg.busy{color:var(--fg-3);font-style:italic}
  .as-hello{font-size:13px;color:var(--fg-2);line-height:1.5}
  .as-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
  .as-chip{background:var(--surface-2);border:1px solid var(--border);color:var(--fg);border-radius:14px;padding:5px 10px;font-size:12px;cursor:pointer;font-family:var(--font-sans)}
  .as-chip:hover{border-color:var(--orbalux-500)}

  .as-card{align-self:stretch;border:1px solid var(--caution-400);border-radius:12px;padding:10px 12px;background:var(--surface-2);font-size:12.5px}
  .as-card h3{margin:0 0 6px;font-size:13px;font-family:var(--font-heading)}
  .as-card dl{display:grid;grid-template-columns:auto 1fr;gap:3px 10px;margin:0 0 8px}
  .as-card dt{color:var(--fg-3)}
  .as-card dd{margin:0;overflow-wrap:anywhere}
  .as-card label{display:flex;gap:6px;align-items:flex-start;margin:4px 0;color:var(--caution-400)}
  .as-card .as-actions{display:flex;gap:8px;margin-top:8px}
  .as-card .as-state{margin-top:6px;font-weight:500}
  .as-card .as-state.ok{color:var(--green-400)}
  .as-card .as-state.err{color:var(--danger-400)}
  .as-card.done{border-color:var(--border)}

  .as-form{display:flex;gap:8px;padding:10px;border-top:1px solid var(--divider)}
  .as-input{flex:1;resize:none;height:40px;max-height:120px;background:var(--surface-2);color:var(--fg);border:1px solid var(--border);
    border-radius:10px;padding:9px 10px;font-family:var(--font-sans);font-size:13px}
  .as-foot{padding:0 12px 8px;font-size:10.5px;color:var(--fg-3)}

  /* a phone-sized screen gets the whole width */
  @media (max-width:600px){
    .as-panel{right:0;left:0;bottom:0;width:auto;height:calc(100vh - 70px);border-radius:14px 14px 0 0}
    .as-launcher{right:14px;bottom:14px}
  }
