@font-face {
  font-family: "Avenir Next Cyr";
  src: url('/public/fonts/avenir/AvenirNextCyr-Regular.woff2') format('woff2'),
       url('/public/fonts/avenir/AvenirNextCyr-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Avenir Next Cyr";
  src: url('/public/fonts/avenir/AvenirNextCyr-Medium.woff2') format('woff2'),
       url('/public/fonts/avenir/AvenirNextCyr-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Avenir Next Cyr";
  src: url('/public/fonts/avenir/AvenirNextCyr-Demi.woff2') format('woff2'),
       url('/public/fonts/avenir/AvenirNextCyr-Demi.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Avenir Next Cyr";
  src: url('/public/fonts/avenir/AvenirNextCyr-Bold.woff2') format('woff2'),
       url('/public/fonts/avenir/AvenirNextCyr-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f3f5f6;
  --panel: #ffffff;
  --sidebar: #e8edf1;
  --surface-soft: #edf1f3;
  --surface-muted: #e3e9ed;
  --surface-hover: #dce4e9;
  --surface-pressed: #d0dce3;
  --row-alt: #f0f3f5;
  --line: #dce2e6;
  --line-dark: #b1bbc2;
  --text: #3e4b50;
  --text-strong: #24383f;
  --muted: #647176;
  --primary: #365fc7;
  --primary-hover: #284ba6;
  --danger: #a63843;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  width: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Avenir Next Cyr", "Avenir", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text-strong);
  font-weight: 600;
}

p {
  margin: 0;
}

.card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  min-width: 0;
}

.card.soft {
  background: transparent;
}

label {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  background: #fff;
  color: var(--text-strong);
  font-size: 15px;
  padding: 13px 14px;
  font-family: inherit;
  margin-bottom: 8px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: none;
}

button,
.btn {
  border: 0;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  padding: 12px 18px;
  min-height: 44px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

button:hover,
.btn:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn.block {
  width: 100%;
}

button.secondary {
  background: var(--surface-muted);
  border: 0;
  color: #334a50;
}

button.secondary:hover {
  background: var(--surface-hover);
}

button.danger {
  background: #f6e7e4;
  border: 0;
  color: #9c303c;
}

button.danger:hover {
  background: #efdbd7;
}

button.ghost,
.btn.ghost {
  background: var(--surface-muted);
  border: 0;
  color: #334a50;
}

.stack {
  display: grid;
  gap: 9px;
}

.note,
.muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.error {
  color: var(--danger);
  font-weight: 600;
  font-size: 13px;
  margin: 0 0 12px;
}

.success {
  color: #3f8c5f;
  font-weight: 600;
  font-size: 13px;
  margin: 0 0 12px;
}

.success-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 0;
  background: #e5eee5;
  color: #28523b;
  border-radius: 6px;
  padding: 18px;
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 18px;
}

.success-banner i {
  font-size: 14px;
  margin-top: 1px;
}

.small {
  margin: 0;
  font-size: 12px;
}

.strong {
  font-weight: 600;
}

:root {
  --status-success: #86c35c;
  --status-warning: #f2be45;
  --status-danger: #ff685f;
}

.badge,
.support-chat-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  background: #7b8b94;
  color: #fff;
  white-space: nowrap;
}

.badge.ok,
.support-chat-status.status-open {
  background: var(--status-success);
  color: #fff;
}

.badge.warn,
.support-chat-status.status-pending {
  background: var(--status-warning);
  color: #fff;
}

.badge.danger,
.support-chat-status.status-closed {
  background: var(--status-danger);
  color: #fff;
}

pre {
  margin: 12px 0 0;
  background: var(--surface-soft);
  color: #34484e;
  border-radius: 4px;
  padding: 18px;
  overflow-x: auto;
  border: 0;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 13px;
}

code {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  background: transparent;
  border-radius: 0;
  padding: 0;
  font-size: 0.88em;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
}

.sidebar {
  background: var(--sidebar);
  color: var(--text);
  padding: 32px 18px 18px;
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow-y: auto;
}

.brand {
  color: var(--text-strong);
  border-radius: 0;
  padding: 6px 10px 14px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.brand img {
  width: 127.5px;
  height: auto;
}

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

.side-nav a {
  color: #41565b;
  border-radius: 5px;
  padding: 11px 14px;
  font-weight: 500;
  font-size: 15px;
}

.side-nav a.active {
  background: var(--primary);
  color: #fff;
}

.side-nav a:hover {
  background: var(--surface-hover);
  color: #24383f;
}

.side-nav-fold {
  margin: 0;
}

.side-nav-toggle {
  list-style: none;
  cursor: pointer;
  color: #41565b;
  border-radius: 5px;
  padding: 11px 14px;
  font-weight: 500;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.side-nav-toggle::-webkit-details-marker {
  display: none;
}

.side-nav-toggle.active,
.side-nav-toggle:hover {
  background: var(--surface-hover);
  color: #24383f;
}

.side-nav-fold .angle-down {
  display: none;
}

.side-nav-fold[open] .angle-right {
  display: none;
}

.side-nav-fold[open] .angle-down {
  display: inline-block;
}

.side-nav .side-subnav-link {
  display: block;
  color: #53666a;
  border-radius: 5px;
  padding: 7px 14px 7px 26px;
  font-weight: 400;
  font-size: 14px;
}

.side-nav .side-subnav-link:hover {
  background: var(--surface-hover);
  color: #24383f;
}

.side-nav a.active,
.side-subnav-link.active {
  background: var(--primary);
  color: #fff;
}

.side-nav-admin {
  display: grid;
  gap: 4px;
  margin-top: 24px;
}

.side-nav-group-title {
  color: #506368;
  padding: 6px 14px 10px;
  font-weight: 600;
  font-size: 13px;
  background: transparent;
}

.side-nav-group-title.active {
  color: #4f5465;
}

.side-nav-admin .side-subnav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.side-badge {
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  padding: 0 5px;
}

.sidebar-user {
  border-color: var(--line);
}


.sidebar .ghost {
  width: 100%;
}


.sidebar .icon-btn {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--primary);
}

.sidebar .icon-btn i {
  font-size: 14px;
}

.sidebar .icon-btn:hover {
  background: transparent;
  color: var(--primary-hover);
}

.main-content {
  min-width: 0;
  padding: 48px clamp(24px, 3vw, 56px) 64px;
}

.page-head {
  margin-bottom: 36px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  font-size: clamp(28px, 2.4vw, 36px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.dashboard-main > section {
  margin-top: 24px;
}

.dashboard-main {
  padding-top: 32px;
}

.dashboard-main .page-head {
  margin-bottom: 0;
}

.dashboard-main .stat-grid {
  padding: 0;
}

.dashboard-main .stat-card {
  min-height: 0;
}

.dashboard-main .stat-main {
  margin-bottom: 0;
}

.chart-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 36px;
  padding: 28px;
  background: #fff;
  border-radius: 6px;
}

.chart-card h2 {
  font-size: 17px;
  line-height: 1.45;
  margin-bottom: 18px;
}

.chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.global-settings-card {
  max-width: 500px;
}

.global-settings-form {
  gap: 1.25em;
}

.global-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
}

.global-settings-grid label {
  margin: 0;
  display: grid;
  gap: 14px;
  font-size: 15px;
  color: var(--text);
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.slider-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75em;
  align-items: center;
}

.slider-field output {
  min-width: 76px;
  text-align: right;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-strong);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -7px;
  border-radius: 50%;
  border: 0;
  background: #ffffff;
  box-shadow: 0 1px 6px rgba(76, 125, 246, 0.35);
}

input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  border: 0;
  background: var(--primary);
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 0;
  background: #ffffff;
  box-shadow: 0 1px 6px rgba(76, 125, 246, 0.35);
}

.global-settings-save-btn {
  min-height: 54px;
  width: fit-content;
  padding-left: 2em;
  padding-right: 2em;
}

.chart-head h2 {
  margin-bottom: 0;
}

.chart-canvas {
  height: 320px;
}

.chart-switch {
  display: inline-flex;
  border: 0;
  border-radius: 4px;
  padding: 3px;
  overflow: hidden;
  background: var(--surface-soft);
}

.chart-switch-btn {
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #53666a;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  min-height: 32px;
}

.chart-switch-btn:last-child {
  border-right: 0;
}

.chart-switch-btn:hover {
  background: var(--surface-soft);
  color: #5b6275;
}

.chart-switch-btn.active {
  background: #fff;
  color: #294f9b;
}

.stat-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  margin-bottom: 0;
  padding: 28px 0;
  background: transparent;
}

.stat-card {
  min-height: 112px;
  padding: 0;
}

.stat-card h3 {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 12px;
}

.stat-main {
  font-size: 30px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 8px;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.alert-card {
  margin-bottom: 12px;
}

.key-reveal-actions {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.key-reveal-actions .secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.key-create-limits-note {
  margin-top: 2em;
  margin-bottom: 0.6em;
  padding-left: 1.2em;
}

.key-create-limits-note li + li {
  margin-top: 0.35em;
}

.api-keys-filters-panel {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0;
  padding-right: 0;
}

.api-keys-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  white-space: nowrap;
  font-size: 0.92em;
  color: #646676;
  line-height: 1.2;
}

.create-key-btn {
  min-height: 60px;
  margin-top: 1.5em;
}

.create-key-btn:disabled,
.create-key-btn.is-disabled,
.create-key-btn:disabled:hover,
.create-key-btn.is-disabled:hover,
.create-key-btn:disabled:active,
.create-key-btn.is-disabled:active,
.create-key-btn:disabled:focus,
.create-key-btn.is-disabled:focus {
  background: var(--primary);
  border-color: var(--primary);
  color: rgba(255, 255, 255, 0.3);
  -webkit-text-fill-color: rgba(255, 255, 255, 0.3);
  opacity: 1;
  cursor: default;
  pointer-events: none;
  box-shadow: none;
  transform: none;
}

.api-keys-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.api-keys-table-head h2 {
  margin: 0;
}

.th-with-help {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.icon-copy-key-btn {
  min-height: 32px;
  height: 32px;
  width: 32px;
  padding: 0;
  margin-left: 6px;
  border-radius: 4px;
  border: 0;
  background: transparent;
  color: #48616a;
  vertical-align: middle;
}

.icon-copy-key-btn:hover {
  background: var(--surface-soft);
  border-color: #c8cfde;
  color: #51586d;
}

.icon-copy-key-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.help-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #98a0b3;
  cursor: help;
}

.help-tooltip i {
  font-size: 12px;
}

.help-tooltip-text {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  min-width: 280px;
  max-width: 320px;
  background: #4f5263;
  color: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 30;
}

.help-tooltip:hover .help-tooltip-text {
  opacity: 1;
  visibility: visible;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(260px, 310px) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.support-grid {
  grid-template-columns: minmax(280px, 350px) minmax(0, 1fr);
}

.admin-users-grid {
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
}

.admin-users-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.admin-users-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.admin-users-pagination .btn.disabled {
  pointer-events: none;
  opacity: 0.45;
}

.admin-users-keys-title {
  margin: 12px 0 10px;
  font-size: 18px;
}

.admin-users-key-form {
  margin: 0;
}

.admin-user-approval-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding: 18px;
  border: 0;
  background: var(--surface-soft);
}

.admin-user-approval-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-user-approval-actions form {
  margin: 0;
}

tr.is-selected {
  background: #f7f9ff;
}

.admin-user-row {
  cursor: pointer;
}

.key-row-deactivated {
  opacity: 0.52;
}

.key-full-value code {
  white-space: normal;
  word-break: break-all;
}

.support-filter-card {
  margin-bottom: 30px;
}

.support-filter-form {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.support-filter-field {
  display: grid;
  gap: 4px;
}

.support-filter-search {
  min-width: 240px;
  flex: 1 1 280px;
}

.support-filter-actions {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.support-filter-form .support-filter-field label {
  margin-bottom: 0;
}

.support-filter-form .support-filter-field select,
.support-filter-form .support-filter-field input,
.support-filter-form .support-filter-actions button,
.support-filter-form .support-filter-actions .btn {
  height: 44px;
  min-height: 44px;
  margin: 0;
}

.support-filter-form .support-filter-field select {
  min-width: 150px;
}

.support-filter-form .support-filter-actions button {
  padding-left: 1.2em;
  padding-right: 1.2em;
}

.support-filter-reset-btn {
  padding-left: 1.2em;
  padding-right: 1.2em;
}

.support-thread-card {
  margin-top: 40px;
  display: grid;
  gap: 24px;
}

.support-thread-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.support-thread-list {
  display: grid;
  gap: 24px;
  max-height: 540px;
  overflow-y: auto;
  padding-right: 8px;
}

.support-message {
  border: 0;
  border-radius: 0;
  padding: 18px 24px;
  background: #fff;
}

.support-message.from-admin {
  background: #e7edf8;
}

.support-message-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.support-message .markdown-body {
  margin-top: 0;
}

.support-status-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.support-actions-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.support-actions-row .support-status-form {
  order: 1;
  flex: 0 0 auto;
}

.support-actions-row .support-reply-submit {
  order: 2;
  margin-left: auto;
}

.support-actions-row .support-reply-submit,
.support-actions-row .support-status-form button,
.support-actions-row .support-status-form select {
  min-height: 60px;
  height: 60px;
  width: auto;
  padding-left: 2em;
  padding-right: 2em;
  margin: 0;
}

.support-actions-row .support-status-form .select-field {
  min-width: 180px;
}

.support-actions-row .support-status-form select {
  margin-bottom: 0;
  min-width: 180px;
  padding-right: 42px;
}

.support-actions-row-client .support-reply-submit {
  order: 1;
  margin-left: 0;
}

.support-actions-row-client .support-status-form {
  order: 2;
  margin-left: auto;
}

.admin-ticket-reply-block {
  margin-top: 1em;
}

.admin-ticket-reply-block textarea {
  margin-bottom: 0;
}

.admin-ticket-reply-block + .support-actions-row {
  margin-top: 1em;
}

@media (max-width: 700px) {
  .support-actions-row {
    align-items: stretch;
  }

  .support-actions-row .support-status-form,
  .support-actions-row .support-reply-submit {
    width: 100%;
    margin-left: 0;
  }

  .support-actions-row .support-status-form {
    justify-content: space-between;
  }

  .support-actions-row .support-status-form .select-field {
    min-width: 0;
    flex: 1 1 auto;
  }

  .support-actions-row .support-status-form select {
    width: 100%;
    min-width: 0;
  }

  .support-actions-row .support-reply-submit,
  .support-actions-row .support-status-form button {
    justify-content: center;
  }
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 44px;
  max-width: 400px;
  width: 100%;
}

.account-section {
  display: grid;
  gap: 22px;
}

.account-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 16px;
}

.account-readonly-value {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--text-strong);
}

.account-action-btn {
  min-height: 60px;
  margin-top: 1.5em;
}

.account-subtle-info {
  margin-top: 16px;
  padding-top: 8px;
  border: 0;
  display: grid;
  gap: 8px;
}

.docs-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.table-wrap {
  overflow-x: auto;
  border: 0;
  border-radius: 0;
  margin-top: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
  line-height: 1.55;
}

th,
td {
  text-align: left;
  border: 0;
  padding: 18px 16px;
  vertical-align: top;
}

th {
  background: var(--surface-muted);
  color: #3e555a;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.active-api-keys-table th,
.active-api-keys-table td {
  vertical-align: middle;
}

.active-api-keys-table td {
  white-space: nowrap;
}

.app-ids-more {
  display: block;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  text-align: left;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  cursor: help;
}

.app-ids-more:hover {
  background: transparent;
  color: var(--text-strong);
}

.app-ids-tooltip {
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 14px 16px;
  width: max-content;
  max-width: min(400px, calc(100vw - 24px));
  overflow: visible;
  border: 0;
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 12px 32px rgba(36, 56, 63, 0.18);
  font-size: 13px;
  line-height: 1.6;
  white-space: normal;
}

.app-ids-tooltip::after {
  content: '';
  position: absolute;
  left: var(--arrow-left);
  bottom: -6px;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--panel);
}

.app-ids-tooltip[data-placement="below"]::after {
  top: -6px;
  bottom: auto;
  border-top: 0;
  border-bottom: 6px solid var(--panel);
}

.app-ids-tooltip ul {
  max-height: min(252px, calc(100dvh - 52px));
  overflow: auto;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-ids-tooltip code {
  font-size: 13px;
  white-space: normal;
  overflow-wrap: anywhere;
}

tr.ticket-row-unread td {
  background: #F7F9FF;
}

.actions form {
  display: inline-block;
  margin-right: 5px;
  margin-bottom: 5px;
}

.clean-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.6;
}

.hidden {
  display: none;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.auth-layout {
  flex: 1;
  width: min(470px, 100%);
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: 32px 20px;
}

.auth-card {
  border-radius: 8px;
  padding: 40px 36px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(36, 56, 63, 0.08);
}

.auth-logo {
  width: 170px;
  height: auto;
  display: block;
  margin: 0 auto 24px;
}

.auth-divider {
  display: none;
}

.auth-card h2 {
  font-size: 1.4em;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  margin: 32px 0 28px;
}

.auth-card .stack {
  gap: 12px;
}

.auth-card input {
  min-height: 53px;
  margin-bottom: 0;
}

.auth-card .login-btn {
  min-height: 54px;
  margin-top: 12px;
}

.auth-layout-register {
  width: min(500px, 100%);
}

.account-type-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.account-type-option {
  position: relative;
  margin: 0;
  display: block;
}

.account-type-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.account-type-option span {
  display: block;
  text-align: center;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #646676;
  background: #fff;
}

.account-type-option input[type="radio"]:checked + span {
  border-color: var(--primary);
  color: var(--primary);
  background: #f5f8ff;
}

.iti {
  width: 100%;
}

.iti input {
  width: 100%;
  min-height: 53px;
}

.admin-placeholder {
  min-height: 260px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 12px;
}

.admin-placeholder i {
  font-size: 56px;
  color: #81818e;
}

.auth-footer {
  width: 100%;
  min-height: 70px;
  background: transparent;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 20px 2em;
  text-align: left;
}

.auth-footer span {
  font-size: 0.9em;
  color: #76798a;
}

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.error-box {
  width: min(720px, 100%);
}

.error-box img {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}

@media (max-width: 1180px) {
  .content-grid,
  .docs-grid,
  .support-grid,
  .admin-users-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 940px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .main-content {
    padding: 14px;
  }

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

  .chart-row {
    grid-template-columns: 1fr;
  }

  .account-meta-grid {
    grid-template-columns: 1fr;
  }

  .auth-layout {
    width: 100%;
    padding: 16px;
  }
}

.coming-soon-wrap {
  min-height: calc(100vh - 36px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.coming-soon-state {
  color: #81818e;
  text-align: center;
  display: grid;
  gap: 18px;
  justify-items: center;
}

.coming-soon-state i {
  font-size: 54px;
  color: #81818e;
}

.coming-soon-state h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  color: #81818e;
}

.docs-stack {
  display: grid;
  gap: 2em;
}

.docs-toc {
  display: grid;
  gap: 6px;
}


.docs-toc-link.level-2 {
  padding-left: 12px;
  font-size: 13px;
}

.docs-toc-link.level-3 {
  padding-left: 24px;
  font-size: 12px;
}


.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  margin: 1.6em 0 0.6em;
  color: #4f5263;
}

.markdown-body h1 {
  font-size: 1.5em;
}

.markdown-body h2 {
  font-size: 1.25em;
}

.markdown-body h3 {
  font-size: 1.1em;
}

.markdown-body p {
  margin: 0.5em 0;
}

.markdown-body ul,
.markdown-body ol {
  margin: 0.5em 0 0.8em;
  padding-left: 1.4em;
}

.markdown-body li {
  margin: 0.3em 0;
}

.markdown-body blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border: 0;
  background: #e9eef7;
}

.markdown-body pre {
  margin: 0.8em 0;
}

.markdown-body a {
  color: var(--primary);
}

.docs-main-content {
  max-width: 1600px;
}

.docs-head {
  margin-bottom: 28px;
}

.docs-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.docs-quick-link {
  border: 0;
  border-radius: 5px;
  padding: 12px 16px;
  color: #3e555a;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 14px;
  background: var(--surface-muted);
}

.docs-quick-link i {
  color: var(--primary);
}

.docs-quick-link.docs-quick-link-ai {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.docs-quick-link.docs-quick-link-ai i {
  color: #fff;
}

.docs-quick-link.docs-quick-link-ai:hover {
  border-color: var(--primary-hover);
  background: var(--primary-hover);
}

.docs-quick-link.docs-quick-link-postman {
  border-color: #f28c28;
  background: #f28c28;
  color: #fff;
}

.docs-quick-link.docs-quick-link-postman i {
  color: #fff;
}

.docs-quick-link.docs-quick-link-postman:hover {
  border-color: #df7c1f;
  background: #df7c1f;
}

.docs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  column-gap: 36px;
  align-items: start;
}

.docs-main-column {
  min-width: 0;
  padding: 32px;
  background: #fff;
}

.docs-side-column {
  position: sticky;
  top: 32px;
  display: grid;
  gap: 18px;
  margin-left: 0;
  align-self: start;
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
}


.docs-stack {
  display: grid;
  gap: 2em;
}


.docs-toc-link:hover {
  color: #4f5263;
}


.docs-toc-link.level-1 {
  font-weight: 600;
}

.docs-toc-link.level-2 {
  padding-left: 16px;
  font-size: 12px;
}

.docs-toc-link.level-3 {
  padding-left: 24px;
  font-size: 12px;
  opacity: 0.9;
}

.docs-sources code {
  font-size: 11px;
}

.docs-source-item {
  margin-bottom: 8px;
}

.markdown-body {
  margin-top: 20px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  scroll-margin-top: 90px;
  margin: 1.7em 0 0.7em;
  color: #4f5263;
}

.markdown-body h2 {
  font-size: 1.18em;
}

.markdown-body h3 {
  font-size: 1.05em;
}

.markdown-body ul,
.markdown-body ol {
  margin: 0.5em 0 1em;
  padding-left: 1.45em;
}

.markdown-body li {
  margin: 0.28em 0;
}

.markdown-body p code,
.markdown-body li code {
  background: var(--surface-soft);
  border: 0;
  border-radius: 3px;
  padding: 2px 4px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.code-wrap {
  position: relative;
  max-width: 100%;
}

.code-wrap pre {
  margin: 0.9em 0;
  padding-top: 12px;
  padding-right: 46px;
  padding-bottom: 12px;
  max-width: 100%;
}

.code-copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid #d8dbe5;
  border-radius: 6px;
  background: #fff;
  color: #646676;
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.code-copy-btn:hover {
  border-color: #c7cbd8;
  background: var(--surface-soft);
}

.markdown-body pre code.hljs {
  background: var(--surface-soft);
  border-radius: 0;
  padding: 0;
}

.markdown-body .hljs-comment,
.markdown-body .hljs-quote {
  color: #7f8799;
}

.docs-toc-link.level-2 {
  padding-left: 8px;
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 1180px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-side-column {
    position: static;
    order: -1;
  }

  .docs-main-column {
    padding-right: 0;
  }
}

@media (max-width: 760px) {
  .docs-quick-actions {
    flex-direction: column;
  }
}

.sidebar-logout {
  margin-top: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 0;
  border-radius: 0;
  padding: 24px 8px 0;
  background: transparent;
}

.sidebar-user-meta {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.sidebar-user-label {
  font-size: 12px;
  color: #5d7073;
}

.sidebar-user-email {
  max-width: 100%;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  color: #334a50;
  white-space: normal;
  overflow-wrap: anywhere;
}

.sidebar .sidebar-sign-out {
  width: 100%;
  min-height: 44px;
  justify-content: center;
  padding: 10px 14px;
  gap: 10px;
  background: var(--surface-hover);
  color: #334a50;
  font-weight: 500;
}

.sidebar .sidebar-sign-out:hover {
  background: var(--surface-pressed);
}

.sidebar .icon-btn {
  justify-self: end;
}

.docs-toc {
  display: grid;
  gap: 2px;
}

.docs-toc-link {
  display: block;
  color: #53666a;
  font-size: 14px;
  line-height: 1.5;
  border: 0;
  border-radius: 3px;
  padding: 8px 10px;
}

.docs-toc-link.level-1 {
  font-weight: 600;
}

.docs-toc-link.level-2 {
  padding-left: 16px;
}

.docs-toc-link.level-3 {
  padding-left: 24px;
}

.docs-toc-link.active {
  color: #294f9b;
  background: #dfe7f4;
}

#docsToc .docs-toc-link,
#docsToc .docs-toc-link.level-1,
#docsToc .docs-toc-link.level-2,
#docsToc .docs-toc-link.level-3 {
  font-weight: 400 !important;
}

#docsToc .docs-toc-link.active {
  font-weight: 500 !important;
}

.docs-side-card h3 {
  margin-bottom: 18px;
  font-size: 15px;
  font-weight: 500;
}

.side-nav-fold {
  display: grid;
  gap: 5px;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=http://www.w3.org/2000/svg viewBox=0 0 20 20 fill=none%3E%3Cpath d=M5 7.5L10 12.5L15 7.5 stroke=%2382899a stroke-width=1.8 stroke-linecap=round/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  padding-right: 36px;
}

select option:disabled {
  color: #a8adba;
}

.select-field {
  position: relative;
}

.select-field .fa-caret-down {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(calc(-50% - 2px));
  color: #82899a;
  pointer-events: none;
  font-size: 14px;
}

.key-type-select {
  background-image: none !important;
  padding-right: 36px;
}

.key-create-fields input,
.key-create-fields select {
  height: 48px;
}

#app-ids-group .tagify {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  height: 48px;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  box-shadow: none;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-strong);
  background: #fff;
  line-height: 1.45;
  --tags-border-color: transparent;
  --tags-focus-border-color: var(--primary);
  --tag-bg: var(--surface-soft);
  --tag-hover: var(--surface-soft);
  --tag-text-color: #43485a;
  --tag-text-color--edit: #43485a;
  --tag-remove-bg: transparent;
  --tag-remove-btn-bg--hover: transparent;
  --tag-remove-btn-color: #5a5f71;
  --tag-remove-btn-color--hover: #3f4458;
}

#app-ids-group .tagify--focus {
  border-color: var(--primary);
  box-shadow: none;
}

#app-ids-group .tagify__input {
  flex: 1 0 140px;
  min-height: 1lh;
  margin: 0;
  padding: 0;
  min-width: 220px;
  width: auto;
  max-width: 100%;
  display: block;
  line-height: 1.45;
  font-family: inherit;
  font-size: 14px;
  color: #646676;
}

#app-ids-group .tagify__input::before {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100%;
  color: #99a0b1;
  font-family: inherit;
  font-size: 14px;
}

#app-ids-group .tagify__tag {
  flex: 0 0 auto;
  margin: 2px 6px 2px 0;
}

#app-ids-group .tagify__tag > div {
  border-radius: 6px;
  padding: 2px 8px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
}

#app-ids-group .tagify__tag:hover > div,
#app-ids-group .tagify__tag:focus > div {
  background: var(--surface-soft) !important;
  box-shadow: none !important;
}

#app-ids-group .tagify__tag__removeBtn {
  width: 12px;
  height: 12px;
  margin-inline: 5px 2px;
}

.error-box {
  width: min(720px, 100%);
  display: grid;
  gap: 2em;
}

.error-box img {
  width: 170px;
  height: auto;
  margin-bottom: 0;
}

#docsToc .docs-toc-link.active {
  border-left-color: transparent !important;
}

@media (max-width: 900px) {
  .global-settings-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Functional focus, table reading and responsive workspace hierarchy. */
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #365fc7;
  outline-offset: 3px;
}

.side-nav a.active:hover,
.side-nav .side-subnav-link.active {
  background: var(--primary);
  color: #fff;
}

.side-nav-toggle.active {
  background: transparent;
  color: var(--text-strong);
}

.main-content > .page-head .note {
  max-width: 76ch;
  font-size: 15px;
}

.content-grid > article > h2 {
  margin-bottom: 24px;
  font-size: 21px;
}

.key-create-panel,
.content-grid > article:has(> form[action="/support/tickets/create"]) {
  background: var(--surface-muted);
  padding: 24px;
  border-radius: 6px;
}

table:not(.api-keys-table) tbody tr:nth-child(even) {
  background: var(--row-alt);
}

table:not(.active-api-keys-table):not(.api-keys-table) tbody tr:hover {
  background: #e9eef6;
}

tr.is-selected,
tr.is-selected:hover {
  background: #e0e9fa;
}

tr.ticket-row-unread td {
  background: #e5ecfa;
}

td:first-child {
  font-weight: 500;
  color: var(--text-strong);
}

td code {
  white-space: nowrap;
}

td details code,
.key-full-value code {
  white-space: normal;
  overflow-wrap: anywhere;
}

input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  accent-color: var(--primary);
}

.key-management-layout {
  grid-template-columns: minmax(0, 1fr);
}

.key-create-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1.5fr);
  gap: 24px;
  align-items: start;
}

.key-create-form .create-key-btn {
  justify-self: start;
  min-width: 180px;
  min-height: 48px;
  margin-top: 12px;
}

.key-create-form .key-create-limits-note {
  margin-top: 12px;
}

@media (max-width: 1420px) {
  .content-grid,
  .support-grid,
  .admin-users-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .content-grid > article:has(> form[action="/support/tickets/create"]) {
    max-width: 560px;
  }

}

@media (max-width: 1180px) {
  .docs-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .docs-side-column {
    position: static;
    max-height: none;
    order: -1;
  }

  .chart-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The sidebar remains usable without JavaScript; enhancement adds a modal drawer. */
.mobile-nav-header,
.mobile-nav-close {
  display: none;
}

.side-nav a,
.side-nav .side-subnav-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-item-icon {
  width: 18px;
  flex: 0 0 18px;
  text-align: center;
  font-size: 15px;
}

.side-nav-toggle > span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.side-nav-admin .side-subnav-link {
  justify-content: flex-start;
}

.side-nav .side-badge {
  margin-left: auto;
}

.mobile-nav-dialog {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(340px, calc(100vw - 40px));
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--text);
  background: var(--sidebar);
  overflow: hidden;
}

.mobile-nav-dialog::backdrop {
  background: rgba(23, 37, 43, 0.48);
}

.mobile-nav-dialog .sidebar {
  display: flex;
  position: relative;
  height: 100%;
  padding: 28px 20px 24px;
  overscroll-behavior: contain;
}

.mobile-nav-dialog .brand {
  align-self: stretch;
  padding: 6px 0 14px;
}

.mobile-nav-dialog .mobile-nav-close {
  display: inline-flex;
  position: absolute;
  top: 22px;
  right: 14px;
}

.mobile-nav-trigger,
.mobile-nav-close {
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  background: transparent;
  color: var(--text-strong);
  font-size: 19px;
}

.mobile-nav-trigger:hover,
.mobile-nav-close:hover {
  color: var(--primary);
  background: var(--surface-hover);
}

.navigation-open {
  overflow: hidden;
}

.table-wrap {
  max-width: 100%;
  overscroll-behavior-x: contain;
}

.support-thread-head,
.support-message-meta {
  flex-wrap: wrap;
}

.support-thread-head > div,
.support-message-meta > strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.docs-toc-disclosure > summary {
  cursor: pointer;
  padding: 12px 0;
  font-weight: 500;
  color: var(--text-strong);
}

@media (max-width: 1180px) {
  .docs-toc-disclosure {
    padding: 0 16px;
    background: var(--sidebar);
  }

  .docs-toc-disclosure[open] {
    padding-bottom: 12px;
  }
}

@media (max-width: 940px) {
  .app-shell {
    display: block;
    min-height: calc(100dvh - 76px);
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 24px;
    gap: 20px;
  }

  .navigation-enhanced .mobile-nav-header {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 20;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 20px;
    background: var(--sidebar);
  }

  .mobile-nav-header .brand {
    padding: 0;
  }

  .mobile-nav-header .brand img {
    width: 150px;
  }

  .mobile-nav-dialog .side-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .mobile-nav-dialog .side-nav-admin {
    margin-top: 16px;
  }

  .mobile-nav-dialog .side-nav .side-subnav-link {
    min-height: 42px;
    padding-left: 26px;
  }

  .key-create-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  #app-ids-group .tagify__input {
    min-width: 0;
    width: 100%;
  }

  #app-ids-group .tagify__tag {
    max-width: none;
  }

  #app-ids-group .tagify__tag > div {
    min-width: 0;
  }

  #app-ids-group .tagify__tag-text {
    white-space: nowrap;
    overflow-wrap: anywhere;
  }

  .main-content {
    padding: 28px 20px 48px;
  }

  .auth-layout {
    width: min(470px, 100%);
  }

  .page-head {
    margin-bottom: 28px;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
    padding: 8px 0;
  }

  .stat-main {
    font-size: 25px;
  }

  .docs-main-column,
  .chart-row {
    padding: 20px;
  }

  .chart-head {
    gap: 12px;
  }

  .chart-canvas {
    height: 240px;
    min-width: 0;
  }

  .docs-quick-actions {
    flex-direction: row;
  }

  .docs-quick-link {
    flex: 1 1 200px;
    justify-content: center;
    min-height: 44px;
  }

  .table-wrap table {
    min-width: 620px;
  }

  .key-management-layout table,
  .admin-users-keys-title + .table-wrap table {
    min-width: 840px;
  }

  th,
  td {
    padding: 14px;
  }

  .support-message {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 32px 24px;
  }

  .docs-main-column {
    padding: 20px 16px;
  }

  .support-filter-search {
    min-width: 0;
    width: 100%;
  }

  .support-filter-actions {
    flex-wrap: wrap;
    width: 100%;
  }

  .support-filter-actions > .btn,
  .support-filter-actions > button {
    flex: 1 1 auto;
  }

  .support-filter-field {
    min-width: 0;
  }

  .support-thread-head h2 {
    font-size: 21px;
  }

  .key-create-panel {
    padding: 20px;
  }
}

.api-keys-table th,
.api-keys-table td {
  vertical-align: middle;
  white-space: nowrap;
}

.api-keys-table td {
  height: 96px;
  padding: 14px 16px;
  line-height: 22px;
}

.api-keys-table .note {
  margin: 0;
  line-height: 22px;
}

.api-keys-table tbody tr.is-alt-row {
  background: var(--row-alt);
}

.dns-verification-dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 28px;
  border: 0;
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 20px 60px rgba(36, 56, 63, 0.2);
}

.dns-verification-dialog::backdrop {
  background: rgba(36, 56, 63, 0.35);
}

.dns-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dns-dialog-head h2 {
  font-size: 22px;
}

.dns-dialog-head button {
  padding: 0;
  width: 40px;
  min-height: 40px;
}

.dns-dialog-content {
  margin-top: 24px;
}

.dns-dialog-content h3 {
  overflow-wrap: anywhere;
}

.dns-dialog-content dt {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.dns-dialog-content dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.dns-dialog-content .web-dns-result:empty {
  display: none;
}

.api-keys-table .actions form {
  margin: 0;
}


.dns-verification-dialog button:focus,
.dns-verification-dialog button:focus-visible {
  outline: none;
  box-shadow: none;
}

.dns-dialog-close,
.dns-dialog-close:hover {
  background: transparent;
  color: var(--text-strong);
}

.dns-dialog-content .dns-record-note {
  margin-top: 1em;
  margin-bottom: 1em;
}

.dns-record-value {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dns-record-value code {
  min-width: 0;
  overflow-wrap: anywhere;
}

.dns-record-value .dns-copy-btn {
  flex: 0 0 32px;
  margin: 0;
}

.dns-dialog-content [hidden] {
  display: none;
}

.api-keys-table .dns-verification-required {
  color: var(--danger);
  font-weight: 700;
}

.api-key-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dns-verification-banner {
  padding: 16px 20px;
  margin-bottom: 20px;
  background: rgba(166, 56, 67, 0.08);
  color: var(--danger);
  border-radius: 6px;
}

.dns-verification-banner p {
  margin: 4px 0 0;
}

button:focus,
button:focus-visible,
.btn:focus,
.btn:focus-visible,
input:focus,
input:focus-visible,
select:focus,
select:focus-visible,
textarea:focus,
textarea:focus-visible,
[role="button"]:focus,
[role="button"]:focus-visible,
[role="textbox"]:focus,
[role="textbox"]:focus-visible {
  outline: none;
  box-shadow: none;
}

/* Shared dialog close control, with a thin icon and a full click target. */
:is(.support-chat-close, .dns-dialog-close, .mobile-nav-close),
:is(.support-chat-close, .dns-dialog-close, .mobile-nav-close):hover {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  background: transparent;
  color: var(--text-strong);
}

.mobile-nav-dialog .mobile-nav-close {
  top: 6px;
  right: 6px;
}

:is(.support-chat-close, .dns-dialog-close, .mobile-nav-close) i {
  display: none;
}

:is(.support-chat-close, .dns-dialog-close, .mobile-nav-close)::before,
:is(.support-chat-close, .dns-dialog-close, .mobile-nav-close)::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 1.5px;
  background: currentColor;
  transform: rotate(45deg);
}

:is(.support-chat-close, .dns-dialog-close, .mobile-nav-close)::after {
  transform: rotate(-45deg);
}

.support-chat-dialog .support-chat-head,
.dns-verification-dialog .dns-dialog-head {
  padding-right: 60px;
}

.side-nav a.active[href="/support"] .side-badge {
  background: #fff;
  color: var(--primary);
}
