@font-face {
  font-family:Instrument;
  src:url('InstrumentSans-Variable.ttf');
  font-weight:400 700;
}
@font-face {
  font-family:Plex;
  src:url('IBMPlexMono-Regular.ttf');
}
:root {
  --paper:#f5f3eb;
  --ink:#202421;
  --muted:#686b62;
  --rule:#d4d4c9;
  --signal:#ff7445;
  --mint:#69c8af;
  --clay:#d68b75;
  --mono:Plex,ui-monospace,monospace;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font:16px/1.45 Instrument,Arial,sans-serif;
}
button,input,select {
  font:inherit;
  color:inherit;
}
button,select {
  cursor:pointer;
}
button {
  background:none;
  border:0;
  padding:0;
}
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible {
  outline:3px solid #167367;
  outline-offset:3px;
}
button:disabled {
  opacity:.55;
  cursor:wait;
}
a {
  color:inherit;
}
h1,h2,h3,p {
  margin:0;
}
.sr {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
}
.wrap {
  max-width:1392px;
  margin:auto;
  padding:0 clamp(20px,5vw,80px);
}
.top {
  border-bottom:1px solid var(--rule);
}
.topin,.top nav,.brand,.network,.decktop,.controls,.legend,.speeds,.tapeinfo,.infopair,.loghead,.filters,.tabs,.dialogtop,.rowtools {
  display:flex;
  align-items:center;
}
.topin {
  height:70px;
  justify-content:space-between;
}
.brand {
  gap:9px;
  text-decoration:none;
  font-size:28px;
  letter-spacing:-1.8px;
  font-weight:690;
}
.brand img {
  width:38px;
  height:33px;
}
.top nav {
  gap:24px;
  font-size:14px;
}
.network {
  gap:7px;
  border-right:1px solid var(--rule);
  padding-right:22px;
}
.network i,.lamp {
  display:inline-block;
  width:7px;
  height:7px;
  background:#407c5f;
  border-radius:50%;
}
.quiet:hover,.example:hover,.link:hover {
  text-decoration:underline;
}
.xlink {
  font-size:19px;
}
.intro {
  display:grid;
  grid-template-columns:1fr minmax(330px,.8fr);
  gap:40px;
  align-items:center;
  padding:36px 0 31px;
}
.intro h1 {
  font-size:clamp(49px,5vw,78px);
  line-height:.94;
  letter-spacing:-.073em;
  font-weight:620;
}
.intro h1 em {
  font-weight:530;
  font-style:normal;
  color:#62695e;
}
.search {
  max-width:510px;
  width:100%;
  justify-self:end;
}
.search p {
  font-size:19px;
  font-weight:550;
  margin-bottom:10px;
  letter-spacing:-.04em;
}
.search form {
  display:flex;
  gap:7px;
}
.field {
  min-width:0;
  height:45px;
  flex:1;
  display:flex;
  align-items:center;
  gap:8px;
  border:1px solid #bfc0b6;
  border-radius:5px;
  background:#fbfaf5;
  padding:0 12px;
}
.field span {
  font-size:24px;
  line-height:1;
}
.field input {
  border:0;
  background:none;
  min-width:0;
  width:100%;
  font-size:14px;
  outline:0;
}
.field:focus-within {
  outline:2px solid #49776b;
}
.field input:focus-visible {
  outline:none;
}
.load,.primary {
  background:var(--ink);
  color:white;
  border-radius:5px;
  padding:0 18px;
  font-weight:580;
  font-size:14px;
}
.load:hover,.primary:hover {
  background:#3b403b;
}
.searchfoot {
  margin-top:9px;
  display:flex;
  gap:10px;
  align-items:baseline;
  flex-wrap:wrap;
  font-size:13px;
}
.example {
  font-weight:560;
}
.example span {
  margin-right:3px;
}
#notice {
  color:#93503c;
}
.deck {
  background:#232825;
  color:#edece2;
  border:1px solid #191c18;
  border-radius:12px;
  box-shadow:0 3px 0 #bdbeb1,0 7px 18px #272b2010;
  overflow:hidden;
}
.decktop {
  height:34px;
  border-bottom:1px solid #3e4540;
  justify-content:space-between;
  padding:0 22px;
  background:#292e2a;
  font:11px var(--mono);
  letter-spacing:.08em;
}
.decktop>span:first-child {
  display:flex;
  align-items:center;
  gap:9px;
}
.decktop b {
  font-weight:normal;
}
.lamp {
  background:var(--signal);
  width:6px;
  height:6px;
}
.deckname {
  color:#a8aea5;
}
.deckname b {
  color:#778075;
  margin:0 5px;
}
.machine {
  display:grid;
  grid-template-columns:minmax(210px,24%) 1fr;
  gap:24px;
  padding:20px 24px 22px;
}
.bay {
  position:relative;
  display:grid;
  place-items:center;
  background:linear-gradient(145deg,#1a1e1a,#303530);
  border:1px solid #42483f;
  border-radius:6px;
  box-shadow:inset 0 2px 6px #12151299;
  overflow:hidden;
  padding:14px;
}
.bay:before,.bay:after {
  content:'';
  position:absolute;
  top:6px;
  height:5px;
  width:5px;
  border-radius:50%;
  background:linear-gradient(135deg,#545b51 42%,#191c18 43% 55%,#555c52 56%);
  box-shadow:0 1px 2px black;
}
.bay:before {
  left:6px;
}
.bay:after {
  right:6px;
}
.tape {
  color:#282c26;
  width:min(100%,237px);
  aspect-ratio:1.66;
  position:relative;
  overflow:hidden;
  border-radius:7px;
  background:var(--signal);
  border:2px solid #171c16;
  box-shadow:1px 5px 0 #10140f,2px 9px 10px #0006;
  transform:rotate(-4deg);
}
.tape-head,.label {
  position:absolute;
  left:6%;
  width:88%;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.tape-head {
  top:5%;
  border-bottom:1.5px solid #252a22;
  font:9px var(--mono);
}
.tape-head b {
  font:700 13px Instrument,sans-serif;
  letter-spacing:-.05em;
}
.tape-head b span {
  font-weight:400;
}
.label {
  top:23%;
  display:block;
}
.label strong {
  display:block;
  font-size:clamp(17px,1.7vw,26px);
  font-weight:700;
  letter-spacing:-.065em;
  line-height:.9;
}
.label span {
  font:7px var(--mono);
  letter-spacing:.1em;
}
.reelbox {
  position:absolute;
  top:49%;
  width:75%;
  left:12.5%;
  height:27%;
  border-radius:99px;
  background:#252a25;
  border:2px solid #41443a;
  display:flex;
  align-items:center;
  justify-content:space-around;
  z-index:1;
}
.reelbox i {
  display:block;
  width:17%;
  aspect-ratio:1;
  border-radius:50%;
  background:radial-gradient(circle,#252823 0 22%,transparent 24%),repeating-conic-gradient(#b9b9a9 0 35deg,#454a3c 35deg 60deg);
  border:2px solid #c8c8b7;
}
.playing .reelbox i {
  animation:roll 2s linear infinite;
}
@keyframes roll {
  to {
    transform:rotate(360deg);
  }
}
.tape-window {
  height:48%;
  width:40%;
  border:1px solid #838578;
  background:linear-gradient(90deg,#543f2d 0 18%,#a19b83 20% 79%,#58472e 82%);
}
.stripes {
  position:absolute;
  bottom:14%;
  height:20%;
  width:100%;
  background:repeating-linear-gradient(0deg,#262c24 0 2px,transparent 2px 5px);
}
.base {
  position:absolute;
  background:#e56439;
  bottom:-2%;
  left:24%;
  width:52%;
  height:17%;
  clip-path:polygon(10% 0,90% 0,100% 100%,0 100%);
  display:flex;
  align-items:center;
  justify-content:space-around;
}
.base i {
  width:5px;
  height:5px;
  border-radius:50%;
  background:#292c24;
}
.transport {
  min-width:0;
}
.timehead {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:10px;
}
.time {
  font:18px/1 var(--mono);
  color:#a4aaa0;
}
.time strong {
  font:normal clamp(32px,3.8vw,58px)/1 var(--mono);
  color:#f6f6e9;
  letter-spacing:-.08em;
}
.time span {
  letter-spacing:-.06em;
}
.playstate {
  font:11px var(--mono);
  color:#c0c6b9;
  letter-spacing:.09em;
  display:flex;
  align-items:center;
  gap:7px;
}
.playstate:before {
  content:'';
  width:5px;
  height:8px;
  border-inline:2px solid #b9c0b0;
}
.playing .playstate:before {
  border:none;
  background:var(--signal);
  clip-path:polygon(0 0,100% 50%,0 100%);
  width:7px;
}
.scope {
  height:74px;
  position:relative;
  border:1px solid #454d44;
  background-color:#1d221e;
  background-image:radial-gradient(#505a4d 0.8px,transparent 0.8px);
  background-size:7px 7px;
  border-radius:4px;
  margin-inline:1px;
}
.scope svg {
  width:100%;
  height:100%;
  display:block;
}
.scope input {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0;
  margin:0;
  cursor:ew-resize;
}
.scope:focus-within {
  outline:2px solid var(--signal);
  outline-offset:2px;
}
.cursor {
  position:absolute;
  top:-3px;
  bottom:-2px;
  background:var(--signal);
  width:2px;
  pointer-events:none;
}
.cursor:before {
  content:'';
  position:absolute;
  left:-3px;
  top:-1px;
  width:8px;
  height:7px;
  background:var(--signal);
  clip-path:polygon(0 0,100% 0,100% 45%,50% 100%,0 45%);
}
.ticks {
  display:flex;
  justify-content:space-between;
  font:11px var(--mono);
  color:#b0b6ab;
  margin:5px 0 13px;
}
.controls {
  gap:7px;
}
.play,.rewind,.speeds button {
  height:32px;
  border-radius:4px;
  font-size:13px;
}
.play {
  background:var(--signal);
  color:#241e17;
  min-width:82px;
  font-weight:660;
}
.rewind {
  border:1px solid #50574d;
  color:#dce0d3;
  width:38px;
  font-size:11px;
}
.speeds {
  background:#1c211d;
  border:1px solid #444b41;
  margin-left:5px;
  border-radius:4px;
  padding:2px;
  gap:1px;
}
.speeds button {
  height:25px;
  padding:0 10px;
  color:#aeb6a9;
  font:12px var(--mono);
}
.speeds button.on {
  background:#41483f;
  color:#f6f7ea;
}
.legend {
  gap:15px;
  margin-left:auto;
  color:#bfc7b9;
  font:12px var(--mono);
}
.legend i {
  display:inline-block;
  width:6px;
  height:9px;
  background:var(--mint);
  margin-right:3px;
}
.legend span+span i {
  background:var(--clay);
}
.tapeinfo {
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:19px 0;
}
.infopair {
  gap:13px;
  flex-wrap:wrap;
}
.infopair h2 {
  font-size:22px;
  font-weight:620;
  letter-spacing:-.06em;
}
.ca {
  font:12px var(--mono);
  color:var(--muted);
}
.poolsel select,.filters select {
  border:1px solid var(--rule);
  border-radius:4px;
  background:transparent;
  padding:5px 8px;
  font-size:13px;
}
.outline {
  font-size:14px;
  font-weight:560;
  white-space:nowrap;
  border:1px solid #bfc1b5;
  border-radius:5px;
  padding:6px 12px;
}
.outline:hover,.filters select:hover {
  background:#e9e9de;
}
.tabs {
  border-bottom:1px solid #bbbdaf;
  gap:26px;
}
.tabs button {
  position:relative;
  padding:12px 0;
  color:#666b60;
  font-size:15px;
  font-weight:560;
}
.tabs button.active {
  color:var(--ink);
}
.tabs button.active:after {
  position:absolute;
  content:'';
  height:3px;
  background:var(--ink);
  bottom:-1px;
  left:0;
  right:0;
}
.tabs small {
  margin-left:4px;
  padding:1px 5px;
  font:11px var(--mono);
  background:#e5e5db;
  color:#51564b;
  border-radius:3px;
}
.log {
  min-width:0;
  flex:1;
}
.loghead {
  justify-content:space-between;
  gap:12px;
  padding:23px 0 15px;
}
.loghead h2 {
  font-size:25px;
  line-height:1.1;
  letter-spacing:-.055em;
  font-weight:610;
}
.loghead p {
  font-size:13px;
  color:var(--muted);
  margin-top:5px;
}
.filters {
  gap:6px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.filters label {
  font-size:13px;
  display:flex;
  align-items:center;
  gap:5px;
}
.filters input {
  accent-color:#33594d;
}
.scrolltab {
  overflow-x:auto;
}
.work {
  display:flex;
  align-items:flex-start;
  gap:20px;
}
.work:not(.open) {
  display:block;
}
table {
  border-collapse:collapse;
  width:100%;
  text-align:left;
  white-space:nowrap;
}
th {
  color:#686e61;
  background:#eaeae0;
  border-block:1px solid var(--rule);
  font:11px var(--mono);
  text-transform:uppercase;
  letter-spacing:.055em;
}
th,td {
  padding:10px 12px;
}
td {
  font:13px var(--mono);
  border-bottom:1px solid var(--rule);
  line-height:1.55;
}
tr[data-detail] {
  cursor:pointer;
}
tr[data-detail]:hover,tr.chosen {
  background:#eaece1;
}
.link {
  font:inherit;
  text-decoration:underline;
  text-decoration-style:dotted;
  text-underline-offset:4px;
  text-decoration-color:#9da291;
}
.side {
  display:inline-flex;
  align-items:center;
  font:12px var(--mono);
  padding:1px 6px;
  border-radius:3px;
  font-weight:normal;
}
.buy {
  color:#245f50;
  background:#d9eade;
}
.sell {
  color:#85412e;
  background:#f1ded1;
}
.hop {
  color:#848b7d;
}
.groupcell {
  position:relative;
}
.brace {
  position:absolute;
  width:5px;
  left:2px;
  top:-1px;
  bottom:-1px;
  border-left:2px solid #8d9681;
}
.brace.first {
  border-top:2px solid #8d9681;
  top:32%;
}
.brace.last {
  border-bottom:2px solid #8d9681;
  bottom:32%;
}
.muted {
  color:var(--muted);
}
.empty {
  padding:25px 12px;
  color:var(--muted);
  font-size:15px;
}
.chip {
  font:12px var(--mono);
  border:1px solid #aeb8a7;
  border-radius:4px;
  padding:4px 8px;
}
.work aside {
  position:sticky;
  top:8px;
  width:min(340px,32%);
  flex-shrink:0;
  border:1px solid #c1c5b6;
  background:#fbfaf4;
  border-radius:7px;
  margin-top:18px;
  padding:17px;
  box-shadow:0 1px 3px #242a1910;
}
.dialogtop {
  gap:18px;
  justify-content:space-between;
}
.dialogtop button {
  font-size:24px;
  line-height:1;
  width:28px;
  height:28px;
}
.eyebrow {
  font:11px var(--mono);
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--muted);
}
.detailtitle {
  font-size:24px;
  letter-spacing:-.06em;
  line-height:1.1;
  margin:12px 0 8px;
}
.facts {
  margin:14px 0;
  font-size:13px;
}
.facts>div {
  padding:7px 0;
  border-top:1px solid var(--rule);
  display:grid;
  grid-template-columns:80px minmax(0,1fr);
  gap:8px;
}
.facts dt {
  color:var(--muted);
}
.facts dd {
  margin:0;
  overflow-wrap:anywhere;
  font:12px/1.5 var(--mono);
}
.rowtools {
  gap:8px;
  flex-wrap:wrap;
}
.rowtools button,.rowtools a,.sheetplay {
  font-size:13px;
  border:1px solid var(--rule);
  padding:5px 9px;
  border-radius:4px;
  text-decoration:none;
}
.rowtools .primary {
  padding:7px 10px;
}
.detail-list {
  list-style:none;
  padding:0;
  margin:12px 0;
}
.detail-list li {
  padding:7px 0;
  border-bottom:1px solid var(--rule);
  font:12px/1.6 var(--mono);
}
.txgroup {
  border-top:1px solid var(--rule);
  padding-top:12px;
  margin-top:12px;
}
.txgroup h4 {
  margin:0;
  font:13px var(--mono);
}
.detailNote {
  color:var(--muted);
  font-size:13px;
  margin:10px 0;
}
.sheetplay {
  display:none;
}
footer {
  display:flex;
  justify-content:space-between;
  color:#646d5f;
  font-size:13px;
  border-top:1px solid var(--rule);
  margin:32px 0 0;
  padding:15px 0 25px;
}
footer span:first-child {
  font-weight:650;
}
.work.open .log {
  overflow:hidden;
}
dialog {
  max-width:min(470px,94vw);
  width:100%;
  padding:24px;
  background:var(--paper);
  border:1px solid #858b7a;
  border-radius:10px;
  color:var(--ink);
  box-shadow:0 12px 90px #141d1833;
}
dialog::backdrop {
  background:#19201870;
}
dialog h3 {
  margin-top:18px;
  font-size:16px;
}
dialog p {
  font-size:15px;
  margin:5px 0;
  color:#51584d;
}
dialog input {
  width:100%;
  padding:8px;
  border:1px solid var(--rule);
  border-radius:4px;
  margin:12px 0;
  font:12px var(--mono);
}
#toast {
  position:fixed;
  bottom:20px;
  left:50%;
  transform:translateX(-50%);
  background:#202820;
  color:white;
  border-radius:5px;
  padding:8px 16px;
  font-size:14px;
  pointer-events:none;
  z-index:8;
}
#toast:empty {
  display:none;
}
#partial {
  padding:9px 12px;
  border:1px solid #c9bba9;
  font-size:13px;
}
#partial button {
  text-decoration:underline;
}
@media(max-width:850px) {
  .wrap {
    padding:0 24px;
  }
  .intro {
    gap:20px;
    grid-template-columns:1fr 1fr;
  }
  .machine {
    gap:15px;
    padding:16px;
    grid-template-columns:22% 1fr;
  }
  .bay {
    padding:7px;
  }
  .label strong {
    font-size:17px;
  }
  .label span {
    font-size:6px;
  }
  .work aside {
    width:32%;
  }
  .infopair {
    gap:8px;
  }
}
@media(max-width:680px) {
  .wrap {
    padding:0 16px;
  }
  .topin {
    height:55px;
  }
  .brand {
    font-size:24px;
  }
  .brand img {
    width:31px;
  }
  .top nav {
    gap:14px;
  }
  .network {
    padding-right:12px;
  }
  .intro {
    display:block;
    padding:25px 0 19px;
  }
  .intro h1 {
    font-size:46px;
  }
  .intro h1 br {
    display:none;
  }
  .intro h1 em:before {
    content:' ';
  }
  .search {
    margin:18px 0 0;
    max-width:none;
  }
  .search p {
    font-size:16px;
    margin-bottom:7px;
  }
  .field {
    height:42px;
  }
  .searchfoot {
    margin-top:6px;
  }
  .decktop {
    height:29px;
    padding:0 12px;
    font-size:10px;
  }
  .machine {
    display:block;
    padding:13px 12px;
  }
  .bay {
    float:right;
    width:78px;
    height:49px;
    margin:0 0 5px 8px;
    padding:2px;
    background:transparent;
    border:0;
    box-shadow:none;
  }
  .bay:before,.bay:after {
    display:none;
  }
  .tape {
    width:61px;
    transform:rotate(-5deg);
    border-width:1px;
    border-radius:3px;
  }
  .tape-head,.label span {
    display:none;
  }
  .label {
    top:13%;
  }
  .label strong {
    font-size:8px;
  }
  .reelbox {
    border-width:1px;
  }
  .reelbox i {
    border-width:1px;
  }
  .base i {
    width:2px;
    height:2px;
  }
  .timehead {
    height:48px;
    justify-content:start;
    gap:11px;
    margin-bottom:6px;
  }
  .time strong {
    font-size:36px;
  }
  .time {
    font-size:14px;
  }
  .playstate {
    font-size:9px;
  }
  .scope {
    clear:both;
    height:66px;
  }
  .legend {
    gap:8px;
    font-size:10px;
  }
  .speeds {
    margin-left:0;
  }
  .speeds button {
    padding:0 7px;
  }
  .controls {
    gap:4px;
  }
  .play {
    min-width:66px;
  }
  .rewind {
    width:29px;
  }
  .infopair {
    display:grid;
    grid-template-columns:auto auto;
    gap:4px 8px;
  }
  .poolsel {
    grid-column:1/-1;
  }
  .infopair h2 {
    font-size:19px;
  }
  .tapeinfo {
    padding:14px 0 10px;
  }
  .tabs {
    gap:20px;
  }
  .loghead {
    padding:17px 0 12px;
  }
  .loghead h2 {
    font-size:22px;
  }
  .filters {
    max-width:50%;
  }
  .filters select {
    max-width:100%;
  }
  th,td {
    padding:9px 8px;
  }
  .work.open {
    display:block;
  }
  .work aside {
    position:fixed;
    z-index:5;
    bottom:0;
    top:auto;
    left:0;
    right:0;
    width:100%;
    max-height:64dvh;
    overflow:auto;
    margin:0;
    border-radius:12px 12px 0 0;
    padding:14px 18px max(14px,env(safe-area-inset-bottom));
    box-shadow:0 -14px 45px #12180f33;
  }
  .sheetplay {
    display:block;
    margin-left:auto;
  }
  .work aside .dialogtop {
    position:sticky;
    top:-14px;
    background:#fbfaf4;
    padding:5px 0;
    z-index:1;
  }
  .work.open {
    padding-bottom:40vh;
  }
  .scrolltab {
    max-width:100%;
  }
  .facts>div {
    grid-template-columns:95px minmax(0,1fr);
  }
}
@media(max-width:380px) {
  .deckname {
    font-size:8px;
  }
  .top nav {
    gap:9px;
  }
  .intro h1 {
    font-size:41px;
  }
  .field {
    padding:0 6px;
  }
  .field input {
    font-size:12px;
  }
  .legend {
    gap:4px;
  }
  .rewind {
    width:25px;
  }
  .outline {
    padding:5px 8px;
  }
}
@media(prefers-reduced-motion:reduce) {
  .playing .reelbox i {
    animation:none;
  }
}
.groupcell {
  position:static;
}
td:has(.groupcell) {
  position:relative;
}
td:first-child .brace {
  left:3px;
}
.poolsel select {
  max-width:min(235px,44vw);
}
.infopair h2 {
  overflow-wrap:anywhere;
  max-width:min(58vw,630px);
}
.pairname p {
  font:10px/1.5 var(--mono);
  color:var(--muted);
  overflow-wrap:anywhere;
  max-width:54vw;
}
.play {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
}
.detailtitle {
  overflow-wrap:anywhere;
}
.play i,.rewind i {
  display:inline-block;
  width:9px;
  height:10px;
  background:currentColor;
  clip-path:polygon(0 0,100% 50%,0 100%);
}
.playing .play i {
  clip-path:polygon(0 0,33% 0,33% 100%,0 100%,0 0,66% 0,100% 0,100% 100%,66% 100%,66% 0);
}
.rewind i {
  clip-path:polygon(0 0,15% 0,15% 100%,0 100%,0 0,24% 50%,100% 0,100% 100%,24% 50%);
}

@media (max-width: 680px) {
  .infopair {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 8px;
    flex: 1;
  }
  .pairname {
    flex-basis: 100%;
  }
  .pairname h2 {
    line-height: 1.2;
  }
  .tapeinfo {
    align-items: flex-start;
  }
  .dialogtop .sheetplay {
    width: auto;
    height: auto;
    font-size: 13px;
    line-height: 1.4;
  }
}
