:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #20283b;
  background: #f5f6fa;
  font-synthesis: none;
  --muted: #687287;
  --line: #e5e8f0;
  --primary: #4e48d9;
  --surface: #fff;
}
* {
  box-sizing: border-box;
}
.database-imports {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 24px;
}
.database-imports h3 {
  margin: 0;
}
.database-upload-item {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.database-upload-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.database-upload-heading strong {
  overflow-wrap: anywhere;
  min-width: 0;
}
.database-import-changes {
  margin: 12px 0;
  padding-left: 20px;
}
#database-upload-dialog {
  width: min(600px, calc(100vw - 36px));
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
}
#database-upload-fields {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
#database-upload-form input,
#database-upload-form select {
  box-sizing: border-box;
  max-width: 100%;
  width: 100%;
}
#database-upload-form label {
  display: block;
  margin-top: 16px;
}
#database-upload-form progress {
  width: 100%;
  margin-top: 18px;
  accent-color: var(--primary);
}
body {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
[hidden] {
  display: none !important;
}
a {
  color: var(--primary);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.2;
}
h2 {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 16px;
  font-weight: 650;
}
p {
  color: var(--muted);
}
code {
  font:
    12px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  background: #f0f1f7;
  border-radius: 4px;
  padding: 2px 4px;
  overflow-wrap: anywhere;
}
pre {
  padding: 14px;
  background: #f2f3f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  font:
    12px/1.7 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #343954;
}
svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.5;
}
.shell {
  max-width: 1264px;
  margin: 0 auto;
  padding: 0 32px;
}
.topbar {
  background: white;
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: #24283e;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.3px;
}
.brand-mark {
  width: 42px;
  height: 42px;
  padding: 9px;
  color: #fff;
  background: var(--primary);
  border-radius: 12px;
  box-shadow: 0 3px 10px #4e48d91a;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1px;
  font-weight: 450;
  margin-top: 2px;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.connection {
  font-size: 12px;
  color: #40776c;
  display: flex;
  align-items: center;
  gap: 7px;
}
.connection:before {
  content: "";
  width: 6px;
  height: 6px;
  background: #3c9d83;
  border-radius: 50%;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  gap: 6px;
  transition: background 0.15s;
}
.button-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 3px #332e7a10;
}
.button-primary:hover:not(:disabled) {
  background: #403ac5;
}
.button-secondary {
  background: white;
  color: #35384c;
  border-color: #dce0ea;
}
.button-secondary:hover:not(:disabled) {
  background: #f6f6fc;
}
.button-quiet {
  color: var(--muted);
  background: transparent;
  padding: 8px 10px;
}
.button-quiet:hover {
  background: #f2f3f8;
}
.button-wide {
  width: 100%;
}
.button-danger {
  color: #a93442;
  background: #fff2f3;
  border-color: #f1ced3;
}
.button-danger:hover:not(:disabled) {
  background: #ffe5e8;
}
.installation-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 155px;
}
.installation-actions .button {
  font-size: 11px;
  min-height: 34px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
:focus-visible {
  outline: 3px solid #b5aff8;
  outline-offset: 3px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #7d79a6;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 2px 3px #18244902;
  padding: 25px;
}
.caption {
  font-size: 11px;
  color: #8790a2;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 600;
  border-radius: 6px;
  white-space: nowrap;
}
.badge-neutral {
  color: #68708a;
  background: #f1f2f7;
}
.badge-good {
  color: #287765;
  background: #eaf7f1;
}
.badge-warning {
  color: #9d6d19;
  background: #fcf4e2;
}
.badge-error {
  color: #b34d56;
  background: #fcedef;
}
.login-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 90px;
  align-items: center;
  max-width: 1060px;
  min-height: calc(100vh - 160px);
  margin: auto;
  padding: 62px 0;
}
.login-intro h1 {
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -1.4px;
  margin: 17px 0 19px;
}
.lead {
  font-size: 15px;
  line-height: 1.75;
  max-width: 430px;
}
.flow-list {
  list-style: none;
  margin: 29px 0 0;
  padding: 0;
  display: grid;
  gap: 22px;
}
.flow-list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.flow-list li > span {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #ebe9fd;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}
.flow-list strong {
  font-size: 13px;
  font-weight: 650;
}
.flow-list p {
  font-size: 12px;
  line-height: 1.65;
  margin-top: 2px;
  max-width: 360px;
}
.login-card {
  padding: 32px;
  box-shadow: 0 12px 40px #27205b05;
}
.login-card h2 {
  margin: 17px 0 9px;
  font-size: 22px;
  line-height: 1.4;
}
.login-card > p {
  font-size: 13px;
  margin-bottom: 23px;
}
.login-note {
  font-size: 11px !important;
  margin: 19px 0 0 !important;
  line-height: 1.7;
}
label {
  font-size: 12px;
  font-weight: 650;
  display: block;
  margin-bottom: 7px;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #dce0ea;
  background: #fff;
  padding: 11px 12px;
  border-radius: 8px;
  color: #293044;
}
input::placeholder {
  color: #a1a7b6;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #d3cffb;
  border-color: #8d82df;
}
textarea {
  font:
    12px/1.8 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  resize: vertical;
}
.field-help {
  font-size: 12px;
  line-height: 1.7;
  margin: 11px 0 18px;
}
.form-error {
  font-size: 12px;
  line-height: 1.6;
  color: #b34d56;
  margin-top: 12px;
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 38px 0 25px;
}
.page-heading h1 {
  margin: 7px 0 9px;
  font-size: 29px;
}
.page-heading p {
  font-size: 13px;
}
.refresh-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.metric {
  border: 1px solid var(--line);
  background: white;
  border-radius: 11px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.metric > span {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.metric strong {
  font-size: 30px;
  line-height: 1.3;
  letter-spacing: -1px;
  font-weight: 650;
  margin: 5px 0;
}
.metric small {
  color: #8a91a1;
  font-size: 11px;
}
.metric.attention strong {
  color: #a97d2c;
}
.next-step {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #eeedfc;
  border: 1px solid #e0ddf8;
  border-radius: 11px;
  padding: 17px 20px;
  margin-bottom: 29px;
}
.step-symbol {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: #e1defb;
  color: var(--primary);
  border-radius: 8px;
  font-size: 22px;
  flex-shrink: 0;
}
.next-step > div {
  flex: 1;
}
.next-step strong {
  font-size: 13px;
  color: #39316d;
}
.next-step p {
  font-size: 12px;
  color: #726b90;
  margin-top: 3px;
}
.next-step .button {
  flex-shrink: 0;
  background: #ffffffb8;
  color: #514789;
  border-color: #d9d5f0;
}
.tabs {
  display: flex;
  gap: 27px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.tabs button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 0 0 14px;
  color: #85899b;
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
}
.tabs button[aria-selected="true"] {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 650;
}
.tabs span {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #e9e9f2;
  margin-left: 5px;
  color: #84859d;
}
.tabs [aria-selected="true"] span {
  background: #e9e6fc;
  color: var(--primary);
}
.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 21px;
}
.section-heading h2 {
  margin-bottom: 6px;
}
.section-heading p {
  font-size: 12px;
  max-width: 650px;
  line-height: 1.7;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th {
  text-align: left;
  color: #9a9eae;
  font-size: 10px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0 14px 12px;
  white-space: nowrap;
}
td {
  padding: 17px 14px;
  border-top: 1px solid #eff0f5;
  font-size: 12px;
  vertical-align: middle;
}
th:first-child,
td:first-child {
  padding-left: 0;
}
th:last-child,
td:last-child {
  padding-right: 0;
}
td strong {
  font-size: 12px;
  font-weight: 600;
  color: #3e4358;
  display: block;
}
td small {
  display: block;
  margin-top: 4px;
  color: #9095a6;
  font-size: 11px;
  line-height: 1.6;
}
.source-name {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-width: 205px;
}
.source-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 32px;
  background: #f3f3fa;
  border: 1px solid #ececf4;
  border-radius: 7px;
  font-size: 12px;
  color: #8780b4;
  font-weight: 600;
  flex-shrink: 0;
}
.source-details {
  margin-top: 6px;
  font-size: 10px;
}
.source-details summary {
  color: #9c9aaa;
  font-size: 10px;
  cursor: pointer;
}
.source-details div {
  padding: 7px 0;
  color: #7b7d8b;
  max-width: 290px;
}
.source-details code {
  display: block;
  margin-top: 4px;
  white-space: normal;
  font-size: 10px;
}
.installation-link {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  overflow-wrap: anywhere;
  color: var(--primary);
}
#installations td {
  vertical-align: top;
}
.installation-details div {
  min-width: 200px;
}
.installation-details ul {
  padding-left: 16px;
  margin-bottom: 0;
  line-height: 1.8;
}
.table-note {
  display: flex;
  gap: 9px;
  background: #f7f8fc;
  border-radius: 8px;
  padding: 12px 15px;
  margin-top: 18px;
}
.table-note p {
  font-size: 11px;
  color: #9297a6;
  line-height: 1.7;
}
.table-note strong {
  font-weight: 550;
  color: #747c91;
}
.note-dot {
  width: 5px;
  height: 5px;
  background: #a6a1cb;
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}
.page-footer {
  text-align: center;
  padding: 24px 0 32px;
}
.page-footer p {
  font-size: 11px;
  color: #a0a4b1;
}
.empty-state {
  text-align: center;
  padding: 43px 20px 34px;
  max-width: 550px;
  margin: auto;
}
.empty-symbol {
  font-size: 26px;
  display: grid;
  place-items: center;
  color: #8f87c9;
  background: #f1effc;
  border: 1px solid #eae7f9;
  border-radius: 12px;
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
}
.empty-state h3 {
  color: #565a72;
}
.empty-state p {
  font-size: 12px;
  line-height: 1.8;
  margin: 9px auto 20px;
  max-width: 440px;
}
.empty-state-small {
  padding: 24px 12px 10px;
}
.section-footnote {
  font-size: 11px;
  padding-top: 17px;
  margin-top: 15px;
  border-top: 1px solid var(--line);
  line-height: 1.8;
}
.checks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.connection-card {
  max-width: 760px;
}
.connection-field {
  margin-top: 24px;
}
.connection-field .field-help {
  margin-bottom: 0;
}
.connection-usage {
  font-size: 11px;
  margin-top: 8px;
}
.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 27px 0;
  cursor: pointer;
}
.checkbox-field input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--primary);
}
.checkbox-field small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  font-weight: 400;
}
.connection-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
}
.saved-message {
  font-size: 12px;
  color: #23876b;
}
.checks-grid > .card > p {
  font-size: 12px;
  line-height: 1.8;
}
.checks-grid .card > h2 {
  margin-bottom: 9px;
}
.status-list {
  margin: 18px 0;
  font-size: 12px;
}
.status-list > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid #eff0f5;
}
.status-list dt {
  color: #8a90a1;
}
.status-list dd {
  margin: 0;
  color: #4b4b66;
  font-weight: 550;
  text-align: right;
}
.help-box {
  font-size: 12px;
  background: #f7f7fc;
  border: 1px solid #ececf5;
  border-radius: 8px;
  padding: 13px 14px;
}
.help-box summary {
  color: #655b9c;
  font-weight: 550;
  cursor: pointer;
}
.help-box > div {
  padding-top: 12px;
}
.help-box p {
  font-size: 11px;
  line-height: 1.8;
}
.help-box pre {
  font-size: 11px;
  padding: 10px;
  background: #f0f0f7;
}
.input-action {
  display: flex;
  gap: 9px;
}
.input-action .button {
  flex-shrink: 0;
}
#check-form {
  margin-top: 22px;
}
.check-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 23px;
  gap: 12px;
}
.check-metrics strong {
  display: block;
  font-size: 23px;
  font-weight: 600;
  color: #55536f;
}
.check-metrics span {
  display: block;
  font-size: 10px;
  color: #9699a8;
  margin-top: 4px;
}
.changes-card,
.release-card {
  margin-top: 20px;
}
.delivery-form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(260px, 2fr) auto;
  gap: 16px;
  align-items: start;
  margin-top: 26px;
}
.delivery-form label {
  color: #777b91;
}
.delivery-form select {
  font-size: 12px;
  min-height: 43px;
}
.delivery-form .button {
  min-height: 43px;
  align-self: end;
}
.delivery-recipients {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.delivery-recipients legend {
  margin-bottom: 8px;
  font-size: 12px;
  color: #777b91;
}
.recipient-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.delivery-form .recipient-select-all,
.delivery-form .recipient-option {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  cursor: pointer;
}
.recipient-select-all input,
.recipient-option input {
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--primary);
}
#recipient-count {
  color: var(--muted);
  font-size: 11px;
}
.recipient-list {
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.delivery-form .recipient-option {
  padding: 11px 12px;
}
.recipient-option + .recipient-option {
  border-top: 1px solid var(--line);
}
.recipient-option:has(input:checked) {
  background: #f3f1ff;
}
.recipient-option:has(input:disabled) {
  opacity: 0.55;
  cursor: default;
}
.recipient-option span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.recipient-option strong {
  display: block;
  font-size: 12px;
}
.recipient-option small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}
.recipient-list > .field-help {
  padding: 0 12px;
}
.delivery-explanation {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  align-items: center;
  background: #f7f8fc;
  border-radius: 8px;
  padding: 15px 18px;
  font-size: 11px;
  color: #8a8d9e;
  margin-top: 20px;
}
.warning-text {
  color: #a77727 !important;
}
dialog {
  width: min(560px, calc(100% - 32px));
  border: 1px solid #e0deeb;
  border-radius: 15px;
  padding: 28px;
  box-shadow: 0 25px 100px #26214535;
  color: #34354e;
}
dialog::backdrop {
  background: #24223665;
  backdrop-filter: blur(2px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}
.dialog-heading h2 {
  margin-top: 6px;
}
.setup-list {
  padding-left: 20px;
  font-size: 12px;
  color: #777d93;
  line-height: 1.8;
  margin: 17px 0 22px;
}
.setup-list li {
  padding-left: 4px;
  margin-bottom: 7px;
}
#installation-created {
  font-size: 13px;
  color: #5e657d;
}
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(660px, calc(100% - 32px));
  background: #37324f;
  color: #fff;
  border: 1px solid #57516c;
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 13px;
  box-shadow: 0 12px 35px #16102722;
  z-index: 10;
}
.toast[data-tone="error"] {
  background: #8c3e4b;
  border-color: #a65c68;
}
@media (min-width: 1450px) {
  .shell {
    max-width: 1320px;
  }
  .metric {
    padding: 24px;
  }
  .panel.card {
    padding: 29px;
  }
  td {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}
@media (max-width: 960px) {
  .shell {
    padding: 0 22px;
  }
  .login-layout {
    gap: 36px;
  }
  .login-intro h1 {
    font-size: 34px;
  }
  .login-card {
    padding: 25px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .page-heading p {
    max-width: 430px;
  }
  .metrics {
    gap: 12px;
  }
  .metric {
    padding: 17px;
  }
  .metric > span {
    font-size: 11px;
  }
  .metric small {
    min-height: 30px;
  }
  .next-step {
    padding: 16px;
  }
  .checks-grid {
    grid-template-columns: 1fr;
  }
  .delivery-form {
    grid-template-columns: 1fr 1fr;
  }
  .delivery-form .button {
    grid-column: 1/-1;
  }
  .delivery-explanation {
    font-size: 10px;
    gap: 8px;
  }
  .tabs {
    gap: 21px;
  }
  .section-heading {
    flex-wrap: wrap;
  }
  .section-heading .badge {
    margin-top: -8px;
  }
}
@media (max-width: 640px) {
  .shell {
    padding: 0 16px;
  }
  .topbar-inner {
    min-height: 72px;
  }
  .brand {
    font-size: 16px;
  }
  .brand-mark {
    width: 36px;
    height: 36px;
    padding: 8px;
  }
  .brand small {
    font-size: 9px;
  }
  .topbar-actions {
    gap: 4px;
  }
  .connection {
    font-size: 0;
    gap: 0;
  }
  .connection:before {
    width: 7px;
    height: 7px;
  }
  .topbar .button {
    font-size: 11px;
  }
  .login-layout {
    display: flex;
    flex-direction: column;
    padding: 35px 0;
    gap: 28px;
    align-items: stretch;
    min-height: 0;
  }
  .login-intro h1 {
    font-size: 30px;
  }
  .login-intro h1 br {
    display: none;
  }
  .lead {
    font-size: 13px;
  }
  .flow-list {
    display: none;
  }
  .login-card {
    padding: 23px;
  }
  .login-card h2 {
    font-size: 20px;
  }
  .page-heading {
    padding: 25px 0 20px;
    flex-direction: column;
    gap: 16px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .refresh-block {
    align-items: flex-start;
    gap: 5px;
  }
  .refresh-block .button {
    min-height: 35px;
    font-size: 11px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 17px;
  }
  .metric {
    padding: 15px;
  }
  .metric strong {
    font-size: 27px;
    margin: 3px 0;
  }
  .metric small {
    font-size: 10px;
    min-height: 0;
  }
  .next-step {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 23px;
    padding: 15px;
  }
  .next-step > div {
    flex-basis: calc(100% - 48px);
  }
  .next-step .button {
    margin-left: 42px;
    font-size: 11px;
    min-height: 33px;
  }
  .next-step p {
    font-size: 11px;
  }
  .next-step strong {
    font-size: 12px;
  }
  .tabs {
    gap: 20px;
    overflow: auto;
    margin-bottom: 17px;
  }
  .tabs button {
    font-size: 12px;
    padding-bottom: 12px;
  }
  .tabs span {
    display: none;
  }
  .card {
    padding: 19px;
  }
  .section-heading {
    gap: 13px;
    margin-bottom: 18px;
  }
  .section-heading h2 {
    font-size: 17px;
  }
  .section-heading p {
    font-size: 11px;
  }
  th {
    font-size: 9px;
  }
  td {
    font-size: 11px;
    padding: 15px 12px;
  }
  .source-name {
    min-width: 200px;
  }
  .source-icon {
    display: none;
  }
  td strong {
    font-size: 11px;
  }
  td small {
    font-size: 10px;
  }
  .badge {
    font-size: 10px;
  }
  #panel-bases table,
  #sources {
    display: block;
    width: 100%;
  }
  #panel-bases thead {
    display: none;
  }
  #sources tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
  }
  #sources td {
    display: block;
    padding: 0;
    border: 0;
    min-width: 0;
  }
  #sources td:first-child,
  #sources td:last-child {
    grid-column: 1 / -1;
  }
  #sources .source-name {
    min-width: 0;
  }
  #sources td:nth-child(2)::before,
  #sources td:nth-child(3)::before,
  #sources td:nth-child(4)::before {
    display: block;
    font-size: 10px;
    color: var(--muted);
    margin-bottom: 5px;
  }
  #sources td:nth-child(2)::before {
    content: "Дата данных";
  }
  #sources td:nth-child(3)::before {
    content: "Актуальность";
  }
  #sources td:nth-child(4)::before {
    content: "Как обновляется";
  }
  .table-note {
    padding: 11px;
    margin-top: 13px;
  }
  .table-note p {
    font-size: 10px;
  }
  .empty-state {
    padding: 25px 8px;
  }
  .empty-state p {
    font-size: 11px;
  }
  .input-action {
    flex-direction: column;
  }
  .status-list > div {
    gap: 12px;
  }
  .status-list dt {
    font-size: 11px;
  }
  .delivery-form {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .delivery-explanation {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }
  .delivery-explanation > span:nth-child(even) {
    display: none;
  }
  .page-footer {
    padding: 20px 0;
  }
  .page-footer p {
    font-size: 10px;
    text-align: left;
  }
  .section-footnote {
    font-size: 10px;
  }
  .check-metrics span {
    font-size: 9px;
  }
  .toast {
    bottom: 12px;
    font-size: 12px;
  }
  dialog {
    padding: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
