*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  font-size: 13px;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  font-family: var(--sans, "Segoe UI", "Helvetica Neue", Arial, sans-serif);
  color: var(--text);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--s3, #242e38) transparent;
}

/* Global text input controls (theme-driven) */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="url"],
select,
textarea,
.field-input,
.platform-name-input,
.botbuilder-input {
  width: 100%;
  box-sizing: border-box;
  padding: 7px 10px;
  border-radius: var(--radius, 8px);
  border: 1px solid var(--input-border, rgba(255, 255, 255, 0));
  background: var(--input-bg, rgba(7, 12, 24, 0.72));
  color: var(--input-text, var(--text));
  font-size: 13px;
  letter-spacing: 0.01em;
  font-family: inherit;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease, color 0.14s ease;
  box-shadow: none;
}

input::placeholder,
textarea::placeholder {
  color: var(--input-placeholder, rgba(226, 232, 240, 0.58));
}

input:hover,
select:hover,
textarea:hover,
.field-input:hover,
.platform-name-input:hover,
.botbuilder-input:hover {
  border-color: var(--input-border-hover, rgba(255, 255, 255, 0));
  background: var(--input-bg-hover, rgba(7, 12, 24, 0.78));
}

input:focus,
select:focus,
textarea:focus,
.field-input:focus,
.platform-name-input:focus,
.botbuilder-input:focus {
  outline: none;
  border-color: var(--input-border-focus, rgba(255, 255, 255, 0));
  box-shadow: 0 0 0 2px var(--input-focus-ring, transparent);
  background: var(--input-bg-focus, rgba(7, 12, 24, 0.84));
}

input[readonly],
textarea[readonly],
.field-input--readonly {
  background: var(--input-readonly-bg, rgba(7, 12, 24, 0.58));
  border-color: var(--input-readonly-border, rgba(255, 255, 255, 0));
  box-shadow: none;
}

/* Primary buttons */
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius, 8px);
  border: 1px solid var(--border, rgba(255,255,255,0.07));
  background: var(--accent, #3b82f6);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background var(--transition, 180ms ease), border-color var(--transition, 180ms ease);
}

.mh-button {
  justify-content: center;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
.btn-primary:hover {
  background: var(--accent-2, #1d4ed8);
  border-color: var(--accent-2, #1d4ed8);
}

button:disabled,
input[type="submit"]:disabled,
input[type="button"]:disabled,
input[type="reset"]:disabled,
.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Icon-link actions (theme-driven) */
.text-action,
.ghost-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--icon-link-text, #ffffff);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.12s ease, opacity 0.12s ease;
  box-shadow: none;
  transform: none;
}

.text-action svg,
.ghost-button svg,
.icon-button.ghost svg,
.host-actions__trigger svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.text-action:hover,
.text-action:focus-visible,
.text-action:active,
.ghost-button:hover,
.ghost-button:focus-visible,
.ghost-button:active {
  color: var(--icon-link-text-hover, #e2e8f0);
  background: transparent;
  box-shadow: none;
  transform: none;
  outline: none;
}

.text-action:disabled,
.ghost-button:disabled {
  opacity: var(--icon-link-disabled-opacity, 0.45);
  cursor: not-allowed;
}

.text-action.danger,
.icon-button.ghost.danger {
  color: var(--icon-link-text-danger, #fca5a5);
}

.text-action.danger:hover,
.text-action.danger:focus-visible,
.text-action.danger:active,
.icon-button.ghost.danger:hover,
.icon-button.ghost.danger:focus-visible,
.icon-button.ghost.danger:active {
  color: var(--icon-link-text-danger-hover, #f87171);
  outline: none;
}

.icon-button.ghost,
.host-actions__trigger {
  width: 36px;
  height: 36px;
  padding: 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--icon-link-icon-border, transparent);
  background: var(--icon-link-icon-bg, transparent);
  color: var(--icon-link-text, #ffffff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.12s ease, border-color 0.12s ease, background-color 0.12s ease, opacity 0.12s ease;
  box-shadow: none;
  transform: none;
}

.icon-button.ghost:hover,
.icon-button.ghost:focus-visible,
.icon-button.ghost:active,
.host-actions__trigger:hover,
.host-actions__trigger:focus-visible,
.host-actions__trigger:active {
  color: var(--icon-link-text-hover, #e2e8f0);
  border-color: var(--icon-link-icon-border-hover, transparent);
  background: var(--icon-link-icon-bg-hover, transparent);
  box-shadow: none;
  transform: none;
  outline: none;
}

.icon-button.ghost:disabled {
  opacity: var(--icon-link-disabled-opacity, 0.45);
  cursor: not-allowed;
}

.host-actions__trigger {
  border-radius: 10px;
}

.icon-button.ghost.danger {
  border-color: var(--icon-link-icon-danger-border, rgba(248, 113, 113, 0.45));
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--s3, #242e38);
  border-radius: 3px;
}

.site-shell {
  flex: 1 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.top-nav,
.site-footer {
  flex: 0 0 auto;
}

.site-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
}

code {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  color: var(--text);
}

.manage-shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 18px 16px 22px;
}

.manage-shell.manage-shell--panel-scroll {
  padding-top: 0;
}

.manage-tags {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-top: -18px;
}

.manage-shell.manage-shell--panel-scroll .manage-tags {
  position: sticky;
  top: 0;
  z-index: 24;
  margin-top: 0;
  padding-bottom: 10px;
}

.manage-tags__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.manage-tags__actions--host {
  gap: 0;
}

.manage-tag {
  align-self: flex-start;
  margin: 0;
  padding: 10px 18px 12px;
  border-radius: 0 0 14px 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  color: rgba(234, 242, 255, 0.9);
}

.manage-tag--primary {
  margin-left: -16px;
  padding-left: 22px;
}

.manage-tags__actions .manage-tag {
  align-self: center;
}

.manage-tag--reverse {
  margin-right: -16px;
  padding-right: 22px;
  border-radius: 0 0 0 14px;
}

.manage-tag--flush-right {
  margin-right: -16px;
  padding-right: 22px;
}

.manage-tag--status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.manage-tag--host-activation {
  border-radius: 0 0 0 14px;
}

.manage-tag--host-ask-dave {
  border-radius: 0;
}

.manage-tag--ask-dave {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0.03em;
  min-width: 0 !important;
}

.manage-tag--ask-dave:hover,
.manage-tag--ask-dave:focus-visible {
  color: #f8fdff;
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: linear-gradient(135deg, rgba(19, 38, 64, 0.95), rgba(15, 23, 42, 0.9));
  transform: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  outline: none;
}

.manage-tag__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
}

.manage-tag__icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.manage-tag__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2);
}

.manage-tag--active .manage-tag__dot {
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2);
}

.manage-tag__title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.manage-hero {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, transparent), rgba(38, 94, 217, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.manage-hero h1 {
  margin: 6px 0;
  font-size: 28px;
}

.hero-metrics {
  display: grid;
  grid-auto-flow: column;
  gap: 16px;
}

.hero-metrics div {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 10px 14px;
  text-align: center;
  min-width: 90px;
}

.metric {
  display: block;
  font-size: 26px;
  font-weight: 700;
}

.eyebrow {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 11px;
  color: rgba(234, 242, 255, 0.8);
  margin: 0;
}

.status-banner {
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  padding: 12px 16px;
  font-weight: 600;
}

.manage-body {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
  align-items: flex-start;
  min-height: 0;
}

.manage-nav {
  position: sticky;
  top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.nav-pill {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  margin: 0;
  min-width: 0 !important;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: border-color 0.18s ease, transform 0.14s ease, background 0.18s ease;
}

.nav-pill:hover,
.nav-pill:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  outline: none;
  transform: translateX(2px);
}

.nav-pill.active {
  border-color: color-mix(in srgb, var(--accent) 80%, transparent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.nav-glyph {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 20%, transparent), rgba(37, 99, 235, 0.28));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.nav-glyph svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.nav-text strong {
  display: block;
  font-size: 14px;
}

.nav-text small {
  color: var(--muted);
}

.nav-count {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}

.manage-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.manage-card {
  background: var(--panel);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.admin-card {
  gap: 18px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Shared list-page patterns for /manage, /host, /platform list screens */
.grid-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.1rem;
}

.action-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.manage-knowledge-card .manage-knowledge-actions {
  margin-bottom: 6px;
  margin-top: 6px;
  padding-left: 12px;
  padding-right: 12px;
  padding-bottom: 2px;
  border-bottom: none;
}

.manage-card.manage-knowledge-card {
  padding-top: 14px;
  gap: 0 !important;
}

.manage-knowledge-card .new-client-button {
  gap: 0.4rem;
}

.manage-knowledge-card .manage-knowledge-actions .text-action {
  width: auto;
  min-width: 0 !important;
  flex: 0 0 auto;
  justify-content: flex-start;
  border: none;
  padding: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.manage-knowledge-card .manage-knowledge-actions .text-action:hover,
.manage-knowledge-card .manage-knowledge-actions .text-action:focus-visible,
.manage-knowledge-card .manage-knowledge-actions .text-action:active {
  background: transparent;
  box-shadow: none;
  transform: none;
  font-weight: 700;
}

.manage-knowledge-card .bot-manage-table-wrapper {
  margin-top: 0;
  border-top: none;
}

.manage-knowledge-card .manage-table-wrapper,
.manage-knowledge-card .knowledge-table-wrapper {
  border: none;
  border-radius: 0;
  background: transparent;
  padding-left: 0;
  padding-right: 0;
  overflow: visible;
}

.grid-divider {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0.2rem 0 0.35rem;
}

.table-wrapper {
  width: 100%;
  position: relative;
  min-height: 260px;
}

.identity-shell {
  position: relative;
}

.loading-scrim {
  position: absolute;
  inset: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(15, 17, 23, 0.9);
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.table-wrapper.is-loading .loading-scrim {
  opacity: 1;
  pointer-events: all;
}

.spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid #1f2937;
  border-top-color: #cbd5e1;
  animation: spin 0.9s linear infinite;
}

.identity-table tbody tr {
  cursor: pointer;
  transition: background-color 0.12s ease, box-shadow 0.12s ease;
}

.identity-table tbody tr:hover {
  background: #1f2937;
  color: #f8fafc;
}

.identity-table tbody tr:active {
  background: #0f172a;
  color: #f8fafc;
}

.bot-manage-header h2 {
  margin: 6px 0 4px;
  font-size: 28px;
}

.bot-manage-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.bot-manage-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.bot-actions-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bot-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.bot-action:hover,
.bot-action:focus-visible {
  opacity: 0.92;
  outline: none;
}

.bot-action--primary {
  border: none;
  background: linear-gradient(135deg, #6bc8ff, #32c9ad);
  color: #03131a;
}

.bot-action--ghost {
  background: rgba(15, 23, 42, 0.6);
}

.bot-action.is-active {
  opacity: 0.7;
}

.bot-action__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.bot-action__icon svg {
  width: 16px;
  height: 16px;
}

.bot-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bot-search__field {
  width: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: width 0.2s ease, opacity 0.2s ease;
}

.bot-search__field input {
  min-width: 170px;
}

.bot-search.is-open .bot-search__field {
  width: 220px;
  opacity: 1;
  pointer-events: auto;
}

.bot-icon-button {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.bot-icon-button svg {
  width: 18px;
  height: 18px;
}

.bot-manage-table-wrapper {
  margin-top: 14px;
  position: relative;
  overflow: visible;
}

.bot-manage-table-scroll {
  overflow: visible;
}

.manage-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.manage-table th,
.manage-table td {
  padding: 12px 14px;
  text-align: left;
}

.manage-table thead th {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.manage-table tbody tr {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.bot-manage-row {
  background: rgba(10, 16, 30, 0.45);
  cursor: pointer;
}

.bot-manage-row:nth-child(even) {
  background: rgba(10, 16, 30, 0.35);
}

.bot-manage-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.bot-cell {
  font-weight: 600;
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.host-actions-cell {
  width: 48px;
  text-align: right;
}

.host-actions {
  position: relative;
  display: inline-flex;
}

.host-actions-backdrop {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 10;
}

.host-actions__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  background: rgba(5, 8, 16, 0.95);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.55), 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent);
  display: none;
  z-index: 22;
}

.host-actions.is-open .host-actions__menu {
  display: block;
}

.host-actions__item {
  width: 100%;
  text-align: center;
  justify-content: center;
  padding: 8px 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.12s ease;
}

.host-actions__item:hover,
.host-actions__item:focus-visible {
  color: var(--accent);
  outline: none;
}

.host-actions__item.danger {
  color: var(--danger);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
}

.pill--status {
  background: rgba(14, 165, 233, 0.18);
  color: #38bdf8;
  border-color: rgba(14, 165, 233, 0.55);
}

.pill--status-active {
  background: rgba(52, 211, 153, 0.18);
  color: #bbf7d0;
  border-color: rgba(52, 211, 153, 0.55);
}

.bot-empty-state {
  margin-top: 16px;
  padding: 12px 0;
  border: none;
  background: transparent;
  text-align: center;
}

.bot-empty-state__label {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bot-empty-state__value {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.refresh-icon-button {
  border-radius: 999px;
  border: 1px solid var(--icon-link-icon-border, color-mix(in srgb, var(--accent) 40%, transparent));
  background: var(--icon-link-icon-bg, color-mix(in srgb, var(--accent) 12%, transparent));
  color: var(--icon-link-text, var(--text));
  font-weight: 600;
  padding: 6px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.refresh-icon-button__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
}

.refresh-icon-button__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.refresh-icon-button:disabled {
  opacity: var(--icon-link-disabled-opacity, 0.45);
  cursor: not-allowed;
}

.refresh-icon-button:not(:disabled):hover,
.refresh-icon-button:not(:disabled):focus-visible {
  color: var(--icon-link-text-hover, #e2e8f0);
  border-color: var(--icon-link-icon-border-hover, color-mix(in srgb, var(--accent) 60%, transparent));
  background: var(--icon-link-icon-bg-hover, color-mix(in srgb, var(--accent) 8%, transparent));
  box-shadow: none;
  transform: none;
  outline: none;
}

.muted {
  color: var(--muted);
  margin: 0;
}

.admin-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.admin-service-card {
  background: var(--panel-2);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status-chip {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.status-chip--up {
  background: rgba(52, 211, 153, 0.18);
  border-color: rgba(52, 211, 153, 0.55);
  color: #bbf7d0;
}

.status-chip--down {
  background: rgba(248, 113, 113, 0.18);
  border-color: rgba(248, 113, 113, 0.6);
  color: #fecaca;
}

.runtime-chip {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid rgba(59, 130, 246, 0.55);
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.2);
}

.runtime-chip--disabled {
  border-color: rgba(148, 163, 184, 0.45);
  color: #cbd5f5;
  background: rgba(148, 163, 184, 0.2);
}

.tool-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.tool-toggle {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--panel-2);
  padding: 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.tool-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tool-toggle .toggle-track {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  transition: background 0.2s ease, border 0.2s ease;
}

.tool-toggle .toggle-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 50%;
  left: 3px;
  transform: translate(0, -50%);
  transition: transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.tool-toggle input[type="checkbox"]:checked + .toggle-track {
  background: color-mix(in srgb, var(--accent) 35%, transparent);
  border-color: color-mix(in srgb, var(--accent) 75%, transparent);
}

.tool-toggle input[type="checkbox"]:checked + .toggle-track .toggle-thumb {
  transform: translate(18px, -50%);
}

.tool-toggle__body strong {
  display: block;
  font-size: 1rem;
}

.tool-toggle__description {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.primary-button {
  border: none;
  border-radius: 12px;
  padding: 10px 22px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #7dd3fc, #2563eb);
  color: #041018;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}

.primary-button:hover,
.primary-button:focus-visible {
  opacity: 0.95;
  outline: none;
  transform: translateY(-1px);
}

.settings-path {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.polling-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.polling-row .platform-toggle {
  margin-left: auto;
}

.platform-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
}

.platform-toggle input {
  position: absolute;
  opacity: 0;
}

.platform-toggle .toggle-track {
  width: 44px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  transition: background 0.2s ease, border 0.2s ease;
}

.platform-toggle .toggle-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 50%;
  left: 2px;
  transform: translate(0, -50%);
  transition: transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.platform-toggle input:checked + .toggle-track {
  background: color-mix(in srgb, var(--accent) 40%, transparent);
  border-color: color-mix(in srgb, var(--accent) 75%, transparent);
}

.platform-toggle input:checked + .toggle-track .toggle-thumb {
  transform: translate(20px, -50%);
}

.platform-toggle input:disabled + .toggle-track {
  opacity: 0.4;
}

.tool-status-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tool-status-meta p {
  margin: 0;
  color: var(--muted);
}

.tool-status-meta span {
  color: var(--text);
  font-size: 0.9rem;
}

.detail {
  color: var(--text);
  margin: 0;
}

.tool-status-meta .description {
  color: var(--muted);
  font-size: 0.9rem;
}

.tool-status-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-status-meta h3 {
  margin: 4px 0 0;
}

.tool-status-meta .description {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.callout {
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 12px 16px;
  font-weight: 600;
}

.callout--hidden {
  display: none;
}

.platform-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.platform-item {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--panel-2);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  padding: 0;
}

.platform-header {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
}

.platform-accordion-trigger {
  flex: 1 1 260px;
  border: none;
  background: transparent;
  color: inherit;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0;
  cursor: pointer;
}

.platform-accordion-trigger:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent);
  border-radius: 10px;
}

.platform-accordion-trigger:hover {
  transform: none;
  box-shadow: none;
}

.platform-accordion-trigger h3 {
  margin: 4px 0 0;
}

.platform-status-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.platform-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 140px;
  text-align: right;
}

.platform-controls form {
  margin: 0;
}

.platform-controls small {
  color: var(--muted);
}

.platform-panel {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(0, 0, 0, 0.15);
}

.platform-panel--open {
  display: flex;
}

.platform-panel--closed {
  display: none;
}

.platform-panel-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  margin: 0;
}

.platform-panel-row--name {
  width: 100%;
}

.platform-panel-row--stack {
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}

.platform-panel-form {
  width: 100%;
}

.platform-name-edit {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.platform-name-edit p {
  margin: 0;
}

.platform-name-input {
  width: 100%;
}

.platform-save-button {
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  padding: 10px 24px;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  min-width: 100px;
}

.platform-save-button:hover,
.platform-save-button:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  opacity: 0.9;
  transform: translateY(-1px);
  outline: none;
}

.platform-save-button--accent {
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  color: var(--text);
}

.save-config-button {
  margin-left: auto;
}

.platform-settings-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 0 0 auto;
}

.hero-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.hero-cta__button:hover,
.hero-cta__button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
  opacity: 0.95;
  outline: none;
}

.hero-cta__button--ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.hero-cta__button--ghost:hover,
.hero-cta__button--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.botbuilder-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 18px;
  align-items: start;
}

.botbuilder-card {
  gap: 16px;
}

.botbuilder-field {
  background: var(--panel-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.botbuilder-field--compact {
  padding: 12px;
}

.botbuilder-field-head h3,
.botbuilder-field-head h4 {
  margin: 0;
}

.botbuilder-description {
  margin: 0;
  color: var(--muted);
}

.botbuilder-example {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 10px;
  padding: 10px;
}

.botbuilder-input {
  font: inherit;
  resize: vertical;
  min-height: 120px;
}

.botbuilder-rail {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.botbuilder-rail-head h3 {
  margin: 4px 0;
}

.botbuilder-upload {
  border: 1px dashed rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.botbuilder-upload input {
  display: none;
}

.botbuilder-upload strong {
  display: block;
  margin-bottom: 4px;
}

.botbuilder-cta-bar {
  position: sticky;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.botbuilder-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.botbuilder-cta-note {
  margin: 0;
  font-size: 13px;
}

.botbuilder-shell .manage-hero {
  align-items: center;
}

@media (max-width: 1080px) {
  .botbuilder-layout {
    grid-template-columns: 1fr;
  }

  .botbuilder-cta-bar {
    position: static;
  }
}

.platform-settings-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.platform-settings-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.platform-settings-list strong {
  display: block;
  font-size: 0.9rem;
}

.platform-settings-list span {
  font-size: 0.85rem;
  color: var(--muted);
}

.platform-settings-list form {
  margin: 0;
}

.platform-settings-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.platform-settings-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.platform-settings-fields label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.platform-settings-fields input {
  min-height: 40px;
}

.platform-remove-button {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 0.8rem;
}

.platform-remove-button:hover,
.platform-remove-button:focus-visible {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.7);
  outline: none;
}

.platform-panel-fieldset {
  border: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.platform-panel.platform-panel--disabled {
  opacity: 0.55;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
  padding: 16px 24px 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-links a {
  color: inherit;
  text-decoration: underline;
}

.top-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.85));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  position: sticky;
  top: 0;
  z-index: 50;
}


.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--text);
}

.brand:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 70%, transparent);
  outline-offset: 4px;
}

.nav-toggle {
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 0;
  width: 32px;
  height: 32px;
  color: var(--text);
  cursor: pointer;
  display: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: none;
  transform: none;
  justify-content: right;
}

.nav-toggle:hover,
.nav-toggle:focus-visible,
.nav-toggle:active {
  background: transparent;
  box-shadow: none;
  transform: none;
}

.nav-toggle .nav-icon {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.7);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.12s ease;
}

.nav-toggle .nav-icon svg {
  width: 22px;
  height: 22px;
}

.nav-toggle:hover .nav-icon,
.nav-toggle:focus-visible .nav-icon {
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  background: rgba(15, 23, 42, 0.9);
  transform: translateY(-1px);
}

.nav-toggle:active .nav-icon {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(0);
}

.nav-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
}

.nav-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.links {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.nav-links-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

.links .nav-link {
  border-radius: 10px;
  border: none;
  background: transparent;
  padding: 0;
  font-weight: 600;
  color: var(--text, #eaf2ff);
  text-decoration: none;
  transition: color 0.15s ease;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 84px;
  box-shadow: none;
}

.links .nav-link:hover,
.links .nav-link:focus-visible,
.links .nav-link.active {
  color: var(--text);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  outline: none;
}

.links .nav-link .nav-label {
  font-size: 11px;
  letter-spacing: 0.2px;
  opacity: 0.85;
  line-height: 1;
  white-space: nowrap;
}

.links .nav-link .nav-icon {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.7);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.12s ease;
}

.links .nav-link .nav-icon svg {
  width: 28px;
  height: 28px;
}

.links .nav-link:hover .nav-icon,
.links .nav-link:focus-visible .nav-icon,
.links .nav-link.active .nav-icon {
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  background: rgba(15, 23, 42, 0.9);
  transform: translateY(-1px);
}

.links .nav-link:focus-visible .nav-icon {
  outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent);
  outline-offset: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  justify-self: end;
}

.nav-actions__account {
  display: inline-flex;
  align-items: center;
}

.mobile-nav-actions {
  display: none;
}

.mobile-account-link {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}

.mobile-account-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-account-name {
  font-weight: 700;
}

.mobile-account-email {
  font-size: 0.85rem;
  color: var(--muted);
}

.mobile-account-subscription {
  font-size: 0.85rem;
  color: var(--muted);
}

.mobile-nav-button,
.mobile-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: flex-start;
  padding: 8px 4px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
}

.mobile-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.mobile-nav-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.mobile-nav-button:hover,
.mobile-nav-button:focus-visible,
.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
  background: transparent;
  box-shadow: none;
  transform: none;
}

.mobile-nav-link--danger {
  color: #ffb3b3;
}

.mobile-nav-separator {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-form {
  margin: 0;
}

.account-area {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 44px;
  flex: 0 0 auto;
}

.account-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.host-notifications {
  position: relative;
  display: inline-flex;
}

.host-notifications__trigger .feedback-trigger__icon {
  position: relative;
}

.host-notifications__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  border: 1px solid rgba(15, 23, 42, 0.9);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35);
}

.host-notifications__badge[hidden] {
  display: none;
}

.host-notifications__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(420px, calc(100vw - 24px));
  max-height: min(70vh, 560px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(9, 14, 26, 0.96);
  color: var(--text, #eaf2ff);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  z-index: 1700;
}

.host-notifications__panel[hidden] {
  display: none;
}

.host-notifications__panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.host-notifications__panel-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.host-notifications__panel-subtitle {
  margin: 2px 0 0;
  font-size: 11px;
  color: rgba(226, 232, 240, 0.72);
}

.host-notifications__mark-all {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.7);
  color: inherit;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  cursor: pointer;
}

.host-notifications__mark-all:hover,
.host-notifications__mark-all:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: rgba(15, 23, 42, 0.95);
}

.host-notifications__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  min-height: 0;
}

.host-notifications__empty {
  margin: 0;
  padding: 14px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: rgba(226, 232, 240, 0.76);
  font-size: 12px;
}

.host-notifications__empty[hidden] {
  display: none;
}

.host-notifications__status {
  margin: 0;
  font-size: 12px;
  color: rgba(248, 113, 113, 0.92);
}

.host-notifications__status[hidden] {
  display: none;
}

.host-notifications__item {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.72);
  color: inherit;
  border-radius: 12px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 6px;
}

.host-notifications__item:hover,
.host-notifications__item:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  background: rgba(15, 23, 42, 0.95);
}

.host-notifications__item.is-read {
  opacity: 0.84;
}

.host-notifications__item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.host-notifications__item-title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
}

.host-notifications__item-time {
  font-size: 10px;
  color: rgba(226, 232, 240, 0.68);
  white-space: nowrap;
}

.host-notifications__item-message {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(234, 242, 255, 0.92);
}

.host-notifications__item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  color: rgba(226, 232, 240, 0.72);
}

.host-notifications__item-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.feedback-trigger {
  border: none;
  background: transparent;
  color: var(--text, #eaf2ff);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0;
  font-size: 11px;
  letter-spacing: 0.2px;
  cursor: pointer;
  text-align: center;
}

.feedback-trigger:hover,
.feedback-trigger:focus-visible {
  box-shadow: none;
  transform: none;
}

.feedback-trigger__icon {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.7);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.12s ease;
}

.feedback-trigger__label {
  line-height: 1;
  opacity: 0.85;
  white-space: nowrap;
}

.feedback-trigger:hover .feedback-trigger__icon,
.feedback-trigger:focus-visible .feedback-trigger__icon {
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  background: rgba(15, 23, 42, 0.9);
  transform: translateY(-1px);
}

.feedback-trigger:focus-visible .feedback-trigger__icon {
  outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent);
  outline-offset: 2px;
}

.feedback-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1600;
}

.feedback-modal[hidden] {
  display: none;
}

.feedback-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 21, 0.75);
}

.feedback-modal__card {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100% - 32px));
  background: #0d1325;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55);
  color: var(--text, #eaf2ff);
}

.feedback-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.feedback-modal__eyebrow {
  margin: 0 0 6px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(226, 232, 240, 0.7);
}

.feedback-modal__header h2 {
  margin: 0;
  font-size: 20px;
}

.feedback-modal__close {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.7);
  color: var(--text, #eaf2ff);
  width: 36px;
  height: 36px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.feedback-modal__close:hover,
.feedback-modal__close:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  outline: none;
}

.feedback-modal__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feedback-modal__field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.feedback-modal__field select,
.feedback-modal__field textarea {
  font: inherit;
}

.feedback-modal__hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: rgba(226, 232, 240, 0.7);
}

.feedback-modal__captcha {
  min-height: 78px;
}

.feedback-modal__status {
  margin: 0;
  font-size: 13px;
  color: rgba(226, 232, 240, 0.75);
}

.feedback-modal__status--error {
  color: #f87171;
}

.feedback-modal__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.feedback-modal__submit {
  border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  background: linear-gradient(135deg, var(--color-cyan), var(--accent-2));
  color: var(--bg);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 40px;
}

.feedback-modal__submit:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  filter: grayscale(0.2);
}

.feedback-modal__close-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text, #eaf2ff);
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 40px;
}

.feedback-modal__confirmation {
  margin: 0;
  font-size: 13px;
  color: rgba(226, 232, 240, 0.8);
}

.ask-dave {
  position: relative;
  z-index: 1500;
}

.ask-dave__panel {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6, 12, 24, 0.78);
  color: #eaf2ff;
  z-index: 1600;
}

.ask-dave__panel.open {
  display: flex;
  animation: ask-dave-fade 0.2s ease;
}

.ask-dave__panel[hidden] {
  display: none;
}

.ask-dave__modal {
  width: 80vw;
  height: 80vh;
  display: flex;
  flex-direction: column;
  background: rgba(12, 18, 34, 0.96);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  border-radius: 18px;
  transition: width 220ms ease;
}

.ask-dave:not(.ask-dave--artifacts) .ask-dave__modal {
  width: min(760px, calc(100vw - 32px));
}

.ask-dave:not(.ask-dave--artifacts) .ask-dave__bubble {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.ask-dave__modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 22px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, transparent), rgba(37, 99, 235, 0.18));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ask-dave__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11px;
  margin: 0 0 4px 0;
  color: rgba(234, 242, 255, 0.75);
}

.ask-dave__title {
  margin: 0;
  font-size: 20px;
}

.ask-dave__hint {
  margin: 6px 0 0 0;
  color: rgba(234, 242, 255, 0.85);
  font-size: 13px;
}

.ask-dave__close {
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #eaf2ff;
  border-radius: 10px;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.ask-dave__layout {
  flex: 1;
  display: grid;
  --ask-dave-divider-width: 12px;
  --ask-dave-chat-width: 55%;
  grid-template-columns: minmax(240px, var(--ask-dave-chat-width)) var(--ask-dave-divider-width) minmax(240px, 1fr);
  min-height: 0;
  transition: grid-template-columns 220ms ease;
}

.ask-dave:not(.ask-dave--artifacts) .ask-dave__layout {
  grid-template-columns: minmax(240px, 1fr) 0px 0px;
}

.ask-dave__pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.ask-dave__pane--chat {
  background: rgba(10, 16, 30, 0.95);
}

.ask-dave__divider {
  position: relative;
  width: var(--ask-dave-divider-width);
  background: rgba(255, 255, 255, 0.04);
  cursor: col-resize;
  touch-action: none;
  transition: opacity 200ms ease;
}

.ask-dave:not(.ask-dave--artifacts) .ask-dave__divider {
  opacity: 0;
  pointer-events: none;
}

.ask-dave__divider::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.ask-dave__divider:hover,
.ask-dave__divider:focus-visible {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  outline: none;
}

.ask-dave__divider:hover::before,
.ask-dave__divider:focus-visible::before {
  background: color-mix(in srgb, var(--accent) 60%, transparent);
}

.ask-dave__pane--artifacts {
  background: rgba(8, 12, 22, 0.92);
  transition: opacity 200ms ease, transform 200ms ease;
}

.ask-dave:not(.ask-dave--artifacts) .ask-dave__pane--artifacts {
  opacity: 0;
  transform: translateX(12px);
  pointer-events: none;
  overflow: hidden;
}

.ask-dave__body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  flex: 1;
}

.ask-dave__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.85);
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.ask-dave__breadcrumb[hidden] {
  display: none;
}

.ask-dave__message {
  display: flex;
}

.ask-dave__message--user {
  justify-content: flex-end;
  margin-right: 20px;
}

.ask-dave__message--dave {
  margin-left: 20px;
}

.ask-dave__message--note {
  justify-content: center;
  margin: 2px 0;
}

.ask-dave__message--dave .ask-dave__bubble {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}

.ask-dave__message--note .ask-dave__bubble {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ask-dave__message--user .ask-dave__bubble {
  background: rgba(37, 99, 235, 0.25);
  border: 1px solid rgba(37, 99, 235, 0.45);
}

.ask-dave__bubble {
  padding: 10px 12px;
  border-radius: 12px;
  line-height: 1.4;
  max-width: 80%;
  white-space: pre-wrap;
}

.ask-dave__message--live .ask-dave__bubble {
  opacity: 0.82;
  border-style: dashed;
}

.ask-dave__system-message {
  display: inline-block;
  max-width: min(90%, 680px);
  padding: 2px 8px;
  text-align: center;
  line-height: 1.35;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(226, 232, 240, 0.82);
  white-space: pre-wrap;
}

.ask-dave__voice {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 18, 34, 0.88);
}

.ask-dave__voice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ask-dave__voice-row--controls {
  justify-content: flex-start;
}

.ask-dave__mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ask-dave__mode-button {
  border: none;
  border-radius: 999px;
  background: transparent;
  color: rgba(234, 242, 255, 0.72);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.ask-dave__mode-button[aria-pressed="true"] {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 30%, transparent), rgba(37, 99, 235, 0.22));
  color: #eaf2ff;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
}

.ask-dave__mode-button:hover,
.ask-dave__mode-button:focus-visible {
  color: #eaf2ff;
  outline: none;
}

.ask-dave__voice-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(234, 242, 255, 0.88);
  background: rgba(148, 163, 184, 0.16);
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.ask-dave__voice[data-ask-dave-voice-state="connected"] .ask-dave__voice-status,
.ask-dave__voice[data-ask-dave-voice-state="speaking"] .ask-dave__voice-status,
.ask-dave__voice[data-ask-dave-voice-state="listening"] .ask-dave__voice-status {
  color: color-mix(in srgb, var(--accent) 96%, transparent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-color: color-mix(in srgb, var(--accent) 34%, transparent);
}

.ask-dave__voice[data-ask-dave-voice-state="connecting"] .ask-dave__voice-status,
.ask-dave__voice[data-ask-dave-voice-state="processing"] .ask-dave__voice-status,
.ask-dave__voice[data-ask-dave-voice-state="disconnecting"] .ask-dave__voice-status {
  color: rgba(253, 224, 71, 0.96);
  background: rgba(250, 204, 21, 0.12);
  border-color: rgba(250, 204, 21, 0.28);
}

.ask-dave__voice[data-ask-dave-voice-state="error"] .ask-dave__voice-status,
.ask-dave__voice[data-ask-dave-voice-state="restricted"] .ask-dave__voice-status,
.ask-dave__voice[data-ask-dave-voice-state="unsupported"] .ask-dave__voice-status {
  color: rgba(252, 165, 165, 0.96);
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.26);
}

.ask-dave__voice-detail {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.78);
}

.ask-dave__voice-action {
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 24%, transparent), rgba(37, 99, 235, 0.16));
  color: #eaf2ff;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.ask-dave__voice-action--secondary {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(234, 242, 255, 0.88);
}

.ask-dave__voice-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ask-dave__footer {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(15, 23, 42, 0.9);
  position: relative;
}

.ask-dave__avatar-button {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  width: 54px;
  min-width: 54px;
  height: 54px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.ask-dave__avatar-button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent);
  outline-offset: 2px;
}

.ask-dave__avatar {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.ask-dave__avatar-button .ask-dave__avatar {
  border: none;
}

.ask-dave__avatar-chevron {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(12, 18, 34, 0.95);
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
}

.ask-dave__avatar-chevron::before {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid rgba(234, 242, 255, 0.9);
  border-bottom: 2px solid rgba(234, 242, 255, 0.9);
  transform: rotate(45deg);
  margin-top: -2px;
}

.ask-dave__input {
  flex: 1;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: #eaf2ff;
  padding: 10px 12px;
  min-height: 54px;
  resize: none;
  line-height: 1.4;
}

.ask-dave__send {
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 30%, transparent), rgba(37, 99, 235, 0.25));
  color: #eaf2ff;
  padding: 10px 14px;
  cursor: pointer;
  min-width: 72px;
}

.ask-dave__send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ask-dave__bot-popover {
  position: absolute;
  left: 16px;
  bottom: calc(100% + 10px);
  min-width: 230px;
  max-width: 300px;
  background: rgba(12, 18, 34, 0.98);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  z-index: 5;
}

.ask-dave__bot-popover[hidden] {
  display: none;
}

.ask-dave__bot-popover-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 260px;
  overflow-y: auto;
}

.ask-dave__bot-item {
  border: none;
  background: transparent;
  color: inherit;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
}

.ask-dave__bot-item:hover,
.ask-dave__bot-item:focus-visible {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  outline: none;
}

.ask-dave__bot-item[aria-checked="true"] {
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
}

.ask-dave__bot-item-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  object-fit: cover;
  flex-shrink: 0;
}

.ask-dave__bot-item-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ask-dave__bot-item-name {
  font-size: 13px;
  font-weight: 600;
}

.ask-dave__bot-item-desc {
  font-size: 11px;
  color: rgba(234, 242, 255, 0.7);
  line-height: 1.3;
}

.ask-dave__bot-item-status {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 85%, transparent);
  display: none;
}

.ask-dave__bot-item[aria-checked="true"] .ask-dave__bot-item-status {
  display: inline-flex;
}

.ask-dave__bot-item-check {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
}

.ask-dave__bot-item-check::before {
  content: "";
  width: 6px;
  height: 10px;
  border-right: 2px solid rgba(234, 242, 255, 0.9);
  border-bottom: 2px solid rgba(234, 242, 255, 0.9);
  transform: rotate(45deg);
  margin-top: -2px;
}

.ask-dave__bot-item[aria-checked="true"] .ask-dave__bot-item-check {
  opacity: 1;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
}

.ask-dave__bot-empty {
  padding: 10px 12px;
  font-size: 12px;
  color: rgba(234, 242, 255, 0.7);
  text-align: center;
}

.ask-dave__toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 8px);
  background: rgba(12, 18, 34, 0.96);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  color: #eaf2ff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.01em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1700;
}

.ask-dave__toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.ask-dave__save-modal {
  position: absolute;
  inset: 0;
  background: rgba(6, 12, 24, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1701;
}

.ask-dave__save-modal[hidden] {
  display: none;
}

.ask-dave__save-card {
  width: min(520px, calc(100% - 32px));
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  background: rgba(12, 18, 34, 0.98);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 16px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.6);
}

.ask-dave__save-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, transparent), rgba(37, 99, 235, 0.18));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ask-dave__save-eyebrow {
  margin: 0 0 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  color: rgba(234, 242, 255, 0.75);
}

.ask-dave__save-title {
  margin: 0;
  font-size: 18px;
}

.ask-dave__save-close {
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #eaf2ff;
  border-radius: 10px;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.ask-dave__save-body {
  padding: 16px 18px 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

.ask-dave__save-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ask-dave__save-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: rgba(234, 242, 255, 0.7);
}

.ask-dave__save-input {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: #eaf2ff;
  padding: 10px 12px;
}

.ask-dave__save-destinations {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.ask-dave__save-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(234, 242, 255, 0.9);
}

.ask-dave__save-option input {
  width: 16px;
  height: 16px;
  accent-color: color-mix(in srgb, var(--accent) 90%, transparent);
}

.ask-dave__save-status {
  margin: 0;
  font-size: 12px;
  color: rgba(248, 113, 113, 0.9);
}

.ask-dave__save-actions {
  padding: 12px 18px 16px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.ask-dave__save-confirm {
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 30%, transparent), rgba(37, 99, 235, 0.25));
  color: #eaf2ff;
  padding: 8px 18px;
  cursor: pointer;
}

.ask-dave__save-confirm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ask-dave__save-cancel {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(234, 242, 255, 0.85);
  padding: 8px 18px;
  cursor: pointer;
}

.ask-dave__artifact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ask-dave__artifact-title {
  margin: 0;
  font-size: 15px;
}

.ask-dave__save {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(234, 242, 255, 0.8);
  padding: 6px 14px;
  font-size: 12px;
}

.ask-dave__save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ask-dave__artifact-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  flex: 1;
}

.ask-dave__artifact-placeholder {
  color: rgba(234, 242, 255, 0.6);
  font-size: 13px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 14px;
}

.ask-dave__artifact {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px;
}

.ask-dave__artifact h4 {
  margin: 0 0 8px 0;
  font-size: 14px;
}

.ask-dave__artifact-content {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(234, 242, 255, 0.9);
}

.ask-dave__artifact-content--svg svg {
  width: 100%;
  height: auto;
  display: block;
}

.ask-dave__artifact-content h1,
.ask-dave__artifact-content h2,
.ask-dave__artifact-content h3,
.ask-dave__artifact-content h4 {
  margin: 12px 0 6px 0;
}

.ask-dave__artifact-content p {
  margin: 0 0 8px 0;
}

.ask-dave__artifact-content ul {
  margin: 0 0 8px 18px;
  padding: 0;
}

.ask-dave__artifact-content code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 6px;
}

.ask-dave__artifact-content pre {
  background: rgba(15, 23, 42, 0.8);
  border-radius: 10px;
  padding: 10px 12px;
  overflow-x: auto;
}

@keyframes ask-dave-fade {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

body.ask-dave--resizing,
body.ask-dave--resizing * {
  cursor: col-resize;
  user-select: none;
}

@media (max-width: 960px) {
  .ask-dave {
    right: 14px;
    bottom: 14px;
  }

  .account-actions--signed-out .feedback-trigger {
    display: none;
  }

  .host-notifications__panel {
    right: -8px;
    width: min(420px, calc(100vw - 16px));
  }

  .ask-dave__layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .ask-dave__divider {
    display: none;
  }

  .ask-dave__pane--chat {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .ask-dave__modal {
    width: 94vw;
    height: 90vh;
  }

  .ask-dave__modal-header {
    padding: 14px 16px;
  }

  .ask-dave__voice {
    padding: 12px 14px;
  }

  .ask-dave__voice-row {
    align-items: flex-start;
  }

  .ask-dave__body,
  .ask-dave__artifact-body {
    padding: 14px;
  }
}

.account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #e5e7eb;
  font: inherit;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.account-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.account-trigger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.5);
}

.avatar-shell {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1f2937;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar-initials {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.25px;
  text-transform: uppercase;
  color: #e5e7eb;
}

.account-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  line-height: 1.2;
  text-align: left;
}

.account-name {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 180px;
}

.account-email {
  margin: 0;
  font-size: 12px;
  color: rgba(226, 232, 240, 0.75);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 200px;
}

.account-subscription {
  margin: 0;
  font-size: 12px;
  color: rgba(226, 232, 240, 0.75);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 240px;
}

.account-caret {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  color: rgba(226, 232, 240, 0.8);
}

.account-caret svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.account-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 320px;
  background: #0d1325;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
  padding: 16px;
  z-index: 1200;
  color: #e5e7eb;
  display: none;
}

.account-panel.open {
  display: block;
}

.panel-caret {
  position: absolute;
  top: -8px;
  right: 24px;
  width: 16px;
  height: 16px;
  background: #0d1325;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transform: rotate(45deg);
  box-shadow: -6px -6px 18px rgba(0, 0, 0, 0.3);
}

.panel-header {
  margin-bottom: 12px;
}

.panel-header-link {
  display: flex;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.panel-header-link:hover,
.panel-header-link:focus-visible {
  color: #f8fafc;
  outline: none;
}

.panel-header-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.panel-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.panel-avatar span {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  display: grid;
  place-items: center;
  background: #0b1220;
  color: #f1f5f9;
  font-size: 18px;
  font-weight: 700;
}

.panel-name {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #f8fafc;
}

.panel-email,
.panel-subscription,
.panel-caption,
.panel-tenant {
  margin: 0;
  font-size: 13px;
  color: rgba(226, 232, 240, 0.8);
}

.panel-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.account-action,
form.account-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #e5e7eb;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.account-action:hover,
.account-action:focus-visible,
form.account-action:hover,
form.account-action:focus-visible {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border-color: rgba(255, 255, 255, 0.16);
  outline: none;
  transform: translateY(-1px);
  box-shadow: none;
}

.account-action.danger,
form.account-action.danger {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.06);
}

form.account-action {
  margin: 0;
}

form.account-action button {
  all: unset;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: inherit;
  cursor: pointer;
  gap: 10px;
}

form.account-action button::after {
  content: "→";
  font-weight: 700;
  opacity: 0.8;
}

.auth-button {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(120deg, #1f2937, #0f172a);
  color: #f8fafc;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 42px;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.12s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-button:hover,
.auth-button:focus-visible {
  border-color: rgba(94, 234, 212, 0.6);
  background: linear-gradient(120deg, #1e293b, #0b1325);
  outline: none;
  transform: translateY(-1px);
}

.auth-button--accent {
  background: linear-gradient(135deg, var(--color-cyan), var(--accent-2));
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
}

.links .nav-link.icon-only {
  width: auto;
  height: auto;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.links .nav-link.icon-only .nav-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.links--hidden,
.nav-actions--hidden {
  visibility: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  border: none;
}

.mobile-nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 901px) {
  .mobile-nav-backdrop {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .top-nav {
    padding-right: 20px;
  }

  .nav-toggle {
    display: inline-flex;
    position: absolute;
    right: 20px;
    top: 50%;
    margin-top: -16px;
  }

  .links {
    position: fixed;
    top: 72px;
    left: 20px;
    right: 20px;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    align-items: stretch;
    justify-content: flex-start;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links-group {
    width: 100%;
    flex-direction: column;
    gap: 4px;
    align-items: stretch;
  }

  .links .nav-link {
    width: 100%;
    text-align: left;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    min-width: 0;
    padding: 8px 4px;
  }

  .links .nav-link.icon-only {
    width: 100%;
    padding: 8px 4px;
    justify-content: flex-start;
  }

  .links .nav-link .nav-icon {
    width: 20px;
    height: 20px;
    border: none;
    background: transparent;
  }

  .links .nav-link.icon-only .nav-icon {
    width: 20px;
    height: 20px;
  }

  .links .nav-link .nav-icon svg {
    width: 20px;
    height: 20px;
  }

  .links .nav-link:hover .nav-icon,
  .links .nav-link:focus-visible .nav-icon,
  .links .nav-link.active .nav-icon {
    border-color: transparent;
    background: transparent;
    transform: none;
  }

  .links .nav-link .nav-label {
    font-size: 14px;
    letter-spacing: 0.02em;
    opacity: 0.95;
  }

  .nav-actions--auth {
    position: static;
    margin-left: 0;
  }

  .nav-actions--auth .nav-actions__account {
    display: none;
  }

  .mobile-nav-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
}

.small {
  font-size: 0.85rem;
  opacity: 0.9;
}

.web-db-config {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px;
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.web-db-config__header h4 {
  margin: 4px 0;
}

.web-db-config__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-left: 6px;
}

.web-db-config__provider {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  justify-content: space-between;
}

.web-db-config__provider label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 240px;
}

.web-db-config__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.web-db-config__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.web-db-config__field--hidden {
  display: none;
}

.activation-server-config {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.activation-server-config__collapse {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activation-server-config__summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}

.activation-server-config__summary::-webkit-details-marker {
  display: none;
}

.activation-server-config__summary::marker {
  content: "";
}

.activation-server-config__summary::after {
  content: "+";
  color: var(--muted);
  font-size: 1rem;
}

.activation-server-config__collapse[open] > .activation-server-config__summary::after {
  content: "-";
}

.activation-server-config__summary:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent);
  border-radius: 10px;
}

.activation-server-config__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.activation-server-config__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

.activation-server-config__field input,
.activation-server-config__field textarea {
  min-height: 42px;
}

.activation-server-config__field textarea {
  min-height: 90px;
  resize: vertical;
}

.updates-server-config {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.updates-server-config__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.updates-server-config__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

.updates-server-config__field input,
.updates-server-config__field textarea {
  min-height: 42px;
}

.updates-server-config__field textarea {
  min-height: 90px;
  resize: vertical;
}

.updates-server-config__field small {
  color: var(--muted);
}

.identity-config {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px;
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.identity-config__section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.identity-config__section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.identity-config__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.identity-config__grid--thirds {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.identity-config__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

.identity-config__field input,
.identity-config__field textarea,
.identity-config__select {
  min-height: 40px;
}

.identity-config__field textarea {
  resize: vertical;
  min-height: 80px;
}

.identity-config__select {
  appearance: none;
}

.identity-config__field input:focus-visible,
.identity-config__field textarea:focus-visible,
.identity-config__select:focus-visible {
  outline: none;
}

.identity-config__field--checkbox {
  justify-content: flex-end;
}

.identity-config__field--password input {
  font-family: 'Segoe UI', sans-serif;
  letter-spacing: 0.04em;
}

.identity-config__field--full {
  grid-column: 1 / -1;
}

.identity-config .checkbox-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.identity-config .checkbox-line input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.identity-config__test-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.identity-config__test-button {
  border-radius: 999px;
  padding: 8px 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.identity-config__test-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.identity-config__test-button:not(:disabled):hover,
.identity-config__test-button:not(:disabled):focus-visible {
  opacity: 0.9;
  transform: translateY(-1px);
  outline: none;
}

.identity-config__test-status {
  font-size: 0.9rem;
  color: var(--muted);
}

.identity-config__test-status--success {
  color: #4ade80;
}

.identity-config__test-status--error {
  color: #f87171;
}

.identity-config__section--hidden {
  display: none;
}

.identity-config__hint {
  margin-top: 6px;
  line-height: 1.35;
}

.identity-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.identity-admin-fields--disabled {
  opacity: 0.65;
}

.identity-admin-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.identity-admin-summary {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.identity-admin-summary__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}

.identity-password-mask {
  letter-spacing: 0.2em;
}

.identity-password-input {
  position: relative;
  width: 100%;
}

.identity-password-input input {
  width: 100%;
  padding-right: 52px;
}

.identity-password-input--visible input {
  border-color: color-mix(in srgb, var(--accent) 75%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
}

.identity-password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: rgba(8, 15, 24, 0.8);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.identity-password-toggle__icon {
  width: 20px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.identity-password-toggle__icon::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  display: block;
}

.identity-password-toggle--active,
.identity-password-toggle:hover,
.identity-password-toggle:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 90%, transparent);
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 20%, transparent);
  outline: none;
}

.identity-password-input--visible .identity-password-toggle__icon::after {
  background: #041018;
}

.bot-service-config {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px;
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bot-service-config__section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bot-service-config__section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.bot-service-config__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.bot-service-config__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

.bot-service-config__field input,
.bot-service-config__field textarea {
  min-height: 40px;
}

.bot-service-config__field textarea {
  resize: vertical;
  min-height: 80px;
}

.bot-service-config__field--checkbox {
  justify-content: flex-end;
}

.bot-service-config__field--full {
  grid-column: 1 / -1;
}

.bot-service-config .checkbox-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.bot-service-config .checkbox-line input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.bot-manager-config {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px;
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bot-manager-config__callout {
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  padding: 12px 14px;
  color: var(--text);
  font-size: 0.9rem;
}

.bot-manager-config__section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bot-manager-config__section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.bot-manager-config__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.bot-manager-config__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

.bot-manager-config__field input,
.bot-manager-config__field textarea {
  min-height: 40px;
}

.bot-manager-config__field textarea {
  resize: vertical;
  min-height: 80px;
}

.bot-manager-config__field--checkbox {
  justify-content: flex-end;
}

.bot-manager-config__field--full {
  grid-column: 1 / -1;
}

.bot-manager-config .checkbox-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.bot-manager-config .checkbox-line input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.bot-manager-config__key-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bot-manager-config__key {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bot-manager-config__key-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.progress-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.progress-modal--open {
  display: flex;
}

.progress-modal__panel {
  width: min(420px, 100%);
  background: var(--panel);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.progress-modal__header h3 {
  margin: 0 0 4px;
}

.progress-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.progress-step {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.progress-step__icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.progress-step__status {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.progress-step--running .progress-step__icon {
  border-color: color-mix(in srgb, var(--accent) 70%, transparent);
}

.progress-step--success {
  border-color: rgba(52, 211, 153, 0.6);
}

.progress-step--success .progress-step__icon {
  border-color: rgba(52, 211, 153, 0.8);
  background: rgba(52, 211, 153, 0.2);
}

.progress-step--error {
  border-color: rgba(248, 113, 113, 0.7);
}

.progress-step--error .progress-step__icon {
  border-color: rgba(248, 113, 113, 0.9);
  background: rgba(248, 113, 113, 0.2);
}

.progress-step--skipped {
  opacity: 0.5;
}

.progress-modal__message {
  margin: 0;
  font-weight: 600;
}

.progress-modal__actions {
  display: flex;
  justify-content: flex-end;
}

.progress-modal__close {
  border-radius: 999px;
  padding: 8px 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.progress-modal__close:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.progress-modal__close:not(:disabled):hover,
.progress-modal__close:not(:disabled):focus-visible {
  opacity: 0.85;
  outline: none;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 210;
  padding: 20px;
}

.confirm-modal--open {
  display: flex;
}

.confirm-modal__panel {
  width: min(360px, 100%);
  background: var(--panel);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.confirm-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.confirm-modal__button {
  border-radius: 999px;
  padding: 8px 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.confirm-modal__button--primary {
  background: linear-gradient(135deg, var(--color-cyan), var(--accent-2));
  border: none;
  color: #041018;
}

.account-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 99;
}

.account-modal[hidden] {
  display: none;
}

.account-modal--open {
  display: flex;
}

.account-modal__panel {
  width: min(520px, 100%);
  background: var(--panel);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
  padding: 18px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.account-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.account-modal__eyebrow {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.account-modal__close {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.account-modal__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.account-modal__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.account-modal__field label {
  font-weight: 600;
}

.account-modal__field input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.account-modal__field input:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 85%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, color-mix(in srgb, var(--accent) 85%, transparent) 30%, transparent);
}

.account-modal__hint {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}

.account-modal__divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.account-modal__divider::before,
.account-modal__divider::after {
  content: "";
  display: block;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.account-modal__status {
  min-height: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.account-modal__status.error {
  color: #fca5a5;
}

.account-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.account-modal__button {
  border-radius: 999px;
  padding: 10px 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--text);
  cursor: pointer;
}

.account-modal__button--primary {
  background: linear-gradient(135deg, var(--color-cyan), var(--accent-2));
  border: none;
  color: #041018;
}

.web-db-config__field--full {
  grid-column: 1 / -1;
}

.web-db-config__field--wide {
  grid-column: span 2;
}

.web-db-config__field-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: flex-end;
}

.web-db-config__field input,
.web-db-config__field textarea {
  min-height: 40px;
}

.web-db-config__field textarea {
  resize: vertical;
  min-height: 80px;
}

.web-db-config__select {
  appearance: none;
  width: 100%;
  padding: 12px 48px 12px 16px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background-color: rgba(13, 19, 32, 0.95);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  background-image:
    linear-gradient(45deg, transparent 50%, color-mix(in srgb, var(--accent) 95%, transparent) 50%),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 95%, transparent) 50%, transparent 50%),
    radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 25%, transparent), transparent 45%);
  background-position:
    calc(100% - 24px) calc(50% - 2px),
    calc(100% - 18px) calc(50% - 2px),
    0 0;
  background-size: 7px 7px, 7px 7px, 60% 60%;
  background-repeat: no-repeat;
  box-shadow: 0 10px 24px rgba(2, 6, 16, 0.65);
}

.web-db-config__select:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 85%, transparent);
  background-color: rgba(16, 24, 44, 0.98);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent);
}

.web-db-config__select option {
  background-color: #070c18;
  color: var(--text);
}

.web-db-config__select::-ms-expand {
  display: none;
}

.web-db-config__toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.web-db-config__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.web-db-config__toggle--inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.web-db-config__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.web-db-config__reset {
  border-color: rgba(248, 113, 113, 0.6);
  color: #fecaca;
}

.web-db-config__reset:hover,
.web-db-config__reset:focus-visible {
  border-color: rgba(248, 113, 113, 0.8);
  color: #fff;
  outline: none;
}

@media (max-width: 640px) {
  .web-db-config__grid {
    grid-template-columns: 1fr;
  }

  .web-db-config__field--full {
    grid-column: auto;
  }
}

@media (max-width: 1024px) {
  .manage-body {
    grid-template-columns: 1fr;
  }

  .manage-nav {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    padding: 10px;
    background: linear-gradient(135deg, rgba(16, 24, 43, 0.95), rgba(16, 24, 43, 0.85));
  }
}

@media (max-width: 640px) {
  .manage-shell.manage-shell--panel-scroll .manage-tags {
    margin-top: 0;
  }

  .manage-shell {
    padding: 14px 12px 20px;
  }

  .manage-hero {
    padding: 18px;
    flex-direction: column;
  }

  .hero-metrics {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }
}

.activation-loading {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    text-align: center;
}

.activation-loading .activation-field {
    align-items: center;
}

.activation-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.08);
    border-top-color: #5b6cff;
    border-radius: 50%;
    animation: activation-spin 0.9s linear infinite;
    margin-top: 2px;
}

@keyframes activation-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* =============================================================
   Shared manage-shell surface styles
   (Previously generated at runtime by PlatformThemeCssBuilder)
   ============================================================= */

/* Shared manage shell parity for /manage, /host, and /platform */
.manage-shell {
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
}

.manage-shell.manage-shell--panel-scroll .manage-content {
  min-height: 0;
  overflow: visible;
}

.manage-shell.manage-shell--panel-scroll .manage-tags .manage-tag--primary {
  padding-left: 28px;
}

.manage-nav::-webkit-scrollbar {
  height: 6px;
}

.manage-nav::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 999px;
}

/* Shared list-page parity for /manage and /platform */
.manage-knowledge-card .knowledge-loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 200px;
  color: var(--muted);
  font-weight: 600;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.manage-knowledge-card .manage-table thead th,
.manage-knowledge-card .bot-manage-table thead th {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  color: rgba(226, 232, 240, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.manage-knowledge-card .manage-table th,
.manage-knowledge-card .manage-table td {
  padding-top: 8px;
  padding-bottom: 8px;
}

.manage-knowledge-card .bot-manage-row,
.manage-knowledge-card .bot-manage-row:nth-child(even) {
  background: transparent;
  cursor: default;
  transition: background-color 0.12s ease, color 0.12s ease;
  border-top: none;
}

.manage-knowledge-card .manage-table tbody tr {
  border-top: none;
}

.manage-knowledge-card .bot-manage-row:hover {
  background: var(--s2);
  color: var(--text);
}

.manage-knowledge-card .bot-manage-row:active {
  background: var(--s0);
  color: var(--text);
}

.manage-knowledge-card .bot-manage-row:hover .muted,
.manage-knowledge-card .bot-manage-row:active .muted {
  color: var(--text);
}

.manage-knowledge-card .knowledge-health-status {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

.bot-search__field input {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--text);
  font-family: inherit;
}

.manage-knowledge-card .manage-knowledge-search__field input {
  border: none !important;
  border-radius: 12px;
  box-shadow: none !important;
  background: linear-gradient(180deg, rgba(5, 10, 20, 0.96), rgba(8, 14, 28, 0.98));
  min-height: 36px;
  height: 36px;
  line-height: 36px;
  padding: 0 12px;
}

.manage-knowledge-card .manage-knowledge-search__field input:focus,
.manage-knowledge-card .manage-knowledge-search__field input:focus-visible {
  outline: none;
  border: none !important;
  box-shadow: none !important;
}

.manage-knowledge-card .manage-sort-button {
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.manage-knowledge-card .manage-sort-button:hover,
.manage-knowledge-card .manage-sort-button:focus-visible {
  color: var(--text);
  outline: none;
}

.manage-knowledge-card .manage-sort-button__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  opacity: 0.38;
  transform: rotate(0deg);
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.manage-knowledge-card .manage-sort-button__icon svg {
  width: 12px;
  height: 12px;
}

.manage-knowledge-card .manage-sort-button__icon.is-active {
  opacity: 0.88;
}

.manage-knowledge-card .manage-sort-button__icon.is-asc {
  transform: rotate(180deg);
}

.manage-knowledge-card .manage-sort-button__icon.is-desc {
  transform: rotate(0deg);
}

.manage-knowledge-card .bot-cell--numeric {
  text-align: left;
  white-space: nowrap;
}

.host-actions.is-open .host-actions__trigger {
  position: relative;
  z-index: 21;
}

.manage-knowledge-card .host-actions__menu {
  min-width: 210px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--panel);
  box-shadow: none;
}

.manage-knowledge-card .host-actions__menu.host-actions__menu--cursor {
  position: fixed;
  top: 0;
  left: 0;
  right: auto;
  z-index: 2300;
}

.manage-knowledge-card .host-actions__item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 6px 10px;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  text-align: left;
  transition: none;
}

.manage-knowledge-card .host-actions__item:hover,
.manage-knowledge-card .host-actions__item:focus-visible,
.manage-knowledge-card .host-actions__item:active {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--text);
  box-shadow: none;
  outline: none;
}

.manage-knowledge-card .host-actions__item.danger,
.manage-knowledge-card .host-actions__item.danger:hover,
.manage-knowledge-card .host-actions__item.danger:focus-visible,
.manage-knowledge-card .host-actions__item.danger:active {
  color: var(--danger);
}

.host-actions-form {
  margin: 0;
}

.host-actions__item-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
}

/* Shared collapsible side-nav contract for /manage, /host, and /platform */
.manage-shell.manage-shell--panel-scroll {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  padding-left: 0;
  overflow-y: hidden;
  overflow-x: visible;
}

.manage-shell.manage-shell--panel-scroll .manage-body {
  grid-template-columns: fit-content(232px) minmax(0, 1fr);
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: visible;
}

.manage-shell.manage-shell--panel-scroll.manage-shell--collapsible-nav .manage-nav-shell {
  --manage-nav-expanded-width: 214px;
  --manage-nav-collapsed-width: 70px;
  --manage-nav-active-width: var(--manage-nav-expanded-width);
  position: sticky;
  top: 0;
  align-self: flex-start;
  display: block;
  width: var(--manage-nav-active-width);
  max-width: 232px;
  min-height: 0;
  transition: width 220ms ease;
}

.manage-shell.manage-shell--panel-scroll.manage-shell--collapsible-nav .manage-nav-shell.is-collapsed {
  --manage-nav-active-width: var(--manage-nav-collapsed-width);
}

.manage-shell.manage-shell--panel-scroll.manage-shell--collapsible-nav .manage-nav {
  width: 100%;
  max-width: none;
  position: relative;
  top: 0;
  align-self: flex-start;
  margin-left: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  padding-left: 0;
  padding-right: 16px;
  gap: 0;
  min-height: 0;
  max-height: none;
  overflow-y: visible;
  transition: width 220ms ease, padding 220ms ease;
}

.manage-shell--collapsible-nav .manage-nav-toggle {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 12px !important;
  min-width: 12px !important;
  max-width: 12px !important;
  height: auto !important;
  min-height: 0 !important;
  border: 0;
  border-left: 1px solid rgba(159, 176, 215, 0.2);
  border-top-right-radius: 13px;
  border-bottom-right-radius: 13px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(6, 10, 18, 0.3));
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer;
  transition: background 0.18s ease, border-left-color 0.18s ease;
  z-index: 2;
}

.manage-shell--collapsible-nav .manage-nav-toggle:hover,
.manage-shell--collapsible-nav .manage-nav-toggle:focus-visible {
  border-left-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: linear-gradient(180deg, rgba(19, 34, 56, 0.45), rgba(7, 14, 26, 0.65));
  outline: none;
}

.manage-shell--collapsible-nav .manage-nav-toggle__grip {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 46px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.manage-shell--collapsible-nav .manage-nav-toggle__grip::before {
  content: "";
  width: 2px;
  height: 18px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.58);
}

.manage-shell--collapsible-nav .manage-nav-toggle__grip::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(234, 242, 255, 0.82);
  box-shadow: 0 -5px 0 rgba(234, 242, 255, 0.68), 0 5px 0 rgba(234, 242, 255, 0.68);
}

.manage-shell.manage-shell--panel-scroll .manage-nav .nav-pill {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 4px 10px;
  min-height: 38px;
  margin: 0;
  min-width: 0 !important;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  appearance: none;
  transition: border-color 0.18s ease, background 0.18s ease;
  scroll-snap-align: start;
}

.manage-shell.manage-shell--panel-scroll .manage-nav .nav-pill:not(.active):hover,
.manage-shell.manage-shell--panel-scroll .manage-nav .nav-pill:not(.active):focus-visible {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  outline: none;
}

.manage-shell.manage-shell--panel-scroll .manage-nav .nav-pill.active {
  border-color: color-mix(in srgb, var(--accent) 80%, transparent);
  border-left-color: transparent;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.nav-glyph {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 20%, transparent), color-mix(in srgb, var(--accent-2) 28%, transparent));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.nav-glyph svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.nav-text strong {
  display: block;
  font-size: 14px;
}

.nav-text small {
  color: var(--muted);
}

.manage-shell.manage-shell--panel-scroll .manage-nav .nav-text {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  min-height: 26px;
  min-width: 0;
  max-width: 154px;
  overflow: hidden;
  transition: max-width 220ms ease, opacity 180ms ease, transform 180ms ease;
}

.manage-shell.manage-shell--panel-scroll .manage-nav .nav-glyph {
  width: 30px;
  height: 30px;
  border-radius: 10px;
}

.manage-shell.manage-shell--panel-scroll .manage-nav .nav-glyph svg {
  width: 18px;
  height: 18px;
}

.manage-shell.manage-shell--panel-scroll .manage-nav .nav-text small {
  display: none;
}

.manage-shell.manage-shell--panel-scroll .manage-nav .nav-text strong {
  line-height: 1.2;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.manage-shell.manage-shell--panel-scroll.manage-shell--collapsible-nav .manage-nav-shell.is-collapsed .manage-nav {
  padding-right: 14px;
}

.manage-shell.manage-shell--panel-scroll.manage-shell--collapsible-nav .manage-nav-shell.is-collapsed .manage-nav .nav-pill {
  grid-template-columns: auto 0;
  justify-content: center;
  gap: 0;
  padding-left: 6px;
  padding-right: 4px;
}

.manage-shell.manage-shell--panel-scroll.manage-shell--collapsible-nav .manage-nav-shell.is-collapsed .manage-nav .nav-pill.active {
  border-left-color: color-mix(in srgb, var(--accent) 80%, transparent);
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.manage-shell.manage-shell--panel-scroll.manage-shell--collapsible-nav .manage-nav-shell.is-collapsed .manage-nav .nav-text {
  max-width: 0;
  opacity: 0;
  transform: translateX(-8px);
  pointer-events: none;
}

.manage-shell.manage-shell--panel-scroll.manage-shell--collapsible-nav .manage-nav-shell.is-collapsed .manage-nav .nav-count {
  display: none;
}

.manage-shell.manage-shell--panel-scroll.manage-shell--collapsible-nav .manage-nav-shell.is-collapsed .manage-nav .nav-glyph {
  width: 32px;
  height: 32px;
}

.nav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}

@media (max-width: 1024px) {
  .manage-shell.manage-shell--panel-scroll .manage-body {
    grid-template-columns: 1fr;
  }

  .manage-shell.manage-shell--panel-scroll.manage-shell--collapsible-nav .manage-nav-shell {
    position: sticky;
    top: 0;
    display: block;
    width: auto;
    max-width: none;
  }

  .manage-shell.manage-shell--panel-scroll.manage-shell--collapsible-nav .manage-nav-toggle {
    display: none;
  }

  .manage-shell.manage-shell--panel-scroll .manage-nav {
    width: auto;
    max-width: none;
    position: sticky;
    top: 0;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    gap: 12px;
    padding: 10px;
    scroll-snap-type: x proximity;
    background: var(--s0);
    z-index: 20;
  }

  .manage-shell.manage-shell--panel-scroll.manage-shell--collapsible-nav .manage-nav-shell.is-collapsed .manage-nav .nav-pill {
    grid-template-columns: auto 1fr auto;
    justify-items: stretch;
    padding-left: 10px;
    padding-right: 10px;
  }

  .manage-shell.manage-shell--panel-scroll.manage-shell--collapsible-nav .manage-nav-shell.is-collapsed .manage-nav .nav-pill.active {
    border-left-color: transparent;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }

  .manage-shell.manage-shell--panel-scroll.manage-shell--collapsible-nav .manage-nav-shell.is-collapsed .manage-nav .nav-text {
    max-width: 154px;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .manage-shell.manage-shell--panel-scroll.manage-shell--collapsible-nav .manage-nav-shell.is-collapsed .manage-nav .nav-count {
    display: inline-flex;
  }

  .manage-shell.manage-shell--panel-scroll .manage-nav .nav-pill {
    min-width: 220px;
  }
}

@media (max-width: 640px) {
  .manage-shell.manage-shell--panel-scroll .manage-nav {
    margin-left: 0;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
  }
}
