@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400 700;
  font-display: block;
  src: url("/assets/fonts/roboto-latin.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: block;
  src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono Code";
  font-style: normal;
  font-weight: 100 800;
  font-display: block;
  src: url("/assets/fonts/jetbrains-mono-code-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;

  --bg: #151515;
  --surface: #1d1d1d;
  --surface-raised: #282828;
  --surface-hover: #303030;

  --line: #3a3a3a;

  --text: #eeeeee;
  --muted: #a2a2a2;
  --faint: #707070;

  --accent: #e5484d;
  --accent-dark: #351a1d;

  --danger: #f46a70;
  --warning: #f18a90;

  font-family: "Roboto";
}


/* =========================================================
   GLOBAL
   ========================================================= */

* {
  box-sizing: border-box;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #5a5a5a transparent;
}

*::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;

  background: #5a5a5a;
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: #767676;
  background-clip: padding-box;
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

body {
  margin: 0;
  min-width: 320px;

  background: var(--bg);
  color: var(--text);

  font-size: 14px;
}

body.workflow-component-modal-open {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

code,
pre {
  font-family: "JetBrains Mono";
}


/* =========================================================
   APP
   ========================================================= */

.app-shell {
  min-height: 100vh;

  display: flex;

  background: var(--bg);
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
  width: 240px;
  flex: 0 0 240px;

  height: 100vh;
  height: 100dvh;
  min-height: 0;

  position: sticky;
  z-index: 1;
  top: 0;
  align-self: flex-start;

  padding: 20px 16px 14px;

  display: flex;
  flex-direction: column;

  border-right: 1px solid var(--line);

  background: #181818;
}


/* =========================================================
   BRAND
   ========================================================= */

.brand {
  display: flex;
  align-items: center;

  gap: 10px;

  padding: 0 12px 28px;

  font-weight: 700;
  font-size: 17px;
  letter-spacing: .3px;
}

.brand-mark {
  width: 32px;
  height: 32px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 32px;
}

.brand-mark img {
  width: 32px;
  height: 32px;

  display: block;

  object-fit: contain;
}


/* =========================================================
   SIDEBAR LABEL
   ========================================================= */

.sidebar-label,
.eyebrow {
  color: var(--faint);

  font-size: 10px;
  font-weight: 700;

  letter-spacing: 1.7px;
}

.sidebar-label {
  padding: 0 12px 12px;
}


/* =========================================================
   MENU
   ========================================================= */

.nav-tabs {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;

  gap: 5px;

  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #676767 transparent;
}

.nav-tabs::-webkit-scrollbar {
  width: 8px;
}

.nav-tabs::-webkit-scrollbar-thumb {
  border: 2px solid #181818;

  background: #676767;
  background-clip: padding-box;
}

.nav-tabs::-webkit-scrollbar-thumb:hover {
  background: #858585;
  background-clip: padding-box;
}

.nav-tab,
.docs-nav-link,
.nav-section-toggle {
  width: 100%;

  padding: 8px 12px;

  display: flex;
  align-items: center;

  gap: 11px;

  border: 1px solid transparent;
  border-radius: 7px;

  color: var(--muted);

  background: transparent;

  text-align: left;

  transition:
    color .15s ease,
    background .15s ease,
    border-color .15s ease;
}

.docs-nav-link {
  text-decoration: none;
}

.nav-tab:hover,
.docs-nav-link:hover,
.nav-section-toggle:hover {
  color: var(--text);

  background: var(--surface);
}

.nav-tab.active {
  color: var(--text);

  border-color: #6f2d32;

  background: #29191b;
}

.nav-section-toggle {
  font: inherit;
  cursor: pointer;
}

.workflow-nav-group {
  flex: 0 0 auto;
}

.nav-chevron {
  width: 16px;
  height: 16px;
  margin-left: auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
  transform: rotate(-90deg);
}

.nav-section-toggle[aria-expanded="true"] .nav-chevron {
  transform: rotate(-90deg);
}

.workflow-submenu {
  width: 240px;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  position: fixed;
  z-index: 20;
  top: 0;
  left: 240px;
  padding: 20px 16px 14px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: #181818;
  box-shadow: 10px 0 22px rgb(0 0 0 / 18%);
  animation: workflow-menu-enter .16s ease-out;
}

.workflow-submenu-brand {
  padding: 7px 12px 28px;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .3px;
}

.workflow-submenu .sidebar-label {
  display: block;
}

.workflow-submenu-nav {
  display: grid;
  gap: 5px;
}

.workflow-submenu-item {
  width: 100%;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: inherit;
  text-align: left;
  cursor: pointer;
}

.workflow-submenu-item:hover {
  color: var(--text);
  background: var(--surface);
}

@media (min-width: 761px) {
  .main-content {
    transition: padding-left .16s ease-out;
  }

  body.workflow-menu-open .main-content {
    padding-left: 240px;
  }

  /* O conteúdo passa a ter a largura útil menor enquanto o submenu está aberto. */
  body.workflow-menu-open .dashboard-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.workflow-menu-open .dashboard-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.workflow-menu-open .dashboard-activity-card {
    grid-column: 1 / -1;
  }

  body.workflow-menu-open .dashboard-reliability-card,
  body.workflow-menu-open .dashboard-storage-card,
  body.workflow-menu-open .dashboard-workflow-types-card,
  body.workflow-menu-open .dashboard-schedule-card {
    grid-column: auto;
  }

  body.workflow-menu-open .dashboard-ranking-grid,
  body.workflow-menu-open .dashboard-focus-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .main-content {
    transition: none;
  }
}

@keyframes workflow-menu-enter {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

.workflow-procedure-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.routine-return-fields {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.routine-return-fields code {
  color: var(--text);
}


/* =========================================================
   ÍCONES DO MENU
   ========================================================= */

.nav-icon {
  width: 18px;
  height: 18px;

  min-width: 18px;

  flex: 0 0 18px;

  color: var(--accent);

  stroke-width: 1.8;

  transition:
    color .15s ease,
    transform .15s ease;
}

.nav-tab:hover .nav-icon,
.docs-nav-link:hover .nav-icon,
.nav-section-toggle:hover .nav-icon {
  color: #f46a70;
}

.nav-tab.active .nav-icon {
  color: var(--accent);
}

/* =========================================================
   SIDEBAR FOOTER
   ========================================================= */

.sidebar-footer {
  flex: 0 0 auto;
  margin-top: 16px;

  padding: 17px 12px 0;

  display: grid;

  gap: 13px;

  border-top: 1px solid var(--line);
}

.insecure-transport-warning {
  padding: 10px;

  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: start;

  gap: 9px;

  border: 1px solid #9e3036;
  border-radius: 6px;

  color: #ffd9da;

  background: #351619;

}

.insecure-warning-icon {
  width: 24px;
  height: 24px;

  display: grid;
  place-items: center;

  border: 1px solid #f45b62;
  border-radius: 50%;

  color: #fff;
  background: #b52e34;

  font-size: 12px;
  font-weight: 700;
}

.insecure-transport-warning strong {
  display: block;

  color: #ff9a9f;

  font-size: 10px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.insecure-transport-warning p {
  margin-top: 3px;

  color: #f0b8bc;

  font-size: 10px;
  line-height: 1.4;
}

.connection-dot {
  display: flex;
  align-items: center;

  gap: 8px;

  color: var(--muted);

  font-size: 12px;
}

.connection-dot span {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: var(--accent);
}

.disconnect-button {
  display: inline-flex;
  align-items: center;

  gap: 7px;
  padding: 0;

  border: 0;

  background: none;

  color: var(--muted);

  text-align: left;

  font-size: 12px;
}

.disconnect-button:hover {
  color: var(--accent);
}

.disconnect-button .button-icon {
  width: 14px;
  height: 14px;
}

.sidebar-footer-actions {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-button {
  width: 28px;
  height: 28px;
  margin: -7px 0 -7px auto;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}

.settings-button:hover,
.settings-button:focus-visible {
  border-color: #483034;
  color: var(--text);
  background: #29191b;
  outline: 0;
}

.settings-button .button-icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.settings-button:hover .button-icon,
.settings-button:focus-visible .button-icon {
  color: var(--accent);
}


/* =========================================================
   CONTEÚDO PRINCIPAL
   ========================================================= */

.main-content {
  width: 100%;

  min-width: 0;
}


/* =========================================================
   TOPBAR
   ========================================================= */

.topbar {
  max-width: 1320px;

  margin: auto;

  padding: 18px 5vw 12px;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 9px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 24px;
  line-height: 1;

  letter-spacing: -.5px;
}

h2 {
  font-size: 16px;
}

.topbar-actions,
.modal-actions {
  display: flex;
  align-items: center;

  gap: 9px;
}


/* =========================================================
   BOTÕES
   ========================================================= */

.button {
  padding: 8px 12px;

  border: 1px solid var(--line);
  border-radius: 6px;

  color: var(--text);

  background: var(--surface);

  font-weight: 600;

  transition:
    background .15s ease,
    border-color .15s ease;
}

.button:hover {
  border-color: #626262;

  background: var(--surface-hover);
}

.button-primary {
  color: #1b1b1b;

  border-color: var(--accent);

  background: var(--accent);
}

.button-primary:hover {
  border-color: #f46a70;

  background: #f46a70;
}

.button-ghost {
  color: var(--muted);

  background: transparent;
}


/* =========================================================
   CONTENT AREA
   ========================================================= */

.content-area {
  max-width: 1320px;

  margin: auto;

  padding: 12px 5vw 42px;
}


/* =========================================================
   ESTATÍSTICAS
   ========================================================= */

.stats {
  margin-bottom: 12px;

  display: grid;
  grid-template-columns: repeat(3, 1fr);

  gap: 8px;
}

.stat {
  padding: 9px 12px;

  border: 1px solid var(--line);
  border-radius: 7px;

  background: #202020;
}

.stat-label {
  color: var(--muted);

  font-size: 10px;
}

.stat-value {
  margin-top: 3px;

  font-size: 18px;
  font-weight: 700;
}


/* =========================================================
   PANEL
   ========================================================= */

.panel {
  overflow: hidden;

  border: 1px solid var(--line);
  border-radius: 8px;

  background: var(--surface);
}

.panel-heading {
  padding: 14px 17px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;

  gap: 14px;

  border-bottom: 1px solid var(--line);
}

.panel-heading p {
  margin-top: 5px;

  color: var(--muted);

  font-size: 12px;
}


/* =========================================================
   LOG FILTERS
   ========================================================= */

.log-filters {
  display: flex;
  align-items: center;

  gap: 8px;
}

.workflow-log-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  flex: 1 1 620px;
  justify-content: flex-end;
  gap: 8px;
}

.workflow-log-filters select,
.workflow-log-filters input {
  min-width: 145px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  outline: 0;
  color: var(--text);
  background: #151515;
  font-size: 12px;
}

.log-filters select,
.log-filters input {
  padding: 8px 9px;

  border: 1px solid var(--line);
  border-radius: 5px;

  outline: 0;

  color: var(--text);

  background: #151515;

  font-size: 12px;
}

.log-filters input {
  color-scheme: dark;
}

/* O combobox de busca já desenha sua própria borda; o input interno fica sem contorno. */
.log-filters .lookup-search {
  min-width: 0;
  margin: 0;
  padding: 8px 9px;
  border: 0;
  border-radius: 4px 0 0 4px;
  background: transparent;
}

.log-filters .lookup-search:focus {
  border-color: transparent;
}

.workflow-log-status {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.workflow-log-status.completed { color: #7ddf9a; background: rgb(44 148 78 / 18%); }
.workflow-log-status.failed { color: #ff8a8a; background: rgb(220 55 55 / 18%); }
.workflow-log-error { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }

.workflow-components-list li,
.workflow-component-editor-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.workflow-timeline {
  --workflow-timeline-card-width: 144px;
  --workflow-timeline-card-height: 92px;
  --workflow-timeline-gap: 10px;
  --workflow-timeline-connector-extension: -10px;

  display: flex;
  align-items: flex-start;
  gap: var(--workflow-timeline-gap);
  min-height: 104px;
  overflow-x: auto;
  padding: 12px 3px 22px;
}

.workflow-timeline-node {
  position: relative;
  flex: 0 0 auto;
}

.workflow-timeline-loop-node {
  /* Reserva espaço para a subárvore do Loop. */
  flex-basis: max-content;
  width: max-content;
}

.workflow-timeline-if-node {
  /* Reserva espaço para os ramos da decisão. */
  flex-basis: max-content;
  width: max-content;
}

.workflow-timeline-loop-node::after,
.workflow-timeline-if-node::after {
  position: absolute;
  z-index: 0;
  top: calc((var(--workflow-timeline-card-height) - 1px) / 2);
  right: 0;
  left: var(--workflow-timeline-card-width);
  height: 1px;
  content: '';
  background: #d65a60;
  box-shadow: 0 0 8px rgb(229 72 77 / 22%);
  pointer-events: none;
}

.workflow-timeline-loop-node > .workflow-timeline-loop {
  position: relative;
  z-index: 1;
}

.workflow-timeline-card,
.workflow-timeline-add {
  min-width: var(--workflow-timeline-card-width);
  min-height: var(--workflow-timeline-card-height);
  padding: 8px 9px;
  display: grid;
  align-content: start;
  gap: 3px;
  border: 1px solid #424244;
  border-radius: 10px;
  color: var(--text);
  background: linear-gradient(145deg, rgb(255 255 255 / 5%), transparent 70%), #202021;
  box-shadow: 0 10px 22px rgb(0 0 0 / 15%);
  cursor: pointer;
  text-align: left;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.workflow-timeline-card {
  --workflow-node-color: var(--accent);
  --workflow-node-tint: rgb(229 72 77 / 15%);
  position: relative;
  z-index: 1;
}

.workflow-timeline-card:hover,
.workflow-timeline-card:focus-visible {
  border-color: var(--workflow-node-color);
  background: linear-gradient(145deg, var(--workflow-node-tint), transparent 70%), #282021;
  box-shadow: 0 14px 30px rgb(0 0 0 / 28%);
  outline: 0;
  transform: translateY(-3px);
}

.workflow-timeline-card.workflow-timeline-card-success,
.workflow-timeline-card.workflow-timeline-card-success:hover,
.workflow-timeline-card.workflow-timeline-card-success:focus-visible {
  border-color: rgb(79 200 129 / 85%);
  background: rgb(79 200 129 / 15%);
}

.workflow-timeline-card.workflow-timeline-card-error,
.workflow-timeline-card.workflow-timeline-card-error:hover,
.workflow-timeline-card.workflow-timeline-card-error:focus-visible {
  border-color: rgb(255 104 104 / 88%);
  background: rgb(220 55 55 / 17%);
}

.workflow-timeline-card-top { display: flex; align-items: center; justify-content: space-between; min-height: 20px; }
.workflow-timeline-card-icon,
.workflow-timeline-start-icon {
  display: inline-grid;
  place-items: center;
  color: var(--muted);
}

.workflow-timeline-card-icon { width: 20px; height: 20px; }
.workflow-timeline-start-icon { width: 20px; height: 20px; }
.workflow-timeline-card-icon svg,
.workflow-timeline-start-icon svg { width: 20px; height: 20px; stroke-width: 1.8; }
.workflow-timeline-card strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 1.15; }
.workflow-timeline-type { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .06em; line-height: 1.1; text-transform: uppercase; }
.workflow-timeline-result { display: inline-flex; align-items: center; gap: 4px; font-size: 9px; font-weight: 700; line-height: 1; }
.workflow-timeline-result::before { display: inline-grid; width: 12px; height: 12px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 8px; line-height: 1; }
.workflow-timeline-card-success .workflow-timeline-result::before { content: '✓'; }
.workflow-timeline-card-error .workflow-timeline-result::before { content: '×'; }
.workflow-timeline-card-success .workflow-timeline-result { color: #7ddf9a; }
.workflow-timeline-card-error .workflow-timeline-result { color: #ff9b9b; }
.workflow-timeline-order {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--accent);
  background: var(--accent-dark);
  font-size: 9px;
  font-weight: 700;
}

.workflow-timeline-start {
  min-width: var(--workflow-timeline-card-width);
  min-height: var(--workflow-timeline-card-height);
  padding: 9px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border: 1px solid rgb(229 72 77 / 65%);
  border-radius: 10px;
  background: linear-gradient(145deg, rgb(229 72 77 / 20%), rgb(229 72 77 / 6%));
  box-shadow: 0 10px 22px rgb(0 0 0 / 15%);
}

.workflow-timeline-start > div { display: grid; min-width: 0; gap: 2px; }

.workflow-timeline-start > div > span {
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
}

.workflow-timeline-start strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.workflow-timeline-start small { color: var(--muted); font-size: 10px; }
.workflow-timeline-start-icon { flex: 0 0 auto; color: var(--accent); }
.workflow-timeline-loop { --workflow-node-color: #b575ff; --workflow-node-tint: rgb(181 117 255 / 16%); border-color: rgb(181 117 255 / 72%); }
.workflow-timeline-loop .workflow-timeline-card-icon { color: #b575ff; }
.workflow-timeline-if { --workflow-node-color: #5cb5ff; --workflow-node-tint: rgb(92 181 255 / 16%); border-color: rgb(92 181 255 / 75%); }
.workflow-timeline-if .workflow-timeline-card-icon { color: #5cb5ff; }
.workflow-timeline-email_sender { --workflow-node-color: #efb76f; --workflow-node-tint: rgb(255 180 89 / 16%); border-color: rgb(255 180 89 / 68%); }
.workflow-timeline-email_sender .workflow-timeline-card-icon { color: #efb76f; }
.workflow-timeline-http_request { --workflow-node-color: #4ad2a6; --workflow-node-tint: rgb(74 210 166 / 16%); border-color: rgb(74 210 166 / 68%); }
.workflow-timeline-http_request .workflow-timeline-card-icon { color: #4ad2a6; }
.workflow-timeline-script { --workflow-node-color: #9bcbef; --workflow-node-tint: rgb(155 203 239 / 15%); border-color: rgb(155 203 239 / 48%); }
.workflow-timeline-script .workflow-timeline-card-icon { color: #9bcbef; }
.workflow-timeline-restgo_backup { --workflow-node-color: #8fbce8; --workflow-node-tint: rgb(143 188 232 / 15%); border-color: rgb(143 188 232 / 48%); }
.workflow-timeline-restgo_backup .workflow-timeline-card-icon { color: #8fbce8; }
.workflow-timeline-google_drive_backup { --workflow-node-color: #7cc9a7; --workflow-node-tint: rgb(124 201 167 / 15%); border-color: rgb(124 201 167 / 48%); }
.workflow-timeline-google_drive_backup .workflow-timeline-card-icon { color: #7cc9a7; }

.workflow-timeline-connector {
  position: relative;
  flex: 0 0 22px;
  width: 22px;
  height: 1px;
  align-self: flex-start;
  margin-top: calc((var(--workflow-timeline-card-height) - 1px) / 2);
}

.workflow-timeline-connector::before {
  position: absolute;
  top: 0;
  right: var(--workflow-timeline-connector-extension);
  left: var(--workflow-timeline-connector-extension);
  height: 1px;
  content: '';
  background: #d65a60;
  box-shadow: 0 0 8px rgb(229 72 77 / 22%);
}

.workflow-timeline-add {
  min-width: 82px;
  align-content: center;
  place-items: center;
  border-style: dashed;
  color: var(--accent);
  background: rgb(229 72 77 / 3%);
  text-align: center;
  box-shadow: none;
}

.workflow-timeline-add span { font-size: 25px; line-height: 1; }
.workflow-timeline-add small { color: inherit; font-size: 10px; }

.workflow-timeline-add:hover,
.workflow-timeline-add:focus-visible { border-color: var(--accent); background: rgb(229 72 77 / 12%); box-shadow: 0 10px 22px rgb(0 0 0 / 18%); outline: 0; }
.workflow-timeline-add-loop { color: #b575ff; border-color: rgb(181 117 255 / 45%); background: rgb(181 117 255 / 5%); }
.workflow-timeline-add-loop:hover,
.workflow-timeline-add-loop:focus-visible { border-color: #b575ff; background: rgb(181 117 255 / 13%); }
.workflow-timeline-add-branch-true { color: #7ddf9a; border-color: rgb(79 200 129 / 42%); background: rgb(79 200 129 / 5%); }
.workflow-timeline-add-branch-true:hover,
.workflow-timeline-add-branch-true:focus-visible { border-color: #4fc881; background: rgb(79 200 129 / 13%); }
.workflow-timeline-add-branch-false { color: #ff9b9b; border-color: rgb(255 139 139 / 42%); background: rgb(255 139 139 / 5%); }
.workflow-timeline-add-branch-false:hover,
.workflow-timeline-add-branch-false:focus-visible { border-color: #ff8b8b; background: rgb(255 139 139 / 13%); }

.workflow-components-list {
  display: grid;
  gap: 7px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.workflow-components-list li {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.workflow-components-list li > span:not(.workflow-component-order) { color: var(--muted); font-size: 12px; }
.workflow-components-list .row-actions { margin-left: auto; }

.workflow-loop-children {
  position: relative;
  width: max-content;
  min-width: max-content;
  margin: 12px 0 0 22px;
  padding: 10px 12px 11px 31px;
  border: 1px solid rgb(181 117 255 / 38%);
  border-left: 3px solid #b575ff;
  border-radius: 12px;
  background: linear-gradient(135deg, rgb(181 117 255 / 12%), transparent 46%), rgb(18 18 19 / 66%);
}

.workflow-loop-children::before {
  position: absolute;
  top: -13px;
  left: 46px;
  width: 1px;
  height: 13px;
  content: '';
  background: #b575ff;
  box-shadow: 0 0 10px rgb(181 117 255 / 44%);
  pointer-events: none;
}

.workflow-loop-children::after {
  position: absolute;
  top: -4px;
  left: 42px;
  width: 9px;
  height: 9px;
  content: '';
  border: 2px solid #b575ff;
  border-radius: 50%;
  background: #242025;
}

.workflow-loop-children .workflow-timeline {
  --workflow-timeline-card-width: 128px;
  --workflow-timeline-card-height: 82px;

  width: max-content;
  min-height: 90px;
  margin: 6px 0 0;
  padding: 3px 0 1px;
  overflow: visible;
}
.workflow-loop-children .workflow-timeline-card,
.workflow-loop-children .workflow-timeline-add { min-height: var(--workflow-timeline-card-height); }

.workflow-if-branches {
  position: relative;
  width: max-content;
  min-width: max-content;
  margin: 12px 0 0 14px;
  padding: 10px 11px 11px 29px;
  border: 1px solid rgb(92 181 255 / 40%);
  border-left: 3px solid #5cb5ff;
  border-radius: 12px;
  background: linear-gradient(135deg, rgb(92 181 255 / 12%), transparent 46%), rgb(18 18 19 / 66%);
}

.workflow-if-branches::before {
  position: absolute;
  top: -13px;
  left: 45px;
  width: 1px;
  height: 13px;
  content: '';
  background: #5cb5ff;
  box-shadow: 0 0 10px rgb(92 181 255 / 42%);
}

.workflow-if-branches::after {
  position: absolute;
  top: -4px;
  left: 41px;
  width: 9px;
  height: 9px;
  content: '';
  border: 2px solid #5cb5ff;
  border-radius: 50%;
  background: #1e2327;
}

.workflow-if-branch-list {
  display: grid;
  gap: 7px;
  margin-top: 9px;
}

.workflow-if-branch {
  position: relative;
  width: max-content;
  min-width: max-content;
  padding: 8px 10px 10px 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: 9px;
  background: rgb(0 0 0 / 13%);
}

.workflow-if-branch::before {
  position: absolute;
  top: 25px;
  left: -20px;
  width: 18px;
  content: '';
  border-top: 1px solid currentColor;
}

.workflow-if-branch > header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 5px;
}

.workflow-if-branch > header span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.workflow-if-branch > header small { color: var(--muted); font-size: 10px; }
.workflow-if-branch-true { color: #7ddf9a; border-color: rgb(79 200 129 / 42%); border-left-color: #4fc881; background: rgb(79 200 129 / 7%); }
.workflow-if-branch-true::before { border-color: #4fc881; }
.workflow-if-branch-true > header span { color: #7ddf9a; }
.workflow-if-branch-false { color: #ff9b9b; border-color: rgb(255 139 139 / 42%); border-left-color: #ff8b8b; background: rgb(255 139 139 / 7%); }
.workflow-if-branch-false::before { border-color: #ff8b8b; }
.workflow-if-branch-false > header span { color: #ff9b9b; }
.workflow-if-branch .workflow-timeline {
  --workflow-timeline-card-width: 128px;
  --workflow-timeline-card-height: 82px;

  width: max-content;
  min-height: 90px;
  margin: 0;
  padding: 2px 0 0;
  overflow: visible;
}
.workflow-if-branch .workflow-timeline-card,
.workflow-if-branch .workflow-timeline-add { min-height: var(--workflow-timeline-card-height); }

#workflow-modal-backdrop {
  padding: 0;
  place-items: stretch;
}

#workflow-modal-backdrop .workflow-modal {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100dvh;
  max-height: none;
  overflow: hidden;
  padding: 14px 16px 12px;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 100% 0, rgb(229 72 77 / 8%), transparent 26%),
    #1b1b1c;
}

#workflow-modal-backdrop .workflow-modal .modal-header {
  flex: 0 0 auto;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

#workflow-modal-backdrop .workflow-modal .eyebrow { margin-bottom: 4px; font-size: 9px; }
#workflow-modal-backdrop .workflow-modal h2 { font-size: 16px; }
#workflow-modal-backdrop .workflow-modal .close-button { font-size: 22px; }

.workflow-modal-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.workflow-modal-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  height: 100%;
}

.workflow-modal-workspace > .workflow-timeline-viewport {
  width: 100%;
  height: 100%;
}

.workflow-modal-workspace.has-test-timeline {
  grid-template-columns: minmax(0, 1fr) minmax(255px, 295px);
  gap: 10px;
}

.workflow-test-timeline-panel {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #3a3a3c;
  border-radius: 10px;
  background: linear-gradient(160deg, rgb(255 255 255 / 3%), transparent 36%), #19191a;
  box-shadow: inset 0 1px rgb(255 255 255 / 3%), 0 12px 28px rgb(0 0 0 / 14%);
}

.workflow-test-timeline-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 12px 9px;
  border-bottom: 1px solid var(--line);
}

.workflow-test-timeline-header > div { display: grid; gap: 3px; }
.workflow-test-timeline-header > div > span { color: var(--faint); font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.workflow-test-timeline-header h3 { margin: 0; color: var(--text); font-size: 12px; }
.workflow-test-timeline-header-actions { display: flex !important; align-items: center; gap: 6px; }

.workflow-test-timeline-close {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.workflow-test-timeline-close:hover,
.workflow-test-timeline-close:focus-visible { border-color: var(--accent); color: var(--text); background: var(--accent-dark); outline: 0; }

.workflow-test-timeline-status,
.workflow-test-timeline-entry-status {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.workflow-test-timeline-status-success { color: #7ddf9a; background: rgb(79 200 129 / 9%); }
.workflow-test-timeline-status-error { color: #ff9b9b; background: rgb(255 104 104 / 9%); }

.workflow-test-timeline-summary {
  margin: 0;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.workflow-test-timeline-list {
  min-height: 0;
  margin: 0;
  padding: 10px 10px 14px;
  overflow: auto;
  list-style: none;
}

.workflow-test-timeline-entry {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 6px;
}

.workflow-test-timeline-entry:not(:last-child) { padding-bottom: 10px; }

.workflow-test-timeline-entry:not(:last-child)::before {
  position: absolute;
  top: 18px;
  bottom: 0;
  left: 8px;
  width: 1px;
  content: '';
  background: #4a4a4c;
}

.workflow-test-timeline-marker {
  z-index: 1;
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: #1b1b1c;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.workflow-test-timeline-entry-success { color: #7ddf9a; }
.workflow-test-timeline-entry-error { color: #ff9b9b; }

.workflow-test-timeline-entry article {
  min-width: 0;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgb(0 0 0 / 13%);
}

.workflow-test-timeline-entry-success article { border-color: rgb(79 200 129 / 27%); }
.workflow-test-timeline-entry-error article { border-color: rgb(255 104 104 / 38%); background: rgb(220 55 55 / 6%); }

.workflow-test-timeline-entry article > header {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: start;
  gap: 6px;
}

.workflow-test-timeline-component-icon { width: 16px; height: 16px; color: #9bcbef; }
.workflow-test-timeline-component-icon svg { width: 16px; height: 16px; stroke-width: 1.8; }
.workflow-test-timeline-entry article > header > div { min-width: 0; display: grid; gap: 2px; }
.workflow-test-timeline-type { color: var(--muted); font-size: 9px; font-weight: 700; line-height: 1.15; text-transform: uppercase; }
.workflow-test-timeline-entry article strong { overflow: hidden; font-size: 10px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.workflow-test-timeline-entry-status { color: currentColor; background: rgb(0 0 0 / 15%); }
.workflow-test-timeline-entry-success .workflow-test-timeline-entry-status { color: #7ddf9a; }
.workflow-test-timeline-entry-error .workflow-test-timeline-entry-status { color: #ff9b9b; }

.workflow-test-timeline-output {
  margin-top: 8px;
  border-top: 1px solid rgb(255 255 255 / 7%);
}

.workflow-test-timeline-output summary {
  padding-top: 7px;
  color: #a9ccea;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.workflow-test-timeline-output pre,
.workflow-test-timeline-error pre {
  max-height: 230px;
  margin: 7px 0 0;
  padding: 8px;
  overflow: auto;
  border-radius: 6px;
  background: #121213;
  color: #b8d8f2;
  font-family: "Roboto Mono", Consolas, monospace;
  font-size: 10px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.workflow-test-timeline-error {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgb(255 139 139 / 18%);
}

.workflow-test-timeline-error strong { color: #ffaaaa; font-size: 10px; }
.workflow-test-timeline-error pre { color: #ffc4c4; background: rgb(114 30 30 / 18%); }

#workflow-modal-backdrop .workflow-modal .modal-actions {
  flex: 0 0 auto;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

#workflow-modal-backdrop .workflow-modal .modal-actions .button { padding: 7px 11px; }

#workflow-modal-backdrop .workflow-timeline {
  --workflow-timeline-card-width: 122px;
  --workflow-timeline-card-height: 76px;
  --workflow-timeline-gap: 8px;
  --workflow-timeline-connector-extension: -8px;

  min-height: 86px;
  padding: 8px 2px 16px;
}

#workflow-modal-backdrop .workflow-timeline-card,
#workflow-modal-backdrop .workflow-timeline-add { min-height: var(--workflow-timeline-card-height); }
#workflow-modal-backdrop .workflow-timeline-card,
#workflow-modal-backdrop .workflow-timeline-start { padding: 7px 8px; border-radius: 8px; }
#workflow-modal-backdrop .workflow-timeline-card-top { min-height: 17px; }
#workflow-modal-backdrop .workflow-timeline-card strong,
#workflow-modal-backdrop .workflow-timeline-start strong { font-size: 11px; }
#workflow-modal-backdrop .workflow-timeline-type,
#workflow-modal-backdrop .workflow-timeline-start > div > span { font-size: 8px; }
#workflow-modal-backdrop .workflow-timeline-start small,
#workflow-modal-backdrop .workflow-timeline-add small { font-size: 9px; }
#workflow-modal-backdrop .workflow-timeline-card-icon,
#workflow-modal-backdrop .workflow-timeline-start-icon,
#workflow-modal-backdrop .workflow-timeline-card-icon svg,
#workflow-modal-backdrop .workflow-timeline-start-icon svg { width: 17px; height: 17px; }
#workflow-modal-backdrop .workflow-timeline-order { width: 18px; height: 18px; font-size: 8px; }
#workflow-modal-backdrop .workflow-timeline-add { min-width: 68px; }
#workflow-modal-backdrop .workflow-timeline-add span { font-size: 21px; }

#workflow-modal-backdrop .workflow-loop-children,
#workflow-modal-backdrop .workflow-if-branches { margin-top: 9px; border-radius: 9px; }
#workflow-modal-backdrop .workflow-loop-children { margin-left: 15px; padding: 6px 10px 7px 25px; }
#workflow-modal-backdrop .workflow-if-branches { margin-left: 10px; padding: 7px 9px 8px 24px; }
#workflow-modal-backdrop .workflow-loop-children::before { left: 39px; }
#workflow-modal-backdrop .workflow-loop-children::after { left: 35px; }
#workflow-modal-backdrop .workflow-if-branches::before { left: 38px; }
#workflow-modal-backdrop .workflow-if-branches::after { left: 34px; }
#workflow-modal-backdrop .workflow-if-branch-list { gap: 5px; margin-top: 0; }
#workflow-modal-backdrop .workflow-if-branch { padding: 6px 8px 8px 18px; border-radius: 7px; }
#workflow-modal-backdrop .workflow-if-branch::before { top: 20px; left: -16px; width: 14px; }
#workflow-modal-backdrop .workflow-if-branch > header { gap: 6px; margin-bottom: 3px; }
#workflow-modal-backdrop .workflow-if-branch > header span { font-size: 9px; }
#workflow-modal-backdrop .workflow-if-branch > header small { font-size: 8px; }
#workflow-modal-backdrop .workflow-loop-children .workflow-timeline,
#workflow-modal-backdrop .workflow-if-branch .workflow-timeline {
  --workflow-timeline-card-width: 108px;
  --workflow-timeline-card-height: 66px;

  min-height: 74px;
  margin-top: 0;
  padding: 2px 0 0;
}

.workflow-timeline-viewport {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  border: 1px solid #39393b;
  border-radius: 12px;
  background-color: #171718;
  background-image:
    linear-gradient(rgb(255 255 255 / 2.4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 2.4%) 1px, transparent 1px),
    radial-gradient(circle at 18% 0, rgb(229 72 77 / 7%), transparent 32%);
  background-size: 24px 24px, 24px 24px, auto;
  box-shadow: inset 0 1px rgb(255 255 255 / 3%), inset 0 0 48px rgb(0 0 0 / 22%);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.workflow-timeline-viewport.is-panning { cursor: grabbing; }

.workflow-timeline-viewport:focus-visible {
  outline: 2px solid rgb(229 72 77 / 72%);
  outline-offset: 2px;
}

.workflow-timeline-canvas {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: max-content;
  min-width: max-content;
  will-change: left, top, zoom;
}

.workflow-timeline-canvas > .workflow-timeline {
  min-width: max-content;
  overflow: visible;
}

.workflow-timeline-viewport .workflow-timeline-card,
.workflow-timeline-viewport .workflow-timeline-add { user-select: none; }

.workflow-timeline-empty {
  align-items: center;
  min-height: 92px !important;
}

.workflow-timeline-empty p {
  max-width: 180px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.workflow-component-order {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: var(--accent);
  background: rgb(68 171 255 / 14%);
  font-size: 11px;
  font-weight: 700;
}

.workflow-component-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgb(255 255 255 / 2%);
}

.workflow-component-wide,
.workflow-component-editor-actions { grid-column: 1 / -1; }

.workflow-component-editor textarea { min-height: 88px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.workflow-component-modal { width: min(660px, 100%); }
.workflow-component-modal #workflow-component-fields { display: grid; gap: 14px; }

.workflow-component-modal-description {
  max-width: 560px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.workflow-component-picker-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.workflow-component-picker-options button {
  min-height: 104px;
  padding: 15px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface);
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.workflow-component-picker-options button:hover,
.workflow-component-picker-options button:focus-visible {
  border-color: var(--workflow-component-color, var(--accent));
  outline: 0;
  background: color-mix(in srgb, var(--workflow-component-color, var(--accent)) 11%, var(--surface));
  box-shadow: 0 8px 20px rgb(0 0 0 / 18%);
  transform: translateY(-2px);
}

.workflow-component-option-icon {
  grid-row: 1 / -1;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--workflow-component-color, var(--accent)) 40%, transparent);
  border-radius: 10px;
  color: var(--workflow-component-color, var(--accent));
  background: color-mix(in srgb, var(--workflow-component-color, var(--accent)) 13%, transparent);
}

.workflow-component-option-icon svg { width: 20px; height: 20px; stroke-width: 1.8; }
.workflow-component-picker-options strong { align-self: end; font-size: 14px; }
.workflow-component-picker-options .workflow-component-option-description { align-self: start; color: var(--muted); font-size: 12px; line-height: 1.35; }
.workflow-component-picker-options button[data-workflow-component-select="script"] { --workflow-component-color: #9bcbef; }
.workflow-component-picker-options button[data-workflow-component-select="http_request"] { --workflow-component-color: #c6a4e9; }
.workflow-component-picker-options button[data-workflow-component-select="email_sender"] { --workflow-component-color: #efb76f; }
.workflow-component-picker-options button[data-workflow-component-select="loop"] { --workflow-component-color: #82c8a4; }
.workflow-component-picker-options button[data-workflow-component-select="if"] { --workflow-component-color: #df9fc1; }
.workflow-component-picker-options button[data-workflow-component-select="restgo_backup"] { --workflow-component-color: #8fbce8; }
.workflow-component-picker-options button[data-workflow-component-select="google_drive_backup"] { --workflow-component-color: #7cc9a7; }

#workflow-component-picker-backdrop .workflow-component-picker-modal { width: min(640px, 100%); }

#workflow-component-backdrop { padding: 0; }

#workflow-component-backdrop .workflow-component-modal {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  padding: 0;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  border: 0;
  border-radius: 0;
}

#workflow-component-backdrop .modal-header {
  margin: 0;
  padding: 12px 26px;
  flex: 0 0 auto;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

#workflow-component-backdrop #workflow-component-form {
  min-height: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
}

#workflow-component-backdrop #workflow-component-fields {
  min-height: 0;
  padding: 0;
  display: flex;
  flex: 1;
  overflow: hidden;
}

#workflow-component-backdrop .modal-actions {
  margin: 0;
  padding: 8px 32px;
  flex: 0 0 auto;
  gap: 6px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

#workflow-component-backdrop .modal-actions .button {
  padding: 6px 10px;
}

.workflow-component-workspace {
  width: 100%;
  height: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(245px, 1fr) minmax(440px, 1.55fr) minmax(245px, 1fr);
  align-items: stretch;
  gap: 0;
  min-height: 0;
  overflow: hidden;
  background: #242424;
}

.workflow-editor-section {
  min-width: 0;
  min-height: 0;
  padding: 22px 20px;
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  background: #242424;
}

.workflow-settings-section {
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #292929;
}

.workflow-node-pane-heading {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.workflow-node-pane-heading > span {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}

.workflow-node-pane-heading h3 {
  margin: 0 0 7px;
  color: var(--text);
  font-size: 15px;
}

.workflow-node-pane-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.workflow-editor-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.workflow-editor-section-heading > span {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.workflow-editor-section-heading h3 {
  margin: 1px 0 4px;
  color: var(--text);
  font-size: 15px;
}

.workflow-editor-section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.workflow-available-list {
  margin-top: 15px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.workflow-preview-fields {
  margin-top: 16px;
  padding-top: 0;
  display: grid;
  gap: 8px;
}

.workflow-preview-fields > strong {
  color: var(--text);
  font-size: 12px;
}

.workflow-preview-tree {
  display: grid;
  gap: 4px;
}

.workflow-preview-tree-action {
  min-width: 0;
}

.workflow-preview-tree-action > summary {
  min-width: 0;
  padding: 4px 2px;
  display: grid;
  grid-template-columns: 10px 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  list-style: none;
}

.workflow-preview-tree-action > summary::-webkit-details-marker { display: none; }

.workflow-preview-tree-chevron::before {
  display: block;
  color: var(--muted);
  content: '›';
  font-size: 17px;
  line-height: 12px;
  transition: transform .15s ease;
}

.workflow-preview-tree-action[open] > summary .workflow-preview-tree-chevron::before { transform: rotate(90deg); }

.workflow-preview-tree-action > summary strong {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.workflow-preview-tree-action > summary strong > span:first-child {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-preview-tree-action-type {
  flex: 0 1 auto;
  overflow: hidden;
  color: var(--faint);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-preview-tree-action > summary small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-preview-tree-children {
  margin: 1px 0 1px 11px;
  padding-left: 11px;
  display: grid;
  gap: 2px;
  border-left: 1px solid var(--line);
}

.workflow-preview-tree-node { min-width: 0; }

.workflow-preview-tree-value {
  width: 100%;
  min-width: 0;
  padding: 4px 3px;
  display: grid;
  grid-template-columns: 22px minmax(56px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 4px;
  color: var(--text);
  background: transparent;
  cursor: grab;
  text-align: left;
}

.workflow-preview-tree-value:active { cursor: grabbing; }

.workflow-preview-tree-value-readonly { cursor: default; }
.workflow-preview-tree-value-unavailable { opacity: .55; }

.workflow-preview-tree-value:hover,
.workflow-preview-tree-value:focus-visible,
.workflow-preview-tree-value.selected {
  outline: 0;
  background: var(--accent-dark);
}

.workflow-preview-tree-value-readonly:hover { background: transparent; }

.workflow-output-preview {
  margin-top: 15px;
  padding-top: 0;
  border-top: 0;
}

.workflow-output-error {
  margin-top: 15px;
  padding: 10px;
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #151515;
}

.workflow-output-error strong { color: var(--text); font-size: 12px; }

.workflow-output-info {
  margin-top: 15px;
  padding: 10px;
  display: grid;
  gap: 7px;
  border: 1px solid rgb(128 184 232 / 45%);
  border-radius: 6px;
  background: rgb(128 184 232 / 8%);
}

.workflow-output-info strong { color: var(--text); font-size: 12px; }
.workflow-output-info p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }

.workflow-output-error pre {
  margin: 0;
  overflow-wrap: anywhere;
  color: #f0b8bc;
  font: 11px/1.45 "JetBrains Mono Code", "JetBrains Mono", monospace;
  white-space: pre-wrap;
}

.workflow-preview-tree-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  font-weight: 700;
}

.workflow-preview-tree-icon-object { color: #c6a4e9; }
.workflow-preview-tree-icon-array { color: #80b8e8; }
.workflow-preview-tree-icon-text { color: #d8b57a; }
.workflow-preview-tree-icon-number { color: #83c7a4; }
.workflow-preview-tree-icon-boolean { color: #8fbce8; }
.workflow-preview-tree-icon-null { color: var(--faint); }
.workflow-preview-tree-action-icon svg { width: 12px; height: 12px; stroke-width: 1.8; }
.workflow-preview-tree-action-icon-inicial { color: #9bcbef; }
.workflow-preview-tree-action-icon-script { color: #9bcbef; }
.workflow-preview-tree-action-icon-http_request { color: #c6a4e9; }
.workflow-preview-tree-action-icon-email_sender { color: #efb76f; }
.workflow-preview-tree-action-icon-loop { color: #82c8a4; }
.workflow-preview-tree-action-icon-if { color: #df9fc1; }
.workflow-preview-tree-action-icon-restgo_backup { color: #8fbce8; }
.workflow-preview-tree-action-icon-google_drive_backup { color: #7cc9a7; }

.workflow-preview-tree-value code {
  overflow: hidden;
  color: #f2b5b7;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-preview-tree-value > span:last-child {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-preview-tree-empty {
  padding: 4px 3px;
  color: var(--muted);
  font-size: 11px;
}

.workflow-preview-empty {
  margin: 16px 0 0;
  padding-top: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.workflow-available-token,
.workflow-output-token {
  min-width: 0;
  padding: 10px;
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.workflow-available-token {
  width: 100%;
  color: var(--text);
  cursor: grab;
  text-align: left;
}

.workflow-available-token:active { cursor: grabbing; }

.workflow-available-token:hover,
.workflow-available-token:focus-visible,
.workflow-available-token.selected {
  border-color: var(--accent);
  outline: 0;
  background: var(--accent-dark);
}

.workflow-available-token code,
.workflow-output-token code {
  overflow: hidden;
  color: #f2b5b7;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-available-token span,
.workflow-output-token span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.workflow-settings-section .workflow-component-editor {
  margin-top: 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.workflow-script-database {
  grid-column: auto;
  width: 100%;
  height: 36px;
  align-self: start;
  margin-top: 21px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  outline: 0;
  color: var(--text);
  background: #151515;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  font-weight: 600;
}

.workflow-script-database:focus { border-color: var(--accent); }

.workflow-script-editor {
  flex: 1;
  min-height: 0;
  grid-template-columns: minmax(0, 1.45fr) minmax(170px, .75fr);
  grid-template-rows: auto minmax(0, 1fr);
}

.workflow-script-action-name { grid-column: auto; }
.workflow-script-action-name > input { height: 36px; }

.workflow-script-settings-section {
  display: flex;
  flex-direction: column;
}

.workflow-script-editor .workflow-component-wide {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.workflow-script-editor textarea[name="script"] {
  min-height: 130px;
  flex: 1;
}

.workflow-drop-target {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 2px rgb(229 72 77 / 22%);
}

.workflow-template-field {
  min-width: 0;
  display: grid;
  overflow: hidden;
  border-radius: 5px;
  background: #151515;
}

.workflow-template-field > .workflow-template-source,
.workflow-template-highlight {
  grid-area: 1 / 1;
  min-width: 0;
}

.workflow-template-highlight {
  z-index: 0;
  overflow: hidden;
  color: var(--text);
  pointer-events: none;
}

.workflow-template-token { color: #6bd596; }

.workflow-template-source {
  z-index: 1;
  color: transparent !important;
  background: transparent !important;
  caret-color: var(--text);
}

.workflow-template-source::placeholder { color: var(--muted); }

.workflow-drop-caret-mirror {
  position: fixed;
  z-index: -1;
  box-sizing: border-box;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

.workflow-drop-caret-marker {
  width: 0;
  height: 1em;
  display: inline-block;
}

.workflow-script-editor .workflow-template-field {
  flex: 1;
  min-height: 0;
}

.workflow-script-editor .workflow-template-textarea {
  min-height: 130px;
}

.workflow-script-editor .workflow-template-textarea > textarea {
  height: 100%;
  min-height: 0;
  resize: none;
}

@media (max-width: 980px) {
  #workflow-component-backdrop #workflow-component-fields { overflow: auto; }
  .workflow-component-workspace { height: auto; grid-template-columns: 1fr; }
  .workflow-editor-section { overflow: visible; }
  .workflow-settings-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-right: 0; border-left: 0; }
}

.workflow-component-type-picker {
  display: grid;
  gap: 8px;
}

.workflow-component-type-picker > span {
  color: var(--muted);
  font-size: 12px;
}

.workflow-component-type-picker > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.workflow-component-type-picker button {
  min-height: 66px;
  padding: 10px;
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  background: var(--surface);
  text-align: left;
}

.workflow-component-type-picker button:hover,
.workflow-component-type-picker button:focus-visible {
  border-color: var(--accent);
  outline: 0;
}

.workflow-component-type-picker button.active {
  border-color: var(--accent);
  background: var(--accent-dark);
}

.workflow-component-type-picker button strong { font-size: 12px; }
.workflow-component-type-picker button small { color: var(--muted); font-size: 11px; line-height: 1.25; }
.workflow-component-type-picker button.active small { color: #e9b9bc; }

.workflow-smtp-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgb(255 255 255 / 2%);
}

.workflow-smtp-fields > strong { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }

@media (max-width: 800px) {
  .workflow-timeline { gap: 10px; }
  .workflow-modal-workspace.has-test-timeline { grid-template-columns: minmax(0, 1fr) 280px; gap: 10px; }
}

@media (max-width: 680px) {
  .workflow-modal-workspace.has-test-timeline {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(260px, 1fr) minmax(220px, .72fr);
    gap: 10px;
  }
  .workflow-test-timeline-header { padding: 12px; }
  .workflow-test-timeline-summary { padding: 8px 12px; }
  .workflow-test-timeline-list { padding: 10px 11px 14px; }
}

@media (max-width: 560px) {
  .workflow-component-editor { grid-template-columns: 1fr; }
  .workflow-script-database { margin-top: 0; }
  .workflow-components-list li { flex-wrap: wrap; }
  .workflow-components-list .row-actions { width: 100%; margin-left: 0; }
  .workflow-timeline {
    --workflow-timeline-card-width: 128px;
    --workflow-timeline-card-height: 88px;
    --workflow-timeline-gap: 8px;
    --workflow-timeline-connector-extension: -8px;

    gap: var(--workflow-timeline-gap);
    padding: 10px 2px 20px;
  }
  .workflow-timeline-card { min-width: var(--workflow-timeline-card-width); }
  .workflow-timeline-start { min-width: var(--workflow-timeline-card-width); }
  .workflow-loop-children { margin-left: 10px; padding: 9px 10px 10px 25px; }
  .workflow-loop-children::before { left: 40px; }
  .workflow-loop-children::after { left: 36px; }
  .workflow-if-branches { margin-left: 8px; padding: 9px 9px 10px 23px; }
  .workflow-if-branches::before { left: 39px; }
  .workflow-if-branches::after { left: 35px; }
  .workflow-if-branch { padding: 8px 9px 9px 20px; }
  .workflow-if-branch::before { left: -16px; width: 14px; }
  .workflow-loop-children .workflow-timeline,
  .workflow-if-branch .workflow-timeline { --workflow-timeline-card-width: 118px; --workflow-timeline-card-height: 78px; }
  .workflow-component-picker-options,
  .workflow-available-list { grid-template-columns: 1fr; }
  #workflow-component-backdrop .modal-header,
  #workflow-component-backdrop #workflow-component-fields,
  #workflow-component-backdrop .modal-actions { padding-right: 16px; padding-left: 16px; }
  .workflow-editor-section { padding: 14px; }
  .workflow-component-type-picker > div { grid-template-columns: 1fr; }
  .workflow-smtp-fields { grid-template-columns: 1fr; }
}


/* =========================================================
   SEARCH
   ========================================================= */

.search {
  width: 220px;

  padding: 8px 10px;

  display: flex;
  align-items: center;

  gap: 8px;

  border: 1px solid var(--line);
  border-radius: 5px;

  color: var(--faint);

  background: #151515;
}

.search:focus-within {
  border-color: var(--accent);
}

.search-icon {
  width: 16px;
  height: 16px;

  min-width: 16px;

  flex: 0 0 16px;

  color: var(--faint);

  stroke-width: 1.8;
}

.search:focus-within .search-icon {
  color: var(--accent);
}

.search input {
  width: 100%;

  border: 0;

  outline: 0;

  color: var(--text);

  background: transparent;

  font-size: 12px;
}


/* =========================================================
   TABLE
   ========================================================= */

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;

  min-width: 680px;

  border-collapse: collapse;
}

th {
  padding: 12px 22px;

  color: var(--faint);

  font-size: 10px;

  letter-spacing: 1.2px;

  text-align: left;
  text-transform: uppercase;
}

td {
  padding: 15px 22px;

  border-top: 1px solid #363636;

  color: var(--muted);
}

tr:hover td {
  color: var(--text);

  background: #252525;
}

.cell-primary {
  color: var(--text);

  font-weight: 600;
}

.cell-mono {
  color: #c0c0c0;

  font-family: "JetBrains Mono";

  font-size: 12px;
}


/* =========================================================
   MÉTODO HTTP
   ========================================================= */

.method {
  min-width: 34px;

  padding: 4px 7px;

  display: inline-block;

  border-radius: 4px;

  color: var(--accent);

  background: var(--accent-dark);

  font-family: "JetBrains Mono";
  font-size: 11px;

  text-align: center;
}

.endpoint-method-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}


/* =========================================================
   ENDPOINT
   ========================================================= */

.endpoint-preview {
  max-width: 310px;

  display: block;
  min-width: 0;
  flex: 1 1 auto;

  overflow: hidden;

  color: var(--accent);

  font-family: "JetBrains Mono";
  font-size: 12px;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.endpoint-preview:hover {
  color: #f46a70;

  text-decoration: underline;
}

.endpoint-preview-cell {
  display: flex;
  align-items: center;
  gap: 7px;
}

.copy-url-button {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 28px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}

.copy-url-button:hover,
.copy-url-button:focus-visible {
  border-color: var(--line);
  outline: 0;
  color: var(--accent);
  background: var(--surface-raised);
}

.copy-url-button.copied {
  border-color: #6f2d32;
  color: var(--accent);
  background: var(--accent-dark);
}

.copy-url-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.storage-download-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}


/* =========================================================
   LOGS
   ========================================================= */

.log-code {
  padding: 3px 6px;

  display: inline-block;

  border: 1px solid var(--line);
  border-radius: 4px;

  color: var(--accent);

  font: 11px "JetBrains Mono";
}

.log-meta {
  margin-bottom: 18px;

  display: grid;
  grid-template-columns: repeat(2, 1fr);

  gap: 12px;
}

.log-meta div {
  padding: 11px;

  display: grid;

  gap: 5px;

  border: 1px solid var(--line);
  border-radius: 5px;

  background: #292929;
}

.log-meta span {
  color: var(--faint);

  font-size: 10px;

  text-transform: uppercase;

  letter-spacing: 1px;
}

.log-meta strong {
  overflow: hidden;

  color: var(--text);

  font: 12px "JetBrains Mono";

  text-overflow: ellipsis;
  white-space: nowrap;
}

.log-modal-details {
  max-height: 48vh;

  overflow: auto;

  margin: 0;

  padding: 15px;

  border: 1px solid var(--line);
  border-radius: 5px;

  color: #c0c0c0;

  background: #151515;

  font: 11px/1.5 "JetBrains Mono";

  white-space: pre-wrap;
}


/* =========================================================
   MODELO DE E-MAIL
   ========================================================= */

.email-template-panel {
  overflow: hidden;

  border: 1px solid var(--line);
  border-radius: 8px;

  background: var(--surface);
}

.email-template-heading {
  padding: 15px 17px;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 18px;

  border-bottom: 1px solid var(--line);
}

.email-template-heading p:last-child {
  margin-top: 5px;

  color: var(--muted);

  font-size: 12px;
}

.email-template-panel > form > .field {
  max-width: 360px;
  margin: 17px 17px 0;
}

.email-template-status {
  max-width: 260px;

  color: var(--faint);

  font-size: 11px;
  line-height: 1.45;
  text-align: right;
}

.email-template-grid {
  display: grid;
  grid-template-columns: minmax(300px, .95fr) minmax(360px, 1.05fr);

  gap: 1px;

  background: var(--line);
}

.email-template-editor,
.email-template-preview-wrap {
  padding: 17px;

  background: var(--surface);
}

.email-template-editor {
  display: grid;

  gap: 15px;
  align-content: start;
}

#email-template-html {
  min-height: 345px;
}

.email-template-variables {
  padding: 12px;

  border: 1px solid var(--line);
  border-radius: 5px;

  background: #1b1b1b;
}

.email-template-variables > span {
  display: block;

  color: var(--faint);

  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.email-template-variables ul {
  margin: 10px 0 0;
  padding: 0;

  display: grid;

  gap: 8px;

  list-style: none;
}

.email-template-variables li {
  display: flex;
  align-items: baseline;

  gap: 9px;
}

.email-template-variables code {
  white-space: nowrap;
}

.email-template-variables small {
  color: var(--muted);

  font-size: 11px;
}

.email-template-actions {
  padding-top: 18px;

  display: flex;
  justify-content: flex-end;

  gap: 9px;

  border-top: 1px solid var(--line);
}

.email-template-actions .button:disabled {
  cursor: wait;
  opacity: .7;
}

.email-template-preview-wrap {
  min-width: 0;
}

.email-template-preview-heading {
  margin-bottom: 13px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  color: var(--muted);

  font-size: 12px;
  font-weight: 600;
}

.email-template-preview-heading small {
  color: var(--faint);

  font-size: 11px;
  font-weight: 400;
}

.email-template-preview {
  width: 100%;
  min-height: 500px;

  display: block;

  border: 1px solid var(--line);
  border-radius: 5px;

  background: #fff;
}


/* =========================================================
   BACKUP ADMINISTRATIVO
   ========================================================= */

.backup-panel {
  overflow: hidden;

  border: 1px solid var(--line);
  border-radius: 8px;

  background: var(--surface);
}

.backup-heading {
  padding: 17px;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 18px;

  border-bottom: 1px solid var(--line);
}

.backup-heading h2 {
  margin-top: 5px;
}

.backup-heading p:last-child {
  max-width: 720px;
  margin-top: 5px;

  color: var(--muted);

  font-size: 12px;
  line-height: 1.5;
}

.backup-heading .button:disabled {
  cursor: wait;
  opacity: .7;
}

.backup-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.backup-target {
  display: flex;
  align-items: center;
  gap: 8px;

  color: var(--muted);

  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.backup-target select {
  width: 196px;
  min-height: 36px;
  padding: 7px 10px;

  border: 1px solid var(--line);
  border-radius: 5px;
  outline: 0;

  color: var(--text);
  background: #151515;
  color-scheme: dark;

  font-size: 12px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}

.backup-target select:hover {
  border-color: #525252;
  background: var(--surface-raised);
}

.backup-target select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgb(229 72 77 / 18%);
}

.backup-target select option {
  color: var(--text);
  background: #151515;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.backup-warning {
  margin: 17px;
  padding: 11px 12px;

  border: 1px solid #713238;
  border-radius: 5px;

  color: #f0a2a8;
  background: #28191b;

  font-size: 12px;
  line-height: 1.5;
}


/* =========================================================
   TESTE DE ENDPOINT
   ========================================================= */

.test-panel {
  overflow: hidden;

  border: 1px solid var(--line);
  border-radius: 8px;

  background: var(--surface);
}

.test-heading {
  padding: 15px 17px;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  border-bottom: 1px solid var(--line);
}

.test-heading p:last-child {
  margin-top: 5px;

  color: var(--muted);

  font-size: 12px;
}

.test-grid {
  display: grid;
  grid-template-columns:
    minmax(280px, .8fr)
    minmax(360px, 1.2fr);

  gap: 1px;

  background: var(--line);
}

.test-form,
.response-panel {
  padding: 17px;

  background: var(--surface);
}

.test-form {
  display: grid;

  gap: 15px;

  align-content: start;
}

.test-form .button {
  margin-top: 4px;
}

.route-preview {
  padding: 10px 11px;

  overflow: hidden;

  border: 1px dashed #713238;
  border-radius: 5px;

  color: var(--accent);

  background: #28191b;

  font-family: "JetBrains Mono";
  font-size: 12px;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.response-panel {
  min-height: 300px;
}

.response-heading {
  margin-bottom: 13px;

  display: flex;
  justify-content: space-between;

  color: var(--muted);

  font-size: 12px;
  font-weight: 600;
}

#response-status {
  color: var(--faint);

  font-family: "JetBrains Mono";

  font-weight: 400;
}

#test-response {
  min-height: 240px;

  margin: 0;

  padding: 16px;

  overflow: auto;

  border: 1px solid var(--line);
  border-radius: 5px;

  color: #eea6ac;

  background: #121212;

  font: 12px/1.65 "JetBrains Mono";

  white-space: pre-wrap;
}


/* =========================================================
   AÇÕES
   ========================================================= */

.row-actions {
  display: flex;
  justify-content: flex-end;

  gap: 6px;
}

.state-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #514044;
  cursor: pointer;
}

.state-toggle-track {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 3px;
  border-radius: inherit;
}

.state-toggle-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #b5a9ab;
  transition: transform .16s ease, background .16s ease;
}

.state-toggle.active { background: var(--accent); }
.state-toggle.active .state-toggle-thumb { transform: translateX(12px); background: #fff; }
.state-toggle:hover { filter: brightness(1.12); }
.state-toggle:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

.workflow-state-heading,
.workflow-state-cell {
  width: 1%;
  white-space: nowrap;
}

.icon-button {
  padding: 5px 8px;

  border: 1px solid transparent;
  border-radius: 4px;

  color: var(--muted);

  background: transparent;
}

.icon-button:hover {
  border-color: var(--line);

  color: var(--text);

  background: var(--surface-raised);
}

.icon-button.delete:hover {
  color: var(--danger);
}

.workflow-actions-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: auto;
  height: 30px;
  margin-left: auto;
  padding: 5px 8px;
}

.workflow-actions-button svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.8;
}


/* =========================================================
   TOKEN DE API EXIBIDO UMA ÚNICA VEZ
   ========================================================= */

.api-token-modal {
  max-width: 680px;
}

.api-token-value-wrap {
  padding: 18px 22px;
}

.api-token-value-wrap p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.api-token-value {
  min-height: 72px;
  margin-bottom: 14px;
  padding: 12px;
  display: block;
  overflow-wrap: anywhere;
  border: 1px solid #6f2d32;
  border-radius: 6px;
  color: #ffd4d6;
  background: #261719;
  font-size: 12px;
  line-height: 1.55;
  user-select: all;
}


/* =========================================================
   PROVISIONAMENTO DE DATABASE INTERNO
   ========================================================= */

.database-provision-modal,
.database-credentials-modal {
  max-width: 680px;
}

.database-provision-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.database-provision-description-field {
  grid-column: 1 / -1;
}

.database-provision-hint {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.database-provision-hint + .database-provision-hint {
  margin-top: 5px;
}

.database-credentials-content {
  display: grid;
  gap: 14px;
}

.database-credentials-warning {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #6f2d32;
  border-radius: 6px;
  color: #ffd4d6;
  background: #261719;
  font-size: 13px;
  line-height: 1.5;
}

.database-credentials-connection-warning {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgb(255 185 104 / 45%);
  border-radius: 6px;
  color: #ffdcaa;
  background: rgb(79 50 24 / 44%);
  font-size: 12px;
  line-height: 1.5;
}

.database-credentials-details {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.database-credentials-details > div,
.database-credentials-password {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #151515;
}

.database-credentials-details dt,
.database-credentials-password > span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.database-credentials-details dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font: 12px/1.45 "JetBrains Mono", monospace;
}

.database-credentials-password {
  border-color: #6f2d32;
  background: #261719;
}

.database-credentials-password code {
  min-height: 42px;
  margin-top: 7px;
  display: block;
  overflow-wrap: anywhere;
  color: #ffd4d6;
  font: 12px/1.55 "JetBrains Mono", monospace;
  user-select: all;
}

.database-credentials-password code:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 560px) {
  .database-provision-fields,
  .database-credentials-details {
    grid-template-columns: 1fr;
  }

  .database-provision-description-field {
    grid-column: auto;
  }
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.empty-state {
  padding: 70px 20px;

  color: var(--muted);

  text-align: center;
}

.empty-icon {
  margin-bottom: 13px;

  display: block;

  color: var(--accent);

  font-size: 25px;
}

.empty-state strong {
  color: var(--text);
}

.empty-state p {
  margin-top: 7px;

  font-size: 12px;
}


/* =========================================================
   NOTICES
   ========================================================= */

.notice {
  position: fixed;
  z-index: 1000;
  top: 20px;
  left: 50%;

  width: min(520px, calc(100vw - 32px));
  margin: 0;

  padding: 12px 16px;

  display: flex;
  align-items: center;
  gap: 10px;

  border: 1px solid #634247;
  border-radius: 7px;

  color: #ffc7c9;

  background: #29191b;

  box-shadow: 0 14px 36px rgba(0, 0, 0, .4);

  transform: translateX(-50%);

  animation: toast-enter .2s ease-out;
}

.notice::before {
  width: 20px;
  height: 20px;

  display: grid;
  place-items: center;
  flex: 0 0 20px;

  border: 1px solid var(--line);
  border-radius: 50%;

  content: "!";

  font-size: 11px;
  font-weight: 700;
}

.notice.success {
  border-color: #2f7d4c;

  color: #b9f6cc;

  background: #14261b;
}

.notice.success::before {
  border-color: #3f9f5f;
  color: #b9f6cc;
  background: #1c3a27;

  content: "✓";
}

.notice.leaving {
  pointer-events: none;
  animation: toast-leave .18s ease-in forwards;
}

@keyframes toast-enter {
  from {
    opacity: 0;
    transform: translate(-50%, -10px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes toast-leave {
  from {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  to {
    opacity: 0;
    transform: translate(-50%, -8px);
  }
}

.hidden {
  display: none !important;
}


/* =========================================================
   MODAIS
   ========================================================= */

.modal-backdrop {
  position: fixed;

  inset: 0;

  z-index: 10;

  padding: 20px;

  display: grid;
  place-items: center;

  background: rgba(2, 5, 8, .78);

  backdrop-filter: blur(4px);
}

.modal {
  width: min(560px, 100%);

  max-height: 90vh;

  overflow: auto;

  padding: 25px;

  border: 1px solid #444444;
  border-radius: 8px;

  background: #222222;
}

.modal:has(.link-test-panel:not(.hidden)) {
  width: min(760px, 100%);
}

.settings-modal {
  width: min(820px, 100%);
  padding: 0;
  overflow: auto;
  border-color: #3d3d3d;
  background: #202020;
}

.settings-modal-header {
  min-height: 82px;
  padding: 21px 25px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.settings-modal-header .eyebrow { margin-bottom: 7px; }

.settings-modal-layout {
  min-height: 385px;
  display: grid;
  grid-template-columns: 202px minmax(0, 1fr);
}

.settings-menu {
  padding: 20px 12px;
  border-right: 1px solid var(--line);
  background: #1b1b1b;
}

.settings-menu > p {
  margin: 0 9px 10px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.25px;
  text-transform: uppercase;
}

.settings-menu-item {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  border: 1px solid #6f2d32;
  border-radius: 6px;
  color: var(--text);
  background: #29191b;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
}

.settings-menu-google-icon {
  width: 22px;
  height: 22px;
  display: grid;
  flex: 0 0 22px;
  place-items: center;
  border-radius: 5px;
  color: #fff;
  background: linear-gradient(135deg, #4285f4 0 42%, #34a853 42% 63%, #fbbc05 63% 78%, #ea4335 78%);
  font-size: 12px;
  font-weight: 800;
}

.settings-content {
  padding: 34px;
  display: grid;
  align-content: start;
  gap: 28px;
}

.settings-content-heading {
  display: flex;
  align-items: center;
  gap: 15px;
}

.settings-content-heading h3 {
  margin: 0 0 5px;
  color: var(--text);
  font-size: 18px;
}

.settings-content-heading p {
  max-width: 430px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.settings-google-drive-mark {
  width: 44px;
  height: 44px;
  position: relative;
  display: block;
  flex: 0 0 44px;
}

.settings-google-drive-mark i {
  position: absolute;
  width: 13px;
  height: 34px;
  display: block;
  border-radius: 3px;
  transform-origin: center;
}

.settings-google-drive-mark i:nth-child(1) { top: 4px; left: 10px; background: #0f9d58; transform: rotate(30deg); }
.settings-google-drive-mark i:nth-child(2) { top: 4px; right: 10px; background: #4285f4; transform: rotate(-30deg); }
.settings-google-drive-mark i:nth-child(3) { right: 15px; bottom: 1px; background: #fbbc04; transform: rotate(90deg); }

.settings-connection-card {
  padding: 21px;
  display: grid;
  gap: 10px;
  border: 1px solid #3c3c3c;
  border-radius: 8px;
  background: #1b1b1b;
}

.settings-connection-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #b5bbc1;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .55px;
}

.settings-connection-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7d858d;
}

.settings-connection-status[data-status="connected"] { color: #8ee6b4; }
.settings-connection-status[data-status="connected"] i { background: #50df9e; }
.settings-connection-status[data-status="unavailable"] { color: #ffc886; }
.settings-connection-status[data-status="unavailable"] i { background: #ffb958; }

.settings-connection-card strong { color: var(--text); font-size: 14px; }

.settings-connection-card p {
  max-width: 450px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.settings-connection-card .button {
  width: max-content;
  margin-top: 6px;
}

.settings-connection-card .button:disabled {
  border-color: #454545;
  color: #8b8b8b;
  background: #303030;
  cursor: not-allowed;
}

.settings-connection-actions,
.google-drive-config-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.settings-connection-actions { margin-top: 6px; }

.settings-connection-card .settings-connection-actions .button { margin-top: 0; }

.google-drive-config-form {
  margin-top: 10px;
  padding-top: 20px;
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
}

.google-drive-config-form > p:first-child,
.google-drive-config-hint {
  max-width: 500px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.google-drive-config-hint { color: #d9b77f; }

.google-drive-config-actions { margin-top: 2px; }

.google-drive-config-actions #google-drive-delete-configuration { margin-right: auto; }

/* Garante espaço para a lista dos campos Banco e Endpoint ao criar vínculos. */
.modal:has(#form-fields.link-fields) {
  min-height: min(380px, calc(100vh - 40px));
}

.token-modal {
  width: min(440px, 100%);
}

.modal-header {
  margin-bottom: 24px;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.close-button {
  border: 0;

  color: var(--muted);

  background: transparent;

  font-size: 25px;
  line-height: 18px;
}

.close-button:hover {
  color: var(--text);
}


/* =========================================================
   FORMULÁRIOS
   ========================================================= */

#form-fields {
  display: grid;

  gap: 15px;
}

#form-fields.endpoint-fields {
  display: block;
}

.endpoint-identity-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, .32fr);
  gap: 15px;
}

.endpoint-method-editor {
  margin-top: 15px;
}

.endpoint-method-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-bottom: 14px;
  padding-bottom: 2px;
}

.endpoint-method-tab {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.endpoint-method-tab:hover {
  color: var(--text);
  border-color: var(--muted);
}

.endpoint-method-tab.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #171717;
}

.endpoint-method-script textarea {
  min-height: 130px;
}

.link-test-method-tabs {
  justify-content: flex-end;
  max-width: 100%;
  margin: 0;
}

#form-fields.link-fields {
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) auto;
  align-items: end;
}

#form-fields.link-fields .field-requires-authentication {
  padding-bottom: 11px;
  white-space: nowrap;
}

#form-fields.token-fields {
  grid-template-columns: minmax(160px, 1fr) minmax(155px, .72fr) auto;
  align-items: end;
}

#form-fields.token-fields .field-description {
  grid-column: 1 / -1;
}

#form-fields.token-fields .field-active {
  padding-bottom: 11px;
  white-space: nowrap;
}

#form-fields.recurring-event-fields {
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr);
  align-items: end;
}

#form-fields.recurring-event-fields .recurring-full {
  grid-column: 1 / -1;
}

.recurring-schedule {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .015);
}

.recurring-schedule .field {
  min-width: 0;
}

.recurring-schedule .recurring-timezone {
  min-width: 0;
}

@media (max-width: 560px) {
  .endpoint-identity-fields {
    grid-template-columns: 1fr;
  }

  #form-fields.link-fields {
    grid-template-columns: 1fr;
  }

  #form-fields.token-fields {
    grid-template-columns: 1fr;
  }

  #form-fields.recurring-event-fields {
    grid-template-columns: 1fr;
  }

  #form-fields.token-fields .field-description {
    grid-column: auto;
  }

  #form-fields.recurring-event-fields .recurring-full {
    grid-column: auto;
  }

  #form-fields.link-fields .field-requires-authentication {
    padding-bottom: 0;
  }

  #form-fields.token-fields .field-active {
    padding-bottom: 0;
  }
}

.field {
  display: grid;

  gap: 7px;

  color: var(--muted);

  font-size: 12px;
  font-weight: 600;
}

.link-test-panel {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 15px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.link-test-heading,
.link-test-panel > .route-preview,
.link-test-panel > .link-test-parameters {
  grid-column: 1;
}

.link-test-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.link-test-heading h3 {
  margin: 4px 0 0;
  font-size: 14px;
}

.link-test-parameters {
  display: grid;
  gap: 12px;
}

.link-test-panel > .button {
  grid-column: 1;
  justify-self: start;
}

.link-test-response {
  grid-column: 2;
  grid-row: 2 / span 4;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #151515;
}

.link-test-response pre {
  max-height: 280px;
  margin: 0;
  overflow: auto;
  color: var(--faint);
  font: 12px/1.5 "JetBrains Mono", monospace;
}

.link-test-heading .link-test-method-tabs {
  flex: 1 1 0;
  min-width: 0;
}

@media (max-width: 640px) {
  .link-test-panel {
    grid-template-columns: 1fr;
  }

  .link-test-heading,
  .link-test-panel > .route-preview,
  .link-test-panel > .link-test-parameters,
  .link-test-panel > .button,
  .link-test-response {
    grid-column: auto;
    grid-row: auto;
  }

  .link-test-heading {
    flex-wrap: wrap;
  }

  .link-test-heading .link-test-method-tabs {
    flex-basis: 100%;
  }
}

.field input,
.field textarea,
.field select {
  width: 100%;

  padding: 10px 11px;

  border: 1px solid var(--line);
  border-radius: 5px;

  outline: 0;

  color: var(--text);

  background: #151515;
}

.field textarea {
  min-height: 130px;

  resize: vertical;

  font-family: "JetBrains Mono Code", "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 200;
  font-stretch: condensed;
  font-synthesis: none;
  font-variation-settings: "wght" 200;
  letter-spacing: -.035em;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
}

.field input:disabled,
.field textarea:disabled,
.field select:disabled {
  cursor: not-allowed;
  color: var(--muted);
  background: #111;
  opacity: .72;
}

.internal-bank-connection-hint {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  background: #151515;
  font-size: 12px;
  line-height: 1.5;
}

.checkbox-field span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-field input {
  width: auto;
  padding: 0;
}

.modal-copy {
  margin: -8px 0 21px;

  color: var(--muted);

  line-height: 1.6;

  font-size: 13px;
}

code {
  color: var(--accent);
}

.modal-actions {
  margin-top: 25px;

  padding-top: 18px;

  justify-content: flex-end;

  border-top: 1px solid var(--line);
}



/* =========================================================
   CAMPO DE SENHA / TOKEN
   ========================================================= */

.password-wrapper {
  position: relative;
  width: 100%;
}

.password-wrapper input {
  display: block;
  width: 100%;
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  z-index: 2;

  width: 32px;
  height: 32px;

  margin: 0;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  transform: translateY(-50%);

  border: 0;
  border-radius: 4px;

  color: var(--muted);
  background: transparent;

  font-size: 11px;
  line-height: 1;
  cursor: pointer;
}

.password-toggle:hover {
  color: var(--accent);
  background: var(--surface-hover);
}

.password-toggle:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 1px;
}

.password-toggle svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
  stroke-width: 1.8;
}

/* =========================================================
   LOGIN
   ========================================================= */

.login-screen {
  min-height: 100vh;

  padding: 20px;

  display: grid;
  place-items: center;

  background: var(--bg);
}

.login-box {
  width: min(390px, 100%);

  padding: 32px;

  border: 1px solid var(--line);
  border-radius: 8px;

  background: var(--surface);
}

.login-box .brand {
  padding: 0 0 48px;
}

.login-box h1 {
  margin-top: 2px;

  font-size: 27px;
}

.login-copy {
  margin: 10px 0 25px;

  color: var(--muted);

  line-height: 1.5;
}

.login-box .button {
  width: 100%;

  margin-top: 21px;
}

.login-error {
  margin-top: 13px;

  color: var(--danger);

  font-size: 12px;
}

.login-feedback {
  margin-top: 13px;
  padding: 10px 11px;

  border: 1px solid #634247;
  border-radius: 5px;

  color: #ffc7c9;
  background: #29191b;

  font-size: 12px;
  line-height: 1.45;
}

.login-feedback.success {
  border-color: #6f2d32;

  color: var(--accent);
  background: #29191b;
}

.login-link {
  margin: 16px auto 0;
  padding: 3px;

  display: block;

  border: 0;

  color: var(--muted);
  background: transparent;

  font-size: 12px;
}

.login-link:hover,
.login-link:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

.login-box .button:disabled {
  cursor: wait;
  opacity: .7;
}


/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 760px) {

  .app-shell {
    display: block;
  }

  .sidebar {
    width: 100%;

    height: auto;
    min-height: auto;

    position: static;

    padding: 16px;

    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand {
    padding: 0 4px 18px;
  }

  .sidebar-label,
  .sidebar-footer {
    display: none;
  }

  .nav-tabs {
    display: flex;
    flex: 0 1 auto;

    overflow-x: auto;
    overflow-y: hidden;
  }

  .nav-tab {
    width: auto;

    white-space: nowrap;
  }

  .nav-section-toggle {
    width: auto;
    white-space: nowrap;
  }

  .workflow-submenu {
    width: min(280px, calc(100vw - 16px));
    height: calc(100dvh - 16px);
    top: 8px;
    left: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .topbar {
    padding: 20px;

    align-items: flex-start;

    gap: 20px;
  }

  .topbar-actions {
    flex-direction: column;

    align-items: stretch;
  }

  .content-area {
    padding: 14px 20px 56px;
  }

  .stats {
    gap: 8px;
  }

  .stat {
    padding: 10px 12px;
  }

  .stat-value {
    font-size: 18px;
  }

  .panel-heading {
    padding: 17px;

    align-items: stretch;
    flex-direction: column;
  }

  .search {
    width: 100%;
  }

  td,
  th {
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .test-heading {
    padding: 17px;
  }

  .test-form,
  .response-panel {
    padding: 17px;
  }

  .email-template-heading {
    padding: 17px;

    align-items: stretch;
    flex-direction: column;
  }

  .backup-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .backup-actions {
    flex-wrap: wrap;
  }

  .backup-target {
    flex: 1 1 100%;
  }

  .backup-target select {
    flex: 1;
    width: auto;
  }

  .email-template-status {
    max-width: none;

    text-align: left;
  }

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

  .email-template-editor,
  .email-template-preview-wrap {
    padding: 17px;
  }

  .email-template-preview {
    min-height: 400px;
  }
}


/* =========================================================
   DOCUMENTAÇÃO
   ========================================================= */

.docs-page {
  --bg: #151617;
  --surface: #1d1f21;
  --surface-raised: #25282b;
  --line: #363a3e;
  --text: #f1f2f3;
  --muted: #b9bec5;
  --faint: #a5adb6;
  --accent: #f05a60;
  --accent-dark: #3a2023;
  --docs-header-height: 72px;
  --docs-sidebar-width: 288px;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}

.docs-page [hidden] { display: none !important; }
.docs-page a { color: inherit; }
.docs-page :is(a, button, input, pre, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.docs-page :is(p, li, dd) code {
  padding: 2px 5px;
  border-radius: 4px;
  color: #e3d6d7;
  background: var(--surface-raised);
  font-size: max(14px, .9em);
}
.docs-page :is(p, li, dd, dt, h1, h2, h3, code) { overflow-wrap: anywhere; }
.docs-page :is(code, pre) { font-family: "JetBrains Mono", monospace; }
.docs-page pre {
  max-width: 100%;
  margin: 0;
  overflow-x: auto;
  padding: 24px;
  color: #e0e5ec;
  font-size: 14px;
  line-height: 1.85;
  tab-size: 2;
}
.docs-page pre code {
  padding: 0;
  color: inherit;
  background: none;
  font-size: inherit;
  white-space: pre;
  overflow-wrap: normal;
}
.docs-page .comment { color: var(--faint); }
.docs-page .key { color: #a8cfff; }
.docs-page .string { color: #ecc097; }
.docs-page .bool { color: #a8cfff; }
.docs-page .null { color: var(--muted); }
.docs-page .number { color: #d9b9fa; }

.docs-page .skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 16px;
  transform: translateY(-150%);
  padding: 10px 16px;
  border-radius: 8px;
  color: #201416;
  background: var(--accent);
  font-weight: 700;
}
.docs-page .skip-link:focus { transform: translateY(0); }
.docs-page .docs-topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  height: var(--docs-header-height);
  display: grid;
  grid-template-columns: var(--docs-sidebar-width) 1fr auto;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: #191b1d;
}
.docs-page .docs-brand {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 28px;
  text-decoration: none;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.5px;
}
.docs-page .docs-brand img { width: 32px; height: 32px; }
.docs-page .product-nav {
  height: 100%;
  display: flex;
  align-items: stretch;
  gap: 32px;
  padding-left: 40px;
}
.docs-page .product-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}
.docs-page .product-nav a:is(:hover, .active) { color: var(--text); }
.docs-page .product-nav .active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  content: "";
  background: var(--accent);
}
.docs-page .version-badge {
  margin-right: 28px;
  color: var(--muted);
  font: 500 14px/1.5 "JetBrains Mono", monospace;
}
.docs-page .docs-mobile-nav { display: none; }
.docs-page .docs-layout {
  display: grid;
  grid-template-columns: var(--docs-sidebar-width) minmax(0, 1fr);
}
.docs-page .docs-sidebar {
  position: fixed;
  z-index: 25;
  top: var(--docs-header-height);
  bottom: 0;
  left: 0;
  width: var(--docs-sidebar-width);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px 20px;
  border-right: 1px solid var(--line);
  background: #191b1d;
}
.docs-page .sidebar-intro { padding: 0 10px; margin-bottom: 24px; }
.docs-page .sidebar-intro > span {
  color: var(--faint);
  font-size: 14px;
  letter-spacing: .06em;
}
.docs-page .sidebar-intro strong { display: block; margin-top: 4px; font-size: 18px; }
.docs-page .docs-search { margin-bottom: 24px; }
.docs-page .docs-search label {
  display: block;
  margin: 0 10px 8px;
  color: var(--muted);
  font-size: 14px;
}
.docs-page .docs-search input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #51575e;
  border-radius: 8px;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
}
.docs-page .docs-search input::placeholder { color: var(--faint); }
.docs-page .docs-search p { margin: 10px; color: var(--muted); font-size: 14px; }
.docs-page .docs-index { display: grid; gap: 3px; }
.docs-page .docs-index > p {
  margin: 24px 10px 7px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}
.docs-page .docs-index > p:first-child { margin-top: 0; }
.docs-page .docs-index a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 7px 12px;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.5;
  transition: background .15s, color .15s;
}
.docs-page .docs-index a:hover { color: var(--text); background: var(--surface-raised); }
.docs-page .docs-index a.selected {
  border-left-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dark);
  font-weight: 500;
}
.docs-page .docs-content { grid-column: 2; min-width: 0; }
.docs-page :is(.hero, .doc-section, .docs-footer) {
  width: min(1120px, calc(100% - 80px));
  margin-inline: auto;
  scroll-margin-top: calc(var(--docs-header-height) + 28px);
}
.docs-page .hero {
  display: grid;
  gap: 32px;
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--line);
}
.docs-page .overline {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: .08em;
}
.docs-page .hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(40px, 4vw, 60px);
  line-height: 1.12;
  letter-spacing: -2px;
}
.docs-page .hero h1 span { color: var(--accent); }
.docs-page .hero-copy {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}
.docs-page .hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.docs-page .hero-chips span {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font: 400 14px/1.5 "JetBrains Mono", monospace;
}
.docs-page .docs-quick-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.docs-page .docs-quick-links a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.docs-page .docs-quick-links a:hover { border-color: var(--accent); background: var(--surface-raised); }
.docs-page .quick-link-number {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  color: var(--accent);
  font: 500 14px/1.5 "JetBrains Mono", monospace;
}
.docs-page .quick-link-number > span { font: 20px/1 Roboto, sans-serif; }
.docs-page .docs-quick-links strong { font-size: 18px; line-height: 1.4; }
.docs-page .docs-quick-links a > span:last-child { color: var(--muted); font-size: 15px; line-height: 1.6; }
.docs-page .doc-section { padding: 56px 0; border-bottom: 1px solid var(--line); }
.docs-page .section-heading { max-width: 800px; margin-bottom: 28px; }
.docs-page .section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 2.8vw, 36px);
  line-height: 1.25;
  letter-spacing: -.8px;
}
.docs-page .section-heading > p:last-child:not(.overline) { margin: 14px 0 0; color: var(--muted); font-size: 17px; }
.docs-page :is(.two-columns, .response-grid, .endpoint-detail, .operation-panels-split) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
}
.docs-page .postgres-tls-guide { margin-top: 24px; }
.docs-page :is(.prose-card, .code-window, .status-list, .auth-grid article, .architecture-grid article, .deploy-grid article, .config-groups article) {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.docs-page .steps { display: grid; gap: 24px; margin: 0; padding: 24px; list-style: none; }
.docs-page .steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; }
.docs-page :is(.steps li > span, .auth-number) {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #735057;
  border-radius: 8px;
  color: var(--accent);
  background: var(--accent-dark);
  font: 600 14px "JetBrains Mono", monospace;
}
.docs-page .steps strong { font-size: 17px; }
.docs-page .steps p { margin: 6px 0 0; color: var(--muted); }
.docs-page .code-window { overflow: hidden; background: #121416; }
.docs-page .code-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-raised);
  font-size: 14px;
}
.docs-page .code-title small { margin-left: auto; color: var(--muted); font-size: 14px; }
.docs-page .code-copy {
  min-height: 36px;
  padding: 5px 10px;
  border: 1px solid #545b64;
  border-radius: 6px;
  color: var(--text);
  background: var(--surface-raised);
  font: 500 14px/1.5 Roboto, sans-serif;
}
.docs-page .code-copy:hover { border-color: var(--accent); color: var(--accent); }
.docs-page .code-copy:disabled { cursor: wait; opacity: .7; }
.docs-page .callout {
  display: grid;
  gap: 6px;
  margin: 24px 0;
  padding: 20px 24px;
  border: 1px solid #514047;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: #282125;
}
.docs-page .callout:last-child { margin-bottom: 0; }
.docs-page .callout strong { color: #ffadb3; font-size: 16px; }
.docs-page .callout p { max-width: 90ch; margin: 0; color: #d1c5c9; }
.docs-page .auth-grid { display: grid; gap: 16px; }
.docs-page .auth-grid article {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  column-gap: 16px;
  padding: 24px;
}
.docs-page .auth-grid h3 { margin: 0; font-size: 19px; }
.docs-page .auth-grid article > code {
  grid-column: 2;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 6px;
  color: #ffd0d4;
  background: #151719;
  font-size: 14px;
}
.docs-page .auth-grid p { grid-column: 2; margin: 12px 0 0; color: var(--muted); }
.docs-page .status-list { padding: 4px 20px; }
.docs-page .status-list div {
  display: grid;
  grid-template-columns: minmax(120px, .5fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.docs-page .status-list div:last-child { border: 0; }
.docs-page .status-list b { color: var(--accent); font: 500 14px/1.7 "JetBrains Mono", monospace; }
.docs-page .status-list span { color: var(--muted); font-size: 15px; }
.docs-page .route-bar {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 4px 16px;
  margin-bottom: 12px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.docs-page .method {
  min-width: 64px;
  display: inline-grid;
  place-items: center;
  justify-self: start;
  padding: 6px 8px;
  border: 1px solid currentColor;
  border-radius: 5px;
  font: 700 14px/1.4 "JetBrains Mono", monospace;
}
.docs-page .method.get { color: #a5dfb6; background: #203126; }
.docs-page .method.post { color: #a8cfff; background: #1c2b3a; }
.docs-page .method.put { color: #d9b9fa; background: #30243a; }
.docs-page .method.delete { color: #ffabb2; background: #3a2224; }
.docs-page .route-bar > code { font-size: 16px; font-weight: 500; }
.docs-page .route-note { grid-column: 2; color: var(--muted); font-size: 15px; }
.docs-page .endpoint-detail { margin-top: 28px; }
.docs-page .endpoint-description h3 { margin: 0 0 12px; font-size: 20px; }
.docs-page .endpoint-description h3:not(:first-child) { margin-top: 28px; }
.docs-page .endpoint-description > p { color: var(--muted); }
.docs-page .field-row { display: grid; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.docs-page .field-row > code { color: var(--accent); font-size: 16px; }
.docs-page .field-row > span { color: var(--faint); font-size: 14px; }
.docs-page .field-row p { margin: 0; color: var(--muted); }
.docs-page .binding-example { display: grid; gap: 16px; }
.docs-page .binding-example > div { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #121416; }
.docs-page .binding-example small {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface-raised);
  font-size: 15px;
}
.docs-page .resource-schema { min-width: 0; margin-bottom: 24px; }
.docs-page .resource-schema > span { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-weight: 500; }
.docs-page .resource-schema > p { color: var(--muted); font-size: 15px; }
.docs-page .operation-list { display: grid; gap: 20px; }
.docs-page .operation {
  min-width: 0;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.docs-page .operation > code { align-self: center; font-size: 16px; font-weight: 500; }
.docs-page .operation > p { grid-column: 2 / -1; margin: 0; color: var(--muted); }
.docs-page .operation > .auth-tag { grid-column: 2; }
.docs-page .operation > .status { grid-column: 3; }
.docs-page .operation.operation-detailed { display: block; padding: 0; overflow: hidden; }
.docs-page .operation-summary {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: start;
  gap: 14px 16px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}
.docs-page .operation-route { min-width: 0; align-self: center; }
.docs-page .operation-route > code { font-size: 16px; font-weight: 500; }
.docs-page .operation-route > p { margin: 10px 0 0; color: var(--muted); }
.docs-page .operation-meta { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.docs-page .operation-status { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.docs-page .operation-status b { color: var(--faint); font-size: 14px; font-weight: 400; }
.docs-page :is(.auth-tag, .status) { color: var(--muted); font-size: 14px; line-height: 1.7; }
.docs-page .auth-tag { justify-self: start; padding: 3px 10px; border: 1px solid #545b64; border-radius: 6px; }
.docs-page .auth-tag.public { color: #a5dfb6; border-color: #496652; background: #203126; }
.docs-page .auth-tag.mixed { color: #edc895; border-color: #6d5a40; background: #30291f; }
.docs-page .status { font-family: "JetBrains Mono", monospace; }
.docs-page .operation-panels { display: grid; gap: 20px; padding: 24px; background: #191b1d; }
.docs-page .operation-panel { min-width: 0; }
.docs-page .operation-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; margin-bottom: 12px; color: var(--muted); font-size: 15px; }
.docs-page .json-block { border: 1px solid var(--line); border-radius: 8px; background: #121416; }
.docs-page :is(.architecture-grid, .deploy-grid, .database-roles, .config-groups, .security-list) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.docs-page :is(.architecture-grid article, .deploy-grid article, .config-groups article) { padding: 24px; }
.docs-page .architecture-grid article > span { color: var(--accent); font: 500 14px "JetBrains Mono", monospace; }
.docs-page :is(.architecture-grid, .deploy-grid, .config-groups) h3 { margin: 0 0 12px; font-size: 20px; line-height: 1.4; }
.docs-page .architecture-grid h3 { margin-top: 16px; }
.docs-page :is(.architecture-grid, .deploy-grid) p { margin: 0; color: var(--muted); }
.docs-page .database-roles { margin-top: 24px; }
.docs-page .database-roles > div { min-width: 0; padding: 20px 24px; border-left: 3px solid var(--accent); background: var(--surface); }
.docs-page .database-roles p { margin: 8px 0 0; color: var(--muted); }
.docs-page .config-groups { align-items: start; }
.docs-page .config-groups dl { margin: 0; }
.docs-page .config-groups dt { padding-top: 16px; color: #ffadb3; font: 500 14px/1.7 "JetBrains Mono", monospace; }
.docs-page .config-groups dd { margin: 0; padding: 6px 0 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.docs-page .config-groups dd:last-child { border: 0; padding-bottom: 0; }
.docs-page .security-list { margin: 0; padding: 0; list-style: none; counter-reset: security; }
.docs-page .security-list li {
  position: relative;
  padding: 22px 22px 22px 60px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface);
  counter-increment: security;
}
.docs-page .security-list li::before { position: absolute; top: 25px; left: 20px; content: "0" counter(security); color: var(--accent); font: 500 14px "JetBrains Mono", monospace; }
.docs-page .docs-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 32px 0; color: var(--muted); font-size: 14px; }
.docs-page .docs-footer > div { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 16px; }
.docs-page .docs-footer img { width: 28px; height: 28px; }
.docs-page .docs-footer p { margin: 0; }
.docs-page .docs-footer a { color: var(--accent); text-underline-offset: 4px; }
.docs-page .docs-announcement { position: fixed; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (min-width: 1440px) {
  .docs-page .binding-example { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1200px) {
  .docs-page :is(.two-columns, .response-grid, .endpoint-detail, .operation-panels-split) { grid-template-columns: minmax(0, 1fr); }
  .docs-page :is(.hero, .doc-section, .docs-footer) { width: calc(100% - 56px); }
  .docs-page .docs-quick-links { gap: 12px; }
  .docs-page .docs-quick-links a { padding: 16px; }
  .docs-page .version-badge { display: none; }
  .docs-page .docs-topbar { grid-template-columns: var(--docs-sidebar-width) 1fr; }
  .docs-page .operation { grid-template-columns: 76px minmax(0, 1fr); }
  .docs-page .operation > .status { grid-column: 2; }
}

@media (max-width: 960px) {
  .docs-page .docs-topbar { grid-template-columns: auto 1fr; }
  .docs-page .docs-brand { padding: 0 24px; }
  .docs-page .product-nav { justify-content: flex-end; padding: 0 24px; gap: 24px; }
  .docs-page .docs-layout { display: block; }
  .docs-page .docs-sidebar { position: static; width: 100%; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); }
  .docs-page.docs-enhanced .docs-mobile-nav { display: block; position: sticky; z-index: 30; top: var(--docs-header-height); border-bottom: 1px solid var(--line); background: #1d1f21; }
  .docs-page .docs-menu-toggle { display: flex; width: 100%; min-height: 52px; align-items: center; gap: 12px; padding: 12px 24px; border: 0; color: var(--text); background: none; font-size: 15px; text-align: left; }
  .docs-page .docs-current-section { min-width: 0; margin-left: auto; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
  .docs-page .docs-menu-chevron { color: var(--accent); }
  .docs-page .docs-menu-toggle[aria-expanded="true"] .docs-menu-chevron { transform: rotate(180deg); }
  .docs-page.docs-enhanced .docs-sidebar { display: none; position: fixed; top: calc(var(--docs-header-height) + 52px); bottom: auto; max-height: calc(100dvh - var(--docs-header-height) - 52px); padding: 24px; box-shadow: 0 24px 48px #0008; }
  .docs-page.docs-menu-open .docs-sidebar { display: block; }
  .docs-page.docs-enhanced :is(.hero, .doc-section, .docs-footer) { scroll-margin-top: calc(var(--docs-header-height) + 76px); }
  .docs-page :is(.hero, .doc-section, .docs-footer) { width: min(800px, calc(100% - 48px)); }
  .docs-page .hero { padding-top: 40px; }
}

@media (max-width: 620px) {
  .docs-page { --docs-header-height: 64px; }
  .docs-page .docs-brand { gap: 8px; padding: 0 16px; font-size: 18px; }
  .docs-page .docs-brand img { width: 28px; height: 28px; }
  .docs-page .product-nav { gap: 16px; padding: 0 16px 0 0; }
  .docs-page .product-nav a { font-size: 14px; }
  .docs-page .product-nav .active { display: none; }
  .docs-page .docs-menu-toggle { padding-inline: 16px; }
  .docs-page :is(.hero, .doc-section, .docs-footer) { width: calc(100% - 32px); }
  .docs-page .hero { gap: 28px; padding: 32px 0; }
  .docs-page .hero h1 { font-size: 40px; letter-spacing: -1.5px; }
  .docs-page .hero-copy { font-size: 17px; }
  .docs-page :is(.docs-quick-links, .architecture-grid, .deploy-grid, .database-roles, .config-groups, .security-list) { grid-template-columns: minmax(0, 1fr); }
  .docs-page .docs-quick-links a { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px 12px; padding: 18px; }
  .docs-page .quick-link-number { grid-row: 1 / 3; margin: 3px 0 0; }
  .docs-page .quick-link-number > span { display: none; }
  .docs-page .docs-quick-links a > span:last-child { grid-column: 2; }
  .docs-page .doc-section { padding: 40px 0; }
  .docs-page .section-heading { margin-bottom: 24px; }
  .docs-page .steps { padding: 20px 16px; }
  .docs-page .callout { padding: 18px; }
  .docs-page .auth-grid article { padding: 18px; }
  .docs-page .auth-grid article > code, .docs-page .auth-grid p { grid-column: 1 / -1; }
  .docs-page .status-list { padding-inline: 16px; }
  .docs-page .status-list div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .docs-page .route-bar { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 16px; }
  .docs-page .route-note { grid-column: 1; }
  .docs-page :is(.operation, .operation-summary) { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .docs-page :is(.operation > p, .operation > .auth-tag, .operation > .status, .operation-meta) { grid-column: 1; }
  .docs-page .operation-meta { gap: 12px; }
  .docs-page .operation-panels { padding: 18px; }
  .docs-page pre { padding: 18px; }
  .docs-page :is(.architecture-grid article, .deploy-grid article, .config-groups article) { padding: 20px; }
  .docs-page .docs-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .docs-page * { scroll-behavior: auto; transition: none; }
}

/* Ajustes de densidade da página de documentação. */
.docs-page {
  --surface: #1b1d1f;
  --surface-raised: #24272a;
  --line: #34383c;
  --docs-header-height: 64px;
  --docs-sidebar-width: 256px;
  font-size: 15px;
  line-height: 1.6;
}
.docs-page .docs-brand { padding-inline: 22px; font-size: 19px; }
.docs-page .docs-brand img { width: 29px; height: 29px; }
.docs-page .product-nav { gap: 26px; padding-left: 32px; }
.docs-page .version-badge { margin-right: 22px; }
.docs-page .docs-sidebar { padding: 22px 14px; }
.docs-page .sidebar-intro { margin-bottom: 18px; }
.docs-page .sidebar-intro strong { margin-top: 2px; font-size: 16px; }
.docs-page .docs-search { margin-bottom: 18px; }
.docs-page .docs-search input { min-height: 40px; padding: 8px 10px; border-color: #454b51; font-size: 14px; }
.docs-page .docs-index { gap: 2px; }
.docs-page .docs-index > p { margin: 19px 10px 5px; color: var(--faint); font-size: 12px; }
.docs-page .docs-index a { min-height: 34px; padding: 6px 10px; font-size: 14px; }
.docs-page :is(.hero, .doc-section, .docs-footer) { width: min(1024px, calc(100% - 72px)); }
.docs-page .hero { gap: 24px; padding: 40px 0 36px; }
.docs-page .overline { margin-bottom: 8px; font-size: 12px; }
.docs-page .hero h1 { max-width: 680px; font-size: clamp(38px, 4vw, 52px); }
.docs-page .hero-copy { margin-top: 16px; font-size: 16px; line-height: 1.65; }
.docs-page .hero-chips { gap: 7px; margin-top: 18px; }
.docs-page .hero-chips span { padding: 3px 8px; font-size: 12px; }
.docs-page .docs-quick-links { gap: 12px; }
.docs-page .docs-quick-links a { gap: 5px; padding: 15px 16px; border-radius: 8px; }
.docs-page .quick-link-number { margin-bottom: 2px; }
.docs-page .docs-quick-links strong { font-size: 16px; }
.docs-page .docs-quick-links a > span:last-child { font-size: 13px; line-height: 1.5; }
.docs-page .doc-section { padding: 42px 0; }
.docs-page .section-heading { max-width: 760px; margin-bottom: 22px; }
.docs-page .section-heading h2 { font-size: clamp(27px, 2.8vw, 33px); }
.docs-page .section-heading > p:last-child:not(.overline) { margin-top: 10px; font-size: 16px; }
.docs-page :is(.two-columns, .response-grid, .endpoint-detail, .operation-panels-split) { gap: 18px; }
.docs-page .steps { gap: 18px; padding: 20px; }
.docs-page .steps strong { font-size: 16px; }
.docs-page pre { padding: 18px 20px; line-height: 1.7; }
.docs-page .code-title { min-height: 46px; padding: 8px 14px; }
.docs-page .callout { margin-block: 18px; padding: 15px 18px; }
.docs-page .callout strong { font-size: 15px; }
.docs-page .auth-grid { gap: 12px; }
.docs-page .auth-grid article { padding: 18px 20px; }
.docs-page .auth-grid h3 { font-size: 17px; }
.docs-page .auth-grid article > code { margin-top: 10px; padding: 8px 10px; font-size: 13px; }
.docs-page .auth-grid p { margin-top: 8px; }
.docs-page .status-list { padding-inline: 16px; }
.docs-page .status-list div { padding-block: 10px; }
.docs-page .route-bar { margin-bottom: 8px; padding: 13px 16px; }
.docs-page .endpoint-detail { margin-top: 20px; }
.docs-page .field-row { gap: 4px; padding-block: 13px; }
.docs-page .resource-schema { margin-bottom: 18px; }
.docs-page .operation-list { gap: 14px; }
.docs-page .operation { gap: 10px 14px; padding: 17px 18px; border-radius: 8px; }
.docs-page .operation-summary { gap: 10px 14px; padding: 17px 18px; }
.docs-page .operation-route > p { margin-top: 6px; }
.docs-page .operation-panels { gap: 16px; padding: 18px; }
.docs-page :is(.architecture-grid, .deploy-grid, .database-roles, .config-groups, .security-list) { gap: 14px; }
.docs-page :is(.architecture-grid article, .deploy-grid article, .config-groups article) { padding: 18px; }
.docs-page :is(.architecture-grid, .deploy-grid, .config-groups) h3 { margin-bottom: 8px; font-size: 18px; }
.docs-page .database-roles { margin-top: 18px; }
.docs-page .database-roles > div { padding: 16px 18px; }
.docs-page .security-list li { padding: 17px 18px 17px 52px; }
.docs-page .security-list li::before { top: 19px; left: 18px; }
.docs-page .docs-footer { gap: 16px; padding-block: 24px; font-size: 13px; }

@media (max-width: 1200px) {
  .docs-page :is(.hero, .doc-section, .docs-footer) { width: calc(100% - 56px); }
}

@media (max-width: 960px) {
  .docs-page :is(.hero, .doc-section, .docs-footer) { width: min(800px, calc(100% - 48px)); }
  .docs-page .hero { padding-top: 36px; }
}

@media (max-width: 620px) {
  .docs-page { --docs-header-height: 60px; }
  .docs-page .docs-brand { padding-inline: 16px; font-size: 18px; }
  .docs-page .docs-brand img { width: 27px; height: 27px; }
  .docs-page :is(.hero, .doc-section, .docs-footer) { width: calc(100% - 32px); }
  .docs-page .hero { gap: 20px; padding-block: 28px; }
  .docs-page .hero h1 { font-size: 38px; }
  .docs-page .doc-section { padding-block: 34px; }
  .docs-page .docs-quick-links a { padding: 14px; }
  .docs-page .steps, .docs-page .operation-panels { padding: 16px; }
  .docs-page .callout, .docs-page .auth-grid article { padding: 16px; }
  .docs-page :is(.operation, .operation-summary) { padding: 16px; }
}


/* =========================================================
   RESPONSIVO COMPACTO
   ========================================================= */

@media (max-width: 760px) {

  .sidebar {
    padding: 12px;
  }

  .brand {
    padding-bottom: 14px;
  }

  .topbar {
    gap: 12px;

    padding: 14px 16px 10px;
  }

  .content-area {
    padding: 10px 16px 36px;
  }

  .panel-heading,
  .test-heading,
  .test-form,
  .response-panel {
    padding: 13px;
  }

  .stat {
    padding: 8px 10px;
  }
}
/* Paginação e busca dos seletores administrativos. */
.table-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; padding: 16px; }
.table-pagination button:disabled { opacity: .45; cursor: default; }
.lookup-combobox { position: relative; display: flex; width: 100%; overflow: visible; border: 1px solid var(--line); border-radius: 5px; background: #151515; }
.lookup-native-select { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.field .lookup-search { min-width: 0; margin: 0; padding: 10px 11px; border: 0; border-radius: 4px 0 0 4px; background: transparent; }
.field .lookup-search:focus { border-color: transparent; }
.lookup-combobox:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px rgb(229 72 77 / 18%); }
.lookup-toggle { display: grid; flex: 0 0 38px; width: 38px; place-items: center; margin: 0; padding: 0; border: 0; border-left: 1px solid var(--line); border-radius: 0 4px 4px 0; color: var(--muted); background: transparent; cursor: pointer; }
.lookup-toggle svg { width: 16px; height: 16px; }
.lookup-toggle:hover, .lookup-toggle:focus { color: var(--text); background: var(--surface-hover); outline: 0; }
.lookup-menu { position: absolute; z-index: 5; top: calc(100% + 4px); right: 0; left: 0; max-height: 230px; overflow: auto; padding: 4px; border: 1px solid var(--line); border-radius: 5px; background: #151515; box-shadow: 0 8px 18px rgb(0 0 0 / 35%); }
.lookup-option, .lookup-more { display: block; width: 100%; padding: 8px 9px; border: 0; border-radius: 3px; color: var(--text); background: transparent; cursor: pointer; text-align: left; font: inherit; font-size: 12px; }
.lookup-option:hover, .lookup-option:focus, .lookup-option[aria-selected="true"] { background: var(--surface-hover); outline: 0; }
.lookup-more { margin-top: 3px; border-top: 1px solid var(--line); color: var(--accent); }
.lookup-status:empty { display: none; }
.lookup-status:not(:empty) { position: absolute; z-index: 6; top: calc(100% + 4px); right: 0; left: 0; padding: 8px 9px; border: 1px solid var(--line); border-radius: 5px; background: #151515; font-size: 12px; overflow-wrap: anywhere; }
.table-pagination.hidden { display: none; }

/* =========================================================
   DASHBOARD OPERACIONAL
   ========================================================= */

.dashboard-panel {
  display: grid;
  gap: 12px;
}

.dashboard-heading,
.dashboard-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.dashboard-heading {
  padding: 18px 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.dashboard-heading h2,
.dashboard-section h3,
.dashboard-runtime-card h4 {
  margin: 0;
}

.dashboard-heading > div:first-child > p:last-child,
.dashboard-section-heading p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.dashboard-controls {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.dashboard-period-control {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
}

.dashboard-period-control select {
  min-height: 34px;
  padding: 6px 28px 6px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  outline: 0;
  color: var(--text);
  background: #151515;
}

.dashboard-period-control select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgb(229 72 77 / 18%);
}

.dashboard-updated {
  max-width: 250px;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.35;
}

.dashboard-content {
  display: grid;
  gap: 12px;
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 8px;
}

.dashboard-kpi {
  min-width: 0;
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--line);
  border-top: 2px solid #545454;
  border-radius: 8px;
  background: #202020;
}

.dashboard-kpi > span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.dashboard-kpi strong {
  display: block;
  margin-top: 7px;
  color: var(--text);
  font-size: 23px;
  line-height: 1.05;
  letter-spacing: -.4px;
}

.dashboard-kpi p {
  margin: 7px 0 0;
  overflow-wrap: anywhere;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.4;
}

.dashboard-kpi-success { border-top-color: #4a9967; }
.dashboard-kpi-warning { border-top-color: #d39a4c; }
.dashboard-kpi-danger { border-top-color: #d35b61; }

.dashboard-authentication {
  display: grid;
  gap: 15px;
  padding: 15px 17px 17px;
}

.dashboard-authentication-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dashboard-authentication-kpis .dashboard-kpi { min-height: 100px; }

.dashboard-authentication-routes {
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 7%);
  border-radius: 7px;
}

.dashboard-authentication-routes h4 {
  margin: 0;
  padding: 11px 14px;
  border-bottom: 1px solid rgb(255 255 255 / 7%);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-section {
  min-width: 0;
  overflow: hidden;
}

.dashboard-section-wide { grid-column: 1 / -1; }

.dashboard-section-heading {
  min-height: 70px;
  padding: 15px 17px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.dashboard-section-heading h3 { font-size: 15px; }

.dashboard-chart-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}

.dashboard-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dashboard-chart-legend span::before {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  content: '';
}

.dashboard-legend-http::before { background: var(--accent); }
.dashboard-legend-workflow::before { background: #7b83d8; }

.dashboard-chart {
  min-height: 232px;
  overflow-x: auto;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  padding: 20px 17px 14px;
}

.dashboard-chart-bar {
  min-width: 34px;
  flex: 1 0 34px;
  display: grid;
  grid-template-rows: 162px auto;
  gap: 7px;
  color: var(--faint);
  font: 10px/1.2 "JetBrains Mono", monospace;
  text-align: center;
}

.dashboard-chart-columns {
  min-height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding: 0 3px;
  border-bottom: 1px solid var(--line);
}

.dashboard-chart-column {
  width: min(12px, 42%);
  min-height: 0;
  border-radius: 3px 3px 0 0;
}

.dashboard-chart-http { background: linear-gradient(180deg, #f26b70, var(--accent)); }
.dashboard-chart-workflow { background: linear-gradient(180deg, #aab2ff, #737cd0); }

.dashboard-status-list,
.dashboard-workflow-type-list,
.dashboard-pool-list,
.dashboard-failure-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dashboard-status-list {
  display: grid;
  padding: 8px 17px 14px;
}

.dashboard-status-list li {
  min-height: 38px;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid rgb(255 255 255 / 5%);
}

.dashboard-status-list li:last-child { border-bottom: 0; }

.dashboard-status-list strong { text-align: right; }
.dashboard-status-list li > span:last-child { color: var(--muted); font-size: 11px; }

.dashboard-status-code {
  display: inline-grid;
  min-width: 42px;
  place-items: center;
  padding: 3px 5px;
  border-radius: 4px;
  font: 700 11px "JetBrains Mono", monospace;
}

.dashboard-status-success { color: #9fe2b3; background: rgb(44 148 78 / 18%); }
.dashboard-status-client-error { color: #f2c180; background: rgb(202 137 45 / 16%); }
.dashboard-status-server-error { color: #ff9ea2; background: rgb(220 55 55 / 18%); }

.dashboard-workflow-type-list { padding: 8px 17px 14px; }

.dashboard-workflow-type-list li {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgb(255 255 255 / 5%);
}

.dashboard-workflow-type-list li:last-child { border-bottom: 0; }
.dashboard-workflow-type-list li > div { min-width: 0; display: grid; gap: 3px; }
.dashboard-workflow-type-list li > div:last-child { justify-items: end; color: var(--muted); font-size: 11px; }
.dashboard-workflow-type-list span { color: var(--muted); font-size: 11px; }
.dashboard-workflow-type-list small { color: var(--faint); font-size: 10px; }

.dashboard-failure-label { color: #9fe2b3 !important; }
.dashboard-failure-label.has-failures { color: #ff9ea2 !important; }

.dashboard-table-wrap { overflow-x: auto; }

.dashboard-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.dashboard-table th,
.dashboard-table td {
  padding: 11px 17px;
  border-bottom: 1px solid rgb(255 255 255 / 5%);
  text-align: left;
}

.dashboard-table th {
  color: var(--faint);
  background: rgb(0 0 0 / 9%);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
}

.dashboard-table tr:last-child td { border-bottom: 0; }
.dashboard-error-value { color: var(--muted); }
.dashboard-error-value.has-errors { color: #ff9ea2; font-weight: 700; }

.dashboard-failure-list { display: grid; }

.dashboard-failure-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 18px;
  padding: 13px 17px;
  border-bottom: 1px solid rgb(255 255 255 / 5%);
}

.dashboard-failure-list li:last-child { border-bottom: 0; }
.dashboard-failure-list li > div { min-width: 0; display: grid; gap: 3px; }
.dashboard-failure-list strong { overflow-wrap: anywhere; }
.dashboard-failure-list li > div span,
.dashboard-failure-list time { color: var(--muted); font-size: 11px; }
.dashboard-failure-list time { align-self: center; text-align: right; white-space: nowrap; }
.dashboard-failure-list p { grid-column: 1 / -1; margin: 2px 0 0; color: #e3b7ba; font: 11px/1.5 "JetBrains Mono", monospace; overflow-wrap: anywhere; }

.dashboard-runtime-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.dashboard-runtime-card {
  min-width: 0;
  padding: 16px 17px;
  background: var(--surface);
}

.dashboard-runtime-card-wide { grid-column: span 3; }
.dashboard-runtime-card h4 { margin-bottom: 12px; font-size: 13px; }

.dashboard-metric-list { margin: 0; }

.dashboard-metric-list > div {
  min-height: 29px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgb(255 255 255 / 5%);
}

.dashboard-metric-list > div:last-child { border-bottom: 0; }
.dashboard-metric-list dt { color: var(--muted); font-size: 11px; }
.dashboard-metric-list dd { max-width: 62%; margin: 0; overflow-wrap: anywhere; color: var(--text); font: 11px "JetBrains Mono", monospace; text-align: right; }

.dashboard-pool-list { display: grid; gap: 7px; }

.dashboard-pool-list li {
  display: grid;
  grid-template-columns: minmax(130px, .32fr) minmax(0, 1fr);
  gap: 12px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #191919;
}

.dashboard-pool-list span { color: var(--muted); font: 11px/1.45 "JetBrains Mono", monospace; overflow-wrap: anywhere; }

.dashboard-empty {
  min-height: 110px;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.dashboard-inline-empty {
  min-height: 96px;
  margin: 14px 17px;
  padding: 16px;
  border: 0;
  background: rgb(0 0 0 / 9%);
  font-size: 12px;
}

.dashboard-success-empty { color: #9fe2b3; }

.dashboard-disclaimer {
  margin: 0;
  padding: 1px 4px;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .dashboard-runtime-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-runtime-card-wide { grid-column: span 2; }
}

@media (max-width: 760px) {
  .dashboard-heading { padding: 17px; align-items: stretch; }
  .dashboard-controls { align-items: center; justify-content: space-between; }
  .dashboard-layout { grid-template-columns: minmax(0, 1fr); }
  .dashboard-section-wide { grid-column: auto; }
  .dashboard-section-heading { min-height: auto; padding: 14px; flex-direction: column; }
  .dashboard-chart-legend { justify-content: flex-start; }
  .dashboard-chart { padding-inline: 14px; }
  .dashboard-runtime-grid { grid-template-columns: minmax(0, 1fr); }
  .dashboard-runtime-card-wide { grid-column: auto; }
  .dashboard-runtime-card { padding: 14px; }
  .dashboard-failure-list li { grid-template-columns: minmax(0, 1fr); padding: 13px 14px; }
  .dashboard-failure-list time { text-align: left; }
  .dashboard-status-list, .dashboard-workflow-type-list { padding-inline: 14px; }
  .dashboard-pool-list li { grid-template-columns: minmax(0, 1fr); }
  .dashboard-authentication { padding: 14px; }
  .dashboard-authentication-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .dashboard-kpis { grid-template-columns: minmax(0, 1fr); }
  .dashboard-authentication-kpis { grid-template-columns: minmax(0, 1fr); }
  .dashboard-controls { align-items: flex-start; flex-direction: column; }
  .dashboard-updated { max-width: none; }
  .dashboard-chart-bar { min-width: 32px; flex-basis: 32px; }
  .dashboard-chart-columns { padding-inline: 2px; }
}

/* =========================================================
   DASHBOARD — PAINEL VISUAL
   ========================================================= */

.dashboard-panel {
  --dashboard-ink: #f1f1f2;
  --dashboard-muted: #aaaab0;
  --dashboard-subtle: #77777d;
  --dashboard-line: rgb(255 255 255 / 11%);
  --dashboard-surface: #19191b;
  --dashboard-surface-raised: #222224;
  --dashboard-cyan: #50d5ff;
  --dashboard-violet: #a58cff;
  --dashboard-green: #50df9e;
  --dashboard-orange: #ffb968;
  --dashboard-coral: #ff6e8e;

  gap: 18px;
  min-width: 0;
  color: var(--dashboard-ink);
}

.dashboard-content,
.dashboard-overview,
.dashboard-bento,
.dashboard-ranking-grid,
.dashboard-focus-grid,
.dashboard-hero {
  min-width: 0;
  max-width: 100%;
}

.dashboard-heading {
  position: relative;
  overflow: hidden;

  min-height: 132px;
  padding: 25px 28px;

  border-color: #39393d;
  border-radius: 18px;

  background: #202022;
  box-shadow: none;
}

.dashboard-heading::after {
  position: absolute;
  top: -110px;
  right: 12%;

  width: 240px;
  height: 240px;

  border: 1px solid rgb(255 255 255 / 7%);
  border-radius: 50%;

  content: '';
}

.dashboard-heading > * {
  position: relative;
  z-index: 1;
}

.dashboard-heading .eyebrow {
  margin-bottom: 8px;
  color: #b9b9be;
  font-size: 11px;
}

.dashboard-heading h2 {
  color: var(--dashboard-ink);
  font-size: clamp(20px, 2vw, 27px);
  letter-spacing: -.6px;
}

.dashboard-heading > div:first-child > p:last-child {
  max-width: 620px;
  margin-top: 9px;
  color: var(--dashboard-muted);
  font-size: 13px;
}

.dashboard-controls {
  gap: 14px;
}

.dashboard-period-control {
  gap: 6px;
  color: #b7b7bc;
  font-size: 12px;
  font-weight: 600;
}

.dashboard-period-control select {
  min-height: 44px;
  min-width: 156px;
  padding: 8px 34px 8px 13px;

  border-color: #3c3c40;
  border-radius: 10px;

  color: var(--dashboard-ink);
  background: #18181a;
}

.dashboard-period-control select:focus-visible {
  border-color: var(--dashboard-cyan);
  box-shadow: 0 0 0 3px rgb(80 213 255 / 20%);
}

.dashboard-updated {
  max-width: 200px;
  padding: 7px 0;
  color: #aaaab0;
  font-size: 12px;
}

.dashboard-content {
  gap: 18px;
}

.dashboard-hero {
  position: relative;
  overflow: hidden;

  min-height: 212px;
  padding: 27px 30px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;

  border: 1px solid #3a3a3e;
  border-radius: 20px;

  background: #202022;
  box-shadow: none;
}

.dashboard-hero::before,
.dashboard-hero::after {
  position: absolute;
  z-index: 0;
  border: 1px solid rgb(255 255 255 / 7%);
  border-radius: 50%;
  content: '';
}

.dashboard-hero::before {
  right: -78px;
  bottom: -160px;
  width: 370px;
  height: 370px;
}

.dashboard-hero::after {
  right: 106px;
  bottom: -115px;
  width: 238px;
  height: 238px;
}

.dashboard-hero > * {
  position: relative;
  z-index: 1;
}

.dashboard-hero-attention {
  background: #252322;
}

.dashboard-hero-critical {
  background: #252022;
}

.dashboard-hero-quiet {
  background: #202022;
}

.dashboard-hero-copy {
  min-width: 0;
  max-width: 700px;
}

.dashboard-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  padding: 6px 9px;

  border: 1px solid rgb(117 242 181 / 24%);
  border-radius: 999px;

  color: #9ff1c5;
  background: rgb(55 206 128 / 10%);

  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
}

.dashboard-live-badge i,
.dashboard-signal i {
  width: 7px;
  height: 7px;

  flex: 0 0 7px;

  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgb(151 241 192 / 10%);
}

.dashboard-hero-attention .dashboard-live-badge {
  border-color: rgb(255 185 104 / 25%);
  color: #ffd191;
  background: rgb(255 185 104 / 10%);
}

.dashboard-hero-critical .dashboard-live-badge {
  border-color: rgb(255 110 142 / 30%);
  color: #ffadbf;
  background: rgb(255 110 142 / 10%);
}

.dashboard-hero-quiet .dashboard-live-badge {
  border-color: rgb(122 151 205 / 27%);
  color: #bdc9e4;
  background: rgb(122 151 205 / 10%);
}

.dashboard-hero h3 {
  margin: 14px 0 0;
  color: var(--dashboard-ink);
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.08;
  letter-spacing: -1px;
}

.dashboard-hero-copy > p {
  max-width: 570px;
  margin-top: 10px;
  color: #c2cbe1;
  font-size: 14px;
  line-height: 1.55;
}

.dashboard-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 16px;
  margin-top: 20px;
}

.dashboard-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #aebbd8;
  font-size: 12px;
}

.dashboard-meta-icon {
  width: 15px;
  height: 15px;
  color: var(--dashboard-cyan);
}

.dashboard-hero-score {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  gap: 10px;
  padding: 4px 12px 4px 4px;
}

.dashboard-hero-score > span {
  color: #aebbd8;
  font-size: 11px;
  white-space: nowrap;
}

.dashboard-ring {
  --dashboard-ring-color: var(--dashboard-cyan);

  position: relative;

  width: 110px;
  aspect-ratio: 1;
  padding: 9px;

  display: grid;
  place-items: center;

  border-radius: 50%;
  background: conic-gradient(var(--dashboard-ring-color) 0 var(--dashboard-ring-value), #37373a var(--dashboard-ring-value) 100%);
  box-shadow: none;
}

.dashboard-ring::before {
  position: absolute;
  inset: 9px;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: inherit;
  background: #202022;
  content: '';
}

.dashboard-ring > div {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
  place-items: center;
}

.dashboard-ring strong {
  color: var(--dashboard-ink);
  font-size: 23px;
  letter-spacing: -.8px;
}

.dashboard-ring span {
  color: var(--dashboard-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.dashboard-ring-good { --dashboard-ring-color: var(--dashboard-green); }
.dashboard-ring-attention { --dashboard-ring-color: var(--dashboard-orange); }
.dashboard-ring-critical { --dashboard-ring-color: var(--dashboard-coral); }
.dashboard-ring-quiet { --dashboard-ring-color: #95a4c7; }
.dashboard-ring-orange { --dashboard-ring-color: var(--dashboard-orange); }
.dashboard-ring-violet { --dashboard-ring-color: var(--dashboard-violet); }

.dashboard-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-metric {
  position: relative;
  overflow: hidden;

  min-height: 148px;
  padding: 17px 17px 14px;

  border: 1px solid var(--dashboard-line);
  border-radius: 17px;

  background: #202022;
  box-shadow: none;
}

.dashboard-metric::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--dashboard-metric-color, var(--dashboard-cyan));
  content: '';
}

.dashboard-metric-cyan { --dashboard-metric-color: var(--dashboard-cyan); }
.dashboard-metric-green { --dashboard-metric-color: var(--dashboard-green); }
.dashboard-metric-violet { --dashboard-metric-color: var(--dashboard-violet); }
.dashboard-metric-orange { --dashboard-metric-color: var(--dashboard-orange); }

.dashboard-metric-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-metric-label > span {
  width: 28px;
  height: 28px;

  display: grid;
  place-items: center;

  border-radius: 9px;
  color: var(--dashboard-metric-color, var(--dashboard-cyan));
  background: color-mix(in srgb, var(--dashboard-metric-color, var(--dashboard-cyan)) 13%, transparent);
}

.dashboard-metric-label svg {
  width: 16px;
  height: 16px;
}

.dashboard-metric-label p,
.dashboard-metric-note {
  margin: 0;
}

.dashboard-metric-label p {
  color: #bdc7df;
  font-size: 12px;
  font-weight: 700;
}

.dashboard-metric > strong {
  display: block;
  margin-top: 17px;
  color: var(--dashboard-ink);
  font-size: clamp(24px, 2.3vw, 32px);
  letter-spacing: -1px;
}

.dashboard-metric-note {
  max-width: calc(100% - 105px);
  margin-top: 5px;
  color: var(--dashboard-muted);
  font-size: 12px;
  line-height: 1.4;
}

.dashboard-sparkline {
  position: absolute;
  right: 13px;
  bottom: 12px;
  width: 105px;
  height: 35px;
  overflow: visible;
}

.dashboard-sparkline-empty {
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, rgb(147 165 218 / 18%), transparent);
}

.dashboard-sparkline-line,
.dashboard-sparkline-area {
  fill: none;
  stroke: var(--dashboard-spark-color, var(--dashboard-cyan));
}

.dashboard-sparkline-area {
  fill: color-mix(in srgb, var(--dashboard-spark-color, var(--dashboard-cyan)) 18%, transparent);
  stroke: none;
}

.dashboard-sparkline-line {
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-sparkline-cyan { --dashboard-spark-color: var(--dashboard-cyan); }
.dashboard-sparkline-green { --dashboard-spark-color: var(--dashboard-green); }
.dashboard-sparkline-violet { --dashboard-spark-color: var(--dashboard-violet); }
.dashboard-sparkline-orange { --dashboard-spark-color: var(--dashboard-orange); }

.dashboard-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-card {
  position: relative;
  overflow: hidden;

  min-width: 0;
  padding: 20px;

  border: 1px solid var(--dashboard-line);
  border-radius: 18px;

  background: #202022;
  box-shadow: none;
}

.dashboard-card::before {
  position: absolute;
  top: -80px;
  right: -70px;
  width: 160px;
  height: 160px;
  border: 1px solid rgb(255 255 255 / 6%);
  border-radius: 50%;
  content: '';
}

.dashboard-card > * {
  position: relative;
  z-index: 1;
}

.dashboard-activity-card { grid-column: span 8; }
.dashboard-reliability-card { grid-column: span 4; }
.dashboard-storage-card,
.dashboard-workflow-types-card,
.dashboard-schedule-card { grid-column: span 4; }

.dashboard-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  margin-bottom: 17px;
}

.dashboard-section-icon {
  width: 36px;
  height: 36px;

  display: grid;
  flex: 0 0 36px;
  place-items: center;

  border-radius: 11px;
  color: var(--dashboard-section-color, var(--dashboard-cyan));
  background: color-mix(in srgb, var(--dashboard-section-color, var(--dashboard-cyan)) 13%, transparent);
}

.dashboard-section-icon svg {
  width: 19px;
  height: 19px;
}

.dashboard-section-header > div {
  min-width: 0;
}

.dashboard-section-header > div > span {
  display: block;
  margin-bottom: 2px;
  color: var(--dashboard-section-color, var(--dashboard-cyan));
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}

.dashboard-section-header h3 {
  color: var(--dashboard-ink);
  font-size: 15px;
  letter-spacing: -.2px;
}

.dashboard-section-header-cyan { --dashboard-section-color: var(--dashboard-cyan); }
.dashboard-section-header-violet { --dashboard-section-color: var(--dashboard-violet); }
.dashboard-section-header-green { --dashboard-section-color: var(--dashboard-green); }
.dashboard-section-header-orange { --dashboard-section-color: var(--dashboard-orange); }
.dashboard-section-header-coral { --dashboard-section-color: var(--dashboard-coral); }

.dashboard-chart-legend {
  justify-content: flex-start;
  gap: 13px;
  margin: 0 0 6px 4px;
  color: var(--dashboard-muted);
  font-size: 11px;
}

.dashboard-chart-legend span {
  gap: 6px;
}

.dashboard-chart-legend span::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.dashboard-legend-http::before { background: var(--dashboard-cyan); }
.dashboard-legend-workflow::before { background: var(--dashboard-violet); }
.dashboard-legend-error::before { background: var(--dashboard-coral); }

.dashboard-activity-chart svg {
  width: 100%;
  height: auto;
  min-height: 230px;
  display: block;
  overflow: visible;
}

.dashboard-activity-grid line {
  stroke: rgb(255 255 255 / 10%);
  stroke-dasharray: 3 4;
}

.dashboard-activity-area { stroke: none; }
.dashboard-activity-http-area { fill: url(#dashboard-http-fill); }
.dashboard-activity-workflow-area { fill: url(#dashboard-workflow-fill); }

.dashboard-activity-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: none;
}

.dashboard-activity-http-line { stroke: var(--dashboard-cyan); }
.dashboard-activity-workflow-line { stroke: var(--dashboard-violet); }
.dashboard-activity-error { fill: var(--dashboard-coral); stroke: #ffe6ed; stroke-width: 1.5; }

.dashboard-activity-labels text {
  fill: #8491b2;
  font: 10px "JetBrains Mono", monospace;
}

.dashboard-donut-layout {
  min-height: 213px;
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.dashboard-donut {
  position: relative;
  width: 136px;
  aspect-ratio: 1;
  padding: 13px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--dashboard-donut-stops));
  box-shadow: none;
}

.dashboard-donut::before {
  position: absolute;
  inset: 13px;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: inherit;
  background: #202022;
  content: '';
}

.dashboard-donut > div {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3px;
  place-items: center;
}

.dashboard-donut strong {
  color: var(--dashboard-ink);
  font-size: 23px;
  letter-spacing: -1px;
}

.dashboard-donut span {
  color: var(--dashboard-muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.dashboard-donut-legend,
.dashboard-type-bars,
.dashboard-ranking-list,
.dashboard-failure-list,
.dashboard-pool-list,
.dashboard-latency-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dashboard-donut-legend {
  display: grid;
  gap: 9px;
}

.dashboard-donut-legend li {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  color: var(--dashboard-muted);
  font-size: 12px;
}

.dashboard-donut-legend strong {
  color: var(--dashboard-ink);
  font: 700 12px "JetBrains Mono", monospace;
}

.dashboard-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dashboard-legend-dot-success { background: var(--dashboard-green); }
.dashboard-legend-dot-client { background: var(--dashboard-orange); }
.dashboard-legend-dot-server { background: var(--dashboard-coral); }
.dashboard-legend-dot-other { background: #8f9ab7; }

.dashboard-storage-visual {
  min-height: 211px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
}

.dashboard-storage-visual .dashboard-ring {
  width: 116px;
}

.dashboard-storage-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.dashboard-storage-copy > strong {
  overflow-wrap: anywhere;
  color: var(--dashboard-ink);
  font-size: 20px;
  letter-spacing: -.5px;
}

.dashboard-storage-copy > span,
.dashboard-storage-copy p {
  margin: 0;
  color: var(--dashboard-muted);
  font-size: 11px;
  line-height: 1.45;
}

.dashboard-storage-copy p {
  margin-top: 7px;
  color: #b8c6e4;
}

.dashboard-type-bars {
  display: grid;
  gap: 15px;
  min-height: 210px;
  align-content: center;
}

.dashboard-type-bar > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.dashboard-type-bar > div:first-child span {
  color: #ccd4ea;
  font-size: 12px;
  font-weight: 700;
}

.dashboard-type-bar > div:first-child strong {
  color: var(--dashboard-ink);
  font: 700 12px "JetBrains Mono", monospace;
}

.dashboard-type-bar small {
  display: block;
  margin-top: 5px;
  color: var(--dashboard-subtle);
  font-size: 10px;
}

.dashboard-type-bar small.has-failures { color: #ffa3b6; }

.dashboard-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: rgb(132 151 205 / 13%);
}

.dashboard-progress i {
  height: 100%;
  min-width: 3px;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--dashboard-cyan), #96e9ff);
  box-shadow: none;
}

.dashboard-type-bar-1 .dashboard-progress i,
.dashboard-ranking-workflow .dashboard-progress i { background: linear-gradient(90deg, var(--dashboard-violet), #d2c8ff); box-shadow: none; }
.dashboard-type-bar-2 .dashboard-progress i { background: linear-gradient(90deg, var(--dashboard-orange), #ffdfaa); box-shadow: none; }
.dashboard-ranking-duration .dashboard-progress i { background: linear-gradient(90deg, var(--dashboard-orange), #ffdfaa); box-shadow: none; }

.dashboard-schedule {
  min-height: 210px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  align-items: center;
  gap: 12px;
}

.dashboard-schedule-orb {
  width: 53px;
  height: 53px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(80 213 255 / 18%);
  border-radius: 17px;
  color: var(--dashboard-cyan);
  background: rgb(80 213 255 / 10%);
}

.dashboard-schedule-orb svg {
  width: 25px;
  height: 25px;
}

.dashboard-schedule-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.dashboard-schedule-main strong {
  color: var(--dashboard-ink);
  font-size: 27px;
  letter-spacing: -1px;
}

.dashboard-schedule-main span,
.dashboard-schedule-state small {
  color: var(--dashboard-muted);
  font-size: 11px;
}

.dashboard-schedule-state {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 11px 12px;
  display: grid;
  gap: 4px;
  border: 1px solid rgb(152 174 229 / 12%);
  border-radius: 11px;
  background: rgb(8 14 31 / 21%);
}

.dashboard-schedule-state > span {
  color: #a7f1c6;
  font-size: 12px;
  font-weight: 700;
}

.dashboard-schedule-warning .dashboard-schedule-orb {
  border-color: rgb(255 185 104 / 25%);
  color: var(--dashboard-orange);
  background: rgb(255 185 104 / 11%);
}

.dashboard-schedule-warning .dashboard-schedule-state > span { color: #ffd392; }

.dashboard-ranking-grid,
.dashboard-focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-ranking-card,
.dashboard-authentication-card,
.dashboard-alert-card {
  min-height: 320px;
}

.dashboard-ranking-list {
  display: grid;
  gap: 10px;
}

.dashboard-ranking-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 42px;
}

.dashboard-rank {
  color: #7180a4;
  font: 700 10px "JetBrains Mono", monospace;
}

.dashboard-ranking-copy {
  min-width: 0;
}

.dashboard-ranking-copy > div:first-child {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.dashboard-ranking-copy strong {
  min-width: 0;
  overflow: hidden;
  color: #e4e9f7;
  font: 600 12px "JetBrains Mono", monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-ranking-copy > div:first-child > span {
  flex: 0 0 auto;
  color: #8f9bb9;
  font-size: 10px;
  white-space: nowrap;
}

.dashboard-ranking-copy > div:first-child > span.has-failures { color: #ff9cb1; }

.dashboard-ranking-progress {
  height: 5px;
  margin-top: 6px;
}

.dashboard-ranking-value {
  display: grid;
  gap: 1px;
  justify-items: end;
  color: var(--dashboard-ink);
  font: 700 13px "JetBrains Mono", monospace;
}

.dashboard-ranking-value small {
  color: #8390ae;
  font: 10px "Roboto", sans-serif;
}

.dashboard-authentication {
  display: grid;
  gap: 19px;
  padding: 0;
}

.dashboard-authentication-summary {
  display: flex;
  align-items: center;
  gap: 18px;
}

.dashboard-authentication-summary .dashboard-ring {
  width: 97px;
  flex: 0 0 97px;
}

.dashboard-authentication-summary .dashboard-ring strong { font-size: 20px; }

.dashboard-authentication-summary > div:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.dashboard-authentication-summary > div:last-child > strong {
  color: var(--dashboard-ink);
  font-size: 26px;
  letter-spacing: -1px;
}

.dashboard-authentication-summary > div:last-child > span {
  color: var(--dashboard-muted);
  font-size: 11px;
}

.dashboard-authentication-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.dashboard-authentication-badges span {
  padding: 4px 7px;
  border-radius: 99px;
  color: #99a6c3;
  background: rgb(145 164 211 / 10%);
  font: 700 10px "JetBrains Mono", monospace;
}

.dashboard-authentication-badges .has-client-errors { color: #ffcf87; background: rgb(255 185 104 / 13%); }
.dashboard-authentication-badges .has-server-errors { color: #ffafc0; background: rgb(255 110 142 / 13%); }

.dashboard-authentication-routes > span {
  display: block;
  margin-bottom: 10px;
  color: #8f9cb9;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.dashboard-authentication-routes {
  padding: 11px 12px 12px;
  border-color: rgb(152 174 229 / 14%);
  border-radius: 12px;
  background: rgb(7 13 28 / 20%);
}

.dashboard-authentication-routes .dashboard-ranking-list {
  gap: 8px;
}

.dashboard-authentication-routes .dashboard-ranking-list li {
  min-height: 35px;
}

.dashboard-authentication-routes .dashboard-ranking-value small { display: none; }

.dashboard-alert-card.has-alerts {
  border-color: rgb(255 110 142 / 25%);
  background: #252022;
}

.dashboard-alert-card.is-clear {
  border-color: rgb(80 223 158 / 20%);
  background: #202522;
}

.dashboard-clear-state {
  min-height: 211px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px;
}

.dashboard-clear-state > span {
  width: 47px;
  height: 47px;
  display: grid;
  flex: 0 0 47px;
  place-items: center;
  border-radius: 15px;
  color: var(--dashboard-green);
  background: rgb(80 223 158 / 12%);
}

.dashboard-clear-state svg {
  width: 23px;
  height: 23px;
}

.dashboard-clear-state > div {
  display: grid;
  gap: 5px;
}

.dashboard-clear-state strong {
  color: #d3f8e2;
  font-size: 14px;
}

.dashboard-clear-state p {
  margin: 0;
  color: var(--dashboard-muted);
  font-size: 12px;
  line-height: 1.45;
}

.dashboard-failure-list {
  display: grid;
  gap: 8px;
}

.dashboard-failure-list li {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border: 0;
}

.dashboard-failure-dot {
  width: 7px;
  height: 7px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--dashboard-coral);
  box-shadow: none;
}

.dashboard-failure-list li > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.dashboard-failure-list strong {
  overflow: hidden;
  color: #ffe2e9;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-failure-list li > div > span {
  color: #c9a9bd;
  font-size: 10px;
}

.dashboard-failure-list p {
  margin: 3px 0 0;
  color: #d5b6c3;
  font: 10px/1.45 "JetBrains Mono", monospace;
  overflow-wrap: anywhere;
}

.dashboard-technical {
  overflow: hidden;
  border: 1px solid var(--dashboard-line);
  border-radius: 16px;
  background: #202022;
}

.dashboard-technical summary {
  min-height: 72px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  list-style: none;
}

.dashboard-technical summary::-webkit-details-marker { display: none; }

.dashboard-technical summary:focus-visible {
  outline: 3px solid rgb(80 213 255 / 30%);
  outline-offset: -3px;
}

.dashboard-technical-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #a8b5d8;
  background: rgb(147 165 218 / 11%);
}

.dashboard-technical-icon svg {
  width: 18px;
  height: 18px;
}

.dashboard-technical summary > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.dashboard-technical summary strong {
  color: var(--dashboard-ink);
  font-size: 13px;
}

.dashboard-technical summary small {
  overflow: hidden;
  color: var(--dashboard-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-technical-signals {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.dashboard-signal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 99px;
  color: #96e8ba;
  background: rgb(80 223 158 / 10%);
  font-size: 10px;
  font-weight: 700;
}

.dashboard-signal i {
  width: 6px;
  height: 6px;
  flex-basis: 6px;
  box-shadow: none;
}

.dashboard-signal-warning {
  color: #ffd08a;
  background: rgb(255 185 104 / 10%);
}

.dashboard-technical-content {
  padding: 0 18px 18px;
}

.dashboard-runtime {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-runtime > section {
  min-width: 0;
  padding: 14px;
  border: 1px solid #36363a;
  border-radius: 12px;
  background: #1b1b1d;
}

.dashboard-runtime > .dashboard-runtime-wide { grid-column: 1 / -1; }

.dashboard-runtime h4 {
  margin: 0 0 11px;
  color: #dedee1;
  font-size: 12px;
}

.dashboard-metric-list {
  margin: 0;
}

.dashboard-metric-list > div {
  min-height: 29px;
  border-bottom-color: rgb(255 255 255 / 8%);
}

.dashboard-metric-list dt {
  color: var(--dashboard-muted);
  font-size: 11px;
}

.dashboard-metric-list dd {
  max-width: 60%;
  color: #e2e2e5;
  font-size: 11px;
}

.dashboard-hardware-metric-list > div {
  display: block;
}

.dashboard-hardware-metric-list > div > div:first-child {
  min-height: 29px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-hardware-metric-list dd {
  max-width: none;
  white-space: nowrap;
}

.dashboard-hardware-metric-list > .dashboard-resource-metric {
  min-height: 0;
  padding: 7px 0 8px;
}

.dashboard-usage-meter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
}

.dashboard-usage-meter > div {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #37373b;
}

.dashboard-usage-meter i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--dashboard-green);
}

.dashboard-usage-meter-warning i { background: var(--dashboard-orange); }
.dashboard-usage-meter-critical i { background: var(--dashboard-coral); }

.dashboard-usage-meter span {
  color: var(--dashboard-muted);
  font: 10px "JetBrains Mono", monospace;
}

.dashboard-pool-list,
.dashboard-latency-list {
  display: grid;
  gap: 9px;
}

.dashboard-pool-list li,
.dashboard-latency-list li {
  display: grid;
  grid-template-columns: minmax(155px, .44fr) minmax(100px, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.dashboard-pool-list li > div:first-child,
.dashboard-latency-list li > div:first-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.dashboard-pool-list strong,
.dashboard-latency-list strong {
  overflow: hidden;
  color: #dfe6f6;
  font: 600 11px "JetBrains Mono", monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-pool-list span,
.dashboard-latency-list span,
.dashboard-pool-list small,
.dashboard-latency-list small {
  color: var(--dashboard-subtle);
  font-size: 10px;
}

.dashboard-pool-list small,
.dashboard-latency-list small {
  max-width: 235px;
  text-align: right;
}

.dashboard-latency-list .dashboard-progress i {
  background: linear-gradient(90deg, var(--dashboard-orange), #ffdfab);
  box-shadow: none;
}

.dashboard-empty {
  min-height: 122px;
  border-color: rgb(155 178 234 / 22%);
  border-radius: 13px;
  color: var(--dashboard-muted);
  background: rgb(8 14 30 / 20%);
  font-size: 12px;
}

.dashboard-inline-empty {
  min-height: 150px;
  margin: 0;
  padding: 18px;
  border: 1px dashed rgb(155 178 234 / 22%);
  background: rgb(8 14 30 / 20%);
}

.dashboard-disclaimer {
  padding: 0 4px;
  color: #7f8ca9;
  font-size: 11px;
}

@media (max-width: 1080px) {
  .dashboard-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-activity-card { grid-column: 1 / -1; }
  .dashboard-reliability-card,
  .dashboard-storage-card,
  .dashboard-workflow-types-card,
  .dashboard-schedule-card { grid-column: auto; }
}

@media (max-width: 820px) {
  .dashboard-heading { padding: 22px; }
  .dashboard-hero { padding: 24px; }
  .dashboard-ranking-grid,
  .dashboard-focus-grid { grid-template-columns: minmax(0, 1fr); }
  .dashboard-card { padding: 18px; }
  .dashboard-ranking-card,
  .dashboard-authentication-card,
  .dashboard-alert-card { min-height: auto; }
}

@media (max-width: 760px) {
  .dashboard-heading { min-height: 0; }
  .dashboard-heading h2 { font-size: 22px; }
  .dashboard-controls { width: 100%; align-items: center; justify-content: space-between; }
  .dashboard-period-control select { min-width: 146px; }
  .dashboard-updated { max-width: none; text-align: right; }
  .dashboard-hero { align-items: flex-start; flex-direction: column; min-height: 0; padding: 22px; }
  .dashboard-hero-score { align-self: flex-end; margin-top: -14px; padding-right: 0; }
  .dashboard-hero h3 { font-size: 27px; }
  .dashboard-overview,
  .dashboard-bento { grid-template-columns: minmax(0, 1fr); }
  .dashboard-activity-card,
  .dashboard-reliability-card,
  .dashboard-storage-card,
  .dashboard-workflow-types-card,
  .dashboard-schedule-card { grid-column: auto; }
  .dashboard-activity-chart svg { min-height: 195px; }
  .dashboard-donut-layout { min-height: 0; }
  .dashboard-storage-visual,
  .dashboard-type-bars,
  .dashboard-schedule { min-height: 170px; }
  .dashboard-runtime { grid-template-columns: minmax(0, 1fr); }
  .dashboard-runtime > .dashboard-runtime-wide { grid-column: auto; }
  .dashboard-pool-list li,
  .dashboard-latency-list li { grid-template-columns: minmax(0, 1fr); gap: 5px; padding: 8px 0; border-bottom: 1px solid rgb(158 180 234 / 9%); }
  .dashboard-pool-list li:last-child,
  .dashboard-latency-list li:last-child { border-bottom: 0; }
  .dashboard-pool-list small,
  .dashboard-latency-list small { max-width: none; text-align: left; }
}

@media (max-width: 500px) {
  .dashboard-heading { padding: 19px; }
  .dashboard-heading > div:first-child > p:last-child { font-size: 12px; }
  .dashboard-controls { align-items: flex-start; flex-direction: column; }
  .dashboard-updated { padding: 0; text-align: left; }
  .dashboard-hero { padding: 19px; }
  .dashboard-hero-score { align-self: center; margin: 0; }
  .dashboard-hero-meta { display: grid; gap: 8px; }
  .dashboard-metric { min-height: 136px; }
  .dashboard-donut-layout,
  .dashboard-storage-visual { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .dashboard-storage-visual { display: grid; }
  .dashboard-storage-copy { justify-items: center; }
  .dashboard-metric-note { max-width: calc(100% - 90px); }
  .dashboard-sparkline { width: 82px; }
  .dashboard-ranking-list li { grid-template-columns: 20px minmax(0, 1fr); }
  .dashboard-ranking-value { grid-column: 2; justify-items: start; display: flex; gap: 5px; align-items: baseline; }
  .dashboard-technical summary { grid-template-columns: 36px minmax(0, 1fr); }
  .dashboard-technical-signals { grid-column: 1 / -1; justify-content: flex-start; }
  .dashboard-technical-content { padding-inline: 13px; }
}

@media (max-width: 620px) {
  .modal-backdrop { padding: 12px; }
  .settings-modal-header { min-height: 0; padding: 18px; }
  .settings-modal-layout { grid-template-columns: minmax(0, 1fr); }
  .settings-menu {
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .settings-menu > p { display: none; }
  .settings-content { padding: 23px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-panel *,
  .dashboard-panel *::before,
  .dashboard-panel *::after { transition: none !important; animation: none !important; }
}
