.page-support .support-panel {
  margin-top: 0;
}

.page-support .support-page--ai {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 0.75rem 1.25rem 1.25rem;
}

.support-ai-shell {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  gap: 1rem;
  align-items: stretch;
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: calc(100vh - 210px);
}

.support-header--ai {
  --support-accent: #6366f1;
}

.support-header__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
  flex-shrink: 0;
}

.support-header__map-btn {
  white-space: nowrap;
}

.support-header__stats {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: right;
  max-width: 180px;
  line-height: 1.35;
}

/* —— Cabeçalho do Suporte —— */
.page-support .support-header {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.06) 0%, transparent 100%);
  --support-accent: #3b82f6;
}

.support-header__glow {
  position: absolute;
  inset: -40% auto auto 50%;
  width: 420px;
  height: 220px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--support-accent) 22%, transparent) 0%, transparent 72%);
  pointer-events: none;
}

.support-header__inner {
  position: relative;
  padding: 0.85rem 1.75rem 1.1rem;
}

.support-header__nav {
  margin-bottom: 0.85rem;
}

.support-header__back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.75rem 0.42rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: var(--surface-muted);
  color: var(--link-accent);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.15s;
}

.support-header__back:hover {
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.1);
  color: #bfdbfe;
  transform: translateX(-1px);
}

.support-header__back-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.14);
  font-size: 0.95rem;
  line-height: 1;
}

.support-header__main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.support-header__brand {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  min-width: 0;
}

.support-header__icon-wrap {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #ffffff 0%, #eef4ff 100%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--support-accent) 24%, transparent);
}

.support-header__icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.support-header__copy {
  min-width: 0;
}

.support-header__eyebrow {
  display: inline-flex;
  margin-bottom: 0.35rem;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--support-accent) 75%, white);
  background: color-mix(in srgb, var(--support-accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--support-accent) 28%, transparent);
}

.support-header__title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.support-header__subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
  max-width: 42rem;
}

.support-header__stats {
  flex-shrink: 0;
  align-self: flex-start;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--link-accent);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.22);
  white-space: nowrap;
}

.support-header--ai .support-header__stats {
  align-self: auto;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  font-weight: 500;
  white-space: normal;
}

.support-header--category .support-header__stats,
.support-header--search .support-header__stats {
  color: color-mix(in srgb, var(--support-accent) 80%, white);
  background: color-mix(in srgb, var(--support-accent) 12%, transparent);
  border-color: color-mix(in srgb, var(--support-accent) 28%, transparent);
}

.support-quick-actions.hidden {
  display: none;
}

.support-panel__controls {
  flex-wrap: wrap;
}

.support-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.support-breadcrumb.hidden {
  display: none;
}

.support-breadcrumb__back {
  border: none;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.support-breadcrumb__back:hover {
  text-decoration: underline;
}

.support-breadcrumb__current {
  color: var(--text);
  font-weight: 600;
}

.support-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.support-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.support-toolbar__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.support-toolbar__search {
  min-width: min(100%, 320px);
  flex: 1 1 280px;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.support-layout__tools {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: sticky;
  top: 0.75rem;
}

.support-layout__tools--compact .support-chat {
  display: none;
}

.support-tools-intro {
  padding: 0.15rem 0.1rem 0;
}

.support-tools-intro__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.support-tools-intro__meta {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.support-map-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, #10b981 32%, transparent);
  background:
    linear-gradient(135deg, color-mix(in srgb, #10b981 14%, transparent), transparent 58%),
    var(--gradient-support-panel);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.support-map-card:hover {
  border-color: color-mix(in srgb, #10b981 55%, transparent);
  transform: translateY(-1px);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.16),
    0 0 0 1px color-mix(in srgb, #10b981 18%, transparent);
}

.support-map-card__visual {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: color-mix(in srgb, #10b981 16%, transparent);
  border: 1px solid color-mix(in srgb, #10b981 28%, transparent);
}

.support-map-card__icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(72%) sepia(28%) saturate(860%) hue-rotate(102deg);
}

.support-map-card__copy {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

.support-map-card__title {
  font-size: 0.98rem;
  font-weight: 700;
}

.support-map-card__meta {
  font-size: 0.76rem;
  color: var(--muted);
}

.support-map-card__action {
  font-size: 0.78rem;
  font-weight: 700;
  color: #34d399;
  white-space: nowrap;
}

.support-layout__main {
  min-width: 0;
}

.support-add-btn {
  box-shadow: 0 8px 22px rgba(59, 130, 246, 0.18);
}

.support-editor-modal__panel {
  max-width: min(720px, 96vw);
}

.support-editor-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.support-editor-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  padding: 1rem 1.25rem 0.5rem;
  max-height: min(68vh, 620px);
  overflow: auto;
}

.support-editor-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.support-editor-field--full {
  grid-column: 1 / -1;
}

.support-editor-field__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.support-editor-field input,
.support-editor-field select,
.support-editor-field textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: var(--surface-input);
  color: var(--text);
  font: inherit;
  padding: 0.65rem 0.75rem;
}

.support-editor-field textarea {
  resize: vertical;
  min-height: 220px;
  line-height: 1.5;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.84rem;
}

.support-editor-field__hint {
  font-size: 0.72rem;
  color: var(--muted);
}

.support-editor-form__foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  padding: 0.85rem 1.25rem 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  background: var(--surface-modal-head);
}

.support-modal__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  background: var(--surface-modal-head);
}

.support-modal__foot-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.support-modal__delete {
  color: #fca5a5;
}

.support-modal__delete:hover {
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
}

.support-modal__foot-hint {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
}

.support-modal__back {
  justify-self: start;
}

.support-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.support-map-btn__icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(68%) sepia(52%) saturate(1200%) hue-rotate(186deg);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.support-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.05rem 1.05rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: var(--gradient-support-panel);
  color: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
  font: inherit;
  --support-accent: #3b82f6;
}

.support-card__shine {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--support-accent), transparent 80%);
  opacity: 0.85;
}

.support-card:hover {
  border-color: color-mix(in srgb, var(--support-accent) 55%, transparent);
  transform: translateY(-2px);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.28),
    0 0 0 1px color-mix(in srgb, var(--support-accent) 18%, transparent);
}

.support-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
}

.support-card__badge {
  flex-shrink: 0;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--support-accent) 70%, white);
  background: color-mix(in srgb, var(--support-accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--support-accent) 28%, transparent);
}

.support-card__icon-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #ffffff 0%, #eef4ff 55%, #dbeafe 100%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 8px 20px color-mix(in srgb, var(--support-accent) 22%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.support-card__icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
}

.support-card__icon-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 1.75rem;
  line-height: 1;
}

.support-card__title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.support-card__summary {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  min-height: 2.45rem;
}

.support-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--support-accent, var(--primary));
}

.support-card__arrow {
  font-size: 1rem;
  opacity: 0.85;
}

.support-category-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--support-accent) 28%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--support-accent) 12%, transparent), var(--surface-card));
}

.support-category-hero .support-card__icon-wrap {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.support-category-hero__icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.support-category-hero__badge {
  display: inline-flex;
  margin-bottom: 0.35rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--support-accent) 75%, white);
  background: color-mix(in srgb, var(--support-accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--support-accent) 30%, transparent);
}

.support-category-hero__summary {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}

.support-category-actions {
  display: flex;
  justify-content: flex-end;
  margin: -0.35rem 0 1rem;
}

.support-editor-form__spacer {
  flex: 1;
}

.support-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.support-procedure {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: var(--surface-muted);
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.support-procedure__bullet {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.support-procedure:hover {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.08);
  transform: translateX(2px);
}

.support-procedure__title {
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
}

.support-procedure__action {
  flex-shrink: 0;
  font-size: 0.78rem;
  color: var(--primary);
}

.support-search-results {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.support-search-hit {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: var(--surface-muted);
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
  --support-accent: #3b82f6;
}

.support-search-hit__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #ffffff 0%, #eef4ff 100%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--support-accent) 18%, transparent);
  overflow: hidden;
}

.support-search-hit__icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.support-search-hit__copy {
  flex: 1;
  min-width: 0;
}

.support-search-hit__arrow {
  flex-shrink: 0;
  color: var(--support-accent, var(--primary));
  font-size: 1.1rem;
}

.support-search-hit:hover {
  border-color: color-mix(in srgb, var(--support-accent) 45%, transparent);
  background: color-mix(in srgb, var(--support-accent) 8%, var(--surface-muted));
}

.support-search-hit__title {
  font-weight: 600;
  font-size: 0.92rem;
}

.support-search-hit__category {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.support-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: var(--surface-card-muted);
}

.support-suggestions__label {
  width: 100%;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.support-suggestion-chip {
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: var(--surface-strong);
  color: var(--text);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.support-suggestion-chip:hover {
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.12);
  color: var(--link-accent);
}

body.support-modal-open {
  overflow: hidden;
}

/* —— Modal de procedimento —— */
.support-modal .credit-day-modal__panel,
.support-modal__panel {
  max-width: min(760px, 96vw);
  border: 1px solid rgba(59, 130, 246, 0.22);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 28px 64px rgba(0, 0, 0, 0.48),
    0 0 48px rgba(59, 130, 246, 0.08);
  animation: supportModalIn 0.28s ease-out;
}

@keyframes supportModalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.support-modal__head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem 1.05rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  background: var(--gradient-support-card);
  overflow: hidden;
}

.support-modal__head-glow {
  position: absolute;
  top: -40%;
  right: -10%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.support-modal__head-main {
  position: relative;
  min-width: 0;
  flex: 1;
}

.support-modal__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.support-modal__group {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.28);
  color: var(--link-accent);
}

.support-modal__group[data-group="helpdesk"] {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.28);
  color: #86efac;
}

.support-modal__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

.support-modal__title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.support-modal__icon-wrap {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #ffffff 0%, #eef4ff 100%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.18);
}

.support-modal__icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.support-modal__title-block {
  min-width: 0;
}

.support-modal__title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: -0.01em;
}

.support-modal__subtitle {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.support-modal__close {
  position: relative;
  z-index: 1;
}

.support-modal__body {
  padding: 1.15rem 1.25rem 1.25rem;
  max-height: min(62vh, 560px);
  overflow: auto;
  background: linear-gradient(180deg, var(--surface-inset) 0%, var(--surface-panel) 100%);
  scrollbar-gutter: stable;
}

.support-modal__body::-webkit-scrollbar {
  width: 8px;
}

.support-modal__body::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.25);
  border-radius: 999px;
}

/* —— Conteúdo do runbook —— */
.runbook {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.runbook__section-title {
  margin: 0;
  padding: 0.55rem 0 0.55rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #bfdbfe;
  border-left: 3px solid rgba(59, 130, 246, 0.75);
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.1) 0%, transparent 100%);
  border-radius: 0 8px 8px 0;
}

.runbook__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  counter-reset: runbook-step;
}

.runbook__steps > li {
  counter-increment: runbook-step;
  position: relative;
  margin: 0;
  padding: 0.85rem 0.95rem 0.85rem 3rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: var(--surface-muted);
  line-height: 1.55;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.runbook__steps > li::before {
  content: counter(runbook-step);
  position: absolute;
  left: 0.85rem;
  top: 0.85rem;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #dbeafe;
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.35), rgba(37, 99, 235, 0.2));
  border: 1px solid rgba(96, 165, 250, 0.45);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.runbook__branch,
.runbook__list {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.runbook__branch {
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: var(--surface-muted);
  border: 1px dashed rgba(148, 163, 184, 0.18);
}

.runbook__branch > li,
.runbook__list > li {
  margin: 0;
  padding-left: 0.35rem;
  line-height: 1.5;
  color: rgba(231, 236, 243, 0.92);
}

.runbook__branch > li::marker,
.runbook__list > li::marker {
  content: none;
}

.runbook__branch > li::before {
  content: "▸";
  color: #60a5fa;
  margin-right: 0.35rem;
  font-size: 0.75rem;
}

.runbook__note {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--muted);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.18);
}

.runbook__note strong {
  color: #fcd34d;
}

.runbook strong {
  color: var(--text);
  font-weight: 600;
}

.runbook__decision {
  display: inline-flex;
  align-items: center;
  padding: 0.08rem 0.45rem;
  margin-right: 0.15rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.28);
  color: var(--link-accent) !important;
}

.runbook code,
.runbook strong:only-child {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}

.runbook li strong:first-child {
  font-family: inherit;
}

/* Comandos inline (microtef, ping, etc.) */
.runbook li strong:not(.runbook__decision) {
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  background: var(--surface-input);
  border: 1px solid rgba(148, 163, 184, 0.16);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.88em;
  color: #7dd3fc;
  font-weight: 600;
}

.support-modal__body h4:first-child {
  margin-top: 0;
}

.support-map-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.support-map-list a {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-card-muted);
  color: inherit;
  text-decoration: none;
}

.support-map-list a:hover {
  border-color: rgba(59, 130, 246, 0.45);
}

.support-map-list__title {
  display: block;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.support-map-list__states {
  font-size: 0.8rem;
  color: var(--muted);
}

.support-map-modal .credit-day-modal__panel,
.support-map-modal__panel {
  max-width: min(1320px, 98vw);
  width: min(1320px, 98vw);
  max-height: min(92vh, 920px);
}

.support-map-modal__head {
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.support-map-modal__head-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.support-map-modal__regions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.75rem 1rem 0.35rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  background: var(--surface-modal-head);
}

.support-map-modal__body {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.75rem 1rem 1rem;
  max-height: none;
  overflow: visible;
  flex: 1 1 auto;
  min-height: 0;
}

.support-map-region {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 118px;
  flex: 1 1 118px;
  max-width: calc(16.666% - 0.4rem);
  padding: 0.62rem 0.7rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: var(--surface-card-muted);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.support-map-region:hover {
  border-color: rgba(59, 130, 246, 0.35);
  background: color-mix(in srgb, var(--primary) 8%, var(--surface-card-muted));
}

.support-map-region--active {
  border-color: rgba(59, 130, 246, 0.55);
  background: color-mix(in srgb, var(--primary) 14%, var(--surface-card-muted));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 18%, transparent);
}

.support-map-region__title {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.support-map-region__states {
  font-size: 0.64rem;
  color: var(--muted);
  line-height: 1.25;
}

.support-map-modal__frame-wrap {
  position: relative;
  width: 100%;
  min-height: 520px;
  flex: 1 1 auto;
  aspect-ratio: 16 / 9;
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-card-muted);
}

.support-map-modal__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.support-map-modal__external {
  text-decoration: none;
  white-space: nowrap;
}

.support-map-modal__external:hover {
  text-decoration: none;
}

@media (max-width: 720px) {
  .support-editor-form__grid {
    grid-template-columns: 1fr;
  }

  .support-header__main {
    flex-direction: column;
  }

  .support-header__actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .support-header__stats {
    align-self: auto;
    text-align: left;
    max-width: none;
  }

  .support-ai-shell {
    grid-template-columns: 1fr;
    min-height: calc(100vh - 240px);
  }

  .support-chat-panel {
    max-height: none;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .support-chat-panel__block {
    flex: 1 1 280px;
    max-height: 220px;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }

  .support-chat--main {
    max-height: none;
    min-height: 420px;
  }

  .support-panel__controls .search-field {
    width: 100%;
  }

  .support-layout {
    grid-template-columns: 1fr;
  }

  .support-layout__tools {
    position: static;
  }

  .support-map-modal__regions {
    padding-inline: 0.75rem;
  }

  .support-map-region {
    max-width: calc(50% - 0.25rem);
    flex-basis: calc(50% - 0.25rem);
  }

  .support-map-modal__frame-wrap {
    min-height: 300px;
    aspect-ratio: 4 / 3;
  }

  .support-map-modal__head-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

/* —— Assistente IA —— */
.support-chat {
  margin-bottom: 0;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--support-accent, #6366f1) 20%, transparent);
  background: var(--gradient-support-panel);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.support-chat--main {
  flex: 1;
  min-height: 520px;
  max-height: calc(100vh - 200px);
  min-width: 0;
  padding: 1rem 1.1rem 0.85rem;
  border-radius: 1.15rem;
  border-color: rgba(148, 163, 184, 0.16);
}

.support-chat-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  max-height: calc(100vh - 200px);
}

.support-chat-panel__block {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 0;
  padding: 0.85rem 0.9rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: var(--gradient-support-panel);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.support-chat-panel__head {
  margin-bottom: 0.55rem;
}

.support-chat-panel__title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.support-chat-panel__meta {
  margin: 0.18rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.support-chat-panel__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-right: 0.15rem;
}

.support-chat-panel__chips {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.support-chat-panel__chip,
.support-chat-panel__chips .support-chat__source {
  width: 100%;
  text-align: left;
  justify-content: flex-start;
}

.support-chat-panel__empty {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
}

.support-chat-panel__empty.hidden {
  display: none;
}

.support-chat__toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.35rem;
}

.support-chat__welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.45rem;
  min-height: 220px;
  padding: 1.5rem 1rem;
}

.support-chat__welcome-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.support-chat__welcome-text {
  margin: 0;
  max-width: 28rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

.support-chat--disabled {
  opacity: 0.92;
}

.support-chat__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.support-chat__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.support-chat__subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.support-chat__messages {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1 1 auto;
  min-height: 200px;
  max-height: none;
  overflow: auto;
  padding: 0.65rem;
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--surface-card) 88%, transparent);
  border: 1px solid var(--border-subtle);
}

.support-chat__empty {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.support-chat__message {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-width: 92%;
}

.support-chat__message--user {
  align-self: flex-end;
}

.support-chat__message--assistant {
  align-self: flex-start;
}

.support-chat__message-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.support-chat__message-body {
  padding: 0.65rem 0.8rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.support-chat__message--user .support-chat__message-body {
  background: color-mix(in srgb, var(--primary) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 28%, transparent);
}

.support-chat__intro {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  line-height: 1.45;
}

.support-chat__runbook {
  font-size: 0.88rem;
  line-height: 1.5;
}

.support-chat__runbook h4 {
  margin: 0.75rem 0 0.35rem;
  font-size: 0.92rem;
}

.support-chat__runbook h4:first-child {
  margin-top: 0;
}

.support-chat__runbook ol,
.support-chat__runbook ul {
  margin: 0.35rem 0 0.65rem;
  padding-left: 1.2rem;
}

.support-chat__runbook li {
  margin: 0.2rem 0;
}

.support-chat__runbook p {
  margin: 0.35rem 0;
}

.support-chat__message--assistant .support-chat__message-body {
  max-width: 100%;
  background: var(--surface-muted);
  border: 1px solid var(--border-subtle);
}

.support-chat__typing .support-chat__message-body {
  min-height: 1.5rem;
  display: flex;
  align-items: center;
}

.support-chat__dots {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  height: 1rem;
}

.support-chat__dots span {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--text-muted);
  animation: support-chat-dot 1.25s infinite ease-in-out both;
}

.support-chat__dots span:nth-child(1) {
  animation-delay: -0.28s;
}

.support-chat__dots span:nth-child(2) {
  animation-delay: -0.14s;
}

@keyframes support-chat-dot {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }

  40% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

.support-chat__message--streaming .support-chat__message-body {
  white-space: pre-wrap;
}

.support-chat__ai-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--border-subtle);
}

.support-chat__ai-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.support-chat__ai-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.support-chat__message--ai .support-chat__message-label {
  color: color-mix(in srgb, var(--primary) 65%, var(--text-muted));
}

.support-chat__stream-text {
  white-space: pre-wrap;
}

.support-chat__cursor {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: currentColor;
  opacity: 0.85;
  animation: support-chat-cursor 1s step-end infinite;
}

@keyframes support-chat-cursor {
  0%,
  49% {
    opacity: 0.85;
  }

  50%,
  100% {
    opacity: 0;
  }
}

.support-chat__typing {
  opacity: 1;
}

.support-chat__source {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--link-accent, var(--primary));
  border-radius: 0.65rem;
  padding: 0.45rem 0.6rem;
  font-size: 0.74rem;
  line-height: 1.35;
  cursor: pointer;
}

.support-chat__source:hover {
  background: color-mix(in srgb, var(--primary) 18%, transparent);
}

.support-suggestion-chip {
  width: 100%;
  text-align: left;
}

.support-chat__composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
  align-items: end;
}

.support-chat__input-wrap textarea {
  width: 100%;
  min-height: 3.1rem;
  resize: vertical;
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
  color: inherit;
  font: inherit;
}

.support-chat__status {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.support-chat__status[data-kind="error"] {
  color: var(--danger, #ef4444);
}

.support-chat__status[data-kind="warn"] {
  color: var(--warn, #f59e0b);
}

@media (max-width: 720px) {
  .support-chat__composer {
    grid-template-columns: 1fr;
  }
}

/* Central de suporte — layout profissional (support-desk) */
.page-support .support-desk-page {
  padding: 0;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.page-support .support-desk {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  background:
    radial-gradient(1200px 420px at 12% -8%, color-mix(in srgb, var(--accent, #3b82f6) 14%, transparent), transparent 55%),
    radial-gradient(900px 360px at 88% 0%, color-mix(in srgb, var(--primary) 10%, transparent), transparent 50%);
}

.page-support .support-desk__hero {
  flex-shrink: 0;
  position: relative;
  padding: clamp(0.85rem, 2vw, 1.15rem) var(--portal-gutter, clamp(0.85rem, 2vw, 1.5rem));
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-card) 88%, transparent);
  backdrop-filter: blur(12px);
}

.page-support .support-desk__hero::after {
  content: "";
  position: absolute;
  left: var(--portal-gutter, clamp(0.85rem, 2vw, 1.5rem));
  right: var(--portal-gutter, clamp(0.85rem, 2vw, 1.5rem));
  bottom: -1px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--accent, #3b82f6) 55%, transparent) 35%,
    color-mix(in srgb, var(--primary) 45%, transparent) 65%,
    transparent
  );
  opacity: 0.85;
}

.page-support .support-desk__hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.page-support .support-desk__hero-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.page-support .support-desk__hero-actions .support-map-btn {
  white-space: nowrap;
}

.page-support .support-desk__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.72rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-card-muted);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.page-support .support-desk__back:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  background: color-mix(in srgb, var(--surface-card) 80%, var(--surface-card-muted));
}

.page-support .support-desk__back .icon {
  width: 1rem;
  height: 1rem;
}

.page-support .support-desk__rail-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.72rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-card);
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.page-support .support-desk__hero-main {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-width: 0;
}

.page-support .support-desk__hero-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--accent, #3b82f6) 18%, var(--surface-card-muted)),
    color-mix(in srgb, var(--primary) 12%, var(--surface-card-muted))
  );
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
  flex-shrink: 0;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 12%, transparent);
}

.page-support .support-desk__hero-copy {
  min-width: 0;
}

.page-support .support-desk__eyebrow {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 70%, var(--text-muted));
}

.page-support .support-desk__title {
  margin: 0.2rem 0 0;
  font-size: clamp(1.15rem, 2.8vw, 1.55rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 720;
}

.page-support .support-desk__subtitle {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: clamp(0.78rem, 1.8vw, 0.88rem);
  line-height: 1.45;
  max-width: 52rem;
}

.page-support .support-desk__workspace {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: clamp(0.75rem, 2vw, 1rem);
  flex: 1 1 0;
  min-height: 0;
  align-items: stretch;
  padding: var(--portal-gutter, clamp(0.85rem, 2vw, 1.5rem));
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
}

.page-support .support-desk__rail {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
  overflow: auto;
}

.page-support .support-desk__rail-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface-card);
  overflow: hidden;
  box-shadow: 0 1px 0 color-mix(in srgb, #fff 4%, transparent);
}

.page-support .support-desk__rail-head {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 0.9rem 0.65rem;
  border-bottom: 1px solid var(--border-subtle, var(--border));
  background: color-mix(in srgb, var(--surface-card-muted) 55%, transparent);
}

.page-support .support-desk__rail-icon {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.55rem;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface-card-muted));
  font-size: 0.95rem;
  flex-shrink: 0;
}

.page-support .support-desk__rail-title {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.25;
}

.page-support .support-desk__rail-meta {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.page-support .support-desk__rail-body {
  padding: 0.75rem 0.85rem 0.85rem;
}

.page-support .support-desk__rail-empty {
  margin: 0 0 0.55rem;
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.page-support .support-desk__rail-empty.hidden {
  display: none;
}

.page-support .support-desk__chips {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.page-support .support-desk__chips .support-suggestion-chip,
.page-support .support-desk__chips .support-chat__source {
  width: 100%;
  text-align: left;
  border-radius: 0.7rem;
  padding: 0.55rem 0.65rem;
  font-size: 0.78rem;
  line-height: 1.35;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.page-support .support-desk__chips .support-suggestion-chip {
  border: 1px solid var(--border-subtle, var(--border));
  background: var(--surface-card-muted);
  color: inherit;
  cursor: pointer;
}

.page-support .support-desk__chips .support-suggestion-chip:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  background: color-mix(in srgb, var(--accent) 8%, var(--surface-card-muted));
  transform: translateY(-1px);
}

.page-support .support-desk__chat-col {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  min-width: 0;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface-card);
  overflow: hidden;
  box-shadow:
    0 1px 0 color-mix(in srgb, #fff 4%, transparent),
    0 18px 40px color-mix(in srgb, #000 18%, transparent);
}

.page-support .support-desk__chat {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  height: 100%;
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
  box-shadow: none;
}

.page-support .support-desk__chat-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--border-subtle, var(--border));
  background: color-mix(in srgb, var(--surface-card-muted) 50%, transparent);
}

.page-support .support-desk__chat-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.page-support .support-desk__chat-status #supportChatStatus[data-kind="ok"] {
  color: color-mix(in srgb, var(--success, #22c55e) 75%, var(--text-muted));
}

.page-support .support-desk__chat-status #supportChatStatus[data-kind="error"] {
  color: var(--danger, #ef4444);
}

.page-support .support-desk__chat-status #supportChatStatus[data-kind="warn"] {
  color: var(--warn, #f59e0b);
}

.page-support .support-desk__status-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--success, #22c55e);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--success, #22c55e) 22%, transparent);
  flex-shrink: 0;
  animation: support-desk-pulse 2.4s ease-in-out infinite;
}

.page-support .support-desk__chat-status:has(#supportChatStatus[data-kind="error"]) .support-desk__status-dot {
  background: var(--danger, #ef4444);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger, #ef4444) 22%, transparent);
  animation: none;
}

.page-support .support-desk__chat-status:has(#supportChatStatus[data-kind="warn"]) .support-desk__status-dot {
  background: var(--warn, #f59e0b);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn, #f59e0b) 22%, transparent);
  animation: none;
}

@keyframes support-desk-pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.55;
  }
}

.page-support .support-desk__messages.support-chat__messages {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  gap: 0.85rem;
  flex: 1 1 0;
  min-height: 0;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.85rem 1rem 0.65rem;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  border: none;
  border-radius: 0;
  background: transparent;
  scrollbar-gutter: stable;
}

.page-support .support-desk__messages .support-chat__message {
  flex-shrink: 0;
  max-width: min(100%, 40rem);
}

.page-support .support-desk__messages .support-chat__message--user {
  align-self: flex-end;
  max-width: min(88%, 34rem);
}

.page-support .support-desk__messages .support-chat__message--assistant {
  align-self: stretch;
  max-width: 100%;
}

.page-support .support-desk__messages .support-chat__message--assistant .support-chat__message-body {
  width: 100%;
  box-sizing: border-box;
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--surface-card-muted) 85%, transparent);
  border: 1px solid var(--border-subtle, var(--border));
}

.page-support .support-desk__messages .support-chat__message--user .support-chat__message-body {
  border-radius: 0.85rem 0.85rem 0.25rem 0.85rem;
}

.page-support .support-desk__messages .support-chat__message--assistant .support-chat__message-label {
  padding-left: 0.15rem;
}

.page-support .support-desk__welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  padding: 1.15rem 1rem;
  border: 1px dashed color-mix(in srgb, var(--accent) 28%, var(--border));
  border-radius: 1rem;
  background: color-mix(in srgb, var(--accent) 6%, var(--surface-card-muted));
  flex-shrink: 0;
}

.page-support .support-desk__welcome-icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  background: var(--surface-card);
  border: 1px solid var(--border);
}

.page-support .support-chat__welcome-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
}

.page-support .support-chat__welcome-text {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.page-support .support-desk__composer-bar {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-card) 94%, var(--surface-card-muted));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -10px 28px color-mix(in srgb, #000 14%, transparent);
}

.page-support .support-desk__composer {
  flex-shrink: 0;
  margin: 0;
  border-top: none;
  padding: 0.7rem 0.85rem;
  background: transparent;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: end;
}

.page-support .support-desk__input textarea {
  width: 100%;
  min-height: 3.25rem;
  max-height: 9rem;
  resize: vertical;
  padding: 0.7rem 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid var(--border-subtle, var(--border));
  background: var(--surface-card);
  color: inherit;
  font: inherit;
  line-height: 1.45;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.page-support .support-desk__input textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}

.page-support .support-desk__send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 6.5rem;
  padding-inline: 1rem;
}

.page-support .support-desk__send-icon {
  width: 1rem;
  height: 1rem;
}

.page-support .support-desk--rail-open::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 140;
  background: color-mix(in srgb, #000 45%, transparent);
  backdrop-filter: blur(2px);
}

@media (max-width: 1024px) {
  .page-support .support-desk__workspace {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .page-support .support-desk__workspace {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr);
    position: relative;
  }

  .page-support .support-desk__rail-toggle {
    display: inline-flex;
  }

  .page-support .support-desk__rail {
    position: fixed;
    top: auto;
    left: var(--portal-gutter, 0.85rem);
    right: var(--portal-gutter, 0.85rem);
    bottom: calc(env(safe-area-inset-bottom, 0px) + 5.5rem);
    z-index: 150;
    max-height: min(62vh, 520px);
    padding: 0.35rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: var(--surface-card);
    box-shadow: 0 24px 60px color-mix(in srgb, #000 35%, transparent);
    transform: translateY(calc(110% + 1rem));
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
  }

  .page-support .support-desk--rail-open .support-desk__rail {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 640px) {
  .page-support .support-desk__hero-top {
    flex-wrap: wrap;
  }

  .page-support .support-desk__hero-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .page-support .support-desk__composer {
    grid-template-columns: 1fr;
  }

  .page-support .support-desk__send {
    width: 100%;
  }

  .page-support .support-desk__send .support-chat__send-label {
    display: inline;
  }

  .page-support .support-desk__messages.support-chat__messages {
    padding: 0.75rem 0.65rem 0.55rem;
  }
}

@media (max-width: 480px) {
  .page-support .support-desk__back span:not(.visually-hidden) {
    display: none;
  }

  .page-support .support-desk__back {
    padding-inline: 0.55rem;
  }
}
