:root {
  color-scheme: light;
  --ink: #252521;
  --hairline: #dfdfd9;
  --paper: #fff;
  --hand: "Rocket Hand", "Bradley Hand", cursive;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--hand);
  -webkit-font-smoothing: antialiased;
}
button, select { font: inherit; color: inherit; }
button, select, a { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
:focus-visible { outline: 3px solid #455ad0; outline-offset: 4px; }
.workspace { width: min(100%, 1570px); padding: 0 clamp(22px, 4.7vw, 78px); margin: auto; }
.mast {
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  min-height: clamp(98px, 10.7vw, 147px); border-bottom: 1px solid var(--hairline);
}
#brand { display: flex; margin: 0; line-height: 1; }
.controls { display: flex; align-items: center; gap: clamp(12px, 2vw, 30px); }
.owner-control {
  position: relative; display: flex; align-items: center; isolation: isolate;
  background: white; border: 1px solid #bbbcb4; border-radius: 8px;
  box-shadow: 0 2px 0 #e7e7e2; height: 43px;
}
.owner-control:hover { border-color: #7d7e76; }
.owner-icon { position: absolute; width: 19px; height: 19px; left: 12px; pointer-events: none; }
#owner {
  appearance: none; border: 0; background: transparent; border-radius: 8px;
  padding: 0 35px 0 39px; height: 100%; width: 100%; min-width: 108px;
  font-family: var(--hand); font-size: 1.18rem; line-height: 1.1;
}
.chevron { position: absolute; right: 14px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; width: 6px; height: 6px; transform: translateY(-2px) rotate(45deg); pointer-events: none; }
#period { display: inline-flex; align-items: center; gap: 2px; border: 1px solid #c7c8c1; background: #f5f5f2; padding: 3px; border-radius: 9px; }
#period button { border: 1px solid transparent; background: transparent; border-radius: 6px; font-size: 1.18rem; min-width: 54px; padding: 3px 10px 4px; height: 35px; line-height: 1; }
#period button[aria-pressed=true] { background: #fff; border-color: #bfc0b9; box-shadow: 0 1px 2px #2e302518; }
#period button:hover { background: white; }
#session { display: flex; gap: 6px; align-items: center; }
#session:empty { display: none; }
#session form { display: flex; margin: 0; }
.session-button { border: 0; border-radius: 50%; width: 40px; height: 40px; background: transparent; color: #575953; display: grid; place-items: center; cursor: pointer; }
.session-button:hover, .session-button:focus-visible { background: #f2f2ee; color: var(--ink); }
.session-button svg { width: 21px; height: 21px; }
main { padding: clamp(38px, 5.3vw, 80px) 0 40px; }
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2.2vw, 40px); }
.lane { display: flex; flex-direction: column; min-width: 0; }
.lane h2 { margin: 0; text-align: center; font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: 1.3; font-weight: 700; }
.bin {
  display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: clamp(225px, 22vw, 340px);
  max-height: min(68vh, 720px); overflow-y: auto; padding-top: 34px;
  scrollbar-width: thin; scrollbar-color: #d1d2cb transparent;
}
.bin > .cassette-stack { flex: none; margin-top: auto; }
.legend { display: flex; justify-content: center; align-items: center; list-style: none; gap: clamp(19px, 3vw, 48px); margin: clamp(42px, 6vw, 85px) 0 0; padding: 0; }
.legend li { display: flex; gap: 9px; align-items: center; font-size: 1.12rem; line-height: 1.4; }
.swatch { --chip: #739dd4; --edge: #577da9; display: inline-block; width: 22px; height: 12px; border-radius: 3px; border: 1px solid var(--edge); background: var(--chip); position: relative; transform: skewY(-5deg); box-shadow: 1px 2px 0 var(--edge); }
.swatch::after { content: ""; position: absolute; left: 4px; right: 4px; top: 3px; height: 3px; border: 1px solid var(--edge); border-radius: 3px; background: #ffffffb3; }
.swatch.fresh { --chip: #eabb62; --edge: #b88a40; }
.swatch.phone { --chip: #83ac94; --edge: #628973; }
@media (max-width: 870px) {
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 7vw; row-gap: 38px; }
  .bin { min-height: 170px; padding-top: 22px; }
  .lane h2 { font-size: 1.75rem; }
}
@media (max-width: 650px) {
  .mast { flex-wrap: wrap; gap: 12px; padding: 24px 0 20px; }
  .controls { flex: 1 0 100%; gap: 9px; }
  #session { margin-left: auto; }
  #period button { min-width: 42px; padding-inline: 6px; }
  .owner-control { max-width: 48%; }
  .board { column-gap: 3vw; row-gap: 33px; }
  .bin { min-height: 110px; }
  .lane h2 { font-size: 1.42rem; }
  .legend { margin-top: 42px; }
}
@media (max-width: 480px) {
  .workspace { padding-inline: max(14px, 4vw); }
  .controls { gap: 7px; }
  #owner { min-width: 82px; padding: 0 24px 0 31px; font-size: 1.05rem; }
  .owner-icon { width: 16px; left: 9px; }
  .chevron { right: 10px; }
  .owner-control { max-width: 42%; }
  #period button { font-size: 1.04rem; min-width: 37px; padding-inline: 5px; }
  .session-button { width: 32px; }
}
@media (max-width: 340px) {
  .board { grid-template-columns: minmax(0, 1fr); }
  .controls { flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .board[data-state="ready"] { grid-template-columns: minmax(0, 1fr); max-width: 318px; margin-inline: auto; }
  .board[data-state="ready"] .bin { max-height: 55svh; }
}
