/* As peças das telas aprovadas na proposta visual (24/11/2026), sem mudança.
   O que é só do app de verdade fica em app.css. */
/* Hyper Bots desktop app: layout pieces.
   Colours come from the Hypercube UI dark tokens; sizes follow a compact scale (24, 28, 32, 36). */
.hb {
  --hb-canvas: var(--surface);
  --hb-side: var(--sunken);
  --hb-card: var(--surface-2);
  --hb-card-2: var(--surface-3);
  --hb-line: var(--border);
  --hb-text: var(--text);
  --hb-muted: var(--text-3);
  --hb-dim: var(--text-4);
  box-sizing: border-box;
  background: var(--hb-canvas);
  color: var(--hb-text);
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.4;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--hb-line);
}
.hb *,
.hb *::before,
.hb *::after {
  box-sizing: border-box;
}
.hb button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: inherit;
}
.hb-ic {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--hb-muted);
  flex: none;
}
.hb-ic:hover {
  background: var(--hb-card);
  color: var(--hb-text);
}

/* window: rail + sidebar + main */
.hb-win {
  display: grid;
  grid-template-columns: 72px 280px minmax(0, 1fr);
  grid-template-rows: 40px minmax(0, 1fr);
  height: 100%;
}
.hb-top-side {
  grid-column: 1 / 3;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px 0 88px;
  background: var(--hb-side);
  font-weight: 600;
  font-size: 13.5px;
}
.hb-top-side b {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.hb-top-main {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-left: 1px solid var(--hb-line);
  font-size: 13.5px;
  font-weight: 500;
}
.hb-top-main .hb-sp {
  flex: 1;
}
.hb-model {
  height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--hb-line);
  background: var(--hb-canvas);
  font-size: 13.5px;
  font-weight: 500;
}
.hb-rail {
  background: var(--hb-side);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 6px;
  position: relative;
}
.hb-server {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  overflow: hidden;
  display: block;
}
.hb-server img {
  width: 100%;
  height: 100%;
  display: block;
}
.hb-rail-mark {
  position: absolute;
  left: 6px;
  top: 14px;
  width: 3px;
  height: 24px;
  border-radius: 2px;
  background: var(--hb-text);
}
.hb-rail-add {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--hb-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hb-text);
}
.hb-side {
  background: var(--hb-side);
  padding: 6px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow: hidden;
}
.hb-search {
  height: 32px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--hb-card);
  border: 1px solid var(--hb-line);
  color: var(--hb-muted);
  font-size: 13.5px;
}
.hb-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 11px;
  row-gap: 1px;
  align-items: center;
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
}
.hb-row[aria-current='true'] {
  background: var(--hb-card);
}
.hb-row-av {
  grid-row: 1 / 3;
  position: relative;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hb-row-n {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-weight: 500;
}
.hb-row-n > span:first-child {
  flex: none;
}
.hb-role {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 6px;
  border-radius: 5px;
  background: var(--hb-card-2);
  color: var(--hb-muted);
  font-size: 12px;
  font-weight: 400;
}
.hb-row time {
  color: var(--hb-muted);
  font-size: 12.5px;
}
.hb-row-s {
  grid-column: 2 / 4;
  color: var(--hb-muted);
  font-size: 13.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hb-count {
  position: absolute;
  right: -5px;
  bottom: -4px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--hb-text);
  color: var(--hb-side);
  border: 2px solid var(--hb-side);
  box-sizing: content-box !important;
  font-size: 10px;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
}
.hb-quad {
  display: grid;
  grid-template-columns: 14px 14px;
  gap: 2px;
}

/* conversation */
.hb-main {
  border-left: 1px solid var(--hb-line);
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}
.hb-msgs {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px 6px;
}
.hb-day {
  text-align: center;
  color: var(--hb-muted);
  font-size: 12px;
  padding: 4px 0;
}
.hb-me {
  align-self: flex-end;
  max-width: 62%;
  padding: 9px 14px;
  border-radius: 18px;
  background: var(--hb-card);
}
.hb-answer {
  align-self: stretch;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--hb-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hb-answer h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.hb-answer p {
  margin: 0;
}
.hb-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--hb-card-2);
  font-weight: 500;
  vertical-align: baseline;
}
.hb-file {
  color: var(--blue);
  font-weight: 500;
}
.hb-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--hb-canvas);
  font-size: 13.5px;
}
.hb-table th {
  text-align: left;
  font-weight: 500;
  color: var(--hb-muted);
  background: var(--hb-card-2);
  padding: 9px 12px;
}
.hb-table td {
  padding: 9px 12px;
  border-top: 1px solid var(--hb-line);
}
.hb-table th + th,
.hb-table td + td {
  border-left: 1px solid var(--hb-line);
}
.hb-code {
  border-radius: 10px;
  overflow: hidden;
  background: var(--hb-canvas);
  font-family: var(--mono);
  font-size: 12.5px;
}
.hb-code-h {
  display: flex;
  align-items: center;
  padding: 7px 12px;
  color: var(--hb-muted);
  border-bottom: 1px solid var(--hb-line);
}
.hb-code-h span:first-child {
  flex: 1;
}
.hb-code pre {
  margin: 0;
  padding: 10px 12px;
  font: inherit;
}
.hb-said {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 4px;
  align-items: end;
}
.hb-said-n {
  grid-column: 2;
  font-size: 12.5px;
  font-weight: 500;
}
.hb-bubble {
  justify-self: start;
  max-width: 88%;
  padding: 9px 14px;
  border-radius: 18px;
  background: var(--hb-card);
}
.hb-quote {
  border-left: 2px solid var(--hb-muted);
  padding-left: 9px;
  margin-bottom: 4px;
  font-size: 12.5px;
  color: var(--hb-muted);
}
.hb-quote b {
  display: block;
  color: var(--hb-text);
  font-weight: 500;
}
.hb-event {
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--hb-muted);
  font-size: 12.5px;
}
.hb-event b {
  color: var(--hb-text);
  font-weight: 500;
}
.hb-composer {
  flex: none;
  margin: 6px 16px 14px;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  border-radius: 24px;
  background: var(--hb-card);
  border: 1px solid var(--hb-line);
  color: var(--hb-muted);
}
.hb-composer > span {
  flex: 1;
}
.hb-round {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--hb-text);
}
.hb-round.hb-go {
  background: var(--accent);
  color: var(--on-accent);
}

/* grouped rows: first run, settings, menus */
.hb-group {
  width: 100%;
  border: 1px solid var(--hb-line);
  border-radius: 14px;
  background: var(--hb-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hb-group > * + * {
  border-top: 1px solid var(--hb-line);
}
.hb-opt {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-align: left;
}
.hb-opt:hover {
  background: var(--hb-card-2);
}
.hb-opt-t {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--hb-muted);
  font-size: 13px;
}
.hb-opt-t strong {
  color: var(--hb-text);
  font-size: 14.5px;
  font-weight: 500;
}
.hb-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hb-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--border-strong);
}
.hb-dots span.done {
  background: var(--hb-muted);
}
.hb-dots span.on {
  width: 22px;
  background: var(--hb-text);
}
.hb-hero {
  margin: 0;
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
  text-align: center;
}
.hb-lead {
  margin: 16px 0 0;
  color: var(--hb-muted);
  text-align: center;
}
.hb-btn {
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--primary) !important;
  color: var(--on-primary) !important;
  font-weight: 600;
  text-decoration: none;
}
.hb-btn.hb-quiet {
  background: var(--hb-card-2) !important;
  color: var(--hb-text) !important;
}
.hb-btn.hb-sm {
  height: 28px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
}
.hb-switch {
  width: 34px;
  height: 20px;
  flex: none;
  border-radius: 999px;
  background: var(--hb-card-2);
  border: 1px solid var(--hb-line);
  position: relative;
}
.hb-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--hb-text);
}
.hb-switch[aria-checked='true'] {
  background: var(--hb-text);
}
.hb-switch[aria-checked='true']::after {
  left: 16px;
  background: var(--hb-side);
}

/* opening: the bots fall and pile up */
.hb-pile {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.hb-pile-b {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform;
}

/* janela, lateral fininha, menus */
.hb{position:relative}
.hb a{color:inherit;text-decoration:none}
.hb-top-side{position:relative}
.hb-lights{position:absolute;left:14px;top:14px;display:flex;gap:8px}
.hb-lights i{width:12px;height:12px;border-radius:50%;display:block}
.hb-pop{position:absolute;z-index:5;background:var(--hb-card);border-radius:14px;box-shadow:var(--shadow-pop);overflow:hidden}
.hb-ext{display:inline-block;padding:0 3px;border-radius:4px;background:var(--hb-card-2);color:var(--blue);font-size:9px;font-weight:700;line-height:14px;vertical-align:1px}
.hb-ext.g{color:var(--green)}
.hb-file.g{color:var(--green)}
.hb-num{color:var(--hb-dim);margin-right:12px}
.hb-menu{left:16px;bottom:72px;width:232px;padding:6px;display:flex;flex-direction:column}
.hb-menu button{display:flex;align-items:center;gap:10px;height:36px;padding:0 10px;border-radius:8px}
.hb-menu button:hover{background:var(--hb-card-2)}
.hb-mp{top:44px;right:46px;width:360px;display:grid;grid-template-columns:52px minmax(0,1fr)}
.hb-mp-rail{background:var(--hb-side);display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 0}
.hb-mp-rail button{width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;color:var(--hb-muted)}
.hb-mp-rail button.on{background:var(--hb-card);color:var(--hb-text)}
.hb-mp-b{padding:16px 12px 12px;display:flex;flex-direction:column;gap:2px}
.hb-mp-b>b{padding:0 4px;font-size:14.5px;font-weight:700}
.hb-mp-b>small{padding:0 4px;color:var(--hb-muted);font-size:12px}
.hb-mp-search{height:32px;margin:10px 0 8px;padding:0 12px;display:flex;align-items:center;border-radius:9px;border:1px solid var(--hb-line);color:var(--hb-muted);font-size:13.5px}
.hb-mp-i{height:38px;display:flex;align-items:center;gap:8px;padding:0 9px;border-radius:9px;font-size:13.5px}
.hb-mp-i:hover,.hb-mp-i.on{background:var(--hb-card-2)}
.hb-mp-i svg{margin-left:auto;color:var(--blue)}
.hb-mp-i .hb-role{background:var(--hb-side)}
.hb-mp-f{display:flex;align-items:center;justify-content:space-between;margin-top:10px;padding:10px 4px 0;border-top:1px solid var(--hb-line);color:var(--hb-muted);font-size:13.5px}
.hb-sel{height:32px;display:inline-flex;align-items:center;gap:14px;padding:0 10px 0 12px;border-radius:9px;border:1px solid var(--hb-line);background:var(--hb-side);color:var(--hb-text);font-size:13.5px}
.hb-sel svg{color:var(--hb-muted)}
.hb-panel{border-left:1px solid var(--hb-line);background:var(--hb-side);display:flex;flex-direction:column;min-height:0;grid-row:1 / 3;grid-column:4}
.hb-tabs{height:40px;flex:none;display:flex;align-items:flex-end;gap:4px;padding:0 10px 0 8px}
.hb-tab{height:32px;display:flex;align-items:center;gap:8px;padding:0 12px;border-radius:10px 10px 0 0;background:var(--hb-canvas);font-size:13px;font-weight:500}
.hb-tabs .hb-sp{flex:1}
.hb-tabs .hb-ic{align-self:center}
.hb-panel-b{flex:1;min-height:0;background:var(--hb-canvas);border-radius:12px 12px 0 0;padding:8px 12px 12px;display:flex;flex-direction:column;gap:14px;position:relative}
.hb-panel-h{height:40px;display:grid;grid-template-columns:28px 1fr 28px;align-items:center;text-align:center;font-weight:600}
.hb-card{border-radius:12px;background:var(--hb-card);padding:14px 12px;display:flex;align-items:center;gap:12px}
.hb-card .hb-opt-t{font-size:13.5px}
.hb-acc{height:42px;padding:0 12px;justify-content:space-between;width:100%;border:1px solid var(--hb-line)}
.hb-acc span{display:inline-flex;align-items:center;gap:10px;color:var(--hb-muted)}
.hb-drop{left:12px;right:12px;top:108px;padding:5px;display:flex;flex-direction:column;border-radius:12px}
.hb-drop button{height:30px;display:flex;align-items:center;justify-content:space-between;padding:0 8px;border-radius:7px;font-size:13.5px}
.hb-drop button:hover,.hb-drop button.on{background:var(--hb-card-2)}
.hb-sub{color:var(--hb-muted);font-size:12.5px;padding:0 2px}
.hb-you{align-self:flex-end;max-width:78%;padding:9px 14px;border-radius:18px;background:var(--hb-card)}
.hb .hb-opt{padding:12px 16px}
.hb .hb-model{padding:0 10px;border:1px solid var(--hb-line);background:var(--hb-canvas)}
.hb .hb-win{grid-template-columns:48px 280px minmax(0,1fr)}
.hb .hb-top-side{padding:0 8px 0 78px;gap:2px}
.hb .hb-top-side .hb-sp{flex:1}
.hb .hb-rail{gap:4px;padding:4px 0 10px}
.hb-nav{width:34px;height:34px;border-radius:9px;display:flex;align-items:center;justify-content:center;color:var(--hb-muted);flex:none}
.hb-nav:hover{color:var(--hb-text)}
.hb-nav[aria-current='page']{background:var(--hb-card);color:var(--hb-text)}
.hb-rail-sp{flex:1}
.hb-ring{position:relative;width:30px;height:30px;display:flex;align-items:center;justify-content:center;margin:3px 0;flex:none;color:var(--hb-muted)}
.hb-ring>svg.r{position:absolute;inset:0}
.hb-ring>img{width:13px;height:13px;display:block}
.hb-ring[aria-current='true']{outline:2px solid var(--hb-line);outline-offset:3px;border-radius:50%}
.hb-rail-line{width:22px;height:1px;background:var(--hb-line);margin:5px 0;flex:none}
.hb-rail-srv{width:26px;height:26px;border-radius:7px;overflow:hidden;display:block;flex:none}
.hb-rail-srv img{width:100%;height:100%;display:block}
.hb-side-h{display:flex;align-items:center;gap:4px;flex:none}
.hb-side-h .hb-search{flex:1}
.hb .hb-switch{background:var(--hb-card-2);border:1px solid var(--hb-line)}
.hb .hb-switch[aria-checked='true']{background:var(--hb-text)}
.hb .hb-acc{background:var(--hb-card);border:1px solid var(--hb-line);padding:0 12px}
.hb .hb-btn{padding:0 16px}
.hb .hb-btn.hb-sm{padding:0 12px}
.hb .hb-drop{position:static;margin-top:-8px}

/* diálogos, campos, ajustes */
.hb-scrim{position:absolute;inset:0;background:var(--overlay);display:flex;align-items:center;justify-content:center;z-index:8}
.hb-dlg{background:var(--hb-canvas);border:1px solid var(--hb-line);border-radius:18px;box-shadow:var(--shadow-pop);padding:24px;display:flex;flex-direction:column;gap:14px;position:relative;text-align:left}
.hb-dlg h2{margin:0;font-size:18px;font-weight:600;letter-spacing:-0.01em}
.hb-dlg p{margin:0;color:var(--hb-muted);font-size:13.5px}
.hb-x{position:absolute;right:12px;top:12px}
.hb-field{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:500}
.hb-input{min-height:36px;border-radius:9px;border:1px solid var(--hb-line);background:var(--hb-card);padding:0 12px;display:flex;align-items:center;gap:8px;font-weight:400;font-size:14px}
.hb-input.ph{color:var(--hb-muted)}
.hb-input.hb-area{min-height:64px;align-items:flex-start;padding:9px 12px}
.hb .hb-btn{white-space:nowrap}
.hb-foot{display:flex;justify-content:flex-end;gap:8px;align-items:center}
.hb .hb-btn.hb-line{background:none !important;border:1px solid var(--hb-line);color:var(--hb-text) !important}
.hb .hb-btn.hb-red{background:var(--red) !important;color:var(--on-danger) !important}
.hb-seg{display:inline-flex;gap:2px;padding:3px;border:1px solid var(--hb-line);border-radius:10px;background:var(--hb-card)}
.hb-seg span{height:28px;padding:0 12px;border-radius:7px;display:inline-flex;align-items:center;gap:6px;color:var(--hb-muted);font-size:13px;white-space:nowrap}
.hb-seg span.on{background:var(--hb-card-2);color:var(--hb-text);font-weight:500}
.hb-tag{display:inline-flex;align-items:center;height:20px;padding:0 8px;border-radius:999px;background:var(--accent-soft);color:var(--accent-ink);font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase}
.hb-radio{width:18px;height:18px;border-radius:50%;border:1.5px solid var(--border-strong);flex:none;display:inline-flex;align-items:center;justify-content:center}
.hb-radio.on{border-color:var(--hb-text)}
.hb-radio.on::after{content:'';width:8px;height:8px;border-radius:50%;background:var(--hb-text)}
.hb-check{width:18px;height:18px;border-radius:5px;border:1.5px solid var(--border-strong);flex:none;display:inline-flex;align-items:center;justify-content:center;color:var(--hb-side)}
.hb-check.on{background:var(--hb-text);border-color:var(--hb-text)}
.hb-kbd{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:6px;background:var(--hb-card-2);border:1px solid var(--hb-line);font-size:12px;color:var(--hb-muted)}
.hb-mono{font-family:var(--mono);font-size:12.5px}
.hb-pg{padding:26px 52px;display:flex;flex-direction:column;gap:18px}
.hb-pg h1{margin:0;font-size:20px;font-weight:700}
.hb-pg h2{margin:0;font-size:15px;font-weight:600}
.hb-note{color:var(--hb-muted);font-size:13px}
.hb-dotc{width:8px;height:8px;border-radius:50%;display:inline-block;flex:none}
.hb-bar{height:6px;border-radius:999px;background:var(--hb-card-2);overflow:hidden}
.hb-bar i{display:block;height:100%;border-radius:999px;background:var(--hb-text)}
.hb-set{display:grid;grid-template-columns:220px minmax(0,1fr);height:100%}
.hb-set-nav{background:var(--hb-side);padding:44px 10px 12px;display:flex;flex-direction:column;gap:2px;border-right:1px solid var(--hb-line)}
.hb .hb-model{white-space:nowrap}
.hb-set-nav span{white-space:nowrap;height:32px;display:flex;align-items:center;gap:10px;padding:0 10px;border-radius:8px;color:var(--hb-muted);font-size:13.5px}
.hb-set-nav span.on{background:var(--hb-card);color:var(--hb-text);font-weight:500}
.hb-set-nav small{padding:14px 10px 4px;color:var(--hb-dim);font-size:11.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase}
.hb-set-b{padding:26px 40px;display:flex;flex-direction:column;gap:16px;min-width:0;overflow:hidden}
.hb-set-b h1{margin:0;font-size:20px;font-weight:700}

/* criar um bot */
.nb-c{width:28px;height:28px;border-radius:999px;display:grid;place-items:center}
.nb-c i{display:block;width:18px;height:18px;border-radius:999px;border:1px solid var(--border-strong)}
.nb-c[aria-pressed='true'] i{outline:1px solid var(--hb-text);outline-offset:4px}
.nb-f{width:33px;height:33px;border-radius:9px;display:grid;place-items:center}
.nb-f[aria-pressed='true']{background:var(--hb-card-2)}
.nb-s{flex:0 0 268px;display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:12px;background:var(--hb-card);border:1px solid var(--hb-line)}
