:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #1d2d37;
  background: #f5f7f9;
  font-size: 16px;
  --ink: #172b35;
  --muted: #687985;
  --line: #e1e8ec;
  --teal: #087f78;
  --nav: #112830;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  border: 1px solid #d7e0e5;
  background: white;
  color: var(--ink);
  padding: 10px 15px;
  border-radius: 7px;
  font-size: 0.875rem;
  font-weight: 600;
}
button:hover {
  background: #edf3f4;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}
.primary:hover {
  background: #056d67;
}
button.danger {
  color: #b63c3c;
}
.quiet {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 2rem;
  letter-spacing: -1px;
  margin-bottom: 0;
}
h2 {
  font-size: 1.2rem;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 1rem;
}
a {
  color: var(--teal);
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.8125rem;
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  font-weight: 650;
  color: var(--muted);
  margin-bottom: 12px;
}
.brandmark {
  display: inline-flex;
  width: 35px;
  height: 35px;
  border-radius: 9px;
  background: #2fd4b5;
  color: #12362f;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  font-weight: 850;
  transform: rotate(-5deg);
}
[hidden] {
  display: none !important;
}
#workspace {
  display: flex;
  min-height: 100vh;
}
aside {
  width: 238px;
  flex-shrink: 0;
  background: var(--nav);
  color: #d3e1e5;
  position: fixed;
  height: 100vh;
  padding: 33px 20px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  position: relative;
  color: white;
  text-decoration: none;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 52px;
}
.brand-sub {
  position: absolute;
  top: 38px;
  left: 48px;
  font-size: 0.58rem;
  letter-spacing: 1.2px;
  color: #92acb6;
}
.nav-label {
  font-size: 0.625rem;
  letter-spacing: 1.5px;
  color: #91abb6;
  padding: 0 14px;
}
nav {
  display: grid;
  gap: 6px;
}
nav button {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 0;
  color: #b0c4cd;
  font-weight: 500;
  padding: 13px 14px;
}
nav button:hover {
  background: #1c3943;
}
nav button.active {
  background: #24434a;
  color: #72e6ce;
}
nav button span {
  font-size: 1.2rem;
  width: 20px;
}
nav b {
  margin-left: auto;
  font-size: 0.7rem;
  background: #36545d;
  border-radius: 5px;
  padding: 3px 6px;
}
.sidebar-bottom {
  margin-top: auto;
}
.service {
  font-size: 0.8rem;
  padding: 24px 10px;
  border-bottom: 1px solid #2b414b;
}
.service small {
  display: block;
  padding-left: 18px;
  color: #90aab5;
  font-size: 0.75rem;
  margin-top: 6px;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #47c8a5;
  border-radius: 50%;
  margin-right: 8px;
}
.account {
  background: none;
  border: 0;
  color: #d7e3e7;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 8px 6px;
  width: 100%;
  text-align: left;
  font-weight: 400;
}
.account:hover {
  background: #1c3943;
}
.account > span {
  background: #34515b;
  border-radius: 50%;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
}
.account div {
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account small {
  display: block;
  color: #8fabb5;
  margin-top: 4px;
}
.sidebar-bottom .quiet {
  font-size: 0.75rem;
  margin-left: 37px;
  color: #96acb4;
}
main {
  margin-left: 238px;
  width: calc(100% - 238px);
  padding: 40px 44px 0;
  max-width: 1800px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 35px;
  gap: 20px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
header .eyebrow {
  font-size: 0.625rem;
  margin-bottom: 9px;
}
.header-actions .small {
  margin-right: 5px;
}
.welcome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
}
.welcome p {
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}
.tag {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 7px 12px;
  background: white;
  font-size: 0.75rem;
  white-space: nowrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 24px 0 30px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  position: relative;
}
.stat-label {
  font-size: 0.875rem;
  color: #5d717d;
  margin-bottom: 15px;
}
.stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: -1px;
  margin-bottom: 11px;
}
.stat small {
  font-size: 0.75rem;
  color: var(--muted);
}
.stat-icon {
  position: absolute;
  right: 18px;
  top: 19px;
  padding: 7px;
  background: #edf6f4;
  border-radius: 8px;
  color: var(--teal);
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  gap: 15px;
}
.panel-heading h2 {
  margin: 0;
}
.panel-heading p {
  margin: 6px 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}
.toolbar {
  display: flex;
  gap: 10px;
  padding: 17px 24px;
  border-bottom: 1px solid var(--line);
}
.toolbar input {
  max-width: 300px;
  margin: 0;
  padding: 9px 12px;
  font-size: 0.8125rem;
}
.toolbar select {
  width: auto;
  margin: 0;
  font-size: 0.8125rem;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 0.6875rem;
  color: #657b86;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: #fafcfd;
  font-weight: 600;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
}
td {
  font-size: 0.8125rem;
  padding: 18px 22px;
  border-bottom: 1px solid #edf1f3;
}
tr:last-child td {
  border-bottom: 0;
}
.machine-name {
  font-weight: 650;
  color: #213d48;
}
.machine-name small {
  font-weight: 400;
  display: block;
  margin-top: 5px;
  color: #80909a;
  font-size: 0.6875rem;
}
.row-button {
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}
.row-button:hover {
  text-decoration: underline;
  background: none;
}
.badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 6px 9px;
  border-radius: 5px;
  background: #edf1f5;
  color: #586b7b;
  white-space: nowrap;
}
.badge.good {
  background: #e6f5ef;
  color: #247b59;
}
.badge.warn {
  background: #fff4df;
  color: #a66c13;
}
.badge.bad {
  background: #ffeded;
  color: #b14545;
}
.badge.progress {
  background: #e9efff;
  color: #4765b4;
}
.component {
  font-size: 0.6875rem;
  background: #eef3f5;
  color: #617b88;
  padding: 4px 7px;
  border-radius: 4px;
  margin-right: 4px;
}
/* Keep catalog versions separate from installed machine versions. */
.version-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.version-card {
  min-width: 0;
  padding: 23px 20px;
  border-right: 1px solid var(--line);
}
.version-card:last-child {
  border-right: 0;
}
.version-card h3 {
  color: var(--muted);
  margin-bottom: 14px;
}
.version-number {
  display: block;
  font-size: 1.4rem;
  font-weight: 650;
  letter-spacing: -0.5px;
  line-height: 1.3;
  overflow-wrap: anywhere;
  text-align: left;
  padding: 0;
  border: 0;
  background: transparent;
}
button.version-number {
  color: var(--teal);
}
button.version-number:hover {
  background: transparent;
  text-decoration: underline;
}
.version-context,
.version-approved {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}
.version-context {
  margin: 8px 0 14px;
}
.version-approved {
  margin: 14px 0 10px;
  overflow-wrap: anywhere;
}
@media (max-width: 1100px) {
  .version-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .version-card {
    border-bottom: 1px solid var(--line);
  }
  .version-card:nth-child(3) {
    border-right: 0;
  }
  .version-card:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}
@media (max-width: 600px) {
  .version-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .version-card:nth-child(3) {
    border-right: 1px solid var(--line);
  }
  .version-card:nth-child(even) {
    border-right: 0;
  }
  .version-card:nth-last-child(2) {
    border-bottom: 1px solid var(--line);
  }
  .version-card:last-child {
    border-bottom: 0;
  }
  .latest-versions .panel-heading {
    align-items: flex-start;
  }
}
.lower-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
}
.list-row {
  padding: 17px 23px;
  border-bottom: 1px solid #edf1f3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.list-row:last-child {
  border-bottom: 0;
}
.list-row strong {
  display: block;
  font-size: 0.8125rem;
}
.list-row p {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 6px 0 0;
  line-height: 1.5;
}
.empty {
  text-align: center;
  padding: 50px 24px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
}
.empty strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  margin-bottom: 8px;
}
.panel-foot {
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--muted);
}
.link-button {
  color: var(--teal);
  border: 0;
  background: none;
  padding: 0;
  font-size: 0.8125rem;
}
.link-button:hover {
  background: none;
  text-decoration: underline;
}
.error {
  color: #b23c3c;
  font-size: 0.875rem;
}
.error-banner {
  border: 1px solid #f0c4c4;
  background: #fff1f1;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.875rem;
}
.notes {
  white-space: pre-wrap;
  line-height: 1.6;
  font-size: 0.875rem;
}
footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 24px 0;
  margin-top: 35px;
  font-size: 0.625rem;
  letter-spacing: 0.7px;
  color: #7d909b;
}
label {
  display: block;
  font-size: 0.875rem;
  font-weight: 550;
  margin-bottom: 18px;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1px solid #ccd9df;
  border-radius: 6px;
  padding: 11px 12px;
  background: white;
  color: var(--ink);
  font-size: 1rem;
}
textarea {
  min-height: 90px;
  resize: vertical;
}
input[type="checkbox"] {
  width: auto;
  display: inline;
  margin-right: 8px;
}
label small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 6px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
fieldset {
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 8px;
  margin-bottom: 18px;
}
legend {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0 6px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  width: 680px;
  max-width: calc(100vw - 32px);
  max-height: 90vh;
  padding: 0;
  box-shadow: 0 24px 80px #0a243b33;
  color: var(--ink);
}
dialog::backdrop {
  background: #102d3c88;
  backdrop-filter: blur(3px);
}
.modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}
.modal-top h2 {
  margin: 0;
}
.icon {
  font-size: 1.4rem;
  border: 0;
  background: transparent;
  padding: 0 6px;
}
#modal-body {
  padding: 25px 26px;
}
pre {
  overflow: auto;
  padding: 18px;
  background: #eef3f5;
  border-radius: 7px;
  font-size: 0.8125rem;
  white-space: pre-wrap;
  word-break: break-all;
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--muted);
  font-size: 0.8125rem;
  margin-bottom: 25px;
}
.detail-section {
  margin-top: 25px;
}
.detail-section h3 {
  margin-bottom: 14px;
}
.step-buttons {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.step-buttons button {
  font-size: 0.75rem;
  padding: 7px 9px;
}
#toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #153b39;
  color: white;
  padding: 16px 22px;
  border-radius: 9px;
  box-shadow: 0 5px 30px #1232;
  font-size: 0.875rem;
  z-index: 10;
}
#login {
  min-height: 100vh;
  background: #102c34;
  color: white;
  padding: 45px 8%;
  position: relative;
}
#login:after {
  content: "";
  position: absolute;
  width: 350px;
  height: 350px;
  border: 1px solid #284b50;
  border-radius: 50%;
  bottom: 5%;
  left: 20%;
  pointer-events: none;
  opacity: 0.4;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.75rem;
  letter-spacing: 2px;
}
.login-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 10%;
  align-items: center;
  max-width: 1100px;
  margin: 12vh auto 0;
  position: relative;
  z-index: 1;
}
.login-layout h1 {
  font-size: 3.5rem;
  line-height: 1.13;
  letter-spacing: -2px;
  margin: 22px 0;
}
.login-layout .eyebrow {
  color: #58d6ba;
}
.intro {
  font-size: 1rem;
  line-height: 1.8;
  color: #a9c1c8;
  max-width: 400px;
}
.platforms {
  margin-top: 40px;
  font-size: 0.8125rem;
  color: #98b5bd;
}
.platforms span {
  margin: 0 8px;
  color: #4ec7ab;
}
.login-card {
  padding: 38px;
  background: white;
  color: var(--ink);
  border-radius: 13px;
  box-shadow: 0 15px 60px #001a2444;
}
.login-card h2 {
  font-size: 1.75rem;
  margin-bottom: 10px;
}
.login-card > .muted {
  font-size: 0.875rem;
  margin-bottom: 28px;
}
.login-card .primary {
  width: 100%;
  padding: 13px;
}
.login-card .small {
  text-align: center;
  margin: 20px 0 0;
}
.login-card .eyebrow {
  color: var(--teal);
}
@media (min-width: 1450px) {
  main {
    padding: 44px 55px;
  }
}
@media (max-width: 1150px) {
  aside {
    width: 205px;
    padding: 30px 14px;
  }
  main {
    margin-left: 205px;
    width: calc(100% - 205px);
    padding: 30px 24px;
  }
  .header-actions .small {
    display: none;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 18px;
  }
  .lower-grid {
    gap: 16px;
  }
  th,
  td {
    padding-left: 15px;
    padding-right: 15px;
  }
}
@media (max-width: 800px) {
  aside {
    position: static;
    width: 100%;
    height: auto;
    padding: 18px;
  }
  .brand {
    margin-bottom: 25px;
  }
  .brand-sub,
  .nav-label,
  .sidebar-bottom .service {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
  }
  nav button {
    white-space: nowrap;
    font-size: 0.8125rem;
    padding: 10px;
  }
  .sidebar-bottom {
    display: flex;
    align-items: center;
    position: absolute;
    right: 12px;
    top: 0;
  }
  .account {
    width: 150px;
  }
  .sidebar-bottom .quiet {
    margin: 14px 0 0;
  }
  #workspace {
    display: block;
  }
  main {
    margin: 0;
    width: 100%;
    padding: 25px 18px;
  }
  header {
    align-items: flex-start;
  }
  h1 {
    font-size: 1.6rem;
  }
  .header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .lower-grid {
    grid-template-columns: 1fr;
  }
  .welcome .tag {
    display: none;
  }
  footer {
    display: block;
    line-height: 2;
  }
  footer span {
    display: block;
  }
  .login-layout {
    grid-template-columns: 1fr;
    margin-top: 50px;
    gap: 40px;
  }
  .login-layout h1 {
    font-size: 2.7rem;
  }
  #login {
    padding: 30px 6%;
  }
  .platforms {
    margin-top: 25px;
  }
  .login-card {
    padding: 28px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .toolbar {
    padding: 15px;
    flex-wrap: wrap;
  }
  .toolbar input {
    max-width: none;
    flex: 1;
    min-width: 180px;
  }
}

.audit-detail {
  white-space: normal;
  min-width: 240px;
}

.latest-version-details td:nth-child(2) {
  min-width: 12rem;
  max-width: 20rem;
  white-space: normal;
  overflow-wrap: anywhere;
}
.latest-version-details summary {
  cursor: pointer;
  color: var(--teal);
}
