html,
body {
  height: 100%;
  overflow-x: hidden;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-shell-layout {
  position: relative;
  grid-template-columns: 1fr auto;
  justify-content: center;
  align-items: center;
  gap: 28px;
}

.auth-brand-corner {
  position: fixed;
  --brand-w: 400px;
  --brand-h: 100px;
  left: max(24px, calc(33.333vw - var(--brand-w) - 24px));
  top: max(20px, calc(33.333vh - var(--brand-h) - 20px));
  z-index: 5;
}

.auth-brand-logo {
  max-width: 180px;
  max-height: 72px;
  object-fit: contain;
  display: block;
}

.auth-brand-text {
  color: var(--text-main);
  font-size: 1.35rem;
  font-weight: 700;
}

.auth-integrations {
  position: fixed;
  right: 250px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.auth-service-badge {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(9, 13, 21, 0.9);
  color: var(--text-muted);
  padding: 10px 12px;
  min-width: 150px;
  text-align: center;
  font-size: 0.86rem;
}

.auth-integrations .auth-service-badge {
  border: 0;
  background: transparent;
  min-width: 0;
  padding: 0;
}

.auth-service-logo {
  display: grid;
  place-items: center;
  min-height: 72px;
  padding: 0;
}

.auth-service-logo img {
  display: block;
  width: auto;
  max-width: 156px;
  max-height: 44px;
  object-fit: contain;
}

.auth-logo-dns {
  filter: brightness(0.5) saturate(0.8);
}

.auth-card {
  width: min(520px, 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(9, 13, 21, 0.92);
  padding: 22px;
}

.auth-card h1 {
  margin: 0 0 10px;
}

:root {
  --bg-main: #0d1017;
  --bg-accent: #171d2a;
  --bg-panel: #101624;
  --border: #2d3850;
  --text-main: #edf2ff;
  --text-muted: #a5b0c6;
  --highlight: #47b8ff;
  --highlight-soft: rgba(71, 184, 255, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top right, #1d2a42 0%, transparent 45%),
    radial-gradient(circle at 20% 80%, #162131 0%, transparent 40%),
    var(--bg-main);
}

.app-shell {
  height: 100vh;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
  overflow: hidden;
  transition: grid-template-columns 0.2s ease;
}

body.sidebar-collapsed .app-shell {
  grid-template-columns: 88px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 28px 20px;
  border-right: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-accent) 0%, var(--bg-panel) 100%);
  overflow-y: auto;
}

.logo-slot {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 10px;
}

.logo-placeholder {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 600;
}

.logo-image {
  max-width: 220px;
  max-height: 62px;
  object-fit: contain;
  display: block;
}

.sidebar-toggle {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(165, 176, 198, 0.35);
  border-radius: 7px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
}

.sidebar-toggle:hover {
  color: var(--text-main);
  border-color: rgba(165, 176, 198, 0.55);
}

.sidebar-toggle-icon {
  width: 14px;
  height: 14px;
  display: block;
  margin: 0 auto;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-group-title {
  color: rgba(165, 176, 198, 0.72);
  font-size: 0.82rem;
  padding: 2px 12px 0;
}

.menu-sub {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-left: 0;
}

.sidebar-divider {
  border: 0;
  border-top: 1px solid rgba(165, 176, 198, 0.2);
  margin: 14px 0;
}

.sidebar-spacer {
  flex: 1;
}

.sidebar-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
}

.sidebar-version {
  color: rgba(165, 176, 198, 0.58);
  margin-right: auto;
}

.meta-link {
  color: rgba(165, 176, 198, 0.72);
  text-decoration: none;
}

.meta-button {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.meta-link:hover {
  color: var(--text-main);
}

.meta-link.is-active {
  color: var(--text-main);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.menu-icon {
  min-width: 26px;
  height: 22px;
  border: 1px solid rgba(165, 176, 198, 0.3);
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.66rem;
  color: rgba(165, 176, 198, 0.85);
}

.menu-label {
  white-space: nowrap;
}

.menu-item:hover,
.menu-item.is-active {
  background: var(--highlight-soft);
  color: var(--text-main);
}

.menu-profile-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
}

.menu-profile-row.is-active {
  background: var(--highlight-soft);
}

.menu-profile-link {
  flex: 1;
}

.menu-doc-link {
  margin-bottom: 8px;
}

.logout-icon-btn {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(165, 176, 198, 0.35);
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.logout-icon-btn:hover {
  color: var(--text-main);
  border-color: rgba(165, 176, 198, 0.55);
}

.logout-icon {
  width: 14px;
  height: 14px;
}

body.sidebar-collapsed .logo-text,
body.sidebar-collapsed .menu-label,
body.sidebar-collapsed .menu-group-title-label,
body.sidebar-collapsed .sidebar-version {
  display: none;
}

body.sidebar-collapsed .logo-image {
  max-width: 34px;
  max-height: 34px;
}

body.sidebar-collapsed .logo-slot {
  min-height: 50px;
  margin-bottom: 14px;
}

body.sidebar-collapsed .menu-sub {
  margin-left: 0;
}

body.sidebar-collapsed .menu-item {
  justify-content: center;
  padding: 8px;
}

body.sidebar-collapsed .menu-profile-row {
  justify-content: center;
}

body.sidebar-collapsed .menu-profile-link {
  flex: 0 0 auto;
}

body.sidebar-collapsed .sidebar-meta {
  justify-content: center;
  gap: 8px;
}

body.sidebar-collapsed #sidebar-toggle .sidebar-toggle-icon {
  transform: rotate(180deg);
}

.content {
  height: 100vh;
  min-width: 0;
  padding: 40px;
  overflow-y: auto;
  overflow-x: hidden;
}

.content.content-full {
  padding: 0;
  height: 100vh;
  overflow: hidden;
}

.page-head h1 {
  margin: 8px 0 12px;
  font-size: clamp(1.7rem, 2.3vw, 2.3rem);
}

.domains-page-head h1 {
  margin: 0;
}

.domains-head-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.domains-page-head .lead {
  margin-left: auto;
  text-align: right;
}

.settings-page-head h1 {
  margin: 0;
}

.settings-head-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.settings-page-head .lead {
  margin-left: auto;
  text-align: right;
}

.eyebrow {
  margin: 0;
  color: var(--highlight);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
}

.lead {
  margin: 0;
  color: var(--text-muted);
  max-width: 700px;
}

.lead.lead-no-wrap {
  max-width: none;
  white-space: nowrap;
}

.cards {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(9, 13, 21, 0.7);
  padding: 18px;
}

.card h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
}

.settings-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.settings-grid.settings-grid-bottom-gap {
  margin-top: 34px;
}

.is-hidden {
  display: none !important;
}

/* ── Documentation page ── */

.doc-page {
  max-width: 1400px;
}

.doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.doc-header h1 {
  margin: 0;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
}

.doc-header-subtitle {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.doc-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* Toolbar */
.doc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(71, 184, 255, 0.25);
  border-radius: 10px;
  background: rgba(71, 184, 255, 0.06);
}

.doc-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.doc-toolbar-hint {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-left: 6px;
}

.doc-status {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.doc-status.is-error {
  color: #ef8a99;
}

.doc-status.is-success {
  color: #7ee0a0;
}

/* Body: TOC + content layout */
.doc-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

/* ── Table of Contents ── */
.doc-toc {
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  padding: 14px 0;
  border-right: 1px solid rgba(45, 56, 80, 0.5);
}

.doc-toc-title {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(165, 176, 198, 0.65);
  padding: 0 14px 10px;
}

.doc-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.doc-toc-list li {
  margin: 0;
}

.doc-toc-list a {
  display: block;
  padding: 5px 14px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  line-height: 1.35;
  border-left: 2px solid transparent;
  transition: all 0.15s ease;
}

.doc-toc-list a:hover {
  color: var(--text-main);
  background: rgba(71, 184, 255, 0.06);
  border-left-color: rgba(71, 184, 255, 0.3);
}

.doc-toc-list a.is-active {
  color: var(--highlight);
  border-left-color: var(--highlight);
  background: rgba(71, 184, 255, 0.08);
  font-weight: 500;
}

.doc-toc-list .toc-h2 { padding-left: 28px; }
.doc-toc-list .toc-h3 { padding-left: 42px; font-size: 0.74rem; }

/* ── Rendered article ── */
.doc-article {
  border: 1px solid rgba(45, 56, 80, 0.5);
  border-radius: 14px;
  background: rgba(9, 13, 21, 0.4);
  padding: 28px 32px;
  color: #d0d9ed;
  min-height: 300px;
}

.doc-article > :first-child { margin-top: 0; }
.doc-article > :last-child { margin-bottom: 0; }

/* Headings */
.doc-article h1 {
  font-size: 1.55rem;
  color: #edf2ff;
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(58, 73, 102, 0.45);
  line-height: 1.3;
}

.doc-article h2 {
  font-size: 1.25rem;
  color: #e4ecff;
  margin: 30px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(58, 73, 102, 0.3);
  line-height: 1.3;
}

.doc-article h3 {
  font-size: 1.05rem;
  color: #dce5fa;
  margin: 24px 0 10px;
  line-height: 1.3;
}

.doc-article h4 {
  font-size: 0.95rem;
  color: #d0dbf0;
  margin: 20px 0 8px;
  line-height: 1.3;
}

/* Heading anchors */
.doc-article .heading-anchor {
  color: rgba(71, 184, 255, 0.4);
  text-decoration: none;
  margin-left: 8px;
  font-weight: 400;
  opacity: 0;
  transition: opacity 0.15s;
}

.doc-article h1:hover .heading-anchor,
.doc-article h2:hover .heading-anchor,
.doc-article h3:hover .heading-anchor {
  opacity: 1;
}

/* Paragraphs and lists */
.doc-article p {
  margin: 0 0 12px;
  color: #b8c5dd;
  font-size: 0.9rem;
  line-height: 1.7;
}

.doc-article li {
  color: #b8c5dd;
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 4px;
}

.doc-article ul,
.doc-article ol {
  margin: 8px 0 14px 22px;
  padding: 0;
}

.doc-article ul li::marker { color: var(--highlight); }

.doc-article strong { color: #e0e8fa; }
.doc-article em { color: #c4d0e8; }

.doc-article a {
  color: var(--highlight);
  text-decoration: none;
  border-bottom: 1px solid rgba(71, 184, 255, 0.25);
  transition: border-color 0.15s;
}

.doc-article a:hover {
  border-bottom-color: var(--highlight);
}

/* Horizontal rules */
.doc-article hr {
  border: 0;
  border-top: 1px solid rgba(58, 73, 102, 0.5);
  margin: 28px 0;
}

/* Inline code */
.doc-article code {
  color: #d7e3ff;
  background: rgba(52, 72, 103, 0.32);
  border: 1px solid rgba(92, 116, 156, 0.35);
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 0.82em;
  font-family: "JetBrains Mono", "Consolas", "Menlo", monospace;
}

/* Code blocks */
.doc-article pre {
  margin: 14px 0;
  padding: 14px 16px;
  border: 1px solid rgba(58, 73, 102, 0.55);
  border-radius: 10px;
  background: rgba(6, 10, 18, 0.85);
  overflow-x: auto;
  position: relative;
}

.doc-article pre code {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #cdd8f0;
}

/* Copy button for code blocks */
.doc-code-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(92, 116, 156, 0.35);
  border-radius: 6px;
  background: rgba(20, 30, 50, 0.8);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s;
}

.doc-article pre:hover .doc-code-copy { opacity: 1; }
.doc-code-copy:hover { color: var(--text-main); }
.doc-code-copy.is-copied { color: #7ee0a0; }

/* Tables */
.doc-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 18px;
  font-size: 0.85rem;
}

.doc-article th {
  border: 1px solid rgba(58, 73, 102, 0.55);
  padding: 10px 12px;
  text-align: left;
  background: rgba(20, 30, 50, 0.5);
  color: #dce4f6;
  font-weight: 600;
  font-size: 0.82rem;
}

.doc-article td {
  border: 1px solid rgba(58, 73, 102, 0.45);
  padding: 9px 12px;
  color: #b8c5dd;
  vertical-align: top;
  line-height: 1.45;
}

.doc-article tr:hover td {
  background: rgba(71, 184, 255, 0.03);
}

/* Blockquotes */
.doc-article blockquote {
  margin: 14px 0;
  padding: 12px 18px;
  border-left: 3px solid var(--highlight);
  background: rgba(71, 184, 255, 0.06);
  border-radius: 0 8px 8px 0;
}

.doc-article blockquote p {
  margin: 0;
  color: #c4d2ea;
}

/* Checkboxes in lists */
.doc-article input[type="checkbox"] {
  margin-right: 6px;
  accent-color: var(--highlight);
}

/* Mermaid diagrams */
.doc-article .mermaid {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid rgba(58, 73, 102, 0.45);
  border-radius: 10px;
  background: rgba(6, 10, 18, 0.7);
  overflow-x: auto;
  text-align: center;
}

/* ── Loading spinner ── */
.doc-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.88rem;
  padding: 40px 0;
  justify-content: center;
}

.doc-loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(71, 184, 255, 0.2);
  border-top-color: var(--highlight);
  border-radius: 50%;
  animation: doc-spin 0.7s linear infinite;
}

@keyframes doc-spin {
  to { transform: rotate(360deg); }
}

/* ── Editor panes ── */
.doc-editor-wrap {
  min-height: 0;
  grid-column: 1 / -1;
}

.doc-editor-panes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  height: calc(100vh - 260px);
  min-height: 400px;
}

.doc-editor-pane,
.doc-preview-pane {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(45, 56, 80, 0.55);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(9, 13, 21, 0.4);
}

.doc-pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(15, 22, 36, 0.7);
  border-bottom: 1px solid rgba(45, 56, 80, 0.45);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.doc-pane-badge {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(71, 184, 255, 0.7);
  border: 1px solid rgba(71, 184, 255, 0.25);
  border-radius: 4px;
  padding: 1px 6px;
}

.doc-editor {
  flex: 1;
  width: 100%;
  border: 0;
  background: rgba(6, 10, 18, 0.75);
  color: #cfd8ea;
  padding: 14px 16px;
  font: 0.84rem/1.6 "JetBrains Mono", "Consolas", "Menlo", monospace;
  resize: none;
  outline: none;
  tab-size: 2;
}

.doc-editor::placeholder {
  color: rgba(165, 176, 198, 0.35);
}

.doc-preview {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

/* ── Legacy compat ── */
.docs-note {
  margin: 10px 0 0;
  color: #8fa0be;
  font-size: 0.78rem;
  line-height: 1.35;
}

.docs-note.is-error {
  color: #ef8a99;
}

.branding-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(360px, 1fr));
  gap: 16px;
  align-items: start;
}

.branding-column .form-row,
.branding-column .setting-switch-row {
  grid-template-columns: minmax(200px, 1fr) minmax(260px, 1fr);
}

.settings-card {
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.domains-list-section {
  margin-top: 36px;
}

.domains-table-hint {
  margin: 8px 0 0;
  color: #8f9ab4;
  font-size: 0.8rem;
}

.settings-form {
  display: grid;
  gap: 12px;
}

.settings-form label {
  display: grid;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(320px, 1fr);
  gap: 14px;
  align-items: start;
}

.form-control {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-control.is-stack {
  display: grid;
  gap: 6px;
}

.form-label {
  color: var(--text-main);
  font-weight: 500;
}

.field-help {
  color: #8f9ab4;
  line-height: 1.35;
}

.field-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(6, 10, 17, 0.75);
  color: var(--text-main);
  padding: 10px 12px;
}

.field-input.short {
  max-width: 120px;
}

.field-input.medium {
  max-width: 320px;
}

.field-input.long {
  max-width: 520px;
}

.form-help {
  display: grid;
  gap: 4px;
}

.form-help .field-help {
  margin: 0;
}

/* Align help text with input control row, not with field title row. */
.form-row:not(.setting-switch-row) .form-help {
  padding-top: 30px;
}

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

.domain-modal-panel {
  width: min(980px, 100%);
  border-color: rgba(60, 74, 104, 0.65);
  border-radius: 11px;
  padding: 14px;
}

.domain-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(60, 74, 104, 0.48);
}

.domain-modal-eyebrow {
  margin: 0 0 4px;
  color: #8fa7cf;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.domain-modal-head h2 {
  margin: 0;
  font-size: 1.06rem;
}

.domain-modal-close {
  width: 30px;
  height: 30px;
  min-width: 30px;
  padding: 0;
  line-height: 1;
  font-size: 1.1rem;
}

.domain-modal-form {
  display: grid;
  gap: 10px;
}

.domain-modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.95fr);
  gap: 12px;
  align-items: start;
}

.domain-modal-section {
  border: 1px solid rgba(57, 70, 98, 0.56);
  border-radius: 9px;
  background: rgba(8, 12, 20, 0.55);
  padding: 11px;
}

.domain-modal-section h3 {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #a8b8d8;
  letter-spacing: 0.01em;
}

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

.domain-field-wide {
  grid-column: 1 / -1;
}

.domain-fields-grid .form-control {
  font-size: 0.82rem;
}

.domain-fields-grid .form-label {
  font-size: 0.8rem;
  color: #d4def4;
}

.domain-fields-grid .field-input {
  padding: 8px 10px;
  border-radius: 8px;
  border-color: rgba(73, 88, 122, 0.68);
}

.domain-fields-grid .field-input.short,
.domain-fields-grid .field-input.medium,
.domain-fields-grid .field-input.long {
  max-width: 100%;
}

.domain-switch-grid {
  display: grid;
  gap: 8px;
}

.domain-switch-item {
  border: 1px solid rgba(57, 70, 98, 0.46);
  border-radius: 8px;
  background: rgba(7, 10, 17, 0.45);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-main);
  cursor: pointer;
}

.domain-switch-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.domain-switch-name {
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.2;
}

.domain-switch-note {
  color: #8f9ab4;
  font-size: 0.72rem;
  line-height: 1.25;
}

.domain-modal-panel .switch-ui {
  width: 38px;
  height: 20px;
  border-color: #415273;
}

.domain-modal-panel .switch-ui::after {
  width: 14px;
  height: 14px;
  top: 2px;
  left: 2px;
}

.domain-modal-panel .switch-input:checked + .switch-ui::after {
  transform: translateX(18px);
}

.domain-modal-actions {
  justify-content: flex-end;
  margin-top: 4px;
}

.setting-switch-row {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(320px, 1fr);
  gap: 14px;
  align-items: start;
}

.switch-control {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  color: var(--text-main);
}

.setting-switch-row .switch-control {
  flex-direction: column;
  gap: 14px;
}

.setting-switch-row .switch-track {
  margin-top: 15px;
  margin-left: 25px;
}

.switch-control.switch-control-compact {
  justify-content: center;
}

.switch-title {
  color: var(--text-main);
  font-weight: 500;
}

.switch-track {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.switch-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-ui {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #33415d;
  border: 1px solid #445373;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.switch-ui::after {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #d8e2f8;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.switch-input:checked + .switch-ui {
  background: rgba(71, 184, 255, 0.36);
  border-color: #47b8ff;
}

.switch-input:checked + .switch-ui::after {
  transform: translateX(20px);
  background: #eef5ff;
}

.switch-input:focus-visible + .switch-ui {
  outline: 2px solid var(--highlight);
  outline-offset: 2px;
}

.btn-primary,
.btn-secondary,
.btn-tiny {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(6, 10, 17, 0.8);
  color: var(--text-main);
  padding: 9px 12px;
  cursor: pointer;
}

.btn-plus {
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 1.2rem;
  line-height: 1;
}

.btn-primary {
  background: var(--highlight-soft);
  border-color: #356d98;
}

.btn-tiny {
  padding: 6px 10px;
  margin-right: 6px;
  margin-bottom: 6px;
}

.btn-tiny.danger {
  border-color: #7c2f3b;
  background: rgba(135, 45, 62, 0.2);
}

.table-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 12px;
}

.settings-table {
  width: 100%;
  border-collapse: collapse;
}

.settings-table th,
.settings-table td {
  border: 1px solid var(--border);
  padding: 10px;
  vertical-align: top;
  text-align: left;
}

#domains-table th,
#domains-table td {
  font-size: 0.82rem;
  line-height: 1.25;
  padding: 7px 8px;
  border-color: rgba(45, 56, 80, 0.52);
}

#domains-table td {
  vertical-align: middle;
}

#domains-table th {
  font-size: 0.76rem;
  letter-spacing: 0.01em;
  color: #b6c0d6;
  vertical-align: middle;
}

.domain-th-center {
  text-align: center;
  vertical-align: middle;
}

#domains-table th:nth-child(4),
#domains-table th:nth-child(5),
#domains-table td:nth-child(4),
#domains-table td:nth-child(5) {
  text-align: center;
}

.domain-row {
  cursor: pointer;
}

.domain-row:hover {
  background: rgba(71, 184, 255, 0.06);
}

.domain-row.is-disabled:hover {
  background: rgba(120, 132, 154, 0.08);
}

.domain-cell-cn {
  white-space: nowrap;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.domain-cell-forward {
  min-width: 280px;
}

.domain-forward-main {
  font-size: 0.82rem;
  color: #d6e0f5;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.domain-forward-meta {
  margin-top: 3px;
  color: #8e9ab4;
  font-size: 0.74rem;
}

.domain-cert-cell {
  min-width: 260px;
}

.domain-cell-center {
  text-align: center;
  vertical-align: middle;
}

.domain-cell-switch-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.domain-cell-value {
  display: inline-block;
  min-width: 24px;
  text-align: center;
}

.domain-enabled-switch {
  display: inline-flex;
  justify-content: center;
  margin: 0 auto;
  vertical-align: middle;
}

.domain-enabled-switch .switch-ui {
  width: 34px;
  height: 18px;
  background: #39465f;
  border-color: #4b5b7c;
}

.domain-enabled-switch .switch-ui::after {
  width: 12px;
  height: 12px;
  top: 2px;
  left: 2px;
}

.domain-enabled-switch .switch-input:checked + .switch-ui::after {
  transform: translateX(16px);
}

.domain-enabled-switch .switch-input:checked + .switch-ui {
  background: rgba(76, 186, 98, 0.45);
  border-color: #4eb85f;
}

.domain-row.is-disabled td {
  color: #7f8aa1;
}

.domain-row.is-disabled .domain-forward-main,
.domain-row.is-disabled .domain-forward-meta,
.domain-row.is-disabled .domain-cert-meta,
.domain-row.is-disabled .domain-cert-meta-label {
  color: #7f8aa1;
}

.domain-row.is-disabled .status-pill {
  color: #9ca7bd;
  border-color: rgba(127, 138, 161, 0.55);
  background: rgba(78, 88, 108, 0.25);
}

.domain-row.is-disabled .domain-state {
  color: #a1abba;
  border-color: rgba(127, 138, 161, 0.55);
  background: rgba(78, 88, 108, 0.25);
}

.domain-row.is-disabled .domain-action-btn {
  color: #93a0b8;
}

.domain-cert-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.domain-cert-status {
  flex: 0 0 auto;
  white-space: nowrap;
}

.domain-cert-info {
  margin-left: auto;
  text-align: right;
  display: grid;
  gap: 3px;
  min-width: 165px;
}

.domain-cert-meta {
  margin: 0;
  color: #8f9db8;
  font-size: 0.73rem;
  line-height: 1.25;
}

.domain-cert-meta-label {
  color: #b8c5dc;
  margin-right: 4px;
}

.domain-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 0.74rem;
  line-height: 1.25;
}

.domain-state.is-on {
  color: #a6e4bb;
  border-color: rgba(80, 170, 110, 0.58);
  background: rgba(41, 82, 56, 0.26);
}

.domain-state.is-off {
  color: #efb1bd;
  border-color: rgba(186, 71, 96, 0.58);
  background: rgba(98, 38, 49, 0.28);
}

.domain-actions {
  white-space: nowrap;
  text-align: center;
}

.domain-action-btn {
  width: 28px;
  height: 24px;
  min-width: 28px;
  padding: 0;
  margin: 0 4px 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.domain-action-icon {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.domain-action-btn.danger {
  margin-right: 0;
}

.settings-message {
  margin-top: 16px;
  color: var(--text-muted);
}

.settings-message.is-error {
  color: #ff91a4;
}

.certs-page-head h1 {
  font-size: clamp(1.7rem, 2.3vw, 2.3rem);
  margin: 0;
}

.certs-page-head .lead {
  font-size: 0.9rem;
  margin-left: auto;
  text-align: right;
}

.certs-head-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.certs-list-section {
  margin-top: 22px;
}

.certs-progress {
  margin: 10px 0 0;
  min-height: 18px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.certs-progress.is-error {
  color: #ff91a4;
}

.certs-table-compact th,
.certs-table-compact td {
  font-size: 0.82rem;
  line-height: 1.25;
  padding: 7px 8px;
  border-color: rgba(45, 56, 80, 0.52);
}

.certs-table-compact th {
  font-size: 0.76rem;
  letter-spacing: 0.01em;
  color: #b6c0d6;
}

.cert-cn {
  white-space: nowrap;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cert-validity {
  white-space: nowrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(165, 176, 198, 0.4);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 0.72rem;
}

.status-issued {
  color: #9fe0b6;
  border-color: rgba(80, 170, 110, 0.58);
  background: rgba(51, 90, 61, 0.26);
}

.status-new {
  color: #8fc9ff;
  border-color: rgba(71, 184, 255, 0.58);
  background: rgba(35, 88, 124, 0.26);
}

.status-error {
  color: #ffb1bf;
  border-color: rgba(186, 71, 96, 0.58);
  background: rgba(101, 37, 50, 0.3);
}

.cert-error {
  margin-top: 4px;
  color: #d9a0ad;
  font-size: 0.72rem;
  white-space: normal;
}

.cert-actions {
  white-space: nowrap;
}

.cert-action-btn {
  width: 28px;
  height: 24px;
  min-width: 28px;
  padding: 0;
  margin: 0 4px 0 0;
  font-size: 0.84rem;
  line-height: 1;
}

.cert-row {
  cursor: pointer;
}

.cert-row:hover {
  background: rgba(71, 184, 255, 0.06);
}

.cert-details-panel {
  width: min(920px, 100%);
}

.cert-details-head h2 {
  margin: 0;
}

.cert-details-content {
  margin-top: 12px;
}

.cert-detail-grid {
  display: grid;
  gap: 8px;
}

.cert-detail-row {
  display: grid;
  grid-template-columns: minmax(170px, 250px) minmax(320px, 1fr);
  gap: 12px;
  align-items: start;
  border-bottom: 1px solid rgba(45, 56, 80, 0.45);
  padding: 6px 0;
}

.cert-detail-label {
  color: #a9b5cc;
  font-size: 0.79rem;
}

.cert-detail-value {
  color: var(--text-main);
  font-size: 0.83rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 12, 0.72);
  backdrop-filter: blur(2px);
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 60;
}

.modal-backdrop.is-hidden {
  display: none;
}

.modal-panel {
  width: min(1180px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(9, 13, 21, 0.98);
  padding: 18px;
}

.embed-head h1 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

.embed-wrap {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(9, 13, 21, 0.6);
}

.embed-wrap.embed-wrap-full {
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.tool-frame {
  width: 100%;
  min-height: calc(100vh - 180px);
  border: 0;
  display: block;
  background: #0f131a;
}

.tool-frame.tool-frame-full {
  min-height: 100%;
  height: 100%;
}

/* ── Dashboard ── */

.dash-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 16px;
  height: calc(100vh - 80px);
  overflow: hidden;
}

.dash-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.dash-section {
  min-width: 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.dash-section:first-child {
  border-top: none;
  padding-top: 0;
}

.dash-section-head {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
  position: relative;
}

.dash-section-title {
  margin: 50px 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: center;
  width: 100%;
}

.dash-section:first-child .dash-section-title {
  margin-top: 0;
}

.dash-section-link {
  color: var(--highlight);
  text-decoration: none;
  font-size: 0.7rem;
  white-space: nowrap;
  position: absolute;
  right: 0;
}

.dash-section-link:hover {
  text-decoration: underline;
}

/* Services: compact inline row */
.dash-services {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.dash-service {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(9, 13, 21, 0.55);
}

.dash-service-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.dash-service-indicator.is-pending { background: rgba(165,176,198,0.35); }
.dash-service-indicator.is-up { background: #3ecf8e; box-shadow: 0 0 6px rgba(62,207,142,0.4); }
.dash-service-indicator.is-down { background: #f0596e; box-shadow: 0 0 6px rgba(240,89,110,0.4); }

.dash-service-name {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
}

.dash-service-status {
  font-size: 0.62rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Widget row: ring card + KPI grid side by side */
.dash-widget-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

/* KPI cards: compact, no borders */
.dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.dash-kpi {
  padding: 10px 8px;
  border-radius: 8px;
  background: rgba(9, 13, 21, 0.55);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dash-kpi-value {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.dash-kpi-value.is-ok { color: #3ecf8e; }
.dash-kpi-value.is-warning { color: #ff8c42; }
.dash-kpi-value.is-error { color: #f0596e; }

.dash-kpi-label {
  margin-top: 2px;
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

/* Ring widget: ring left, metrics list right */
.dash-ring-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(9, 13, 21, 0.55);
}

.dash-ring-card canvas {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
}

.dash-ring-legend {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.dash-legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.dash-legend-label {
  flex: 1;
}

.dash-legend-value {
  font-weight: 600;
  color: var(--text-main);
  min-width: 28px;
  text-align: right;
}

.dash-dns-visual {
  margin-top: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 8px;
}

.dash-chart-card,
.dash-top-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(9, 13, 21, 0.55);
  padding: 8px 10px;
  min-width: 0;
  overflow: hidden;
}

.dash-chart-card canvas {
  width: 100%;
  max-height: 130px;
  display: block;
}

.dash-card-title {
  margin: 0 0 4px;
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(165,176,198,0.7);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Right sidebar: activity feed */
.dash-aside {
  border-left: 1px solid var(--border);
  padding-left: 16px;
  overflow-y: auto;
  overflow-x: hidden;
}

.dash-aside-title {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(165,176,198,0.7);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dash-recent-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dash-recent-empty {
  color: var(--text-muted);
  font-size: 0.72rem;
  padding: 6px 0;
}

.dash-recent-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(45,56,80,0.25);
}

.dash-recent-item:last-child {
  border-bottom: 0;
}

.dash-recent-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 4px;
  flex: 0 0 auto;
}

.dash-recent-dot.is-ok { background: #3ecf8e; }
.dash-recent-dot.is-err { background: #f0596e; }
.dash-recent-dot.is-new { background: #47b8ff; }

.dash-recent-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.dash-recent-domain {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-recent-meta {
  font-size: 0.6rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.dash-aside-divider {
  border: none;
  border-top: 1px solid rgba(165,176,198,0.18);
  margin: 12px 0 0;
}

.dash-aside-subtitle {
  margin: 0 0 6px;
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(165,176,198,0.55);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dash-feed-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dash-feed-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(45,56,80,0.15);
}

.dash-feed-item:last-child {
  border-bottom: 0;
}

.dash-feed-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.dash-feed-domain {
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-feed-meta {
  font-size: 0.52rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Top domain lists */
.dash-top-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dash-top-empty {
  color: var(--text-muted);
  font-size: 0.68rem;
  padding: 4px 0;
}

.dash-top-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 5px;
  overflow: hidden;
}

.dash-top-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: rgba(71,184,255,0.08);
  border-radius: 5px;
  pointer-events: none;
}

.dash-top-name {
  position: relative;
  font-size: 0.66rem;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}

.dash-top-hits {
  position: relative;
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--highlight);
  flex: 0 0 auto;
}

.dash-top-card .dash-top-list:empty::after {
  content: "...";
  color: var(--text-muted);
  font-size: 0.68rem;
  display: block;
}

@media (max-width: 900px) {
  .app-shell {
    height: auto;
    grid-template-columns: 1fr;
    overflow: visible;
  }

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

  .content {
    height: auto;
    padding: 24px;
    overflow: visible;
  }

  .auth-brand-corner {
    position: static;
    justify-self: start;
    margin-bottom: 12px;
  }

  .auth-shell-layout {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
  }

  .auth-integrations {
    position: static;
    transform: none;
    right: auto;
    top: auto;
    width: 100%;
  }

  .content.content-full {
    padding: 0;
    height: auto;
    overflow: visible;
  }

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

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

  .domain-modal-layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .domain-fields-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

  .domain-switch-item {
    padding: 8px;
  }

  .field-input.medium,
  .field-input.long {
    max-width: 100%;
  }

  .domains-head-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .settings-head-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .docs-head-row {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
  }

  .docs-head-lead {
    width: 100%;
    white-space: normal;
  }

  .docs-head-edit-btn {
    margin-left: 0;
  }

  .domains-page-head .lead {
    margin-left: 0;
    text-align: left;
  }

  .domains-page-head .lead.lead-no-wrap {
    white-space: normal;
  }

  .settings-page-head .lead {
    margin-left: 0;
    text-align: left;
  }

  .settings-page-head .lead.lead-no-wrap {
    white-space: normal;
  }

  .certs-head-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .certs-page-head .lead {
    margin-left: 0;
    text-align: left;
  }

  .modal-backdrop {
    padding: 8px;
  }

  .modal-panel {
    max-height: calc(100vh - 16px);
    padding: 14px;
  }

  .embed-wrap.embed-wrap-full {
    height: auto;
  }

  .tool-frame {
    min-height: calc(100vh - 260px);
  }

  .tool-frame.tool-frame-full {
    min-height: calc(100vh - 160px);
    height: calc(100vh - 160px);
  }

  .dash-layout {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }

  .dash-aside {
    border-left: 0;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 12px;
  }

  .dash-dns-visual {
    grid-template-columns: 1fr;
  }
}
