.pack-workbench, .pack-control {
  --ink: #151321;
  --paper: #fff8e9;
  --white: #fffefa;
  --yellow: #ffdb45;
  --green: #a9f3c7;
  --purple: #dbc4ff;
}
.pack-workbench *, .pack-control * { box-sizing: border-box; }
.pack-workbench :is(h3, h4, p) { margin: 0; }
.pack-workbench :is(button, input, select):focus-visible {
  outline: 3px solid #5a2cad;
  outline-offset: 3px;
}
.pack-workbench { display: grid; gap: 1rem; }
.pack-walkthrough, .pack-numeric {
  display: grid;
  gap: .92rem;
  padding: clamp(.72rem, 2.3vw, 1.42rem);
  border: 2px solid var(--ink);
  background: var(--paper);
}
.pack-control { display: grid; gap: .25rem; font-weight: 700; min-width: 0; }
.pack-control :is(input:not([type="checkbox"]), select), .pack-transport button, .pack-timeline button {
  border: 2px solid var(--ink);
  padding: .5rem .65rem;
  min-width: 0;
  min-height: 42px;
  width: 100%;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  border-radius: 0;
}
.pack-control input[type="checkbox"] { width: 1.4rem; height: 1.4rem; accent-color: #6741a5; }
.pack-timeline {
  display: grid;
  gap: .55rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  margin: 0;
  list-style: none;
}
.pack-timeline li { border: 2px solid var(--ink); background: var(--white); min-width: 0; }
.pack-timeline button { border: 0; text-align: left; font-weight: 750; }
.pack-timeline button[aria-current] { background: var(--purple); }
.pack-timeline p { padding: .65rem; overflow-wrap: anywhere; }
.pack-transport { display: flex; gap: .6rem; flex-wrap: wrap; }
.pack-transport button { width: auto; background: var(--green); padding-inline: .8rem; cursor: pointer; font-weight: 700; }
.pack-transport button:disabled { opacity: .52; cursor: default; }
.pack-transport button:not(:disabled) { box-shadow: 2px 2px var(--ink); }
.pack-fields { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr)); }
.pack-bars {
  display: grid;
  gap: .7rem;
  margin: .68rem 0 0;
  padding: 0;
  list-style: none;
}
.pack-bar-label { display: flex; flex-wrap: wrap; gap: .18rem 1rem; justify-content: space-between; }
.pack-bar-track { width: 100%; height: 15px; border: 1px solid var(--ink); background: var(--white); position: relative; }
.pack-bar-fill { height: 100%; background: #9a62e3; }
.pack-bar-threshold { position: absolute; inset-block: -3px; border-left: 2px solid var(--ink); }
.pack-stats { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: 0; }
.pack-stats div { background: var(--yellow); border: 1px solid var(--ink); padding: .34rem .65rem; }
.pack-stats dd { margin: 0; font-weight: 800; }
.pack-sr {
  position: absolute;
  overflow: hidden;
  white-space: nowrap;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
}
@media (max-width: 500px) {
  .pack-timeline { grid-template-columns: 1fr; }
}
