* {
  box-sizing: border-box;
}
:root {
  color-scheme: light;
  font: clamp(9px, 1.58vw, 20px)/1.4 "Malgun Gothic", Arial, sans-serif;
  color: #203936;
  background: #f5f7f3;
  font-variant-numeric: tabular-nums;
}
body, h1, h2, h3, p, ul {
  margin: 0;
}
small {
  font-size: .82rem;
}
time, .route-id > span, .metrics strong, .handoff b {
  font-family: Consolas, "Malgun Gothic", monospace;
}
.depot {
  max-width: 1580px;
  min-height: 100svh;
  margin: auto;
  padding: 1rem 1.35rem;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: .72rem;
}
.mast, .headline, .sect, .sect > div, .wordmark, .metrics, .route-id, .key, .upnext, .handoff {
  display: flex;
  align-items: center;
}
.mast {
  gap: .64rem;
  border-bottom: 1px solid #c5d1cc;
  padding-bottom: .6rem;
}
.wordmark {
  gap: .4rem;
  font-size: 1.22rem;
  letter-spacing: -.065em;
}
.wordmark svg {
  width: 1.55rem;
  height: 1.55rem;
  color: #267356;
}
.mast-en, .floor-id {
  font: 700 .69rem/1 Consolas, monospace;
  letter-spacing: .12em;
}
.mast small {
  margin-left: auto;
  color: #566d65;
}
.headline {
  justify-content: space-between;
}
h1 {
  font-size: 3rem;
  line-height: 1.04;
  letter-spacing: -.09em;
}
.headline p, .selected p, .upnext small {
  color: #536c64;
}
.headline p {
  margin-top: .28rem;
  font-size: .87rem;
}
.metrics {
  gap: 1.45rem;
  border-left: 1px solid #cad6cf;
  padding: 0 .5rem 0 1.2rem;
}
.metrics small, .metrics time, .metrics strong, .handoff small {
  display: block;
}
.metrics small {
  color: #50665d;
}
.metrics strong, .metrics time {
  font-size: 1.52rem;
  letter-spacing: -.075em;
  line-height: 1.2;
}
.metrics strong span {
  font-size: .7em;
}
.dispatch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.65fr);
  gap: .7rem;
}
.queue, .plan {
  min-width: 0;
  background: #fff;
  border: 1px solid #bfcec7;
  border-radius: .63rem;
}
.queue {
  padding: .85rem;
}
.sect, .route-id {
  justify-content: space-between;
}
.sect {
  gap: .4rem;
  min-height: 1.6rem;
}
.sect h2 {
  font-size: 1.05rem;
  letter-spacing: -.055em;
}
.sect span, .sect small {
  color: #51665e;
}
.selected {
  margin-top: .65rem;
  border-top: .22rem solid #27785f;
  padding: .65rem .68rem .4rem;
  background: #e9f2ec;
  border-radius: .3rem;
}
.route-id {
  font-size: .85rem;
}
.route-id > span {
  color: #386355;
  letter-spacing: .02em;
}
.route-id b {
  font-size: .78rem;
  color: #126746;
}
.selected h3 {
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: -.07em;
  margin: .62rem 0 .2rem;
}
.selected p {
  font-size: .83rem;
}
.manifest {
  padding: .5rem 0 0;
  list-style: none;
}
.manifest li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: .1rem .35rem;
  padding: .48rem 0;
  border-top: 1px solid #ccdcd1;
}
.manifest li b {
  font: bold .8rem Consolas, monospace;
  color: #27604e;
}
.manifest li span {
  font-size: .83rem;
  font-weight: bold;
}
.manifest em, .manifest i {
  font-size: .76rem;
  font-style: normal;
}
.manifest i {
  grid-column: 2/-1;
  color: #476357;
  line-height: 1;
}
.manifest .active b, .manifest .active i {
  color: #97512e;
}
.upnext {
  gap: .7rem;
  border-bottom: 1px solid #dae2dc;
  padding: .6rem .12rem;
}
.upnext:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.upnext time {
  font-size: .95rem;
}
.upnext b, .upnext small {
  display: block;
}
.upnext b {
  font-size: .87rem;
}
.upnext small {
  font-size: .75rem;
}
.plan {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #edf2ee;
  padding: .85rem;
}
.plan .sect > div {
  gap: .5rem;
}
.floor-id {
  padding: .33rem .44rem;
  background: #dce8df;
  border: 1px solid #b5c9bc;
  border-radius: .2rem;
}
.blueprint {
  display: grid;
  align-items: center;
  min-height: 0;
  margin: .4rem 0;
}
.floor {
  width: 100%;
  display: block;
}
.floor .tag {
  font: bold 18px "Malgun Gothic", Arial, sans-serif;
  fill: #2c483e;
}
.key {
  justify-content: flex-end;
  gap: 1rem;
  color: #405c50;
  font-size: .76rem;
}
.key i {
  display: inline-block;
  width: 1.35em;
  vertical-align: middle;
  border-top: .18em solid #46916e;
  margin-right: .3em;
}
.key span:last-child i {
  border-top-style: dashed;
}
.handoff {
  padding: .64rem .95rem;
  border-radius: .45rem;
  background: #203f36;
  color: #f6faf5;
  gap: 1.25rem;
}
.handoff > div:first-child {
  min-width: 24%;
  border-right: 1px solid #608275;
}
.handoff small {
  color: #c3d7c8;
  font-size: .76rem;
}
.handoff b {
  font-size: 1.4rem;
  line-height: 1.1;
}
.handoff em {
  font: normal .85rem "Malgun Gothic",sans-serif;
}
.next strong {
  font-size: 1rem;
}
.next i {
  font-style: normal;
  color: #b8e1bd;
  padding: 0 .25rem;
}
@media (min-aspect-ratio: 6/5) and (max-width: 580px) {
  .depot {
    padding: .5rem .7rem;
    gap: .45rem;
  }
  .mast {
    padding-bottom: .35rem;
  }
  h1 {
    font-size: 2rem;
  }
  .queue, .plan {
    padding: .55rem;
  }
  .manifest i, .headline p, .upnext small {
    display: none;
  }
  .manifest li {
    padding: .32rem 0;
  }
  .selected {
    margin-top: .32rem;
    padding: .44rem;
  }
  .selected h3 {
    font-size: 1.22rem;
    margin: .32rem 0;
  }
  .upnext {
    padding: .42rem 0;
  }
}
@media (max-aspect-ratio: 6/5) and (max-width: 820px) {
  :root {
    font-size: clamp(11px, 3.1vw, 17px);
  }
  .depot {
    padding: .8rem;
    gap: .64rem;
  }
  .mast-en {
    display: none;
  }
  .headline p {
    display: none;
  }
  h1 {
    font-size: 2rem;
  }
  .metrics {
    border: 0;
    gap: .8rem;
    padding: 0;
  }
  .metrics small {
    font-size: .76rem;
  }
  .metrics time, .metrics strong {
    font-size: 1.1rem;
  }
  .dispatch {
    grid-template-columns: 1fr;
    gap: .5rem;
  }
  .plan {
    padding: .6rem;
  }
  .queue {
    padding: .6rem .7rem;
  }
  .selected {
    margin: .25rem 0 0;
  }
  .blueprint {
    margin: .3rem 0;
  }
  .floor .tag {
    font-size: 20px;
  }
  .handoff {
    gap: .8rem;
    padding: .6rem .7rem;
  }
  .next strong {
    font-size: .93rem;
  }
}
@media (min-aspect-ratio: 3/4) and (max-aspect-ratio: 6/5) and (max-width: 820px) {
  :root:not(.standalone) .dispatch {
    grid-template-rows: auto 1fr;
  }
  :root:not(.standalone) .queue {
    background: #e7f1e8;
    border-color: #bbcec0;
    border-left: .3rem solid #2c7c60;
  }
  :root:not(.standalone) .queue > .sect, :root:not(.standalone) .manifest, :root:not(.standalone) .upnext, :root:not(.standalone) .route-id > span {
    display: none;
  }
  :root:not(.standalone) .selected {
    display: flex;
    align-items: center;
    gap: .56rem;
    flex-wrap: wrap;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
  }
  :root:not(.standalone) .selected h3 {
    margin: 0;
    font-size: 1.12rem;
    order: -1;
  }
  :root:not(.standalone) .selected p {
    margin-left: auto;
  }
}
@media (max-aspect-ratio: 6/5) and (max-width: 820px) {
  .standalone .depot {
    display: flex;
    flex-direction: column;
  }
  .standalone .dispatch {
    display: contents;
  }
  .standalone .plan {
    order: 1;
  }
  .standalone .handoff {
    order: 2;
  }
  .standalone .queue {
    order: 3;
  }
  .standalone .manifest li {
    grid-template-columns: 2.4rem 1fr 3rem 4rem;
  }
  .standalone .manifest i {
    grid-column: auto;
    text-align: right;
  }
  .standalone .upnext div {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
}
@media (min-aspect-ratio: 3/4) and (max-aspect-ratio: 6/5) and (max-width: 340px) {
  :root:not(.standalone) .depot {
    gap: .34rem;
    padding: .49rem;
  }
  :root:not(.standalone) .mast {
    padding-bottom: .3rem;
  }
  :root:not(.standalone) .queue, :root:not(.standalone) .plan, :root:not(.standalone) .handoff {
    padding: .4rem .55rem;
  }
  :root:not(.standalone) .dispatch {
    gap: .33rem;
  }
  :root:not(.standalone) .blueprint {
    margin: .12rem 0;
  }
  :root:not(.standalone) .metrics > div:first-child {
    display: none;
  }
}
/* The order tray and the map share one continuous cold-room floor. */
.depot {
  background: #f7f9f7;
}
.mast {
  border-color: #dbe3df;
}
.headline h1 {
  font-weight: 580;
  font-size: 2.7rem;
}
.dispatch {
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0,27%) minmax(0,1fr);
  gap: 0;
  background: radial-gradient(ellipse at 19% 35%,#e0e9e5,transparent 55%),repeating-linear-gradient(0deg,transparent 0 2.8rem,#dae4df66 2.85rem 2.9rem),#eef3f0;
  border-radius: .75rem;
}
.queue {
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
  position: relative;
  margin: .65rem 0 .65rem .52rem;
  padding: .8rem;
  background: linear-gradient(135deg,#ffffffef,#f3f7f5eb);
  border: 1px solid #fff;
  border-radius: .8rem;
  box-shadow: .24rem .45rem 1.2rem #4e6e6320,0 .1rem .25rem #5d70692b;
}
.queue .selected {
  background: #ffffffd9;
  border: 1px solid #dce5df;
  border-radius: .43rem;
  padding: .52rem .55rem .35rem;
}
.selected h3 {
  font-size: 1.29rem;
}
.manifest li {
  border-color: #e5ebe7;
}
.manifest .active {
  background: #f6eddc;
  border-radius: .2rem;
}
.manifest .active i {
  font-weight: 650;
}
.route-id b {
  background: #e6f2e7;
  border-radius: 2rem;
  padding: .12rem .45rem;
}
.plan {
  grid-column: 1/-1;
  grid-row: 1;
  border: 0;
  background: transparent;
  padding: .9rem .75rem .75rem 29%;
  border-radius: .75rem;
}
.plan .sect {
  padding: 0 .4rem;
}
.blueprint {
  margin: .2rem 0;
}
.floor .tag {
  font-size: 17px;
  font-weight: 600;
  fill: #375147;
}
.handoff {
  background: #e6ede7;
  border: 1px solid #cbd9ce;
  color: #233d31;
}
.handoff small {
  color: #506b57;
}
.handoff>div:first-child {
  border-color: #b8cbbb;
}
.next i {
  color: #498065;
}
@media(max-width:820px) and (max-aspect-ratio:6/5) {
  .headline h1 {
    font-size: 2rem;
  }
  .plan {
    padding: .6rem .35rem .5rem;
  }
  .dispatch {
    grid-template-columns: 1fr;
  }
  .queue {
    grid-row: 1;
    grid-column: 1;
    margin: .3rem .4rem 0;
    padding: .38rem .62rem;
  }
  .plan {
    grid-row: 2;
    grid-column: 1;
  }
  .floor .tag {
    font-size: 19px;
  }
  .standalone .queue {
    margin: .2rem 0;
    padding: .7rem;
  }
  .standalone .plan {
    background: #edf3ef;
    border: 1px solid #d2ded6;
  }
  .embedded .selected {
    margin: 0;
    padding: 0;
  }
  :root:not(.standalone) .queue .selected {
    border: 0;
    background: transparent;
    padding: 0;
  }
}
@media(max-aspect-ratio:6/5) and (max-width:340px) {
  .plan {
    padding: .3rem;
  }
  .queue {
    margin: .1rem .3rem 0;
  }
  .headline h1 {
    font-size: 1.75rem;
  }
}
@media(min-aspect-ratio:6/5) and (max-width:580px) {
  .queue {
    margin: .3rem .1rem .3rem .25rem;
    padding: .48rem;
  }
  .plan {
    padding-block: .5rem;
  }
  .headline h1 {
    font-size: 2.1rem;
  }
}

@media (max-aspect-ratio: 6/5) and (max-width: 820px) {
  :root:not(.standalone) .depot { gap: .36rem; padding-block: .52rem; }
  :root:not(.standalone) .blueprint { margin: 0; }
  :root:not(.standalone) .plan { padding-block: .3rem; }
}

@media (max-width: 325px) and (max-aspect-ratio: 6/5) {
  :root:not(.standalone) .depot { padding-block: .27rem; gap: .22rem; }
  :root:not(.standalone) .key { display: none; }
}
@media (max-width: 510px) and (min-aspect-ratio: 6/5) {
  .depot { padding-block: .3rem; }
}
