.check {
  display: flex !important;
  grid-template-columns: 18px 1fr;
  align-items: center;
  font-weight: 600 !important;
  color: var(--muted);
}

.check input {
  width: 18px;
  height: 18px;
  padding: 0;
}

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

.customer-form label {
  display: grid;
  gap: 7px;
  align-content: start;
  font-size: 13px;
  font-weight: 700;
}

.customer-form .full,
.customer-form .form-actions {
  grid-column: 1 / -1;
}

.customer-form .customer-active {
  align-self: end;
  min-height: 44px;
}

article:has(.customer-form[action^="/customers/"]) .panel-title > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: baseline;
  gap: 22px;
  width: 100%;
}

article:has(.customer-form[action^="/customers/"]) .panel-title h2,
article:has(.customer-form[action^="/customers/"]) .panel-title p {
  margin: 0;
}

article:has(.customer-form[action^="/customers/"]) .panel-title p {
  color: var(--muted);
  font-weight: 400;
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.form-help {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.token-field {
  display: grid;
  gap: 9px;
  padding: 16px;
  border: 1px solid #d5e1ed;
  border-radius: 14px;
  background: #f7faff;
}

.token-field > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.token-field > div:first-child small {
  color: var(--muted);
  font-weight: 500;
}

.token-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
}

.admin-settings {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.user-create-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 12px;
  margin: 18px 0 24px;
}

.user-create-form label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
}

.user-management td:first-child strong,
.user-management td:first-child span {
  display: block;
}

.user-management td:first-child span {
  margin-top: 3px;
  color: var(--muted);
}

.token-management .panel-title {
  align-items: flex-start;
}

.token-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.token-details div {
  padding: 14px;
  border: 1px solid #dce6f0;
  border-radius: 12px;
  background: #f8fbff;
}

.token-details dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.token-details dd { margin: 0; }

.token-security-note {
  display: grid;
  gap: 3px;
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 4px solid #2d83bf;
  background: #eef7ff;
}

.token-security-note span,
.empty-token,
.token-command-help { color: var(--muted); }

.release-token-created code {
  overflow-wrap: anywhere;
  user-select: all;
}

@media (max-width: 700px) {
  .token-input-row { grid-template-columns: 1fr 1fr; }
  .token-input-row input { grid-column: 1 / -1; }
  .token-details { grid-template-columns: 1fr; }
  .token-field > div:first-child { align-items: flex-start; flex-direction: column; }
  .user-create-form { grid-template-columns: 1fr; }
}

.installations-panel {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  padding: 22px;
  border: 1px solid #d5e1ed;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 43, 72, 0.08);
}

.installations-panel > legend {
  padding: 0 10px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
}

.application-selector h3 {
  display: block;
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.application-selector {
  padding-top: 4px;
}

.application-selector > p {
  margin: -1px 0 14px;
  color: var(--muted);
  font-size: 13px;
}

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

.application-columns > div {
  display: grid;
  align-content: start;
  gap: 10px;
}

.application-columns h4 {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.application-option {
  display: grid;
  grid-template-columns: minmax(145px, 1fr) minmax(110px, 0.72fr) 86px 84px;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid #dbe6f0;
  border-radius: 12px;
  background: #f8fafc;
}

.application-option label {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.application-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  padding: 0;
}

.application-option .application-version {
  min-width: 0;
  height: 40px;
  padding: 8px 10px;
  background: #eef3f7;
  color: var(--ink);
}

.application-option .version-display,
.application-option .allowed-display,
.application-option .live-display {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 5px;
}

.application-option .version-display > span,
.application-option .allowed-display > span,
.application-option .live-display > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.application-option .allowed-display input {
  min-width: 0;
  height: 40px;
  padding: 8px;
}

.application-option .allowed-display input:disabled {
  opacity: 0.58;
  background: #eaf0f5;
}

.application-option .live-display output {
  display: grid;
  place-items: center;
  min-height: 40px;
  border: 1px solid #c8d8e8;
  border-radius: 10px;
  background: #eef3f7;
  color: var(--ink);
  font-weight: 800;
}

.application-option .live-state output {
  align-items: center;
  display: flex;
  gap: 7px;
  justify-content: center;
  font-size: 12px;
  white-space: nowrap;
}

.status-dot {
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgb(15 23 42 / 7%);
  display: inline-block;
  flex: 0 0 10px;
  height: 10px;
  width: 10px;
}

.status-dot.is-live {
  background: #10a77b;
}

.status-dot.is-offline {
  background: #d83a4b;
}

/* Release control centre */
.release-live-section {
  margin-bottom: 28px;
}

.release-live-key {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.live-release-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.live-release {
  min-width: 0;
  min-height: 148px;
  padding: 17px;
  border: 1px dashed #b9cad9;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.72);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.live-release.has-release {
  border-style: solid;
  background: #fff;
  box-shadow: 0 9px 25px rgba(30, 47, 66, 0.07);
}

.live-release.is-drop-target {
  border-color: var(--blue);
  background: #eaf4fc;
  box-shadow: 0 0 0 4px rgba(74, 134, 185, 0.15);
  transform: translateY(-2px);
}

.live-release.is-drop-invalid {
  border-color: var(--red);
  background: #fff0f3;
}

.live-release-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.live-release h3 {
  min-width: 0;
  margin: 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.live-release > strong,
.live-release > span,
.live-release > small {
  display: block;
}

.live-release > strong {
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.15;
}

.live-release > span {
  min-height: 30px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.live-release > small {
  margin-top: 10px;
  color: #8a9aab;
  font-size: 10px;
}

.release-workspace {
  display: grid;
  grid-template-columns: minmax(280px, calc((100% - 39px) / 4)) minmax(0, 1fr);
  gap: 13px;
  align-items: start;
}

.release-workspace .panel {
  margin-bottom: 0;
}

.release-upload-panel > div > h2 {
  margin: 5px 0 6px;
  font-size: 22px;
}

.release-upload-panel > div > p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.release-upload-form {
  display: grid;
  gap: 14px;
}

.release-upload-form > label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
}

.release-detected {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid #cfdeeb;
  border-radius: 11px;
  background: #f6f9fc;
}

.release-detected span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.release-detected strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.release-dropzone {
  position: relative;
  display: grid !important;
  min-height: 170px;
  padding: 22px;
  place-items: center;
  align-content: center;
  gap: 5px !important;
  overflow: hidden;
  border: 2px dashed #b7c9da;
  border-radius: 14px;
  background: #f5f9fc;
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.release-dropzone:hover,
.release-dropzone.is-dragging {
  border-color: var(--blue);
  background: #eaf4fc;
}

.release-dropzone input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
}

.release-drop-icon {
  display: grid;
  width: 43px;
  height: 43px;
  margin-bottom: 3px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 22px;
}

.release-dropzone small,
.release-dropzone output {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.release-dropzone output {
  display: grid;
  width: 100%;
  max-width: 100%;
  margin-top: 5px;
  color: var(--ink);
  font-weight: 700;
}

.release-file-list {
  display: grid;
  width: 100%;
  margin: 7px 0 0;
  padding: 0;
  gap: 5px;
  list-style: none;
  text-align: left;
}

.release-file-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  padding: 7px 9px;
  gap: 2px 10px;
  border: 1px solid #d5e2ee;
  border-radius: 8px;
  background: #fff;
}

.release-file-list li > span,
.release-file-list li > small {
  grid-column: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.release-file-list li > small {
  color: var(--muted);
  font-size: 10px;
}

.release-file-list li.is-invalid {
  border-color: #efb2ba;
  background: #fff4f5;
}

.release-file-list li.is-invalid > small {
  color: #b42338;
}

.release-file-rejected {
  margin-top: 7px;
  padding: 7px 9px;
  border: 1px solid #efb2ba;
  border-radius: 8px;
  background: #fff4f5;
  color: #b42338;
  font-size: 10px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.release-file-remove {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  padding: 5px 8px;
  border: 1px solid #c7d6e4;
  border-radius: 7px;
  background: #fff;
  color: #52677c;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.release-file-remove:hover {
  border-color: #b42338;
  color: #b42338;
}

.release-table td {
  vertical-align: middle;
}

.release-table td:first-child {
  position: relative;
  padding-left: 34px;
}

.release-table td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.release-row {
  cursor: grab;
}

.release-row:active {
  cursor: grabbing;
}

.release-row.is-dragging {
  opacity: 0.45;
}

.drag-handle {
  position: absolute;
  top: 50%;
  left: 11px;
  margin: 0;
  color: #9aabba;
  font-size: 16px;
  letter-spacing: -5px;
  transform: translateY(-50%);
}

.release-live-label {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  margin-top: 5px !important;
  color: #147b5d !important;
  font-size: 11px;
  font-weight: 750;
}

.release-live-label .status-dot {
  width: 7px;
  height: 7px;
  flex-basis: 7px;
}

.release-actions {
  min-width: 170px;
  white-space: nowrap;
}

.release-actions button {
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 12px;
}

.release-actions button + button {
  margin-left: 5px;
}

.release-actions form {
  display: none;
}

.release-delete {
  border: 1px solid #efc8cf;
  background: #fff;
  color: var(--red);
  font-weight: 750;
  cursor: pointer;
}

.release-actions button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.release-history-panel {
  min-width: 0;
}

.release-history-title {
  align-items: flex-start;
  gap: 18px;
}

.release-history-actions {
  display: flex;
  min-width: 142px;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  text-align: center;
}

.release-history-actions button {
  padding: 11px 15px;
  border: 0;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  font-weight: 750;
  cursor: pointer;
}

.release-history-actions button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.release-history-actions small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
}

.release-matrix-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
}

.release-history-panel .release-matrix-wrap .release-matrix {
  min-width: 1520px;
  table-layout: fixed;
}

.release-matrix th {
  width: 190px;
  padding: 13px 10px;
  background: #f2f7fb;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
  text-transform: none;
  letter-spacing: 0;
}

.release-matrix td,
.release-matrix td:first-child {
  position: static;
  width: 190px;
  height: 180px;
  padding: 8px;
  border-right: 1px solid #e8eef4;
  vertical-align: top;
}

.release-matrix th:last-child,
.release-matrix td:last-child {
  border-right: 0;
}

.release-version-card {
  position: relative;
  display: flex;
  height: 100%;
  min-height: 162px;
  padding: 13px;
  flex-direction: column;
  border: 1px solid #dce6ef;
  border-radius: 11px;
  background: #f9fbfd;
}

.release-version-card:hover {
  border-color: #b8cedf;
  background: #fff;
  box-shadow: 0 8px 20px rgba(30, 47, 66, 0.08);
}

.release-version-card.is-selected,
.release-version-card:focus-visible {
  border-color: var(--blue);
  background: #fff;
  outline: 3px solid rgba(74, 145, 194, 0.2);
  box-shadow: 0 9px 24px rgba(30, 81, 119, 0.16);
}

.release-version-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding-left: 15px;
}

.release-version-heading strong {
  font-size: 14px;
  white-space: nowrap;
}

.release-version-card .drag-handle {
  top: 15px;
  left: 10px;
  transform: none;
}

.release-version-card .release-live-label {
  margin: 0 0 0 auto !important;
}

.release-version-file {
  display: block;
  margin-top: 12px !important;
  overflow: hidden;
  color: var(--muted) !important;
  font-size: 10px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.release-version-card > small {
  min-height: 30px;
  line-height: 1.35;
}

.release-version-card .release-actions {
  display: grid;
  min-width: 0;
  margin-top: auto;
  grid-template-columns: 1fr;
  gap: 6px;
  white-space: normal;
}

.release-version-card .release-actions button,
.release-version-card .release-actions button + button {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 8px 5px;
  font-size: 10px;
}

.release-version-empty {
  background: #fbfcfd;
  color: #c3ced8;
  text-align: center;
}

.release-version-empty span {
  margin-top: 65px;
  color: inherit;
  font-size: 18px;
}

.release-dialog {
  width: min(450px, calc(100% - 30px));
  padding: 0;
  border: 0;
  border-radius: 18px;
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(7, 26, 49, 0.28);
}

.release-dialog::backdrop {
  background: rgba(7, 26, 49, 0.58);
  backdrop-filter: blur(2px);
}

.release-dialog form {
  padding: 30px;
  text-align: center;
}

.release-dialog h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.release-dialog p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.release-dialog .danger {
  border: 0;
  border-radius: 10px;
  padding: 13px 19px;
  background: var(--red);
  color: #fff;
  font-weight: 750;
  cursor: pointer;
}

.upload-progress-dialog {
  width: min(480px, calc(100% - 30px));
  padding: 34px;
  border: 0;
  border-radius: 22px;
  color: var(--ink);
  text-align: center;
  box-shadow: 0 28px 90px rgba(7, 26, 49, 0.34);
}

.upload-progress-dialog::backdrop {
  background: rgba(9, 31, 54, 0.68);
  backdrop-filter: blur(4px);
}

.upload-progress-dialog h2 {
  margin: 19px 0 7px;
  font-size: 25px;
}

.upload-progress-dialog p {
  min-height: 24px;
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.45;
}

.upload-progress-dialog > small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
}

.upload-progress-dialog .upload-progress-close {
  margin-top: 20px;
}

.upload-progress-orbit {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto;
  border: 2px solid #d8e7f3;
  border-radius: 50%;
  animation: upload-spin 1.45s linear infinite;
}

.upload-progress-orbit::before {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: linear-gradient(145deg, #58a2d1, #2474aa);
  box-shadow: 0 8px 20px rgba(36, 116, 170, 0.3);
  content: '';
}

.upload-progress-orbit i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 3px 8px rgba(202, 27, 48, 0.25);
}

.upload-progress-orbit i:nth-child(1) { transform: translate(-50%, -50%) translateY(-35px); }
.upload-progress-orbit i:nth-child(2) { transform: translate(-50%, -50%) rotate(120deg) translateY(-35px); }
.upload-progress-orbit i:nth-child(3) { transform: translate(-50%, -50%) rotate(240deg) translateY(-35px); }

.upload-progress-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5edf4;
  box-shadow: inset 0 1px 3px rgba(10, 39, 65, 0.1);
}

.upload-progress-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #337fb5, #5cb5df, #337fb5);
  background-size: 200% 100%;
  transition: width 180ms ease;
  animation: upload-shimmer 1.2s linear infinite;
}

.upload-progress-percent {
  display: block;
  margin-top: 10px;
  color: #276f9f;
  font-size: 18px;
}

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

@keyframes upload-shimmer {
  to { background-position: -200% 0; }
}

.endpoint {
  display: block;
  max-width: 320px;
  overflow-wrap: anywhere;
  white-space: normal;
  color: var(--ink);
  background: #eef4fa;
  border-radius: 6px;
  padding: 6px 8px;
}

.expiry-form {
  display: flex;
  gap: 7px;
  align-items: center;
  min-width: 150px;
}

.expiry-form input {
  min-width: 150px;
  padding: 8px 9px;
}

.expiry-form button {
  padding: 9px 11px;
}

.expiry-form + .status {
  margin-top: 8px !important;
}

#customers table {
  table-layout: auto;
}

#customers th {
  padding: 9px 10px;
}

#customers td {
  padding: 10px;
  line-height: 1.3;
  vertical-align: middle;
}

#customers td span {
  margin-top: 2px;
}

#customers .customer-link {
  display: inline-block;
  color: var(--ink);
}

#customers .customer-link:hover strong {
  color: var(--blue);
  text-decoration: underline;
}

#customers .expiry-form input {
  width: 150px;
  min-width: 150px;
  padding: 7px 9px;
}

#customers .endpoint {
  padding: 4px 6px;
}

.alert.success {
  margin-bottom: 18px;
  background: #e9f8f0;
  color: #17653e;
}

.unsaved-dialog {
  width: min(430px, calc(100% - 32px));
  border: 0;
  border-radius: 18px;
  padding: 0;
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(7, 26, 49, 0.28);
}

.unsaved-dialog::backdrop {
  background: rgba(7, 26, 49, 0.58);
  backdrop-filter: blur(2px);
}

.unsaved-dialog form {
  padding: 30px;
  text-align: center;
}

.unsaved-dialog-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #fff0f3;
  color: var(--red);
  font-size: 24px;
  font-weight: 850;
}

.unsaved-dialog h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.unsaved-dialog p {
  margin: 0;
  color: var(--muted);
}

.unsaved-dialog-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.unsaved-dialog .danger {
  border: 0;
  border-radius: 10px;
  padding: 13px 19px;
  background: var(--red);
  color: white;
  font-weight: 750;
  cursor: pointer;
}

.installation-overview {
  padding: 22px;
}

.installation-key {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.installation-key span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.installation-key small,
.installation-metric small {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #e7f0f8;
  color: var(--blue);
  font-size: 10px;
  font-weight: 850;
}

.installation-matrix-frame {
  position: relative;
}

.installation-matrix-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  -webkit-overflow-scrolling: touch;
}

.installation-scrollbar-mask {
  position: absolute;
  bottom: 1px;
  left: 1px;
  z-index: 5;
  width: 229px;
  height: 14px;
  border-bottom-left-radius: 13px;
  background: #fff;
  pointer-events: none;
}

.installation-matrix {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.installation-matrix th,
.installation-matrix td {
  width: 156px;
  min-width: 156px;
  height: 72px;
  padding: 9px;
  border-right: 1px solid #e6edf4;
  border-bottom: 1px solid #e6edf4;
  vertical-align: middle;
}

.installation-matrix thead th {
  height: 58px;
  background: #f4f8fc;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
  text-transform: none;
  letter-spacing: 0;
}

.installation-matrix tr:last-child th,
.installation-matrix tr:last-child td {
  border-bottom: 0;
}

.installation-matrix th:last-child,
.installation-matrix td:last-child {
  border-right: 0;
}

.installation-matrix .installation-customer {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 230px;
  min-width: 230px;
  background: #fff;
  text-align: left;
}

.installation-matrix thead .installation-customer {
  z-index: 3;
  background: #edf4fa;
}

.installation-customer strong,
.installation-customer span,
.installation-customer small {
  display: block;
}

.installation-customer strong {
  font-size: 13px;
  line-height: 1.25;
}

.installation-customer span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.installation-customer > small {
  margin-top: 4px;
  color: var(--red);
  font-size: 10px;
}

.installation-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.installation-metric {
  display: flex !important;
  min-width: 0;
  height: 42px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 !important;
  border: 1px solid #d7e3ee;
  border-radius: 9px;
  background: #f8fbfd;
}

.installation-metric strong {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}

.installation-metric .status-dot {
  width: 8px;
  height: 8px;
  flex-basis: 8px;
  box-shadow: none;
}

.installation-version {
  grid-column: 1 / -1;
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.installation-not-assigned {
  background: #fbfcfd;
  color: #c4cfda;
  text-align: center;
}

.installation-not-assigned span {
  margin: 0;
  color: inherit;
}

.customer-inactive .installation-customer > *,
.customer-inactive td > * {
  opacity: 0.62;
}

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

  .customer-form .full,
  .customer-form .form-actions {
    grid-column: auto;
  }

  .licence-usage,
  .application-columns {
    grid-template-columns: 1fr;
  }

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

  .installation-overview {
    padding: 13px;
  }

  .installation-overview .panel-title {
    align-items: flex-start;
    gap: 12px;
  }

  .installation-matrix .installation-customer {
    width: 154px;
    min-width: 154px;
  }

  .installation-scrollbar-mask {
    width: 153px;
  }
}

@media (max-width: 560px) {
  .installation-overview {
    overflow: hidden;
  }

  .installation-matrix-frame,
  .installation-matrix-wrap {
    width: 100%;
    max-width: 100%;
  }

  .installation-matrix-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
  }

  .installation-scrollbar-mask,
  .installation-matrix thead {
    display: none;
  }

  .installation-matrix,
  .installation-matrix tbody {
    display: block;
    width: 100%;
    min-width: 0 !important;
  }

  .installation-matrix tbody {
    display: grid;
    gap: 12px;
  }

  .installation-matrix tr {
    display: grid;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
  }

  .installation-matrix .installation-customer {
    position: static;
    width: auto;
    min-width: 0;
    height: auto;
    padding: 13px 14px;
    border-right: 0;
    border-bottom: 1px solid #dce6ef;
    background: #edf4fa;
  }

  .installation-matrix td {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(138px, 0.8fr);
    gap: 10px;
    width: auto;
    min-width: 0;
    height: auto;
    padding: 10px 12px;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid #e6edf4;
  }

  .installation-matrix td:last-child {
    border-bottom: 0;
  }

  .installation-matrix td::before {
    content: attr(data-application);
    min-width: 0;
    color: var(--ink);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .installation-matrix .installation-not-assigned {
    display: none;
  }

  .installation-metrics {
    width: 100%;
    max-width: 174px;
    justify-self: end;
  }
}

@media (max-width: 380px) {
  .installation-matrix td {
    grid-template-columns: minmax(0, 1fr) minmax(126px, 0.82fr);
    padding-inline: 10px;
  }

  .installation-metric {
    gap: 4px;
  }
}
.authenticated main {
  padding-top: 30px;
}

.hero > div > .eyebrow {
  display: none;
}

.hero h1 {
  margin-top: 0;
}
