.site-0 {
  background-image: url(../public/art/valley/foothills.webp);
}
.catalog-tools {
  flex-wrap: wrap;
  row-gap: 6px;
}
.catalog-tools .subtabs button {
  white-space: nowrap;
}
.valley-controls .console {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.valley-controls .station-status {
  display: grid;
  gap: 3px;
  flex-shrink: 0;
}
.valley-controls .lever {
  flex: 0 1 auto;
  white-space: nowrap;
}
.cost-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  text-align: left;
  font: inherit;
  color: #e7c097;
}
.cost-link:hover,
.ingredient:hover,
.grid-machine:hover {
  color: #ffdcb3;
  background-color: #3a4037;
}
.ingredients,
.grid-machines {
  display: grid;
  gap: 4px;
  margin: 6px 0 13px;
}
.ingredient,
.grid-machine {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #454b41;
  background: #282e2a;
  text-align: left;
  border-radius: 3px;
}
.ingredient .sprite,
.grid-machine .sprite {
  width: 30px;
  height: 30px;
  flex: none;
}
.ingredient span:nth-child(2),
.grid-machine span:nth-child(2) {
  flex: 1;
}
.ingredient b,
.grid-machine b,
.grid-headline b {
  font-family: var(--mono);
  font-weight: 600;
}
.ingredient.enough b {
  color: #a5c399;
}
.ingredient.short b,
.negative {
  color: #e4ad80;
}
.grid-symbol {
  display: grid;
  place-content: center;
  width: 40px;
  height: 40px;
  color: #e2bc70;
  flex: none;
}
.grid-headline {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #edc481;
  margin: 10px 0;
  padding: 11px;
  background: #34362c;
}
@media (max-width: 360px) {
  .grid-machine {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 13px;
    gap: 3px 8px;
  }
  .grid-machine > .sprite { grid-row: span 2; }
  .grid-machine > b { grid-column: 2; }
  .grid-machine > svg { grid-column: 3; grid-row: 1 / span 2; }
}
.grid-machine span strong,
.grid-machine span small {
  display: block;
}
.grid-machine span small {
  color: #adb6ad;
}
.dialog-section .ingredients {
  margin-top: 12px;
}
@media (max-width: 720px) {
  .valley-controls .lever {
    flex: 1;
    justify-content: center;
  }
  .valley-controls .station-status .eyebrow {
    font-size: 8px;
  }
  .catalog-tools .subtabs button {
    padding-inline: 7px;
  }
  .grid-symbol {
    width: 25px;
  }
}
.source-machine,
.dispatch-presets {
  display: flex;
  align-items: center;
  gap: 4px;
}
.source-machine {
  color: #bec9b8;
  font-size: 12px;
  padding: 6px 0;
  margin-right: auto;
}
.source-machine:hover {
  color: #ffdcb3;
}
.dispatch-presets {
  justify-content: space-between;
  padding: 6px 13px;
}
@media (max-width: 1100px) {
  .valley-controls .console {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 7px;
  }
  .valley-controls .lever {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .source-machine {
    grid-column: 1;
    max-width: 100%;
    font-size: 10px;
    padding: 0;
  }
  .valley-controls .station-status {
    grid-column: 1;
    grid-row: 1;
  }
  .source-machine > svg {
    width: 11px;
  }
}

/* Inventory, work orders and recipes share the same illustrated material labels. */
.material {
  display: inline-flex;
  align-items: center;
  gap: 0.28em;
  max-width: 100%;
  vertical-align: middle;
  line-height: 1.2;
}
.material > .sprite,
.source-machine > .sprite {
  width: 22px;
  height: 22px;
}
.material-amount {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  white-space: nowrap;
}
.material-name {
  min-width: 0;
}
.material-bolt {
  color: #edbe70;
}
.material-list {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 7px;
  vertical-align: middle;
}
.detail-line .material-list {
  justify-content: flex-end;
}
.detail-line > strong {
  min-width: 0;
}
.material-list .material {
  white-space: normal;
}
.valley-controls .lever > .sprite,
.order-icon > .sprite {
  width: 30px;
  height: 30px;
}
.objective-sheet > .sprite {
  width: 50px;
  height: 50px;
}
#toast > .sprite,
#modal-toast > .sprite {
  width: 23px;
  height: 23px;
  vertical-align: middle;
  margin-right: 6px;
}
.recipe-flow .material {
  margin-block: 2px;
}
.resource-heading .sprite {
  flex-shrink: 0;
}
.links .rowbtn > .sprite {
  width: 30px;
  height: 30px;
}
.issues .rowbtn small .sprite {
  width: 18px;
  height: 18px;
}
.stockboard {
  margin-bottom: 16px;
}
.stockboard .resources {
  grid-template-columns: repeat(var(--stock-columns), minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}
.stockboard .resource {
  padding: 10px 12px;
  min-height: 64px;
  gap: 9px;
}
.stock-shelf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 14px;
  border-bottom: 1px solid #364039;
  padding: 6px 2px 5px;
}
.shelf-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #aeb9ac;
  font:
    600 11px system-ui,
    sans-serif;
}
.shelf-label svg {
  color: #c3a680;
}
.shelf-items {
  display: flex;
  flex: 1 1 290px;
  flex-wrap: wrap;
  align-items: center;
  gap: 1px 9px;
}
.store-item {
  font: 11px var(--mono);
  padding: 3px 4px;
  color: #c9cec3;
  border-radius: 3px;
}
.store-item .material {
  gap: 4px;
}
.store-item .material-name {
  font:
    12px system-ui,
    sans-serif;
}
.store-item .sprite {
  width: 23px;
  height: 23px;
}
.store-item:hover,
.store-item:focus-visible {
  background: #343d35;
  color: #f1eddd;
}
.catalog {
  min-height: 0;
}
.catalog .bench-scroll {
  min-height: 0;
  overflow: auto;
  scrollbar-color: #677264 #292f2b;
  scrollbar-width: thin;
  padding-bottom: 10px;
}
.catalog .blueprints {
  align-content: start;
}
.catalog .bp-body {
  padding: 8px 10px;
  gap: 10px;
}
.catalog .blueprint-art {
  width: 50px;
  height: 49px;
}
.catalog .bp-desc {
  gap: 2px;
}
.bp-rate .material {
  gap: 4px;
}
.bp-rate .sprite {
  width: 18px;
  height: 18px;
}
.bp-rate .material-name {
  font:
    11px system-ui,
    sans-serif;
}
.bp-bottom .material-list {
  gap: 4px 5px;
  min-width: 0;
}
.cost-token {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 1px 5px 1px 3px;
  border: 1px solid #515348;
  border-radius: 3px;
  background: #292e29;
  color: #e2dfd0;
  font:
    12px system-ui,
    sans-serif;
}
.cost-token.needed {
  border-color: #625344;
  color: #e5c3a0;
}
.cost-token.in-stock {
  border-color: #4f6351;
  color: #c0d6b9;
}
.cost-token .sprite {
  width: 23px;
  height: 23px;
}
.cost-token .material-name {
  font-size: 11px;
}
.buildbtn {
  flex-shrink: 0;
}
.plan-group {
  padding: 10px 13px 0;
}
.plan-group h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 7px;
  font:
    600 12px system-ui,
    sans-serif;
  color: #b3bdaf;
}
.plan-group h3 b {
  margin-left: auto;
  font: 11px var(--mono);
}
.next-plan {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #272c29;
  border: 1px solid #3a433c;
  border-radius: 3px;
  width: 100%;
  text-align: left;
  padding: 4px 8px;
  margin: 0 0 4px;
  color: #bdc1b7;
}
.next-plan > .sprite {
  width: 37px;
  height: 37px;
  filter: grayscale(1);
  opacity: 0.65;
}
.next-plan span strong,
.next-plan span small {
  display: block;
}
.next-plan span strong {
  font: 650 15px var(--display);
}
.next-plan span small {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #a1afa3;
  font: 11px system-ui;
}
.next-plan > svg:last-child {
  margin-left: auto;
}
.next-plan:hover {
  border-color: #8f987f;
}
.sealed-plans {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(43px, 1fr));
  gap: 4px;
}
.sealed-plan {
  height: 42px;
  display: grid;
  place-content: center;
  border: 1px dashed #434940;
  border-radius: 3px;
  background: #2c322d;
}
.sealed-plan .sprite {
  width: 34px;
  height: 34px;
  filter: brightness(0);
  opacity: 0.6;
}
@media (min-width: 701px) {
  .catalog {
    position: relative;
    min-height: 0;
  }
  .catalog .bench-scroll {
    contain: size;
    flex: 1;
  }
}
@media (max-width: 1000px) {
  .stockboard .resource {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 5px;
    row-gap: 1px;
    padding: 8px;
  }
  .stockboard .resource-rate {
    grid-column: 2;
    align-self: start;
    margin: 0;
  }
  .stockboard .resource > .sprite,
  .stockboard .grid-symbol {
    grid-row: span 2;
    align-self: center;
    width: 35px;
    height: 35px;
  }
  .cost-token .material-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}
@media (max-width: 700px) {
  .stockboard {
    margin: 0 0 11px;
  }
  .stockboard .resources {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  .stockboard .resource {
    display: flex;
    flex: 1 1 16%;
    min-width: 47px;
    max-width: 100%;
    min-height: 0;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
    padding: 5px 1px;
  }
  .stockboard .resource > .sprite,
  .stockboard .grid-symbol {
    width: 27px;
    height: 27px;
    margin: 0;
  }
  .stockboard .resource-content {
    gap: 3px;
    text-align: center;
  }
  .stockboard .resource-content b {
    font-size: 20px;
  }
  .stockboard .resource-name {
    font-size: 8px;
    letter-spacing: 0.025em;
    overflow-wrap: anywhere;
  }
  .stockboard .resource-rate {
    font-size: 8px;
    align-self: center;
  }
  .stockboard .resource:before,
  .stockboard .resource:after {
    display: none;
  }
  .stock-shelf {
    display: block;
    padding: 3px 0;
  }
  .shelf-label {
    display: none;
  }
  .shelf-items {
    gap: 1px 4px;
  }
  .store-item {
    padding: 2px 3px;
  }
  .store-item .material-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .catalog .bench-scroll {
    max-height: 72svh;
    min-height: 220px;
  }
  .cost-token {
    min-height: 32px;
  }
  .cost-token .material-name {
    position: static;
    width: auto;
    height: auto;
    clip-path: none;
  }
  .stockboard .grid-kpi .resource-content b {
    font-size: 15px;
  }
}
.valley-controls .field-console {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: 'pick harvest' 'seam harvest';
  gap: 5px 12px;
}
.field-console .source-picker {
  grid-area: pick;
  display: flex;
  align-items: center;
  gap: 4px;
}
.source-picker button {
  display: grid;
  place-items: center;
  border: 1px solid #465047;
  background: #252c27;
  border-radius: 4px;
  width: 38px;
  height: 35px;
}
.source-picker button .sprite {
  width: 27px;
  height: 27px;
}
.source-picker button:hover {
  border-color: #a6ae96;
}
.source-picker button.is-chosen {
  background: #3b352a;
  border-color: #d99f61;
  box-shadow: inset 0 -2px #b47d43;
}
.field-console .seam-info {
  grid-area: seam;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 19px;
}
.seam-info strong {
  font:
    600 12px system-ui,
    sans-serif;
  color: #e4e3d7;
}
.seam-info .source-machine {
  margin: 0;
  padding: 0;
  font-size: 11px;
}
.seam-info .source-machine .sprite {
  width: 18px;
  height: 18px;
}
.valley-controls .field-console .lever {
  grid-area: harvest;
}
@media (max-width: 950px) and (min-width: 701px) {
  .valley-controls .field-console {
    grid-template-areas: 'pick seam' 'harvest harvest';
    grid-template-columns: auto 1fr;
  }
  .field-console .seam-info {
    justify-self: end;
    display: grid;
    gap: 2px;
  }
}
@media (max-width: 560px) {
  .valley-controls .field-console {
    grid-template-areas: 'pick seam' 'harvest harvest';
    grid-template-columns: auto 1fr;
    gap: 7px;
  }
  .field-console .seam-info {
    display: grid;
    justify-self: end;
    gap: 1px;
  }
  .source-picker button {
    width: 35px;
    height: 35px;
  }
  .valley-controls .field-console .lever {
    width: 100%;
    min-height: 40px;
  }
}
.catalog .sealed-drawer {
  flex-shrink: 0;
  padding: 7px 12px 10px;
  border-top: 1px solid #3e473d;
  background: #242a26;
}
.sealed-drawer h3 {
  font-size: 11px;
  letter-spacing: 0.015em;
  margin: 0 0 5px;
}
.sealed-drawer .sealed-plans {
  grid-template-columns: repeat(auto-fit, minmax(25px, 1fr));
  gap: 3px;
}
.sealed-drawer .sealed-plan {
  height: 26px;
  background: #353b34;
  border-color: #454c42;
}
.sealed-drawer .sealed-plan .sprite {
  width: 23px;
  height: 23px;
  opacity: 0.75;
}
@media (min-width: 701px) and (max-width: 920px) {
  .floor-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .floor-grid .observation {
    grid-column: 1/-1;
    grid-row: 1;
  }
  .floor-grid .order {
    grid-column: 1;
    grid-row: 2;
  }
  .floor-grid .dispatch {
    grid-column: 2;
    grid-row: 2;
  }
  .floor-grid .catalog {
    grid-column: 1/-1;
    grid-row: 3;
  }
  .catalog .bench-scroll {
    contain: none;
    max-height: 65vh;
  }
  .catalog .blueprints {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.achievement-counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 5px 9px;
  color: #ead2a0;
  background: #2c302a;
  border: 1px solid #555a48;
  border-radius: 4px;
  white-space: nowrap;
  font: 600 11px var(--mono);
}
.achievement-counter:hover {
  border-color: #cab17f;
}
.album-progress {
  padding: 16px 21px;
  margin-top: 18px;
  background: #272e2b;
  border: 1px solid #4c554b;
  border-radius: 4px;
}
.album-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}
.album-progress h2,
.badge-section h2 {
  font: 700 23px var(--display);
}
.album-progress strong {
  color: #e0c38b;
  font: 700 24px var(--display);
}
.album-progress strong small,
.badge-section h2 small {
  color: #b6bbae;
  font: 500 12px var(--mono);
}
.badge-section {
  margin: 22px 0 26px;
}
.badge-section h2 {
  margin-bottom: 10px;
}
.badge-section h2 small {
  vertical-align: middle;
  margin-left: 5px;
}
.badge-card {
  padding: 10px 13px;
  gap: 12px;
}
.badge-card.earned {
  background: #29312c;
  border-color: #455948;
}
.badge-card.hinted {
  background: #242a28;
}
.badge-card.hinted > .achievement-art {
  filter: grayscale(0.85) saturate(0.6);
  opacity: 0.78;
}
.badge-card h3 {
  margin-bottom: 2px;
}
.badge-section.sealed .badge-grid {
  grid-template-columns: repeat(auto-fill, minmax(61px, 1fr));
  gap: 6px;
}
.badge-card.sealed {
  min-height: 64px;
  justify-content: center;
  padding: 5px;
  background: #212624;
}
.album-empty {
  padding: 18px 0;
  color: var(--dim);
}
#toast .achievement-art,
#modal-toast .achievement-art {
  --badge-size: 30px;
  vertical-align: middle;
  margin-right: 6px;
}
@media (max-width: 720px) {
  .achievement-counter {
    gap: 4px;
    padding-inline: 6px;
    font-size: 10px;
  }
  .badge-section.sealed .badge-grid {
    grid-template-columns: repeat(auto-fill, minmax(53px, 1fr));
  }
  .album-progress {
    padding: 12px;
  }
  .album-progress h2,
  .badge-section h2 {
    font-size: 20px;
  }
}
@media (max-width: 1130px) {
  .achievement-label {
    display: none;
  }
}
@media (min-width: 701px) and (max-width: 840px) {
  .top-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    padding-top: 8px;
  }
  .top .brand {
    grid-area: 1/1;
  }
  .top-tools {
    grid-area: 1/2;
  }
  .top nav {
    grid-area: 2/1/3/3;
    justify-content: space-between;
    border-top: 1px solid #39403c;
    margin-top: 6px;
  }
  .top nav button {
    flex: 1;
    min-height: 37px;
    justify-content: center;
  }
}

/* The shift plan stays above the workstation, even when the catalog moves below it. */
.milestone-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 13px;
  margin: 0 0 13px;
  background: #292e28;
  border: 1px solid #515747;
  border-left: 3px solid #d9ab66;
  border-radius: 4px;
}
.stage-link,
.next-step,
.step-target,
.source-unlock {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.stage-link {
  min-width: 23%;
  padding: 2px 14px 2px 0;
  border-right: 1px solid #4a5044;
  color: #dfc28c;
}
.stage-copy,
.next-step > div,
.step-target > div {
  display: grid;
  gap: 2px;
}
.stage-copy small,
.next-step small,
.step-target small,
.shift-detail > small,
.step-count,
.next-chapter {
  color: #b8c4b3;
  font: 600 10px var(--mono);
  letter-spacing: 0.025em;
}
.stage-copy strong {
  color: #f2d6a4;
  font: 700 20px var(--display);
}
.next-step {
  flex: 1;
}
.next-step strong,
.step-target strong {
  font: 600 15px var(--display);
  color: #efefe0;
}
.step-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  min-height: 34px;
  border: 1px solid #75684c;
  border-radius: 3px;
  color: #f0d09d;
  white-space: nowrap;
}
.step-action:hover,
.stage-link:hover {
  background: #3b3d31;
}
.next-icon .sprite,
.step-target > .sprite,
.milestone-list .sprite {
  width: 26px;
  height: 26px;
}
.shift-detail p {
  color: #bdc9bb;
  margin: 4px 0 12px;
}
.milestone-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.milestone-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 5px 9px;
  border-bottom: 1px solid #434a40;
  color: #b2bcaf;
}
.milestone-list li > span:nth-child(2) {
  flex: 1;
}
.milestone-list .done {
  color: #a9c8a6;
}
.milestone-list .now {
  background: #38392e;
  color: #f4d39c;
}
.step-target {
  margin: 8px 0;
}
.next-chapter {
  margin-top: 14px;
}
.source-unlock {
  margin: 4px 0 16px;
}
.source-unlock .sprite {
  width: 52px;
  height: 52px;
}
.source-unlock p {
  color: #c7d0c5;
  margin-top: 4px;
}
.source-picker button.sealed-source {
  position: relative;
  border-style: dashed;
  opacity: 0.78;
}
.source-picker .sealed-source .sprite,
.valley-source.sealed-source img {
  filter: grayscale(1) brightness(0.7);
}
.source-picker .sealed-source > svg {
  position: absolute;
  right: 0;
  bottom: 0;
  background: #282d26;
  color: #e9d0a1;
}
.valley-source.sealed-source .vein-label {
  border-color: #606b5e;
  color: #bfccba;
}
.floor-grid .dispatch {
  grid-column: 1 / -1;
}
@media (min-width: 701px) and (max-width: 920px) {
  .floor-grid .dispatch {
    grid-row: 3;
  }
  .floor-grid .catalog {
    grid-row: 2;
  }
}
@media (max-width: 700px) {
  .milestone-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 7px;
    padding: 7px 9px;
  }
  .stage-link {
    grid-column: 1;
    border: 0;
    padding: 0;
  }
  .shift-mark,
  .next-icon {
    display: none;
  }
  .stage-copy {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 3px 6px;
  }
  .stage-copy small,
  .next-step small {
    font-size: 9px;
  }
  .stage-copy strong {
    font-size: 16px;
  }
  .next-step {
    grid-row: 2;
  }
  .next-step strong {
    font-size: 14px;
  }
  .milestone-strip .step-count {
    grid-row: 1;
    grid-column: 2;
    text-align: right;
  }
  .step-action {
    grid-row: 2;
    grid-column: 2;
    font-size: 12px;
    padding: 5px 8px;
  }
}
.metric-note { color: var(--muted, #acb8b6); font-size: .83rem; line-height: 1.45; margin: .35rem 0 1rem; }

.player-rating {margin-top:16px;padding:16px}
.player-rating h2 {margin:0;font-size:1.15rem}
.rating-response {display:flex;align-items:center;flex-wrap:wrap;gap:0 12px}
.player-rating:has(.confirmed) .rating-star[aria-pressed=true] svg {animation:rating-star-settle .32s ease-out}
@keyframes rating-star-settle {0%{transform:scale(.88)}45%{transform:scale(1.14)}100%{transform:scale(1)}}
.rating-stars {display:inline-flex;flex-wrap:wrap;align-items:center;margin-top:5px}
.rating-stars .rating-star {display:grid;place-items:center;min-width:44px;min-height:44px;padding:4px;background:transparent;color:#a4ad9e}
.rating-stars .rating-star.filled svg {fill:#edbb74;stroke:#edbb74}
@media(hover:hover) {
  .rating-stars:has(.rating-star:hover) svg {fill:#edbb74;stroke:#edbb74}
  .rating-stars .rating-star:hover~.rating-star svg {fill:none;stroke:#a4ad9e}
}
.player-rating .rating-status {min-height:1.4em;margin:4px 0 0;color:var(--soft);font-size:.85rem}
.player-rating .rating-status.failed {color:#e8aaa0}
.player-rating .rating-status.confirmed {color:#c1ddb5;animation:rating-thanks .24s ease-out}
@keyframes rating-thanks {from{opacity:.55;transform:translateY(2px)}}
.rating-star:focus-visible {outline:2px solid #e5a660;outline-offset:-3px}

/* Physical quantities stay together on both instruments and detail ledgers. */
.stockboard .resource-content b,
.material-amount,
.ingredient b,
.grid-machine b,
.resource-heading strong,
.links .rowbtn > b {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.resource-heading > div { display: grid; gap: 2px; }
.resource-heading small { color: #bdc8bb; font-size: 12px; }
.resource-heading strong { font: 700 34px/1 var(--display); }
.workshop-fold { margin-block: 7px; }
.workshop-fold-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 6px 10px;
  border: 1px solid #46564c;
  border-radius: 3px;
  background: #242d28;
  color: #d9e2d2;
  text-align: left;
  font-size: 13px;
  font-weight: 650;
}
.workshop-fold-toggle svg:first-child { color: #b9bd8e; }
.workshop-fold-toggle svg:last-child { margin-left: auto; flex-shrink: 0; }
.workshop-fold-toggle[aria-expanded='true'] svg:last-child { transform: rotate(90deg); }
.workshop-fold-toggle small { color: #b3c0b2; font: 11px var(--mono); }
.workshop-fold-toggle:is(:hover,:focus-visible) { border-color: #ad9973; color: #ffdcaa; }
.workshop-fold-body:not([hidden]) { padding: 3px 8px 6px; }
.workshop-fold-body[hidden] { display: none; }
.workshop-fold-body .detail-line > strong { white-space: nowrap; }
.stock-shelf .shelf-items {gap:4px}
.stock-shelf .store-item {
  min-height:32px;padding:2px 6px;border:1px solid #48564b;
  background:#28312a;max-width:100%;
}
.stock-shelf .store-item .material-name {
  position:static;width:auto;height:auto;clip-path:none;overflow:visible;
  font-size:11px;
}
@media (max-width:700px) {
  .stock-shelf {padding:5px 0}
  .stock-shelf .store-item {min-height:38px}
}
.stock-register { margin: 4px 0 0; }
.stock-register .workshop-fold-toggle { min-height: 34px; }
.stock-register .shelf-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 2px 10px;
  max-height: 220px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #74877a #27332d;
}
.stock-register .store-item { display: block; min-width: 0; min-height: 34px; padding: 2px 5px; }
.stock-register .store-item .material { display: grid; grid-template-columns: 23px 1fr auto; text-align: left; }
.stock-register .store-item .material-name { position: static; grid-column: 2; grid-row: 1; width: auto; height: auto; clip-path: none; }
.stock-register .store-item .material-amount { grid-column: 3; grid-row: 1; }
@media (max-width: 700px) {
  .stockboard .resources { display: grid; grid-template-columns: repeat(var(--stock-columns), minmax(0, 1fr)); }
  .stockboard .resource { min-width: 0; padding: 6px 2px; }
  .stockboard .resource-content b { font-size: clamp(15px, 4.4vw, 21px); }
  .stockboard .resource-rate { font-size: clamp(8px, 2.3vw, 11px); }
  .stock-register .shelf-items { grid-template-columns: repeat(auto-fit, minmax(146px, 1fr)); }
  .stock-register .store-item { min-height: 42px; }
  .stock-register .workshop-fold-toggle { min-height: 42px; }
  .stock-register .store-item .material-name { font-size: 11px; }
}
@media (max-width: 700px) {
  .stockboard .resources:has(> :last-child:nth-child(-n + 3)) .resource {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-content: center;
    gap: 2px 4px;
    padding: 6px;
  }
  .stockboard .resources:has(> :last-child:nth-child(-n + 3)) .resource-content {
    text-align: left;
  }
  .stockboard .resources:has(> :last-child:nth-child(-n + 3)) .resource-rate {
    grid-column: 2;
    justify-self: start;
    margin-left: 0;
  }
}
@media (max-width: 450px) {
  .top nav { min-width: 0; max-width: 100%; }
  .top nav button { padding-inline: 3px; gap: 4px; }
}
@media (max-width: 350px) {
  .top nav button { gap: 2px; }
  .top nav button svg { width: 12px; }
}
