@font-face {
  font-family: "JetBrains Mono";
  src: url("/static/fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/static/fonts/JetBrainsMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/static/fonts/JetBrainsMono-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/static/fonts/JetBrainsMono-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --background: #eef2f6;
  --background-2: #f8fafc;
  --foreground: #0f172a;
  --muted: #667085;
  --muted-2: #8a94a6;
  --border: rgba(15, 23, 42, .14);
  --border-soft: rgba(15, 23, 42, .08);
  --surface: rgba(255, 255, 255, .72);
  --surface-strong: rgba(255, 255, 255, .92);
  --surface-solid: #ffffff;
  --control: rgba(255, 255, 255, .7);
  --control-hover: rgba(255, 255, 255, .96);
  --primary: #0a84ff;
  --primary-strong: #0066d6;
  --danger: #c02b20;
  --success: #16834a;
  --warning: #b25e09;
  --focus: rgba(10, 132, 255, .26);
  --shadow: 0 24px 70px rgba(15, 23, 42, .13);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, .08);
  --glass: blur(26px) saturate(1.45);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --background: #111214;
    --background-2: #1a1b1f;
    --foreground: #f6f7fb;
    --muted: #a1a9b8;
    --muted-2: #7e8795;
    --border: rgba(255, 255, 255, .15);
    --border-soft: rgba(255, 255, 255, .08);
    --surface: rgba(38, 39, 44, .68);
    --surface-strong: rgba(48, 49, 55, .92);
    --surface-solid: #25262b;
    --control: rgba(255, 255, 255, .1);
    --control-hover: rgba(255, 255, 255, .16);
    --primary: #0a84ff;
    --primary-strong: #409cff;
    --danger: #ff6961;
    --success: #32d74b;
    --warning: #ffd60a;
    --focus: rgba(10, 132, 255, .34);
    --shadow: 0 24px 70px rgba(0, 0, 0, .36);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, .24);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #111214;
  --background-2: #1a1b1f;
  --foreground: #f6f7fb;
  --muted: #a1a9b8;
  --muted-2: #7e8795;
  --border: rgba(255, 255, 255, .15);
  --border-soft: rgba(255, 255, 255, .08);
  --surface: rgba(38, 39, 44, .68);
  --surface-strong: rgba(48, 49, 55, .92);
  --surface-solid: #25262b;
  --control: rgba(255, 255, 255, .1);
  --control-hover: rgba(255, 255, 255, .16);
  --primary: #0a84ff;
  --primary-strong: #409cff;
  --danger: #ff6961;
  --success: #32d74b;
  --warning: #ffd60a;
  --focus: rgba(10, 132, 255, .34);
  --shadow: 0 24px 70px rgba(0, 0, 0, .36);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, .24);
}

:root[data-theme="light"] {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    linear-gradient(135deg, rgba(10, 132, 255, .11), transparent 34%),
    linear-gradient(225deg, rgba(52, 199, 89, .08), transparent 34%),
    linear-gradient(180deg, var(--background-2), var(--background));
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  padding: 20px 0 74px;
  color: var(--foreground);
  font: 14px/1.5 ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
}

body::before {
  background:
    radial-gradient(circle at 18% 12%, rgba(100, 210, 255, .18), transparent 28%),
    radial-gradient(circle at 78% 8%, rgba(10, 132, 255, .16), transparent 30%),
    radial-gradient(circle at 64% 82%, rgba(48, 209, 88, .08), transparent 34%);
  filter: blur(10px);
  transform: translate3d(var(--parallax-glow-x, 0), var(--parallax-glow-y, 0), 0);
  will-change: transform;
}

body::after {
  opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px),
    radial-gradient(circle at center, transparent 0 58%, rgba(255, 255, 255, .035) 59%, transparent 60%);
  background-size: 64px 64px, 64px 64px, 420px 420px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, .28) 72%, transparent);
  transform: translate3d(var(--parallax-grid-x, 0), var(--parallax-grid-y, 0), 0);
  will-change: transform;
}

button,
input,
select,
textarea {
  font: inherit;
}

code,
kbd,
pre,
samp,
.mono {
  font-family: var(--mono);
}

code,
kbd,
samp {
  font-size: .95em;
}

pre {
  overflow: auto;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: color-mix(in srgb, var(--surface-solid), transparent 7%);
  line-height: 1.5;
}

.shell {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.topbar,
.tabs,
.panel,
.modal,
.app-footer,
.toast {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, .35);
  -webkit-backdrop-filter: var(--glass);
  backdrop-filter: var(--glass);
}

.topbar,
.tabs,
.panel {
  transform: translate3d(var(--parallax-surface-x, 0), var(--parallax-surface-y, 0), 0);
  will-change: transform;
}

.topbar {
  z-index: 10;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 68px;
  border-radius: var(--radius-lg);
  padding: 12px 14px;
}

.brand {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: center;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .76), rgba(255, 255, 255, .18)),
    linear-gradient(135deg, #0a84ff, #64d2ff);
  box-shadow: 0 12px 26px rgba(10, 132, 255, .22), inset 0 1px 0 rgba(255, 255, 255, .55);
}

.brand-mark svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  filter: drop-shadow(0 1px 1px rgba(0, 55, 120, .24));
}

.brand h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 780;
  line-height: 1.1;
}

.brand-title {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  line-height: 1;
}

.brand-by {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--border), transparent 30%);
  border-radius: var(--radius-pill);
  min-height: 20px;
  padding: 0 7px;
  background: color-mix(in srgb, var(--surface-strong), transparent 24%);
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.1;
  text-decoration: none;
  transform: translateY(1px);
}

.brand-by strong {
  color: var(--foreground);
  font-weight: 760;
}

.brand-by:hover {
  border-color: color-mix(in srgb, var(--primary), transparent 54%);
  background: color-mix(in srgb, var(--primary), transparent 88%);
  color: var(--foreground);
}

.brand-by:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--focus);
}

.brand p,
.muted {
  margin: 3px 0 0;
  color: var(--muted);
}

.mono {
  font-size: .95em;
  font-variant-ligatures: none;
}

.toolbar,
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

button,
.button {
  appearance: none;
  min-height: 38px;
  border: 1px solid color-mix(in srgb, var(--border), transparent 10%);
  border-radius: var(--radius-pill);
  padding: 8px 13px;
  background: var(--control);
  color: var(--foreground);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .34);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease, opacity .16s ease;
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  backdrop-filter: blur(16px) saturate(1.25);
}

button:hover,
.button:hover {
  border-color: color-mix(in srgb, var(--foreground), transparent 76%);
  background: var(--control-hover);
}

button:active,
.button:active {
  transform: scale(.985);
}

button:disabled,
.is-disabled,
button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .46;
}

button:focus-visible,
.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--focus), inset 0 1px 0 rgba(255, 255, 255, .34);
}

.primary {
  border-color: transparent;
  background: var(--primary);
  background-image: none;
  color: #fff;
  box-shadow: 0 9px 20px color-mix(in srgb, var(--primary), transparent 84%);
}

.primary:hover {
  border-color: transparent;
  background: color-mix(in srgb, var(--primary-strong), var(--primary) 28%);
  background-image: none;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--primary), transparent 82%);
}

.danger {
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger), transparent 65%);
  background: color-mix(in srgb, var(--danger), transparent 94%);
}

.ghost {
  background: color-mix(in srgb, var(--control), transparent 32%);
}

.wide {
  width: 100%;
}

.icon-button {
  display: inline-grid;
  width: 36px;
  min-height: 36px;
  place-items: center;
  padding: 0;
  border-radius: var(--radius-pill);
  font-size: 22px;
  line-height: 1;
}

.theme-toggle {
  display: inline-grid;
  width: 48px;
  place-items: center;
  padding: 0;
}

.theme-toggle svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  border-radius: var(--radius-lg);
  padding: 6px;
}

.tab {
  min-height: 58px;
  border-color: transparent;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--control), transparent 34%);
  box-shadow: none;
  text-align: left;
}

.tab.active {
  border-color: color-mix(in srgb, var(--primary), transparent 50%);
  background: var(--surface-strong);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .1), inset 0 1px 0 rgba(255, 255, 255, .42);
}

.tab strong {
  display: block;
  font-size: 17px;
  line-height: 1.1;
}

.tab span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.panel {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .35);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 20px 16px;
}

.section-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 760;
  line-height: 1.15;
}

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

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

.card {
  min-width: 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 15px;
  background: color-mix(in srgb, var(--surface-solid), transparent 6%);
  box-shadow: var(--shadow-soft);
  transform: translate3d(var(--parallax-card-x, 0), var(--parallax-card-y, 0), 0);
  will-change: transform;
}

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

.card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 740;
  line-height: 1.16;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 2px 9px;
  background: color-mix(in srgb, var(--surface-solid), transparent 14%);
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  white-space: nowrap;
}

.badge.ok {
  color: var(--success);
  border-color: color-mix(in srgb, var(--success), transparent 62%);
  background: color-mix(in srgb, var(--success), transparent 91%);
}

.badge.bad {
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger), transparent 62%);
  background: color-mix(in srgb, var(--danger), transparent 92%);
}

.badge.warn {
  color: var(--warning);
  border-color: color-mix(in srgb, var(--warning), transparent 56%);
  background: color-mix(in srgb, var(--warning), transparent 88%);
}

.badge.neutral {
  color: var(--muted);
  border-color: var(--border-soft);
  background: color-mix(in srgb, var(--surface-solid), transparent 8%);
}

.facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.runtime-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  max-width: min(520px, 58%);
}

.fact {
  min-width: 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 9px;
  background: color-mix(in srgb, var(--surface-solid), transparent 4%);
}

.fact span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  text-transform: uppercase;
}

.fact strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
  font-weight: 740;
}

.endpoint-value {
  display: grid;
  gap: 4px;
  margin-top: 3px;
}

.endpoint-value strong {
  margin-top: 0;
}

.endpoint-value small {
  width: fit-content;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  padding: 1px 7px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface-solid), transparent 8%);
  font-size: 10px;
  font-weight: 720;
  line-height: 1.55;
  text-transform: uppercase;
}

.fact .mono,
.fact strong.mono,
.client-row .mono,
.brand .mono {
  letter-spacing: -.01em;
}

.card-actions {
  margin: 12px 0 4px;
}

.client-list {
  margin-top: 14px;
  border-top: 1px solid var(--border-soft);
}

.client-list-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 0 2px;
}

.client-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
}

.client-row:last-child {
  border-bottom: 0;
}

.doctor-message {
  display: block;
  margin-top: 6px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  background: color-mix(in srgb, var(--surface-solid), transparent 10%);
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.45;
  font-size: 12.5px;
}

.client-row strong,
.client-row span {
  display: block;
  overflow-wrap: anywhere;
}

.client-row strong {
  display: flex;
  gap: 8px;
  align-items: center;
}

.client-notes {
  display: -webkit-box;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--muted-2);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--muted-2), transparent 82%);
}

.status-dot.ok {
  background: var(--success);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--success), transparent 82%);
}

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

.row-actions .button,
.row-actions button {
  min-height: 32px;
  padding: 6px 11px;
}

.empty,
.empty-inline {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface-solid), transparent 12%);
  color: var(--muted);
  text-align: center;
}

.empty {
  margin: 0 18px 18px;
  padding: 32px 20px;
}

.empty strong {
  display: block;
  color: var(--foreground);
  font-size: 17px;
}

.empty-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 10px;
  border-radius: var(--radius-pill);
  background: var(--control);
  color: var(--primary);
  font-weight: 800;
}

.empty-inline {
  margin-top: 10px;
  padding: 18px;
}

.notice {
  margin: 0 0 14px;
  border: 1px solid color-mix(in srgb, var(--warning), transparent 58%);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  background: color-mix(in srgb, var(--warning), transparent 88%);
  color: color-mix(in srgb, var(--warning), var(--foreground) 35%);
}

.modal {
  width: min(820px, calc(100% - 28px));
  max-height: min(860px, calc(100vh - 28px));
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 0;
  color: var(--foreground);
}

.modal::backdrop {
  background: rgba(10, 16, 25, .38);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
}

.modal-body {
  max-height: min(860px, calc(100vh - 28px));
  overflow: auto;
  padding: 22px;
}

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

.modal h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 780;
  line-height: 1.12;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

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

label {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--border), var(--foreground) 12%);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  background: var(--surface-solid);
  color: var(--foreground);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted-2);
}

input[type="checkbox"] {
  width: auto;
  accent-color: var(--primary);
}

textarea {
  min-height: 96px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.42;
  resize: vertical;
}

.import-key-text {
  min-height: 180px;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 18px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin: -6px 0 16px;
}

.maintenance-modal {
  width: min(1120px, calc(100% - 28px));
}

.maintenance-tabs {
  display: flex;
  gap: 6px;
  margin: -4px 0 18px;
  overflow-x: auto;
  padding: 3px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface-solid), transparent 18%);
}

.maintenance-tabs button {
  min-height: 36px;
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  color: var(--muted);
  white-space: nowrap;
  box-shadow: none;
}

.maintenance-tabs button.active {
  color: var(--foreground);
  background: var(--surface-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}

.maintenance-panel {
  display: grid;
  gap: 14px;
}

.maintenance-hero,
.maintenance-section-head,
.maintenance-result {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 16px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-solid), transparent 8%), color-mix(in srgb, var(--surface-solid), transparent 18%));
}

.maintenance-hero,
.maintenance-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.maintenance-hero h3,
.maintenance-section-head h3,
.maintenance-result h3 {
  margin: 8px 0 4px;
  font-size: 20px;
}

.maintenance-section-head h3,
.maintenance-result h3 {
  margin-top: 0;
}

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

.maintenance-card {
  display: grid;
  gap: 12px;
  align-content: space-between;
  min-height: 184px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 16px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-solid), transparent 8%), color-mix(in srgb, var(--surface-solid), transparent 18%));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24);
}

.maintenance-card.compact {
  min-height: 150px;
}

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

.maintenance-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.18;
}

.maintenance-card p {
  min-height: 48px;
  margin: 0;
  line-height: 1.45;
}

.maintenance-card button {
  justify-self: start;
}

.maintenance-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.35;
}

.maintenance-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.command-block {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 13px;
  background: color-mix(in srgb, var(--surface-solid), transparent 8%);
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.checkbox-row {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

.login-shell {
  display: grid;
  min-height: calc(100vh - 80px);
  place-items: center;
}

.login {
  width: min(430px, 100%);
  padding: 26px;
}

.login-form {
  margin-top: 22px;
  grid-template-columns: 1fr;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 64px;
  z-index: 30;
  display: block;
  max-width: 420px;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--foreground);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(.98);
  transition: opacity .16s ease, transform .16s ease;
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.app-footer {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 20;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 5px;
  color: var(--muted);
  font-size: 12px;
  transform: translateX(-50%);
}

.footer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 30px;
  border-radius: var(--radius-pill);
  padding: 0 10px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.footer-button-icon {
  width: 34px;
  min-width: 34px;
  padding: 0;
}

.footer-button svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.footer-button:hover {
  background: var(--surface-strong);
  color: var(--foreground);
}

.footer-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--focus);
}

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

  button:active,
  .button:active {
    transform: none;
  }

  body::before,
  body::after,
  .topbar,
  .tabs,
  .panel,
  .card {
    transform: none;
    will-change: auto;
  }
}

@media (prefers-reduced-transparency: reduce) {
  body::before,
  body::after {
    display: none;
  }

  .topbar,
  .tabs,
  .panel,
  .modal,
  .app-footer,
  .toast {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--surface-solid);
  }

  button,
  .button {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .topbar,
  .tabs,
  .panel,
  .modal,
  .app-footer,
  .toast {
    background: var(--surface-solid);
  }
}

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

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

@media (max-width: 760px) {
  body {
    padding: 10px 0 68px;
  }

  .shell {
    width: min(100% - 20px, 1220px);
    gap: 12px;
  }

  .topbar,
  .card-head,
  .section-head,
  .maintenance-hero,
  .maintenance-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .runtime-summary {
    justify-content: flex-start;
    max-width: none;
  }

  .toolbar,
  .card-actions,
  .row-actions,
  .form-actions,
  .maintenance-section-head {
    justify-content: stretch;
  }

  .toolbar > *,
  .card-actions > *,
  .row-actions > *,
  .form-actions > * {
    flex: 1 1 auto;
  }

  .maintenance-section-head > button,
  .maintenance-hero > button {
    width: 100%;
  }

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

  .tabs,
  .topbar {
    position: static;
  }

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

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

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

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

  .maintenance-card {
    min-height: auto;
  }

  .modal {
    width: min(100% - 20px, 820px);
    max-height: calc(100vh - 20px);
  }

  .modal-body {
    max-height: calc(100vh - 20px);
  }

  .app-footer {
    bottom: 10px;
  }

  .toast {
    right: 10px;
    bottom: 58px;
    left: 10px;
    max-width: none;
  }
}

@media (max-width: 420px) {
  .shell {
    width: min(100% - 14px, 1220px);
  }

  .section-head,
  .modal-body,
  .login {
    padding: 18px;
  }

  .grid {
    padding: 0 12px 12px;
  }
}
