:root {
  color-scheme: light;
  --page: #f4f6f8;
  --surface: #ffffff;
  --surface-muted: #eef2f5;
  --surface-strong: #e3e8ee;
  --border: #cfd7df;
  --border-strong: #9ca9b7;
  --text: #17212b;
  --muted: #596979;
  --nav: #202a34;
  --nav-active: #334354;
  --accent: #087f73;
  --accent-hover: #06665e;
  --focus: #175cd3;
  --danger: #b42318;
  --danger-bg: #fff1f0;
  --warning: #9a4d00;
  --warning-bg: #fff7e6;
  --success: #067647;
  --success-bg: #ecfdf3;
  --info: #175cd3;
  --info-bg: #eff8ff;
  --shadow: 0 12px 30px rgba(20, 35, 50, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Segoe UI", "Malgun Gothic", Arial, sans-serif;
  font-size: 15px;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
.authenticator-link {
  min-height: 40px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 8px 14px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
}

button:hover,
.authenticator-link:hover {
  background: var(--accent-hover);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.secondary-action,
.icon-button,
.text-button {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--text);
}

.secondary-action:hover,
.icon-button:hover,
.text-button:hover {
  background: var(--surface-muted);
}

.text-button {
  border-color: transparent;
  color: var(--accent-hover);
}

.danger-action {
  border-color: var(--danger);
  background: var(--danger);
}

.danger-action:hover {
  background: #8d1b13;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  min-width: 40px;
  padding: 0;
  font-size: 20px;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 8px 10px;
  background: var(--surface);
  color: var(--text);
}

textarea {
  resize: vertical;
}

label {
  color: var(--text);
  font-weight: 600;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 5px;
  font-size: 26px;
  line-height: 1.25;
}

h2 {
  margin-bottom: 12px;
  font-size: 18px;
  line-height: 1.35;
}

h3 {
  font-size: 15px;
}

.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  border-radius: 4px;
  padding: 10px 14px;
  background: var(--text);
  color: #ffffff;
}

.skip-link:focus {
  transform: translateY(0);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 6px;
  background: #0b8278;
  color: #ffffff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: #b9c5d1;
  font-size: 12px;
}

.login-screen {
  display: grid;
  grid-template-columns: minmax(260px, 390px) minmax(320px, 430px);
  align-content: center;
  justify-content: center;
  gap: 64px;
  min-height: 100vh;
  padding: 40px;
  background: var(--page);
}

.login-intro {
  display: grid;
  align-content: start;
  gap: 24px;
}

.brand-login small {
  color: var(--muted);
}

.login-intro h1 {
  font-size: 32px;
}

.connection-summary {
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  border: 1px solid #75d3ad;
  border-radius: 6px;
  padding: 9px 11px;
  background: var(--success-bg);
  color: var(--success);
  font-size: 13px;
  font-weight: 700;
}

.connection-summary.offline {
  border-color: #f3aaa5;
  background: var(--danger-bg);
  color: var(--danger);
}

.connection-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}

.auth-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form .primary-action {
  margin-top: 4px;
}

.supporting {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.password-field,
.copy-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.copy-field code {
  display: flex;
  align-items: center;
  min-height: 40px;
  overflow-wrap: anywhere;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 8px 10px;
  background: var(--surface-muted);
}

.authenticator-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  z-index: 30;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 16px 12px;
  background: var(--nav);
  color: #ffffff;
}

.sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 5px 18px;
}

.nav {
  display: grid;
  gap: 14px;
}

.nav-group {
  display: grid;
  gap: 3px;
}

.nav-group h2 {
  margin: 0 8px 4px;
  color: #9eacba;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  border-radius: 5px;
  padding: 8px 10px;
  color: #e3eaf1;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--nav-active);
  color: #ffffff;
}

.workspace {
  min-width: 0;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
  border-bottom: 1px solid var(--border);
  padding: 10px 22px;
  background: var(--surface);
}

.global-search {
  display: grid;
  grid-template-columns: minmax(220px, 560px) auto;
  gap: 8px;
  width: min(680px, 60vw);
}

.session-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.scope-label {
  max-width: 220px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  display: grid;
  width: 220px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.account-menu button {
  justify-content: flex-start;
  border-color: transparent;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.account-menu button:hover {
  background: var(--surface-muted);
}

.main {
  display: grid;
  gap: 14px;
  width: min(100%, 1680px);
  margin: 0 auto;
  padding: 18px 22px 44px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 22px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb a {
  color: var(--accent-hover);
}

.view-header,
.section-title,
.dialog-actions,
.view-actions,
.pagination,
.toolbar,
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.view-header {
  align-items: flex-start;
}

.view-header p {
  margin: 0;
  color: var(--muted);
}

.view-actions,
.actions,
.toolbar {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.message {
  border: 1px solid #efb37d;
  border-radius: 6px;
  padding: 11px 13px;
  background: var(--warning-bg);
  color: var(--warning);
}

.message.success {
  border-color: #75d3ad;
  background: var(--success-bg);
  color: var(--success);
}

.message.error {
  border-color: #f3aaa5;
  background: var(--danger-bg);
  color: var(--danger);
}

.message.info {
  border-color: #84caff;
  background: var(--info-bg);
  color: var(--info);
}

.view-content {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.metric {
  min-height: 82px;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 13px;
  background: var(--surface);
}

.metric span,
.subtle {
  color: var(--muted);
  font-size: 12px;
}

.metric strong {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
  font-size: 21px;
}

.data-section,
.tool-section,
.empty-state,
.forbidden-state {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.tool-section,
.empty-state,
.forbidden-state {
  padding: 16px;
}

.section-title {
  min-height: 48px;
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
}

.section-title h2,
.section-title p {
  margin: 0;
}

.section-title span {
  color: var(--muted);
  font-size: 13px;
}

.form-grid,
.filter-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface);
}

.form-grid label,
.filter-form label {
  display: grid;
  align-content: start;
  gap: 6px;
}

.form-actions {
  display: flex;
  align-items: end;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-chip,
.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 7px;
  background: var(--surface-muted);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.status.active,
.status.ready,
.status.success,
.status.healthy,
.status.synced,
.status.ok {
  border-color: #75d3ad;
  background: var(--success-bg);
  color: var(--success);
}

.status.failed,
.status.inactive,
.status.locked,
.status.error {
  border-color: #f3aaa5;
  background: var(--danger-bg);
  color: var(--danger);
}

.status.pending,
.status.running,
.status.partial-success {
  border-color: #efb37d;
  background: var(--warning-bg);
  color: var(--warning);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  border-bottom: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  z-index: 1;
  top: 0;
  background: var(--surface-muted);
  color: #3e4b59;
  font-weight: 700;
}

tbody tr:hover {
  background: #f8fafb;
}

tbody tr:last-child td {
  border-bottom: 0;
}

td code {
  overflow-wrap: anywhere;
}

.row-button {
  min-height: 32px;
  border: 0;
  padding: 2px 0;
  background: transparent;
  color: var(--accent-hover);
  text-align: left;
}

.row-button:hover {
  background: transparent;
  text-decoration: underline;
}

.pagination {
  justify-content: flex-end;
  border-top: 1px solid var(--border);
  padding: 10px 14px;
}

.tree-layout {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  min-height: 430px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.tree-panel {
  border-right: 1px solid var(--border);
  padding: 12px;
  overflow: auto;
}

.tree-detail {
  padding: 16px;
}

.tree,
.tree ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tree ul {
  margin-left: 18px;
}

.tree-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 2px;
  min-height: 38px;
}

.tree-toggle {
  width: 32px;
  min-width: 32px;
  min-height: 32px;
  border-color: transparent;
  padding: 0;
  background: transparent;
  color: var(--text);
}

.tree-node {
  min-height: 34px;
  border-color: transparent;
  padding: 5px 7px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.tree-node[aria-selected="true"] {
  background: var(--info-bg);
  color: #104b9b;
}

.search-results {
  display: grid;
  gap: 8px;
}

.search-result {
  display: grid;
  grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding: 12px 14px;
}

.search-result:last-child {
  border-bottom: 0;
}

.table-section,
.filter-section,
.facet-section,
.notice-section {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.table-section > .section-heading,
.filter-section > .section-heading,
.facet-section > h2,
.notice-section > h2 {
  margin: 0;
  border-bottom: 1px solid var(--border);
  padding: 12px 14px;
}

.notice-section > p,
.notice-section > pre {
  margin: 0;
  padding: 14px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.section-heading h2,
.section-heading h3 {
  margin: 0;
}

.table-scroll {
  width: 100%;
  overflow: auto;
}

.table-action {
  min-height: 32px;
  margin: 2px 4px 2px 0;
  padding: 4px 8px;
}

.table-action.danger {
  border-color: #f3aaa5;
  color: var(--danger);
}

.table-footer {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--border);
  padding: 10px 14px;
}

.compact-form,
.stack-form,
.filter-grid {
  display: grid;
  gap: 12px;
}

.compact-form {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: end;
}

.stack-form {
  margin-bottom: 18px;
}

.compact-form label,
.stack-form label,
.filter-grid label,
.inline-control {
  display: grid;
  gap: 5px;
}

.filter-grid {
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  padding: 14px;
}

.filter-grid > * {
  min-width: 0;
}

.filter-actions {
  display: flex;
  align-items: end;
  gap: 8px;
  flex-wrap: wrap;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid var(--border);
  padding: 10px 14px;
}

.filter-chip {
  min-height: 34px;
  font-weight: 600;
}

.facet-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  padding: 14px;
}

.facet-groups h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.facet-list,
.inline-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.facet-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
}

.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.inline-list li {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 5px;
  background: var(--surface-muted);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 6px;
  max-height: 340px;
  overflow: auto;
  border: 1px solid var(--border);
  padding: 8px;
}

.check-option {
  display: flex !important;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 8px;
  min-height: 42px;
  padding: 6px;
}

.check-option input {
  width: 20px;
  min-width: 20px;
  height: 20px;
  margin-top: 1px;
}

.check-option span {
  display: grid;
  gap: 2px;
}

.check-option small {
  color: var(--muted);
}

.hierarchy-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.65fr) minmax(260px, 0.35fr);
  min-height: 500px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.hierarchy-layout .tree-panel {
  border-right: 1px solid var(--border);
}

.tree-help {
  padding: 16px;
}

.tree-help h2 {
  margin-top: 0;
}

.tree [role="group"] {
  margin-left: 22px;
}

.tree [role="treeitem"] {
  outline: none;
}

.tree [role="treeitem"]:focus > .tree-row {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
}

.tree-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: stretch;
  min-height: 42px;
}

.tree-label {
  display: grid;
  justify-content: start;
  min-width: 0;
  min-height: 40px;
  border-color: transparent;
  padding: 5px 8px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.tree-label small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tree-label:hover,
.tree-toggle:hover {
  background: var(--surface-muted);
}

.loading-state,
.empty-state {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 22px;
  text-align: center;
}

.loading-state p,
.empty-state p {
  margin: 4px 0;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.one-time-secret {
  display: grid;
  gap: 12px;
}

.one-time-secret code {
  overflow-wrap: anywhere;
  font-size: 15px;
}

.detail-list pre {
  max-width: 100%;
  max-height: 280px;
  overflow: auto;
  white-space: pre-wrap;
}

.detail-drawer {
  position: fixed;
  z-index: 80;
  top: 0;
  right: 0;
  width: min(480px, 100vw);
  height: 100vh;
  overflow-y: auto;
  border-left: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.detail-drawer header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  background: var(--surface);
}

.detail-drawer h2 {
  margin: 0;
}

#drawerContent {
  padding: 16px;
}

.detail-list {
  display: grid;
  grid-template-columns: minmax(120px, 0.4fr) minmax(0, 1fr);
  gap: 0;
  margin: 0;
}

.detail-list dt,
.detail-list dd {
  border-bottom: 1px solid var(--border);
  padding: 9px 5px;
  overflow-wrap: anywhere;
}

.detail-list dt {
  color: var(--muted);
  font-weight: 700;
}

.detail-list dd {
  margin: 0;
}

dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(18, 28, 38, 0.55);
}

.dialog-form {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 20px;
}

.dialog-form label {
  display: grid;
  gap: 6px;
}

.dialog-actions {
  justify-content: flex-end;
  margin-top: 4px;
}

#recoveryCodes {
  max-height: 300px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px;
  background: var(--surface-muted);
  white-space: pre-wrap;
}

.skeleton {
  min-height: 18px;
  background: var(--surface-strong);
}

.mobile-only {
  display: none;
}

.nav-scrim {
  position: fixed;
  z-index: 25;
  inset: 0;
  background: rgba(18, 28, 38, 0.5);
}

@media (max-width: 960px) {
  .mobile-only {
    display: inline-grid;
  }

  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    position: fixed;
    left: 0;
    transform: translateX(-105%);
    width: min(300px, 86vw);
    transition: transform 150ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .topbar {
    gap: 8px;
    padding: 9px 12px;
  }

  .global-search {
    width: min(100%, 560px);
  }

  .scope-label {
    display: none;
  }

  .tree-layout {
    grid-template-columns: 1fr;
  }

  .hierarchy-layout {
    grid-template-columns: 1fr;
  }

  .tree-panel {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .hierarchy-layout .tree-panel {
    border-right: 0;
  }
}

@media (max-width: 680px) {
  .login-screen {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 24px;
    padding: 24px 16px;
  }

  .login-intro {
    gap: 14px;
  }

  .login-intro h1 {
    font-size: 26px;
  }

  .auth-panel {
    padding: 18px;
  }

  .topbar {
    flex-wrap: wrap;
  }

  .global-search {
    order: 3;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
  }

  .session-menu {
    margin-left: auto;
  }

  .main {
    padding: 14px 12px 36px;
  }

  .view-header {
    display: grid;
  }

  .view-actions {
    width: 100%;
  }

  .view-actions button {
    flex: 1 1 auto;
  }

  .form-grid,
  .filter-form,
  .filter-grid,
  .compact-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .table-scroll {
    overflow: visible;
  }

  .table-section table,
  .table-section thead,
  .table-section tbody,
  .table-section tr,
  .table-section th,
  .table-section td {
    display: block;
  }

  .table-section thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .table-section tr {
    border-bottom: 1px solid var(--border-strong);
    padding: 8px 0;
  }

  .table-section td {
    display: grid;
    grid-template-columns: minmax(100px, 0.35fr) minmax(0, 1fr);
    gap: 8px;
    border-bottom: 1px solid var(--border);
    padding: 8px 12px;
  }

  .table-section td::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 700;
  }

  .search-result {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-list dt {
    border-bottom: 0;
    padding-bottom: 2px;
  }

  .detail-list dd {
    padding-top: 2px;
  }
}

@media (max-width: 380px) {
  .main {
    padding-right: 8px;
    padding-left: 8px;
  }

  .table-section td {
    grid-template-columns: minmax(0, 1fr);
  }

  .view-actions,
  .filter-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (forced-colors: active) {
  button,
  input,
  select,
  textarea,
  .data-section,
  .tool-section,
  .metric {
    border: 1px solid CanvasText;
  }
}
