/* GhoGemo V2 — borderless design layer, loaded after both base CSS files.
   Scoped to this page: does not touch other GhostEcos products. */
#app,
#app *,
#app *::before,
#app *::after,
#gdaiConsentDialog,
#gdaiConsentDialog *,
#gdaiConsentDialog::backdrop {
  border: 0 !important;
  border-image: none !important;
  outline: 0 !important;
}
/* Remove the few strokes implemented as 1px bars or inset shadows. */
#app .chat-row.general::after { content: none !important; }
#app .chat-row.on,
#app .mcard.on,
#app .mp-search:focus-within,
#app .prov-tab.on,
#app .mp-filter.on,
#app .btn-new,
#app .sug { box-shadow: none !important; }
/* Keyboard focus must remain perceptible without a visible outline. */
#app :is(button, a, input, textarea, select, [role="button"]):focus-visible,
#gdaiConsentDialog :is(button, a, input):focus-visible {
  filter: brightness(1.18);
}

/* Selected input tools keep a soft fill despite the page-wide borderless mode. */
#app .dock .tools .chip[aria-pressed="true"],
#app .dock .tools .chip[aria-pressed="true"]:hover{
  background:rgba(208,176,255,.22)!important;
  background-color:rgba(208,176,255,.22)!important;
  color:var(--text)!important;
  border-radius:9px!important;
  border:0!important;
}

/* V2 quiet separators — lightweight hairlines instead of component borders.
   One common tint for both themes, always dimmer than the arrow/text. */
:root{--gemo-hairline:rgba(208,176,255,.12)}
:root[data-v2-theme="dark"]{--gemo-hairline:rgba(208,176,255,.10)}

/* Composer toolbar: 12px vertical dividers BETWEEN the action chips.
   Their flex order is paperclip → search → voice → task. */
#app .dock .tools>.chip{position:relative;margin-left:6px!important}
#app .dock .tools>.chip::before{
  content:"";
  display:block;
  position:absolute;
  width:1px;
  height:12px;
  left:-6px;
  top:50%;
  transform:translateY(-50%);
  border:0!important;
  border-radius:1px;
  background:var(--gemo-hairline);
  pointer-events:none;
}

/* The sidebar toggle sits IN the short horizontal line, not below it.
   Two line segments leave a 25px clear window around the arrow. */
#app #sidebar .sb-bottom-toggle{position:relative;color:var(--sub-dim)}
#app #sidebar .sb-bottom-toggle::before,
#app #sidebar .sb-bottom-toggle::after{
  content:"";
  display:block;
  position:absolute;
  top:50%;
  width:calc(50% - 28px);
  height:1px;
  border:0!important;
  border-radius:1px;
  background:var(--gemo-hairline);
  pointer-events:none;
}
#app #sidebar .sb-bottom-toggle::before{left:16px}
#app #sidebar .sb-bottom-toggle::after{right:16px}
#app #sidebar .sb-bottom-toggle .ic{position:relative;z-index:1}

/* Short inset rules for the other stacked sections: no full-width frames. */
#app #sidebar .sb-extra-inner>.sb-item + .sb-item,
#app .settings-row + .settings-row,
#app .plus-menu .plus-item + .plus-item,
#app #sidebar .user-chip{position:relative}
#app #sidebar .sb-extra-inner>.sb-item + .sb-item::before,
#app .settings-row + .settings-row::before,
#app .plus-menu .plus-item + .plus-item::before,
#app #sidebar .user-chip::before{
  content:"";
  position:absolute;
  top:0;
  left:11px;
  right:11px;
  height:1px;
  background:var(--gemo-hairline);
  border:0!important;
  pointer-events:none;
}
#app #sidebar .user-chip::before{top:-4px}
#app .settings-row + .settings-row::before{left:15px;right:15px}

/* GdAI quota summary: a short understated rule above its footer. */
#app .gdai-quota-footer{position:relative}
#app .gdai-quota-footer::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:14%;
  height:1px;
  border:0!important;
  background:var(--gemo-hairline);
  pointer-events:none;
}
