:root {
  --ink: #252621;
  --pine: #243b33;
  --muted: #686a62;
  --paper: #fcfbf7;
  --canvas: #f2f0eb;
  --line: #d8d6ce;
  --focus: #ad7234;
  font-family: 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  line-height: 1.5;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0 0 0.7rem;
}
h1,
h2 {
  font-family: 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 1.15;
}
h1 {
  font-size: clamp(2.3rem, 4vw, 3.6rem);
  letter-spacing: -0.025em;
}
h2 {
  font-size: 1.55rem;
}
h3 {
  font-size: 1rem;
  font-weight: 600;
}
button,
input {
  font: inherit;
}
button {
  background: var(--pine);
  color: var(--paper);
  border: 1px solid var(--pine);
  border-radius: 5px;
  padding: 0.7rem 1rem;
  cursor: pointer;
  min-height: 44px;
}
button:hover {
  filter: brightness(1.12);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button.secondary {
  background: transparent;
  color: var(--pine);
  border-color: #bbc4b9;
}
button.danger-button {
  color: #783a2d;
  background: #fbede7;
  border-color: #d8bdb2;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
input {
  display: block;
  width: 100%;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid #b7c0b3;
  border-radius: 4px;
  padding: 0.75rem;
  margin-top: 0.4rem;
}
label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 1.1rem;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 20;
  padding: 1rem;
  background: white;
}
.skip-link:focus {
  top: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  letter-spacing: 0.13em;
}
.brand small {
  display: block;
  letter-spacing: 0.15em;
  font-size: 0.6rem;
  margin-top: 5px;
  color: var(--muted);
}
.brand-mark {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid #a94b42;
  color: #a94b42;
  border-radius: 50%;
  width: 39px;
  height: 39px;
  font-family: Georgia, serif;
  font-size: 1.4rem;
  letter-spacing: 0;
}
.eyebrow,
.meta-label {
  font-size: 0.65rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}
.muted,
.truth {
  font-size: 0.85rem;
  color: var(--muted);
}
.technical {
  font-size: 0.72rem;
  overflow-wrap: anywhere;
  color: var(--muted);
}
.app-shell {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  min-height: 100vh;
}
aside {
  padding: 2rem 1.5rem;
  background: #e9eadd;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4rem;
}
.workspace {
  margin: 3rem 0 1rem;
}
nav {
  display: grid;
  gap: 0.3rem;
}
nav a {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0.7rem;
  font-size: 0.9rem;
  color: var(--muted);
  border-radius: 5px;
}
nav a[aria-current='page'] {
  background: var(--pine);
  color: var(--paper);
}
.operator {
  border-top: 1px solid #cbd0bf;
  padding-top: 1.2rem;
}
.topbar {
  padding: 1rem 2.5rem;
  border-bottom: 2px solid #b97634;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.8rem;
  background: var(--paper);
}
main {
  padding: 2rem 2.5rem;
  max-width: 1450px;
  margin: auto;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}
.page-head .eyebrow {
  margin-bottom: 0.8rem;
}
.installation-list {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 14px #243b3304;
}
.installation-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.9fr;
  align-items: center;
  gap: 1.5rem;
  padding: 1.7rem 1.8rem;
  border-bottom: 1px solid var(--line);
}
.installation-row:last-child {
  border-bottom: 0;
}
a.installation-row:hover {
  background: #eeefe5;
}
.installation-row h2 {
  font-size: 1.6rem;
  margin: 0.3rem 0;
}
.installation-row strong,
.installation-row .meta-label {
  display: block;
}
.row-status {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  justify-content: end;
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  border: 1px solid #c8cbbb;
  border-radius: 3px;
  padding: 0.28rem 0.5rem;
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  background: #eeeee4;
  color: #535d4f;
}
.badge.good {
  background: #e4ede3;
  color: #2b4b35;
  border-color: #b5c5b2;
}
.badge.danger {
  background: #f7e7e1;
  color: #763d2e;
  border-color: #dcbcb0;
}
.truth {
  margin: 1.2rem 0;
}
.breadcrumb {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.5rem 0;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.6rem;
  border-radius: 7px;
  min-width: 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
}
dl {
  margin: 1rem 0;
}
dl div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.edge-row,
.enrollment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.edge-row > div {
  flex: 1 1 120px;
}
.enrollment-row > div {
  min-width: 0;
  flex: 1 1 180px;
}
.equipment-row {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0;
  font-size: 0.9rem;
}
details {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 1rem;
}
summary {
  cursor: pointer;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}
.actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.3rem;
}
.secret-result {
  background: #e5ecdf;
  border: 1px solid #a6b799;
  border-radius: 7px;
  padding: 1.7rem;
  margin-bottom: 2rem;
}
dialog {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  max-width: 530px;
  width: calc(100% - 2rem);
  box-shadow: 0 24px 70px #182b3333;
}
dialog > div {
  padding: 2rem;
}
dialog::backdrop {
  background: #14251e88;
}
.login {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(125deg, #e7e8dc 0%, #f3f1e9 65%);
}
.login header {
  padding: 2rem 3rem;
}
.login main {
  width: min(100%, 540px);
  margin: auto;
  padding: 2.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 60px #243b3308;
}
.login h1 {
  font-size: 2.8rem;
  margin: 1rem 0;
}
.login form {
  margin-top: 2rem;
}
.login form button {
  width: 100%;
}
.login footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
  padding: 2rem;
}
@media (max-width: 1100px) {
  .installation-row {
    grid-template-columns: 1fr 0.8fr;
  }
  .row-status {
    grid-column: 1/-1;
    justify-content: start;
  }
  .app-shell {
    grid-template-columns: 215px minmax(0, 1fr);
  }
  main {
    padding: 1.5rem;
  }
  .topbar {
    padding: 1rem 1.5rem;
  }
}
@media (max-width: 1000px) {
  .app-shell {
    display: block;
  }
  aside {
    padding: 1rem;
    gap: 1rem;
    border-right: 0;
  }
  aside > div:first-child {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
  }
  .workspace {
    display: none;
  }
  nav {
    display: flex;
  }
  nav a {
    gap: 1rem;
  }
  .operator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    padding-top: 0.7rem;
  }
  .operator .meta-label {
    display: none;
  }
  .operator p {
    margin: 0;
  }
  .topbar {
    padding: 0.8rem 1rem;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .installation-row {
    padding: 1.2rem;
    gap: 1rem;
  }
  .page-head {
    align-items: start;
  }
  .login header {
    padding: 1.5rem;
  }
  .login main {
    width: calc(100% - 2rem);
    padding: 1.5rem;
  }
  .topbar > .muted {
    max-width: 150px;
    text-align: right;
  }
}
@media (max-width: 440px) {
  .installation-row {
    grid-template-columns: 1fr;
  }
  .row-status {
    grid-column: auto;
  }
  .page-head {
    flex-wrap: wrap;
  }
  main {
    padding: 1rem;
  }
  dl div {
    grid-template-columns: 105px minmax(0, 1fr);
  }
  .actions button {
    flex: 1 1 100%;
  }
  .operator .technical {
    max-width: 205px;
  }
  .brand {
    font-size: 0.75rem;
  }
  .badge {
    font-size: 0.6rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
    transition: none;
  }
}
