:root {
  --suite-shell-bg: rgba(251, 252, 249, .92);
  --suite-shell-line: var(--line, var(--border, #d2d6cd));
  --suite-shell-ink: var(--ink, var(--text, #20251f));
  --suite-shell-muted: var(--muted, #687168);
  --suite-shell-green: var(--green, var(--accent, #0f644e));
  --suite-shell-soft: var(--green-soft, var(--accent-soft, #dcebe4));
  --suite-header-height: 68px;
  --suite-status-height: 36px;
  --suite-header-inline: 24px;
  --suite-header-gap: 14px;
  --suite-control-gap: 8px;
}

/*
 * Barra de status compartilhada entre as ferramentas.
 * A geometria e a tipografia permanecem idênticas; cada produto controla
 * apenas a mensagem e as ações exibidas nesta faixa.
 */
.suite-status-bar {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  height: var(--suite-status-height);
  min-height: var(--suite-status-height);
  max-height: var(--suite-status-height);
  padding: 0 var(--suite-header-inline);
  border-bottom: 1px solid var(--suite-shell-line);
  background: var(--suite-shell-bg);
}

.suite-status-state {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  color: var(--suite-shell-muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .01em;
  line-height: 1;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suite-status-state::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--suite-shell-line);
}

.suite-status-state > strong,
.suite-status-state > small {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suite-status-state > strong { color: var(--suite-shell-ink); }

.suite-status-state > strong + small::before {
  content: "·";
  margin-right: 6px;
  color: var(--suite-shell-muted);
}

.suite-status-state > .state-dot { display: none; }

body[data-suite-help="editor"] {
  --workspace-header-height: calc(var(--suite-header-height) + var(--suite-status-height));
}

body[data-suite-help="editor"].workspace-focus-mode {
  --workspace-header-height: var(--suite-header-height);
}

body[data-suite-help="studio"] .workspace {
  min-height: calc(100vh - var(--suite-header-height) - var(--suite-status-height));
}

body[data-suite-help="studio"].workspace-focus-mode .workspace {
  min-height: calc(100vh - var(--suite-header-height));
}

/*
 * Faixa universal da suíte.
 *
 * Esta é a única camada responsável pela geometria compartilhada entre
 * landing pages, Studio e Editor. Conteúdo específico de cada ferramenta
 * deve viver em uma segunda faixa, nunca dentro desta linha.
 */
.suite-universal-bar {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--suite-header-gap);
  width: 100%;
  height: var(--suite-header-height);
  min-height: var(--suite-header-height);
  max-height: var(--suite-header-height);
  padding: 0 var(--suite-header-inline);
  border-bottom: 1px solid var(--suite-shell-line);
  background: var(--suite-shell-bg);
  flex-flow: row nowrap;
}

.site-header.suite-universal-bar,
.product-header.suite-universal-bar {
  width: 100%;
  max-width: none;
  margin: 0;
  box-shadow: none;
}

.site-header.suite-universal-bar > nav,
.product-header.suite-universal-bar > nav {
  display: flex;
  align-items: center;
  flex-flow: row nowrap;
  width: 100%;
  height: 100%;
  min-width: max-content;
  padding: 0;
}

.suite-universal-bar > .suite-switcher,
.suite-universal-bar > .suite-tools-control,
.suite-universal-bar > .topbar-suite,
.suite-universal-bar > nav > .suite-switcher {
  flex: 0 0 280px;
  width: 280px;
}

/* Nos workspaces, o seletor de produtos usa a mesma grade de rótulo e
 * controle dos demais campos. Os botões internos preservam seus 32px. */
.suite-tools-control {
  flex: 0 0 280px;
  width: 280px;
}

.suite-tools-control .suite-switcher {
  width: 280px;
  height: 34px;
  min-height: 34px;
  padding-top: 0;
  padding-bottom: 0;
}

.suite-universal-bar > .universal-preferences,
.suite-universal-bar > .topbar-tools > .universal-preferences {
  flex: 1 1 auto;
  width: auto;
  overflow: visible;
  padding-bottom: 0;
}

.suite-switcher {
  display: grid;
  grid-template-columns: 32px repeat(4, 56px);
  align-items: center;
  gap: 4px;
  width: 280px;
  height: 42px;
  flex: 0 0 280px;
  min-width: 0;
  padding: 4px 3px;
  border: 1px solid var(--suite-shell-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .42);
}

.suite-switcher a,
.suite-switcher button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 999px;
  color: var(--suite-shell-muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.suite-switcher a:hover,
.suite-switcher a:focus-visible,
.suite-switcher button:hover,
.suite-switcher button:focus-visible {
  color: var(--suite-shell-green);
  outline: none;
  background: var(--suite-shell-soft);
}

.suite-switcher a[aria-current="page"] {
  color: var(--suite-shell-green);
  background: var(--suite-shell-bg);
  box-shadow: 0 3px 12px rgba(32, 37, 31, .08);
}

.suite-switcher button {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.suite-switcher button[aria-current="page"] { color: var(--suite-shell-green); background: var(--suite-shell-bg); box-shadow: 0 3px 12px rgba(32,37,31,.08); }

.suite-switcher .suite-home {
  width: 100%;
  padding: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9px;
  letter-spacing: .06em;
}

.suite-home-menu { position: relative; width: 32px; height: 32px; }
.suite-home-popover {
  position: fixed;
  z-index: 1000;
  display: grid;
  width: 180px;
  padding: 7px;
  border: 1px solid var(--suite-shell-line);
  border-radius: 16px;
  background: var(--suite-shell-bg);
  box-shadow: 0 18px 48px rgba(32,37,31,.16);
  backdrop-filter: blur(18px);
}
.suite-home-popover[hidden] { display: none; }
.suite-home-popover.is-showing-tours { width: 238px; }
.suite-home-popover a,.suite-home-popover button { display: grid; justify-content: stretch; gap: 2px; width: 100%; min-height: 0; padding: 10px 11px; border: 0; border-radius: 11px; background: transparent; color: var(--suite-shell-ink); text-align: left; text-decoration: none; cursor: pointer; }
.suite-home-popover a:hover,.suite-home-popover a:focus-visible,.suite-home-popover button:hover,.suite-home-popover button:focus-visible { outline: 0; background: var(--suite-shell-soft); }
.suite-home-popover span { color: var(--suite-shell-muted); font-size: 7px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.suite-home-popover strong { font-size: 10px; }

.suite-home-tour-panel {
  display: grid;
  gap: 3px;
}

.suite-home-tour-panel[hidden] { display: none; }

.suite-home-tour-heading {
  padding: 8px 11px 5px;
}

.suite-home-tour-back {
  margin-bottom: 3px;
  border-bottom: 1px solid var(--suite-shell-line) !important;
  border-radius: 9px 9px 3px 3px !important;
}

.suite-home-tour-option {
  gap: 4px !important;
}

.suite-home-tour-option strong {
  color: var(--suite-shell-ink);
  font-size: 10px;
}

.suite-home-tour-option small,
.suite-home-tour-empty {
  color: var(--suite-shell-muted);
  font-size: 8px;
  font-weight: 500;
  line-height: 1.4;
}

.suite-home-tour-empty { padding: 8px 11px 11px; }

/* Tour curto e compartilhado entre os ambientes de trabalho. */
.suite-help-layer {
  position: fixed;
  inset: 0;
  z-index: 1400;
  pointer-events: none;
}

.suite-help-blocker {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: auto;
}

.suite-help-spotlight {
  position: fixed;
  z-index: 1;
  box-sizing: border-box;
  border: 2px solid var(--suite-shell-green);
  border-radius: 18px;
  background: transparent;
  box-shadow: 0 0 0 9999px rgba(24, 31, 27, .48), 0 0 0 5px rgba(220, 235, 228, .7);
  pointer-events: none;
  transition: left .18s ease, top .18s ease, width .18s ease, height .18s ease;
}

.suite-help-card {
  position: fixed;
  z-index: 2;
  display: grid;
  box-sizing: border-box;
  width: min(340px, calc(100vw - 32px));
  padding: 17px;
  border: 1px solid var(--suite-shell-line);
  border-radius: 20px;
  background: rgba(251, 252, 249, .98);
  color: var(--suite-shell-ink);
  box-shadow: 0 24px 70px rgba(20, 30, 25, .25);
  pointer-events: auto;
  backdrop-filter: blur(20px);
}

.suite-help-card header,
.suite-help-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.suite-help-card header > span {
  color: var(--suite-shell-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.suite-help-card header > span strong { color: var(--suite-shell-green); }
.suite-help-card h2 { margin: 18px 0 8px; font: 500 22px/1.15 Georgia, "Times New Roman", serif; }
.suite-help-card p { min-height: 42px; margin: 0 0 18px; color: var(--suite-shell-muted); font-size: 12px; line-height: 1.6; }

.suite-help-close {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--suite-shell-line);
  border-radius: 50%;
  background: transparent;
  color: var(--suite-shell-muted);
  font-size: 17px;
  cursor: pointer;
}

.suite-help-previous,
.suite-help-next {
  min-width: 86px;
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--suite-shell-line);
  border-radius: 999px;
  background: transparent;
  color: var(--suite-shell-muted);
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.suite-help-next { margin-left: auto; border-color: var(--suite-shell-green); background: var(--suite-shell-green); color: white; }
.suite-help-previous[hidden] { display: block; visibility: hidden; }
.suite-help-close:hover,
.suite-help-close:focus-visible,
.suite-help-previous:hover,
.suite-help-previous:focus-visible { outline: 0; border-color: var(--suite-shell-green); background: var(--suite-shell-soft); color: var(--suite-shell-green); }
.suite-help-next:hover,
.suite-help-next:focus-visible { outline: 3px solid rgba(15, 100, 78, .18); outline-offset: 2px; }
.suite-help-target { position: relative; z-index: auto; }

/* Atalho discreto e reutilizável junto ao seletor de fontes de cada produto. */
.suite-tour-trigger {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  padding: 0;
  border: 1px solid var(--suite-shell-line);
  border-radius: 50%;
  background: var(--suite-shell-bg);
  color: var(--suite-shell-green);
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.suite-tour-trigger svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.suite-tour-trigger:hover,
.suite-tour-trigger:focus-visible {
  border-color: var(--suite-shell-green);
  outline: 0;
  background: var(--suite-shell-soft);
  box-shadow: 0 0 0 3px rgba(15, 100, 78, .1);
}

.suite-tour-trigger[aria-expanded="true"] {
  border-color: var(--suite-shell-green);
  background: var(--suite-shell-soft);
}

.suite-tour-launcher {
  position: fixed;
  z-index: 1300;
  display: grid;
  gap: 3px;
  box-sizing: border-box;
  width: 164px;
  padding: 7px;
  border: 1px solid var(--suite-shell-line);
  border-radius: 14px;
  background: rgba(251, 252, 249, .98);
  box-shadow: 0 14px 38px rgba(20, 30, 25, .18);
  backdrop-filter: blur(18px);
}

.suite-tour-launcher > span {
  padding: 5px 7px 6px;
  color: var(--suite-shell-muted);
  font-size: 7px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.suite-tour-launcher button {
  width: 100%;
  min-height: 32px;
  padding: 0 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--suite-shell-ink);
  font-size: 9px;
  font-weight: 780;
  text-align: left;
  cursor: pointer;
}

.suite-tour-launcher button:hover,
.suite-tour-launcher button:focus-visible {
  outline: 0;
  background: var(--suite-shell-soft);
  color: var(--suite-shell-green);
}

.suite-tour-launcher-start {
  background: var(--suite-shell-green) !important;
  color: white !important;
}

.suite-tour-launcher-start:hover,
.suite-tour-launcher-start:focus-visible {
  box-shadow: 0 0 0 3px rgba(15, 100, 78, .12);
}

@media (prefers-reduced-motion: reduce) {
  .suite-help-spotlight { transition: none; }
}

.suite-focus-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  padding: 0;
  border: 1px solid var(--suite-shell-line);
  border-radius: 50%;
  background: transparent;
  color: var(--suite-shell-green);
  cursor: pointer;
}

.suite-focus-button:hover,
.suite-focus-button:focus-visible {
  border-color: var(--suite-shell-green);
  outline: none;
  background: var(--suite-shell-soft);
}

.suite-focus-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.universal-preferences {
  display: flex;
  align-items: flex-end;
  flex-flow: row nowrap;
  gap: var(--suite-control-gap);
  min-width: 0;
}

/* Mantém os controles operacionais como um bloco único no extremo direito.
 * O espaço elástico fica entre Estilo e Consumo, sem alterar a geometria
 * interna ou a linha de base de nenhum seletor. */
.suite-utility-cluster {
  display: flex;
  align-items: flex-end;
  flex: 0 0 auto;
  gap: var(--suite-control-gap);
  height: 46px;
  min-height: 46px;
  margin-left: auto;
}

.universal-control {
  display: grid;
  grid-template-rows: 8px 34px;
  align-content: center;
  gap: 4px;
  height: 46px;
  min-height: 46px;
  margin: 0;
}

.universal-profile-control { flex: 0 0 150px; width: 150px; }
.universal-assistance-control { flex: 0 0 150px; width: 150px; }
.universal-style-control { flex: 0 0 180px; width: 180px; }
.universal-profile-control .universal-toggle { width: 150px; }
.universal-profile-control .universal-toggle button { flex: 0 0 71px; width: 71px; min-width: 71px; }
.universal-assistance-control .universal-toggle { width: 150px; }
.universal-assistance-control .universal-toggle button { flex: 0 0 47px; width: 47px; min-width: 47px; padding-inline: 2px; }
.universal-style-control .universal-select { width: 180px; min-width: 180px; max-width: 180px; }

.universal-control > span {
  display: block;
  height: 8px;
  color: var(--suite-shell-muted);
  font-size: 7px;
  font-weight: 800;
  line-height: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.universal-toggle {
  display: flex;
  box-sizing: border-box;
  height: 34px;
  padding: 3px;
  border: 1px solid var(--suite-shell-line);
  border-radius: 999px;
  background: var(--paper-deep, #ebeae3);
}

.universal-toggle button {
  min-width: 52px;
  height: 26px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--suite-shell-muted);
  font-size: 9px;
  font-weight: 750;
  cursor: pointer;
}

.universal-toggle button[aria-pressed="true"] {
  background: var(--suite-shell-bg);
  color: var(--suite-shell-green);
  box-shadow: 0 2px 8px rgba(32, 37, 31, .07);
}

.universal-assistance-toggle button { min-width: 46px; padding-inline: 7px; }

.universal-select {
  min-width: 126px;
  height: 34px;
  padding: 0 29px 0 11px;
  border: 1px solid var(--suite-shell-line);
  border-radius: 999px;
  background: var(--suite-shell-bg);
  color: var(--suite-shell-ink);
  font-size: 9px;
  font-weight: 700;
}

.suite-account-link,
.suite-usage {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--suite-shell-line);
  border-radius: 999px;
  background: transparent;
  color: var(--suite-shell-ink);
  font-size: 9px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.suite-usage-slot {
  width: 148px;
  min-width: 148px;
  max-width: 148px;
  flex: 0 0 148px;
}

.suite-usage-control.suite-usage-slot {
  display: grid;
  grid-template-rows: 8px 34px;
  align-content: center;
  gap: 4px;
  height: 46px;
  min-height: 46px;
}

.suite-usage-control > span:first-child {
  display: block;
  height: 8px;
  color: var(--suite-shell-muted);
  font-size: 7px;
  font-weight: 800;
  line-height: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.suite-usage-control .usage-meter,
.suite-usage-control .suite-usage {
  box-sizing: border-box;
  width: 100%;
  height: 34px;
  min-height: 34px;
  margin: 0;
}

.suite-usage-control .usage-meter {
  justify-content: space-between;
  padding: 3px 6px 3px 11px;
}

.suite-usage-control .suite-usage {
  display: flex;
  align-items: center;
  padding: 0 11px;
}

.suite-projects-slot {
  width: 126px;
  min-width: 126px;
  max-width: 126px;
  flex: 0 0 126px;
}

.suite-account-slot {
  width: 104px;
  min-width: 104px;
  max-width: 104px;
  flex: 0 0 104px;
  display: flex;
  align-items: center;
  justify-content: stretch;
  overflow: hidden;
}

.suite-account-slot .session-controls {
  width: 100%;
  height: 36px;
  margin: 0;
  padding: 0 7px;
  border: 1px solid var(--suite-shell-line);
  border-radius: 999px;
}

.suite-profile-slot {
  position: relative;
  z-index: 60;
  width: 148px;
  min-width: 148px;
  max-width: 148px;
  flex: 0 0 148px;
}

.suite-profile-menu {
  position: relative;
  width: 100%;
  height: 34px;
}

.suite-profile-trigger {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 7px;
  box-sizing: border-box;
  width: 100%;
  height: 34px;
  padding: 3px 8px 3px 3px;
  border: 1px solid var(--suite-shell-line);
  border-radius: 999px;
  background: transparent;
  color: var(--suite-shell-ink);
  cursor: pointer;
}

.suite-profile-trigger:hover,
.suite-profile-trigger:focus-visible,
.suite-profile-trigger[aria-expanded="true"] {
  border-color: var(--suite-shell-green);
  outline: 0;
  background: var(--suite-shell-soft);
}

.suite-profile-trigger strong {
  overflow: hidden;
  font-size: 9px;
  font-weight: 780;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suite-profile-chevron {
  color: var(--suite-shell-green);
  font-size: 11px;
  line-height: 1;
  transition: transform .16s ease;
}

.suite-profile-trigger[aria-expanded="true"] .suite-profile-chevron {
  transform: rotate(180deg);
}

.suite-profile-popover {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 1000;
  display: grid;
  gap: 3px;
  box-sizing: border-box;
  width: min(350px, calc(100vw - 24px));
  padding: 10px;
  border: 1px solid var(--suite-shell-line);
  border-radius: 17px;
  background: var(--suite-shell-bg);
  box-shadow: 0 20px 52px rgba(32, 37, 31, .18);
  backdrop-filter: blur(18px);
}

.suite-profile-popover[hidden] { display: none; }

.suite-profile-identity {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 3px 4px 8px;
}

.suite-profile-identity > .suite-profile-icon {
  width: 32px;
  height: 32px;
}

.suite-profile-identity > span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.suite-profile-identity strong,
.suite-profile-identity small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suite-profile-identity strong {
  color: var(--suite-shell-ink);
  font-size: 10px;
}

.suite-profile-identity small {
  color: var(--suite-shell-muted);
  font-size: 8px;
}

.suite-plan-badge {
  justify-self: start;
  height: auto !important;
  margin: 0 4px 7px;
  padding: 5px 7px;
  border-radius: 999px;
  background: var(--suite-shell-soft);
  color: var(--suite-shell-green) !important;
  font-size: 7px !important;
  font-weight: 850;
  line-height: 1 !important;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.suite-profile-plan-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0 4px 8px;
}

.suite-profile-plan-row .suite-plan-badge {
  flex: 0 0 auto;
  margin: 0;
}

.suite-plan-switch {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  min-width: 0;
  margin-left: auto;
}

.suite-plan-switch > span {
  color: var(--suite-shell-muted);
  font-size: 6px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.suite-plan-switch button {
  padding: 3px 5px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--suite-shell-green);
  font-size: 7px;
  font-weight: 800;
  cursor: pointer;
}

.suite-plan-switch button[hidden] { display: none; }
.suite-plan-switch button:hover,
.suite-plan-switch button:focus-visible { outline: 0; background: var(--suite-shell-soft); }
.suite-plan-switch button:disabled { opacity: .45; cursor: wait; }

.suite-profile-plan-status {
  display: block;
  margin: -2px 8px 7px;
  color: var(--suite-shell-muted);
  font-size: 7px;
  line-height: 1.35;
}

.suite-profile-plan-status[hidden] { display: none; }
.suite-profile-plan-status.is-error { color: #9b332d; }

.suite-active-project {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 32px;
  margin: 1px 3px 3px;
  padding: 0 7px;
  border-top: 1px solid var(--suite-shell-line);
  border-bottom: 1px solid var(--suite-shell-line);
}

.suite-active-project span {
  color: var(--suite-shell-muted);
  font-size: 7px;
  font-weight: 820;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.suite-active-project strong {
  overflow: hidden;
  color: var(--suite-shell-ink);
  font-size: 9px;
  font-weight: 760;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suite-profile-popover > button,
.suite-profile-popover > a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--suite-shell-ink);
  font-size: 9px;
  font-weight: 740;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.suite-profile-popover > button:hover,
.suite-profile-popover > button:focus-visible,
.suite-profile-popover > a:hover,
.suite-profile-popover > a:focus-visible {
  outline: 0;
  background: var(--suite-shell-soft);
  color: var(--suite-shell-green);
}

/* Vestígio da barra lateral no modo ampliado. Ele sobrepõe apenas a borda,
 * sem reservar uma nova coluna e sem reduzir a área útil do documento/chat. */
.suite-rail-restore {
  position: fixed;
  left: 0;
  top: 50%;
  z-index: 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  width: 32px;
  min-height: 78px;
  padding: 9px 3px 10px;
  border: 1px solid var(--suite-shell-line);
  border-left: 0;
  border-radius: 0 15px 15px 0;
  background: var(--suite-shell-bg);
  color: var(--suite-shell-green);
  box-shadow: 5px 10px 24px rgba(32, 37, 31, .11);
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(16px);
}

.suite-rail-restore[hidden] { display: none; }

.suite-rail-restore:hover,
.suite-rail-restore:focus-visible {
  width: 36px;
  outline: 0;
  border-color: var(--suite-shell-green);
  background: var(--suite-shell-soft);
}

.suite-rail-restore > span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 1px solid var(--suite-shell-line);
  border-radius: 50%;
  background: var(--suite-shell-bg);
  font-size: 16px;
  line-height: 1;
}

.suite-rail-restore > strong {
  overflow: hidden;
  max-height: 68px;
  color: var(--suite-shell-muted);
  font-size: 7px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: .09em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

@media (min-width: 721px) {
  /* O Studio usa overflow:hidden na faixa para animar o modo de conversa.
   * No cabeçalho universal, o popover de perfil precisa atravessar essa faixa. */
  .topbar.suite-universal-bar { overflow: visible; }
}

body.workspace-focus-mode .suite-universal-bar {
  height: var(--suite-header-height);
  min-height: var(--suite-header-height);
  max-height: var(--suite-header-height);
  padding: 0 var(--suite-header-inline);
  border-bottom: 1px solid var(--suite-shell-line);
}

.suite-usage-slot,
.suite-projects-slot,
.suite-account-slot,
.suite-focus-button {
  box-sizing: border-box;
  height: 36px;
  min-height: 36px;
  margin: 0;
}

.suite-usage { display: grid; gap: 0; min-width: 88px; }
.suite-usage small { color: var(--suite-shell-muted); font-size: 6px; letter-spacing: .05em; text-transform: uppercase; }
.suite-usage strong { font-size: 10px; font-weight: 750; line-height: 1; font-variant-numeric: tabular-nums; }

/* O valor monetário usa a mesma escala dos demais controles do cabeçalho. */
.suite-usage-control .usage-meter strong {
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.suite-profile-icon {
  position: relative;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--suite-shell-soft);
  color: var(--suite-shell-green);
  font-size: 9px;
  font-weight: 850;
}

@media (max-width: 1200px) {
  .suite-universal-bar,
  .topbar.suite-universal-bar {
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scrollbar-color: var(--suite-shell-line) transparent;
    scrollbar-width: thin;
  }
  .suite-universal-bar::-webkit-scrollbar { display: block; height: 4px; }
  .suite-universal-bar::-webkit-scrollbar-track { background: transparent; }
  .suite-universal-bar::-webkit-scrollbar-thumb { border-radius: 999px; background: var(--suite-shell-line); }
  .suite-profile-popover {
    position: fixed;
    top: calc(var(--suite-header-height) + 8px);
    right: 12px;
  }
}

@media (max-width: 720px) {
  .suite-switcher { grid-template-columns: 32px repeat(4, 56px); width: 280px; flex: 0 0 280px; }
  .universal-preferences { overflow: visible; padding-bottom: 0; scrollbar-width: none; }
  .universal-preferences::-webkit-scrollbar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .suite-switcher a, .suite-switcher button { transition: none; }
}
