:root {
  --tblr-primary: #005f6b;
  --tblr-primary-rgb: 0, 95, 107;
  --tblr-font-sans-serif:
    system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
}
body {
  background: #f5f7f8;
  color: #182b36;
  font-family: var(--tblr-font-sans-serif);
  line-height: 1.65;
}
.navbar-brand {
  color: #005f6b;
  font-weight: 750;
  letter-spacing: 0.06em;
}
.navbar-brand span {
  font-size: 0.8em;
  letter-spacing: 0;
  font-weight: 500;
}
.navbar .container-xl {
  gap: 1rem;
}
.container-xl {
  max-width: 1120px;
}
main.container-xl {
  padding-top: 2rem;
  padding-bottom: 4rem;
}
h1 {
  font-size: 1.65rem;
  font-weight: 700;
}
h2 {
  font-size: 1.2rem;
}
.muted {
  color: #576b77;
}
.stack {
  display: grid;
  gap: 1.15rem;
}
.preparation-id {
  overflow-wrap: anywhere;
  font-size: 0.85rem;
}
.split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.25rem;
}
.card {
  border-color: #dce4e8;
  box-shadow: none;
}
.card-body {
  padding: 1.4rem;
}
.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}
.btn {
  min-height: 44px;
}
.btn-primary {
  background: #005f6b;
  border-color: #005f6b;
}
.btn-primary:hover {
  background: #004e58;
  border-color: #004e58;
}
.number {
  font-size: 1.5rem;
  letter-spacing: 0.045em;
  font-variant-numeric: tabular-nums;
}
.form-control,
.form-select {
  min-height: 44px;
}
label {
  font-weight: 550;
  margin-bottom: 0.35rem;
}
input,
select,
textarea {
  font: inherit;
}
textarea {
  min-height: 90px;
}
.fields {
  display: grid;
  gap: 1.1rem;
}
dl {
  display: grid;
  grid-template-columns: minmax(90px, 0.55fr) 1.5fr;
  gap: 0.5rem 1rem;
  margin: 0;
}
dt {
  color: #576b77;
  font-weight: 500;
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.narrow {
  max-width: 560px;
  margin: 0 auto;
}
#notice:empty {
  display: none;
}
#notice {
  margin-bottom: 1rem;
  white-space: pre-wrap;
}
.module-row {
  display: block;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid #e5e9eb;
  text-decoration: none;
  color: inherit;
}
.module-row:hover {
  background: #edf5f5;
}
.module-row:last-child {
  border: 0;
}
.bad {
  color: #a62a2a;
}
.comparison {
  border-left: 4px solid #b77a1d;
  padding: 1rem;
  background: #fff9ed;
  overflow-wrap: anywhere;
}
.nowrap {
  white-space: nowrap;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.85rem;
}
dialog {
  border: 1px solid #dce4e8;
  border-radius: 12px;
  max-width: min(620px, 95vw);
  max-height: 90vh;
  overflow: auto;
  padding: 1.5rem;
}
dialog::backdrop {
  background: #152e3c88;
}
video {
  width: 100%;
  max-height: 50vh;
  background: #182b36;
}
svg {
  max-width: 100%;
  height: auto;
}
.card-secret textarea {
  width: 100%;
  font-size: 0.8rem;
  min-height: 100px;
}
.page-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.4rem;
}
.empty {
  padding: 2rem;
  text-align: center;
  color: #576b77;
}
.record {
  border-top: 1px solid #e5e9eb;
  padding-top: 1rem;
  margin-top: 1rem;
}
.label-page {
  background: #fff;
  text-align: center;
  padding: 1rem;
}
.label-page main {
  max-width: 480px;
  margin: auto;
}
.label-page svg {
  width: 180px;
}
.label-page h1 {
  font-size: 24px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #007c8a;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 720px) {
  .split {
    grid-template-columns: 1fr;
  }
  main.container-xl {
    padding-top: 1.2rem;
  }
  .card-body {
    padding: 1.1rem;
  }
  .page-top {
    flex-wrap: wrap;
  }
  h1 {
    font-size: 1.4rem;
  }
  .navbar-brand span {
    display: none;
  }
  dl {
    grid-template-columns: 90px 1fr;
  }
  .actions .btn {
    flex-grow: 1;
  }
}
@media print {
  .no-print {
    display: none;
  }
  .label-page {
    padding: 0;
  }
}

.dispatch-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.dispatch-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #dce4e8;
}
.dispatch-item .number { font-size: 1.1rem; }
.model-history summary { cursor: pointer; padding: .4rem 0; }
.history-options { display: grid; gap: .5rem; }
.history-option { justify-content: flex-start; text-align: left; white-space: normal; }

.digest, pre { overflow-wrap: anywhere; word-break: break-word; }
pre { white-space: pre-wrap; }

.policy-digest { overflow-wrap: anywhere; }
#internal-config-form, #internal-config-form .fields {
  min-inline-size: 0;
  grid-template-columns: minmax(0, 1fr);
}

/* Programmatic route focus announces the heading without an action-like border. */
h1[tabindex="-1"]:focus{outline:none}

/* Keep the outcome visible after submitting a long form, without moving focus. */
#notice:not(:empty) {
  position: sticky;
  top: 0.75rem;
  z-index: 20;
}

.installation-page, .product-library { min-width: 0; overflow-wrap: anywhere; }
.installation-page .card-body, .product-library .card-body { overflow-wrap: anywhere; }
.installation-page .stack, .installation-page .fields, .installation-page .history-options,
.product-library .stack, .product-library .fields, .product-library .history-options {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
}
.installation-page .btn, .product-library .btn { max-width: 100%; white-space: normal; }
.installation-page input, .installation-page select, .installation-page textarea,
.product-library input, .product-library select, .product-library textarea { min-width: 0; max-width: 100%; }
