@font-face {
  font-family: Plex;
  src: url("/fonts/IBMPlexSans-Variable.ttf");
}
@font-face {
  font-family: Poppins;
  src: url("/fonts/Poppins-Medium.ttf");
  font-weight: 500;
}
:root {
  font-family: Plex, sans-serif;
  color: #24352e;
  background: #f6f6f0;
  font-synthesis: none;
  --ink: #24352e;
  --muted: #667169;
  --line: #dce1d8;
  --green: #354d40;
  --orange: #b75a30;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 17px;
  border: 1px solid var(--green);
  border-radius: 24px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
}
button.secondary,
.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #b75a30;
  outline-offset: 3px;
}
header {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 24px 4vw;
  border-bottom: 1px solid var(--line);
}
.brand {
  font:
    500 27px Poppins,
    sans-serif;
  letter-spacing: -1.5px;
  text-decoration: none;
  white-space: nowrap;
}
.brand span {
  font:
    400 17px Plex,
    sans-serif;
  letter-spacing: 0;
  color: var(--muted);
}
nav {
  display: flex;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
nav a {
  padding: 10px 17px;
  text-decoration: none;
  border-radius: 24px;
  white-space: nowrap;
}
nav a.active {
  background: #e5eadd;
  font-weight: 600;
}
header .button {
  font-size: 13px;
  max-width: 270px;
  overflow-wrap: anywhere;
}
main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 42px 4vw 60px;
  min-height: calc(100vh - 180px);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font:
    500 clamp(28px, 3.5vw, 48px) / 1.16 Poppins,
    sans-serif;
  letter-spacing: -1.7px;
  margin-bottom: 15px;
}
h2 {
  font:
    500 22px Poppins,
    sans-serif;
  letter-spacing: -0.6px;
}
h3 {
  font:
    500 18px Poppins,
    sans-serif;
  margin-bottom: 4px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 1.9px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 15px;
}
.muted,
.description {
  color: var(--muted);
}
.description {
  max-width: 680px;
  line-height: 1.6;
}
.topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 32px;
}
.topline p:last-child {
  margin-bottom: 0;
}
.badge {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 7px 11px;
  font-size: 12px;
  white-space: nowrap;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.badge.live {
  background: #e7eddf;
  border-color: #d6dfc9;
  color: #37523d;
}
.badge.warn {
  background: #faeee2;
  color: #93502d;
  border-color: #ebd1b7;
}
.summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 0 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 20px 24px 20px 0;
}
.stat + .stat {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.stat strong {
  font:
    500 32px Poppins,
    sans-serif;
  display: block;
}
.stat span {
  font-size: 13px;
  color: var(--muted);
}
.fleet {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.printer {
  background: #fffef9;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 23px;
  position: relative;
}
.printer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 25px;
}
.sub {
  font-size: 12px;
  color: var(--muted);
}
.progress {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.progress strong {
  font:
    500 47px Poppins,
    sans-serif;
  letter-spacing: -2px;
}
.progress span {
  font-size: 14px;
  color: var(--muted);
}
.bar {
  height: 5px;
  border-radius: 9px;
  background: #e8ece4;
  margin: 8px 0 20px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: #708c62;
}
.printer.error .bar i,
.printer.stopped .bar i {
  background: #b75a30;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  font-size: 15px;
  gap: 10px;
  margin-bottom: 21px;
}
.metrics span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 4px;
}
.printer-bottom {
  padding-top: 15px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.actions button {
  font-size: 13px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fffef9;
  padding: 26px;
  margin-bottom: 20px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}
.search {
  width: 100%;
  padding: 16px 19px;
  border: 1px solid #c4cebf;
  background: #fffef9;
  border-radius: 14px;
  font-size: 18px;
  margin-bottom: 22px;
  color: var(--ink);
}
.parts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.part {
  background: #fffef9;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.part p {
  font-size: 14px;
  line-height: 1.5;
}
.part .location {
  font-size: 14px;
  margin: 14px 0;
  color: #985430;
}
.part .actions {
  margin-top: auto;
}
.part .sub {
  margin-bottom: 12px;
}
.rack {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr));
  padding: 14px;
  background: #dce1d4;
  border-radius: 16px;
  margin-bottom: 28px;
}
.bin {
  background: #f5f5ed;
  border: 1px solid #c1cbb9;
  border-bottom: 5px solid #c1cbb9;
  border-radius: 5px;
  padding: 9px 5px;
  text-align: center;
  font-size: 10px;
  overflow: hidden;
  min-height: 66px;
}
.bin b {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}
.bin.match {
  background: #ebd8bf;
  border-color: #bd9e72;
}
.control label {
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
}
.control {
  margin: 24px 0;
}
.control select,
.control input[type="number"] {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.control input[type="range"] {
  width: 100%;
  accent-color: var(--green);
}
.themes {
  display: flex;
  gap: 5px;
  align-items: center;
}
.themes i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #ddd;
}
.rows > div {
  padding: 17px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.rows > div:last-child {
  border-bottom: 1px solid var(--line);
}
.rows p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.empty {
  padding: 35px;
  border: 1px dashed #b9c5b1;
  border-radius: 20px;
  color: var(--muted);
  line-height: 1.6;
}
.talk-frame {
  width: 100%;
  height: 72vh;
  border: 0;
  background: #f8f9f6;
  border-radius: 24px;
}
.talk-intro {
  text-align: center;
  padding: 45px 20px;
}
.bot-face {
  width: 140px;
  height: 130px;
  background: #080a09;
  border-radius: 45% 45% 32% 32%;
  position: relative;
  margin: 40px auto;
}
.bot-face:before,
.bot-face:after {
  content: "";
  position: absolute;
  width: 32px;
  height: 40px;
  border-radius: 50%;
  background: white;
  top: 49px;
}
.bot-face:before {
  left: 32px;
}
.bot-face:after {
  right: 32px;
}
footer {
  display: flex;
  justify-content: space-between;
  padding: 22px 4vw;
  border-top: 1px solid var(--line);
  gap: 15px;
  font-size: 11px;
  color: var(--muted);
}
#notice {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #24352e;
  color: white;
  padding: 15px 23px;
  border-radius: 12px;
  box-shadow: 0 10px 30px #0002;
  max-width: 90vw;
  z-index: 20;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
  max-width: 460px;
  color: var(--ink);
}
dialog::backdrop {
  background: #15251c66;
}
.camera {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
td,
th {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 1000px) {
  header {
    flex-wrap: wrap;
    gap: 16px;
  }
  nav {
    order: 3;
    width: 100%;
    flex-basis: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }
  header .button {
    margin-left: auto;
  }
  .fleet,
  .parts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  header {
    padding: 18px 20px;
  }
  .brand {
    font-size: 24px;
  }
  .brand span {
    font-size: 14px;
  }
  header .button {
    font-size: 11px;
    max-width: 180px;
    padding: 8px 12px;
  }
  nav a {
    font-size: 13px;
    padding: 9px 13px;
  }
  main {
    padding: 28px 20px 40px;
  }
  .topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  h1 {
    letter-spacing: -1px;
  }
  .summary {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat {
    padding: 15px 0;
  }
  .stat + .stat {
    padding-left: 15px;
  }
  .stat:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .stat strong {
    font-size: 27px;
  }
  .fleet,
  .parts,
  .split {
    grid-template-columns: 1fr;
  }
  .printer {
    padding: 21px;
  }
  footer {
    padding: 20px;
    flex-direction: column;
    gap: 7px;
  }
  .panel {
    padding: 20px;
  }
  .rack {
    gap: 3px;
    padding: 8px;
  }
  .bin {
    padding: 6px 2px;
    min-height: 60px;
    font-size: 8px;
  }
  .rows > div {
    gap: 10px;
  }
  .rows .badge {
    white-space: normal;
  }
  .talk-frame {
    height: 75vh;
  }
}

main.filament-host {
  max-width: none;
  padding: 0;
  min-height: 0;
}
.filament-frame {
  display: block;
  width: 100%;
  height: calc(100dvh - 148px);
  min-height: 650px;
  border: 0;
  background: #faf9f5;
}
@media (max-width: 600px) {
  .filament-frame {
    height: calc(100dvh - 132px);
    min-height: 620px;
  }
  body:has(.filament-host) footer {
    display: none;
  }
}
