:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
  --bg: #f4f6f5;
  --surface: #ffffff;
  --surface-muted: #f8faf9;
  --border: #dfe5e2;
  --border-strong: #c7d0cc;
  --text: #17211d;
  --text-secondary: #5f6d67;
  --text-muted: #87928d;
  --primary: #176b52;
  --primary-hover: #0f5741;
  --primary-soft: #e7f3ee;
  --danger: #b4232c;
  --danger-hover: #901b23;
  --danger-soft: #fcebec;
  --warning: #9a5d0a;
  --warning-soft: #fff3d9;
  --info: #245ca8;
  --info-soft: #eaf2fc;
  --shadow-dialog: 0 24px 70px rgb(24 38 32 / 18%);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
}

button,
input,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.global-progress {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
  background: var(--primary-soft);
  transition: opacity 150ms ease;
}

.global-progress::after {
  position: absolute;
  inset: 0 auto 0 -35%;
  width: 35%;
  content: "";
  background: var(--primary);
  animation: progress-slide 1.1s ease-in-out infinite;
}

.global-progress.is-active {
  opacity: 1;
}

@keyframes progress-slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(390%);
  }
}

.login-view {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background: #edf1ef;
}

.login-panel {
  width: min(100%, 390px);
  padding: 34px 36px 36px;
  border: 1px solid var(--border-strong);
  border-top: 4px solid var(--primary);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 40px rgb(30 45 38 / 9%);
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid #0e4f3b;
  border-radius: 6px;
  color: #ffffff;
  background: var(--primary);
  font-size: 15px;
  font-weight: 800;
}

.brand-name {
  margin: 18px 0 2px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
}

.login-panel h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}

.login-form {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.login-form label,
.field > span {
  color: #34423c;
  font-size: 13px;
  font-weight: 650;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  outline: none;
  color: var(--text);
  background: var(--surface);
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease;
}

input {
  min-height: 38px;
  padding: 7px 10px;
}

textarea {
  min-height: 76px;
  padding: 9px 10px;
  resize: vertical;
  line-height: 1.45;
}

input:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgb(23 107 82 / 12%);
}

input::placeholder,
textarea::placeholder {
  color: #9aa49f;
}

.button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  transition:
    border-color 120ms ease,
    background 120ms ease,
    color 120ms ease,
    opacity 120ms ease;
}

.button:focus-visible,
.icon-button:focus-visible {
  outline: 3px solid rgb(36 92 168 / 20%);
  outline-offset: 2px;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.button-primary {
  border-color: var(--primary);
  color: #ffffff;
  background: var(--primary);
}

.button-primary:hover:not(:disabled) {
  border-color: var(--primary-hover);
  background: var(--primary-hover);
}

.button-secondary {
  border-color: var(--border-strong);
  color: #293832;
  background: var(--surface);
}

.button-secondary:hover:not(:disabled) {
  border-color: #9ca9a3;
  background: var(--surface-muted);
}

.button-ghost {
  color: var(--text-secondary);
  background: transparent;
}

.button-ghost:hover:not(:disabled) {
  color: var(--danger);
  background: var(--danger-soft);
}

.button-danger {
  border-color: var(--danger);
  color: #ffffff;
  background: var(--danger);
}

.button-danger:hover:not(:disabled) {
  border-color: var(--danger-hover);
  background: var(--danger-hover);
}

.button-small {
  min-height: 30px;
  padding: 4px 10px;
  font-size: 12px;
}

.button-block {
  width: 100%;
  min-height: 40px;
  margin-top: 5px;
}

.button-icon {
  display: inline-grid;
  width: 16px;
  height: 16px;
  place-items: center;
  font-size: 17px;
  line-height: 1;
}

.button.is-loading .button-icon,
.button.is-loading > span:first-child:not(:only-child) {
  animation: spin 800ms linear infinite;
}

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

.form-error {
  margin: 0;
  padding: 8px 10px;
  border-left: 3px solid var(--danger);
  color: #7e1720;
  background: var(--danger-soft);
  font-size: 12px;
}

.app-view {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid var(--border);
  background: rgb(255 255 255 / 96%);
  backdrop-filter: blur(10px);
}

.topbar-inner {
  display: flex;
  width: min(100%, 1500px);
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 10px 24px;
}

.brand-lockup {
  display: flex;
  min-width: 190px;
  align-items: center;
  gap: 10px;
}

.brand-lockup strong,
.brand-lockup span {
  display: block;
}

.brand-lockup strong {
  font-size: 15px;
  line-height: 1.25;
}

.brand-lockup span {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 11px;
}

.brand-mark-small {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  font-size: 12px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.dashboard {
  width: min(100%, 1500px);
  margin: 0 auto;
  padding: 24px;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.eyebrow {
  margin: 0 0 2px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.page-heading h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.sync-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-secondary);
  font-size: 12px;
}

.sync-status time {
  min-width: 112px;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.status-dot-success {
  background: #21835f;
  box-shadow: 0 0 0 3px rgb(33 131 95 / 13%);
}

.status-dot-error {
  background: var(--danger);
  box-shadow: 0 0 0 3px rgb(180 35 44 / 12%);
}

.status-dot-muted {
  background: var(--text-muted);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
  background: var(--surface);
}

.metric-item {
  min-width: 0;
  min-height: 110px;
  padding: 18px 20px;
  border-right: 1px solid var(--border);
}

.metric-item:last-child {
  border-right: 0;
}

.metric-item > span,
.metric-item > strong,
.metric-item > small {
  display: block;
}

.metric-item > span {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 650;
}

.metric-item > strong {
  margin-top: 8px;
  overflow: hidden;
  font-size: 28px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-item > small {
  margin-top: 7px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inline-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 11px 13px;
  border: 1px solid;
  border-radius: 6px;
}

.inline-alert strong,
.inline-alert p {
  margin: 0;
}

.inline-alert p {
  margin-top: 2px;
  font-size: 12px;
}

.inline-alert-error {
  border-color: #efbdc1;
  color: #741820;
  background: #fff5f5;
}

.panel {
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
}

.credentials-panel {
  margin-bottom: 16px;
}

.panel-header {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.panel-header h2,
.panel-header p {
  margin: 0;
}

.panel-header h2 {
  font-size: 15px;
  line-height: 1.3;
}

.panel-header p {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 11px;
}

.legend {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-secondary);
  font-size: 11px;
  white-space: nowrap;
}

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

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.legend-dot-success {
  background: #21835f;
}

.legend-dot-warning {
  background: #c47a11;
}

.legend-dot-muted {
  background: #909b96;
}

.content-state {
  display: grid;
  min-height: 235px;
  place-items: center;
  align-content: center;
  padding: 32px;
  text-align: center;
}

.content-state strong,
.content-state p {
  margin: 0;
}

.content-state strong {
  margin-top: 12px;
  font-size: 14px;
}

.content-state p {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12px;
}

.content-state-error strong {
  color: var(--danger);
}

.state-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid #d6dedb;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 750ms linear infinite;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid #e9eeeb;
  vertical-align: middle;
  text-align: left;
}

th {
  height: 39px;
  color: #56655f;
  background: var(--surface-muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

td {
  height: 57px;
  color: #2c3934;
  font-size: 12px;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: #fbfcfc;
}

th:nth-child(1),
td:nth-child(1) {
  width: 82px;
}

th:nth-child(2),
td:nth-child(2) {
  width: 150px;
}

th:nth-child(3),
td:nth-child(3) {
  width: 125px;
}

th:nth-child(4),
td:nth-child(4),
th:nth-child(5),
td:nth-child(5),
th:nth-child(8),
td:nth-child(8) {
  width: 135px;
}

th:nth-child(6),
td:nth-child(6),
th:nth-child(7),
td:nth-child(7) {
  width: 65px;
}

th:nth-child(9),
td:nth-child(9) {
  width: 275px;
}

.number-column {
  text-align: right;
}

.actions-column {
  text-align: right;
}

.account-name {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-id {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.badge-success {
  border-color: #b5ddce;
  color: #126447;
  background: #e9f7f1;
}

.badge-warning {
  border-color: #edd19d;
  color: #895207;
  background: var(--warning-soft);
}

.badge-danger {
  border-color: #efbdc1;
  color: #8b1c25;
  background: var(--danger-soft);
}

.badge-info {
  border-color: #bfd3ee;
  color: #1f548f;
  background: var(--info-soft);
}

.badge-neutral {
  border-color: #d3dad7;
  color: #68756f;
  background: #f2f5f4;
}

.credential-health {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.credential-health small,
.cell-secondary {
  color: var(--text-muted);
  font-size: 10px;
}

.time-cell {
  display: block;
  white-space: nowrap;
}

.cooldown-active {
  color: var(--warning);
  font-weight: 650;
}

.success-count {
  color: #176b52;
  font-weight: 700;
}

.failure-count {
  color: var(--danger);
  font-weight: 700;
}

.row-actions {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.action-button {
  min-height: 28px;
  padding: 4px 7px;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  color: #456059;
  background: transparent;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.action-button:hover:not(:disabled) {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface-muted);
}

.action-button-danger {
  color: var(--danger);
}

.action-button-danger:hover:not(:disabled) {
  border-color: #efc7ca;
  color: var(--danger);
  background: var(--danger-soft);
}

.action-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

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

.compact-panel {
  min-width: 0;
}

.compact-header {
  min-height: 62px;
}

.stat-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.stat-list > div {
  display: flex;
  min-width: 0;
  min-height: 57px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-list > div:nth-child(2n) {
  border-right: 0;
}

.stat-list > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.stat-list dt {
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-list dd {
  margin: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dialog {
  width: min(calc(100% - 32px), 650px);
  max-height: min(90vh, 820px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  overflow: hidden;
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow-dialog);
}

.dialog::backdrop {
  background: rgb(22 32 28 / 48%);
  backdrop-filter: blur(2px);
}

.dialog-wide {
  width: min(calc(100% - 32px), 760px);
}

.models-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
}

.models-summary strong,
.models-summary p {
	margin: 0;
}

.models-summary p {
	margin-top: 4px;
	color: var(--text-muted);
	font-size: 11px;
}

.models-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	border: 1px solid var(--border);
	border-radius: 7px;
	overflow: hidden;
}

.model-item {
	display: flex;
	min-height: 58px;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px;
	border-right: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

.model-item:nth-child(2n) {
	border-right: 0;
}

.model-item strong,
.model-item small {
	display: block;
}

.model-item strong {
	font-size: 13px;
}

.model-item small {
	margin-top: 3px;
	color: var(--text-muted);
	font-size: 11px;
}

.compact-state {
	min-height: 180px;
}

.confirm-dialog {
  width: min(calc(100% - 32px), 440px);
}

.dialog-form {
  display: flex;
  max-height: min(90vh, 820px);
  flex-direction: column;
}

.dialog-header,
.dialog-footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
}

.dialog-header {
  border-bottom: 1px solid var(--border);
}

.dialog-header h2,
.dialog-header p {
  margin: 0;
}

.dialog-header h2 {
  font-size: 17px;
}

.dialog-body {
  min-height: 0;
  padding: 18px;
  overflow-y: auto;
}

.dialog-footer {
  justify-content: flex-end;
  border-top: 1px solid var(--border);
  background: var(--surface-muted);
}

.icon-button {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  color: var(--text-secondary);
  background: transparent;
  font-size: 22px;
  line-height: 1;
}

.icon-button:hover {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface-muted);
}

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

.field {
  display: grid;
  min-width: 0;
  gap: 6px;
}

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

.field small {
  color: var(--text-muted);
  font-size: 11px;
}

.switch-field {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  color: #34423c;
  font-size: 13px;
  font-weight: 650;
}

.switch-field input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  opacity: 0;
}

.switch {
  position: relative;
  width: 34px;
  height: 20px;
  flex: 0 0 34px;
  border: 1px solid #adb8b3;
  border-radius: 999px;
  background: #cbd2cf;
  transition:
    border-color 120ms ease,
    background 120ms ease;
}

.switch::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  content: "";
  background: #ffffff;
  box-shadow: 0 1px 2px rgb(20 35 29 / 25%);
  transition: transform 120ms ease;
}

.switch-field input:checked + .switch {
  border-color: var(--primary);
  background: var(--primary);
}

.switch-field input:checked + .switch::after {
  transform: translateX(14px);
}

.switch-field input:focus-visible + .switch {
  outline: 3px solid rgb(36 92 168 / 20%);
  outline-offset: 2px;
}

.file-picker {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 12px;
  border: 1px dashed #a9b6b0;
  border-radius: 6px;
  cursor: pointer;
  color: var(--primary);
  background: #f7faf8;
  font-weight: 650;
}

.file-picker:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.file-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  opacity: 0;
}

.file-picker small {
  max-width: 55%;
  overflow: hidden;
  color: var(--text-muted);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.import-text-field {
  margin-top: 14px;
}

.import-text-field textarea {
  min-height: 230px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.import-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}

.import-options > strong {
  color: var(--text-secondary);
  font-size: 12px;
}

.confirm-body {
  padding-top: 22px;
  padding-bottom: 24px;
}

.confirm-body p {
  margin: 0;
  color: #3d4a45;
  line-height: 1.7;
}

.toast-region {
  position: fixed;
  z-index: 1100;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: min(calc(100% - 36px), 360px);
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--info);
  border-radius: 6px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 10px 28px rgb(27 41 35 / 15%);
  pointer-events: auto;
  animation: toast-in 160ms ease-out;
}

.toast-success {
  border-left-color: var(--primary);
}

.toast-error {
  border-left-color: var(--danger);
}

.toast-warning {
  border-left-color: var(--warning);
}

.toast strong,
.toast p {
  margin: 0;
}

.toast strong {
  display: block;
  font-size: 12px;
}

.toast p {
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 11px;
}

.toast-close {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  margin-left: auto;
  padding: 0;
  border: 0;
  cursor: pointer;
  color: var(--text-muted);
  background: transparent;
  font-size: 18px;
  line-height: 1;
}

@keyframes toast-in {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .topbar-inner {
    align-items: flex-start;
  }

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

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

  .metric-item:nth-child(2) {
    border-right: 0;
  }

  .metric-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

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

@media (max-width: 640px) {
  .login-view {
    padding: 16px;
  }

  .login-panel {
    padding: 28px 22px 30px;
  }

  .topbar {
    position: static;
  }

  .topbar-inner {
    display: grid;
    gap: 12px;
    padding: 12px 16px;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .topbar-actions .button {
    width: 100%;
  }

  .dashboard {
    padding: 18px 12px 24px;
  }

  .page-heading {
    display: grid;
    align-items: start;
  }

  .sync-status {
    flex-wrap: wrap;
  }

  .metric-item {
    min-height: 98px;
    padding: 14px;
  }

  .metric-item > strong {
    font-size: 23px;
  }

  .panel-header {
    align-items: flex-start;
		flex-wrap: wrap;
  }

	.models-list {
		grid-template-columns: 1fr;
	}

	.model-item,
	.model-item:nth-child(2n) {
		border-right: 0;
	}

  .legend {
    display: none;
  }

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

  .stat-list > div,
  .stat-list > div:nth-child(2n),
  .stat-list > div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .stat-list > div:last-child {
    border-bottom: 0;
  }

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

  .field-wide {
    grid-column: auto;
  }

  .dialog {
    width: calc(100% - 20px);
    max-height: calc(100vh - 20px);
  }

  .dialog-form {
    max-height: calc(100vh - 20px);
  }

  .dialog-header,
  .dialog-footer,
  .dialog-body {
    padding-right: 14px;
    padding-left: 14px;
  }

  .import-options {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
