@font-face {
  font-family: system;
  src: local("Inter"), local("Segoe UI");
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f2f5f5;
  color: #192e30;
  font:
    15px/1.5 system,
    Arial,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button {
  border: 1px solid #d9e2e1;
  background: #fff;
  color: #263e3e;
  border-radius: 9px;
  padding: 10px 15px;
  font-weight: 600;
  transition:
    background 0.18s,
    transform 0.18s;
}
button:hover {
  background: #edf2f1;
}
button:active {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 650;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.45px;
}
h3 {
  font-size: 16px;
}
small {
  font-size: 12px;
}
input,
select,
textarea {
  border: 1px solid #d7e1df;
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  color: #192e30;
  max-width: 100%;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}
.shell {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #113d39;
  color: #e7efed;
  padding: 30px 18px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 36px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.6px;
}
.brand img {
  width: 34px;
}
.brand small {
  display: block;
  color: #a5c3bd;
  letter-spacing: 1.5px;
  font-size: 10px;
  font-weight: 500;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.nav {
  border: 0;
  background: transparent;
  color: #b6ceca;
  text-align: left;
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 14px;
}
.nav:hover {
  background: #21504c;
}
.nav.active {
  background: #c9ee8b;
  color: #173d35;
}
.nav b {
  margin-left: auto;
  font-size: 12px;
}
.nav-icon {
  font-size: 19px;
  width: 21px;
  text-align: center;
}
.side-foot {
  margin-top: auto;
  padding: 22px 10px 0;
  color: #aec7c1;
  font-size: 12px;
}
.side-foot strong {
  display: block;
  color: #e0efeb;
  font-size: 14px;
  margin-bottom: 5px;
}
.main {
  min-width: 0;
}
.topbar {
  height: 73px;
  background: #fff;
  border-bottom: 1px solid #e1e7e5;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.breadcrumb {
  font-size: 14px;
  color: #748782;
}
.breadcrumb b {
  color: #354c48;
  font-weight: 500;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.local {
  color: #416854;
  font-size: 12px;
  background: #eef7ed;
  border-radius: 30px;
  padding: 6px 10px;
  white-space: nowrap;
}
.avatar {
  width: 33px;
  height: 33px;
  background: #ecf0ee;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 12px;
}
.content {
  padding: 28px 32px;
  max-width: 1800px;
  margin: auto;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.7px;
  color: #6e827d;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 600;
}
.sub {
  color: #73857e;
  font-size: 14px;
  margin-top: 5px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.primary {
  background: #173f3a;
  color: #fff;
  border-color: #173f3a;
}
.primary:hover {
  background: #245a50;
}
.lime {
  background: #c9ee8b;
  border-color: #c9ee8b;
  color: #163d31;
}
.ghost {
  background: transparent;
  border-color: transparent;
}
.small {
  padding: 7px 10px;
  font-size: 13px;
}
.journey {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: #fff;
  border: 1px solid #e0e7e4;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 22px;
}
.step {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 20px;
  border: 0;
  border-right: 1px solid #e5ebe7;
  border-radius: 0;
  text-align: left;
}
.step:last-child {
  border: 0;
}
.step-num {
  border: 1px solid #d7e3d8;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 13px;
  flex-shrink: 0;
}
.step.done .step-num {
  background: #e9f4dc;
  color: #50712d;
  border: 0;
}
.step.active {
  background: #f7fbed;
}
.step.active .step-num {
  background: #204b40;
  color: #fff;
  border: 0;
}
.step strong {
  font-size: 14px;
  display: block;
}
.step span.detail {
  color: #7a8982;
  font-size: 12px;
  font-weight: 400;
  display: block;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 22px;
}
.metric {
  background: white;
  border: 1px solid #e0e7e4;
  border-radius: 12px;
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}
.metric-label {
  color: #6c7f77;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
}
.metric-value {
  font-size: 32px;
  letter-spacing: -1px;
  margin: 6px 0;
  font-weight: 650;
  line-height: 1.3;
}
.metric-value em {
  font-size: 16px;
  font-style: normal;
  color: #829089;
  letter-spacing: 0;
  font-weight: 400;
}
.metric-foot {
  font-size: 12px;
  color: #799078;
}
.metric-foot.warn {
  color: #aa7032;
}
.progress {
  height: 4px;
  background: #eaf0e9;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 11px;
}
.progress > i {
  display: block;
  background: #a8d777;
  height: 100%;
  border-radius: 8px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 20px;
  align-items: start;
}
.panel {
  background: white;
  border: 1px solid #dfe7e3;
  border-radius: 13px;
  overflow: hidden;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 19px 22px;
  border-bottom: 1px solid #edf0ed;
}
.panel-head p {
  font-size: 12px;
  color: #7a8d85;
  margin-top: 3px;
}
.panel-body {
  padding: 20px 22px;
}
.calendar-wrap {
  overflow: auto;
  padding: 6px 22px 20px;
}
.calendar {
  min-width: 470px;
  display: grid;
  gap: 8px;
}
.cal-header,
.cal-row {
  display: grid;
  grid-template-columns: 68px repeat(var(--days), minmax(108px, 1fr));
  gap: 8px;
}
.cal-header {
  margin: 12px 0 5px;
  font-size: 12px;
  color: #88948f;
  text-align: center;
  align-items: center;
}
.cal-header strong {
  display: block;
  color: #4d6259;
  font-size: 14px;
  font-weight: 500;
}
.line-label {
  display: flex;
  justify-content: center;
  flex-direction: column;
  font-size: 13px;
  color: #557166;
}
.line-label b {
  font-size: 15px;
  color: #29463b;
}
.slot {
  min-height: 99px;
  border: 1px dashed #e0e6e1;
  background: #fbfcfa;
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 11px;
  font-size: 12px;
  position: relative;
  text-align: left;
  min-width: 0;
}
.slot.free {
  color: #99a49b;
  text-align: center;
}
.slot.blocked {
  color: #a27246;
  background: repeating-linear-gradient(
    135deg,
    #fbf7f2,
    #fbf7f2 7px,
    #f4ede4 7px,
    #f4ede4 9px
  );
}
.slot.filled {
  border: 1px solid var(--border);
  background: var(--pale);
  color: var(--ink);
  justify-content: space-between;
}
.slot.selected {
  outline: 2px solid #245747;
  outline-offset: 2px;
}
.slot.filled:hover {
  filter: brightness(0.97);
}
.slot .slot-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  gap: 5px;
}
.slot b {
  font-size: 14px;
}
.mini-track {
  display: flex;
  gap: 0;
  height: 13px;
  margin: 9px 0 6px;
  overflow: hidden;
  border-radius: 3px;
}
.mini-track i {
  background: var(--accent);
  border-right: 1px solid var(--tint, #fff);
  min-width: 0;
  flex-shrink: 0;
}
.slot-foot {
  display: flex;
  justify-content: space-between;
  gap: 3px;
  font-size: 11px;
  font-weight: 400;
}
.w1000 {
  --accent: #6695d0;
  --pale: #edf3fd;
  --ink: #3b6191;
  --border: #dbe5f5;
}
.w1200 {
  --accent: #b995c3;
  --pale: #f4eef8;
  --ink: #856394;
  --border: #e9deef;
}
.w1500 {
  --accent: #60a394;
  --pale: #eaf5ee;
  --ink: #3c7d6c;
  --border: #d5e7dc;
}
.legend {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
  color: #6e8278;
  padding: 15px 22px;
  border-top: 1px solid #eef1ed;
}
.swatch {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--accent);
  display: inline-block;
  margin-right: 6px;
}
.advice {
  background: #173f3a;
  color: #fff;
  border-radius: 13px;
  padding: 23px;
  margin-bottom: 16px;
}
.advice .eyebrow {
  color: #b8d28f;
  font-size: 10px;
}
.advice h2 {
  font-size: 23px;
  line-height: 1.25;
  margin: 10px 0;
}
.advice p {
  font-size: 13px;
  color: #b7cec2;
  line-height: 1.6;
  margin: 12px 0 19px;
}
.advice button {
  width: 100%;
}
.right-note {
  padding: 18px;
  border: 1px solid #e0e7e4;
  border-radius: 13px;
  background: #fff;
  margin-bottom: 16px;
}
.right-note h3 {
  font-size: 14px;
  margin-bottom: 9px;
}
.right-note p {
  font-size: 12px;
  color: #728277;
  line-height: 1.6;
}
.readiness {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-top: 17px;
}
.ready-item {
  cursor: pointer;
  text-align: left;
  padding: 0;
  border: 0;
  font-weight: 400;
  background: none;
  width: 100%;
}
.ready-item:hover {
  background: transparent;
}
.ready-item div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}
.ready-item strong {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #436150;
}
.ready-item small {
  font-size: 11px;
  color: #75877b;
}
.ready-item .progress {
  margin-top: 7px;
  height: 3px;
}
.bed-detail {
  margin-top: 20px;
}
.bed-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bed-tag {
  padding: 4px 8px;
  background: var(--pale);
  color: var(--ink);
  border-radius: 5px;
  font-size: 12px;
}
.ruler {
  display: flex;
  justify-content: space-between;
  color: #8a9790;
  font-size: 11px;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.track {
  height: 75px;
  display: flex;
  border: 1px solid #dde5de;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f5f0;
  gap: 0;
}
.piece {
  min-width: 0;
  border: 0;
  border-radius: 0;
  border-right: 1px solid #fff8;
  background: var(--pale);
  color: var(--ink);
  padding: 0;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  font-weight: 500;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.piece:hover {
  background: var(--accent);
  color: #fff;
}
.piece.highlight {
  background: #234c3c;
  color: #fff;
}
.piece span {
  white-space: nowrap;
  writing-mode: vertical-rl;
}
.piece b {
  font-size: 10px;
  display: block;
}
.offcut {
  background: repeating-linear-gradient(
    135deg,
    #e8ece6,
    #e8ece6 5px,
    #f8faf4 5px,
    #f8faf4 8px
  );
  height: 100%;
  min-width: 1px;
}
.track-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #708575;
  margin: 12px 0 4px;
  gap: 15px;
}
.notice {
  border-radius: 8px;
  padding: 12px 15px;
  background: #fcf5e9;
  color: #8a6539;
  font-size: 13px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.notice.info {
  background: #eaf1f4;
  color: #4b6b7b;
}
.notice.good {
  background: #edf6e5;
  color: #587244;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  padding: 13px 16px;
  background: #f8faf7;
  color: #7b8b80;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
td {
  padding: 12px 16px;
  border-top: 1px solid #edf1eb;
  font-size: 13px;
  vertical-align: middle;
}
td strong {
  font-weight: 600;
}
td small {
  display: block;
  color: #8a988d;
}
tr.clickable {
  cursor: pointer;
}
tr.clickable:hover {
  background: #f7fbf1;
}
.pill {
  font-size: 11px;
  display: inline-block;
  padding: 4px 8px;
  background: #edf5e5;
  color: #5a7a3d;
  border-radius: 6px;
  white-space: nowrap;
}
.pill.warn {
  background: #fff0de;
  color: #a96c25;
}
.pill.neutral {
  background: #eff2ef;
  color: #7a857c;
}
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.toolbar input.search {
  flex: 1;
  min-width: 190px;
}
.empty {
  padding: 60px 30px;
  text-align: center;
  color: #839085;
}
.empty h2 {
  color: #42604d;
  margin: 10px;
}
.empty button {
  margin-top: 20px;
}
.view-tabs {
  display: flex;
  background: #f0f3ed;
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
}
.view-tabs button {
  border: 0;
  background: transparent;
  padding: 6px 10px;
  font-size: 12px;
  color: #71816e;
}
.view-tabs button.active {
  background: #fff;
  box-shadow: 0 1px 4px #20301012;
  color: #2d5039;
}
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.compare-card {
  padding: 25px;
  background: #fff;
  border: 1px solid #dce5dc;
  border-radius: 13px;
}
.compare-card.selected {
  border: 2px solid #9bcf73;
}
.compare-card h2 {
  margin: 8px 0 20px;
}
.compare-line {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #edf1eb;
  padding: 13px 0;
  font-size: 14px;
}
.compare-line b {
  font-size: 19px;
}
.big-number {
  font-size: 65px;
  font-weight: 600;
  line-height: 1.2;
  color: #294f3a;
  letter-spacing: -3px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.help {
  font-size: 12px;
  color: #849184;
  margin-top: 4px;
}
.demo-banner {
  border-radius: 12px;
  background: #e7f3d4;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 17px 20px;
  margin-bottom: 20px;
}
.demo-banner h3 {
  color: #3f5a29;
}
.demo-banner p {
  font-size: 13px;
  color: #6b7f50;
}
.demo-banner .actions {
  margin-left: auto;
}
.pulse {
  animation: pulse 1.5s ease-in-out infinite;
}
.loading {
  padding: 80px;
  text-align: center;
  color: #687e70;
}
.busy-strip {
  height: 3px;
  background: linear-gradient(90deg, #bedf9c, #2c6648, #bedf9c);
  background-size: 200% 100%;
  animation: busy 1s linear infinite;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
}
dialog {
  padding: 0;
  border: 1px solid #dce4d9;
  border-radius: 16px;
  max-width: 620px;
  width: calc(100% - 32px);
  max-height: 90vh;
  box-shadow: 0 30px 100px #0b241955;
  color: #233c2d;
}
dialog::backdrop {
  background: #0b22175c;
  backdrop-filter: blur(3px);
}
.modal-head {
  padding: 23px 25px 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-body {
  padding: 0 25px 25px;
}
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 22px;
}
.error {
  background: #fff0e8;
  color: #a64732;
  font-size: 13px;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 14px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #183e2d;
  color: white;
  border-radius: 10px;
  padding: 12px 22px;
  box-shadow: 0 8px 30px #16342130;
  z-index: 99;
  display: none;
  max-width: 90vw;
}
#toast.show {
  display: block;
  animation: appear 0.2s ease-out;
}
.version-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 20px;
  border-bottom: 1px solid #edf1eb;
}
.muted {
  color: #809084;
}
.tour-focus {
  box-shadow: 0 0 0 3px #a8d66655;
}
.print-only {
  display: none;
}
.reveal {
  animation: appear 0.3s ease-out;
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pulse {
  50% {
    opacity: 0.6;
  }
}
@keyframes busy {
  to {
    background-position: 200% 0;
  }
}
@media (min-width: 1600px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
  .slot {
    min-height: 118px;
  }
  .content {
    padding: 32px 40px;
  }
}
@media (max-width: 1200px) {
  .shell {
    grid-template-columns: 180px 1fr;
  }
  .content {
    padding: 22px;
  }
  .topbar {
    padding: 0 22px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 250px;
  }
  .sidebar {
    padding: 25px 10px;
  }
  .brand {
    font-size: 19px;
    padding-left: 6px;
  }
  .cal-header,
  .cal-row {
    grid-template-columns: 55px repeat(var(--days), minmax(95px, 1fr));
  }
  .calendar-wrap {
    padding: 6px 15px 16px;
  }
  .metric {
    padding: 15px;
  }
  .metric-value {
    font-size: 28px;
  }
}
@media (max-width: 1000px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .right-rail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .right-note {
    margin: 0;
  }
  .advice {
    margin: 0;
  }
  .metrics {
    gap: 10px;
  }
  .heading {
    align-items: flex-start;
  }
  .heading h1 {
    font-size: 26px;
  }
  .step {
    padding: 12px;
  }
  .step span.detail {
    display: none;
  }
}
@media (max-width: 760px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 12px 16px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .brand {
    padding: 0;
    font-size: 16px;
  }
  .brand small,
  .side-foot {
    display: none;
  }
  .brand img {
    width: 28px;
  }
  .sidebar nav {
    flex-direction: row;
    margin-left: auto;
    gap: 3px;
  }
  .nav {
    padding: 8px;
    gap: 5px;
  }
  .nav .nav-label,
  .nav b {
    display: none;
  }
  .topbar {
    height: 54px;
    padding: 0 16px;
  }
  .content {
    padding: 20px 15px;
  }
  .heading {
    flex-direction: column;
    gap: 12px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .metric-value {
    font-size: 29px;
  }
  .journey {
    margin-bottom: 15px;
  }
  .step {
    gap: 7px;
    padding: 11px 7px;
  }
  .step strong {
    font-size: 12px;
  }
  .step-num {
    width: 23px;
    height: 23px;
    font-size: 11px;
  }
  .right-rail,
  .settings-grid,
  .compare-grid {
    grid-template-columns: 1fr;
  }
  .panel-head {
    padding: 16px;
  }
  .panel-body {
    padding: 16px;
  }
  .demo-banner {
    flex-wrap: wrap;
  }
  .demo-banner .actions {
    margin: 0;
  }
  .top-actions {
    gap: 8px;
  }
  .local {
    font-size: 11px;
  }
  .avatar {
    display: none;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .heading .actions {
    width: 100%;
  }
  .track-meta {
    flex-wrap: wrap;
  }
  .calendar-wrap {
    padding: 5px 12px 15px;
  }
  dialog {
    max-height: 94vh;
  }
  .slot {
    min-height: 97px;
  }
  .ruler {
    font-size: 10px;
  }
  .notice {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  body {
    background: white;
    font-size: 11px;
  }
  .shell {
    display: block;
  }
  .sidebar,
  .topbar,
  .heading,
  .journey,
  .metrics,
  .workspace,
  .toolbar,
  .notice,
  .demo-banner,
  .no-print,
  dialog,
  #toast {
    display: none !important;
  }
  .content {
    padding: 0;
  }
  .print-only {
    display: block;
  }
  .print-sheet {
    break-after: page;
    padding: 15px;
  }
  .print-sheet h2 {
    margin: 12px 0;
  }
  .print-sheet table {
    font-size: 11px;
  }
  .print-sheet th,
  .print-sheet td {
    padding: 6px;
  }
  .print-sheet .track {
    height: 55px;
    print-color-adjust: exact;
  }
  .print-sheet .piece {
    print-color-adjust: exact;
  }
  .print-sheet:last-child {
    break-after: auto;
  }
}

.piece {
  font-size: 12px;
}
.piece span {
  writing-mode: horizontal-tb;
}
.piece.narrow span {
  writing-mode: vertical-rl;
}
.process-cut {
  flex-shrink: 0;
  background: #bcc8bd;
  height: 100%;
}
.workspace > div,
.workspace > aside {
  min-width: 0;
}
.offcut {
  flex-shrink: 0;
  min-width: 0;
  background: repeating-linear-gradient(
    135deg,
    #f9dda0 0 5px,
    #fff2cf 5px 10px
  );
  color: #70460b;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  font-size: 12px;
}
.offcut b {
  display: block;
  margin-top: 5px;
  font-size: 16px;
  white-space: nowrap;
}
.mini-track .mini-offcut {
  background: repeating-linear-gradient(135deg, #d59635 0 3px, #ffe9b7 3px 6px);
}
.mini-track .mini-process {
  background: #728579;
}
.slot-remainder {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #70460b;
}
.material-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 16px 0 20px;
  padding: 12px;
  border: 1px solid #e2e8de;
  border-radius: 10px;
}
.material-balance > div {
  min-width: 0;
}
.material-balance span {
  display: block;
  font-size: 12px;
  color: #546657;
}
.material-balance strong {
  display: block;
  font-size: 21px;
  margin-top: 6px;
  white-space: nowrap;
}
.material-balance small {
  font-size: 13px;
  font-weight: 400;
}
.material-balance .remainder-value {
  padding: 10px 12px;
  border-radius: 7px;
  background: #fff0cc;
  color: #70460b;
}
.remainder-value span {
  color: #70460b;
}
.order-details {
  border-top: 1px solid #e3e9e0;
}
.order-details summary {
  cursor: pointer;
  padding: 17px 0;
  font-size: 14px;
  font-weight: 600;
}
.order-details summary > span {
  font-size: 12px;
  font-weight: 400;
  margin-left: 8px;
}
.order-details summary:focus-visible {
  outline: 2px solid #365d43;
  outline-offset: -2px;
}
.all-bed-details {
  margin-top: 22px;
}
.bed-disclosure summary {
  padding: 18px 22px;
  line-height: 1.8;
}
.bed-disclosure summary::marker {
  color: #416347;
}
.bed-disclosure[open] summary {
  background: #f1f5ee;
}
.remainder-chip {
  display: inline-block;
  padding: 2px 8px;
  background: #fff0cc;
  color: #70460b;
  border-radius: 5px;
  font-size: 12px;
  margin-left: 10px;
}
.disclosure-body {
  padding: 8px 22px 20px;
}
@media (max-width: 760px) {
  .material-balance {
    flex-wrap: wrap;
    gap: 10px;
  }
  .material-balance > div {
    flex: 1 1 40%;
    padding: 8px;
  }
  .material-balance .balance-plus {
    display: none;
  }
  .bed-disclosure summary > span {
    display: block;
    margin-left: 0;
  }
  .remainder-chip {
    margin-left: 0;
  }
  .disclosure-body {
    padding-left: 12px;
    padding-right: 12px;
  }
}
.slot.filled {
  animation: appear 0.22s ease-out;
}
.date-label {
  min-width: 140px;
}
.busy-strip::after {
  content: "";
  display: block;
}
@media (max-width: 760px) {
  .brand {
    flex-shrink: 1;
    min-width: 0;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .panel-head {
    flex-wrap: wrap;
  }
  .brand > div {
    display: none;
  }
  .sidebar {
    gap: 4px;
    padding: 10px;
  }
  .sidebar nav {
    min-width: 0;
  }
  .breadcrumb {
    font-size: 12px;
    max-width: 45%;
    line-height: 1.3;
  }
  .top-actions {
    flex-shrink: 0;
  }
  .topbar {
    gap: 5px;
  }
  .top-actions .ghost {
    font-size: 12px;
    padding: 6px;
  }
  .journey {
    grid-template-columns: 1fr;
  }
  .step {
    border-right: 0;
    border-bottom: 1px solid #e5ebe7;
    padding: 10px 15px;
  }
  .step span.detail {
    display: block;
  }
  .step strong {
    font-size: 14px;
  }
  .step-num {
    width: 27px;
    height: 27px;
  }
  .heading h1 {
    font-size: 26px;
    line-height: 1.2;
  }
  .metric {
    min-width: 0;
    padding: 14px 11px;
  }
  .metric-value {
    font-size: 25px;
  }
  .metric-value em {
    font-size: 13px;
  }
  .metric-foot {
    font-size: 11px;
  }
  .date-label {
    min-width: 125px;
    flex: 1;
  }
  .heading .actions .primary {
    flex: 1;
  }
}
